]> iEval git - audio-libsamplerate.git/blame - libsamplerate/configure
Bump version and update Changes
[audio-libsamplerate.git] / libsamplerate / configure
CommitLineData
8529da43
MG
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libsamplerate 0.1.9.
4#
5# Report bugs to <erikd@mega-nerd.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
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
201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
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
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: erikd@mega-nerd.com about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545else
546 as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libsamplerate'
592PACKAGE_TARNAME='libsamplerate'
593PACKAGE_VERSION='0.1.9'
594PACKAGE_STRING='libsamplerate 0.1.9'
595PACKAGE_BUGREPORT='erikd@mega-nerd.com'
596PACKAGE_URL='http://www.mega-nerd.com/libsamplerate/'
597
598ac_unique_file="src/samplerate.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639ALSA_LIBS
640HAVE_SNDFILE
641HAVE_FFTW3
642GCC_MAJOR_VERSION
643COMPILER_IS_GCC
644OS_SPECIFIC_LINKS
645OS_SPECIFIC_INCLUDES
646SHARED_VERSION_INFO
647SHLIB_VERSION_ARG
648htmldocdir
649FFTW3_LIBS
650FFTW3_CFLAGS
651SNDFILE_LIBS
652SNDFILE_CFLAGS
653PKG_CONFIG_LIBDIR
654PKG_CONFIG_PATH
655PKG_CONFIG
656PEXPORTS
657DLLWRAP
658RC
659CXXCPP
660CPP
661LT_SYS_LIBRARY_PATH
662OTOOL64
663OTOOL
664LIPO
665NMEDIT
666DSYMUTIL
667MANIFEST_TOOL
668RANLIB
669ac_ct_AR
670AR
671DLLTOOL
672OBJDUMP
673LN_S
674NM
675ac_ct_DUMPBIN
676DUMPBIN
677LD
678FGREP
679EGREP
680GREP
681LIBTOOL
682SED
683am__fastdepCXX_FALSE
684am__fastdepCXX_TRUE
685CXXDEPMODE
686ac_ct_CXX
687CXXFLAGS
688CXX
689am__fastdepCC_FALSE
690am__fastdepCC_TRUE
691CCDEPMODE
692am__nodep
693AMDEPBACKSLASH
694AMDEP_FALSE
695AMDEP_TRUE
696am__quote
697am__include
698DEPDIR
699OBJEXT
700EXEEXT
701ac_ct_CC
702CPPFLAGS
703LDFLAGS
704CFLAGS
705CC
706ACLOCAL_AMFLAGS
707AM_BACKSLASH
708AM_DEFAULT_VERBOSITY
709AM_DEFAULT_V
710AM_V
711am__untar
712am__tar
713AMTAR
714am__leading_dot
715SET_MAKE
716AWK
717mkdir_p
718MKDIR_P
719INSTALL_STRIP_PROGRAM
720STRIP
721install_sh
722MAKEINFO
723AUTOHEADER
724AUTOMAKE
725AUTOCONF
726ACLOCAL
727VERSION
728PACKAGE
729CYGPATH_W
730am__isrc
731INSTALL_DATA
732INSTALL_SCRIPT
733INSTALL_PROGRAM
734target_os
735target_vendor
736target_cpu
737target
738host_os
739host_vendor
740host_cpu
741host
742build_os
743build_vendor
744build_cpu
745build
746target_alias
747host_alias
748build_alias
749LIBS
750ECHO_T
751ECHO_N
752ECHO_C
753DEFS
754mandir
755localedir
756libdir
757psdir
758pdfdir
759dvidir
760htmldir
761infodir
762docdir
763oldincludedir
764includedir
765runstatedir
766localstatedir
767sharedstatedir
768sysconfdir
769datadir
770datarootdir
771libexecdir
772sbindir
773bindir
774program_transform_name
775prefix
776exec_prefix
777PACKAGE_URL
778PACKAGE_BUGREPORT
779PACKAGE_STRING
780PACKAGE_VERSION
781PACKAGE_TARNAME
782PACKAGE_NAME
783PATH_SEPARATOR
784SHELL'
785ac_subst_files=''
786ac_user_opts='
787enable_option_checking
788enable_silent_rules
789enable_dependency_tracking
790enable_shared
791enable_static
792with_pic
793enable_fast_install
794with_aix_soname
795with_gnu_ld
796with_sysroot
797enable_libtool_lock
798enable_gcc_werror
799enable_gcc_pipe
800enable_gcc_opt
801enable_fftw
802enable_cpu_clip
803enable_sndfile
804'
805 ac_precious_vars='build_alias
806host_alias
807target_alias
808CC
809CFLAGS
810LDFLAGS
811LIBS
812CPPFLAGS
813CXX
814CXXFLAGS
815CCC
816LT_SYS_LIBRARY_PATH
817CPP
818CXXCPP
819PKG_CONFIG
820PKG_CONFIG_PATH
821PKG_CONFIG_LIBDIR
822SNDFILE_CFLAGS
823SNDFILE_LIBS
824FFTW3_CFLAGS
825FFTW3_LIBS'
826
827
828# Initialize some variables set by options.
829ac_init_help=
830ac_init_version=false
831ac_unrecognized_opts=
832ac_unrecognized_sep=
833# The variables have the same names as the options, with
834# dashes changed to underlines.
835cache_file=/dev/null
836exec_prefix=NONE
837no_create=
838no_recursion=
839prefix=NONE
840program_prefix=NONE
841program_suffix=NONE
842program_transform_name=s,x,x,
843silent=
844site=
845srcdir=
846verbose=
847x_includes=NONE
848x_libraries=NONE
849
850# Installation directory options.
851# These are left unexpanded so users can "make install exec_prefix=/foo"
852# and all the variables that are supposed to be based on exec_prefix
853# by default will actually change.
854# Use braces instead of parens because sh, perl, etc. also accept them.
855# (The list follows the same order as the GNU Coding Standards.)
856bindir='${exec_prefix}/bin'
857sbindir='${exec_prefix}/sbin'
858libexecdir='${exec_prefix}/libexec'
859datarootdir='${prefix}/share'
860datadir='${datarootdir}'
861sysconfdir='${prefix}/etc'
862sharedstatedir='${prefix}/com'
863localstatedir='${prefix}/var'
864runstatedir='${localstatedir}/run'
865includedir='${prefix}/include'
866oldincludedir='/usr/include'
867docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868infodir='${datarootdir}/info'
869htmldir='${docdir}'
870dvidir='${docdir}'
871pdfdir='${docdir}'
872psdir='${docdir}'
873libdir='${exec_prefix}/lib'
874localedir='${datarootdir}/locale'
875mandir='${datarootdir}/man'
876
877ac_prev=
878ac_dashdash=
879for ac_option
880do
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
884 ac_prev=
885 continue
886 fi
887
888 case $ac_option in
889 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 *=) ac_optarg= ;;
891 *) ac_optarg=yes ;;
892 esac
893
894 # Accept the important Cygnus configure options, so we can diagnose typos.
895
896 case $ac_dashdash$ac_option in
897 --)
898 ac_dashdash=yes ;;
899
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
904
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
909
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
916
917 --config-cache | -C)
918 cache_file=config.cache ;;
919
920 -datadir | --datadir | --datadi | --datad)
921 ac_prev=datadir ;;
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
924
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
931
932 -disable-* | --disable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941"enable_$ac_useropt"
942"*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=no ;;
947
948 -docdir | --docdir | --docdi | --doc | --do)
949 ac_prev=docdir ;;
950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 docdir=$ac_optarg ;;
952
953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 ac_prev=dvidir ;;
955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 dvidir=$ac_optarg ;;
957
958 -enable-* | --enable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967"enable_$ac_useropt"
968"*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=\$ac_optarg ;;
973
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
981 exec_prefix=$ac_optarg ;;
982
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
985 with_gas=yes ;;
986
987 -help | --help | --hel | --he | -h)
988 ac_init_help=long ;;
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
993
994 -host | --host | --hos | --ho)
995 ac_prev=host_alias ;;
996 -host=* | --host=* | --hos=* | --ho=*)
997 host_alias=$ac_optarg ;;
998
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 ac_prev=htmldir ;;
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 | --ht=*)
1003 htmldir=$ac_optarg ;;
1004
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
1010 includedir=$ac_optarg ;;
1011
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 ac_prev=infodir ;;
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015 infodir=$ac_optarg ;;
1016
1017 -libdir | --libdir | --libdi | --libd)
1018 ac_prev=libdir ;;
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020 libdir=$ac_optarg ;;
1021
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
1027 libexecdir=$ac_optarg ;;
1028
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1033
1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
1035 | --localstate | --localstat | --localsta | --localst | --locals)
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039 localstatedir=$ac_optarg ;;
1040
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 ac_prev=mandir ;;
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044 mandir=$ac_optarg ;;
1045
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1048 with_fp=no ;;
1049
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051 | --no-cr | --no-c | -n)
1052 no_create=yes ;;
1053
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056 no_recursion=yes ;;
1057
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065 oldincludedir=$ac_optarg ;;
1066
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 ac_prev=prefix ;;
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070 prefix=$ac_optarg ;;
1071
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077 program_prefix=$ac_optarg ;;
1078
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084 program_suffix=$ac_optarg ;;
1085
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
1101 program_transform_name=$ac_optarg ;;
1102
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 ac_prev=pdfdir ;;
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1107
1108 -psdir | --psdir | --psdi | --psd | --ps)
1109 ac_prev=psdir ;;
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111 psdir=$ac_optarg ;;
1112
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1115 silent=yes ;;
1116
1117 -runstatedir | --runstatedir | --runstatedi | --runstated \
1118 | --runstate | --runstat | --runsta | --runst | --runs \
1119 | --run | --ru | --r)
1120 ac_prev=runstatedir ;;
1121 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1122 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1123 | --run=* | --ru=* | --r=*)
1124 runstatedir=$ac_optarg ;;
1125
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 ac_prev=sbindir ;;
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 | --sbi=* | --sb=*)
1130 sbindir=$ac_optarg ;;
1131
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1135 | --sha | --sh)
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 | --sha=* | --sh=*)
1141 sharedstatedir=$ac_optarg ;;
1142
1143 -site | --site | --sit)
1144 ac_prev=site ;;
1145 -site=* | --site=* | --sit=*)
1146 site=$ac_optarg ;;
1147
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 ac_prev=srcdir ;;
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1152
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1159
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1164
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 verbose=yes ;;
1167
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1170
1171 -with-* | --with-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180"with_$ac_useropt"
1181"*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
1186
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196"with_$ac_useropt"
1197"*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=no ;;
1202
1203 --x)
1204 # Obsolete; use --with-x.
1205 with_x=yes ;;
1206
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212 x_includes=$ac_optarg ;;
1213
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219 x_libraries=$ac_optarg ;;
1220
1221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222Try \`$0 --help' for more information"
1223 ;;
1224
1225 *=*)
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1231 esac
1232 eval $ac_envvar=\$ac_optarg
1233 export $ac_envvar ;;
1234
1235 *)
1236 # FIXME: should be removed in autoconf 3.0.
1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1241 ;;
1242
1243 esac
1244done
1245
1246if test -n "$ac_prev"; then
1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248 as_fn_error $? "missing argument to $ac_option"
1249fi
1250
1251if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1253 no) ;;
1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 esac
1257fi
1258
1259# Check all directory arguments for consistency.
1260for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir runstatedir
1264do
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1267 case $ac_val in
1268 */ )
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1271 esac
1272 # Be sure to have absolute directory names.
1273 case $ac_val in
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 esac
1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278done
1279
1280# There might be people who depend on the old broken behavior: `$host'
1281# used to hold the argument of --host etc.
1282# FIXME: To remove some day.
1283build=$build_alias
1284host=$host_alias
1285target=$target_alias
1286
1287# FIXME: To remove some day.
1288if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1293 fi
1294fi
1295
1296ac_tool_prefix=
1297test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299test "$silent" = yes && exec 6>/dev/null
1300
1301
1302ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303ac_ls_di=`ls -di .` &&
1304ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error $? "working directory cannot be determined"
1306test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error $? "pwd does not report name of working directory"
1308
1309
1310# Find the source files, if location was not specified.
1311if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319$as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\).*/{
1333 s//\1/
1334 q
1335 }
1336 s/.*/./; q'`
1337 srcdir=$ac_confdir
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 srcdir=..
1340 fi
1341else
1342 ac_srcdir_defaulted=no
1343fi
1344if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347fi
1348ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351 pwd)`
1352# When building in place, set srcdir=.
1353if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1355fi
1356# Remove unnecessary trailing slashes from srcdir.
1357# Double slashes in file names in object file debugging info
1358# mess up M-x gdb in Emacs.
1359case $srcdir in
1360*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361esac
1362for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367done
1368
1369#
1370# Report the --help message.
1371#
1372if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376\`configure' configures libsamplerate 0.1.9 to adapt to many kinds of systems.
1377
1378Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381VAR=VALUE. See below for descriptions of some of the useful variables.
1382
1383Defaults for the options are specified in brackets.
1384
1385Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking ...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395
1396Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 [PREFIX]
1401
1402By default, \`make install' will install all the files in
1403\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405for instance \`--prefix=\$HOME'.
1406
1407For better control, use the options below.
1408
1409Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/libsamplerate]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1430_ACEOF
1431
1432 cat <<\_ACEOF
1433
1434Program names:
1435 --program-prefix=PREFIX prepend PREFIX to installed program names
1436 --program-suffix=SUFFIX append SUFFIX to installed program names
1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438
1439System types:
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 --target=TARGET configure for building compilers for TARGET [HOST]
1443_ACEOF
1444fi
1445
1446if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive ) echo "Configuration of libsamplerate 0.1.9:";;
1449 esac
1450 cat <<\_ACEOF
1451
1452Optional Features:
1453 --disable-option-checking ignore unrecognized --enable/--with options
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --enable-silent-rules less verbose build output (undo: "make V=1")
1457 --disable-silent-rules verbose build output (undo: "make V=0")
1458 --enable-dependency-tracking
1459 do not reject slow dependency extractors
1460 --disable-dependency-tracking
1461 speeds up one-time build
1462 --enable-shared[=PKGS] build shared libraries [default=yes]
1463 --enable-static[=PKGS] build static libraries [default=yes]
1464 --enable-fast-install[=PKGS]
1465 optimize for fast installation [default=yes]
1466 --disable-libtool-lock avoid locking (might break parallel builds)
1467 --enable-gcc-werror enable -Werror in all Makefiles
1468 --disable-gcc-pipe disable gcc -pipe option
1469 --disable-gcc-opt disable gcc optimisations
1470 --disable-fftw disable usage of FFTW
1471 --disable-cpu-clip disable tricky cpu specific clipper
1472 --disable-sndfile disable support for sndfile (default=autodetect)
1473
1474Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1478 both]
1479 --with-aix-soname=aix|svr4|both
1480 shared library versioning (aka "SONAME") variant to
1481 provide on AIX, [default=aix].
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1484 compiler's sysroot if not specified).
1485
1486Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CXX C++ compiler command
1495 CXXFLAGS C++ compiler flags
1496 LT_SYS_LIBRARY_PATH
1497 User-defined run-time library search path.
1498 CPP C preprocessor
1499 CXXCPP C++ preprocessor
1500 PKG_CONFIG path to pkg-config utility
1501 PKG_CONFIG_PATH
1502 directories to add to pkg-config's search path
1503 PKG_CONFIG_LIBDIR
1504 path overriding pkg-config's built-in search path
1505 SNDFILE_CFLAGS
1506 C compiler flags for SNDFILE, overriding pkg-config
1507 SNDFILE_LIBS
1508 linker flags for SNDFILE, overriding pkg-config
1509 FFTW3_CFLAGS
1510 C compiler flags for FFTW3, overriding pkg-config
1511 FFTW3_LIBS linker flags for FFTW3, overriding pkg-config
1512
1513Use these variables to override the choices made by `configure' or to help
1514it to find libraries and programs with nonstandard names/locations.
1515
1516Report bugs to <erikd@mega-nerd.com>.
1517libsamplerate home page: <http://www.mega-nerd.com/libsamplerate/>.
1518_ACEOF
1519ac_status=$?
1520fi
1521
1522if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" ||
1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1527 continue
1528 ac_builddir=.
1529
1530case "$ac_dir" in
1531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532*)
1533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 esac ;;
1540esac
1541ac_abs_top_builddir=$ac_pwd
1542ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543# for backward compatibility:
1544ac_top_builddir=$ac_top_build_prefix
1545
1546case $srcdir in
1547 .) # We are building in place.
1548 ac_srcdir=.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1555 *) # Relative name.
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559esac
1560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1570 else
1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1574 done
1575fi
1576
1577test -n "$ac_init_help" && exit $ac_status
1578if $ac_init_version; then
1579 cat <<\_ACEOF
1580libsamplerate configure 0.1.9
1581generated by GNU Autoconf 2.69
1582
1583Copyright (C) 2012 Free Software Foundation, Inc.
1584This configure script is free software; the Free Software Foundation
1585gives unlimited permission to copy, distribute and modify it.
1586_ACEOF
1587 exit
1588fi
1589
1590## ------------------------ ##
1591## Autoconf initialization. ##
1592## ------------------------ ##
1593
1594# ac_fn_c_try_compile LINENO
1595# --------------------------
1596# Try to compile conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_c_try_compile ()
1598{
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext
1601 if { { ac_try="$ac_compile"
1602case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext; then :
1620 ac_retval=0
1621else
1622 $as_echo "$as_me: failed program was:" >&5
1623sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626fi
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1629
1630} # ac_fn_c_try_compile
1631
1632# ac_fn_cxx_try_compile LINENO
1633# ----------------------------
1634# Try to compile conftest.$ac_ext, and return whether this succeeded.
1635ac_fn_cxx_try_compile ()
1636{
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext
1639 if { { ac_try="$ac_compile"
1640case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_compile") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_cxx_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest.$ac_objext; then :
1658 ac_retval=0
1659else
1660 $as_echo "$as_me: failed program was:" >&5
1661sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664fi
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1667
1668} # ac_fn_cxx_try_compile
1669
1670# ac_fn_c_try_link LINENO
1671# -----------------------
1672# Try to link conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_c_try_link ()
1674{
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1678case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 test -x conftest$ac_exeext
1698 }; then :
1699 ac_retval=0
1700else
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705fi
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_link
1715
1716# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1717# -------------------------------------------------------
1718# Tests whether HEADER exists and can be compiled using the include files in
1719# INCLUDES, setting the cache variable VAR accordingly.
1720ac_fn_c_check_header_compile ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724$as_echo_n "checking for $2... " >&6; }
1725if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1727else
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h. */
1730$4
1731#include <$2>
1732_ACEOF
1733if ac_fn_c_try_compile "$LINENO"; then :
1734 eval "$3=yes"
1735else
1736 eval "$3=no"
1737fi
1738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739fi
1740eval ac_res=\$$3
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742$as_echo "$ac_res" >&6; }
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744
1745} # ac_fn_c_check_header_compile
1746
1747# ac_fn_c_try_cpp LINENO
1748# ----------------------
1749# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1750ac_fn_c_try_cpp ()
1751{
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_cpp conftest.$ac_ext"
1754case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1766 fi
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } > conftest.i && {
1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1771 }; then :
1772 ac_retval=0
1773else
1774 $as_echo "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=1
1778fi
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1781
1782} # ac_fn_c_try_cpp
1783
1784# ac_fn_c_try_run LINENO
1785# ----------------------
1786# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1787# that executables *can* be run.
1788ac_fn_c_try_run ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_link"
1792case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1802 { { case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_try") 2>&5
1809 ac_status=$?
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; }; }; then :
1812 ac_retval=0
1813else
1814 $as_echo "$as_me: program exited with status $ac_status" >&5
1815 $as_echo "$as_me: failed program was:" >&5
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
1818 ac_retval=$ac_status
1819fi
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1823
1824} # ac_fn_c_try_run
1825
1826# ac_fn_c_check_func LINENO FUNC VAR
1827# ----------------------------------
1828# Tests whether FUNC exists, setting the cache variable VAR accordingly
1829ac_fn_c_check_func ()
1830{
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833$as_echo_n "checking for $2... " >&6; }
1834if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1836else
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h. */
1839/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841#define $2 innocuous_$2
1842
1843/* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1847
1848#ifdef __STDC__
1849# include <limits.h>
1850#else
1851# include <assert.h>
1852#endif
1853
1854#undef $2
1855
1856/* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1859#ifdef __cplusplus
1860extern "C"
1861#endif
1862char $2 ();
1863/* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866#if defined __stub_$2 || defined __stub___$2
1867choke me
1868#endif
1869
1870int
1871main ()
1872{
1873return $2 ();
1874 ;
1875 return 0;
1876}
1877_ACEOF
1878if ac_fn_c_try_link "$LINENO"; then :
1879 eval "$3=yes"
1880else
1881 eval "$3=no"
1882fi
1883rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1885fi
1886eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891} # ac_fn_c_check_func
1892
1893# ac_fn_cxx_try_cpp LINENO
1894# ------------------------
1895# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896ac_fn_cxx_try_cpp ()
1897{
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_cpp conftest.$ac_ext"
1900case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903esac
1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905$as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1912 fi
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } > conftest.i && {
1915 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1916 test ! -s conftest.err
1917 }; then :
1918 ac_retval=0
1919else
1920 $as_echo "$as_me: failed program was:" >&5
1921sed 's/^/| /' conftest.$ac_ext >&5
1922
1923 ac_retval=1
1924fi
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1927
1928} # ac_fn_cxx_try_cpp
1929
1930# ac_fn_cxx_try_link LINENO
1931# -------------------------
1932# Try to link conftest.$ac_ext, and return whether this succeeded.
1933ac_fn_cxx_try_link ()
1934{
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 rm -f conftest.$ac_objext conftest$ac_exeext
1937 if { { ac_try="$ac_link"
1938case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941esac
1942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943$as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1950 fi
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && {
1953 test -z "$ac_cxx_werror_flag" ||
1954 test ! -s conftest.err
1955 } && test -s conftest$ac_exeext && {
1956 test "$cross_compiling" = yes ||
1957 test -x conftest$ac_exeext
1958 }; then :
1959 ac_retval=0
1960else
1961 $as_echo "$as_me: failed program was:" >&5
1962sed 's/^/| /' conftest.$ac_ext >&5
1963
1964 ac_retval=1
1965fi
1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968 # interfere with the next link command; also delete a directory that is
1969 # left behind by Apple's compiler. We do this before executing the actions.
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1973
1974} # ac_fn_cxx_try_link
1975
1976# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1977# -------------------------------------------------------
1978# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1979# the include files in INCLUDES and setting the cache variable VAR
1980# accordingly.
1981ac_fn_c_check_header_mongrel ()
1982{
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if eval \${$3+:} false; then :
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986$as_echo_n "checking for $2... " >&6; }
1987if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1989fi
1990eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992$as_echo "$ac_res" >&6; }
1993else
1994 # Is the header compilable?
1995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1996$as_echo_n "checking $2 usability... " >&6; }
1997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h. */
1999$4
2000#include <$2>
2001_ACEOF
2002if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_header_compiler=yes
2004else
2005 ac_header_compiler=no
2006fi
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2009$as_echo "$ac_header_compiler" >&6; }
2010
2011# Is the header present?
2012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2013$as_echo_n "checking $2 presence... " >&6; }
2014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h. */
2016#include <$2>
2017_ACEOF
2018if ac_fn_c_try_cpp "$LINENO"; then :
2019 ac_header_preproc=yes
2020else
2021 ac_header_preproc=no
2022fi
2023rm -f conftest.err conftest.i conftest.$ac_ext
2024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2025$as_echo "$ac_header_preproc" >&6; }
2026
2027# So? What about this header?
2028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2029 yes:no: )
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2031$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 ;;
2035 no:yes:* )
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2037$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2039$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2041$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2043$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2045$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2046( $as_echo "## ---------------------------------- ##
2047## Report this to erikd@mega-nerd.com ##
2048## ---------------------------------- ##"
2049 ) | sed "s/^/$as_me: WARNING: /" >&2
2050 ;;
2051esac
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053$as_echo_n "checking for $2... " >&6; }
2054if eval \${$3+:} false; then :
2055 $as_echo_n "(cached) " >&6
2056else
2057 eval "$3=\$ac_header_compiler"
2058fi
2059eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061$as_echo "$ac_res" >&6; }
2062fi
2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064
2065} # ac_fn_c_check_header_mongrel
2066
2067# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2068# --------------------------------------------
2069# Tries to find the compile-time value of EXPR in a program that includes
2070# INCLUDES, setting VAR accordingly. Returns whether the value could be
2071# computed
2072ac_fn_c_compute_int ()
2073{
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 if test "$cross_compiling" = yes; then
2076 # Depending upon the size, compute the lo and hi bounds.
2077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078/* end confdefs.h. */
2079$4
2080int
2081main ()
2082{
2083static int test_array [1 - 2 * !(($2) >= 0)];
2084test_array [0] = 0;
2085return test_array [0];
2086
2087 ;
2088 return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
2092 ac_lo=0 ac_mid=0
2093 while :; do
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h. */
2096$4
2097int
2098main ()
2099{
2100static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2101test_array [0] = 0;
2102return test_array [0];
2103
2104 ;
2105 return 0;
2106}
2107_ACEOF
2108if ac_fn_c_try_compile "$LINENO"; then :
2109 ac_hi=$ac_mid; break
2110else
2111 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2112 if test $ac_lo -le $ac_mid; then
2113 ac_lo= ac_hi=
2114 break
2115 fi
2116 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2117fi
2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 done
2120else
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122/* end confdefs.h. */
2123$4
2124int
2125main ()
2126{
2127static int test_array [1 - 2 * !(($2) < 0)];
2128test_array [0] = 0;
2129return test_array [0];
2130
2131 ;
2132 return 0;
2133}
2134_ACEOF
2135if ac_fn_c_try_compile "$LINENO"; then :
2136 ac_hi=-1 ac_mid=-1
2137 while :; do
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139/* end confdefs.h. */
2140$4
2141int
2142main ()
2143{
2144static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2145test_array [0] = 0;
2146return test_array [0];
2147
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_compile "$LINENO"; then :
2153 ac_lo=$ac_mid; break
2154else
2155 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2156 if test $ac_mid -le $ac_hi; then
2157 ac_lo= ac_hi=
2158 break
2159 fi
2160 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2161fi
2162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 done
2164else
2165 ac_lo= ac_hi=
2166fi
2167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168fi
2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170# Binary search between lo and hi bounds.
2171while test "x$ac_lo" != "x$ac_hi"; do
2172 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174/* end confdefs.h. */
2175$4
2176int
2177main ()
2178{
2179static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2180test_array [0] = 0;
2181return test_array [0];
2182
2183 ;
2184 return 0;
2185}
2186_ACEOF
2187if ac_fn_c_try_compile "$LINENO"; then :
2188 ac_hi=$ac_mid
2189else
2190 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2191fi
2192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193done
2194case $ac_lo in #((
2195?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2196'') ac_retval=1 ;;
2197esac
2198 else
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200/* end confdefs.h. */
2201$4
2202static long int longval () { return $2; }
2203static unsigned long int ulongval () { return $2; }
2204#include <stdio.h>
2205#include <stdlib.h>
2206int
2207main ()
2208{
2209
2210 FILE *f = fopen ("conftest.val", "w");
2211 if (! f)
2212 return 1;
2213 if (($2) < 0)
2214 {
2215 long int i = longval ();
2216 if (i != ($2))
2217 return 1;
2218 fprintf (f, "%ld", i);
2219 }
2220 else
2221 {
2222 unsigned long int i = ulongval ();
2223 if (i != ($2))
2224 return 1;
2225 fprintf (f, "%lu", i);
2226 }
2227 /* Do not output a trailing newline, as this causes \r\n confusion
2228 on some platforms. */
2229 return ferror (f) || fclose (f) != 0;
2230
2231 ;
2232 return 0;
2233}
2234_ACEOF
2235if ac_fn_c_try_run "$LINENO"; then :
2236 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2237else
2238 ac_retval=1
2239fi
2240rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2241 conftest.$ac_objext conftest.beam conftest.$ac_ext
2242rm -f conftest.val
2243
2244 fi
2245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2246 as_fn_set_status $ac_retval
2247
2248} # ac_fn_c_compute_int
2249cat >config.log <<_ACEOF
2250This file contains any messages produced by compilers while
2251running configure, to aid debugging if configure makes a mistake.
2252
2253It was created by libsamplerate $as_me 0.1.9, which was
2254generated by GNU Autoconf 2.69. Invocation command line was
2255
2256 $ $0 $@
2257
2258_ACEOF
2259exec 5>>config.log
2260{
2261cat <<_ASUNAME
2262## --------- ##
2263## Platform. ##
2264## --------- ##
2265
2266hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2267uname -m = `(uname -m) 2>/dev/null || echo unknown`
2268uname -r = `(uname -r) 2>/dev/null || echo unknown`
2269uname -s = `(uname -s) 2>/dev/null || echo unknown`
2270uname -v = `(uname -v) 2>/dev/null || echo unknown`
2271
2272/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2273/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2274
2275/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2276/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2277/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2278/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2279/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2280/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2281/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2282
2283_ASUNAME
2284
2285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286for as_dir in $PATH
2287do
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 $as_echo "PATH: $as_dir"
2291 done
2292IFS=$as_save_IFS
2293
2294} >&5
2295
2296cat >&5 <<_ACEOF
2297
2298
2299## ----------- ##
2300## Core tests. ##
2301## ----------- ##
2302
2303_ACEOF
2304
2305
2306# Keep a trace of the command line.
2307# Strip out --no-create and --no-recursion so they do not pile up.
2308# Strip out --silent because we don't want to record it for future runs.
2309# Also quote any args containing shell meta-characters.
2310# Make two passes to allow for proper duplicate-argument suppression.
2311ac_configure_args=
2312ac_configure_args0=
2313ac_configure_args1=
2314ac_must_keep_next=false
2315for ac_pass in 1 2
2316do
2317 for ac_arg
2318 do
2319 case $ac_arg in
2320 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2322 | -silent | --silent | --silen | --sile | --sil)
2323 continue ;;
2324 *\'*)
2325 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2326 esac
2327 case $ac_pass in
2328 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2329 2)
2330 as_fn_append ac_configure_args1 " '$ac_arg'"
2331 if test $ac_must_keep_next = true; then
2332 ac_must_keep_next=false # Got value, back to normal.
2333 else
2334 case $ac_arg in
2335 *=* | --config-cache | -C | -disable-* | --disable-* \
2336 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2337 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2338 | -with-* | --with-* | -without-* | --without-* | --x)
2339 case "$ac_configure_args0 " in
2340 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2341 esac
2342 ;;
2343 -* ) ac_must_keep_next=true ;;
2344 esac
2345 fi
2346 as_fn_append ac_configure_args " '$ac_arg'"
2347 ;;
2348 esac
2349 done
2350done
2351{ ac_configure_args0=; unset ac_configure_args0;}
2352{ ac_configure_args1=; unset ac_configure_args1;}
2353
2354# When interrupted or exit'd, cleanup temporary files, and complete
2355# config.log. We remove comments because anyway the quotes in there
2356# would cause problems or look ugly.
2357# WARNING: Use '\'' to represent an apostrophe within the trap.
2358# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2359trap 'exit_status=$?
2360 # Save into config.log some information that might help in debugging.
2361 {
2362 echo
2363
2364 $as_echo "## ---------------- ##
2365## Cache variables. ##
2366## ---------------- ##"
2367 echo
2368 # The following way of writing the cache mishandles newlines in values,
2369(
2370 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2371 eval ac_val=\$$ac_var
2372 case $ac_val in #(
2373 *${as_nl}*)
2374 case $ac_var in #(
2375 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2376$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2377 esac
2378 case $ac_var in #(
2379 _ | IFS | as_nl) ;; #(
2380 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2381 *) { eval $ac_var=; unset $ac_var;} ;;
2382 esac ;;
2383 esac
2384 done
2385 (set) 2>&1 |
2386 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2387 *${as_nl}ac_space=\ *)
2388 sed -n \
2389 "s/'\''/'\''\\\\'\'''\''/g;
2390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2391 ;; #(
2392 *)
2393 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2394 ;;
2395 esac |
2396 sort
2397)
2398 echo
2399
2400 $as_echo "## ----------------- ##
2401## Output variables. ##
2402## ----------------- ##"
2403 echo
2404 for ac_var in $ac_subst_vars
2405 do
2406 eval ac_val=\$$ac_var
2407 case $ac_val in
2408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2409 esac
2410 $as_echo "$ac_var='\''$ac_val'\''"
2411 done | sort
2412 echo
2413
2414 if test -n "$ac_subst_files"; then
2415 $as_echo "## ------------------- ##
2416## File substitutions. ##
2417## ------------------- ##"
2418 echo
2419 for ac_var in $ac_subst_files
2420 do
2421 eval ac_val=\$$ac_var
2422 case $ac_val in
2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424 esac
2425 $as_echo "$ac_var='\''$ac_val'\''"
2426 done | sort
2427 echo
2428 fi
2429
2430 if test -s confdefs.h; then
2431 $as_echo "## ----------- ##
2432## confdefs.h. ##
2433## ----------- ##"
2434 echo
2435 cat confdefs.h
2436 echo
2437 fi
2438 test "$ac_signal" != 0 &&
2439 $as_echo "$as_me: caught signal $ac_signal"
2440 $as_echo "$as_me: exit $exit_status"
2441 } >&5
2442 rm -f core *.core core.conftest.* &&
2443 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2444 exit $exit_status
2445' 0
2446for ac_signal in 1 2 13 15; do
2447 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2448done
2449ac_signal=0
2450
2451# confdefs.h avoids OS command line length limits that DEFS can exceed.
2452rm -f -r conftest* confdefs.h
2453
2454$as_echo "/* confdefs.h */" > confdefs.h
2455
2456# Predefined preprocessor variables.
2457
2458cat >>confdefs.h <<_ACEOF
2459#define PACKAGE_NAME "$PACKAGE_NAME"
2460_ACEOF
2461
2462cat >>confdefs.h <<_ACEOF
2463#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2464_ACEOF
2465
2466cat >>confdefs.h <<_ACEOF
2467#define PACKAGE_VERSION "$PACKAGE_VERSION"
2468_ACEOF
2469
2470cat >>confdefs.h <<_ACEOF
2471#define PACKAGE_STRING "$PACKAGE_STRING"
2472_ACEOF
2473
2474cat >>confdefs.h <<_ACEOF
2475#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2476_ACEOF
2477
2478cat >>confdefs.h <<_ACEOF
2479#define PACKAGE_URL "$PACKAGE_URL"
2480_ACEOF
2481
2482
2483# Let the site file select an alternate cache file if it wants to.
2484# Prefer an explicitly selected file to automatically selected ones.
2485ac_site_file1=NONE
2486ac_site_file2=NONE
2487if test -n "$CONFIG_SITE"; then
2488 # We do not want a PATH search for config.site.
2489 case $CONFIG_SITE in #((
2490 -*) ac_site_file1=./$CONFIG_SITE;;
2491 */*) ac_site_file1=$CONFIG_SITE;;
2492 *) ac_site_file1=./$CONFIG_SITE;;
2493 esac
2494elif test "x$prefix" != xNONE; then
2495 ac_site_file1=$prefix/share/config.site
2496 ac_site_file2=$prefix/etc/config.site
2497else
2498 ac_site_file1=$ac_default_prefix/share/config.site
2499 ac_site_file2=$ac_default_prefix/etc/config.site
2500fi
2501for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2502do
2503 test "x$ac_site_file" = xNONE && continue
2504 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2506$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2507 sed 's/^/| /' "$ac_site_file" >&5
2508 . "$ac_site_file" \
2509 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2511as_fn_error $? "failed to load site script $ac_site_file
2512See \`config.log' for more details" "$LINENO" 5; }
2513 fi
2514done
2515
2516if test -r "$cache_file"; then
2517 # Some versions of bash will fail to source /dev/null (special files
2518 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2519 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2521$as_echo "$as_me: loading cache $cache_file" >&6;}
2522 case $cache_file in
2523 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2524 *) . "./$cache_file";;
2525 esac
2526 fi
2527else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2529$as_echo "$as_me: creating cache $cache_file" >&6;}
2530 >$cache_file
2531fi
2532
2533# Check that the precious variables saved in the cache have kept the same
2534# value.
2535ac_cache_corrupted=false
2536for ac_var in $ac_precious_vars; do
2537 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2538 eval ac_new_set=\$ac_env_${ac_var}_set
2539 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2540 eval ac_new_val=\$ac_env_${ac_var}_value
2541 case $ac_old_set,$ac_new_set in
2542 set,)
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2544$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2545 ac_cache_corrupted=: ;;
2546 ,set)
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2548$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2550 ,);;
2551 *)
2552 if test "x$ac_old_val" != "x$ac_new_val"; then
2553 # differences in whitespace do not lead to failure.
2554 ac_old_val_w=`echo x $ac_old_val`
2555 ac_new_val_w=`echo x $ac_new_val`
2556 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2558$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2559 ac_cache_corrupted=:
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2562$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2563 eval $ac_var=\$ac_old_val
2564 fi
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2566$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2568$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2569 fi;;
2570 esac
2571 # Pass precious variables to config.status.
2572 if test "$ac_new_set" = set; then
2573 case $ac_new_val in
2574 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2575 *) ac_arg=$ac_var=$ac_new_val ;;
2576 esac
2577 case " $ac_configure_args " in
2578 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2579 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2580 esac
2581 fi
2582done
2583if $ac_cache_corrupted; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2587$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2588 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2589fi
2590## -------------------- ##
2591## Main body of script. ##
2592## -------------------- ##
2593
2594ac_ext=c
2595ac_cpp='$CPP $CPPFLAGS'
2596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598ac_compiler_gnu=$ac_cv_c_compiler_gnu
2599
2600
2601
2602# Put config stuff in Cfg.
2603ac_aux_dir=
2604for ac_dir in Cfg "$srcdir"/Cfg; do
2605 if test -f "$ac_dir/install-sh"; then
2606 ac_aux_dir=$ac_dir
2607 ac_install_sh="$ac_aux_dir/install-sh -c"
2608 break
2609 elif test -f "$ac_dir/install.sh"; then
2610 ac_aux_dir=$ac_dir
2611 ac_install_sh="$ac_aux_dir/install.sh -c"
2612 break
2613 elif test -f "$ac_dir/shtool"; then
2614 ac_aux_dir=$ac_dir
2615 ac_install_sh="$ac_aux_dir/shtool install -c"
2616 break
2617 fi
2618done
2619if test -z "$ac_aux_dir"; then
2620 as_fn_error $? "cannot find install-sh, install.sh, or shtool in Cfg \"$srcdir\"/Cfg" "$LINENO" 5
2621fi
2622
2623# These three variables are undocumented and unsupported,
2624# and are intended to be withdrawn in a future Autoconf release.
2625# They can cause serious problems if a builder's source tree is in a directory
2626# whose full name contains unusual characters.
2627ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2628ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2629ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2630
2631
2632
2633
2634# Make sure we can run config.sub.
2635$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2636 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2637
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2639$as_echo_n "checking build system type... " >&6; }
2640if ${ac_cv_build+:} false; then :
2641 $as_echo_n "(cached) " >&6
2642else
2643 ac_build_alias=$build_alias
2644test "x$ac_build_alias" = x &&
2645 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2646test "x$ac_build_alias" = x &&
2647 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2648ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2649 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2650
2651fi
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2653$as_echo "$ac_cv_build" >&6; }
2654case $ac_cv_build in
2655*-*-*) ;;
2656*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2657esac
2658build=$ac_cv_build
2659ac_save_IFS=$IFS; IFS='-'
2660set x $ac_cv_build
2661shift
2662build_cpu=$1
2663build_vendor=$2
2664shift; shift
2665# Remember, the first character of IFS is used to create $*,
2666# except with old shells:
2667build_os=$*
2668IFS=$ac_save_IFS
2669case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2670
2671
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2673$as_echo_n "checking host system type... " >&6; }
2674if ${ac_cv_host+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676else
2677 if test "x$host_alias" = x; then
2678 ac_cv_host=$ac_cv_build
2679else
2680 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2681 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2682fi
2683
2684fi
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2686$as_echo "$ac_cv_host" >&6; }
2687case $ac_cv_host in
2688*-*-*) ;;
2689*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2690esac
2691host=$ac_cv_host
2692ac_save_IFS=$IFS; IFS='-'
2693set x $ac_cv_host
2694shift
2695host_cpu=$1
2696host_vendor=$2
2697shift; shift
2698# Remember, the first character of IFS is used to create $*,
2699# except with old shells:
2700host_os=$*
2701IFS=$ac_save_IFS
2702case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2703
2704
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2706$as_echo_n "checking target system type... " >&6; }
2707if ${ac_cv_target+:} false; then :
2708 $as_echo_n "(cached) " >&6
2709else
2710 if test "x$target_alias" = x; then
2711 ac_cv_target=$ac_cv_host
2712else
2713 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2714 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2715fi
2716
2717fi
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2719$as_echo "$ac_cv_target" >&6; }
2720case $ac_cv_target in
2721*-*-*) ;;
2722*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2723esac
2724target=$ac_cv_target
2725ac_save_IFS=$IFS; IFS='-'
2726set x $ac_cv_target
2727shift
2728target_cpu=$1
2729target_vendor=$2
2730shift; shift
2731# Remember, the first character of IFS is used to create $*,
2732# except with old shells:
2733target_os=$*
2734IFS=$ac_save_IFS
2735case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2736
2737
2738# The aliases save the names the user supplied, while $host etc.
2739# will get canonicalized.
2740test -n "$target_alias" &&
2741 test "$program_prefix$program_suffix$program_transform_name" = \
2742 NONENONEs,x,x, &&
2743 program_prefix=${target_alias}-
2744
2745
2746ac_config_headers="$ac_config_headers src/config.h"
2747
2748
2749am__api_version='1.15'
2750
2751# Find a good install program. We prefer a C program (faster),
2752# so one script is as good as another. But avoid the broken or
2753# incompatible versions:
2754# SysV /etc/install, /usr/sbin/install
2755# SunOS /usr/etc/install
2756# IRIX /sbin/install
2757# AIX /bin/install
2758# AmigaOS /C/install, which installs bootblocks on floppy discs
2759# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2760# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2761# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2762# OS/2's system install, which has a completely different semantic
2763# ./install, which can be erroneously created by make from ./install.sh.
2764# Reject install programs that cannot install multiple files.
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2766$as_echo_n "checking for a BSD-compatible install... " >&6; }
2767if test -z "$INSTALL"; then
2768if ${ac_cv_path_install+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH
2773do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 # Account for people who put trailing slashes in PATH elements.
2777case $as_dir/ in #((
2778 ./ | .// | /[cC]/* | \
2779 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2780 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2781 /usr/ucb/* ) ;;
2782 *)
2783 # OSF1 and SCO ODT 3.0 have their own names for install.
2784 # Don't use installbsd from OSF since it installs stuff as root
2785 # by default.
2786 for ac_prog in ginstall scoinst install; do
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2789 if test $ac_prog = install &&
2790 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2791 # AIX install. It has an incompatible calling convention.
2792 :
2793 elif test $ac_prog = install &&
2794 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2795 # program-specific install script used by HP pwplus--don't use.
2796 :
2797 else
2798 rm -rf conftest.one conftest.two conftest.dir
2799 echo one > conftest.one
2800 echo two > conftest.two
2801 mkdir conftest.dir
2802 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2803 test -s conftest.one && test -s conftest.two &&
2804 test -s conftest.dir/conftest.one &&
2805 test -s conftest.dir/conftest.two
2806 then
2807 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2808 break 3
2809 fi
2810 fi
2811 fi
2812 done
2813 done
2814 ;;
2815esac
2816
2817 done
2818IFS=$as_save_IFS
2819
2820rm -rf conftest.one conftest.two conftest.dir
2821
2822fi
2823 if test "${ac_cv_path_install+set}" = set; then
2824 INSTALL=$ac_cv_path_install
2825 else
2826 # As a last resort, use the slow shell script. Don't cache a
2827 # value for INSTALL within a source directory, because that will
2828 # break other packages using the cache if that directory is
2829 # removed, or if the value is a relative name.
2830 INSTALL=$ac_install_sh
2831 fi
2832fi
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2834$as_echo "$INSTALL" >&6; }
2835
2836# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2837# It thinks the first close brace ends the variable substitution.
2838test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2839
2840test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2841
2842test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2843
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2845$as_echo_n "checking whether build environment is sane... " >&6; }
2846# Reject unsafe characters in $srcdir or the absolute working directory
2847# name. Accept space and tab only in the latter.
2848am_lf='
2849'
2850case `pwd` in
2851 *[\\\"\#\$\&\'\`$am_lf]*)
2852 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2853esac
2854case $srcdir in
2855 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2856 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2857esac
2858
2859# Do 'set' in a subshell so we don't clobber the current shell's
2860# arguments. Must try -L first in case configure is actually a
2861# symlink; some systems play weird games with the mod time of symlinks
2862# (eg FreeBSD returns the mod time of the symlink's containing
2863# directory).
2864if (
2865 am_has_slept=no
2866 for am_try in 1 2; do
2867 echo "timestamp, slept: $am_has_slept" > conftest.file
2868 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2869 if test "$*" = "X"; then
2870 # -L didn't work.
2871 set X `ls -t "$srcdir/configure" conftest.file`
2872 fi
2873 if test "$*" != "X $srcdir/configure conftest.file" \
2874 && test "$*" != "X conftest.file $srcdir/configure"; then
2875
2876 # If neither matched, then we have a broken ls. This can happen
2877 # if, for instance, CONFIG_SHELL is bash and it inherits a
2878 # broken ls alias from the environment. This has actually
2879 # happened. Such a system could not be considered "sane".
2880 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2881 alias in your environment" "$LINENO" 5
2882 fi
2883 if test "$2" = conftest.file || test $am_try -eq 2; then
2884 break
2885 fi
2886 # Just in case.
2887 sleep 1
2888 am_has_slept=yes
2889 done
2890 test "$2" = conftest.file
2891 )
2892then
2893 # Ok.
2894 :
2895else
2896 as_fn_error $? "newly created file is older than distributed files!
2897Check your system clock" "$LINENO" 5
2898fi
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2900$as_echo "yes" >&6; }
2901# If we didn't sleep, we still need to ensure time stamps of config.status and
2902# generated files are strictly newer.
2903am_sleep_pid=
2904if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2905 ( sleep 1 ) &
2906 am_sleep_pid=$!
2907fi
2908
2909rm -f conftest.file
2910
2911test "$program_prefix" != NONE &&
2912 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2913# Use a double $ so make ignores it.
2914test "$program_suffix" != NONE &&
2915 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2916# Double any \ or $.
2917# By default was `s,x,x', remove it if useless.
2918ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2919program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2920
2921# Expand $ac_aux_dir to an absolute path.
2922am_aux_dir=`cd "$ac_aux_dir" && pwd`
2923
2924if test x"${MISSING+set}" != xset; then
2925 case $am_aux_dir in
2926 *\ * | *\ *)
2927 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2928 *)
2929 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2930 esac
2931fi
2932# Use eval to expand $SHELL
2933if eval "$MISSING --is-lightweight"; then
2934 am_missing_run="$MISSING "
2935else
2936 am_missing_run=
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2938$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2939fi
2940
2941if test x"${install_sh+set}" != xset; then
2942 case $am_aux_dir in
2943 *\ * | *\ *)
2944 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2945 *)
2946 install_sh="\${SHELL} $am_aux_dir/install-sh"
2947 esac
2948fi
2949
2950# Installed binaries are usually stripped using 'strip' when the user
2951# run "make install-strip". However 'strip' might not be the right
2952# tool to use in cross-compilation environments, therefore Automake
2953# will honor the 'STRIP' environment variable to overrule this program.
2954if test "$cross_compiling" != no; then
2955 if test -n "$ac_tool_prefix"; then
2956 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2957set dummy ${ac_tool_prefix}strip; ac_word=$2
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959$as_echo_n "checking for $ac_word... " >&6; }
2960if ${ac_cv_prog_STRIP+:} false; then :
2961 $as_echo_n "(cached) " >&6
2962else
2963 if test -n "$STRIP"; then
2964 ac_cv_prog_STRIP="$STRIP" # 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=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 break 2
2976 fi
2977done
2978 done
2979IFS=$as_save_IFS
2980
2981fi
2982fi
2983STRIP=$ac_cv_prog_STRIP
2984if test -n "$STRIP"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2986$as_echo "$STRIP" >&6; }
2987else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989$as_echo "no" >&6; }
2990fi
2991
2992
2993fi
2994if test -z "$ac_cv_prog_STRIP"; then
2995 ac_ct_STRIP=$STRIP
2996 # Extract the first word of "strip", so it can be a program name with args.
2997set dummy strip; ac_word=$2
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999$as_echo_n "checking for $ac_word... " >&6; }
3000if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002else
3003 if test -n "$ac_ct_STRIP"; then
3004 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3005else
3006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007for as_dir in $PATH
3008do
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013 ac_cv_prog_ac_ct_STRIP="strip"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 break 2
3016 fi
3017done
3018 done
3019IFS=$as_save_IFS
3020
3021fi
3022fi
3023ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3024if test -n "$ac_ct_STRIP"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3026$as_echo "$ac_ct_STRIP" >&6; }
3027else
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029$as_echo "no" >&6; }
3030fi
3031
3032 if test "x$ac_ct_STRIP" = x; then
3033 STRIP=":"
3034 else
3035 case $cross_compiling:$ac_tool_warned in
3036yes:)
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3039ac_tool_warned=yes ;;
3040esac
3041 STRIP=$ac_ct_STRIP
3042 fi
3043else
3044 STRIP="$ac_cv_prog_STRIP"
3045fi
3046
3047fi
3048INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3049
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3051$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3052if test -z "$MKDIR_P"; then
3053 if ${ac_cv_path_mkdir+:} false; then :
3054 $as_echo_n "(cached) " >&6
3055else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3058do
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_prog in mkdir gmkdir; do
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3064 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3065 'mkdir (GNU coreutils) '* | \
3066 'mkdir (coreutils) '* | \
3067 'mkdir (fileutils) '4.1*)
3068 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3069 break 3;;
3070 esac
3071 done
3072 done
3073 done
3074IFS=$as_save_IFS
3075
3076fi
3077
3078 test -d ./--version && rmdir ./--version
3079 if test "${ac_cv_path_mkdir+set}" = set; then
3080 MKDIR_P="$ac_cv_path_mkdir -p"
3081 else
3082 # As a last resort, use the slow shell script. Don't cache a
3083 # value for MKDIR_P within a source directory, because that will
3084 # break other packages using the cache if that directory is
3085 # removed, or if the value is a relative name.
3086 MKDIR_P="$ac_install_sh -d"
3087 fi
3088fi
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3090$as_echo "$MKDIR_P" >&6; }
3091
3092for ac_prog in gawk mawk nawk awk
3093do
3094 # Extract the first word of "$ac_prog", so it can be a program name with args.
3095set dummy $ac_prog; ac_word=$2
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097$as_echo_n "checking for $ac_word... " >&6; }
3098if ${ac_cv_prog_AWK+:} false; then :
3099 $as_echo_n "(cached) " >&6
3100else
3101 if test -n "$AWK"; then
3102 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3103else
3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105for as_dir in $PATH
3106do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_AWK="$ac_prog"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115done
3116 done
3117IFS=$as_save_IFS
3118
3119fi
3120fi
3121AWK=$ac_cv_prog_AWK
3122if test -n "$AWK"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3124$as_echo "$AWK" >&6; }
3125else
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127$as_echo "no" >&6; }
3128fi
3129
3130
3131 test -n "$AWK" && break
3132done
3133
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3135$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3136set x ${MAKE-make}
3137ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3138if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3139 $as_echo_n "(cached) " >&6
3140else
3141 cat >conftest.make <<\_ACEOF
3142SHELL = /bin/sh
3143all:
3144 @echo '@@@%%%=$(MAKE)=@@@%%%'
3145_ACEOF
3146# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3147case `${MAKE-make} -f conftest.make 2>/dev/null` in
3148 *@@@%%%=?*=@@@%%%*)
3149 eval ac_cv_prog_make_${ac_make}_set=yes;;
3150 *)
3151 eval ac_cv_prog_make_${ac_make}_set=no;;
3152esac
3153rm -f conftest.make
3154fi
3155if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3157$as_echo "yes" >&6; }
3158 SET_MAKE=
3159else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161$as_echo "no" >&6; }
3162 SET_MAKE="MAKE=${MAKE-make}"
3163fi
3164
3165rm -rf .tst 2>/dev/null
3166mkdir .tst 2>/dev/null
3167if test -d .tst; then
3168 am__leading_dot=.
3169else
3170 am__leading_dot=_
3171fi
3172rmdir .tst 2>/dev/null
3173
3174# Check whether --enable-silent-rules was given.
3175if test "${enable_silent_rules+set}" = set; then :
3176 enableval=$enable_silent_rules;
3177fi
3178
3179case $enable_silent_rules in # (((
3180 yes) AM_DEFAULT_VERBOSITY=0;;
3181 no) AM_DEFAULT_VERBOSITY=1;;
3182 *) AM_DEFAULT_VERBOSITY=1;;
3183esac
3184am_make=${MAKE-make}
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3186$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3187if ${am_cv_make_support_nested_variables+:} false; then :
3188 $as_echo_n "(cached) " >&6
3189else
3190 if $as_echo 'TRUE=$(BAR$(V))
3191BAR0=false
3192BAR1=true
3193V=1
3194am__doit:
3195 @$(TRUE)
3196.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3197 am_cv_make_support_nested_variables=yes
3198else
3199 am_cv_make_support_nested_variables=no
3200fi
3201fi
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3203$as_echo "$am_cv_make_support_nested_variables" >&6; }
3204if test $am_cv_make_support_nested_variables = yes; then
3205 AM_V='$(V)'
3206 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3207else
3208 AM_V=$AM_DEFAULT_VERBOSITY
3209 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3210fi
3211AM_BACKSLASH='\'
3212
3213if test "`cd $srcdir && pwd`" != "`pwd`"; then
3214 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3215 # is not polluted with repeated "-I."
3216 am__isrc=' -I$(srcdir)'
3217 # test to see if srcdir already configured
3218 if test -f $srcdir/config.status; then
3219 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3220 fi
3221fi
3222
3223# test whether we have cygpath
3224if test -z "$CYGPATH_W"; then
3225 if (cygpath --version) >/dev/null 2>/dev/null; then
3226 CYGPATH_W='cygpath -w'
3227 else
3228 CYGPATH_W=echo
3229 fi
3230fi
3231
3232
3233# Define the identity of the package.
3234
3235 PACKAGE=$PACKAGE_NAME
3236 VERSION=$PACKAGE_VERSION
3237
3238
3239cat >>confdefs.h <<_ACEOF
3240#define PACKAGE "$PACKAGE"
3241_ACEOF
3242
3243
3244cat >>confdefs.h <<_ACEOF
3245#define VERSION "$VERSION"
3246_ACEOF
3247
3248# Some tools Automake needs.
3249
3250ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3251
3252
3253AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3254
3255
3256AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3257
3258
3259AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3260
3261
3262MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3263
3264# For better backward compatibility. To be removed once Automake 1.9.x
3265# dies out for good. For more background, see:
3266# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3267# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3268mkdir_p='$(MKDIR_P)'
3269
3270# We need awk for the "check" target (and possibly the TAP driver). The
3271# system "awk" is bad on some platforms.
3272# Always define AMTAR for backward compatibility. Yes, it's still used
3273# in the wild :-( We should find a proper way to deprecate it ...
3274AMTAR='$${TAR-tar}'
3275
3276
3277# We'll loop over all known methods to create a tar archive until one works.
3278_am_tools='gnutar pax cpio none'
3279
3280am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3281
3282
3283
3284
3285
3286
3287# POSIX will say in a future version that running "rm -f" with no argument
3288# is OK; and we want to be able to make that assumption in our Makefile
3289# recipes. So use an aggressive probe to check that the usage we want is
3290# actually supported "in the wild" to an acceptable degree.
3291# See automake bug#10828.
3292# To make any issue more visible, cause the running configure to be aborted
3293# by default if the 'rm' program in use doesn't match our expectations; the
3294# user can still override this though.
3295if rm -f && rm -fr && rm -rf; then : OK; else
3296 cat >&2 <<'END'
3297Oops!
3298
3299Your 'rm' program seems unable to run without file operands specified
3300on the command line, even when the '-f' option is present. This is contrary
3301to the behaviour of most rm programs out there, and not conforming with
3302the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3303
3304Please tell bug-automake@gnu.org about your system, including the value
3305of your $PATH and any error possibly output before this message. This
3306can help us improve future automake versions.
3307
3308END
3309 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3310 echo 'Configuration will proceed anyway, since you have set the' >&2
3311 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3312 echo >&2
3313 else
3314 cat >&2 <<'END'
3315Aborting the configuration process, to ensure you take notice of the issue.
3316
3317You can download and install GNU coreutils to get an 'rm' implementation
3318that behaves properly: <http://www.gnu.org/software/coreutils/>.
3319
3320If you want to complete the configuration process using your problematic
3321'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3322to "yes", and re-run configure.
3323
3324END
3325 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3326 fi
3327fi
3328
3329# Check whether --enable-silent-rules was given.
3330if test "${enable_silent_rules+set}" = set; then :
3331 enableval=$enable_silent_rules;
3332fi
3333
3334case $enable_silent_rules in # (((
3335 yes) AM_DEFAULT_VERBOSITY=0;;
3336 no) AM_DEFAULT_VERBOSITY=1;;
3337 *) AM_DEFAULT_VERBOSITY=0;;
3338esac
3339am_make=${MAKE-make}
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3341$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3342if ${am_cv_make_support_nested_variables+:} false; then :
3343 $as_echo_n "(cached) " >&6
3344else
3345 if $as_echo 'TRUE=$(BAR$(V))
3346BAR0=false
3347BAR1=true
3348V=1
3349am__doit:
3350 @$(TRUE)
3351.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3352 am_cv_make_support_nested_variables=yes
3353else
3354 am_cv_make_support_nested_variables=no
3355fi
3356fi
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3358$as_echo "$am_cv_make_support_nested_variables" >&6; }
3359if test $am_cv_make_support_nested_variables = yes; then
3360 AM_V='$(V)'
3361 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3362else
3363 AM_V=$AM_DEFAULT_VERBOSITY
3364 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3365fi
3366AM_BACKSLASH='\'
3367
3368
3369ACLOCAL_AMFLAGS="-I M4"
3370
3371
3372ac_ext=c
3373ac_cpp='$CPP $CPPFLAGS'
3374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377
3378
3379ac_ext=c
3380ac_cpp='$CPP $CPPFLAGS'
3381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384if test -n "$ac_tool_prefix"; then
3385 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3386set dummy ${ac_tool_prefix}gcc; ac_word=$2
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388$as_echo_n "checking for $ac_word... " >&6; }
3389if ${ac_cv_prog_CC+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391else
3392 if test -n "$CC"; then
3393 ac_cv_prog_CC="$CC" # Let the user override the test.
3394else
3395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396for as_dir in $PATH
3397do
3398 IFS=$as_save_IFS
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 break 2
3405 fi
3406done
3407 done
3408IFS=$as_save_IFS
3409
3410fi
3411fi
3412CC=$ac_cv_prog_CC
3413if test -n "$CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415$as_echo "$CC" >&6; }
3416else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418$as_echo "no" >&6; }
3419fi
3420
3421
3422fi
3423if test -z "$ac_cv_prog_CC"; then
3424 ac_ct_CC=$CC
3425 # Extract the first word of "gcc", so it can be a program name with args.
3426set dummy gcc; ac_word=$2
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428$as_echo_n "checking for $ac_word... " >&6; }
3429if ${ac_cv_prog_ac_ct_CC+:} false; then :
3430 $as_echo_n "(cached) " >&6
3431else
3432 if test -n "$ac_ct_CC"; then
3433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3434else
3435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436for as_dir in $PATH
3437do
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_ac_ct_CC="gcc"
3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 break 2
3445 fi
3446done
3447 done
3448IFS=$as_save_IFS
3449
3450fi
3451fi
3452ac_ct_CC=$ac_cv_prog_ac_ct_CC
3453if test -n "$ac_ct_CC"; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3455$as_echo "$ac_ct_CC" >&6; }
3456else
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458$as_echo "no" >&6; }
3459fi
3460
3461 if test "x$ac_ct_CC" = x; then
3462 CC=""
3463 else
3464 case $cross_compiling:$ac_tool_warned in
3465yes:)
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3468ac_tool_warned=yes ;;
3469esac
3470 CC=$ac_ct_CC
3471 fi
3472else
3473 CC="$ac_cv_prog_CC"
3474fi
3475
3476if test -z "$CC"; then
3477 if test -n "$ac_tool_prefix"; then
3478 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3479set dummy ${ac_tool_prefix}cc; ac_word=$2
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481$as_echo_n "checking for $ac_word... " >&6; }
3482if ${ac_cv_prog_CC+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484else
3485 if test -n "$CC"; then
3486 ac_cv_prog_CC="$CC" # Let the user override the test.
3487else
3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489for as_dir in $PATH
3490do
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_CC="${ac_tool_prefix}cc"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3498 fi
3499done
3500 done
3501IFS=$as_save_IFS
3502
3503fi
3504fi
3505CC=$ac_cv_prog_CC
3506if test -n "$CC"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508$as_echo "$CC" >&6; }
3509else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511$as_echo "no" >&6; }
3512fi
3513
3514
3515 fi
3516fi
3517if test -z "$CC"; then
3518 # Extract the first word of "cc", so it can be a program name with args.
3519set dummy cc; ac_word=$2
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521$as_echo_n "checking for $ac_word... " >&6; }
3522if ${ac_cv_prog_CC+:} false; then :
3523 $as_echo_n "(cached) " >&6
3524else
3525 if test -n "$CC"; then
3526 ac_cv_prog_CC="$CC" # Let the user override the test.
3527else
3528 ac_prog_rejected=no
3529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530for as_dir in $PATH
3531do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3537 ac_prog_rejected=yes
3538 continue
3539 fi
3540 ac_cv_prog_CC="cc"
3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 break 2
3543 fi
3544done
3545 done
3546IFS=$as_save_IFS
3547
3548if test $ac_prog_rejected = yes; then
3549 # We found a bogon in the path, so make sure we never use it.
3550 set dummy $ac_cv_prog_CC
3551 shift
3552 if test $# != 0; then
3553 # We chose a different compiler from the bogus one.
3554 # However, it has the same basename, so the bogon will be chosen
3555 # first if we set CC to just the basename; use the full file name.
3556 shift
3557 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3558 fi
3559fi
3560fi
3561fi
3562CC=$ac_cv_prog_CC
3563if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565$as_echo "$CC" >&6; }
3566else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568$as_echo "no" >&6; }
3569fi
3570
3571
3572fi
3573if test -z "$CC"; then
3574 if test -n "$ac_tool_prefix"; then
3575 for ac_prog in cl.exe
3576 do
3577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3578set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580$as_echo_n "checking for $ac_word... " >&6; }
3581if ${ac_cv_prog_CC+:} false; then :
3582 $as_echo_n "(cached) " >&6
3583else
3584 if test -n "$CC"; then
3585 ac_cv_prog_CC="$CC" # Let the user override the test.
3586else
3587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588for as_dir in $PATH
3589do
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 break 2
3597 fi
3598done
3599 done
3600IFS=$as_save_IFS
3601
3602fi
3603fi
3604CC=$ac_cv_prog_CC
3605if test -n "$CC"; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3607$as_echo "$CC" >&6; }
3608else
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610$as_echo "no" >&6; }
3611fi
3612
3613
3614 test -n "$CC" && break
3615 done
3616fi
3617if test -z "$CC"; then
3618 ac_ct_CC=$CC
3619 for ac_prog in cl.exe
3620do
3621 # Extract the first word of "$ac_prog", so it can be a program name with args.
3622set dummy $ac_prog; ac_word=$2
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624$as_echo_n "checking for $ac_word... " >&6; }
3625if ${ac_cv_prog_ac_ct_CC+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627else
3628 if test -n "$ac_ct_CC"; then
3629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3630else
3631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638 ac_cv_prog_ac_ct_CC="$ac_prog"
3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 break 2
3641 fi
3642done
3643 done
3644IFS=$as_save_IFS
3645
3646fi
3647fi
3648ac_ct_CC=$ac_cv_prog_ac_ct_CC
3649if test -n "$ac_ct_CC"; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3651$as_echo "$ac_ct_CC" >&6; }
3652else
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654$as_echo "no" >&6; }
3655fi
3656
3657
3658 test -n "$ac_ct_CC" && break
3659done
3660
3661 if test "x$ac_ct_CC" = x; then
3662 CC=""
3663 else
3664 case $cross_compiling:$ac_tool_warned in
3665yes:)
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3668ac_tool_warned=yes ;;
3669esac
3670 CC=$ac_ct_CC
3671 fi
3672fi
3673
3674fi
3675
3676
3677test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679as_fn_error $? "no acceptable C compiler found in \$PATH
3680See \`config.log' for more details" "$LINENO" 5; }
3681
3682# Provide some information about the compiler.
3683$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3684set X $ac_compile
3685ac_compiler=$2
3686for ac_option in --version -v -V -qversion; do
3687 { { ac_try="$ac_compiler $ac_option >&5"
3688case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691esac
3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693$as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3695 ac_status=$?
3696 if test -s conftest.err; then
3697 sed '10a\
3698... rest of stderr output deleted ...
3699 10q' conftest.err >conftest.er1
3700 cat conftest.er1 >&5
3701 fi
3702 rm -f conftest.er1 conftest.err
3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704 test $ac_status = 0; }
3705done
3706
3707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708/* end confdefs.h. */
3709
3710int
3711main ()
3712{
3713
3714 ;
3715 return 0;
3716}
3717_ACEOF
3718ac_clean_files_save=$ac_clean_files
3719ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3720# Try to create an executable without -o first, disregard a.out.
3721# It will help us diagnose broken compilers, and finding out an intuition
3722# of exeext.
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3724$as_echo_n "checking whether the C compiler works... " >&6; }
3725ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3726
3727# The possible output files:
3728ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3729
3730ac_rmfiles=
3731for ac_file in $ac_files
3732do
3733 case $ac_file in
3734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3735 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3736 esac
3737done
3738rm -f $ac_rmfiles
3739
3740if { { ac_try="$ac_link_default"
3741case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3744esac
3745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746$as_echo "$ac_try_echo"; } >&5
3747 (eval "$ac_link_default") 2>&5
3748 ac_status=$?
3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750 test $ac_status = 0; }; then :
3751 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3752# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3753# in a Makefile. We should not override ac_cv_exeext if it was cached,
3754# so that the user can short-circuit this test for compilers unknown to
3755# Autoconf.
3756for ac_file in $ac_files ''
3757do
3758 test -f "$ac_file" || continue
3759 case $ac_file in
3760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3761 ;;
3762 [ab].out )
3763 # We found the default executable, but exeext='' is most
3764 # certainly right.
3765 break;;
3766 *.* )
3767 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3768 then :; else
3769 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3770 fi
3771 # We set ac_cv_exeext here because the later test for it is not
3772 # safe: cross compilers may not add the suffix if given an `-o'
3773 # argument, so we may need to know it at that point already.
3774 # Even if this section looks crufty: it has the advantage of
3775 # actually working.
3776 break;;
3777 * )
3778 break;;
3779 esac
3780done
3781test "$ac_cv_exeext" = no && ac_cv_exeext=
3782
3783else
3784 ac_file=''
3785fi
3786if test -z "$ac_file"; then :
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788$as_echo "no" >&6; }
3789$as_echo "$as_me: failed program was:" >&5
3790sed 's/^/| /' conftest.$ac_ext >&5
3791
3792{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3794as_fn_error 77 "C compiler cannot create executables
3795See \`config.log' for more details" "$LINENO" 5; }
3796else
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3798$as_echo "yes" >&6; }
3799fi
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3801$as_echo_n "checking for C compiler default output file name... " >&6; }
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3803$as_echo "$ac_file" >&6; }
3804ac_exeext=$ac_cv_exeext
3805
3806rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3807ac_clean_files=$ac_clean_files_save
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3809$as_echo_n "checking for suffix of executables... " >&6; }
3810if { { ac_try="$ac_link"
3811case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814esac
3815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816$as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_link") 2>&5
3818 ac_status=$?
3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }; then :
3821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3822# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3823# work properly (i.e., refer to `conftest.exe'), while it won't with
3824# `rm'.
3825for ac_file in conftest.exe conftest conftest.*; do
3826 test -f "$ac_file" || continue
3827 case $ac_file in
3828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3830 break;;
3831 * ) break;;
3832 esac
3833done
3834else
3835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3838See \`config.log' for more details" "$LINENO" 5; }
3839fi
3840rm -f conftest conftest$ac_cv_exeext
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3842$as_echo "$ac_cv_exeext" >&6; }
3843
3844rm -f conftest.$ac_ext
3845EXEEXT=$ac_cv_exeext
3846ac_exeext=$EXEEXT
3847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h. */
3849#include <stdio.h>
3850int
3851main ()
3852{
3853FILE *f = fopen ("conftest.out", "w");
3854 return ferror (f) || fclose (f) != 0;
3855
3856 ;
3857 return 0;
3858}
3859_ACEOF
3860ac_clean_files="$ac_clean_files conftest.out"
3861# Check that the compiler produces executables we can run. If not, either
3862# the compiler is broken, or we cross compile.
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3864$as_echo_n "checking whether we are cross compiling... " >&6; }
3865if test "$cross_compiling" != yes; then
3866 { { ac_try="$ac_link"
3867case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870esac
3871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872$as_echo "$ac_try_echo"; } >&5
3873 (eval "$ac_link") 2>&5
3874 ac_status=$?
3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }
3877 if { ac_try='./conftest$ac_cv_exeext'
3878 { { case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881esac
3882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883$as_echo "$ac_try_echo"; } >&5
3884 (eval "$ac_try") 2>&5
3885 ac_status=$?
3886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }; }; then
3888 cross_compiling=no
3889 else
3890 if test "$cross_compiling" = maybe; then
3891 cross_compiling=yes
3892 else
3893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3895as_fn_error $? "cannot run C compiled programs.
3896If you meant to cross compile, use \`--host'.
3897See \`config.log' for more details" "$LINENO" 5; }
3898 fi
3899 fi
3900fi
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3902$as_echo "$cross_compiling" >&6; }
3903
3904rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3905ac_clean_files=$ac_clean_files_save
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3907$as_echo_n "checking for suffix of object files... " >&6; }
3908if ${ac_cv_objext+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910else
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912/* end confdefs.h. */
3913
3914int
3915main ()
3916{
3917
3918 ;
3919 return 0;
3920}
3921_ACEOF
3922rm -f conftest.o conftest.obj
3923if { { ac_try="$ac_compile"
3924case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3927esac
3928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929$as_echo "$ac_try_echo"; } >&5
3930 (eval "$ac_compile") 2>&5
3931 ac_status=$?
3932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933 test $ac_status = 0; }; then :
3934 for ac_file in conftest.o conftest.obj conftest.*; do
3935 test -f "$ac_file" || continue;
3936 case $ac_file in
3937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3938 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3939 break;;
3940 esac
3941done
3942else
3943 $as_echo "$as_me: failed program was:" >&5
3944sed 's/^/| /' conftest.$ac_ext >&5
3945
3946{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948as_fn_error $? "cannot compute suffix of object files: cannot compile
3949See \`config.log' for more details" "$LINENO" 5; }
3950fi
3951rm -f conftest.$ac_cv_objext conftest.$ac_ext
3952fi
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3954$as_echo "$ac_cv_objext" >&6; }
3955OBJEXT=$ac_cv_objext
3956ac_objext=$OBJEXT
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3958$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3959if ${ac_cv_c_compiler_gnu+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961else
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963/* end confdefs.h. */
3964
3965int
3966main ()
3967{
3968#ifndef __GNUC__
3969 choke me
3970#endif
3971
3972 ;
3973 return 0;
3974}
3975_ACEOF
3976if ac_fn_c_try_compile "$LINENO"; then :
3977 ac_compiler_gnu=yes
3978else
3979 ac_compiler_gnu=no
3980fi
3981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982ac_cv_c_compiler_gnu=$ac_compiler_gnu
3983
3984fi
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3986$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3987if test $ac_compiler_gnu = yes; then
3988 GCC=yes
3989else
3990 GCC=
3991fi
3992ac_test_CFLAGS=${CFLAGS+set}
3993ac_save_CFLAGS=$CFLAGS
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3995$as_echo_n "checking whether $CC accepts -g... " >&6; }
3996if ${ac_cv_prog_cc_g+:} false; then :
3997 $as_echo_n "(cached) " >&6
3998else
3999 ac_save_c_werror_flag=$ac_c_werror_flag
4000 ac_c_werror_flag=yes
4001 ac_cv_prog_cc_g=no
4002 CFLAGS="-g"
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004/* end confdefs.h. */
4005
4006int
4007main ()
4008{
4009
4010 ;
4011 return 0;
4012}
4013_ACEOF
4014if ac_fn_c_try_compile "$LINENO"; then :
4015 ac_cv_prog_cc_g=yes
4016else
4017 CFLAGS=""
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019/* end confdefs.h. */
4020
4021int
4022main ()
4023{
4024
4025 ;
4026 return 0;
4027}
4028_ACEOF
4029if ac_fn_c_try_compile "$LINENO"; then :
4030
4031else
4032 ac_c_werror_flag=$ac_save_c_werror_flag
4033 CFLAGS="-g"
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035/* end confdefs.h. */
4036
4037int
4038main ()
4039{
4040
4041 ;
4042 return 0;
4043}
4044_ACEOF
4045if ac_fn_c_try_compile "$LINENO"; then :
4046 ac_cv_prog_cc_g=yes
4047fi
4048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049fi
4050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051fi
4052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 ac_c_werror_flag=$ac_save_c_werror_flag
4054fi
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4056$as_echo "$ac_cv_prog_cc_g" >&6; }
4057if test "$ac_test_CFLAGS" = set; then
4058 CFLAGS=$ac_save_CFLAGS
4059elif test $ac_cv_prog_cc_g = yes; then
4060 if test "$GCC" = yes; then
4061 CFLAGS="-g -O2"
4062 else
4063 CFLAGS="-g"
4064 fi
4065else
4066 if test "$GCC" = yes; then
4067 CFLAGS="-O2"
4068 else
4069 CFLAGS=
4070 fi
4071fi
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4073$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4074if ${ac_cv_prog_cc_c89+:} false; then :
4075 $as_echo_n "(cached) " >&6
4076else
4077 ac_cv_prog_cc_c89=no
4078ac_save_CC=$CC
4079cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080/* end confdefs.h. */
4081#include <stdarg.h>
4082#include <stdio.h>
4083struct stat;
4084/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4085struct buf { int x; };
4086FILE * (*rcsopen) (struct buf *, struct stat *, int);
4087static char *e (p, i)
4088 char **p;
4089 int i;
4090{
4091 return p[i];
4092}
4093static char *f (char * (*g) (char **, int), char **p, ...)
4094{
4095 char *s;
4096 va_list v;
4097 va_start (v,p);
4098 s = g (p, va_arg (v,int));
4099 va_end (v);
4100 return s;
4101}
4102
4103/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4104 function prototypes and stuff, but not '\xHH' hex character constants.
4105 These don't provoke an error unfortunately, instead are silently treated
4106 as 'x'. The following induces an error, until -std is added to get
4107 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4108 array size at least. It's necessary to write '\x00'==0 to get something
4109 that's true only with -std. */
4110int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4111
4112/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4113 inside strings and character constants. */
4114#define FOO(x) 'x'
4115int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4116
4117int test (int i, double x);
4118struct s1 {int (*f) (int a);};
4119struct s2 {int (*f) (double a);};
4120int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4121int argc;
4122char **argv;
4123int
4124main ()
4125{
4126return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4127 ;
4128 return 0;
4129}
4130_ACEOF
4131for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4132 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4133do
4134 CC="$ac_save_CC $ac_arg"
4135 if ac_fn_c_try_compile "$LINENO"; then :
4136 ac_cv_prog_cc_c89=$ac_arg
4137fi
4138rm -f core conftest.err conftest.$ac_objext
4139 test "x$ac_cv_prog_cc_c89" != "xno" && break
4140done
4141rm -f conftest.$ac_ext
4142CC=$ac_save_CC
4143
4144fi
4145# AC_CACHE_VAL
4146case "x$ac_cv_prog_cc_c89" in
4147 x)
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4149$as_echo "none needed" >&6; } ;;
4150 xno)
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4152$as_echo "unsupported" >&6; } ;;
4153 *)
4154 CC="$CC $ac_cv_prog_cc_c89"
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4156$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4157esac
4158if test "x$ac_cv_prog_cc_c89" != xno; then :
4159
4160fi
4161
4162ac_ext=c
4163ac_cpp='$CPP $CPPFLAGS'
4164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167
4168ac_ext=c
4169ac_cpp='$CPP $CPPFLAGS'
4170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4174$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4175if ${am_cv_prog_cc_c_o+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177else
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179/* end confdefs.h. */
4180
4181int
4182main ()
4183{
4184
4185 ;
4186 return 0;
4187}
4188_ACEOF
4189 # Make sure it works both with $CC and with simple cc.
4190 # Following AC_PROG_CC_C_O, we do the test twice because some
4191 # compilers refuse to overwrite an existing .o file with -o,
4192 # though they will create one.
4193 am_cv_prog_cc_c_o=yes
4194 for am_i in 1 2; do
4195 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4196 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } \
4200 && test -f conftest2.$ac_objext; then
4201 : OK
4202 else
4203 am_cv_prog_cc_c_o=no
4204 break
4205 fi
4206 done
4207 rm -f core conftest*
4208 unset am_i
4209fi
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4211$as_echo "$am_cv_prog_cc_c_o" >&6; }
4212if test "$am_cv_prog_cc_c_o" != yes; then
4213 # Losing compiler, so override with the script.
4214 # FIXME: It is wrong to rewrite CC.
4215 # But if we don't then we get into trouble of one sort or another.
4216 # A longer-term fix would be to have automake use am__CC in this case,
4217 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4218 CC="$am_aux_dir/compile $CC"
4219fi
4220ac_ext=c
4221ac_cpp='$CPP $CPPFLAGS'
4222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225
4226DEPDIR="${am__leading_dot}deps"
4227
4228ac_config_commands="$ac_config_commands depfiles"
4229
4230
4231am_make=${MAKE-make}
4232cat > confinc << 'END'
4233am__doit:
4234 @echo this is the am__doit target
4235.PHONY: am__doit
4236END
4237# If we don't find an include directive, just comment out the code.
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4239$as_echo_n "checking for style of include used by $am_make... " >&6; }
4240am__include="#"
4241am__quote=
4242_am_result=none
4243# First try GNU make style include.
4244echo "include confinc" > confmf
4245# Ignore all kinds of additional output from 'make'.
4246case `$am_make -s -f confmf 2> /dev/null` in #(
4247*the\ am__doit\ target*)
4248 am__include=include
4249 am__quote=
4250 _am_result=GNU
4251 ;;
4252esac
4253# Now try BSD make style include.
4254if test "$am__include" = "#"; then
4255 echo '.include "confinc"' > confmf
4256 case `$am_make -s -f confmf 2> /dev/null` in #(
4257 *the\ am__doit\ target*)
4258 am__include=.include
4259 am__quote="\""
4260 _am_result=BSD
4261 ;;
4262 esac
4263fi
4264
4265
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4267$as_echo "$_am_result" >&6; }
4268rm -f confinc confmf
4269
4270# Check whether --enable-dependency-tracking was given.
4271if test "${enable_dependency_tracking+set}" = set; then :
4272 enableval=$enable_dependency_tracking;
4273fi
4274
4275if test "x$enable_dependency_tracking" != xno; then
4276 am_depcomp="$ac_aux_dir/depcomp"
4277 AMDEPBACKSLASH='\'
4278 am__nodep='_no'
4279fi
4280 if test "x$enable_dependency_tracking" != xno; then
4281 AMDEP_TRUE=
4282 AMDEP_FALSE='#'
4283else
4284 AMDEP_TRUE='#'
4285 AMDEP_FALSE=
4286fi
4287
4288
4289
4290depcc="$CC" am_compiler_list=
4291
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4293$as_echo_n "checking dependency style of $depcc... " >&6; }
4294if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4295 $as_echo_n "(cached) " >&6
4296else
4297 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4298 # We make a subdir and do the tests there. Otherwise we can end up
4299 # making bogus files that we don't know about and never remove. For
4300 # instance it was reported that on HP-UX the gcc test will end up
4301 # making a dummy file named 'D' -- because '-MD' means "put the output
4302 # in D".
4303 rm -rf conftest.dir
4304 mkdir conftest.dir
4305 # Copy depcomp to subdir because otherwise we won't find it if we're
4306 # using a relative directory.
4307 cp "$am_depcomp" conftest.dir
4308 cd conftest.dir
4309 # We will build objects and dependencies in a subdirectory because
4310 # it helps to detect inapplicable dependency modes. For instance
4311 # both Tru64's cc and ICC support -MD to output dependencies as a
4312 # side effect of compilation, but ICC will put the dependencies in
4313 # the current directory while Tru64 will put them in the object
4314 # directory.
4315 mkdir sub
4316
4317 am_cv_CC_dependencies_compiler_type=none
4318 if test "$am_compiler_list" = ""; then
4319 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4320 fi
4321 am__universal=false
4322 case " $depcc " in #(
4323 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4324 esac
4325
4326 for depmode in $am_compiler_list; do
4327 # Setup a source with many dependencies, because some compilers
4328 # like to wrap large dependency lists on column 80 (with \), and
4329 # we should not choose a depcomp mode which is confused by this.
4330 #
4331 # We need to recreate these files for each test, as the compiler may
4332 # overwrite some of them when testing with obscure command lines.
4333 # This happens at least with the AIX C compiler.
4334 : > sub/conftest.c
4335 for i in 1 2 3 4 5 6; do
4336 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4337 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4338 # Solaris 10 /bin/sh.
4339 echo '/* dummy */' > sub/conftst$i.h
4340 done
4341 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4342
4343 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4344 # mode. It turns out that the SunPro C++ compiler does not properly
4345 # handle '-M -o', and we need to detect this. Also, some Intel
4346 # versions had trouble with output in subdirs.
4347 am__obj=sub/conftest.${OBJEXT-o}
4348 am__minus_obj="-o $am__obj"
4349 case $depmode in
4350 gcc)
4351 # This depmode causes a compiler race in universal mode.
4352 test "$am__universal" = false || continue
4353 ;;
4354 nosideeffect)
4355 # After this tag, mechanisms are not by side-effect, so they'll
4356 # only be used when explicitly requested.
4357 if test "x$enable_dependency_tracking" = xyes; then
4358 continue
4359 else
4360 break
4361 fi
4362 ;;
4363 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4364 # This compiler won't grok '-c -o', but also, the minuso test has
4365 # not run yet. These depmodes are late enough in the game, and
4366 # so weak that their functioning should not be impacted.
4367 am__obj=conftest.${OBJEXT-o}
4368 am__minus_obj=
4369 ;;
4370 none) break ;;
4371 esac
4372 if depmode=$depmode \
4373 source=sub/conftest.c object=$am__obj \
4374 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4375 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4376 >/dev/null 2>conftest.err &&
4377 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4378 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4379 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4380 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4381 # icc doesn't choke on unknown options, it will just issue warnings
4382 # or remarks (even with -Werror). So we grep stderr for any message
4383 # that says an option was ignored or not supported.
4384 # When given -MP, icc 7.0 and 7.1 complain thusly:
4385 # icc: Command line warning: ignoring option '-M'; no argument required
4386 # The diagnosis changed in icc 8.0:
4387 # icc: Command line remark: option '-MP' not supported
4388 if (grep 'ignoring option' conftest.err ||
4389 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4390 am_cv_CC_dependencies_compiler_type=$depmode
4391 break
4392 fi
4393 fi
4394 done
4395
4396 cd ..
4397 rm -rf conftest.dir
4398else
4399 am_cv_CC_dependencies_compiler_type=none
4400fi
4401
4402fi
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4404$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4405CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4406
4407 if
4408 test "x$enable_dependency_tracking" != xno \
4409 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4410 am__fastdepCC_TRUE=
4411 am__fastdepCC_FALSE='#'
4412else
4413 am__fastdepCC_TRUE='#'
4414 am__fastdepCC_FALSE=
4415fi
4416
4417
4418
4419ac_ext=cpp
4420ac_cpp='$CXXCPP $CPPFLAGS'
4421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4424if test -z "$CXX"; then
4425 if test -n "$CCC"; then
4426 CXX=$CCC
4427 else
4428 if test -n "$ac_tool_prefix"; then
4429 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4430 do
4431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4432set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434$as_echo_n "checking for $ac_word... " >&6; }
4435if ${ac_cv_prog_CXX+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437else
4438 if test -n "$CXX"; then
4439 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4440else
4441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442for as_dir in $PATH
4443do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4448 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 break 2
4451 fi
4452done
4453 done
4454IFS=$as_save_IFS
4455
4456fi
4457fi
4458CXX=$ac_cv_prog_CXX
4459if test -n "$CXX"; then
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4461$as_echo "$CXX" >&6; }
4462else
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464$as_echo "no" >&6; }
4465fi
4466
4467
4468 test -n "$CXX" && break
4469 done
4470fi
4471if test -z "$CXX"; then
4472 ac_ct_CXX=$CXX
4473 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4474do
4475 # Extract the first word of "$ac_prog", so it can be a program name with args.
4476set dummy $ac_prog; ac_word=$2
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478$as_echo_n "checking for $ac_word... " >&6; }
4479if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481else
4482 if test -n "$ac_ct_CXX"; then
4483 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4484else
4485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486for as_dir in $PATH
4487do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4492 ac_cv_prog_ac_ct_CXX="$ac_prog"
4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 break 2
4495 fi
4496done
4497 done
4498IFS=$as_save_IFS
4499
4500fi
4501fi
4502ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4503if test -n "$ac_ct_CXX"; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4505$as_echo "$ac_ct_CXX" >&6; }
4506else
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508$as_echo "no" >&6; }
4509fi
4510
4511
4512 test -n "$ac_ct_CXX" && break
4513done
4514
4515 if test "x$ac_ct_CXX" = x; then
4516 CXX="g++"
4517 else
4518 case $cross_compiling:$ac_tool_warned in
4519yes:)
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4522ac_tool_warned=yes ;;
4523esac
4524 CXX=$ac_ct_CXX
4525 fi
4526fi
4527
4528 fi
4529fi
4530# Provide some information about the compiler.
4531$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4532set X $ac_compile
4533ac_compiler=$2
4534for ac_option in --version -v -V -qversion; do
4535 { { ac_try="$ac_compiler $ac_option >&5"
4536case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539esac
4540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541$as_echo "$ac_try_echo"; } >&5
4542 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4543 ac_status=$?
4544 if test -s conftest.err; then
4545 sed '10a\
4546... rest of stderr output deleted ...
4547 10q' conftest.err >conftest.er1
4548 cat conftest.er1 >&5
4549 fi
4550 rm -f conftest.er1 conftest.err
4551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4552 test $ac_status = 0; }
4553done
4554
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4556$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4557if ${ac_cv_cxx_compiler_gnu+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559else
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561/* end confdefs.h. */
4562
4563int
4564main ()
4565{
4566#ifndef __GNUC__
4567 choke me
4568#endif
4569
4570 ;
4571 return 0;
4572}
4573_ACEOF
4574if ac_fn_cxx_try_compile "$LINENO"; then :
4575 ac_compiler_gnu=yes
4576else
4577 ac_compiler_gnu=no
4578fi
4579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4581
4582fi
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4584$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4585if test $ac_compiler_gnu = yes; then
4586 GXX=yes
4587else
4588 GXX=
4589fi
4590ac_test_CXXFLAGS=${CXXFLAGS+set}
4591ac_save_CXXFLAGS=$CXXFLAGS
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4593$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4594if ${ac_cv_prog_cxx_g+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596else
4597 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4598 ac_cxx_werror_flag=yes
4599 ac_cv_prog_cxx_g=no
4600 CXXFLAGS="-g"
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602/* end confdefs.h. */
4603
4604int
4605main ()
4606{
4607
4608 ;
4609 return 0;
4610}
4611_ACEOF
4612if ac_fn_cxx_try_compile "$LINENO"; then :
4613 ac_cv_prog_cxx_g=yes
4614else
4615 CXXFLAGS=""
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617/* end confdefs.h. */
4618
4619int
4620main ()
4621{
4622
4623 ;
4624 return 0;
4625}
4626_ACEOF
4627if ac_fn_cxx_try_compile "$LINENO"; then :
4628
4629else
4630 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4631 CXXFLAGS="-g"
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h. */
4634
4635int
4636main ()
4637{
4638
4639 ;
4640 return 0;
4641}
4642_ACEOF
4643if ac_fn_cxx_try_compile "$LINENO"; then :
4644 ac_cv_prog_cxx_g=yes
4645fi
4646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647fi
4648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649fi
4650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4652fi
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4654$as_echo "$ac_cv_prog_cxx_g" >&6; }
4655if test "$ac_test_CXXFLAGS" = set; then
4656 CXXFLAGS=$ac_save_CXXFLAGS
4657elif test $ac_cv_prog_cxx_g = yes; then
4658 if test "$GXX" = yes; then
4659 CXXFLAGS="-g -O2"
4660 else
4661 CXXFLAGS="-g"
4662 fi
4663else
4664 if test "$GXX" = yes; then
4665 CXXFLAGS="-O2"
4666 else
4667 CXXFLAGS=
4668 fi
4669fi
4670ac_ext=c
4671ac_cpp='$CPP $CPPFLAGS'
4672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675
4676depcc="$CXX" am_compiler_list=
4677
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4679$as_echo_n "checking dependency style of $depcc... " >&6; }
4680if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682else
4683 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4684 # We make a subdir and do the tests there. Otherwise we can end up
4685 # making bogus files that we don't know about and never remove. For
4686 # instance it was reported that on HP-UX the gcc test will end up
4687 # making a dummy file named 'D' -- because '-MD' means "put the output
4688 # in D".
4689 rm -rf conftest.dir
4690 mkdir conftest.dir
4691 # Copy depcomp to subdir because otherwise we won't find it if we're
4692 # using a relative directory.
4693 cp "$am_depcomp" conftest.dir
4694 cd conftest.dir
4695 # We will build objects and dependencies in a subdirectory because
4696 # it helps to detect inapplicable dependency modes. For instance
4697 # both Tru64's cc and ICC support -MD to output dependencies as a
4698 # side effect of compilation, but ICC will put the dependencies in
4699 # the current directory while Tru64 will put them in the object
4700 # directory.
4701 mkdir sub
4702
4703 am_cv_CXX_dependencies_compiler_type=none
4704 if test "$am_compiler_list" = ""; then
4705 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4706 fi
4707 am__universal=false
4708 case " $depcc " in #(
4709 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4710 esac
4711
4712 for depmode in $am_compiler_list; do
4713 # Setup a source with many dependencies, because some compilers
4714 # like to wrap large dependency lists on column 80 (with \), and
4715 # we should not choose a depcomp mode which is confused by this.
4716 #
4717 # We need to recreate these files for each test, as the compiler may
4718 # overwrite some of them when testing with obscure command lines.
4719 # This happens at least with the AIX C compiler.
4720 : > sub/conftest.c
4721 for i in 1 2 3 4 5 6; do
4722 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4723 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4724 # Solaris 10 /bin/sh.
4725 echo '/* dummy */' > sub/conftst$i.h
4726 done
4727 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4728
4729 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4730 # mode. It turns out that the SunPro C++ compiler does not properly
4731 # handle '-M -o', and we need to detect this. Also, some Intel
4732 # versions had trouble with output in subdirs.
4733 am__obj=sub/conftest.${OBJEXT-o}
4734 am__minus_obj="-o $am__obj"
4735 case $depmode in
4736 gcc)
4737 # This depmode causes a compiler race in universal mode.
4738 test "$am__universal" = false || continue
4739 ;;
4740 nosideeffect)
4741 # After this tag, mechanisms are not by side-effect, so they'll
4742 # only be used when explicitly requested.
4743 if test "x$enable_dependency_tracking" = xyes; then
4744 continue
4745 else
4746 break
4747 fi
4748 ;;
4749 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4750 # This compiler won't grok '-c -o', but also, the minuso test has
4751 # not run yet. These depmodes are late enough in the game, and
4752 # so weak that their functioning should not be impacted.
4753 am__obj=conftest.${OBJEXT-o}
4754 am__minus_obj=
4755 ;;
4756 none) break ;;
4757 esac
4758 if depmode=$depmode \
4759 source=sub/conftest.c object=$am__obj \
4760 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4761 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4762 >/dev/null 2>conftest.err &&
4763 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4764 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4765 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4766 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4767 # icc doesn't choke on unknown options, it will just issue warnings
4768 # or remarks (even with -Werror). So we grep stderr for any message
4769 # that says an option was ignored or not supported.
4770 # When given -MP, icc 7.0 and 7.1 complain thusly:
4771 # icc: Command line warning: ignoring option '-M'; no argument required
4772 # The diagnosis changed in icc 8.0:
4773 # icc: Command line remark: option '-MP' not supported
4774 if (grep 'ignoring option' conftest.err ||
4775 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4776 am_cv_CXX_dependencies_compiler_type=$depmode
4777 break
4778 fi
4779 fi
4780 done
4781
4782 cd ..
4783 rm -rf conftest.dir
4784else
4785 am_cv_CXX_dependencies_compiler_type=none
4786fi
4787
4788fi
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4790$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4791CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4792
4793 if
4794 test "x$enable_dependency_tracking" != xno \
4795 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4796 am__fastdepCXX_TRUE=
4797 am__fastdepCXX_FALSE='#'
4798else
4799 am__fastdepCXX_TRUE='#'
4800 am__fastdepCXX_FALSE=
4801fi
4802
4803
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4805$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4806if ${ac_cv_path_SED+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808else
4809 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4810 for ac_i in 1 2 3 4 5 6 7; do
4811 ac_script="$ac_script$as_nl$ac_script"
4812 done
4813 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4814 { ac_script=; unset ac_script;}
4815 if test -z "$SED"; then
4816 ac_path_SED_found=false
4817 # Loop through the user's path and test for each of PROGNAME-LIST
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_prog in sed gsed; do
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4826 as_fn_executable_p "$ac_path_SED" || continue
4827# Check for GNU ac_path_SED and select it if it is found.
4828 # Check for GNU $ac_path_SED
4829case `"$ac_path_SED" --version 2>&1` in
4830*GNU*)
4831 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4832*)
4833 ac_count=0
4834 $as_echo_n 0123456789 >"conftest.in"
4835 while :
4836 do
4837 cat "conftest.in" "conftest.in" >"conftest.tmp"
4838 mv "conftest.tmp" "conftest.in"
4839 cp "conftest.in" "conftest.nl"
4840 $as_echo '' >> "conftest.nl"
4841 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4842 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4843 as_fn_arith $ac_count + 1 && ac_count=$as_val
4844 if test $ac_count -gt ${ac_path_SED_max-0}; then
4845 # Best one so far, save it but keep looking for a better one
4846 ac_cv_path_SED="$ac_path_SED"
4847 ac_path_SED_max=$ac_count
4848 fi
4849 # 10*(2^10) chars as input seems more than enough
4850 test $ac_count -gt 10 && break
4851 done
4852 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4853esac
4854
4855 $ac_path_SED_found && break 3
4856 done
4857 done
4858 done
4859IFS=$as_save_IFS
4860 if test -z "$ac_cv_path_SED"; then
4861 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4862 fi
4863else
4864 ac_cv_path_SED=$SED
4865fi
4866
4867fi
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4869$as_echo "$ac_cv_path_SED" >&6; }
4870 SED="$ac_cv_path_SED"
4871 rm -f conftest.sed
4872
4873
4874# Do not check for F77.
4875
4876case `pwd` in
4877 *\ * | *\ *)
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4879$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4880esac
4881
4882
4883
4884macro_version='2.4.6'
4885macro_revision='2.4.6'
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899ltmain=$ac_aux_dir/ltmain.sh
4900
4901# Backslashify metacharacters that are still active within
4902# double-quoted strings.
4903sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4904
4905# Same as above, but do not quote variable references.
4906double_quote_subst='s/\(["`\\]\)/\\\1/g'
4907
4908# Sed substitution to delay expansion of an escaped shell variable in a
4909# double_quote_subst'ed string.
4910delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4911
4912# Sed substitution to delay expansion of an escaped single quote.
4913delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4914
4915# Sed substitution to avoid accidental globbing in evaled expressions
4916no_glob_subst='s/\*/\\\*/g'
4917
4918ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4919ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4920ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4921
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4923$as_echo_n "checking how to print strings... " >&6; }
4924# Test print first, because it will be a builtin if present.
4925if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4926 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4927 ECHO='print -r --'
4928elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4929 ECHO='printf %s\n'
4930else
4931 # Use this function as a fallback that always works.
4932 func_fallback_echo ()
4933 {
4934 eval 'cat <<_LTECHO_EOF
4935$1
4936_LTECHO_EOF'
4937 }
4938 ECHO='func_fallback_echo'
4939fi
4940
4941# func_echo_all arg...
4942# Invoke $ECHO with all args, space-separated.
4943func_echo_all ()
4944{
4945 $ECHO ""
4946}
4947
4948case $ECHO in
4949 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4950$as_echo "printf" >&6; } ;;
4951 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4952$as_echo "print -r" >&6; } ;;
4953 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4954$as_echo "cat" >&6; } ;;
4955esac
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4971$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4972if ${ac_cv_path_SED+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974else
4975 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4976 for ac_i in 1 2 3 4 5 6 7; do
4977 ac_script="$ac_script$as_nl$ac_script"
4978 done
4979 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4980 { ac_script=; unset ac_script;}
4981 if test -z "$SED"; then
4982 ac_path_SED_found=false
4983 # Loop through the user's path and test for each of PROGNAME-LIST
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985for as_dir in $PATH
4986do
4987 IFS=$as_save_IFS
4988 test -z "$as_dir" && as_dir=.
4989 for ac_prog in sed gsed; do
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4992 as_fn_executable_p "$ac_path_SED" || continue
4993# Check for GNU ac_path_SED and select it if it is found.
4994 # Check for GNU $ac_path_SED
4995case `"$ac_path_SED" --version 2>&1` in
4996*GNU*)
4997 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4998*)
4999 ac_count=0
5000 $as_echo_n 0123456789 >"conftest.in"
5001 while :
5002 do
5003 cat "conftest.in" "conftest.in" >"conftest.tmp"
5004 mv "conftest.tmp" "conftest.in"
5005 cp "conftest.in" "conftest.nl"
5006 $as_echo '' >> "conftest.nl"
5007 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5009 as_fn_arith $ac_count + 1 && ac_count=$as_val
5010 if test $ac_count -gt ${ac_path_SED_max-0}; then
5011 # Best one so far, save it but keep looking for a better one
5012 ac_cv_path_SED="$ac_path_SED"
5013 ac_path_SED_max=$ac_count
5014 fi
5015 # 10*(2^10) chars as input seems more than enough
5016 test $ac_count -gt 10 && break
5017 done
5018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5019esac
5020
5021 $ac_path_SED_found && break 3
5022 done
5023 done
5024 done
5025IFS=$as_save_IFS
5026 if test -z "$ac_cv_path_SED"; then
5027 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5028 fi
5029else
5030 ac_cv_path_SED=$SED
5031fi
5032
5033fi
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5035$as_echo "$ac_cv_path_SED" >&6; }
5036 SED="$ac_cv_path_SED"
5037 rm -f conftest.sed
5038
5039test -z "$SED" && SED=sed
5040Xsed="$SED -e 1s/^X//"
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5053$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5054if ${ac_cv_path_GREP+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056else
5057 if test -z "$GREP"; then
5058 ac_path_GREP_found=false
5059 # Loop through the user's path and test for each of PROGNAME-LIST
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5062do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_prog in grep ggrep; do
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5068 as_fn_executable_p "$ac_path_GREP" || continue
5069# Check for GNU ac_path_GREP and select it if it is found.
5070 # Check for GNU $ac_path_GREP
5071case `"$ac_path_GREP" --version 2>&1` in
5072*GNU*)
5073 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5074*)
5075 ac_count=0
5076 $as_echo_n 0123456789 >"conftest.in"
5077 while :
5078 do
5079 cat "conftest.in" "conftest.in" >"conftest.tmp"
5080 mv "conftest.tmp" "conftest.in"
5081 cp "conftest.in" "conftest.nl"
5082 $as_echo 'GREP' >> "conftest.nl"
5083 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5085 as_fn_arith $ac_count + 1 && ac_count=$as_val
5086 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5087 # Best one so far, save it but keep looking for a better one
5088 ac_cv_path_GREP="$ac_path_GREP"
5089 ac_path_GREP_max=$ac_count
5090 fi
5091 # 10*(2^10) chars as input seems more than enough
5092 test $ac_count -gt 10 && break
5093 done
5094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5095esac
5096
5097 $ac_path_GREP_found && break 3
5098 done
5099 done
5100 done
5101IFS=$as_save_IFS
5102 if test -z "$ac_cv_path_GREP"; then
5103 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5104 fi
5105else
5106 ac_cv_path_GREP=$GREP
5107fi
5108
5109fi
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5111$as_echo "$ac_cv_path_GREP" >&6; }
5112 GREP="$ac_cv_path_GREP"
5113
5114
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5116$as_echo_n "checking for egrep... " >&6; }
5117if ${ac_cv_path_EGREP+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119else
5120 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5121 then ac_cv_path_EGREP="$GREP -E"
5122 else
5123 if test -z "$EGREP"; then
5124 ac_path_EGREP_found=false
5125 # Loop through the user's path and test for each of PROGNAME-LIST
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5128do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_prog in egrep; do
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5134 as_fn_executable_p "$ac_path_EGREP" || continue
5135# Check for GNU ac_path_EGREP and select it if it is found.
5136 # Check for GNU $ac_path_EGREP
5137case `"$ac_path_EGREP" --version 2>&1` in
5138*GNU*)
5139 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5140*)
5141 ac_count=0
5142 $as_echo_n 0123456789 >"conftest.in"
5143 while :
5144 do
5145 cat "conftest.in" "conftest.in" >"conftest.tmp"
5146 mv "conftest.tmp" "conftest.in"
5147 cp "conftest.in" "conftest.nl"
5148 $as_echo 'EGREP' >> "conftest.nl"
5149 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5151 as_fn_arith $ac_count + 1 && ac_count=$as_val
5152 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5153 # Best one so far, save it but keep looking for a better one
5154 ac_cv_path_EGREP="$ac_path_EGREP"
5155 ac_path_EGREP_max=$ac_count
5156 fi
5157 # 10*(2^10) chars as input seems more than enough
5158 test $ac_count -gt 10 && break
5159 done
5160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5161esac
5162
5163 $ac_path_EGREP_found && break 3
5164 done
5165 done
5166 done
5167IFS=$as_save_IFS
5168 if test -z "$ac_cv_path_EGREP"; then
5169 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5170 fi
5171else
5172 ac_cv_path_EGREP=$EGREP
5173fi
5174
5175 fi
5176fi
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5178$as_echo "$ac_cv_path_EGREP" >&6; }
5179 EGREP="$ac_cv_path_EGREP"
5180
5181
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5183$as_echo_n "checking for fgrep... " >&6; }
5184if ${ac_cv_path_FGREP+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186else
5187 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5188 then ac_cv_path_FGREP="$GREP -F"
5189 else
5190 if test -z "$FGREP"; then
5191 ac_path_FGREP_found=false
5192 # Loop through the user's path and test for each of PROGNAME-LIST
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5195do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_prog in fgrep; do
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5201 as_fn_executable_p "$ac_path_FGREP" || continue
5202# Check for GNU ac_path_FGREP and select it if it is found.
5203 # Check for GNU $ac_path_FGREP
5204case `"$ac_path_FGREP" --version 2>&1` in
5205*GNU*)
5206 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5207*)
5208 ac_count=0
5209 $as_echo_n 0123456789 >"conftest.in"
5210 while :
5211 do
5212 cat "conftest.in" "conftest.in" >"conftest.tmp"
5213 mv "conftest.tmp" "conftest.in"
5214 cp "conftest.in" "conftest.nl"
5215 $as_echo 'FGREP' >> "conftest.nl"
5216 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5217 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5218 as_fn_arith $ac_count + 1 && ac_count=$as_val
5219 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5220 # Best one so far, save it but keep looking for a better one
5221 ac_cv_path_FGREP="$ac_path_FGREP"
5222 ac_path_FGREP_max=$ac_count
5223 fi
5224 # 10*(2^10) chars as input seems more than enough
5225 test $ac_count -gt 10 && break
5226 done
5227 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5228esac
5229
5230 $ac_path_FGREP_found && break 3
5231 done
5232 done
5233 done
5234IFS=$as_save_IFS
5235 if test -z "$ac_cv_path_FGREP"; then
5236 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5237 fi
5238else
5239 ac_cv_path_FGREP=$FGREP
5240fi
5241
5242 fi
5243fi
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5245$as_echo "$ac_cv_path_FGREP" >&6; }
5246 FGREP="$ac_cv_path_FGREP"
5247
5248
5249test -z "$GREP" && GREP=grep
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269# Check whether --with-gnu-ld was given.
5270if test "${with_gnu_ld+set}" = set; then :
5271 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5272else
5273 with_gnu_ld=no
5274fi
5275
5276ac_prog=ld
5277if test yes = "$GCC"; then
5278 # Check if gcc -print-prog-name=ld gives a path.
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5280$as_echo_n "checking for ld used by $CC... " >&6; }
5281 case $host in
5282 *-*-mingw*)
5283 # gcc leaves a trailing carriage return, which upsets mingw
5284 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5285 *)
5286 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5287 esac
5288 case $ac_prog in
5289 # Accept absolute paths.
5290 [\\/]* | ?:[\\/]*)
5291 re_direlt='/[^/][^/]*/\.\./'
5292 # Canonicalize the pathname of ld
5293 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5294 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5295 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5296 done
5297 test -z "$LD" && LD=$ac_prog
5298 ;;
5299 "")
5300 # If it fails, then pretend we aren't using GCC.
5301 ac_prog=ld
5302 ;;
5303 *)
5304 # If it is relative, then search for the first ld in PATH.
5305 with_gnu_ld=unknown
5306 ;;
5307 esac
5308elif test yes = "$with_gnu_ld"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5310$as_echo_n "checking for GNU ld... " >&6; }
5311else
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5313$as_echo_n "checking for non-GNU ld... " >&6; }
5314fi
5315if ${lt_cv_path_LD+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317else
5318 if test -z "$LD"; then
5319 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5320 for ac_dir in $PATH; do
5321 IFS=$lt_save_ifs
5322 test -z "$ac_dir" && ac_dir=.
5323 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5324 lt_cv_path_LD=$ac_dir/$ac_prog
5325 # Check to see if the program is GNU ld. I'd rather use --version,
5326 # but apparently some variants of GNU ld only accept -v.
5327 # Break only if it was the GNU/non-GNU ld that we prefer.
5328 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5329 *GNU* | *'with BFD'*)
5330 test no != "$with_gnu_ld" && break
5331 ;;
5332 *)
5333 test yes != "$with_gnu_ld" && break
5334 ;;
5335 esac
5336 fi
5337 done
5338 IFS=$lt_save_ifs
5339else
5340 lt_cv_path_LD=$LD # Let the user override the test with a path.
5341fi
5342fi
5343
5344LD=$lt_cv_path_LD
5345if test -n "$LD"; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5347$as_echo "$LD" >&6; }
5348else
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350$as_echo "no" >&6; }
5351fi
5352test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5354$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5355if ${lt_cv_prog_gnu_ld+:} false; then :
5356 $as_echo_n "(cached) " >&6
5357else
5358 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5359case `$LD -v 2>&1 </dev/null` in
5360*GNU* | *'with BFD'*)
5361 lt_cv_prog_gnu_ld=yes
5362 ;;
5363*)
5364 lt_cv_prog_gnu_ld=no
5365 ;;
5366esac
5367fi
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5369$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5370with_gnu_ld=$lt_cv_prog_gnu_ld
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5381$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5382if ${lt_cv_path_NM+:} false; then :
5383 $as_echo_n "(cached) " >&6
5384else
5385 if test -n "$NM"; then
5386 # Let the user override the test.
5387 lt_cv_path_NM=$NM
5388else
5389 lt_nm_to_check=${ac_tool_prefix}nm
5390 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5391 lt_nm_to_check="$lt_nm_to_check nm"
5392 fi
5393 for lt_tmp_nm in $lt_nm_to_check; do
5394 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5395 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5396 IFS=$lt_save_ifs
5397 test -z "$ac_dir" && ac_dir=.
5398 tmp_nm=$ac_dir/$lt_tmp_nm
5399 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5400 # Check to see if the nm accepts a BSD-compat flag.
5401 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5402 # nm: unknown option "B" ignored
5403 # Tru64's nm complains that /dev/null is an invalid object file
5404 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5405 case $build_os in
5406 mingw*) lt_bad_file=conftest.nm/nofile ;;
5407 *) lt_bad_file=/dev/null ;;
5408 esac
5409 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5410 *$lt_bad_file* | *'Invalid file or object type'*)
5411 lt_cv_path_NM="$tmp_nm -B"
5412 break 2
5413 ;;
5414 *)
5415 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5416 */dev/null*)
5417 lt_cv_path_NM="$tmp_nm -p"
5418 break 2
5419 ;;
5420 *)
5421 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5422 continue # so that we can try to find one that supports BSD flags
5423 ;;
5424 esac
5425 ;;
5426 esac
5427 fi
5428 done
5429 IFS=$lt_save_ifs
5430 done
5431 : ${lt_cv_path_NM=no}
5432fi
5433fi
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5435$as_echo "$lt_cv_path_NM" >&6; }
5436if test no != "$lt_cv_path_NM"; then
5437 NM=$lt_cv_path_NM
5438else
5439 # Didn't find any BSD compatible name lister, look for dumpbin.
5440 if test -n "$DUMPBIN"; then :
5441 # Let the user override the test.
5442 else
5443 if test -n "$ac_tool_prefix"; then
5444 for ac_prog in dumpbin "link -dump"
5445 do
5446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5447set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449$as_echo_n "checking for $ac_word... " >&6; }
5450if ${ac_cv_prog_DUMPBIN+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452else
5453 if test -n "$DUMPBIN"; then
5454 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5455else
5456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457for as_dir in $PATH
5458do
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5466 fi
5467done
5468 done
5469IFS=$as_save_IFS
5470
5471fi
5472fi
5473DUMPBIN=$ac_cv_prog_DUMPBIN
5474if test -n "$DUMPBIN"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5476$as_echo "$DUMPBIN" >&6; }
5477else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479$as_echo "no" >&6; }
5480fi
5481
5482
5483 test -n "$DUMPBIN" && break
5484 done
5485fi
5486if test -z "$DUMPBIN"; then
5487 ac_ct_DUMPBIN=$DUMPBIN
5488 for ac_prog in dumpbin "link -dump"
5489do
5490 # Extract the first word of "$ac_prog", so it can be a program name with args.
5491set dummy $ac_prog; ac_word=$2
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493$as_echo_n "checking for $ac_word... " >&6; }
5494if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496else
5497 if test -n "$ac_ct_DUMPBIN"; then
5498 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5499else
5500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501for as_dir in $PATH
5502do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5510 fi
5511done
5512 done
5513IFS=$as_save_IFS
5514
5515fi
5516fi
5517ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5518if test -n "$ac_ct_DUMPBIN"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5520$as_echo "$ac_ct_DUMPBIN" >&6; }
5521else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523$as_echo "no" >&6; }
5524fi
5525
5526
5527 test -n "$ac_ct_DUMPBIN" && break
5528done
5529
5530 if test "x$ac_ct_DUMPBIN" = x; then
5531 DUMPBIN=":"
5532 else
5533 case $cross_compiling:$ac_tool_warned in
5534yes:)
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5537ac_tool_warned=yes ;;
5538esac
5539 DUMPBIN=$ac_ct_DUMPBIN
5540 fi
5541fi
5542
5543 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5544 *COFF*)
5545 DUMPBIN="$DUMPBIN -symbols -headers"
5546 ;;
5547 *)
5548 DUMPBIN=:
5549 ;;
5550 esac
5551 fi
5552
5553 if test : != "$DUMPBIN"; then
5554 NM=$DUMPBIN
5555 fi
5556fi
5557test -z "$NM" && NM=nm
5558
5559
5560
5561
5562
5563
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5565$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5566if ${lt_cv_nm_interface+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568else
5569 lt_cv_nm_interface="BSD nm"
5570 echo "int some_variable = 0;" > conftest.$ac_ext
5571 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5572 (eval "$ac_compile" 2>conftest.err)
5573 cat conftest.err >&5
5574 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5575 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5576 cat conftest.err >&5
5577 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5578 cat conftest.out >&5
5579 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5580 lt_cv_nm_interface="MS dumpbin"
5581 fi
5582 rm -f conftest*
5583fi
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5585$as_echo "$lt_cv_nm_interface" >&6; }
5586
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5588$as_echo_n "checking whether ln -s works... " >&6; }
5589LN_S=$as_ln_s
5590if test "$LN_S" = "ln -s"; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5592$as_echo "yes" >&6; }
5593else
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5595$as_echo "no, using $LN_S" >&6; }
5596fi
5597
5598# find the maximum length of command line arguments
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5600$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5601if ${lt_cv_sys_max_cmd_len+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603else
5604 i=0
5605 teststring=ABCD
5606
5607 case $build_os in
5608 msdosdjgpp*)
5609 # On DJGPP, this test can blow up pretty badly due to problems in libc
5610 # (any single argument exceeding 2000 bytes causes a buffer overrun
5611 # during glob expansion). Even if it were fixed, the result of this
5612 # check would be larger than it should be.
5613 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5614 ;;
5615
5616 gnu*)
5617 # Under GNU Hurd, this test is not required because there is
5618 # no limit to the length of command line arguments.
5619 # Libtool will interpret -1 as no limit whatsoever
5620 lt_cv_sys_max_cmd_len=-1;
5621 ;;
5622
5623 cygwin* | mingw* | cegcc*)
5624 # On Win9x/ME, this test blows up -- it succeeds, but takes
5625 # about 5 minutes as the teststring grows exponentially.
5626 # Worse, since 9x/ME are not pre-emptively multitasking,
5627 # you end up with a "frozen" computer, even though with patience
5628 # the test eventually succeeds (with a max line length of 256k).
5629 # Instead, let's just punt: use the minimum linelength reported by
5630 # all of the supported platforms: 8192 (on NT/2K/XP).
5631 lt_cv_sys_max_cmd_len=8192;
5632 ;;
5633
5634 mint*)
5635 # On MiNT this can take a long time and run out of memory.
5636 lt_cv_sys_max_cmd_len=8192;
5637 ;;
5638
5639 amigaos*)
5640 # On AmigaOS with pdksh, this test takes hours, literally.
5641 # So we just punt and use a minimum line length of 8192.
5642 lt_cv_sys_max_cmd_len=8192;
5643 ;;
5644
5645 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5646 # This has been around since 386BSD, at least. Likely further.
5647 if test -x /sbin/sysctl; then
5648 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5649 elif test -x /usr/sbin/sysctl; then
5650 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5651 else
5652 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5653 fi
5654 # And add a safety zone
5655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5657 ;;
5658
5659 interix*)
5660 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5661 lt_cv_sys_max_cmd_len=196608
5662 ;;
5663
5664 os2*)
5665 # The test takes a long time on OS/2.
5666 lt_cv_sys_max_cmd_len=8192
5667 ;;
5668
5669 osf*)
5670 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5671 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5672 # nice to cause kernel panics so lets avoid the loop below.
5673 # First set a reasonable default.
5674 lt_cv_sys_max_cmd_len=16384
5675 #
5676 if test -x /sbin/sysconfig; then
5677 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5678 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5679 esac
5680 fi
5681 ;;
5682 sco3.2v5*)
5683 lt_cv_sys_max_cmd_len=102400
5684 ;;
5685 sysv5* | sco5v6* | sysv4.2uw2*)
5686 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5687 if test -n "$kargmax"; then
5688 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5689 else
5690 lt_cv_sys_max_cmd_len=32768
5691 fi
5692 ;;
5693 *)
5694 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5695 if test -n "$lt_cv_sys_max_cmd_len" && \
5696 test undefined != "$lt_cv_sys_max_cmd_len"; then
5697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5699 else
5700 # Make teststring a little bigger before we do anything with it.
5701 # a 1K string should be a reasonable start.
5702 for i in 1 2 3 4 5 6 7 8; do
5703 teststring=$teststring$teststring
5704 done
5705 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5706 # If test is not a shell built-in, we'll probably end up computing a
5707 # maximum length that is only half of the actual maximum length, but
5708 # we can't tell.
5709 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5710 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5711 test 17 != "$i" # 1/2 MB should be enough
5712 do
5713 i=`expr $i + 1`
5714 teststring=$teststring$teststring
5715 done
5716 # Only check the string length outside the loop.
5717 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5718 teststring=
5719 # Add a significant safety factor because C++ compilers can tack on
5720 # massive amounts of additional arguments before passing them to the
5721 # linker. It appears as though 1/2 is a usable value.
5722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5723 fi
5724 ;;
5725 esac
5726
5727fi
5728
5729if test -n "$lt_cv_sys_max_cmd_len"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5731$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5732else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5734$as_echo "none" >&6; }
5735fi
5736max_cmd_len=$lt_cv_sys_max_cmd_len
5737
5738
5739
5740
5741
5742
5743: ${CP="cp -f"}
5744: ${MV="mv -f"}
5745: ${RM="rm -f"}
5746
5747if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5748 lt_unset=unset
5749else
5750 lt_unset=false
5751fi
5752
5753
5754
5755
5756
5757# test EBCDIC or ASCII
5758case `echo X|tr X '\101'` in
5759 A) # ASCII based system
5760 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5761 lt_SP2NL='tr \040 \012'
5762 lt_NL2SP='tr \015\012 \040\040'
5763 ;;
5764 *) # EBCDIC based system
5765 lt_SP2NL='tr \100 \n'
5766 lt_NL2SP='tr \r\n \100\100'
5767 ;;
5768esac
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5779$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5780if ${lt_cv_to_host_file_cmd+:} false; then :
5781 $as_echo_n "(cached) " >&6
5782else
5783 case $host in
5784 *-*-mingw* )
5785 case $build in
5786 *-*-mingw* ) # actually msys
5787 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5788 ;;
5789 *-*-cygwin* )
5790 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5791 ;;
5792 * ) # otherwise, assume *nix
5793 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5794 ;;
5795 esac
5796 ;;
5797 *-*-cygwin* )
5798 case $build in
5799 *-*-mingw* ) # actually msys
5800 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5801 ;;
5802 *-*-cygwin* )
5803 lt_cv_to_host_file_cmd=func_convert_file_noop
5804 ;;
5805 * ) # otherwise, assume *nix
5806 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5807 ;;
5808 esac
5809 ;;
5810 * ) # unhandled hosts (and "normal" native builds)
5811 lt_cv_to_host_file_cmd=func_convert_file_noop
5812 ;;
5813esac
5814
5815fi
5816
5817to_host_file_cmd=$lt_cv_to_host_file_cmd
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5819$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5820
5821
5822
5823
5824
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5826$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5827if ${lt_cv_to_tool_file_cmd+:} false; then :
5828 $as_echo_n "(cached) " >&6
5829else
5830 #assume ordinary cross tools, or native build.
5831lt_cv_to_tool_file_cmd=func_convert_file_noop
5832case $host in
5833 *-*-mingw* )
5834 case $build in
5835 *-*-mingw* ) # actually msys
5836 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5837 ;;
5838 esac
5839 ;;
5840esac
5841
5842fi
5843
5844to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5846$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5847
5848
5849
5850
5851
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5853$as_echo_n "checking for $LD option to reload object files... " >&6; }
5854if ${lt_cv_ld_reload_flag+:} false; then :
5855 $as_echo_n "(cached) " >&6
5856else
5857 lt_cv_ld_reload_flag='-r'
5858fi
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5860$as_echo "$lt_cv_ld_reload_flag" >&6; }
5861reload_flag=$lt_cv_ld_reload_flag
5862case $reload_flag in
5863"" | " "*) ;;
5864*) reload_flag=" $reload_flag" ;;
5865esac
5866reload_cmds='$LD$reload_flag -o $output$reload_objs'
5867case $host_os in
5868 cygwin* | mingw* | pw32* | cegcc*)
5869 if test yes != "$GCC"; then
5870 reload_cmds=false
5871 fi
5872 ;;
5873 darwin*)
5874 if test yes = "$GCC"; then
5875 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5876 else
5877 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5878 fi
5879 ;;
5880esac
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890if test -n "$ac_tool_prefix"; then
5891 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5892set dummy ${ac_tool_prefix}objdump; ac_word=$2
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894$as_echo_n "checking for $ac_word... " >&6; }
5895if ${ac_cv_prog_OBJDUMP+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897else
5898 if test -n "$OBJDUMP"; then
5899 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5900else
5901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902for as_dir in $PATH
5903do
5904 IFS=$as_save_IFS
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 break 2
5911 fi
5912done
5913 done
5914IFS=$as_save_IFS
5915
5916fi
5917fi
5918OBJDUMP=$ac_cv_prog_OBJDUMP
5919if test -n "$OBJDUMP"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5921$as_echo "$OBJDUMP" >&6; }
5922else
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924$as_echo "no" >&6; }
5925fi
5926
5927
5928fi
5929if test -z "$ac_cv_prog_OBJDUMP"; then
5930 ac_ct_OBJDUMP=$OBJDUMP
5931 # Extract the first word of "objdump", so it can be a program name with args.
5932set dummy objdump; ac_word=$2
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934$as_echo_n "checking for $ac_word... " >&6; }
5935if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5936 $as_echo_n "(cached) " >&6
5937else
5938 if test -n "$ac_ct_OBJDUMP"; then
5939 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5940else
5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942for as_dir in $PATH
5943do
5944 IFS=$as_save_IFS
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
5947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 break 2
5951 fi
5952done
5953 done
5954IFS=$as_save_IFS
5955
5956fi
5957fi
5958ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5959if test -n "$ac_ct_OBJDUMP"; then
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5961$as_echo "$ac_ct_OBJDUMP" >&6; }
5962else
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964$as_echo "no" >&6; }
5965fi
5966
5967 if test "x$ac_ct_OBJDUMP" = x; then
5968 OBJDUMP="false"
5969 else
5970 case $cross_compiling:$ac_tool_warned in
5971yes:)
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974ac_tool_warned=yes ;;
5975esac
5976 OBJDUMP=$ac_ct_OBJDUMP
5977 fi
5978else
5979 OBJDUMP="$ac_cv_prog_OBJDUMP"
5980fi
5981
5982test -z "$OBJDUMP" && OBJDUMP=objdump
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5993$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5994if ${lt_cv_deplibs_check_method+:} false; then :
5995 $as_echo_n "(cached) " >&6
5996else
5997 lt_cv_file_magic_cmd='$MAGIC_CMD'
5998lt_cv_file_magic_test_file=
5999lt_cv_deplibs_check_method='unknown'
6000# Need to set the preceding variable on all platforms that support
6001# interlibrary dependencies.
6002# 'none' -- dependencies not supported.
6003# 'unknown' -- same as none, but documents that we really don't know.
6004# 'pass_all' -- all dependencies passed with no checks.
6005# 'test_compile' -- check by making test program.
6006# 'file_magic [[regex]]' -- check by looking for files in library path
6007# that responds to the $file_magic_cmd with a given extended regex.
6008# If you have 'file' or equivalent on your system and you're not sure
6009# whether 'pass_all' will *always* work, you probably want this one.
6010
6011case $host_os in
6012aix[4-9]*)
6013 lt_cv_deplibs_check_method=pass_all
6014 ;;
6015
6016beos*)
6017 lt_cv_deplibs_check_method=pass_all
6018 ;;
6019
6020bsdi[45]*)
6021 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6022 lt_cv_file_magic_cmd='/usr/bin/file -L'
6023 lt_cv_file_magic_test_file=/shlib/libc.so
6024 ;;
6025
6026cygwin*)
6027 # func_win32_libid is a shell function defined in ltmain.sh
6028 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6029 lt_cv_file_magic_cmd='func_win32_libid'
6030 ;;
6031
6032mingw* | pw32*)
6033 # Base MSYS/MinGW do not provide the 'file' command needed by
6034 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6035 # unless we find 'file', for example because we are cross-compiling.
6036 if ( file / ) >/dev/null 2>&1; then
6037 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6038 lt_cv_file_magic_cmd='func_win32_libid'
6039 else
6040 # Keep this pattern in sync with the one in func_win32_libid.
6041 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6042 lt_cv_file_magic_cmd='$OBJDUMP -f'
6043 fi
6044 ;;
6045
6046cegcc*)
6047 # use the weaker test based on 'objdump'. See mingw*.
6048 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6049 lt_cv_file_magic_cmd='$OBJDUMP -f'
6050 ;;
6051
6052darwin* | rhapsody*)
6053 lt_cv_deplibs_check_method=pass_all
6054 ;;
6055
6056freebsd* | dragonfly*)
6057 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6058 case $host_cpu in
6059 i*86 )
6060 # Not sure whether the presence of OpenBSD here was a mistake.
6061 # Let's accept both of them until this is cleared up.
6062 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6063 lt_cv_file_magic_cmd=/usr/bin/file
6064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6065 ;;
6066 esac
6067 else
6068 lt_cv_deplibs_check_method=pass_all
6069 fi
6070 ;;
6071
6072haiku*)
6073 lt_cv_deplibs_check_method=pass_all
6074 ;;
6075
6076hpux10.20* | hpux11*)
6077 lt_cv_file_magic_cmd=/usr/bin/file
6078 case $host_cpu in
6079 ia64*)
6080 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6081 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6082 ;;
6083 hppa*64*)
6084 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]'
6085 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6086 ;;
6087 *)
6088 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6089 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6090 ;;
6091 esac
6092 ;;
6093
6094interix[3-9]*)
6095 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6097 ;;
6098
6099irix5* | irix6* | nonstopux*)
6100 case $LD in
6101 *-32|*"-32 ") libmagic=32-bit;;
6102 *-n32|*"-n32 ") libmagic=N32;;
6103 *-64|*"-64 ") libmagic=64-bit;;
6104 *) libmagic=never-match;;
6105 esac
6106 lt_cv_deplibs_check_method=pass_all
6107 ;;
6108
6109# This must be glibc/ELF.
6110linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6111 lt_cv_deplibs_check_method=pass_all
6112 ;;
6113
6114netbsd* | netbsdelf*-gnu)
6115 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6117 else
6118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6119 fi
6120 ;;
6121
6122newos6*)
6123 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6124 lt_cv_file_magic_cmd=/usr/bin/file
6125 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6126 ;;
6127
6128*nto* | *qnx*)
6129 lt_cv_deplibs_check_method=pass_all
6130 ;;
6131
6132openbsd* | bitrig*)
6133 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6135 else
6136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6137 fi
6138 ;;
6139
6140osf3* | osf4* | osf5*)
6141 lt_cv_deplibs_check_method=pass_all
6142 ;;
6143
6144rdos*)
6145 lt_cv_deplibs_check_method=pass_all
6146 ;;
6147
6148solaris*)
6149 lt_cv_deplibs_check_method=pass_all
6150 ;;
6151
6152sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6153 lt_cv_deplibs_check_method=pass_all
6154 ;;
6155
6156sysv4 | sysv4.3*)
6157 case $host_vendor in
6158 motorola)
6159 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]'
6160 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6161 ;;
6162 ncr)
6163 lt_cv_deplibs_check_method=pass_all
6164 ;;
6165 sequent)
6166 lt_cv_file_magic_cmd='/bin/file'
6167 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6168 ;;
6169 sni)
6170 lt_cv_file_magic_cmd='/bin/file'
6171 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6172 lt_cv_file_magic_test_file=/lib/libc.so
6173 ;;
6174 siemens)
6175 lt_cv_deplibs_check_method=pass_all
6176 ;;
6177 pc)
6178 lt_cv_deplibs_check_method=pass_all
6179 ;;
6180 esac
6181 ;;
6182
6183tpf*)
6184 lt_cv_deplibs_check_method=pass_all
6185 ;;
6186os2*)
6187 lt_cv_deplibs_check_method=pass_all
6188 ;;
6189esac
6190
6191fi
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6193$as_echo "$lt_cv_deplibs_check_method" >&6; }
6194
6195file_magic_glob=
6196want_nocaseglob=no
6197if test "$build" = "$host"; then
6198 case $host_os in
6199 mingw* | pw32*)
6200 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6201 want_nocaseglob=yes
6202 else
6203 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6204 fi
6205 ;;
6206 esac
6207fi
6208
6209file_magic_cmd=$lt_cv_file_magic_cmd
6210deplibs_check_method=$lt_cv_deplibs_check_method
6211test -z "$deplibs_check_method" && deplibs_check_method=unknown
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234if test -n "$ac_tool_prefix"; then
6235 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6236set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238$as_echo_n "checking for $ac_word... " >&6; }
6239if ${ac_cv_prog_DLLTOOL+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241else
6242 if test -n "$DLLTOOL"; then
6243 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6255 fi
6256done
6257 done
6258IFS=$as_save_IFS
6259
6260fi
6261fi
6262DLLTOOL=$ac_cv_prog_DLLTOOL
6263if test -n "$DLLTOOL"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6265$as_echo "$DLLTOOL" >&6; }
6266else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268$as_echo "no" >&6; }
6269fi
6270
6271
6272fi
6273if test -z "$ac_cv_prog_DLLTOOL"; then
6274 ac_ct_DLLTOOL=$DLLTOOL
6275 # Extract the first word of "dlltool", so it can be a program name with args.
6276set dummy dlltool; ac_word=$2
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278$as_echo_n "checking for $ac_word... " >&6; }
6279if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6280 $as_echo_n "(cached) " >&6
6281else
6282 if test -n "$ac_ct_DLLTOOL"; then
6283 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6284else
6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6292 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296done
6297 done
6298IFS=$as_save_IFS
6299
6300fi
6301fi
6302ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6303if test -n "$ac_ct_DLLTOOL"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6305$as_echo "$ac_ct_DLLTOOL" >&6; }
6306else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308$as_echo "no" >&6; }
6309fi
6310
6311 if test "x$ac_ct_DLLTOOL" = x; then
6312 DLLTOOL="false"
6313 else
6314 case $cross_compiling:$ac_tool_warned in
6315yes:)
6316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6318ac_tool_warned=yes ;;
6319esac
6320 DLLTOOL=$ac_ct_DLLTOOL
6321 fi
6322else
6323 DLLTOOL="$ac_cv_prog_DLLTOOL"
6324fi
6325
6326test -z "$DLLTOOL" && DLLTOOL=dlltool
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6338$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6339if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341else
6342 lt_cv_sharedlib_from_linklib_cmd='unknown'
6343
6344case $host_os in
6345cygwin* | mingw* | pw32* | cegcc*)
6346 # two different shell functions defined in ltmain.sh;
6347 # decide which one to use based on capabilities of $DLLTOOL
6348 case `$DLLTOOL --help 2>&1` in
6349 *--identify-strict*)
6350 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6351 ;;
6352 *)
6353 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6354 ;;
6355 esac
6356 ;;
6357*)
6358 # fallback: assume linklib IS sharedlib
6359 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6360 ;;
6361esac
6362
6363fi
6364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6365$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6366sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6367test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6368
6369
6370
6371
6372
6373
6374
6375
6376if test -n "$ac_tool_prefix"; then
6377 for ac_prog in ar
6378 do
6379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6380set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382$as_echo_n "checking for $ac_word... " >&6; }
6383if ${ac_cv_prog_AR+:} false; then :
6384 $as_echo_n "(cached) " >&6
6385else
6386 if test -n "$AR"; then
6387 ac_cv_prog_AR="$AR" # Let the user override the test.
6388else
6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390for as_dir in $PATH
6391do
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6399 fi
6400done
6401 done
6402IFS=$as_save_IFS
6403
6404fi
6405fi
6406AR=$ac_cv_prog_AR
6407if test -n "$AR"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6409$as_echo "$AR" >&6; }
6410else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412$as_echo "no" >&6; }
6413fi
6414
6415
6416 test -n "$AR" && break
6417 done
6418fi
6419if test -z "$AR"; then
6420 ac_ct_AR=$AR
6421 for ac_prog in ar
6422do
6423 # Extract the first word of "$ac_prog", so it can be a program name with args.
6424set dummy $ac_prog; ac_word=$2
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426$as_echo_n "checking for $ac_word... " >&6; }
6427if ${ac_cv_prog_ac_ct_AR+:} false; then :
6428 $as_echo_n "(cached) " >&6
6429else
6430 if test -n "$ac_ct_AR"; then
6431 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6432else
6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6440 ac_cv_prog_ac_ct_AR="$ac_prog"
6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 break 2
6443 fi
6444done
6445 done
6446IFS=$as_save_IFS
6447
6448fi
6449fi
6450ac_ct_AR=$ac_cv_prog_ac_ct_AR
6451if test -n "$ac_ct_AR"; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6453$as_echo "$ac_ct_AR" >&6; }
6454else
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456$as_echo "no" >&6; }
6457fi
6458
6459
6460 test -n "$ac_ct_AR" && break
6461done
6462
6463 if test "x$ac_ct_AR" = x; then
6464 AR="false"
6465 else
6466 case $cross_compiling:$ac_tool_warned in
6467yes:)
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6470ac_tool_warned=yes ;;
6471esac
6472 AR=$ac_ct_AR
6473 fi
6474fi
6475
6476: ${AR=ar}
6477: ${AR_FLAGS=cru}
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6490$as_echo_n "checking for archiver @FILE support... " >&6; }
6491if ${lt_cv_ar_at_file+:} false; then :
6492 $as_echo_n "(cached) " >&6
6493else
6494 lt_cv_ar_at_file=no
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496/* end confdefs.h. */
6497
6498int
6499main ()
6500{
6501
6502 ;
6503 return 0;
6504}
6505_ACEOF
6506if ac_fn_c_try_compile "$LINENO"; then :
6507 echo conftest.$ac_objext > conftest.lst
6508 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6510 (eval $lt_ar_try) 2>&5
6511 ac_status=$?
6512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6513 test $ac_status = 0; }
6514 if test 0 -eq "$ac_status"; then
6515 # Ensure the archiver fails upon bogus file names.
6516 rm -f conftest.$ac_objext libconftest.a
6517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6518 (eval $lt_ar_try) 2>&5
6519 ac_status=$?
6520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6521 test $ac_status = 0; }
6522 if test 0 -ne "$ac_status"; then
6523 lt_cv_ar_at_file=@
6524 fi
6525 fi
6526 rm -f conftest.* libconftest.a
6527
6528fi
6529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530
6531fi
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6533$as_echo "$lt_cv_ar_at_file" >&6; }
6534
6535if test no = "$lt_cv_ar_at_file"; then
6536 archiver_list_spec=
6537else
6538 archiver_list_spec=$lt_cv_ar_at_file
6539fi
6540
6541
6542
6543
6544
6545
6546
6547if test -n "$ac_tool_prefix"; then
6548 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6549set dummy ${ac_tool_prefix}strip; ac_word=$2
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551$as_echo_n "checking for $ac_word... " >&6; }
6552if ${ac_cv_prog_STRIP+:} false; then :
6553 $as_echo_n "(cached) " >&6
6554else
6555 if test -n "$STRIP"; then
6556 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6557else
6558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559for as_dir in $PATH
6560do
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6565 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6568 fi
6569done
6570 done
6571IFS=$as_save_IFS
6572
6573fi
6574fi
6575STRIP=$ac_cv_prog_STRIP
6576if test -n "$STRIP"; then
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6578$as_echo "$STRIP" >&6; }
6579else
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581$as_echo "no" >&6; }
6582fi
6583
6584
6585fi
6586if test -z "$ac_cv_prog_STRIP"; then
6587 ac_ct_STRIP=$STRIP
6588 # Extract the first word of "strip", so it can be a program name with args.
6589set dummy strip; ac_word=$2
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591$as_echo_n "checking for $ac_word... " >&6; }
6592if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6593 $as_echo_n "(cached) " >&6
6594else
6595 if test -n "$ac_ct_STRIP"; then
6596 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6597else
6598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599for as_dir in $PATH
6600do
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6605 ac_cv_prog_ac_ct_STRIP="strip"
6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6608 fi
6609done
6610 done
6611IFS=$as_save_IFS
6612
6613fi
6614fi
6615ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6616if test -n "$ac_ct_STRIP"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6618$as_echo "$ac_ct_STRIP" >&6; }
6619else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621$as_echo "no" >&6; }
6622fi
6623
6624 if test "x$ac_ct_STRIP" = x; then
6625 STRIP=":"
6626 else
6627 case $cross_compiling:$ac_tool_warned in
6628yes:)
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631ac_tool_warned=yes ;;
6632esac
6633 STRIP=$ac_ct_STRIP
6634 fi
6635else
6636 STRIP="$ac_cv_prog_STRIP"
6637fi
6638
6639test -z "$STRIP" && STRIP=:
6640
6641
6642
6643
6644
6645
6646if test -n "$ac_tool_prefix"; then
6647 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6648set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650$as_echo_n "checking for $ac_word... " >&6; }
6651if ${ac_cv_prog_RANLIB+:} false; then :
6652 $as_echo_n "(cached) " >&6
6653else
6654 if test -n "$RANLIB"; then
6655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6656else
6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668done
6669 done
6670IFS=$as_save_IFS
6671
6672fi
6673fi
6674RANLIB=$ac_cv_prog_RANLIB
6675if test -n "$RANLIB"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6677$as_echo "$RANLIB" >&6; }
6678else
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680$as_echo "no" >&6; }
6681fi
6682
6683
6684fi
6685if test -z "$ac_cv_prog_RANLIB"; then
6686 ac_ct_RANLIB=$RANLIB
6687 # Extract the first word of "ranlib", so it can be a program name with args.
6688set dummy ranlib; ac_word=$2
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690$as_echo_n "checking for $ac_word... " >&6; }
6691if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6692 $as_echo_n "(cached) " >&6
6693else
6694 if test -n "$ac_ct_RANLIB"; then
6695 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6696else
6697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704 ac_cv_prog_ac_ct_RANLIB="ranlib"
6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6707 fi
6708done
6709 done
6710IFS=$as_save_IFS
6711
6712fi
6713fi
6714ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6715if test -n "$ac_ct_RANLIB"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6717$as_echo "$ac_ct_RANLIB" >&6; }
6718else
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720$as_echo "no" >&6; }
6721fi
6722
6723 if test "x$ac_ct_RANLIB" = x; then
6724 RANLIB=":"
6725 else
6726 case $cross_compiling:$ac_tool_warned in
6727yes:)
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6730ac_tool_warned=yes ;;
6731esac
6732 RANLIB=$ac_ct_RANLIB
6733 fi
6734else
6735 RANLIB="$ac_cv_prog_RANLIB"
6736fi
6737
6738test -z "$RANLIB" && RANLIB=:
6739
6740
6741
6742
6743
6744
6745# Determine commands to create old-style static archives.
6746old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6747old_postinstall_cmds='chmod 644 $oldlib'
6748old_postuninstall_cmds=
6749
6750if test -n "$RANLIB"; then
6751 case $host_os in
6752 bitrig* | openbsd*)
6753 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6754 ;;
6755 *)
6756 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6757 ;;
6758 esac
6759 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6760fi
6761
6762case $host_os in
6763 darwin*)
6764 lock_old_archive_extraction=yes ;;
6765 *)
6766 lock_old_archive_extraction=no ;;
6767esac
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807# If no C compiler was specified, use CC.
6808LTCC=${LTCC-"$CC"}
6809
6810# If no C compiler flags were specified, use CFLAGS.
6811LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6812
6813# Allow CC to be a program name with arguments.
6814compiler=$CC
6815
6816
6817# Check for command to grab the raw symbol name followed by C symbol from nm.
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6819$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6820if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822else
6823
6824# These are sane defaults that work on at least a few old systems.
6825# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6826
6827# Character class describing NM global symbol codes.
6828symcode='[BCDEGRST]'
6829
6830# Regexp to match symbols that can be accessed directly from C.
6831sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6832
6833# Define system-specific variables.
6834case $host_os in
6835aix*)
6836 symcode='[BCDT]'
6837 ;;
6838cygwin* | mingw* | pw32* | cegcc*)
6839 symcode='[ABCDGISTW]'
6840 ;;
6841hpux*)
6842 if test ia64 = "$host_cpu"; then
6843 symcode='[ABCDEGRST]'
6844 fi
6845 ;;
6846irix* | nonstopux*)
6847 symcode='[BCDEGRST]'
6848 ;;
6849osf*)
6850 symcode='[BCDEGQRST]'
6851 ;;
6852solaris*)
6853 symcode='[BDRT]'
6854 ;;
6855sco3.2v5*)
6856 symcode='[DT]'
6857 ;;
6858sysv4.2uw2*)
6859 symcode='[DT]'
6860 ;;
6861sysv5* | sco5v6* | unixware* | OpenUNIX*)
6862 symcode='[ABDT]'
6863 ;;
6864sysv4)
6865 symcode='[DFNSTU]'
6866 ;;
6867esac
6868
6869# If we're using GNU nm, then use its standard symbol codes.
6870case `$NM -V 2>&1` in
6871*GNU* | *'with BFD'*)
6872 symcode='[ABCDGIRSTW]' ;;
6873esac
6874
6875if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6876 # Gets list of data symbols to import.
6877 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6878 # Adjust the below global symbol transforms to fixup imported variables.
6879 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6880 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6881 lt_c_name_lib_hook="\
6882 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6883 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6884else
6885 # Disable hooks by default.
6886 lt_cv_sys_global_symbol_to_import=
6887 lt_cdecl_hook=
6888 lt_c_name_hook=
6889 lt_c_name_lib_hook=
6890fi
6891
6892# Transform an extracted symbol line into a proper C declaration.
6893# Some systems (esp. on ia64) link data and code symbols differently,
6894# so use this general approach.
6895lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6896$lt_cdecl_hook\
6897" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6898" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6899
6900# Transform an extracted symbol line into symbol name and symbol address
6901lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6902$lt_c_name_hook\
6903" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6904" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6905
6906# Transform an extracted symbol line into symbol name with lib prefix and
6907# symbol address.
6908lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6909$lt_c_name_lib_hook\
6910" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6911" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6912" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6913
6914# Handle CRLF in mingw tool chain
6915opt_cr=
6916case $build_os in
6917mingw*)
6918 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6919 ;;
6920esac
6921
6922# Try without a prefix underscore, then with it.
6923for ac_symprfx in "" "_"; do
6924
6925 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6926 symxfrm="\\1 $ac_symprfx\\2 \\2"
6927
6928 # Write the raw and C identifiers.
6929 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6930 # Fake it for dumpbin and say T for any non-static function,
6931 # D for any global variable and I for any imported variable.
6932 # Also find C++ and __fastcall symbols from MSVC++,
6933 # which start with @ or ?.
6934 lt_cv_sys_global_symbol_pipe="$AWK '"\
6935" {last_section=section; section=\$ 3};"\
6936" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6937" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6938" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6939" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6940" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6941" \$ 0!~/External *\|/{next};"\
6942" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6943" {if(hide[section]) next};"\
6944" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6945" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6946" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6947" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6948" ' prfx=^$ac_symprfx"
6949 else
6950 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6951 fi
6952 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6953
6954 # Check to see that the pipe works correctly.
6955 pipe_works=no
6956
6957 rm -f conftest*
6958 cat > conftest.$ac_ext <<_LT_EOF
6959#ifdef __cplusplus
6960extern "C" {
6961#endif
6962char nm_test_var;
6963void nm_test_func(void);
6964void nm_test_func(void){}
6965#ifdef __cplusplus
6966}
6967#endif
6968int main(){nm_test_var='a';nm_test_func();return(0);}
6969_LT_EOF
6970
6971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6972 (eval $ac_compile) 2>&5
6973 ac_status=$?
6974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6975 test $ac_status = 0; }; then
6976 # Now try to grab the symbols.
6977 nlist=conftest.nm
6978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6979 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6980 ac_status=$?
6981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6982 test $ac_status = 0; } && test -s "$nlist"; then
6983 # Try sorting and uniquifying the output.
6984 if sort "$nlist" | uniq > "$nlist"T; then
6985 mv -f "$nlist"T "$nlist"
6986 else
6987 rm -f "$nlist"T
6988 fi
6989
6990 # Make sure that we snagged all the symbols we need.
6991 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6992 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6993 cat <<_LT_EOF > conftest.$ac_ext
6994/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6995#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6996/* DATA imports from DLLs on WIN32 can't be const, because runtime
6997 relocations are performed -- see ld's documentation on pseudo-relocs. */
6998# define LT_DLSYM_CONST
6999#elif defined __osf__
7000/* This system does not cope well with relocations in const data. */
7001# define LT_DLSYM_CONST
7002#else
7003# define LT_DLSYM_CONST const
7004#endif
7005
7006#ifdef __cplusplus
7007extern "C" {
7008#endif
7009
7010_LT_EOF
7011 # Now generate the symbol file.
7012 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7013
7014 cat <<_LT_EOF >> conftest.$ac_ext
7015
7016/* The mapping between symbol names and symbols. */
7017LT_DLSYM_CONST struct {
7018 const char *name;
7019 void *address;
7020}
7021lt__PROGRAM__LTX_preloaded_symbols[] =
7022{
7023 { "@PROGRAM@", (void *) 0 },
7024_LT_EOF
7025 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7026 cat <<\_LT_EOF >> conftest.$ac_ext
7027 {0, (void *) 0}
7028};
7029
7030/* This works around a problem in FreeBSD linker */
7031#ifdef FREEBSD_WORKAROUND
7032static const void *lt_preloaded_setup() {
7033 return lt__PROGRAM__LTX_preloaded_symbols;
7034}
7035#endif
7036
7037#ifdef __cplusplus
7038}
7039#endif
7040_LT_EOF
7041 # Now try linking the two files.
7042 mv conftest.$ac_objext conftstm.$ac_objext
7043 lt_globsym_save_LIBS=$LIBS
7044 lt_globsym_save_CFLAGS=$CFLAGS
7045 LIBS=conftstm.$ac_objext
7046 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7048 (eval $ac_link) 2>&5
7049 ac_status=$?
7050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7051 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7052 pipe_works=yes
7053 fi
7054 LIBS=$lt_globsym_save_LIBS
7055 CFLAGS=$lt_globsym_save_CFLAGS
7056 else
7057 echo "cannot find nm_test_func in $nlist" >&5
7058 fi
7059 else
7060 echo "cannot find nm_test_var in $nlist" >&5
7061 fi
7062 else
7063 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7064 fi
7065 else
7066 echo "$progname: failed program was:" >&5
7067 cat conftest.$ac_ext >&5
7068 fi
7069 rm -rf conftest* conftst*
7070
7071 # Do not use the global_symbol_pipe unless it works.
7072 if test yes = "$pipe_works"; then
7073 break
7074 else
7075 lt_cv_sys_global_symbol_pipe=
7076 fi
7077done
7078
7079fi
7080
7081if test -z "$lt_cv_sys_global_symbol_pipe"; then
7082 lt_cv_sys_global_symbol_to_cdecl=
7083fi
7084if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7086$as_echo "failed" >&6; }
7087else
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7089$as_echo "ok" >&6; }
7090fi
7091
7092# Response file support.
7093if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7094 nm_file_list_spec='@'
7095elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7096 nm_file_list_spec='@'
7097fi
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7136$as_echo_n "checking for sysroot... " >&6; }
7137
7138# Check whether --with-sysroot was given.
7139if test "${with_sysroot+set}" = set; then :
7140 withval=$with_sysroot;
7141else
7142 with_sysroot=no
7143fi
7144
7145
7146lt_sysroot=
7147case $with_sysroot in #(
7148 yes)
7149 if test yes = "$GCC"; then
7150 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7151 fi
7152 ;; #(
7153 /*)
7154 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7155 ;; #(
7156 no|'')
7157 ;; #(
7158 *)
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7160$as_echo "$with_sysroot" >&6; }
7161 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7162 ;;
7163esac
7164
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7166$as_echo "${lt_sysroot:-no}" >&6; }
7167
7168
7169
7170
7171
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7173$as_echo_n "checking for a working dd... " >&6; }
7174if ${ac_cv_path_lt_DD+:} false; then :
7175 $as_echo_n "(cached) " >&6
7176else
7177 printf 0123456789abcdef0123456789abcdef >conftest.i
7178cat conftest.i conftest.i >conftest2.i
7179: ${lt_DD:=$DD}
7180if test -z "$lt_DD"; then
7181 ac_path_lt_DD_found=false
7182 # Loop through the user's path and test for each of PROGNAME-LIST
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_prog in dd; do
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7191 as_fn_executable_p "$ac_path_lt_DD" || continue
7192if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7193 cmp -s conftest.i conftest.out \
7194 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7195fi
7196 $ac_path_lt_DD_found && break 3
7197 done
7198 done
7199 done
7200IFS=$as_save_IFS
7201 if test -z "$ac_cv_path_lt_DD"; then
7202 :
7203 fi
7204else
7205 ac_cv_path_lt_DD=$lt_DD
7206fi
7207
7208rm -f conftest.i conftest2.i conftest.out
7209fi
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7211$as_echo "$ac_cv_path_lt_DD" >&6; }
7212
7213
7214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7215$as_echo_n "checking how to truncate binary pipes... " >&6; }
7216if ${lt_cv_truncate_bin+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218else
7219 printf 0123456789abcdef0123456789abcdef >conftest.i
7220cat conftest.i conftest.i >conftest2.i
7221lt_cv_truncate_bin=
7222if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7223 cmp -s conftest.i conftest.out \
7224 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7225fi
7226rm -f conftest.i conftest2.i conftest.out
7227test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7228fi
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7230$as_echo "$lt_cv_truncate_bin" >&6; }
7231
7232
7233
7234
7235
7236
7237
7238# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7239func_cc_basename ()
7240{
7241 for cc_temp in $*""; do
7242 case $cc_temp in
7243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7245 \-*) ;;
7246 *) break;;
7247 esac
7248 done
7249 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7250}
7251
7252# Check whether --enable-libtool-lock was given.
7253if test "${enable_libtool_lock+set}" = set; then :
7254 enableval=$enable_libtool_lock;
7255fi
7256
7257test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7258
7259# Some flags need to be propagated to the compiler or linker for good
7260# libtool support.
7261case $host in
7262ia64-*-hpux*)
7263 # Find out what ABI is being produced by ac_compile, and set mode
7264 # options accordingly.
7265 echo 'int i;' > conftest.$ac_ext
7266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7267 (eval $ac_compile) 2>&5
7268 ac_status=$?
7269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7270 test $ac_status = 0; }; then
7271 case `/usr/bin/file conftest.$ac_objext` in
7272 *ELF-32*)
7273 HPUX_IA64_MODE=32
7274 ;;
7275 *ELF-64*)
7276 HPUX_IA64_MODE=64
7277 ;;
7278 esac
7279 fi
7280 rm -rf conftest*
7281 ;;
7282*-*-irix6*)
7283 # Find out what ABI is being produced by ac_compile, and set linker
7284 # options accordingly.
7285 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7287 (eval $ac_compile) 2>&5
7288 ac_status=$?
7289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7290 test $ac_status = 0; }; then
7291 if test yes = "$lt_cv_prog_gnu_ld"; then
7292 case `/usr/bin/file conftest.$ac_objext` in
7293 *32-bit*)
7294 LD="${LD-ld} -melf32bsmip"
7295 ;;
7296 *N32*)
7297 LD="${LD-ld} -melf32bmipn32"
7298 ;;
7299 *64-bit*)
7300 LD="${LD-ld} -melf64bmip"
7301 ;;
7302 esac
7303 else
7304 case `/usr/bin/file conftest.$ac_objext` in
7305 *32-bit*)
7306 LD="${LD-ld} -32"
7307 ;;
7308 *N32*)
7309 LD="${LD-ld} -n32"
7310 ;;
7311 *64-bit*)
7312 LD="${LD-ld} -64"
7313 ;;
7314 esac
7315 fi
7316 fi
7317 rm -rf conftest*
7318 ;;
7319
7320mips64*-*linux*)
7321 # Find out what ABI is being produced by ac_compile, and set linker
7322 # options accordingly.
7323 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7325 (eval $ac_compile) 2>&5
7326 ac_status=$?
7327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7328 test $ac_status = 0; }; then
7329 emul=elf
7330 case `/usr/bin/file conftest.$ac_objext` in
7331 *32-bit*)
7332 emul="${emul}32"
7333 ;;
7334 *64-bit*)
7335 emul="${emul}64"
7336 ;;
7337 esac
7338 case `/usr/bin/file conftest.$ac_objext` in
7339 *MSB*)
7340 emul="${emul}btsmip"
7341 ;;
7342 *LSB*)
7343 emul="${emul}ltsmip"
7344 ;;
7345 esac
7346 case `/usr/bin/file conftest.$ac_objext` in
7347 *N32*)
7348 emul="${emul}n32"
7349 ;;
7350 esac
7351 LD="${LD-ld} -m $emul"
7352 fi
7353 rm -rf conftest*
7354 ;;
7355
7356x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7358 # Find out what ABI is being produced by ac_compile, and set linker
7359 # options accordingly. Note that the listed cases only cover the
7360 # situations where additional linker options are needed (such as when
7361 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7362 # vice versa); the common cases where no linker options are needed do
7363 # not appear in the list.
7364 echo 'int i;' > conftest.$ac_ext
7365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7366 (eval $ac_compile) 2>&5
7367 ac_status=$?
7368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7369 test $ac_status = 0; }; then
7370 case `/usr/bin/file conftest.o` in
7371 *32-bit*)
7372 case $host in
7373 x86_64-*kfreebsd*-gnu)
7374 LD="${LD-ld} -m elf_i386_fbsd"
7375 ;;
7376 x86_64-*linux*)
7377 case `/usr/bin/file conftest.o` in
7378 *x86-64*)
7379 LD="${LD-ld} -m elf32_x86_64"
7380 ;;
7381 *)
7382 LD="${LD-ld} -m elf_i386"
7383 ;;
7384 esac
7385 ;;
7386 powerpc64le-*linux*)
7387 LD="${LD-ld} -m elf32lppclinux"
7388 ;;
7389 powerpc64-*linux*)
7390 LD="${LD-ld} -m elf32ppclinux"
7391 ;;
7392 s390x-*linux*)
7393 LD="${LD-ld} -m elf_s390"
7394 ;;
7395 sparc64-*linux*)
7396 LD="${LD-ld} -m elf32_sparc"
7397 ;;
7398 esac
7399 ;;
7400 *64-bit*)
7401 case $host in
7402 x86_64-*kfreebsd*-gnu)
7403 LD="${LD-ld} -m elf_x86_64_fbsd"
7404 ;;
7405 x86_64-*linux*)
7406 LD="${LD-ld} -m elf_x86_64"
7407 ;;
7408 powerpcle-*linux*)
7409 LD="${LD-ld} -m elf64lppc"
7410 ;;
7411 powerpc-*linux*)
7412 LD="${LD-ld} -m elf64ppc"
7413 ;;
7414 s390*-*linux*|s390*-*tpf*)
7415 LD="${LD-ld} -m elf64_s390"
7416 ;;
7417 sparc*-*linux*)
7418 LD="${LD-ld} -m elf64_sparc"
7419 ;;
7420 esac
7421 ;;
7422 esac
7423 fi
7424 rm -rf conftest*
7425 ;;
7426
7427*-*-sco3.2v5*)
7428 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7429 SAVE_CFLAGS=$CFLAGS
7430 CFLAGS="$CFLAGS -belf"
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7432$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7433if ${lt_cv_cc_needs_belf+:} false; then :
7434 $as_echo_n "(cached) " >&6
7435else
7436 ac_ext=c
7437ac_cpp='$CPP $CPPFLAGS'
7438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7440ac_compiler_gnu=$ac_cv_c_compiler_gnu
7441
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443/* end confdefs.h. */
7444
7445int
7446main ()
7447{
7448
7449 ;
7450 return 0;
7451}
7452_ACEOF
7453if ac_fn_c_try_link "$LINENO"; then :
7454 lt_cv_cc_needs_belf=yes
7455else
7456 lt_cv_cc_needs_belf=no
7457fi
7458rm -f core conftest.err conftest.$ac_objext \
7459 conftest$ac_exeext conftest.$ac_ext
7460 ac_ext=c
7461ac_cpp='$CPP $CPPFLAGS'
7462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7464ac_compiler_gnu=$ac_cv_c_compiler_gnu
7465
7466fi
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7468$as_echo "$lt_cv_cc_needs_belf" >&6; }
7469 if test yes != "$lt_cv_cc_needs_belf"; then
7470 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7471 CFLAGS=$SAVE_CFLAGS
7472 fi
7473 ;;
7474*-*solaris*)
7475 # Find out what ABI is being produced by ac_compile, and set linker
7476 # options accordingly.
7477 echo 'int i;' > conftest.$ac_ext
7478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7479 (eval $ac_compile) 2>&5
7480 ac_status=$?
7481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482 test $ac_status = 0; }; then
7483 case `/usr/bin/file conftest.o` in
7484 *64-bit*)
7485 case $lt_cv_prog_gnu_ld in
7486 yes*)
7487 case $host in
7488 i?86-*-solaris*|x86_64-*-solaris*)
7489 LD="${LD-ld} -m elf_x86_64"
7490 ;;
7491 sparc*-*-solaris*)
7492 LD="${LD-ld} -m elf64_sparc"
7493 ;;
7494 esac
7495 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7496 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7497 LD=${LD-ld}_sol2
7498 fi
7499 ;;
7500 *)
7501 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7502 LD="${LD-ld} -64"
7503 fi
7504 ;;
7505 esac
7506 ;;
7507 esac
7508 fi
7509 rm -rf conftest*
7510 ;;
7511esac
7512
7513need_locks=$enable_libtool_lock
7514
7515if test -n "$ac_tool_prefix"; then
7516 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7517set dummy ${ac_tool_prefix}mt; ac_word=$2
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519$as_echo_n "checking for $ac_word... " >&6; }
7520if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7521 $as_echo_n "(cached) " >&6
7522else
7523 if test -n "$MANIFEST_TOOL"; then
7524 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7525else
7526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527for as_dir in $PATH
7528do
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 break 2
7536 fi
7537done
7538 done
7539IFS=$as_save_IFS
7540
7541fi
7542fi
7543MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7544if test -n "$MANIFEST_TOOL"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7546$as_echo "$MANIFEST_TOOL" >&6; }
7547else
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549$as_echo "no" >&6; }
7550fi
7551
7552
7553fi
7554if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7555 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7556 # Extract the first word of "mt", so it can be a program name with args.
7557set dummy mt; ac_word=$2
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559$as_echo_n "checking for $ac_word... " >&6; }
7560if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7561 $as_echo_n "(cached) " >&6
7562else
7563 if test -n "$ac_ct_MANIFEST_TOOL"; then
7564 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7565else
7566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567for as_dir in $PATH
7568do
7569 IFS=$as_save_IFS
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 break 2
7576 fi
7577done
7578 done
7579IFS=$as_save_IFS
7580
7581fi
7582fi
7583ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7584if test -n "$ac_ct_MANIFEST_TOOL"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7586$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7587else
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589$as_echo "no" >&6; }
7590fi
7591
7592 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7593 MANIFEST_TOOL=":"
7594 else
7595 case $cross_compiling:$ac_tool_warned in
7596yes:)
7597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7599ac_tool_warned=yes ;;
7600esac
7601 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7602 fi
7603else
7604 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7605fi
7606
7607test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7609$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7610if ${lt_cv_path_mainfest_tool+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612else
7613 lt_cv_path_mainfest_tool=no
7614 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7615 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7616 cat conftest.err >&5
7617 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7618 lt_cv_path_mainfest_tool=yes
7619 fi
7620 rm -f conftest*
7621fi
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7623$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7624if test yes != "$lt_cv_path_mainfest_tool"; then
7625 MANIFEST_TOOL=:
7626fi
7627
7628
7629
7630
7631
7632
7633 case $host_os in
7634 rhapsody* | darwin*)
7635 if test -n "$ac_tool_prefix"; then
7636 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7637set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639$as_echo_n "checking for $ac_word... " >&6; }
7640if ${ac_cv_prog_DSYMUTIL+:} false; then :
7641 $as_echo_n "(cached) " >&6
7642else
7643 if test -n "$DSYMUTIL"; then
7644 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7645else
7646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647for as_dir in $PATH
7648do
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 break 2
7656 fi
7657done
7658 done
7659IFS=$as_save_IFS
7660
7661fi
7662fi
7663DSYMUTIL=$ac_cv_prog_DSYMUTIL
7664if test -n "$DSYMUTIL"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7666$as_echo "$DSYMUTIL" >&6; }
7667else
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669$as_echo "no" >&6; }
7670fi
7671
7672
7673fi
7674if test -z "$ac_cv_prog_DSYMUTIL"; then
7675 ac_ct_DSYMUTIL=$DSYMUTIL
7676 # Extract the first word of "dsymutil", so it can be a program name with args.
7677set dummy dsymutil; ac_word=$2
7678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679$as_echo_n "checking for $ac_word... " >&6; }
7680if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7681 $as_echo_n "(cached) " >&6
7682else
7683 if test -n "$ac_ct_DSYMUTIL"; then
7684 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7685else
7686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687for as_dir in $PATH
7688do
7689 IFS=$as_save_IFS
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7693 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 break 2
7696 fi
7697done
7698 done
7699IFS=$as_save_IFS
7700
7701fi
7702fi
7703ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7704if test -n "$ac_ct_DSYMUTIL"; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7706$as_echo "$ac_ct_DSYMUTIL" >&6; }
7707else
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709$as_echo "no" >&6; }
7710fi
7711
7712 if test "x$ac_ct_DSYMUTIL" = x; then
7713 DSYMUTIL=":"
7714 else
7715 case $cross_compiling:$ac_tool_warned in
7716yes:)
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7719ac_tool_warned=yes ;;
7720esac
7721 DSYMUTIL=$ac_ct_DSYMUTIL
7722 fi
7723else
7724 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7725fi
7726
7727 if test -n "$ac_tool_prefix"; then
7728 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7729set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731$as_echo_n "checking for $ac_word... " >&6; }
7732if ${ac_cv_prog_NMEDIT+:} false; then :
7733 $as_echo_n "(cached) " >&6
7734else
7735 if test -n "$NMEDIT"; then
7736 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7737else
7738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739for as_dir in $PATH
7740do
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7745 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7748 fi
7749done
7750 done
7751IFS=$as_save_IFS
7752
7753fi
7754fi
7755NMEDIT=$ac_cv_prog_NMEDIT
7756if test -n "$NMEDIT"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7758$as_echo "$NMEDIT" >&6; }
7759else
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761$as_echo "no" >&6; }
7762fi
7763
7764
7765fi
7766if test -z "$ac_cv_prog_NMEDIT"; then
7767 ac_ct_NMEDIT=$NMEDIT
7768 # Extract the first word of "nmedit", so it can be a program name with args.
7769set dummy nmedit; ac_word=$2
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771$as_echo_n "checking for $ac_word... " >&6; }
7772if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7773 $as_echo_n "(cached) " >&6
7774else
7775 if test -n "$ac_ct_NMEDIT"; then
7776 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7777else
7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7788 fi
7789done
7790 done
7791IFS=$as_save_IFS
7792
7793fi
7794fi
7795ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7796if test -n "$ac_ct_NMEDIT"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7798$as_echo "$ac_ct_NMEDIT" >&6; }
7799else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801$as_echo "no" >&6; }
7802fi
7803
7804 if test "x$ac_ct_NMEDIT" = x; then
7805 NMEDIT=":"
7806 else
7807 case $cross_compiling:$ac_tool_warned in
7808yes:)
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7811ac_tool_warned=yes ;;
7812esac
7813 NMEDIT=$ac_ct_NMEDIT
7814 fi
7815else
7816 NMEDIT="$ac_cv_prog_NMEDIT"
7817fi
7818
7819 if test -n "$ac_tool_prefix"; then
7820 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7821set dummy ${ac_tool_prefix}lipo; ac_word=$2
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823$as_echo_n "checking for $ac_word... " >&6; }
7824if ${ac_cv_prog_LIPO+:} false; then :
7825 $as_echo_n "(cached) " >&6
7826else
7827 if test -n "$LIPO"; then
7828 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7829else
7830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841done
7842 done
7843IFS=$as_save_IFS
7844
7845fi
7846fi
7847LIPO=$ac_cv_prog_LIPO
7848if test -n "$LIPO"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7850$as_echo "$LIPO" >&6; }
7851else
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853$as_echo "no" >&6; }
7854fi
7855
7856
7857fi
7858if test -z "$ac_cv_prog_LIPO"; then
7859 ac_ct_LIPO=$LIPO
7860 # Extract the first word of "lipo", so it can be a program name with args.
7861set dummy lipo; ac_word=$2
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863$as_echo_n "checking for $ac_word... " >&6; }
7864if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7865 $as_echo_n "(cached) " >&6
7866else
7867 if test -n "$ac_ct_LIPO"; then
7868 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7869else
7870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871for as_dir in $PATH
7872do
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7877 ac_cv_prog_ac_ct_LIPO="lipo"
7878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 break 2
7880 fi
7881done
7882 done
7883IFS=$as_save_IFS
7884
7885fi
7886fi
7887ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7888if test -n "$ac_ct_LIPO"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7890$as_echo "$ac_ct_LIPO" >&6; }
7891else
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893$as_echo "no" >&6; }
7894fi
7895
7896 if test "x$ac_ct_LIPO" = x; then
7897 LIPO=":"
7898 else
7899 case $cross_compiling:$ac_tool_warned in
7900yes:)
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7903ac_tool_warned=yes ;;
7904esac
7905 LIPO=$ac_ct_LIPO
7906 fi
7907else
7908 LIPO="$ac_cv_prog_LIPO"
7909fi
7910
7911 if test -n "$ac_tool_prefix"; then
7912 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7913set dummy ${ac_tool_prefix}otool; ac_word=$2
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915$as_echo_n "checking for $ac_word... " >&6; }
7916if ${ac_cv_prog_OTOOL+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918else
7919 if test -n "$OTOOL"; then
7920 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7921else
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933done
7934 done
7935IFS=$as_save_IFS
7936
7937fi
7938fi
7939OTOOL=$ac_cv_prog_OTOOL
7940if test -n "$OTOOL"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7942$as_echo "$OTOOL" >&6; }
7943else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945$as_echo "no" >&6; }
7946fi
7947
7948
7949fi
7950if test -z "$ac_cv_prog_OTOOL"; then
7951 ac_ct_OTOOL=$OTOOL
7952 # Extract the first word of "otool", so it can be a program name with args.
7953set dummy otool; ac_word=$2
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955$as_echo_n "checking for $ac_word... " >&6; }
7956if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7957 $as_echo_n "(cached) " >&6
7958else
7959 if test -n "$ac_ct_OTOOL"; then
7960 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7961else
7962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7969 ac_cv_prog_ac_ct_OTOOL="otool"
7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 break 2
7972 fi
7973done
7974 done
7975IFS=$as_save_IFS
7976
7977fi
7978fi
7979ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7980if test -n "$ac_ct_OTOOL"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7982$as_echo "$ac_ct_OTOOL" >&6; }
7983else
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985$as_echo "no" >&6; }
7986fi
7987
7988 if test "x$ac_ct_OTOOL" = x; then
7989 OTOOL=":"
7990 else
7991 case $cross_compiling:$ac_tool_warned in
7992yes:)
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7995ac_tool_warned=yes ;;
7996esac
7997 OTOOL=$ac_ct_OTOOL
7998 fi
7999else
8000 OTOOL="$ac_cv_prog_OTOOL"
8001fi
8002
8003 if test -n "$ac_tool_prefix"; then
8004 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8005set dummy ${ac_tool_prefix}otool64; ac_word=$2
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007$as_echo_n "checking for $ac_word... " >&6; }
8008if ${ac_cv_prog_OTOOL64+:} false; then :
8009 $as_echo_n "(cached) " >&6
8010else
8011 if test -n "$OTOOL64"; then
8012 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8013else
8014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015for as_dir in $PATH
8016do
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8021 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 break 2
8024 fi
8025done
8026 done
8027IFS=$as_save_IFS
8028
8029fi
8030fi
8031OTOOL64=$ac_cv_prog_OTOOL64
8032if test -n "$OTOOL64"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8034$as_echo "$OTOOL64" >&6; }
8035else
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037$as_echo "no" >&6; }
8038fi
8039
8040
8041fi
8042if test -z "$ac_cv_prog_OTOOL64"; then
8043 ac_ct_OTOOL64=$OTOOL64
8044 # Extract the first word of "otool64", so it can be a program name with args.
8045set dummy otool64; ac_word=$2
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8047$as_echo_n "checking for $ac_word... " >&6; }
8048if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8049 $as_echo_n "(cached) " >&6
8050else
8051 if test -n "$ac_ct_OTOOL64"; then
8052 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8053else
8054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055for as_dir in $PATH
8056do
8057 IFS=$as_save_IFS
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8061 ac_cv_prog_ac_ct_OTOOL64="otool64"
8062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 break 2
8064 fi
8065done
8066 done
8067IFS=$as_save_IFS
8068
8069fi
8070fi
8071ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8072if test -n "$ac_ct_OTOOL64"; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8074$as_echo "$ac_ct_OTOOL64" >&6; }
8075else
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077$as_echo "no" >&6; }
8078fi
8079
8080 if test "x$ac_ct_OTOOL64" = x; then
8081 OTOOL64=":"
8082 else
8083 case $cross_compiling:$ac_tool_warned in
8084yes:)
8085{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8086$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8087ac_tool_warned=yes ;;
8088esac
8089 OTOOL64=$ac_ct_OTOOL64
8090 fi
8091else
8092 OTOOL64="$ac_cv_prog_OTOOL64"
8093fi
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8122$as_echo_n "checking for -single_module linker flag... " >&6; }
8123if ${lt_cv_apple_cc_single_mod+:} false; then :
8124 $as_echo_n "(cached) " >&6
8125else
8126 lt_cv_apple_cc_single_mod=no
8127 if test -z "$LT_MULTI_MODULE"; then
8128 # By default we will add the -single_module flag. You can override
8129 # by either setting the environment variable LT_MULTI_MODULE
8130 # non-empty at configure time, or by adding -multi_module to the
8131 # link flags.
8132 rm -rf libconftest.dylib*
8133 echo "int foo(void){return 1;}" > conftest.c
8134 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8135-dynamiclib -Wl,-single_module conftest.c" >&5
8136 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8137 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8138 _lt_result=$?
8139 # If there is a non-empty error log, and "single_module"
8140 # appears in it, assume the flag caused a linker warning
8141 if test -s conftest.err && $GREP single_module conftest.err; then
8142 cat conftest.err >&5
8143 # Otherwise, if the output was created with a 0 exit code from
8144 # the compiler, it worked.
8145 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8146 lt_cv_apple_cc_single_mod=yes
8147 else
8148 cat conftest.err >&5
8149 fi
8150 rm -rf libconftest.dylib*
8151 rm -f conftest.*
8152 fi
8153fi
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8155$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8156
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8158$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8159if ${lt_cv_ld_exported_symbols_list+:} false; then :
8160 $as_echo_n "(cached) " >&6
8161else
8162 lt_cv_ld_exported_symbols_list=no
8163 save_LDFLAGS=$LDFLAGS
8164 echo "_main" > conftest.sym
8165 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167/* end confdefs.h. */
8168
8169int
8170main ()
8171{
8172
8173 ;
8174 return 0;
8175}
8176_ACEOF
8177if ac_fn_c_try_link "$LINENO"; then :
8178 lt_cv_ld_exported_symbols_list=yes
8179else
8180 lt_cv_ld_exported_symbols_list=no
8181fi
8182rm -f core conftest.err conftest.$ac_objext \
8183 conftest$ac_exeext conftest.$ac_ext
8184 LDFLAGS=$save_LDFLAGS
8185
8186fi
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8188$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8189
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8191$as_echo_n "checking for -force_load linker flag... " >&6; }
8192if ${lt_cv_ld_force_load+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194else
8195 lt_cv_ld_force_load=no
8196 cat > conftest.c << _LT_EOF
8197int forced_loaded() { return 2;}
8198_LT_EOF
8199 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8200 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8201 echo "$AR cru libconftest.a conftest.o" >&5
8202 $AR cru libconftest.a conftest.o 2>&5
8203 echo "$RANLIB libconftest.a" >&5
8204 $RANLIB libconftest.a 2>&5
8205 cat > conftest.c << _LT_EOF
8206int main() { return 0;}
8207_LT_EOF
8208 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8209 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8210 _lt_result=$?
8211 if test -s conftest.err && $GREP force_load conftest.err; then
8212 cat conftest.err >&5
8213 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8214 lt_cv_ld_force_load=yes
8215 else
8216 cat conftest.err >&5
8217 fi
8218 rm -f conftest.err libconftest.a conftest conftest.c
8219 rm -rf conftest.dSYM
8220
8221fi
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8223$as_echo "$lt_cv_ld_force_load" >&6; }
8224 case $host_os in
8225 rhapsody* | darwin1.[012])
8226 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8227 darwin1.*)
8228 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8229 darwin*) # darwin 5.x on
8230 # if running on 10.5 or later, the deployment target defaults
8231 # to the OS version, if on x86, and 10.4, the deployment
8232 # target defaults to 10.4. Don't you love it?
8233 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8234 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8235 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8236 10.[012][,.]*)
8237 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8238 10.*)
8239 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8240 esac
8241 ;;
8242 esac
8243 if test yes = "$lt_cv_apple_cc_single_mod"; then
8244 _lt_dar_single_mod='$single_module'
8245 fi
8246 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8247 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8248 else
8249 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8250 fi
8251 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8252 _lt_dsymutil='~$DSYMUTIL $lib || :'
8253 else
8254 _lt_dsymutil=
8255 fi
8256 ;;
8257 esac
8258
8259# func_munge_path_list VARIABLE PATH
8260# -----------------------------------
8261# VARIABLE is name of variable containing _space_ separated list of
8262# directories to be munged by the contents of PATH, which is string
8263# having a format:
8264# "DIR[:DIR]:"
8265# string "DIR[ DIR]" will be prepended to VARIABLE
8266# ":DIR[:DIR]"
8267# string "DIR[ DIR]" will be appended to VARIABLE
8268# "DIRP[:DIRP]::[DIRA:]DIRA"
8269# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8270# "DIRA[ DIRA]" will be appended to VARIABLE
8271# "DIR[:DIR]"
8272# VARIABLE will be replaced by "DIR[ DIR]"
8273func_munge_path_list ()
8274{
8275 case x$2 in
8276 x)
8277 ;;
8278 *:)
8279 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8280 ;;
8281 x:*)
8282 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8283 ;;
8284 *::*)
8285 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8286 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8287 ;;
8288 *)
8289 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8290 ;;
8291 esac
8292}
8293
8294ac_ext=c
8295ac_cpp='$CPP $CPPFLAGS'
8296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8298ac_compiler_gnu=$ac_cv_c_compiler_gnu
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8300$as_echo_n "checking how to run the C preprocessor... " >&6; }
8301# On Suns, sometimes $CPP names a directory.
8302if test -n "$CPP" && test -d "$CPP"; then
8303 CPP=
8304fi
8305if test -z "$CPP"; then
8306 if ${ac_cv_prog_CPP+:} false; then :
8307 $as_echo_n "(cached) " >&6
8308else
8309 # Double quotes because CPP needs to be expanded
8310 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8311 do
8312 ac_preproc_ok=false
8313for ac_c_preproc_warn_flag in '' yes
8314do
8315 # Use a header file that comes with gcc, so configuring glibc
8316 # with a fresh cross-compiler works.
8317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8318 # <limits.h> exists even on freestanding compilers.
8319 # On the NeXT, cc -E runs the code through the compiler's parser,
8320 # not just through cpp. "Syntax error" is here to catch this case.
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322/* end confdefs.h. */
8323#ifdef __STDC__
8324# include <limits.h>
8325#else
8326# include <assert.h>
8327#endif
8328 Syntax error
8329_ACEOF
8330if ac_fn_c_try_cpp "$LINENO"; then :
8331
8332else
8333 # Broken: fails on valid input.
8334continue
8335fi
8336rm -f conftest.err conftest.i conftest.$ac_ext
8337
8338 # OK, works on sane cases. Now check whether nonexistent headers
8339 # can be detected and how.
8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341/* end confdefs.h. */
8342#include <ac_nonexistent.h>
8343_ACEOF
8344if ac_fn_c_try_cpp "$LINENO"; then :
8345 # Broken: success on invalid input.
8346continue
8347else
8348 # Passes both tests.
8349ac_preproc_ok=:
8350break
8351fi
8352rm -f conftest.err conftest.i conftest.$ac_ext
8353
8354done
8355# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8356rm -f conftest.i conftest.err conftest.$ac_ext
8357if $ac_preproc_ok; then :
8358 break
8359fi
8360
8361 done
8362 ac_cv_prog_CPP=$CPP
8363
8364fi
8365 CPP=$ac_cv_prog_CPP
8366else
8367 ac_cv_prog_CPP=$CPP
8368fi
8369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8370$as_echo "$CPP" >&6; }
8371ac_preproc_ok=false
8372for ac_c_preproc_warn_flag in '' yes
8373do
8374 # Use a header file that comes with gcc, so configuring glibc
8375 # with a fresh cross-compiler works.
8376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8377 # <limits.h> exists even on freestanding compilers.
8378 # On the NeXT, cc -E runs the code through the compiler's parser,
8379 # not just through cpp. "Syntax error" is here to catch this case.
8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381/* end confdefs.h. */
8382#ifdef __STDC__
8383# include <limits.h>
8384#else
8385# include <assert.h>
8386#endif
8387 Syntax error
8388_ACEOF
8389if ac_fn_c_try_cpp "$LINENO"; then :
8390
8391else
8392 # Broken: fails on valid input.
8393continue
8394fi
8395rm -f conftest.err conftest.i conftest.$ac_ext
8396
8397 # OK, works on sane cases. Now check whether nonexistent headers
8398 # can be detected and how.
8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400/* end confdefs.h. */
8401#include <ac_nonexistent.h>
8402_ACEOF
8403if ac_fn_c_try_cpp "$LINENO"; then :
8404 # Broken: success on invalid input.
8405continue
8406else
8407 # Passes both tests.
8408ac_preproc_ok=:
8409break
8410fi
8411rm -f conftest.err conftest.i conftest.$ac_ext
8412
8413done
8414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8415rm -f conftest.i conftest.err conftest.$ac_ext
8416if $ac_preproc_ok; then :
8417
8418else
8419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8421as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8422See \`config.log' for more details" "$LINENO" 5; }
8423fi
8424
8425ac_ext=c
8426ac_cpp='$CPP $CPPFLAGS'
8427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8429ac_compiler_gnu=$ac_cv_c_compiler_gnu
8430
8431
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8433$as_echo_n "checking for ANSI C header files... " >&6; }
8434if ${ac_cv_header_stdc+:} false; then :
8435 $as_echo_n "(cached) " >&6
8436else
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438/* end confdefs.h. */
8439#include <stdlib.h>
8440#include <stdarg.h>
8441#include <string.h>
8442#include <float.h>
8443
8444int
8445main ()
8446{
8447
8448 ;
8449 return 0;
8450}
8451_ACEOF
8452if ac_fn_c_try_compile "$LINENO"; then :
8453 ac_cv_header_stdc=yes
8454else
8455 ac_cv_header_stdc=no
8456fi
8457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8458
8459if test $ac_cv_header_stdc = yes; then
8460 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462/* end confdefs.h. */
8463#include <string.h>
8464
8465_ACEOF
8466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8467 $EGREP "memchr" >/dev/null 2>&1; then :
8468
8469else
8470 ac_cv_header_stdc=no
8471fi
8472rm -f conftest*
8473
8474fi
8475
8476if test $ac_cv_header_stdc = yes; then
8477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479/* end confdefs.h. */
8480#include <stdlib.h>
8481
8482_ACEOF
8483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8484 $EGREP "free" >/dev/null 2>&1; then :
8485
8486else
8487 ac_cv_header_stdc=no
8488fi
8489rm -f conftest*
8490
8491fi
8492
8493if test $ac_cv_header_stdc = yes; then
8494 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8495 if test "$cross_compiling" = yes; then :
8496 :
8497else
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499/* end confdefs.h. */
8500#include <ctype.h>
8501#include <stdlib.h>
8502#if ((' ' & 0x0FF) == 0x020)
8503# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8504# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8505#else
8506# define ISLOWER(c) \
8507 (('a' <= (c) && (c) <= 'i') \
8508 || ('j' <= (c) && (c) <= 'r') \
8509 || ('s' <= (c) && (c) <= 'z'))
8510# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8511#endif
8512
8513#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8514int
8515main ()
8516{
8517 int i;
8518 for (i = 0; i < 256; i++)
8519 if (XOR (islower (i), ISLOWER (i))
8520 || toupper (i) != TOUPPER (i))
8521 return 2;
8522 return 0;
8523}
8524_ACEOF
8525if ac_fn_c_try_run "$LINENO"; then :
8526
8527else
8528 ac_cv_header_stdc=no
8529fi
8530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8531 conftest.$ac_objext conftest.beam conftest.$ac_ext
8532fi
8533
8534fi
8535fi
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8537$as_echo "$ac_cv_header_stdc" >&6; }
8538if test $ac_cv_header_stdc = yes; then
8539
8540$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8541
8542fi
8543
8544# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8545for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8546 inttypes.h stdint.h unistd.h
8547do :
8548 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8549ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8550"
8551if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8552 cat >>confdefs.h <<_ACEOF
8553#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8554_ACEOF
8555
8556fi
8557
8558done
8559
8560
8561for ac_header in dlfcn.h
8562do :
8563 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8564"
8565if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8566 cat >>confdefs.h <<_ACEOF
8567#define HAVE_DLFCN_H 1
8568_ACEOF
8569
8570fi
8571
8572done
8573
8574
8575
8576
8577func_stripname_cnf ()
8578{
8579 case $2 in
8580 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8581 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8582 esac
8583} # func_stripname_cnf
8584
8585
8586
8587
8588
8589# Set options
8590
8591
8592
8593 enable_dlopen=no
8594
8595
8596 enable_win32_dll=no
8597
8598
8599 # Check whether --enable-shared was given.
8600if test "${enable_shared+set}" = set; then :
8601 enableval=$enable_shared; p=${PACKAGE-default}
8602 case $enableval in
8603 yes) enable_shared=yes ;;
8604 no) enable_shared=no ;;
8605 *)
8606 enable_shared=no
8607 # Look at the argument we got. We use all the common list separators.
8608 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8609 for pkg in $enableval; do
8610 IFS=$lt_save_ifs
8611 if test "X$pkg" = "X$p"; then
8612 enable_shared=yes
8613 fi
8614 done
8615 IFS=$lt_save_ifs
8616 ;;
8617 esac
8618else
8619 enable_shared=yes
8620fi
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630 # Check whether --enable-static was given.
8631if test "${enable_static+set}" = set; then :
8632 enableval=$enable_static; p=${PACKAGE-default}
8633 case $enableval in
8634 yes) enable_static=yes ;;
8635 no) enable_static=no ;;
8636 *)
8637 enable_static=no
8638 # Look at the argument we got. We use all the common list separators.
8639 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8640 for pkg in $enableval; do
8641 IFS=$lt_save_ifs
8642 if test "X$pkg" = "X$p"; then
8643 enable_static=yes
8644 fi
8645 done
8646 IFS=$lt_save_ifs
8647 ;;
8648 esac
8649else
8650 enable_static=yes
8651fi
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662# Check whether --with-pic was given.
8663if test "${with_pic+set}" = set; then :
8664 withval=$with_pic; lt_p=${PACKAGE-default}
8665 case $withval in
8666 yes|no) pic_mode=$withval ;;
8667 *)
8668 pic_mode=default
8669 # Look at the argument we got. We use all the common list separators.
8670 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8671 for lt_pkg in $withval; do
8672 IFS=$lt_save_ifs
8673 if test "X$lt_pkg" = "X$lt_p"; then
8674 pic_mode=yes
8675 fi
8676 done
8677 IFS=$lt_save_ifs
8678 ;;
8679 esac
8680else
8681 pic_mode=default
8682fi
8683
8684
8685
8686
8687
8688
8689
8690
8691 # Check whether --enable-fast-install was given.
8692if test "${enable_fast_install+set}" = set; then :
8693 enableval=$enable_fast_install; p=${PACKAGE-default}
8694 case $enableval in
8695 yes) enable_fast_install=yes ;;
8696 no) enable_fast_install=no ;;
8697 *)
8698 enable_fast_install=no
8699 # Look at the argument we got. We use all the common list separators.
8700 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8701 for pkg in $enableval; do
8702 IFS=$lt_save_ifs
8703 if test "X$pkg" = "X$p"; then
8704 enable_fast_install=yes
8705 fi
8706 done
8707 IFS=$lt_save_ifs
8708 ;;
8709 esac
8710else
8711 enable_fast_install=yes
8712fi
8713
8714
8715
8716
8717
8718
8719
8720
8721 shared_archive_member_spec=
8722case $host,$enable_shared in
8723power*-*-aix[5-9]*,yes)
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8725$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8726
8727# Check whether --with-aix-soname was given.
8728if test "${with_aix_soname+set}" = set; then :
8729 withval=$with_aix_soname; case $withval in
8730 aix|svr4|both)
8731 ;;
8732 *)
8733 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8734 ;;
8735 esac
8736 lt_cv_with_aix_soname=$with_aix_soname
8737else
8738 if ${lt_cv_with_aix_soname+:} false; then :
8739 $as_echo_n "(cached) " >&6
8740else
8741 lt_cv_with_aix_soname=aix
8742fi
8743
8744 with_aix_soname=$lt_cv_with_aix_soname
8745fi
8746
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8748$as_echo "$with_aix_soname" >&6; }
8749 if test aix != "$with_aix_soname"; then
8750 # For the AIX way of multilib, we name the shared archive member
8751 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8752 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8753 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8754 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8755 if test 64 = "${OBJECT_MODE-32}"; then
8756 shared_archive_member_spec=shr_64
8757 else
8758 shared_archive_member_spec=shr
8759 fi
8760 fi
8761 ;;
8762*)
8763 with_aix_soname=aix
8764 ;;
8765esac
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776# This can be used to rebuild libtool when needed
8777LIBTOOL_DEPS=$ltmain
8778
8779# Always use our own libtool.
8780LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811test -z "$LN_S" && LN_S="ln -s"
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826if test -n "${ZSH_VERSION+set}"; then
8827 setopt NO_GLOB_SUBST
8828fi
8829
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8831$as_echo_n "checking for objdir... " >&6; }
8832if ${lt_cv_objdir+:} false; then :
8833 $as_echo_n "(cached) " >&6
8834else
8835 rm -f .libs 2>/dev/null
8836mkdir .libs 2>/dev/null
8837if test -d .libs; then
8838 lt_cv_objdir=.libs
8839else
8840 # MS-DOS does not allow filenames that begin with a dot.
8841 lt_cv_objdir=_libs
8842fi
8843rmdir .libs 2>/dev/null
8844fi
8845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8846$as_echo "$lt_cv_objdir" >&6; }
8847objdir=$lt_cv_objdir
8848
8849
8850
8851
8852
8853cat >>confdefs.h <<_ACEOF
8854#define LT_OBJDIR "$lt_cv_objdir/"
8855_ACEOF
8856
8857
8858
8859
8860case $host_os in
8861aix3*)
8862 # AIX sometimes has problems with the GCC collect2 program. For some
8863 # reason, if we set the COLLECT_NAMES environment variable, the problems
8864 # vanish in a puff of smoke.
8865 if test set != "${COLLECT_NAMES+set}"; then
8866 COLLECT_NAMES=
8867 export COLLECT_NAMES
8868 fi
8869 ;;
8870esac
8871
8872# Global variables:
8873ofile=libtool
8874can_build_shared=yes
8875
8876# All known linkers require a '.a' archive for static linking (except MSVC,
8877# which needs '.lib').
8878libext=a
8879
8880with_gnu_ld=$lt_cv_prog_gnu_ld
8881
8882old_CC=$CC
8883old_CFLAGS=$CFLAGS
8884
8885# Set sane defaults for various variables
8886test -z "$CC" && CC=cc
8887test -z "$LTCC" && LTCC=$CC
8888test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8889test -z "$LD" && LD=ld
8890test -z "$ac_objext" && ac_objext=o
8891
8892func_cc_basename $compiler
8893cc_basename=$func_cc_basename_result
8894
8895
8896# Only perform the check for file, if the check method requires it
8897test -z "$MAGIC_CMD" && MAGIC_CMD=file
8898case $deplibs_check_method in
8899file_magic*)
8900 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8902$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8903if ${lt_cv_path_MAGIC_CMD+:} false; then :
8904 $as_echo_n "(cached) " >&6
8905else
8906 case $MAGIC_CMD in
8907[\\/*] | ?:[\\/]*)
8908 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8909 ;;
8910*)
8911 lt_save_MAGIC_CMD=$MAGIC_CMD
8912 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8913 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8914 for ac_dir in $ac_dummy; do
8915 IFS=$lt_save_ifs
8916 test -z "$ac_dir" && ac_dir=.
8917 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8918 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8919 if test -n "$file_magic_test_file"; then
8920 case $deplibs_check_method in
8921 "file_magic "*)
8922 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8923 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8924 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8925 $EGREP "$file_magic_regex" > /dev/null; then
8926 :
8927 else
8928 cat <<_LT_EOF 1>&2
8929
8930*** Warning: the command libtool uses to detect shared libraries,
8931*** $file_magic_cmd, produces output that libtool cannot recognize.
8932*** The result is that libtool may fail to recognize shared libraries
8933*** as such. This will affect the creation of libtool libraries that
8934*** depend on shared libraries, but programs linked with such libtool
8935*** libraries will work regardless of this problem. Nevertheless, you
8936*** may want to report the problem to your system manager and/or to
8937*** bug-libtool@gnu.org
8938
8939_LT_EOF
8940 fi ;;
8941 esac
8942 fi
8943 break
8944 fi
8945 done
8946 IFS=$lt_save_ifs
8947 MAGIC_CMD=$lt_save_MAGIC_CMD
8948 ;;
8949esac
8950fi
8951
8952MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8953if test -n "$MAGIC_CMD"; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8955$as_echo "$MAGIC_CMD" >&6; }
8956else
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8958$as_echo "no" >&6; }
8959fi
8960
8961
8962
8963
8964
8965if test -z "$lt_cv_path_MAGIC_CMD"; then
8966 if test -n "$ac_tool_prefix"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8968$as_echo_n "checking for file... " >&6; }
8969if ${lt_cv_path_MAGIC_CMD+:} false; then :
8970 $as_echo_n "(cached) " >&6
8971else
8972 case $MAGIC_CMD in
8973[\\/*] | ?:[\\/]*)
8974 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8975 ;;
8976*)
8977 lt_save_MAGIC_CMD=$MAGIC_CMD
8978 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8979 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8980 for ac_dir in $ac_dummy; do
8981 IFS=$lt_save_ifs
8982 test -z "$ac_dir" && ac_dir=.
8983 if test -f "$ac_dir/file"; then
8984 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8985 if test -n "$file_magic_test_file"; then
8986 case $deplibs_check_method in
8987 "file_magic "*)
8988 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8989 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8990 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8991 $EGREP "$file_magic_regex" > /dev/null; then
8992 :
8993 else
8994 cat <<_LT_EOF 1>&2
8995
8996*** Warning: the command libtool uses to detect shared libraries,
8997*** $file_magic_cmd, produces output that libtool cannot recognize.
8998*** The result is that libtool may fail to recognize shared libraries
8999*** as such. This will affect the creation of libtool libraries that
9000*** depend on shared libraries, but programs linked with such libtool
9001*** libraries will work regardless of this problem. Nevertheless, you
9002*** may want to report the problem to your system manager and/or to
9003*** bug-libtool@gnu.org
9004
9005_LT_EOF
9006 fi ;;
9007 esac
9008 fi
9009 break
9010 fi
9011 done
9012 IFS=$lt_save_ifs
9013 MAGIC_CMD=$lt_save_MAGIC_CMD
9014 ;;
9015esac
9016fi
9017
9018MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9019if test -n "$MAGIC_CMD"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9021$as_echo "$MAGIC_CMD" >&6; }
9022else
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024$as_echo "no" >&6; }
9025fi
9026
9027
9028 else
9029 MAGIC_CMD=:
9030 fi
9031fi
9032
9033 fi
9034 ;;
9035esac
9036
9037# Use C for the default configuration in the libtool script
9038
9039lt_save_CC=$CC
9040ac_ext=c
9041ac_cpp='$CPP $CPPFLAGS'
9042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9044ac_compiler_gnu=$ac_cv_c_compiler_gnu
9045
9046
9047# Source file extension for C test sources.
9048ac_ext=c
9049
9050# Object file extension for compiled C test sources.
9051objext=o
9052objext=$objext
9053
9054# Code to be used in simple compile tests
9055lt_simple_compile_test_code="int some_variable = 0;"
9056
9057# Code to be used in simple link tests
9058lt_simple_link_test_code='int main(){return(0);}'
9059
9060
9061
9062
9063
9064
9065
9066# If no C compiler was specified, use CC.
9067LTCC=${LTCC-"$CC"}
9068
9069# If no C compiler flags were specified, use CFLAGS.
9070LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9071
9072# Allow CC to be a program name with arguments.
9073compiler=$CC
9074
9075# Save the default compiler, since it gets overwritten when the other
9076# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9077compiler_DEFAULT=$CC
9078
9079# save warnings/boilerplate of simple test code
9080ac_outfile=conftest.$ac_objext
9081echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9082eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9083_lt_compiler_boilerplate=`cat conftest.err`
9084$RM conftest*
9085
9086ac_outfile=conftest.$ac_objext
9087echo "$lt_simple_link_test_code" >conftest.$ac_ext
9088eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9089_lt_linker_boilerplate=`cat conftest.err`
9090$RM -r conftest*
9091
9092
9093## CAVEAT EMPTOR:
9094## There is no encapsulation within the following macros, do not change
9095## the running order or otherwise move them around unless you know exactly
9096## what you are doing...
9097if test -n "$compiler"; then
9098
9099lt_prog_compiler_no_builtin_flag=
9100
9101if test yes = "$GCC"; then
9102 case $cc_basename in
9103 nvcc*)
9104 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9105 *)
9106 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9107 esac
9108
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9110$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9111if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9112 $as_echo_n "(cached) " >&6
9113else
9114 lt_cv_prog_compiler_rtti_exceptions=no
9115 ac_outfile=conftest.$ac_objext
9116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9117 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9118 # Insert the option either (1) after the last *FLAGS variable, or
9119 # (2) before a word containing "conftest.", or (3) at the end.
9120 # Note that $ac_compile itself does not contain backslashes and begins
9121 # with a dollar sign (not a hyphen), so the echo should work correctly.
9122 # The option is referenced via a variable to avoid confusing sed.
9123 lt_compile=`echo "$ac_compile" | $SED \
9124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9126 -e 's:$: $lt_compiler_flag:'`
9127 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9128 (eval "$lt_compile" 2>conftest.err)
9129 ac_status=$?
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 if (exit $ac_status) && test -s "$ac_outfile"; then
9133 # The compiler can only warn and ignore the option if not recognized
9134 # So say no if there are warnings other than the usual output.
9135 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9137 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9138 lt_cv_prog_compiler_rtti_exceptions=yes
9139 fi
9140 fi
9141 $RM conftest*
9142
9143fi
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9145$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9146
9147if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9148 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9149else
9150 :
9151fi
9152
9153fi
9154
9155
9156
9157
9158
9159
9160 lt_prog_compiler_wl=
9161lt_prog_compiler_pic=
9162lt_prog_compiler_static=
9163
9164
9165 if test yes = "$GCC"; then
9166 lt_prog_compiler_wl='-Wl,'
9167 lt_prog_compiler_static='-static'
9168
9169 case $host_os in
9170 aix*)
9171 # All AIX code is PIC.
9172 if test ia64 = "$host_cpu"; then
9173 # AIX 5 now supports IA64 processor
9174 lt_prog_compiler_static='-Bstatic'
9175 fi
9176 lt_prog_compiler_pic='-fPIC'
9177 ;;
9178
9179 amigaos*)
9180 case $host_cpu in
9181 powerpc)
9182 # see comment about AmigaOS4 .so support
9183 lt_prog_compiler_pic='-fPIC'
9184 ;;
9185 m68k)
9186 # FIXME: we need at least 68020 code to build shared libraries, but
9187 # adding the '-m68020' flag to GCC prevents building anything better,
9188 # like '-m68040'.
9189 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9190 ;;
9191 esac
9192 ;;
9193
9194 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9195 # PIC is the default for these OSes.
9196 ;;
9197
9198 mingw* | cygwin* | pw32* | os2* | cegcc*)
9199 # This hack is so that the source file can tell whether it is being
9200 # built for inclusion in a dll (and should export symbols for example).
9201 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9202 # (--disable-auto-import) libraries
9203 lt_prog_compiler_pic='-DDLL_EXPORT'
9204 case $host_os in
9205 os2*)
9206 lt_prog_compiler_static='$wl-static'
9207 ;;
9208 esac
9209 ;;
9210
9211 darwin* | rhapsody*)
9212 # PIC is the default on this platform
9213 # Common symbols not allowed in MH_DYLIB files
9214 lt_prog_compiler_pic='-fno-common'
9215 ;;
9216
9217 haiku*)
9218 # PIC is the default for Haiku.
9219 # The "-static" flag exists, but is broken.
9220 lt_prog_compiler_static=
9221 ;;
9222
9223 hpux*)
9224 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9225 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9226 # sets the default TLS model and affects inlining.
9227 case $host_cpu in
9228 hppa*64*)
9229 # +Z the default
9230 ;;
9231 *)
9232 lt_prog_compiler_pic='-fPIC'
9233 ;;
9234 esac
9235 ;;
9236
9237 interix[3-9]*)
9238 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9239 # Instead, we relocate shared libraries at runtime.
9240 ;;
9241
9242 msdosdjgpp*)
9243 # Just because we use GCC doesn't mean we suddenly get shared libraries
9244 # on systems that don't support them.
9245 lt_prog_compiler_can_build_shared=no
9246 enable_shared=no
9247 ;;
9248
9249 *nto* | *qnx*)
9250 # QNX uses GNU C++, but need to define -shared option too, otherwise
9251 # it will coredump.
9252 lt_prog_compiler_pic='-fPIC -shared'
9253 ;;
9254
9255 sysv4*MP*)
9256 if test -d /usr/nec; then
9257 lt_prog_compiler_pic=-Kconform_pic
9258 fi
9259 ;;
9260
9261 *)
9262 lt_prog_compiler_pic='-fPIC'
9263 ;;
9264 esac
9265
9266 case $cc_basename in
9267 nvcc*) # Cuda Compiler Driver 2.2
9268 lt_prog_compiler_wl='-Xlinker '
9269 if test -n "$lt_prog_compiler_pic"; then
9270 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9271 fi
9272 ;;
9273 esac
9274 else
9275 # PORTME Check for flag to pass linker flags through the system compiler.
9276 case $host_os in
9277 aix*)
9278 lt_prog_compiler_wl='-Wl,'
9279 if test ia64 = "$host_cpu"; then
9280 # AIX 5 now supports IA64 processor
9281 lt_prog_compiler_static='-Bstatic'
9282 else
9283 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9284 fi
9285 ;;
9286
9287 darwin* | rhapsody*)
9288 # PIC is the default on this platform
9289 # Common symbols not allowed in MH_DYLIB files
9290 lt_prog_compiler_pic='-fno-common'
9291 case $cc_basename in
9292 nagfor*)
9293 # NAG Fortran compiler
9294 lt_prog_compiler_wl='-Wl,-Wl,,'
9295 lt_prog_compiler_pic='-PIC'
9296 lt_prog_compiler_static='-Bstatic'
9297 ;;
9298 esac
9299 ;;
9300
9301 mingw* | cygwin* | pw32* | os2* | cegcc*)
9302 # This hack is so that the source file can tell whether it is being
9303 # built for inclusion in a dll (and should export symbols for example).
9304 lt_prog_compiler_pic='-DDLL_EXPORT'
9305 case $host_os in
9306 os2*)
9307 lt_prog_compiler_static='$wl-static'
9308 ;;
9309 esac
9310 ;;
9311
9312 hpux9* | hpux10* | hpux11*)
9313 lt_prog_compiler_wl='-Wl,'
9314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9315 # not for PA HP-UX.
9316 case $host_cpu in
9317 hppa*64*|ia64*)
9318 # +Z the default
9319 ;;
9320 *)
9321 lt_prog_compiler_pic='+Z'
9322 ;;
9323 esac
9324 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9325 lt_prog_compiler_static='$wl-a ${wl}archive'
9326 ;;
9327
9328 irix5* | irix6* | nonstopux*)
9329 lt_prog_compiler_wl='-Wl,'
9330 # PIC (with -KPIC) is the default.
9331 lt_prog_compiler_static='-non_shared'
9332 ;;
9333
9334 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9335 case $cc_basename in
9336 # old Intel for x86_64, which still supported -KPIC.
9337 ecc*)
9338 lt_prog_compiler_wl='-Wl,'
9339 lt_prog_compiler_pic='-KPIC'
9340 lt_prog_compiler_static='-static'
9341 ;;
9342 # icc used to be incompatible with GCC.
9343 # ICC 10 doesn't accept -KPIC any more.
9344 icc* | ifort*)
9345 lt_prog_compiler_wl='-Wl,'
9346 lt_prog_compiler_pic='-fPIC'
9347 lt_prog_compiler_static='-static'
9348 ;;
9349 # Lahey Fortran 8.1.
9350 lf95*)
9351 lt_prog_compiler_wl='-Wl,'
9352 lt_prog_compiler_pic='--shared'
9353 lt_prog_compiler_static='--static'
9354 ;;
9355 nagfor*)
9356 # NAG Fortran compiler
9357 lt_prog_compiler_wl='-Wl,-Wl,,'
9358 lt_prog_compiler_pic='-PIC'
9359 lt_prog_compiler_static='-Bstatic'
9360 ;;
9361 tcc*)
9362 # Fabrice Bellard et al's Tiny C Compiler
9363 lt_prog_compiler_wl='-Wl,'
9364 lt_prog_compiler_pic='-fPIC'
9365 lt_prog_compiler_static='-static'
9366 ;;
9367 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9368 # Portland Group compilers (*not* the Pentium gcc compiler,
9369 # which looks to be a dead project)
9370 lt_prog_compiler_wl='-Wl,'
9371 lt_prog_compiler_pic='-fpic'
9372 lt_prog_compiler_static='-Bstatic'
9373 ;;
9374 ccc*)
9375 lt_prog_compiler_wl='-Wl,'
9376 # All Alpha code is PIC.
9377 lt_prog_compiler_static='-non_shared'
9378 ;;
9379 xl* | bgxl* | bgf* | mpixl*)
9380 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9381 lt_prog_compiler_wl='-Wl,'
9382 lt_prog_compiler_pic='-qpic'
9383 lt_prog_compiler_static='-qstaticlink'
9384 ;;
9385 *)
9386 case `$CC -V 2>&1 | sed 5q` in
9387 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9388 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9389 lt_prog_compiler_pic='-KPIC'
9390 lt_prog_compiler_static='-Bstatic'
9391 lt_prog_compiler_wl=''
9392 ;;
9393 *Sun\ F* | *Sun*Fortran*)
9394 lt_prog_compiler_pic='-KPIC'
9395 lt_prog_compiler_static='-Bstatic'
9396 lt_prog_compiler_wl='-Qoption ld '
9397 ;;
9398 *Sun\ C*)
9399 # Sun C 5.9
9400 lt_prog_compiler_pic='-KPIC'
9401 lt_prog_compiler_static='-Bstatic'
9402 lt_prog_compiler_wl='-Wl,'
9403 ;;
9404 *Intel*\ [CF]*Compiler*)
9405 lt_prog_compiler_wl='-Wl,'
9406 lt_prog_compiler_pic='-fPIC'
9407 lt_prog_compiler_static='-static'
9408 ;;
9409 *Portland\ Group*)
9410 lt_prog_compiler_wl='-Wl,'
9411 lt_prog_compiler_pic='-fpic'
9412 lt_prog_compiler_static='-Bstatic'
9413 ;;
9414 esac
9415 ;;
9416 esac
9417 ;;
9418
9419 newsos6)
9420 lt_prog_compiler_pic='-KPIC'
9421 lt_prog_compiler_static='-Bstatic'
9422 ;;
9423
9424 *nto* | *qnx*)
9425 # QNX uses GNU C++, but need to define -shared option too, otherwise
9426 # it will coredump.
9427 lt_prog_compiler_pic='-fPIC -shared'
9428 ;;
9429
9430 osf3* | osf4* | osf5*)
9431 lt_prog_compiler_wl='-Wl,'
9432 # All OSF/1 code is PIC.
9433 lt_prog_compiler_static='-non_shared'
9434 ;;
9435
9436 rdos*)
9437 lt_prog_compiler_static='-non_shared'
9438 ;;
9439
9440 solaris*)
9441 lt_prog_compiler_pic='-KPIC'
9442 lt_prog_compiler_static='-Bstatic'
9443 case $cc_basename in
9444 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9445 lt_prog_compiler_wl='-Qoption ld ';;
9446 *)
9447 lt_prog_compiler_wl='-Wl,';;
9448 esac
9449 ;;
9450
9451 sunos4*)
9452 lt_prog_compiler_wl='-Qoption ld '
9453 lt_prog_compiler_pic='-PIC'
9454 lt_prog_compiler_static='-Bstatic'
9455 ;;
9456
9457 sysv4 | sysv4.2uw2* | sysv4.3*)
9458 lt_prog_compiler_wl='-Wl,'
9459 lt_prog_compiler_pic='-KPIC'
9460 lt_prog_compiler_static='-Bstatic'
9461 ;;
9462
9463 sysv4*MP*)
9464 if test -d /usr/nec; then
9465 lt_prog_compiler_pic='-Kconform_pic'
9466 lt_prog_compiler_static='-Bstatic'
9467 fi
9468 ;;
9469
9470 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9471 lt_prog_compiler_wl='-Wl,'
9472 lt_prog_compiler_pic='-KPIC'
9473 lt_prog_compiler_static='-Bstatic'
9474 ;;
9475
9476 unicos*)
9477 lt_prog_compiler_wl='-Wl,'
9478 lt_prog_compiler_can_build_shared=no
9479 ;;
9480
9481 uts4*)
9482 lt_prog_compiler_pic='-pic'
9483 lt_prog_compiler_static='-Bstatic'
9484 ;;
9485
9486 *)
9487 lt_prog_compiler_can_build_shared=no
9488 ;;
9489 esac
9490 fi
9491
9492case $host_os in
9493 # For platforms that do not support PIC, -DPIC is meaningless:
9494 *djgpp*)
9495 lt_prog_compiler_pic=
9496 ;;
9497 *)
9498 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9499 ;;
9500esac
9501
9502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9503$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9504if ${lt_cv_prog_compiler_pic+:} false; then :
9505 $as_echo_n "(cached) " >&6
9506else
9507 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9508fi
9509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9510$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9511lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9512
9513#
9514# Check to make sure the PIC flag actually works.
9515#
9516if test -n "$lt_prog_compiler_pic"; then
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9518$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9519if ${lt_cv_prog_compiler_pic_works+:} false; then :
9520 $as_echo_n "(cached) " >&6
9521else
9522 lt_cv_prog_compiler_pic_works=no
9523 ac_outfile=conftest.$ac_objext
9524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9525 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9526 # Insert the option either (1) after the last *FLAGS variable, or
9527 # (2) before a word containing "conftest.", or (3) at the end.
9528 # Note that $ac_compile itself does not contain backslashes and begins
9529 # with a dollar sign (not a hyphen), so the echo should work correctly.
9530 # The option is referenced via a variable to avoid confusing sed.
9531 lt_compile=`echo "$ac_compile" | $SED \
9532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9534 -e 's:$: $lt_compiler_flag:'`
9535 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9536 (eval "$lt_compile" 2>conftest.err)
9537 ac_status=$?
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 if (exit $ac_status) && test -s "$ac_outfile"; then
9541 # The compiler can only warn and ignore the option if not recognized
9542 # So say no if there are warnings other than the usual output.
9543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9544 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9545 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9546 lt_cv_prog_compiler_pic_works=yes
9547 fi
9548 fi
9549 $RM conftest*
9550
9551fi
9552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9553$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9554
9555if test yes = "$lt_cv_prog_compiler_pic_works"; then
9556 case $lt_prog_compiler_pic in
9557 "" | " "*) ;;
9558 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9559 esac
9560else
9561 lt_prog_compiler_pic=
9562 lt_prog_compiler_can_build_shared=no
9563fi
9564
9565fi
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577#
9578# Check to make sure the static flag actually works.
9579#
9580wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9582$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9583if ${lt_cv_prog_compiler_static_works+:} false; then :
9584 $as_echo_n "(cached) " >&6
9585else
9586 lt_cv_prog_compiler_static_works=no
9587 save_LDFLAGS=$LDFLAGS
9588 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9589 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9590 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9591 # The linker can only warn and ignore the option if not recognized
9592 # So say no if there are warnings
9593 if test -s conftest.err; then
9594 # Append any errors to the config.log.
9595 cat conftest.err 1>&5
9596 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9597 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9598 if diff conftest.exp conftest.er2 >/dev/null; then
9599 lt_cv_prog_compiler_static_works=yes
9600 fi
9601 else
9602 lt_cv_prog_compiler_static_works=yes
9603 fi
9604 fi
9605 $RM -r conftest*
9606 LDFLAGS=$save_LDFLAGS
9607
9608fi
9609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9610$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9611
9612if test yes = "$lt_cv_prog_compiler_static_works"; then
9613 :
9614else
9615 lt_prog_compiler_static=
9616fi
9617
9618
9619
9620
9621
9622
9623
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9625$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9626if ${lt_cv_prog_compiler_c_o+:} false; then :
9627 $as_echo_n "(cached) " >&6
9628else
9629 lt_cv_prog_compiler_c_o=no
9630 $RM -r conftest 2>/dev/null
9631 mkdir conftest
9632 cd conftest
9633 mkdir out
9634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9635
9636 lt_compiler_flag="-o out/conftest2.$ac_objext"
9637 # Insert the option either (1) after the last *FLAGS variable, or
9638 # (2) before a word containing "conftest.", or (3) at the end.
9639 # Note that $ac_compile itself does not contain backslashes and begins
9640 # with a dollar sign (not a hyphen), so the echo should work correctly.
9641 lt_compile=`echo "$ac_compile" | $SED \
9642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9644 -e 's:$: $lt_compiler_flag:'`
9645 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9646 (eval "$lt_compile" 2>out/conftest.err)
9647 ac_status=$?
9648 cat out/conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9651 then
9652 # The compiler can only warn and ignore the option if not recognized
9653 # So say no if there are warnings
9654 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9655 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9656 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9657 lt_cv_prog_compiler_c_o=yes
9658 fi
9659 fi
9660 chmod u+w . 2>&5
9661 $RM conftest*
9662 # SGI C++ compiler will create directory out/ii_files/ for
9663 # template instantiation
9664 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9665 $RM out/* && rmdir out
9666 cd ..
9667 $RM -r conftest
9668 $RM conftest*
9669
9670fi
9671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9672$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9673
9674
9675
9676
9677
9678
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9680$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9681if ${lt_cv_prog_compiler_c_o+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683else
9684 lt_cv_prog_compiler_c_o=no
9685 $RM -r conftest 2>/dev/null
9686 mkdir conftest
9687 cd conftest
9688 mkdir out
9689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9690
9691 lt_compiler_flag="-o out/conftest2.$ac_objext"
9692 # Insert the option either (1) after the last *FLAGS variable, or
9693 # (2) before a word containing "conftest.", or (3) at the end.
9694 # Note that $ac_compile itself does not contain backslashes and begins
9695 # with a dollar sign (not a hyphen), so the echo should work correctly.
9696 lt_compile=`echo "$ac_compile" | $SED \
9697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9699 -e 's:$: $lt_compiler_flag:'`
9700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9701 (eval "$lt_compile" 2>out/conftest.err)
9702 ac_status=$?
9703 cat out/conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9706 then
9707 # The compiler can only warn and ignore the option if not recognized
9708 # So say no if there are warnings
9709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9710 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9711 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9712 lt_cv_prog_compiler_c_o=yes
9713 fi
9714 fi
9715 chmod u+w . 2>&5
9716 $RM conftest*
9717 # SGI C++ compiler will create directory out/ii_files/ for
9718 # template instantiation
9719 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9720 $RM out/* && rmdir out
9721 cd ..
9722 $RM -r conftest
9723 $RM conftest*
9724
9725fi
9726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9727$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9728
9729
9730
9731
9732hard_links=nottested
9733if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9734 # do not overwrite the value of need_locks provided by the user
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9736$as_echo_n "checking if we can lock with hard links... " >&6; }
9737 hard_links=yes
9738 $RM conftest*
9739 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9740 touch conftest.a
9741 ln conftest.a conftest.b 2>&5 || hard_links=no
9742 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9744$as_echo "$hard_links" >&6; }
9745 if test no = "$hard_links"; then
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9747$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9748 need_locks=warn
9749 fi
9750else
9751 need_locks=no
9752fi
9753
9754
9755
9756
9757
9758
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9760$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9761
9762 runpath_var=
9763 allow_undefined_flag=
9764 always_export_symbols=no
9765 archive_cmds=
9766 archive_expsym_cmds=
9767 compiler_needs_object=no
9768 enable_shared_with_static_runtimes=no
9769 export_dynamic_flag_spec=
9770 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9771 hardcode_automatic=no
9772 hardcode_direct=no
9773 hardcode_direct_absolute=no
9774 hardcode_libdir_flag_spec=
9775 hardcode_libdir_separator=
9776 hardcode_minus_L=no
9777 hardcode_shlibpath_var=unsupported
9778 inherit_rpath=no
9779 link_all_deplibs=unknown
9780 module_cmds=
9781 module_expsym_cmds=
9782 old_archive_from_new_cmds=
9783 old_archive_from_expsyms_cmds=
9784 thread_safe_flag_spec=
9785 whole_archive_flag_spec=
9786 # include_expsyms should be a list of space-separated symbols to be *always*
9787 # included in the symbol list
9788 include_expsyms=
9789 # exclude_expsyms can be an extended regexp of symbols to exclude
9790 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9791 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9792 # as well as any symbol that contains 'd'.
9793 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9794 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9795 # platforms (ab)use it in PIC code, but their linkers get confused if
9796 # the symbol is explicitly referenced. Since portable code cannot
9797 # rely on this symbol name, it's probably fine to never include it in
9798 # preloaded symbol tables.
9799 # Exclude shared library initialization/finalization symbols.
9800 extract_expsyms_cmds=
9801
9802 case $host_os in
9803 cygwin* | mingw* | pw32* | cegcc*)
9804 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9805 # When not using gcc, we currently assume that we are using
9806 # Microsoft Visual C++.
9807 if test yes != "$GCC"; then
9808 with_gnu_ld=no
9809 fi
9810 ;;
9811 interix*)
9812 # we just hope/assume this is gcc and not c89 (= MSVC++)
9813 with_gnu_ld=yes
9814 ;;
9815 openbsd* | bitrig*)
9816 with_gnu_ld=no
9817 ;;
9818 linux* | k*bsd*-gnu | gnu*)
9819 link_all_deplibs=no
9820 ;;
9821 esac
9822
9823 ld_shlibs=yes
9824
9825 # On some targets, GNU ld is compatible enough with the native linker
9826 # that we're better off using the native interface for both.
9827 lt_use_gnu_ld_interface=no
9828 if test yes = "$with_gnu_ld"; then
9829 case $host_os in
9830 aix*)
9831 # The AIX port of GNU ld has always aspired to compatibility
9832 # with the native linker. However, as the warning in the GNU ld
9833 # block says, versions before 2.19.5* couldn't really create working
9834 # shared libraries, regardless of the interface used.
9835 case `$LD -v 2>&1` in
9836 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9837 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9838 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9839 *)
9840 lt_use_gnu_ld_interface=yes
9841 ;;
9842 esac
9843 ;;
9844 *)
9845 lt_use_gnu_ld_interface=yes
9846 ;;
9847 esac
9848 fi
9849
9850 if test yes = "$lt_use_gnu_ld_interface"; then
9851 # If archive_cmds runs LD, not CC, wlarc should be empty
9852 wlarc='$wl'
9853
9854 # Set some defaults for GNU ld with shared library support. These
9855 # are reset later if shared libraries are not supported. Putting them
9856 # here allows them to be overridden if necessary.
9857 runpath_var=LD_RUN_PATH
9858 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9859 export_dynamic_flag_spec='$wl--export-dynamic'
9860 # ancient GNU ld didn't support --whole-archive et. al.
9861 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9862 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9863 else
9864 whole_archive_flag_spec=
9865 fi
9866 supports_anon_versioning=no
9867 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9868 *GNU\ gold*) supports_anon_versioning=yes ;;
9869 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9870 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9871 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9872 *\ 2.11.*) ;; # other 2.11 versions
9873 *) supports_anon_versioning=yes ;;
9874 esac
9875
9876 # See if GNU ld supports shared libraries.
9877 case $host_os in
9878 aix[3-9]*)
9879 # On AIX/PPC, the GNU linker is very broken
9880 if test ia64 != "$host_cpu"; then
9881 ld_shlibs=no
9882 cat <<_LT_EOF 1>&2
9883
9884*** Warning: the GNU linker, at least up to release 2.19, is reported
9885*** to be unable to reliably create shared libraries on AIX.
9886*** Therefore, libtool is disabling shared libraries support. If you
9887*** really care for shared libraries, you may want to install binutils
9888*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9889*** You will then need to restart the configuration process.
9890
9891_LT_EOF
9892 fi
9893 ;;
9894
9895 amigaos*)
9896 case $host_cpu in
9897 powerpc)
9898 # see comment about AmigaOS4 .so support
9899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9900 archive_expsym_cmds=''
9901 ;;
9902 m68k)
9903 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)'
9904 hardcode_libdir_flag_spec='-L$libdir'
9905 hardcode_minus_L=yes
9906 ;;
9907 esac
9908 ;;
9909
9910 beos*)
9911 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9912 allow_undefined_flag=unsupported
9913 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9914 # support --undefined. This deserves some investigation. FIXME
9915 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9916 else
9917 ld_shlibs=no
9918 fi
9919 ;;
9920
9921 cygwin* | mingw* | pw32* | cegcc*)
9922 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9923 # as there is no search path for DLLs.
9924 hardcode_libdir_flag_spec='-L$libdir'
9925 export_dynamic_flag_spec='$wl--export-all-symbols'
9926 allow_undefined_flag=unsupported
9927 always_export_symbols=no
9928 enable_shared_with_static_runtimes=yes
9929 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'
9930 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9931
9932 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9934 # If the export-symbols file already is a .def file, use it as
9935 # is; otherwise, prepend EXPORTS...
9936 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9937 cp $export_symbols $output_objdir/$soname.def;
9938 else
9939 echo EXPORTS > $output_objdir/$soname.def;
9940 cat $export_symbols >> $output_objdir/$soname.def;
9941 fi~
9942 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9943 else
9944 ld_shlibs=no
9945 fi
9946 ;;
9947
9948 haiku*)
9949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9950 link_all_deplibs=yes
9951 ;;
9952
9953 os2*)
9954 hardcode_libdir_flag_spec='-L$libdir'
9955 hardcode_minus_L=yes
9956 allow_undefined_flag=unsupported
9957 shrext_cmds=.dll
9958 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9959 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9960 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9961 $ECHO EXPORTS >> $output_objdir/$libname.def~
9962 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9963 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9964 emximp -o $lib $output_objdir/$libname.def'
9965 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9966 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9967 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9968 $ECHO EXPORTS >> $output_objdir/$libname.def~
9969 prefix_cmds="$SED"~
9970 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9971 prefix_cmds="$prefix_cmds -e 1d";
9972 fi~
9973 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9974 cat $export_symbols | $prefix_cmds >> $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 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9978 enable_shared_with_static_runtimes=yes
9979 ;;
9980
9981 interix[3-9]*)
9982 hardcode_direct=no
9983 hardcode_shlibpath_var=no
9984 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9985 export_dynamic_flag_spec='$wl-E'
9986 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9987 # Instead, shared libraries are loaded at an image base (0x10000000 by
9988 # default) and relocated if they conflict, which is a slow very memory
9989 # consuming and fragmenting process. To avoid this, we pick a random,
9990 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9991 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9992 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9993 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'
9994 ;;
9995
9996 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9997 tmp_diet=no
9998 if test linux-dietlibc = "$host_os"; then
9999 case $cc_basename in
10000 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10001 esac
10002 fi
10003 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10004 && test no = "$tmp_diet"
10005 then
10006 tmp_addflag=' $pic_flag'
10007 tmp_sharedflag='-shared'
10008 case $cc_basename,$host_cpu in
10009 pgcc*) # Portland Group C compiler
10010 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'
10011 tmp_addflag=' $pic_flag'
10012 ;;
10013 pgf77* | pgf90* | pgf95* | pgfortran*)
10014 # Portland Group f77 and f90 compilers
10015 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'
10016 tmp_addflag=' $pic_flag -Mnomain' ;;
10017 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10018 tmp_addflag=' -i_dynamic' ;;
10019 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10020 tmp_addflag=' -i_dynamic -nofor_main' ;;
10021 ifc* | ifort*) # Intel Fortran compiler
10022 tmp_addflag=' -nofor_main' ;;
10023 lf95*) # Lahey Fortran 8.1
10024 whole_archive_flag_spec=
10025 tmp_sharedflag='--shared' ;;
10026 nagfor*) # NAGFOR 5.3
10027 tmp_sharedflag='-Wl,-shared' ;;
10028 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10029 tmp_sharedflag='-qmkshrobj'
10030 tmp_addflag= ;;
10031 nvcc*) # Cuda Compiler Driver 2.2
10032 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'
10033 compiler_needs_object=yes
10034 ;;
10035 esac
10036 case `$CC -V 2>&1 | sed 5q` in
10037 *Sun\ C*) # Sun C 5.9
10038 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'
10039 compiler_needs_object=yes
10040 tmp_sharedflag='-G' ;;
10041 *Sun\ F*) # Sun Fortran 8.3
10042 tmp_sharedflag='-G' ;;
10043 esac
10044 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10045
10046 if test yes = "$supports_anon_versioning"; then
10047 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10048 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10049 echo "local: *; };" >> $output_objdir/$libname.ver~
10050 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10051 fi
10052
10053 case $cc_basename in
10054 tcc*)
10055 export_dynamic_flag_spec='-rdynamic'
10056 ;;
10057 xlf* | bgf* | bgxlf* | mpixlf*)
10058 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10059 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10060 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10061 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10062 if test yes = "$supports_anon_versioning"; then
10063 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10065 echo "local: *; };" >> $output_objdir/$libname.ver~
10066 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10067 fi
10068 ;;
10069 esac
10070 else
10071 ld_shlibs=no
10072 fi
10073 ;;
10074
10075 netbsd* | netbsdelf*-gnu)
10076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10077 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10078 wlarc=
10079 else
10080 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10081 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10082 fi
10083 ;;
10084
10085 solaris*)
10086 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10087 ld_shlibs=no
10088 cat <<_LT_EOF 1>&2
10089
10090*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10091*** create shared libraries on Solaris systems. Therefore, libtool
10092*** is disabling shared libraries support. We urge you to upgrade GNU
10093*** binutils to release 2.9.1 or newer. Another option is to modify
10094*** your PATH or compiler configuration so that the native linker is
10095*** used, and then restart.
10096
10097_LT_EOF
10098 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10099 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10100 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10101 else
10102 ld_shlibs=no
10103 fi
10104 ;;
10105
10106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10107 case `$LD -v 2>&1` in
10108 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10109 ld_shlibs=no
10110 cat <<_LT_EOF 1>&2
10111
10112*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10113*** reliably create shared libraries on SCO systems. Therefore, libtool
10114*** is disabling shared libraries support. We urge you to upgrade GNU
10115*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10116*** your PATH or compiler configuration so that the native linker is
10117*** used, and then restart.
10118
10119_LT_EOF
10120 ;;
10121 *)
10122 # For security reasons, it is highly recommended that you always
10123 # use absolute paths for naming shared libraries, and exclude the
10124 # DT_RUNPATH tag from executables and libraries. But doing so
10125 # requires that you compile everything twice, which is a pain.
10126 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10127 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10129 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10130 else
10131 ld_shlibs=no
10132 fi
10133 ;;
10134 esac
10135 ;;
10136
10137 sunos4*)
10138 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10139 wlarc=
10140 hardcode_direct=yes
10141 hardcode_shlibpath_var=no
10142 ;;
10143
10144 *)
10145 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10146 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10147 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10148 else
10149 ld_shlibs=no
10150 fi
10151 ;;
10152 esac
10153
10154 if test no = "$ld_shlibs"; then
10155 runpath_var=
10156 hardcode_libdir_flag_spec=
10157 export_dynamic_flag_spec=
10158 whole_archive_flag_spec=
10159 fi
10160 else
10161 # PORTME fill in a description of your system's linker (not GNU ld)
10162 case $host_os in
10163 aix3*)
10164 allow_undefined_flag=unsupported
10165 always_export_symbols=yes
10166 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'
10167 # Note: this linker hardcodes the directories in LIBPATH if there
10168 # are no directories specified by -L.
10169 hardcode_minus_L=yes
10170 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10171 # Neither direct hardcoding nor static linking is supported with a
10172 # broken collect2.
10173 hardcode_direct=unsupported
10174 fi
10175 ;;
10176
10177 aix[4-9]*)
10178 if test ia64 = "$host_cpu"; then
10179 # On IA64, the linker does run time linking by default, so we don't
10180 # have to do anything special.
10181 aix_use_runtimelinking=no
10182 exp_sym_flag='-Bexport'
10183 no_entry_flag=
10184 else
10185 # If we're using GNU nm, then we don't want the "-C" option.
10186 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10187 # Without the "-l" option, or with the "-B" option, AIX nm treats
10188 # weak defined symbols like other global defined symbols, whereas
10189 # GNU nm marks them as "W".
10190 # While the 'weak' keyword is ignored in the Export File, we need
10191 # it in the Import File for the 'aix-soname' feature, so we have
10192 # to replace the "-B" option with "-P" for AIX nm.
10193 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10194 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'
10195 else
10196 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'
10197 fi
10198 aix_use_runtimelinking=no
10199
10200 # Test if we are trying to use run time linking or normal
10201 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10202 # have runtime linking enabled, and use it for executables.
10203 # For shared libraries, we enable/disable runtime linking
10204 # depending on the kind of the shared library created -
10205 # when "with_aix_soname,aix_use_runtimelinking" is:
10206 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10207 # "aix,yes" lib.so shared, rtl:yes, for executables
10208 # lib.a static archive
10209 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10210 # lib.a(lib.so.V) shared, rtl:no, for executables
10211 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10212 # lib.a(lib.so.V) shared, rtl:no
10213 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10214 # lib.a static archive
10215 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10216 for ld_flag in $LDFLAGS; do
10217 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10218 aix_use_runtimelinking=yes
10219 break
10220 fi
10221 done
10222 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10223 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10224 # so we don't have lib.a shared libs to link our executables.
10225 # We have to force runtime linking in this case.
10226 aix_use_runtimelinking=yes
10227 LDFLAGS="$LDFLAGS -Wl,-brtl"
10228 fi
10229 ;;
10230 esac
10231
10232 exp_sym_flag='-bexport'
10233 no_entry_flag='-bnoentry'
10234 fi
10235
10236 # When large executables or shared objects are built, AIX ld can
10237 # have problems creating the table of contents. If linking a library
10238 # or program results in "error TOC overflow" add -mminimal-toc to
10239 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10240 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10241
10242 archive_cmds=''
10243 hardcode_direct=yes
10244 hardcode_direct_absolute=yes
10245 hardcode_libdir_separator=':'
10246 link_all_deplibs=yes
10247 file_list_spec='$wl-f,'
10248 case $with_aix_soname,$aix_use_runtimelinking in
10249 aix,*) ;; # traditional, no import file
10250 svr4,* | *,yes) # use import file
10251 # The Import File defines what to hardcode.
10252 hardcode_direct=no
10253 hardcode_direct_absolute=no
10254 ;;
10255 esac
10256
10257 if test yes = "$GCC"; then
10258 case $host_os in aix4.[012]|aix4.[012].*)
10259 # We only want to do this on AIX 4.2 and lower, the check
10260 # below for broken collect2 doesn't work under 4.3+
10261 collect2name=`$CC -print-prog-name=collect2`
10262 if test -f "$collect2name" &&
10263 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10264 then
10265 # We have reworked collect2
10266 :
10267 else
10268 # We have old collect2
10269 hardcode_direct=unsupported
10270 # It fails to find uninstalled libraries when the uninstalled
10271 # path is not listed in the libpath. Setting hardcode_minus_L
10272 # to unsupported forces relinking
10273 hardcode_minus_L=yes
10274 hardcode_libdir_flag_spec='-L$libdir'
10275 hardcode_libdir_separator=
10276 fi
10277 ;;
10278 esac
10279 shared_flag='-shared'
10280 if test yes = "$aix_use_runtimelinking"; then
10281 shared_flag="$shared_flag "'$wl-G'
10282 fi
10283 # Need to ensure runtime linking is disabled for the traditional
10284 # shared library, or the linker may eventually find shared libraries
10285 # /with/ Import File - we do not want to mix them.
10286 shared_flag_aix='-shared'
10287 shared_flag_svr4='-shared $wl-G'
10288 else
10289 # not using gcc
10290 if test ia64 = "$host_cpu"; then
10291 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10292 # chokes on -Wl,-G. The following line is correct:
10293 shared_flag='-G'
10294 else
10295 if test yes = "$aix_use_runtimelinking"; then
10296 shared_flag='$wl-G'
10297 else
10298 shared_flag='$wl-bM:SRE'
10299 fi
10300 shared_flag_aix='$wl-bM:SRE'
10301 shared_flag_svr4='$wl-G'
10302 fi
10303 fi
10304
10305 export_dynamic_flag_spec='$wl-bexpall'
10306 # It seems that -bexpall does not export symbols beginning with
10307 # underscore (_), so it is better to generate a list of symbols to export.
10308 always_export_symbols=yes
10309 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10310 # Warning - without using the other runtime loading flags (-brtl),
10311 # -berok will link without error, but may produce a broken library.
10312 allow_undefined_flag='-berok'
10313 # Determine the default libpath from the value encoded in an
10314 # empty executable.
10315 if test set = "${lt_cv_aix_libpath+set}"; then
10316 aix_libpath=$lt_cv_aix_libpath
10317else
10318 if ${lt_cv_aix_libpath_+:} false; then :
10319 $as_echo_n "(cached) " >&6
10320else
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322/* end confdefs.h. */
10323
10324int
10325main ()
10326{
10327
10328 ;
10329 return 0;
10330}
10331_ACEOF
10332if ac_fn_c_try_link "$LINENO"; then :
10333
10334 lt_aix_libpath_sed='
10335 /Import File Strings/,/^$/ {
10336 /^0/ {
10337 s/^0 *\([^ ]*\) *$/\1/
10338 p
10339 }
10340 }'
10341 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10342 # Check for a 64-bit object if we didn't find anything.
10343 if test -z "$lt_cv_aix_libpath_"; then
10344 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10345 fi
10346fi
10347rm -f core conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10349 if test -z "$lt_cv_aix_libpath_"; then
10350 lt_cv_aix_libpath_=/usr/lib:/lib
10351 fi
10352
10353fi
10354
10355 aix_libpath=$lt_cv_aix_libpath_
10356fi
10357
10358 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10359 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
10360 else
10361 if test ia64 = "$host_cpu"; then
10362 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10363 allow_undefined_flag="-z nodefs"
10364 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"
10365 else
10366 # Determine the default libpath from the value encoded in an
10367 # empty executable.
10368 if test set = "${lt_cv_aix_libpath+set}"; then
10369 aix_libpath=$lt_cv_aix_libpath
10370else
10371 if ${lt_cv_aix_libpath_+:} false; then :
10372 $as_echo_n "(cached) " >&6
10373else
10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375/* end confdefs.h. */
10376
10377int
10378main ()
10379{
10380
10381 ;
10382 return 0;
10383}
10384_ACEOF
10385if ac_fn_c_try_link "$LINENO"; then :
10386
10387 lt_aix_libpath_sed='
10388 /Import File Strings/,/^$/ {
10389 /^0/ {
10390 s/^0 *\([^ ]*\) *$/\1/
10391 p
10392 }
10393 }'
10394 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10395 # Check for a 64-bit object if we didn't find anything.
10396 if test -z "$lt_cv_aix_libpath_"; then
10397 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10398 fi
10399fi
10400rm -f core conftest.err conftest.$ac_objext \
10401 conftest$ac_exeext conftest.$ac_ext
10402 if test -z "$lt_cv_aix_libpath_"; then
10403 lt_cv_aix_libpath_=/usr/lib:/lib
10404 fi
10405
10406fi
10407
10408 aix_libpath=$lt_cv_aix_libpath_
10409fi
10410
10411 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10412 # Warning - without using the other run time loading flags,
10413 # -berok will link without error, but may produce a broken library.
10414 no_undefined_flag=' $wl-bernotok'
10415 allow_undefined_flag=' $wl-berok'
10416 if test yes = "$with_gnu_ld"; then
10417 # We only use this code for GNU lds that support --whole-archive.
10418 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10419 else
10420 # Exported symbols can be pulled into shared objects from archives
10421 whole_archive_flag_spec='$convenience'
10422 fi
10423 archive_cmds_need_lc=yes
10424 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10425 # -brtl affects multiple linker settings, -berok does not and is overridden later
10426 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10427 if test svr4 != "$with_aix_soname"; then
10428 # This is similar to how AIX traditionally builds its shared libraries.
10429 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'
10430 fi
10431 if test aix != "$with_aix_soname"; then
10432 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'
10433 else
10434 # used by -dlpreopen to get the symbols
10435 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10436 fi
10437 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10438 fi
10439 fi
10440 ;;
10441
10442 amigaos*)
10443 case $host_cpu in
10444 powerpc)
10445 # see comment about AmigaOS4 .so support
10446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10447 archive_expsym_cmds=''
10448 ;;
10449 m68k)
10450 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)'
10451 hardcode_libdir_flag_spec='-L$libdir'
10452 hardcode_minus_L=yes
10453 ;;
10454 esac
10455 ;;
10456
10457 bsdi[45]*)
10458 export_dynamic_flag_spec=-rdynamic
10459 ;;
10460
10461 cygwin* | mingw* | pw32* | cegcc*)
10462 # When not using gcc, we currently assume that we are using
10463 # Microsoft Visual C++.
10464 # hardcode_libdir_flag_spec is actually meaningless, as there is
10465 # no search path for DLLs.
10466 case $cc_basename in
10467 cl*)
10468 # Native MSVC
10469 hardcode_libdir_flag_spec=' '
10470 allow_undefined_flag=unsupported
10471 always_export_symbols=yes
10472 file_list_spec='@'
10473 # Tell ltmain to make .lib files, not .a files.
10474 libext=lib
10475 # Tell ltmain to make .dll files, not .so files.
10476 shrext_cmds=.dll
10477 # FIXME: Setting linknames here is a bad hack.
10478 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10479 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10480 cp "$export_symbols" "$output_objdir/$soname.def";
10481 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10482 else
10483 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10484 fi~
10485 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10486 linknames='
10487 # The linker will not automatically build a static lib if we build a DLL.
10488 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10489 enable_shared_with_static_runtimes=yes
10490 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10491 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10492 # Don't use ranlib
10493 old_postinstall_cmds='chmod 644 $oldlib'
10494 postlink_cmds='lt_outputfile="@OUTPUT@"~
10495 lt_tool_outputfile="@TOOL_OUTPUT@"~
10496 case $lt_outputfile in
10497 *.exe|*.EXE) ;;
10498 *)
10499 lt_outputfile=$lt_outputfile.exe
10500 lt_tool_outputfile=$lt_tool_outputfile.exe
10501 ;;
10502 esac~
10503 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10504 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10505 $RM "$lt_outputfile.manifest";
10506 fi'
10507 ;;
10508 *)
10509 # Assume MSVC wrapper
10510 hardcode_libdir_flag_spec=' '
10511 allow_undefined_flag=unsupported
10512 # Tell ltmain to make .lib files, not .a files.
10513 libext=lib
10514 # Tell ltmain to make .dll files, not .so files.
10515 shrext_cmds=.dll
10516 # FIXME: Setting linknames here is a bad hack.
10517 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10518 # The linker will automatically build a .lib file if we build a DLL.
10519 old_archive_from_new_cmds='true'
10520 # FIXME: Should let the user specify the lib program.
10521 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10522 enable_shared_with_static_runtimes=yes
10523 ;;
10524 esac
10525 ;;
10526
10527 darwin* | rhapsody*)
10528
10529
10530 archive_cmds_need_lc=no
10531 hardcode_direct=no
10532 hardcode_automatic=yes
10533 hardcode_shlibpath_var=unsupported
10534 if test yes = "$lt_cv_ld_force_load"; then
10535 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\"`'
10536
10537 else
10538 whole_archive_flag_spec=''
10539 fi
10540 link_all_deplibs=yes
10541 allow_undefined_flag=$_lt_dar_allow_undefined
10542 case $cc_basename in
10543 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10544 *) _lt_dar_can_shared=$GCC ;;
10545 esac
10546 if test yes = "$_lt_dar_can_shared"; then
10547 output_verbose_link_cmd=func_echo_all
10548 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10549 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10550 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"
10551 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"
10552
10553 else
10554 ld_shlibs=no
10555 fi
10556
10557 ;;
10558
10559 dgux*)
10560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10561 hardcode_libdir_flag_spec='-L$libdir'
10562 hardcode_shlibpath_var=no
10563 ;;
10564
10565 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10566 # support. Future versions do this automatically, but an explicit c++rt0.o
10567 # does not break anything, and helps significantly (at the cost of a little
10568 # extra space).
10569 freebsd2.2*)
10570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10571 hardcode_libdir_flag_spec='-R$libdir'
10572 hardcode_direct=yes
10573 hardcode_shlibpath_var=no
10574 ;;
10575
10576 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10577 freebsd2.*)
10578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10579 hardcode_direct=yes
10580 hardcode_minus_L=yes
10581 hardcode_shlibpath_var=no
10582 ;;
10583
10584 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10585 freebsd* | dragonfly*)
10586 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10587 hardcode_libdir_flag_spec='-R$libdir'
10588 hardcode_direct=yes
10589 hardcode_shlibpath_var=no
10590 ;;
10591
10592 hpux9*)
10593 if test yes = "$GCC"; then
10594 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'
10595 else
10596 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'
10597 fi
10598 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10599 hardcode_libdir_separator=:
10600 hardcode_direct=yes
10601
10602 # hardcode_minus_L: Not really in the search PATH,
10603 # but as the default location of the library.
10604 hardcode_minus_L=yes
10605 export_dynamic_flag_spec='$wl-E'
10606 ;;
10607
10608 hpux10*)
10609 if test yes,no = "$GCC,$with_gnu_ld"; then
10610 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10611 else
10612 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10613 fi
10614 if test no = "$with_gnu_ld"; then
10615 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10616 hardcode_libdir_separator=:
10617 hardcode_direct=yes
10618 hardcode_direct_absolute=yes
10619 export_dynamic_flag_spec='$wl-E'
10620 # hardcode_minus_L: Not really in the search PATH,
10621 # but as the default location of the library.
10622 hardcode_minus_L=yes
10623 fi
10624 ;;
10625
10626 hpux11*)
10627 if test yes,no = "$GCC,$with_gnu_ld"; then
10628 case $host_cpu in
10629 hppa*64*)
10630 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10631 ;;
10632 ia64*)
10633 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10634 ;;
10635 *)
10636 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10637 ;;
10638 esac
10639 else
10640 case $host_cpu in
10641 hppa*64*)
10642 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10643 ;;
10644 ia64*)
10645 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10646 ;;
10647 *)
10648
10649 # Older versions of the 11.00 compiler do not understand -b yet
10650 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10652$as_echo_n "checking if $CC understands -b... " >&6; }
10653if ${lt_cv_prog_compiler__b+:} false; then :
10654 $as_echo_n "(cached) " >&6
10655else
10656 lt_cv_prog_compiler__b=no
10657 save_LDFLAGS=$LDFLAGS
10658 LDFLAGS="$LDFLAGS -b"
10659 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10660 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10661 # The linker can only warn and ignore the option if not recognized
10662 # So say no if there are warnings
10663 if test -s conftest.err; then
10664 # Append any errors to the config.log.
10665 cat conftest.err 1>&5
10666 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10668 if diff conftest.exp conftest.er2 >/dev/null; then
10669 lt_cv_prog_compiler__b=yes
10670 fi
10671 else
10672 lt_cv_prog_compiler__b=yes
10673 fi
10674 fi
10675 $RM -r conftest*
10676 LDFLAGS=$save_LDFLAGS
10677
10678fi
10679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10680$as_echo "$lt_cv_prog_compiler__b" >&6; }
10681
10682if test yes = "$lt_cv_prog_compiler__b"; then
10683 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10684else
10685 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10686fi
10687
10688 ;;
10689 esac
10690 fi
10691 if test no = "$with_gnu_ld"; then
10692 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10693 hardcode_libdir_separator=:
10694
10695 case $host_cpu in
10696 hppa*64*|ia64*)
10697 hardcode_direct=no
10698 hardcode_shlibpath_var=no
10699 ;;
10700 *)
10701 hardcode_direct=yes
10702 hardcode_direct_absolute=yes
10703 export_dynamic_flag_spec='$wl-E'
10704
10705 # hardcode_minus_L: Not really in the search PATH,
10706 # but as the default location of the library.
10707 hardcode_minus_L=yes
10708 ;;
10709 esac
10710 fi
10711 ;;
10712
10713 irix5* | irix6* | nonstopux*)
10714 if test yes = "$GCC"; then
10715 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'
10716 # Try to use the -exported_symbol ld option, if it does not
10717 # work, assume that -exports_file does not work either and
10718 # implicitly export all symbols.
10719 # This should be the same for all languages, so no per-tag cache variable.
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10721$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10722if ${lt_cv_irix_exported_symbol+:} false; then :
10723 $as_echo_n "(cached) " >&6
10724else
10725 save_LDFLAGS=$LDFLAGS
10726 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728/* end confdefs.h. */
10729int foo (void) { return 0; }
10730_ACEOF
10731if ac_fn_c_try_link "$LINENO"; then :
10732 lt_cv_irix_exported_symbol=yes
10733else
10734 lt_cv_irix_exported_symbol=no
10735fi
10736rm -f core conftest.err conftest.$ac_objext \
10737 conftest$ac_exeext conftest.$ac_ext
10738 LDFLAGS=$save_LDFLAGS
10739fi
10740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10741$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10742 if test yes = "$lt_cv_irix_exported_symbol"; then
10743 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'
10744 fi
10745 link_all_deplibs=no
10746 else
10747 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'
10748 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'
10749 fi
10750 archive_cmds_need_lc='no'
10751 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10752 hardcode_libdir_separator=:
10753 inherit_rpath=yes
10754 link_all_deplibs=yes
10755 ;;
10756
10757 linux*)
10758 case $cc_basename in
10759 tcc*)
10760 # Fabrice Bellard et al's Tiny C Compiler
10761 ld_shlibs=yes
10762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10763 ;;
10764 esac
10765 ;;
10766
10767 netbsd* | netbsdelf*-gnu)
10768 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10770 else
10771 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10772 fi
10773 hardcode_libdir_flag_spec='-R$libdir'
10774 hardcode_direct=yes
10775 hardcode_shlibpath_var=no
10776 ;;
10777
10778 newsos6)
10779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10780 hardcode_direct=yes
10781 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10782 hardcode_libdir_separator=:
10783 hardcode_shlibpath_var=no
10784 ;;
10785
10786 *nto* | *qnx*)
10787 ;;
10788
10789 openbsd* | bitrig*)
10790 if test -f /usr/libexec/ld.so; then
10791 hardcode_direct=yes
10792 hardcode_shlibpath_var=no
10793 hardcode_direct_absolute=yes
10794 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10796 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10797 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10798 export_dynamic_flag_spec='$wl-E'
10799 else
10800 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10801 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10802 fi
10803 else
10804 ld_shlibs=no
10805 fi
10806 ;;
10807
10808 os2*)
10809 hardcode_libdir_flag_spec='-L$libdir'
10810 hardcode_minus_L=yes
10811 allow_undefined_flag=unsupported
10812 shrext_cmds=.dll
10813 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10814 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10815 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10816 $ECHO EXPORTS >> $output_objdir/$libname.def~
10817 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10818 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10819 emximp -o $lib $output_objdir/$libname.def'
10820 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10821 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10822 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10823 $ECHO EXPORTS >> $output_objdir/$libname.def~
10824 prefix_cmds="$SED"~
10825 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10826 prefix_cmds="$prefix_cmds -e 1d";
10827 fi~
10828 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10829 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10830 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10831 emximp -o $lib $output_objdir/$libname.def'
10832 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10833 enable_shared_with_static_runtimes=yes
10834 ;;
10835
10836 osf3*)
10837 if test yes = "$GCC"; then
10838 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10839 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'
10840 else
10841 allow_undefined_flag=' -expect_unresolved \*'
10842 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'
10843 fi
10844 archive_cmds_need_lc='no'
10845 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10846 hardcode_libdir_separator=:
10847 ;;
10848
10849 osf4* | osf5*) # as osf3* with the addition of -msym flag
10850 if test yes = "$GCC"; then
10851 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10852 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'
10853 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10854 else
10855 allow_undefined_flag=' -expect_unresolved \*'
10856 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'
10857 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~
10858 $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'
10859
10860 # Both c and cxx compiler support -rpath directly
10861 hardcode_libdir_flag_spec='-rpath $libdir'
10862 fi
10863 archive_cmds_need_lc='no'
10864 hardcode_libdir_separator=:
10865 ;;
10866
10867 solaris*)
10868 no_undefined_flag=' -z defs'
10869 if test yes = "$GCC"; then
10870 wlarc='$wl'
10871 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10872 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10873 $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'
10874 else
10875 case `$CC -V 2>&1` in
10876 *"Compilers 5.0"*)
10877 wlarc=''
10878 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10880 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10881 ;;
10882 *)
10883 wlarc='$wl'
10884 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10885 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10886 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10887 ;;
10888 esac
10889 fi
10890 hardcode_libdir_flag_spec='-R$libdir'
10891 hardcode_shlibpath_var=no
10892 case $host_os in
10893 solaris2.[0-5] | solaris2.[0-5].*) ;;
10894 *)
10895 # The compiler driver will combine and reorder linker options,
10896 # but understands '-z linker_flag'. GCC discards it without '$wl',
10897 # but is careful enough not to reorder.
10898 # Supported since Solaris 2.6 (maybe 2.5.1?)
10899 if test yes = "$GCC"; then
10900 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10901 else
10902 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10903 fi
10904 ;;
10905 esac
10906 link_all_deplibs=yes
10907 ;;
10908
10909 sunos4*)
10910 if test sequent = "$host_vendor"; then
10911 # Use $CC to link under sequent, because it throws in some extra .o
10912 # files that make .init and .fini sections work.
10913 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10914 else
10915 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10916 fi
10917 hardcode_libdir_flag_spec='-L$libdir'
10918 hardcode_direct=yes
10919 hardcode_minus_L=yes
10920 hardcode_shlibpath_var=no
10921 ;;
10922
10923 sysv4)
10924 case $host_vendor in
10925 sni)
10926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10927 hardcode_direct=yes # is this really true???
10928 ;;
10929 siemens)
10930 ## LD is ld it makes a PLAMLIB
10931 ## CC just makes a GrossModule.
10932 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10933 reload_cmds='$CC -r -o $output$reload_objs'
10934 hardcode_direct=no
10935 ;;
10936 motorola)
10937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10938 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10939 ;;
10940 esac
10941 runpath_var='LD_RUN_PATH'
10942 hardcode_shlibpath_var=no
10943 ;;
10944
10945 sysv4.3*)
10946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10947 hardcode_shlibpath_var=no
10948 export_dynamic_flag_spec='-Bexport'
10949 ;;
10950
10951 sysv4*MP*)
10952 if test -d /usr/nec; then
10953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10954 hardcode_shlibpath_var=no
10955 runpath_var=LD_RUN_PATH
10956 hardcode_runpath_var=yes
10957 ld_shlibs=yes
10958 fi
10959 ;;
10960
10961 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10962 no_undefined_flag='$wl-z,text'
10963 archive_cmds_need_lc=no
10964 hardcode_shlibpath_var=no
10965 runpath_var='LD_RUN_PATH'
10966
10967 if test yes = "$GCC"; then
10968 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10969 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10970 else
10971 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10972 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10973 fi
10974 ;;
10975
10976 sysv5* | sco3.2v5* | sco5v6*)
10977 # Note: We CANNOT use -z defs as we might desire, because we do not
10978 # link with -lc, and that would cause any symbols used from libc to
10979 # always be unresolved, which means just about no library would
10980 # ever link correctly. If we're not using GNU ld we use -z text
10981 # though, which does catch some bad symbols but isn't as heavy-handed
10982 # as -z defs.
10983 no_undefined_flag='$wl-z,text'
10984 allow_undefined_flag='$wl-z,nodefs'
10985 archive_cmds_need_lc=no
10986 hardcode_shlibpath_var=no
10987 hardcode_libdir_flag_spec='$wl-R,$libdir'
10988 hardcode_libdir_separator=':'
10989 link_all_deplibs=yes
10990 export_dynamic_flag_spec='$wl-Bexport'
10991 runpath_var='LD_RUN_PATH'
10992
10993 if test yes = "$GCC"; then
10994 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10995 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10996 else
10997 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10998 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10999 fi
11000 ;;
11001
11002 uts4*)
11003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11004 hardcode_libdir_flag_spec='-L$libdir'
11005 hardcode_shlibpath_var=no
11006 ;;
11007
11008 *)
11009 ld_shlibs=no
11010 ;;
11011 esac
11012
11013 if test sni = "$host_vendor"; then
11014 case $host in
11015 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11016 export_dynamic_flag_spec='$wl-Blargedynsym'
11017 ;;
11018 esac
11019 fi
11020 fi
11021
11022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11023$as_echo "$ld_shlibs" >&6; }
11024test no = "$ld_shlibs" && can_build_shared=no
11025
11026with_gnu_ld=$with_gnu_ld
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042#
11043# Do we need to explicitly link libc?
11044#
11045case "x$archive_cmds_need_lc" in
11046x|xyes)
11047 # Assume -lc should be added
11048 archive_cmds_need_lc=yes
11049
11050 if test yes,yes = "$GCC,$enable_shared"; then
11051 case $archive_cmds in
11052 *'~'*)
11053 # FIXME: we may have to deal with multi-command sequences.
11054 ;;
11055 '$CC '*)
11056 # Test whether the compiler implicitly links with -lc since on some
11057 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11058 # to ld, don't add -lc before -lgcc.
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11060$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11061if ${lt_cv_archive_cmds_need_lc+:} false; then :
11062 $as_echo_n "(cached) " >&6
11063else
11064 $RM conftest*
11065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11066
11067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11068 (eval $ac_compile) 2>&5
11069 ac_status=$?
11070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11071 test $ac_status = 0; } 2>conftest.err; then
11072 soname=conftest
11073 lib=conftest
11074 libobjs=conftest.$ac_objext
11075 deplibs=
11076 wl=$lt_prog_compiler_wl
11077 pic_flag=$lt_prog_compiler_pic
11078 compiler_flags=-v
11079 linker_flags=-v
11080 verstring=
11081 output_objdir=.
11082 libname=conftest
11083 lt_save_allow_undefined_flag=$allow_undefined_flag
11084 allow_undefined_flag=
11085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11086 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11087 ac_status=$?
11088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11089 test $ac_status = 0; }
11090 then
11091 lt_cv_archive_cmds_need_lc=no
11092 else
11093 lt_cv_archive_cmds_need_lc=yes
11094 fi
11095 allow_undefined_flag=$lt_save_allow_undefined_flag
11096 else
11097 cat conftest.err 1>&5
11098 fi
11099 $RM conftest*
11100
11101fi
11102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11103$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11104 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11105 ;;
11106 esac
11107 fi
11108 ;;
11109esac
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11263$as_echo_n "checking dynamic linker characteristics... " >&6; }
11264
11265if test yes = "$GCC"; then
11266 case $host_os in
11267 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11268 *) lt_awk_arg='/^libraries:/' ;;
11269 esac
11270 case $host_os in
11271 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11272 *) lt_sed_strip_eq='s|=/|/|g' ;;
11273 esac
11274 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11275 case $lt_search_path_spec in
11276 *\;*)
11277 # if the path contains ";" then we assume it to be the separator
11278 # otherwise default to the standard path separator (i.e. ":") - it is
11279 # assumed that no part of a normal pathname contains ";" but that should
11280 # okay in the real world where ";" in dirpaths is itself problematic.
11281 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11282 ;;
11283 *)
11284 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11285 ;;
11286 esac
11287 # Ok, now we have the path, separated by spaces, we can step through it
11288 # and add multilib dir if necessary...
11289 lt_tmp_lt_search_path_spec=
11290 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11291 # ...but if some path component already ends with the multilib dir we assume
11292 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11293 case "$lt_multi_os_dir; $lt_search_path_spec " in
11294 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11295 lt_multi_os_dir=
11296 ;;
11297 esac
11298 for lt_sys_path in $lt_search_path_spec; do
11299 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11300 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11301 elif test -n "$lt_multi_os_dir"; then
11302 test -d "$lt_sys_path" && \
11303 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11304 fi
11305 done
11306 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11307BEGIN {RS = " "; FS = "/|\n";} {
11308 lt_foo = "";
11309 lt_count = 0;
11310 for (lt_i = NF; lt_i > 0; lt_i--) {
11311 if ($lt_i != "" && $lt_i != ".") {
11312 if ($lt_i == "..") {
11313 lt_count++;
11314 } else {
11315 if (lt_count == 0) {
11316 lt_foo = "/" $lt_i lt_foo;
11317 } else {
11318 lt_count--;
11319 }
11320 }
11321 }
11322 }
11323 if (lt_foo != "") { lt_freq[lt_foo]++; }
11324 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11325}'`
11326 # AWK program above erroneously prepends '/' to C:/dos/paths
11327 # for these hosts.
11328 case $host_os in
11329 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11330 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11331 esac
11332 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11333else
11334 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11335fi
11336library_names_spec=
11337libname_spec='lib$name'
11338soname_spec=
11339shrext_cmds=.so
11340postinstall_cmds=
11341postuninstall_cmds=
11342finish_cmds=
11343finish_eval=
11344shlibpath_var=
11345shlibpath_overrides_runpath=unknown
11346version_type=none
11347dynamic_linker="$host_os ld.so"
11348sys_lib_dlsearch_path_spec="/lib /usr/lib"
11349need_lib_prefix=unknown
11350hardcode_into_libs=no
11351
11352# when you set need_version to no, make sure it does not cause -set_version
11353# flags to be left without arguments
11354need_version=unknown
11355
11356
11357
11358case $host_os in
11359aix3*)
11360 version_type=linux # correct to gnu/linux during the next big refactor
11361 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11362 shlibpath_var=LIBPATH
11363
11364 # AIX 3 has no versioning support, so we append a major version to the name.
11365 soname_spec='$libname$release$shared_ext$major'
11366 ;;
11367
11368aix[4-9]*)
11369 version_type=linux # correct to gnu/linux during the next big refactor
11370 need_lib_prefix=no
11371 need_version=no
11372 hardcode_into_libs=yes
11373 if test ia64 = "$host_cpu"; then
11374 # AIX 5 supports IA64
11375 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11376 shlibpath_var=LD_LIBRARY_PATH
11377 else
11378 # With GCC up to 2.95.x, collect2 would create an import file
11379 # for dependence libraries. The import file would start with
11380 # the line '#! .'. This would cause the generated library to
11381 # depend on '.', always an invalid library. This was fixed in
11382 # development snapshots of GCC prior to 3.0.
11383 case $host_os in
11384 aix4 | aix4.[01] | aix4.[01].*)
11385 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11386 echo ' yes '
11387 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11388 :
11389 else
11390 can_build_shared=no
11391 fi
11392 ;;
11393 esac
11394 # Using Import Files as archive members, it is possible to support
11395 # filename-based versioning of shared library archives on AIX. While
11396 # this would work for both with and without runtime linking, it will
11397 # prevent static linking of such archives. So we do filename-based
11398 # shared library versioning with .so extension only, which is used
11399 # when both runtime linking and shared linking is enabled.
11400 # Unfortunately, runtime linking may impact performance, so we do
11401 # not want this to be the default eventually. Also, we use the
11402 # versioned .so libs for executables only if there is the -brtl
11403 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11404 # To allow for filename-based versioning support, we need to create
11405 # libNAME.so.V as an archive file, containing:
11406 # *) an Import File, referring to the versioned filename of the
11407 # archive as well as the shared archive member, telling the
11408 # bitwidth (32 or 64) of that shared object, and providing the
11409 # list of exported symbols of that shared object, eventually
11410 # decorated with the 'weak' keyword
11411 # *) the shared object with the F_LOADONLY flag set, to really avoid
11412 # it being seen by the linker.
11413 # At run time we better use the real file rather than another symlink,
11414 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11415
11416 case $with_aix_soname,$aix_use_runtimelinking in
11417 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11418 # soname into executable. Probably we can add versioning support to
11419 # collect2, so additional links can be useful in future.
11420 aix,yes) # traditional libtool
11421 dynamic_linker='AIX unversionable lib.so'
11422 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11423 # instead of lib<name>.a to let people know that these are not
11424 # typical AIX shared libraries.
11425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11426 ;;
11427 aix,no) # traditional AIX only
11428 dynamic_linker='AIX lib.a(lib.so.V)'
11429 # We preserve .a as extension for shared libraries through AIX4.2
11430 # and later when we are not doing run time linking.
11431 library_names_spec='$libname$release.a $libname.a'
11432 soname_spec='$libname$release$shared_ext$major'
11433 ;;
11434 svr4,*) # full svr4 only
11435 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11436 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11437 # We do not specify a path in Import Files, so LIBPATH fires.
11438 shlibpath_overrides_runpath=yes
11439 ;;
11440 *,yes) # both, prefer svr4
11441 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11442 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11443 # unpreferred sharedlib libNAME.a needs extra handling
11444 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"'
11445 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"'
11446 # We do not specify a path in Import Files, so LIBPATH fires.
11447 shlibpath_overrides_runpath=yes
11448 ;;
11449 *,no) # both, prefer aix
11450 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11451 library_names_spec='$libname$release.a $libname.a'
11452 soname_spec='$libname$release$shared_ext$major'
11453 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11454 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)'
11455 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"'
11456 ;;
11457 esac
11458 shlibpath_var=LIBPATH
11459 fi
11460 ;;
11461
11462amigaos*)
11463 case $host_cpu in
11464 powerpc)
11465 # Since July 2007 AmigaOS4 officially supports .so libraries.
11466 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11468 ;;
11469 m68k)
11470 library_names_spec='$libname.ixlibrary $libname.a'
11471 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11472 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'
11473 ;;
11474 esac
11475 ;;
11476
11477beos*)
11478 library_names_spec='$libname$shared_ext'
11479 dynamic_linker="$host_os ld.so"
11480 shlibpath_var=LIBRARY_PATH
11481 ;;
11482
11483bsdi[45]*)
11484 version_type=linux # correct to gnu/linux during the next big refactor
11485 need_version=no
11486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11487 soname_spec='$libname$release$shared_ext$major'
11488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11489 shlibpath_var=LD_LIBRARY_PATH
11490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11492 # the default ld.so.conf also contains /usr/contrib/lib and
11493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11494 # libtool to hard-code these into programs
11495 ;;
11496
11497cygwin* | mingw* | pw32* | cegcc*)
11498 version_type=windows
11499 shrext_cmds=.dll
11500 need_version=no
11501 need_lib_prefix=no
11502
11503 case $GCC,$cc_basename in
11504 yes,*)
11505 # gcc
11506 library_names_spec='$libname.dll.a'
11507 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11508 postinstall_cmds='base_file=`basename \$file`~
11509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11510 dldir=$destdir/`dirname \$dlpath`~
11511 test -d \$dldir || mkdir -p \$dldir~
11512 $install_prog $dir/$dlname \$dldir/$dlname~
11513 chmod a+x \$dldir/$dlname~
11514 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11515 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11516 fi'
11517 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11518 dlpath=$dir/\$dldll~
11519 $RM \$dlpath'
11520 shlibpath_overrides_runpath=yes
11521
11522 case $host_os in
11523 cygwin*)
11524 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11525 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11526
11527 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11528 ;;
11529 mingw* | cegcc*)
11530 # MinGW DLLs use traditional 'lib' prefix
11531 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11532 ;;
11533 pw32*)
11534 # pw32 DLLs use 'pw' prefix rather than 'lib'
11535 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11536 ;;
11537 esac
11538 dynamic_linker='Win32 ld.exe'
11539 ;;
11540
11541 *,cl*)
11542 # Native MSVC
11543 libname_spec='$name'
11544 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11545 library_names_spec='$libname.dll.lib'
11546
11547 case $build_os in
11548 mingw*)
11549 sys_lib_search_path_spec=
11550 lt_save_ifs=$IFS
11551 IFS=';'
11552 for lt_path in $LIB
11553 do
11554 IFS=$lt_save_ifs
11555 # Let DOS variable expansion print the short 8.3 style file name.
11556 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11557 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11558 done
11559 IFS=$lt_save_ifs
11560 # Convert to MSYS style.
11561 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11562 ;;
11563 cygwin*)
11564 # Convert to unix form, then to dos form, then back to unix form
11565 # but this time dos style (no spaces!) so that the unix form looks
11566 # like /cygdrive/c/PROGRA~1:/cygdr...
11567 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11568 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11569 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11570 ;;
11571 *)
11572 sys_lib_search_path_spec=$LIB
11573 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11574 # It is most probably a Windows format PATH.
11575 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11576 else
11577 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11578 fi
11579 # FIXME: find the short name or the path components, as spaces are
11580 # common. (e.g. "Program Files" -> "PROGRA~1")
11581 ;;
11582 esac
11583
11584 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11585 postinstall_cmds='base_file=`basename \$file`~
11586 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11587 dldir=$destdir/`dirname \$dlpath`~
11588 test -d \$dldir || mkdir -p \$dldir~
11589 $install_prog $dir/$dlname \$dldir/$dlname'
11590 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11591 dlpath=$dir/\$dldll~
11592 $RM \$dlpath'
11593 shlibpath_overrides_runpath=yes
11594 dynamic_linker='Win32 link.exe'
11595 ;;
11596
11597 *)
11598 # Assume MSVC wrapper
11599 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11600 dynamic_linker='Win32 ld.exe'
11601 ;;
11602 esac
11603 # FIXME: first we should search . and the directory the executable is in
11604 shlibpath_var=PATH
11605 ;;
11606
11607darwin* | rhapsody*)
11608 dynamic_linker="$host_os dyld"
11609 version_type=darwin
11610 need_lib_prefix=no
11611 need_version=no
11612 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11613 soname_spec='$libname$release$major$shared_ext'
11614 shlibpath_overrides_runpath=yes
11615 shlibpath_var=DYLD_LIBRARY_PATH
11616 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11617
11618 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11619 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11620 ;;
11621
11622dgux*)
11623 version_type=linux # correct to gnu/linux during the next big refactor
11624 need_lib_prefix=no
11625 need_version=no
11626 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11627 soname_spec='$libname$release$shared_ext$major'
11628 shlibpath_var=LD_LIBRARY_PATH
11629 ;;
11630
11631freebsd* | dragonfly*)
11632 # DragonFly does not have aout. When/if they implement a new
11633 # versioning mechanism, adjust this.
11634 if test -x /usr/bin/objformat; then
11635 objformat=`/usr/bin/objformat`
11636 else
11637 case $host_os in
11638 freebsd[23].*) objformat=aout ;;
11639 *) objformat=elf ;;
11640 esac
11641 fi
11642 version_type=freebsd-$objformat
11643 case $version_type in
11644 freebsd-elf*)
11645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11646 soname_spec='$libname$release$shared_ext$major'
11647 need_version=no
11648 need_lib_prefix=no
11649 ;;
11650 freebsd-*)
11651 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11652 need_version=yes
11653 ;;
11654 esac
11655 shlibpath_var=LD_LIBRARY_PATH
11656 case $host_os in
11657 freebsd2.*)
11658 shlibpath_overrides_runpath=yes
11659 ;;
11660 freebsd3.[01]* | freebsdelf3.[01]*)
11661 shlibpath_overrides_runpath=yes
11662 hardcode_into_libs=yes
11663 ;;
11664 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11665 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11666 shlibpath_overrides_runpath=no
11667 hardcode_into_libs=yes
11668 ;;
11669 *) # from 4.6 on, and DragonFly
11670 shlibpath_overrides_runpath=yes
11671 hardcode_into_libs=yes
11672 ;;
11673 esac
11674 ;;
11675
11676haiku*)
11677 version_type=linux # correct to gnu/linux during the next big refactor
11678 need_lib_prefix=no
11679 need_version=no
11680 dynamic_linker="$host_os runtime_loader"
11681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11682 soname_spec='$libname$release$shared_ext$major'
11683 shlibpath_var=LIBRARY_PATH
11684 shlibpath_overrides_runpath=no
11685 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11686 hardcode_into_libs=yes
11687 ;;
11688
11689hpux9* | hpux10* | hpux11*)
11690 # Give a soname corresponding to the major version so that dld.sl refuses to
11691 # link against other versions.
11692 version_type=sunos
11693 need_lib_prefix=no
11694 need_version=no
11695 case $host_cpu in
11696 ia64*)
11697 shrext_cmds='.so'
11698 hardcode_into_libs=yes
11699 dynamic_linker="$host_os dld.so"
11700 shlibpath_var=LD_LIBRARY_PATH
11701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11703 soname_spec='$libname$release$shared_ext$major'
11704 if test 32 = "$HPUX_IA64_MODE"; then
11705 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11706 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11707 else
11708 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11709 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11710 fi
11711 ;;
11712 hppa*64*)
11713 shrext_cmds='.sl'
11714 hardcode_into_libs=yes
11715 dynamic_linker="$host_os dld.sl"
11716 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11719 soname_spec='$libname$release$shared_ext$major'
11720 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11722 ;;
11723 *)
11724 shrext_cmds='.sl'
11725 dynamic_linker="$host_os dld.sl"
11726 shlibpath_var=SHLIB_PATH
11727 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11729 soname_spec='$libname$release$shared_ext$major'
11730 ;;
11731 esac
11732 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11733 postinstall_cmds='chmod 555 $lib'
11734 # or fails outright, so override atomically:
11735 install_override_mode=555
11736 ;;
11737
11738interix[3-9]*)
11739 version_type=linux # correct to gnu/linux during the next big refactor
11740 need_lib_prefix=no
11741 need_version=no
11742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11743 soname_spec='$libname$release$shared_ext$major'
11744 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11745 shlibpath_var=LD_LIBRARY_PATH
11746 shlibpath_overrides_runpath=no
11747 hardcode_into_libs=yes
11748 ;;
11749
11750irix5* | irix6* | nonstopux*)
11751 case $host_os in
11752 nonstopux*) version_type=nonstopux ;;
11753 *)
11754 if test yes = "$lt_cv_prog_gnu_ld"; then
11755 version_type=linux # correct to gnu/linux during the next big refactor
11756 else
11757 version_type=irix
11758 fi ;;
11759 esac
11760 need_lib_prefix=no
11761 need_version=no
11762 soname_spec='$libname$release$shared_ext$major'
11763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11764 case $host_os in
11765 irix5* | nonstopux*)
11766 libsuff= shlibsuff=
11767 ;;
11768 *)
11769 case $LD in # libtool.m4 will add one of these switches to LD
11770 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11771 libsuff= shlibsuff= libmagic=32-bit;;
11772 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11773 libsuff=32 shlibsuff=N32 libmagic=N32;;
11774 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11775 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11776 *) libsuff= shlibsuff= libmagic=never-match;;
11777 esac
11778 ;;
11779 esac
11780 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11781 shlibpath_overrides_runpath=no
11782 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11783 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11784 hardcode_into_libs=yes
11785 ;;
11786
11787# No shared lib support for Linux oldld, aout, or coff.
11788linux*oldld* | linux*aout* | linux*coff*)
11789 dynamic_linker=no
11790 ;;
11791
11792linux*android*)
11793 version_type=none # Android doesn't support versioned libraries.
11794 need_lib_prefix=no
11795 need_version=no
11796 library_names_spec='$libname$release$shared_ext'
11797 soname_spec='$libname$release$shared_ext'
11798 finish_cmds=
11799 shlibpath_var=LD_LIBRARY_PATH
11800 shlibpath_overrides_runpath=yes
11801
11802 # This implies no fast_install, which is unacceptable.
11803 # Some rework will be needed to allow for fast_install
11804 # before this can be enabled.
11805 hardcode_into_libs=yes
11806
11807 dynamic_linker='Android linker'
11808 # Don't embed -rpath directories since the linker doesn't support them.
11809 hardcode_libdir_flag_spec='-L$libdir'
11810 ;;
11811
11812# This must be glibc/ELF.
11813linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11814 version_type=linux # correct to gnu/linux during the next big refactor
11815 need_lib_prefix=no
11816 need_version=no
11817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11818 soname_spec='$libname$release$shared_ext$major'
11819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11820 shlibpath_var=LD_LIBRARY_PATH
11821 shlibpath_overrides_runpath=no
11822
11823 # Some binutils ld are patched to set DT_RUNPATH
11824 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11825 $as_echo_n "(cached) " >&6
11826else
11827 lt_cv_shlibpath_overrides_runpath=no
11828 save_LDFLAGS=$LDFLAGS
11829 save_libdir=$libdir
11830 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11831 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833/* end confdefs.h. */
11834
11835int
11836main ()
11837{
11838
11839 ;
11840 return 0;
11841}
11842_ACEOF
11843if ac_fn_c_try_link "$LINENO"; then :
11844 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11845 lt_cv_shlibpath_overrides_runpath=yes
11846fi
11847fi
11848rm -f core conftest.err conftest.$ac_objext \
11849 conftest$ac_exeext conftest.$ac_ext
11850 LDFLAGS=$save_LDFLAGS
11851 libdir=$save_libdir
11852
11853fi
11854
11855 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11856
11857 # This implies no fast_install, which is unacceptable.
11858 # Some rework will be needed to allow for fast_install
11859 # before this can be enabled.
11860 hardcode_into_libs=yes
11861
11862 # Ideally, we could use ldconfig to report *all* directores which are
11863 # searched for libraries, however this is still not possible. Aside from not
11864 # being certain /sbin/ldconfig is available, command
11865 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11866 # even though it is searched at run-time. Try to do the best guess by
11867 # appending ld.so.conf contents (and includes) to the search path.
11868 if test -f /etc/ld.so.conf; then
11869 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' ' '`
11870 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11871 fi
11872
11873 # We used to test for /lib/ld.so.1 and disable shared libraries on
11874 # powerpc, because MkLinux only supported shared libraries with the
11875 # GNU dynamic linker. Since this was broken with cross compilers,
11876 # most powerpc-linux boxes support dynamic linking these days and
11877 # people can always --disable-shared, the test was removed, and we
11878 # assume the GNU/Linux dynamic linker is in use.
11879 dynamic_linker='GNU/Linux ld.so'
11880 ;;
11881
11882netbsdelf*-gnu)
11883 version_type=linux
11884 need_lib_prefix=no
11885 need_version=no
11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11887 soname_spec='${libname}${release}${shared_ext}$major'
11888 shlibpath_var=LD_LIBRARY_PATH
11889 shlibpath_overrides_runpath=no
11890 hardcode_into_libs=yes
11891 dynamic_linker='NetBSD ld.elf_so'
11892 ;;
11893
11894netbsd*)
11895 version_type=sunos
11896 need_lib_prefix=no
11897 need_version=no
11898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11899 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11901 dynamic_linker='NetBSD (a.out) ld.so'
11902 else
11903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11904 soname_spec='$libname$release$shared_ext$major'
11905 dynamic_linker='NetBSD ld.elf_so'
11906 fi
11907 shlibpath_var=LD_LIBRARY_PATH
11908 shlibpath_overrides_runpath=yes
11909 hardcode_into_libs=yes
11910 ;;
11911
11912newsos6)
11913 version_type=linux # correct to gnu/linux during the next big refactor
11914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11915 shlibpath_var=LD_LIBRARY_PATH
11916 shlibpath_overrides_runpath=yes
11917 ;;
11918
11919*nto* | *qnx*)
11920 version_type=qnx
11921 need_lib_prefix=no
11922 need_version=no
11923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11924 soname_spec='$libname$release$shared_ext$major'
11925 shlibpath_var=LD_LIBRARY_PATH
11926 shlibpath_overrides_runpath=no
11927 hardcode_into_libs=yes
11928 dynamic_linker='ldqnx.so'
11929 ;;
11930
11931openbsd* | bitrig*)
11932 version_type=sunos
11933 sys_lib_dlsearch_path_spec=/usr/lib
11934 need_lib_prefix=no
11935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11936 need_version=no
11937 else
11938 need_version=yes
11939 fi
11940 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11942 shlibpath_var=LD_LIBRARY_PATH
11943 shlibpath_overrides_runpath=yes
11944 ;;
11945
11946os2*)
11947 libname_spec='$name'
11948 version_type=windows
11949 shrext_cmds=.dll
11950 need_version=no
11951 need_lib_prefix=no
11952 # OS/2 can only load a DLL with a base name of 8 characters or less.
11953 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11954 v=$($ECHO $release$versuffix | tr -d .-);
11955 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11956 $ECHO $n$v`$shared_ext'
11957 library_names_spec='${libname}_dll.$libext'
11958 dynamic_linker='OS/2 ld.exe'
11959 shlibpath_var=BEGINLIBPATH
11960 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11962 postinstall_cmds='base_file=`basename \$file`~
11963 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11964 dldir=$destdir/`dirname \$dlpath`~
11965 test -d \$dldir || mkdir -p \$dldir~
11966 $install_prog $dir/$dlname \$dldir/$dlname~
11967 chmod a+x \$dldir/$dlname~
11968 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11969 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11970 fi'
11971 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11972 dlpath=$dir/\$dldll~
11973 $RM \$dlpath'
11974 ;;
11975
11976osf3* | osf4* | osf5*)
11977 version_type=osf
11978 need_lib_prefix=no
11979 need_version=no
11980 soname_spec='$libname$release$shared_ext$major'
11981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11982 shlibpath_var=LD_LIBRARY_PATH
11983 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11985 ;;
11986
11987rdos*)
11988 dynamic_linker=no
11989 ;;
11990
11991solaris*)
11992 version_type=linux # correct to gnu/linux during the next big refactor
11993 need_lib_prefix=no
11994 need_version=no
11995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11996 soname_spec='$libname$release$shared_ext$major'
11997 shlibpath_var=LD_LIBRARY_PATH
11998 shlibpath_overrides_runpath=yes
11999 hardcode_into_libs=yes
12000 # ldd complains unless libraries are executable
12001 postinstall_cmds='chmod +x $lib'
12002 ;;
12003
12004sunos4*)
12005 version_type=sunos
12006 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12007 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12008 shlibpath_var=LD_LIBRARY_PATH
12009 shlibpath_overrides_runpath=yes
12010 if test yes = "$with_gnu_ld"; then
12011 need_lib_prefix=no
12012 fi
12013 need_version=yes
12014 ;;
12015
12016sysv4 | sysv4.3*)
12017 version_type=linux # correct to gnu/linux during the next big refactor
12018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12019 soname_spec='$libname$release$shared_ext$major'
12020 shlibpath_var=LD_LIBRARY_PATH
12021 case $host_vendor in
12022 sni)
12023 shlibpath_overrides_runpath=no
12024 need_lib_prefix=no
12025 runpath_var=LD_RUN_PATH
12026 ;;
12027 siemens)
12028 need_lib_prefix=no
12029 ;;
12030 motorola)
12031 need_lib_prefix=no
12032 need_version=no
12033 shlibpath_overrides_runpath=no
12034 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12035 ;;
12036 esac
12037 ;;
12038
12039sysv4*MP*)
12040 if test -d /usr/nec; then
12041 version_type=linux # correct to gnu/linux during the next big refactor
12042 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12043 soname_spec='$libname$shared_ext.$major'
12044 shlibpath_var=LD_LIBRARY_PATH
12045 fi
12046 ;;
12047
12048sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12049 version_type=sco
12050 need_lib_prefix=no
12051 need_version=no
12052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12053 soname_spec='$libname$release$shared_ext$major'
12054 shlibpath_var=LD_LIBRARY_PATH
12055 shlibpath_overrides_runpath=yes
12056 hardcode_into_libs=yes
12057 if test yes = "$with_gnu_ld"; then
12058 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12059 else
12060 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12061 case $host_os in
12062 sco3.2v5*)
12063 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12064 ;;
12065 esac
12066 fi
12067 sys_lib_dlsearch_path_spec='/usr/lib'
12068 ;;
12069
12070tpf*)
12071 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12072 version_type=linux # correct to gnu/linux during the next big refactor
12073 need_lib_prefix=no
12074 need_version=no
12075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12076 shlibpath_var=LD_LIBRARY_PATH
12077 shlibpath_overrides_runpath=no
12078 hardcode_into_libs=yes
12079 ;;
12080
12081uts4*)
12082 version_type=linux # correct to gnu/linux during the next big refactor
12083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12084 soname_spec='$libname$release$shared_ext$major'
12085 shlibpath_var=LD_LIBRARY_PATH
12086 ;;
12087
12088*)
12089 dynamic_linker=no
12090 ;;
12091esac
12092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12093$as_echo "$dynamic_linker" >&6; }
12094test no = "$dynamic_linker" && can_build_shared=no
12095
12096variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12097if test yes = "$GCC"; then
12098 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12099fi
12100
12101if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12102 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12103fi
12104
12105if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12106 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12107fi
12108
12109# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12110configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12111
12112# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12113func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12114
12115# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12116configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12215$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12216hardcode_action=
12217if test -n "$hardcode_libdir_flag_spec" ||
12218 test -n "$runpath_var" ||
12219 test yes = "$hardcode_automatic"; then
12220
12221 # We can hardcode non-existent directories.
12222 if test no != "$hardcode_direct" &&
12223 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12224 # have to relink, otherwise we might link with an installed library
12225 # when we should be linking with a yet-to-be-installed one
12226 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12227 test no != "$hardcode_minus_L"; then
12228 # Linking always hardcodes the temporary library directory.
12229 hardcode_action=relink
12230 else
12231 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12232 hardcode_action=immediate
12233 fi
12234else
12235 # We cannot hardcode anything, or else we can only hardcode existing
12236 # directories.
12237 hardcode_action=unsupported
12238fi
12239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12240$as_echo "$hardcode_action" >&6; }
12241
12242if test relink = "$hardcode_action" ||
12243 test yes = "$inherit_rpath"; then
12244 # Fast installation is not supported
12245 enable_fast_install=no
12246elif test yes = "$shlibpath_overrides_runpath" ||
12247 test no = "$enable_shared"; then
12248 # Fast installation is not necessary
12249 enable_fast_install=needless
12250fi
12251
12252
12253
12254
12255
12256
12257 if test yes != "$enable_dlopen"; then
12258 enable_dlopen=unknown
12259 enable_dlopen_self=unknown
12260 enable_dlopen_self_static=unknown
12261else
12262 lt_cv_dlopen=no
12263 lt_cv_dlopen_libs=
12264
12265 case $host_os in
12266 beos*)
12267 lt_cv_dlopen=load_add_on
12268 lt_cv_dlopen_libs=
12269 lt_cv_dlopen_self=yes
12270 ;;
12271
12272 mingw* | pw32* | cegcc*)
12273 lt_cv_dlopen=LoadLibrary
12274 lt_cv_dlopen_libs=
12275 ;;
12276
12277 cygwin*)
12278 lt_cv_dlopen=dlopen
12279 lt_cv_dlopen_libs=
12280 ;;
12281
12282 darwin*)
12283 # if libdl is installed we need to link against it
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12285$as_echo_n "checking for dlopen in -ldl... " >&6; }
12286if ${ac_cv_lib_dl_dlopen+:} false; then :
12287 $as_echo_n "(cached) " >&6
12288else
12289 ac_check_lib_save_LIBS=$LIBS
12290LIBS="-ldl $LIBS"
12291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12292/* end confdefs.h. */
12293
12294/* Override any GCC internal prototype to avoid an error.
12295 Use char because int might match the return type of a GCC
12296 builtin and then its argument prototype would still apply. */
12297#ifdef __cplusplus
12298extern "C"
12299#endif
12300char dlopen ();
12301int
12302main ()
12303{
12304return dlopen ();
12305 ;
12306 return 0;
12307}
12308_ACEOF
12309if ac_fn_c_try_link "$LINENO"; then :
12310 ac_cv_lib_dl_dlopen=yes
12311else
12312 ac_cv_lib_dl_dlopen=no
12313fi
12314rm -f core conftest.err conftest.$ac_objext \
12315 conftest$ac_exeext conftest.$ac_ext
12316LIBS=$ac_check_lib_save_LIBS
12317fi
12318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12319$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12320if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12321 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12322else
12323
12324 lt_cv_dlopen=dyld
12325 lt_cv_dlopen_libs=
12326 lt_cv_dlopen_self=yes
12327
12328fi
12329
12330 ;;
12331
12332 tpf*)
12333 # Don't try to run any link tests for TPF. We know it's impossible
12334 # because TPF is a cross-compiler, and we know how we open DSOs.
12335 lt_cv_dlopen=dlopen
12336 lt_cv_dlopen_libs=
12337 lt_cv_dlopen_self=no
12338 ;;
12339
12340 *)
12341 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12342if test "x$ac_cv_func_shl_load" = xyes; then :
12343 lt_cv_dlopen=shl_load
12344else
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12346$as_echo_n "checking for shl_load in -ldld... " >&6; }
12347if ${ac_cv_lib_dld_shl_load+:} false; then :
12348 $as_echo_n "(cached) " >&6
12349else
12350 ac_check_lib_save_LIBS=$LIBS
12351LIBS="-ldld $LIBS"
12352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353/* end confdefs.h. */
12354
12355/* Override any GCC internal prototype to avoid an error.
12356 Use char because int might match the return type of a GCC
12357 builtin and then its argument prototype would still apply. */
12358#ifdef __cplusplus
12359extern "C"
12360#endif
12361char shl_load ();
12362int
12363main ()
12364{
12365return shl_load ();
12366 ;
12367 return 0;
12368}
12369_ACEOF
12370if ac_fn_c_try_link "$LINENO"; then :
12371 ac_cv_lib_dld_shl_load=yes
12372else
12373 ac_cv_lib_dld_shl_load=no
12374fi
12375rm -f core conftest.err conftest.$ac_objext \
12376 conftest$ac_exeext conftest.$ac_ext
12377LIBS=$ac_check_lib_save_LIBS
12378fi
12379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12380$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12381if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12382 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12383else
12384 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12385if test "x$ac_cv_func_dlopen" = xyes; then :
12386 lt_cv_dlopen=dlopen
12387else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12389$as_echo_n "checking for dlopen in -ldl... " >&6; }
12390if ${ac_cv_lib_dl_dlopen+:} false; then :
12391 $as_echo_n "(cached) " >&6
12392else
12393 ac_check_lib_save_LIBS=$LIBS
12394LIBS="-ldl $LIBS"
12395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396/* end confdefs.h. */
12397
12398/* Override any GCC internal prototype to avoid an error.
12399 Use char because int might match the return type of a GCC
12400 builtin and then its argument prototype would still apply. */
12401#ifdef __cplusplus
12402extern "C"
12403#endif
12404char dlopen ();
12405int
12406main ()
12407{
12408return dlopen ();
12409 ;
12410 return 0;
12411}
12412_ACEOF
12413if ac_fn_c_try_link "$LINENO"; then :
12414 ac_cv_lib_dl_dlopen=yes
12415else
12416 ac_cv_lib_dl_dlopen=no
12417fi
12418rm -f core conftest.err conftest.$ac_objext \
12419 conftest$ac_exeext conftest.$ac_ext
12420LIBS=$ac_check_lib_save_LIBS
12421fi
12422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12423$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12424if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12425 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12426else
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12428$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12429if ${ac_cv_lib_svld_dlopen+:} false; then :
12430 $as_echo_n "(cached) " >&6
12431else
12432 ac_check_lib_save_LIBS=$LIBS
12433LIBS="-lsvld $LIBS"
12434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435/* end confdefs.h. */
12436
12437/* Override any GCC internal prototype to avoid an error.
12438 Use char because int might match the return type of a GCC
12439 builtin and then its argument prototype would still apply. */
12440#ifdef __cplusplus
12441extern "C"
12442#endif
12443char dlopen ();
12444int
12445main ()
12446{
12447return dlopen ();
12448 ;
12449 return 0;
12450}
12451_ACEOF
12452if ac_fn_c_try_link "$LINENO"; then :
12453 ac_cv_lib_svld_dlopen=yes
12454else
12455 ac_cv_lib_svld_dlopen=no
12456fi
12457rm -f core conftest.err conftest.$ac_objext \
12458 conftest$ac_exeext conftest.$ac_ext
12459LIBS=$ac_check_lib_save_LIBS
12460fi
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12462$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12463if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12464 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12465else
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12467$as_echo_n "checking for dld_link in -ldld... " >&6; }
12468if ${ac_cv_lib_dld_dld_link+:} false; then :
12469 $as_echo_n "(cached) " >&6
12470else
12471 ac_check_lib_save_LIBS=$LIBS
12472LIBS="-ldld $LIBS"
12473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474/* end confdefs.h. */
12475
12476/* Override any GCC internal prototype to avoid an error.
12477 Use char because int might match the return type of a GCC
12478 builtin and then its argument prototype would still apply. */
12479#ifdef __cplusplus
12480extern "C"
12481#endif
12482char dld_link ();
12483int
12484main ()
12485{
12486return dld_link ();
12487 ;
12488 return 0;
12489}
12490_ACEOF
12491if ac_fn_c_try_link "$LINENO"; then :
12492 ac_cv_lib_dld_dld_link=yes
12493else
12494 ac_cv_lib_dld_dld_link=no
12495fi
12496rm -f core conftest.err conftest.$ac_objext \
12497 conftest$ac_exeext conftest.$ac_ext
12498LIBS=$ac_check_lib_save_LIBS
12499fi
12500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12501$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12502if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12503 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12504fi
12505
12506
12507fi
12508
12509
12510fi
12511
12512
12513fi
12514
12515
12516fi
12517
12518
12519fi
12520
12521 ;;
12522 esac
12523
12524 if test no = "$lt_cv_dlopen"; then
12525 enable_dlopen=no
12526 else
12527 enable_dlopen=yes
12528 fi
12529
12530 case $lt_cv_dlopen in
12531 dlopen)
12532 save_CPPFLAGS=$CPPFLAGS
12533 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12534
12535 save_LDFLAGS=$LDFLAGS
12536 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12537
12538 save_LIBS=$LIBS
12539 LIBS="$lt_cv_dlopen_libs $LIBS"
12540
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12542$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12543if ${lt_cv_dlopen_self+:} false; then :
12544 $as_echo_n "(cached) " >&6
12545else
12546 if test yes = "$cross_compiling"; then :
12547 lt_cv_dlopen_self=cross
12548else
12549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12550 lt_status=$lt_dlunknown
12551 cat > conftest.$ac_ext <<_LT_EOF
12552#line $LINENO "configure"
12553#include "confdefs.h"
12554
12555#if HAVE_DLFCN_H
12556#include <dlfcn.h>
12557#endif
12558
12559#include <stdio.h>
12560
12561#ifdef RTLD_GLOBAL
12562# define LT_DLGLOBAL RTLD_GLOBAL
12563#else
12564# ifdef DL_GLOBAL
12565# define LT_DLGLOBAL DL_GLOBAL
12566# else
12567# define LT_DLGLOBAL 0
12568# endif
12569#endif
12570
12571/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12572 find out it does not work in some platform. */
12573#ifndef LT_DLLAZY_OR_NOW
12574# ifdef RTLD_LAZY
12575# define LT_DLLAZY_OR_NOW RTLD_LAZY
12576# else
12577# ifdef DL_LAZY
12578# define LT_DLLAZY_OR_NOW DL_LAZY
12579# else
12580# ifdef RTLD_NOW
12581# define LT_DLLAZY_OR_NOW RTLD_NOW
12582# else
12583# ifdef DL_NOW
12584# define LT_DLLAZY_OR_NOW DL_NOW
12585# else
12586# define LT_DLLAZY_OR_NOW 0
12587# endif
12588# endif
12589# endif
12590# endif
12591#endif
12592
12593/* When -fvisibility=hidden is used, assume the code has been annotated
12594 correspondingly for the symbols needed. */
12595#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12596int fnord () __attribute__((visibility("default")));
12597#endif
12598
12599int fnord () { return 42; }
12600int main ()
12601{
12602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12603 int status = $lt_dlunknown;
12604
12605 if (self)
12606 {
12607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12608 else
12609 {
12610 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12611 else puts (dlerror ());
12612 }
12613 /* dlclose (self); */
12614 }
12615 else
12616 puts (dlerror ());
12617
12618 return status;
12619}
12620_LT_EOF
12621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12622 (eval $ac_link) 2>&5
12623 ac_status=$?
12624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12625 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12626 (./conftest; exit; ) >&5 2>/dev/null
12627 lt_status=$?
12628 case x$lt_status in
12629 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12630 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12631 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12632 esac
12633 else :
12634 # compilation failed
12635 lt_cv_dlopen_self=no
12636 fi
12637fi
12638rm -fr conftest*
12639
12640
12641fi
12642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12643$as_echo "$lt_cv_dlopen_self" >&6; }
12644
12645 if test yes = "$lt_cv_dlopen_self"; then
12646 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12648$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12649if ${lt_cv_dlopen_self_static+:} false; then :
12650 $as_echo_n "(cached) " >&6
12651else
12652 if test yes = "$cross_compiling"; then :
12653 lt_cv_dlopen_self_static=cross
12654else
12655 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12656 lt_status=$lt_dlunknown
12657 cat > conftest.$ac_ext <<_LT_EOF
12658#line $LINENO "configure"
12659#include "confdefs.h"
12660
12661#if HAVE_DLFCN_H
12662#include <dlfcn.h>
12663#endif
12664
12665#include <stdio.h>
12666
12667#ifdef RTLD_GLOBAL
12668# define LT_DLGLOBAL RTLD_GLOBAL
12669#else
12670# ifdef DL_GLOBAL
12671# define LT_DLGLOBAL DL_GLOBAL
12672# else
12673# define LT_DLGLOBAL 0
12674# endif
12675#endif
12676
12677/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12678 find out it does not work in some platform. */
12679#ifndef LT_DLLAZY_OR_NOW
12680# ifdef RTLD_LAZY
12681# define LT_DLLAZY_OR_NOW RTLD_LAZY
12682# else
12683# ifdef DL_LAZY
12684# define LT_DLLAZY_OR_NOW DL_LAZY
12685# else
12686# ifdef RTLD_NOW
12687# define LT_DLLAZY_OR_NOW RTLD_NOW
12688# else
12689# ifdef DL_NOW
12690# define LT_DLLAZY_OR_NOW DL_NOW
12691# else
12692# define LT_DLLAZY_OR_NOW 0
12693# endif
12694# endif
12695# endif
12696# endif
12697#endif
12698
12699/* When -fvisibility=hidden is used, assume the code has been annotated
12700 correspondingly for the symbols needed. */
12701#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12702int fnord () __attribute__((visibility("default")));
12703#endif
12704
12705int fnord () { return 42; }
12706int main ()
12707{
12708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12709 int status = $lt_dlunknown;
12710
12711 if (self)
12712 {
12713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12714 else
12715 {
12716 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12717 else puts (dlerror ());
12718 }
12719 /* dlclose (self); */
12720 }
12721 else
12722 puts (dlerror ());
12723
12724 return status;
12725}
12726_LT_EOF
12727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12728 (eval $ac_link) 2>&5
12729 ac_status=$?
12730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12731 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12732 (./conftest; exit; ) >&5 2>/dev/null
12733 lt_status=$?
12734 case x$lt_status in
12735 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12736 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12737 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12738 esac
12739 else :
12740 # compilation failed
12741 lt_cv_dlopen_self_static=no
12742 fi
12743fi
12744rm -fr conftest*
12745
12746
12747fi
12748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12749$as_echo "$lt_cv_dlopen_self_static" >&6; }
12750 fi
12751
12752 CPPFLAGS=$save_CPPFLAGS
12753 LDFLAGS=$save_LDFLAGS
12754 LIBS=$save_LIBS
12755 ;;
12756 esac
12757
12758 case $lt_cv_dlopen_self in
12759 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12760 *) enable_dlopen_self=unknown ;;
12761 esac
12762
12763 case $lt_cv_dlopen_self_static in
12764 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12765 *) enable_dlopen_self_static=unknown ;;
12766 esac
12767fi
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785striplib=
12786old_striplib=
12787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12788$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12789if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12790 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12791 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12793$as_echo "yes" >&6; }
12794else
12795# FIXME - insert some real tests, host_os isn't really good enough
12796 case $host_os in
12797 darwin*)
12798 if test -n "$STRIP"; then
12799 striplib="$STRIP -x"
12800 old_striplib="$STRIP -S"
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12802$as_echo "yes" >&6; }
12803 else
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805$as_echo "no" >&6; }
12806 fi
12807 ;;
12808 *)
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810$as_echo "no" >&6; }
12811 ;;
12812 esac
12813fi
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826 # Report what library types will actually be built
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12828$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12830$as_echo "$can_build_shared" >&6; }
12831
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12833$as_echo_n "checking whether to build shared libraries... " >&6; }
12834 test no = "$can_build_shared" && enable_shared=no
12835
12836 # On AIX, shared libraries and static libraries use the same namespace, and
12837 # are all built from PIC.
12838 case $host_os in
12839 aix3*)
12840 test yes = "$enable_shared" && enable_static=no
12841 if test -n "$RANLIB"; then
12842 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12843 postinstall_cmds='$RANLIB $lib'
12844 fi
12845 ;;
12846
12847 aix[4-9]*)
12848 if test ia64 != "$host_cpu"; then
12849 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12850 yes,aix,yes) ;; # shared object as lib.so file only
12851 yes,svr4,*) ;; # shared object as lib.so archive member only
12852 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12853 esac
12854 fi
12855 ;;
12856 esac
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12858$as_echo "$enable_shared" >&6; }
12859
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12861$as_echo_n "checking whether to build static libraries... " >&6; }
12862 # Make sure either enable_shared or enable_static is yes.
12863 test yes = "$enable_shared" || enable_static=yes
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12865$as_echo "$enable_static" >&6; }
12866
12867
12868
12869
12870fi
12871ac_ext=c
12872ac_cpp='$CPP $CPPFLAGS'
12873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12875ac_compiler_gnu=$ac_cv_c_compiler_gnu
12876
12877CC=$lt_save_CC
12878
12879 if test -n "$CXX" && ( test no != "$CXX" &&
12880 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12881 (test g++ != "$CXX"))); then
12882 ac_ext=cpp
12883ac_cpp='$CXXCPP $CPPFLAGS'
12884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12888$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12889if test -z "$CXXCPP"; then
12890 if ${ac_cv_prog_CXXCPP+:} false; then :
12891 $as_echo_n "(cached) " >&6
12892else
12893 # Double quotes because CXXCPP needs to be expanded
12894 for CXXCPP in "$CXX -E" "/lib/cpp"
12895 do
12896 ac_preproc_ok=false
12897for ac_cxx_preproc_warn_flag in '' yes
12898do
12899 # Use a header file that comes with gcc, so configuring glibc
12900 # with a fresh cross-compiler works.
12901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12902 # <limits.h> exists even on freestanding compilers.
12903 # On the NeXT, cc -E runs the code through the compiler's parser,
12904 # not just through cpp. "Syntax error" is here to catch this case.
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906/* end confdefs.h. */
12907#ifdef __STDC__
12908# include <limits.h>
12909#else
12910# include <assert.h>
12911#endif
12912 Syntax error
12913_ACEOF
12914if ac_fn_cxx_try_cpp "$LINENO"; then :
12915
12916else
12917 # Broken: fails on valid input.
12918continue
12919fi
12920rm -f conftest.err conftest.i conftest.$ac_ext
12921
12922 # OK, works on sane cases. Now check whether nonexistent headers
12923 # can be detected and how.
12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925/* end confdefs.h. */
12926#include <ac_nonexistent.h>
12927_ACEOF
12928if ac_fn_cxx_try_cpp "$LINENO"; then :
12929 # Broken: success on invalid input.
12930continue
12931else
12932 # Passes both tests.
12933ac_preproc_ok=:
12934break
12935fi
12936rm -f conftest.err conftest.i conftest.$ac_ext
12937
12938done
12939# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12940rm -f conftest.i conftest.err conftest.$ac_ext
12941if $ac_preproc_ok; then :
12942 break
12943fi
12944
12945 done
12946 ac_cv_prog_CXXCPP=$CXXCPP
12947
12948fi
12949 CXXCPP=$ac_cv_prog_CXXCPP
12950else
12951 ac_cv_prog_CXXCPP=$CXXCPP
12952fi
12953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12954$as_echo "$CXXCPP" >&6; }
12955ac_preproc_ok=false
12956for ac_cxx_preproc_warn_flag in '' yes
12957do
12958 # Use a header file that comes with gcc, so configuring glibc
12959 # with a fresh cross-compiler works.
12960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12961 # <limits.h> exists even on freestanding compilers.
12962 # On the NeXT, cc -E runs the code through the compiler's parser,
12963 # not just through cpp. "Syntax error" is here to catch this case.
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965/* end confdefs.h. */
12966#ifdef __STDC__
12967# include <limits.h>
12968#else
12969# include <assert.h>
12970#endif
12971 Syntax error
12972_ACEOF
12973if ac_fn_cxx_try_cpp "$LINENO"; then :
12974
12975else
12976 # Broken: fails on valid input.
12977continue
12978fi
12979rm -f conftest.err conftest.i conftest.$ac_ext
12980
12981 # OK, works on sane cases. Now check whether nonexistent headers
12982 # can be detected and how.
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984/* end confdefs.h. */
12985#include <ac_nonexistent.h>
12986_ACEOF
12987if ac_fn_cxx_try_cpp "$LINENO"; then :
12988 # Broken: success on invalid input.
12989continue
12990else
12991 # Passes both tests.
12992ac_preproc_ok=:
12993break
12994fi
12995rm -f conftest.err conftest.i conftest.$ac_ext
12996
12997done
12998# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12999rm -f conftest.i conftest.err conftest.$ac_ext
13000if $ac_preproc_ok; then :
13001
13002else
13003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13005as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13006See \`config.log' for more details" "$LINENO" 5; }
13007fi
13008
13009ac_ext=c
13010ac_cpp='$CPP $CPPFLAGS'
13011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13013ac_compiler_gnu=$ac_cv_c_compiler_gnu
13014
13015else
13016 _lt_caught_CXX_error=yes
13017fi
13018
13019ac_ext=cpp
13020ac_cpp='$CXXCPP $CPPFLAGS'
13021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13024
13025archive_cmds_need_lc_CXX=no
13026allow_undefined_flag_CXX=
13027always_export_symbols_CXX=no
13028archive_expsym_cmds_CXX=
13029compiler_needs_object_CXX=no
13030export_dynamic_flag_spec_CXX=
13031hardcode_direct_CXX=no
13032hardcode_direct_absolute_CXX=no
13033hardcode_libdir_flag_spec_CXX=
13034hardcode_libdir_separator_CXX=
13035hardcode_minus_L_CXX=no
13036hardcode_shlibpath_var_CXX=unsupported
13037hardcode_automatic_CXX=no
13038inherit_rpath_CXX=no
13039module_cmds_CXX=
13040module_expsym_cmds_CXX=
13041link_all_deplibs_CXX=unknown
13042old_archive_cmds_CXX=$old_archive_cmds
13043reload_flag_CXX=$reload_flag
13044reload_cmds_CXX=$reload_cmds
13045no_undefined_flag_CXX=
13046whole_archive_flag_spec_CXX=
13047enable_shared_with_static_runtimes_CXX=no
13048
13049# Source file extension for C++ test sources.
13050ac_ext=cpp
13051
13052# Object file extension for compiled C++ test sources.
13053objext=o
13054objext_CXX=$objext
13055
13056# No sense in running all these tests if we already determined that
13057# the CXX compiler isn't working. Some variables (like enable_shared)
13058# are currently assumed to apply to all compilers on this platform,
13059# and will be corrupted by setting them based on a non-working compiler.
13060if test yes != "$_lt_caught_CXX_error"; then
13061 # Code to be used in simple compile tests
13062 lt_simple_compile_test_code="int some_variable = 0;"
13063
13064 # Code to be used in simple link tests
13065 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13066
13067 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13068
13069
13070
13071
13072
13073
13074# If no C compiler was specified, use CC.
13075LTCC=${LTCC-"$CC"}
13076
13077# If no C compiler flags were specified, use CFLAGS.
13078LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13079
13080# Allow CC to be a program name with arguments.
13081compiler=$CC
13082
13083
13084 # save warnings/boilerplate of simple test code
13085 ac_outfile=conftest.$ac_objext
13086echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13087eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13088_lt_compiler_boilerplate=`cat conftest.err`
13089$RM conftest*
13090
13091 ac_outfile=conftest.$ac_objext
13092echo "$lt_simple_link_test_code" >conftest.$ac_ext
13093eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13094_lt_linker_boilerplate=`cat conftest.err`
13095$RM -r conftest*
13096
13097
13098 # Allow CC to be a program name with arguments.
13099 lt_save_CC=$CC
13100 lt_save_CFLAGS=$CFLAGS
13101 lt_save_LD=$LD
13102 lt_save_GCC=$GCC
13103 GCC=$GXX
13104 lt_save_with_gnu_ld=$with_gnu_ld
13105 lt_save_path_LD=$lt_cv_path_LD
13106 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13107 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13108 else
13109 $as_unset lt_cv_prog_gnu_ld
13110 fi
13111 if test -n "${lt_cv_path_LDCXX+set}"; then
13112 lt_cv_path_LD=$lt_cv_path_LDCXX
13113 else
13114 $as_unset lt_cv_path_LD
13115 fi
13116 test -z "${LDCXX+set}" || LD=$LDCXX
13117 CC=${CXX-"c++"}
13118 CFLAGS=$CXXFLAGS
13119 compiler=$CC
13120 compiler_CXX=$CC
13121 func_cc_basename $compiler
13122cc_basename=$func_cc_basename_result
13123
13124
13125 if test -n "$compiler"; then
13126 # We don't want -fno-exception when compiling C++ code, so set the
13127 # no_builtin_flag separately
13128 if test yes = "$GXX"; then
13129 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13130 else
13131 lt_prog_compiler_no_builtin_flag_CXX=
13132 fi
13133
13134 if test yes = "$GXX"; then
13135 # Set up default GNU C++ configuration
13136
13137
13138
13139# Check whether --with-gnu-ld was given.
13140if test "${with_gnu_ld+set}" = set; then :
13141 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13142else
13143 with_gnu_ld=no
13144fi
13145
13146ac_prog=ld
13147if test yes = "$GCC"; then
13148 # Check if gcc -print-prog-name=ld gives a path.
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13150$as_echo_n "checking for ld used by $CC... " >&6; }
13151 case $host in
13152 *-*-mingw*)
13153 # gcc leaves a trailing carriage return, which upsets mingw
13154 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13155 *)
13156 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13157 esac
13158 case $ac_prog in
13159 # Accept absolute paths.
13160 [\\/]* | ?:[\\/]*)
13161 re_direlt='/[^/][^/]*/\.\./'
13162 # Canonicalize the pathname of ld
13163 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13164 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13165 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13166 done
13167 test -z "$LD" && LD=$ac_prog
13168 ;;
13169 "")
13170 # If it fails, then pretend we aren't using GCC.
13171 ac_prog=ld
13172 ;;
13173 *)
13174 # If it is relative, then search for the first ld in PATH.
13175 with_gnu_ld=unknown
13176 ;;
13177 esac
13178elif test yes = "$with_gnu_ld"; then
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13180$as_echo_n "checking for GNU ld... " >&6; }
13181else
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13183$as_echo_n "checking for non-GNU ld... " >&6; }
13184fi
13185if ${lt_cv_path_LD+:} false; then :
13186 $as_echo_n "(cached) " >&6
13187else
13188 if test -z "$LD"; then
13189 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13190 for ac_dir in $PATH; do
13191 IFS=$lt_save_ifs
13192 test -z "$ac_dir" && ac_dir=.
13193 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13194 lt_cv_path_LD=$ac_dir/$ac_prog
13195 # Check to see if the program is GNU ld. I'd rather use --version,
13196 # but apparently some variants of GNU ld only accept -v.
13197 # Break only if it was the GNU/non-GNU ld that we prefer.
13198 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13199 *GNU* | *'with BFD'*)
13200 test no != "$with_gnu_ld" && break
13201 ;;
13202 *)
13203 test yes != "$with_gnu_ld" && break
13204 ;;
13205 esac
13206 fi
13207 done
13208 IFS=$lt_save_ifs
13209else
13210 lt_cv_path_LD=$LD # Let the user override the test with a path.
13211fi
13212fi
13213
13214LD=$lt_cv_path_LD
13215if test -n "$LD"; then
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13217$as_echo "$LD" >&6; }
13218else
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220$as_echo "no" >&6; }
13221fi
13222test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13224$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13225if ${lt_cv_prog_gnu_ld+:} false; then :
13226 $as_echo_n "(cached) " >&6
13227else
13228 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13229case `$LD -v 2>&1 </dev/null` in
13230*GNU* | *'with BFD'*)
13231 lt_cv_prog_gnu_ld=yes
13232 ;;
13233*)
13234 lt_cv_prog_gnu_ld=no
13235 ;;
13236esac
13237fi
13238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13239$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13240with_gnu_ld=$lt_cv_prog_gnu_ld
13241
13242
13243
13244
13245
13246
13247
13248 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13249 # archiving commands below assume that GNU ld is being used.
13250 if test yes = "$with_gnu_ld"; then
13251 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13252 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13253
13254 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13255 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13256
13257 # If archive_cmds runs LD, not CC, wlarc should be empty
13258 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13259 # investigate it a little bit more. (MM)
13260 wlarc='$wl'
13261
13262 # ancient GNU ld didn't support --whole-archive et. al.
13263 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13264 $GREP 'no-whole-archive' > /dev/null; then
13265 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13266 else
13267 whole_archive_flag_spec_CXX=
13268 fi
13269 else
13270 with_gnu_ld=no
13271 wlarc=
13272
13273 # A generic and very simple default shared library creation
13274 # command for GNU C++ for the case where it uses the native
13275 # linker, instead of GNU ld. If possible, this setting should
13276 # overridden to take advantage of the native linker features on
13277 # the platform it is being used on.
13278 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13279 fi
13280
13281 # Commands to make compiler produce verbose output that lists
13282 # what "hidden" libraries, object files and flags are used when
13283 # linking a shared library.
13284 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13285
13286 else
13287 GXX=no
13288 with_gnu_ld=no
13289 wlarc=
13290 fi
13291
13292 # PORTME: fill in a description of your system's C++ link characteristics
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13294$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13295 ld_shlibs_CXX=yes
13296 case $host_os in
13297 aix3*)
13298 # FIXME: insert proper C++ library support
13299 ld_shlibs_CXX=no
13300 ;;
13301 aix[4-9]*)
13302 if test ia64 = "$host_cpu"; then
13303 # On IA64, the linker does run time linking by default, so we don't
13304 # have to do anything special.
13305 aix_use_runtimelinking=no
13306 exp_sym_flag='-Bexport'
13307 no_entry_flag=
13308 else
13309 aix_use_runtimelinking=no
13310
13311 # Test if we are trying to use run time linking or normal
13312 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13313 # have runtime linking enabled, and use it for executables.
13314 # For shared libraries, we enable/disable runtime linking
13315 # depending on the kind of the shared library created -
13316 # when "with_aix_soname,aix_use_runtimelinking" is:
13317 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13318 # "aix,yes" lib.so shared, rtl:yes, for executables
13319 # lib.a static archive
13320 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13321 # lib.a(lib.so.V) shared, rtl:no, for executables
13322 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13323 # lib.a(lib.so.V) shared, rtl:no
13324 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13325 # lib.a static archive
13326 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13327 for ld_flag in $LDFLAGS; do
13328 case $ld_flag in
13329 *-brtl*)
13330 aix_use_runtimelinking=yes
13331 break
13332 ;;
13333 esac
13334 done
13335 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13336 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13337 # so we don't have lib.a shared libs to link our executables.
13338 # We have to force runtime linking in this case.
13339 aix_use_runtimelinking=yes
13340 LDFLAGS="$LDFLAGS -Wl,-brtl"
13341 fi
13342 ;;
13343 esac
13344
13345 exp_sym_flag='-bexport'
13346 no_entry_flag='-bnoentry'
13347 fi
13348
13349 # When large executables or shared objects are built, AIX ld can
13350 # have problems creating the table of contents. If linking a library
13351 # or program results in "error TOC overflow" add -mminimal-toc to
13352 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13353 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13354
13355 archive_cmds_CXX=''
13356 hardcode_direct_CXX=yes
13357 hardcode_direct_absolute_CXX=yes
13358 hardcode_libdir_separator_CXX=':'
13359 link_all_deplibs_CXX=yes
13360 file_list_spec_CXX='$wl-f,'
13361 case $with_aix_soname,$aix_use_runtimelinking in
13362 aix,*) ;; # no import file
13363 svr4,* | *,yes) # use import file
13364 # The Import File defines what to hardcode.
13365 hardcode_direct_CXX=no
13366 hardcode_direct_absolute_CXX=no
13367 ;;
13368 esac
13369
13370 if test yes = "$GXX"; then
13371 case $host_os in aix4.[012]|aix4.[012].*)
13372 # We only want to do this on AIX 4.2 and lower, the check
13373 # below for broken collect2 doesn't work under 4.3+
13374 collect2name=`$CC -print-prog-name=collect2`
13375 if test -f "$collect2name" &&
13376 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13377 then
13378 # We have reworked collect2
13379 :
13380 else
13381 # We have old collect2
13382 hardcode_direct_CXX=unsupported
13383 # It fails to find uninstalled libraries when the uninstalled
13384 # path is not listed in the libpath. Setting hardcode_minus_L
13385 # to unsupported forces relinking
13386 hardcode_minus_L_CXX=yes
13387 hardcode_libdir_flag_spec_CXX='-L$libdir'
13388 hardcode_libdir_separator_CXX=
13389 fi
13390 esac
13391 shared_flag='-shared'
13392 if test yes = "$aix_use_runtimelinking"; then
13393 shared_flag=$shared_flag' $wl-G'
13394 fi
13395 # Need to ensure runtime linking is disabled for the traditional
13396 # shared library, or the linker may eventually find shared libraries
13397 # /with/ Import File - we do not want to mix them.
13398 shared_flag_aix='-shared'
13399 shared_flag_svr4='-shared $wl-G'
13400 else
13401 # not using gcc
13402 if test ia64 = "$host_cpu"; then
13403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13404 # chokes on -Wl,-G. The following line is correct:
13405 shared_flag='-G'
13406 else
13407 if test yes = "$aix_use_runtimelinking"; then
13408 shared_flag='$wl-G'
13409 else
13410 shared_flag='$wl-bM:SRE'
13411 fi
13412 shared_flag_aix='$wl-bM:SRE'
13413 shared_flag_svr4='$wl-G'
13414 fi
13415 fi
13416
13417 export_dynamic_flag_spec_CXX='$wl-bexpall'
13418 # It seems that -bexpall does not export symbols beginning with
13419 # underscore (_), so it is better to generate a list of symbols to
13420 # export.
13421 always_export_symbols_CXX=yes
13422 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13423 # Warning - without using the other runtime loading flags (-brtl),
13424 # -berok will link without error, but may produce a broken library.
13425 # The "-G" linker flag allows undefined symbols.
13426 no_undefined_flag_CXX='-bernotok'
13427 # Determine the default libpath from the value encoded in an empty
13428 # executable.
13429 if test set = "${lt_cv_aix_libpath+set}"; then
13430 aix_libpath=$lt_cv_aix_libpath
13431else
13432 if ${lt_cv_aix_libpath__CXX+:} false; then :
13433 $as_echo_n "(cached) " >&6
13434else
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436/* end confdefs.h. */
13437
13438int
13439main ()
13440{
13441
13442 ;
13443 return 0;
13444}
13445_ACEOF
13446if ac_fn_cxx_try_link "$LINENO"; then :
13447
13448 lt_aix_libpath_sed='
13449 /Import File Strings/,/^$/ {
13450 /^0/ {
13451 s/^0 *\([^ ]*\) *$/\1/
13452 p
13453 }
13454 }'
13455 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13456 # Check for a 64-bit object if we didn't find anything.
13457 if test -z "$lt_cv_aix_libpath__CXX"; then
13458 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13459 fi
13460fi
13461rm -f core conftest.err conftest.$ac_objext \
13462 conftest$ac_exeext conftest.$ac_ext
13463 if test -z "$lt_cv_aix_libpath__CXX"; then
13464 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13465 fi
13466
13467fi
13468
13469 aix_libpath=$lt_cv_aix_libpath__CXX
13470fi
13471
13472 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13473
13474 archive_expsym_cmds_CXX='$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
13475 else
13476 if test ia64 = "$host_cpu"; then
13477 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13478 allow_undefined_flag_CXX="-z nodefs"
13479 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
13480 else
13481 # Determine the default libpath from the value encoded in an
13482 # empty executable.
13483 if test set = "${lt_cv_aix_libpath+set}"; then
13484 aix_libpath=$lt_cv_aix_libpath
13485else
13486 if ${lt_cv_aix_libpath__CXX+:} false; then :
13487 $as_echo_n "(cached) " >&6
13488else
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490/* end confdefs.h. */
13491
13492int
13493main ()
13494{
13495
13496 ;
13497 return 0;
13498}
13499_ACEOF
13500if ac_fn_cxx_try_link "$LINENO"; then :
13501
13502 lt_aix_libpath_sed='
13503 /Import File Strings/,/^$/ {
13504 /^0/ {
13505 s/^0 *\([^ ]*\) *$/\1/
13506 p
13507 }
13508 }'
13509 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13510 # Check for a 64-bit object if we didn't find anything.
13511 if test -z "$lt_cv_aix_libpath__CXX"; then
13512 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13513 fi
13514fi
13515rm -f core conftest.err conftest.$ac_objext \
13516 conftest$ac_exeext conftest.$ac_ext
13517 if test -z "$lt_cv_aix_libpath__CXX"; then
13518 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13519 fi
13520
13521fi
13522
13523 aix_libpath=$lt_cv_aix_libpath__CXX
13524fi
13525
13526 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13527 # Warning - without using the other run time loading flags,
13528 # -berok will link without error, but may produce a broken library.
13529 no_undefined_flag_CXX=' $wl-bernotok'
13530 allow_undefined_flag_CXX=' $wl-berok'
13531 if test yes = "$with_gnu_ld"; then
13532 # We only use this code for GNU lds that support --whole-archive.
13533 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13534 else
13535 # Exported symbols can be pulled into shared objects from archives
13536 whole_archive_flag_spec_CXX='$convenience'
13537 fi
13538 archive_cmds_need_lc_CXX=yes
13539 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13540 # -brtl affects multiple linker settings, -berok does not and is overridden later
13541 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13542 if test svr4 != "$with_aix_soname"; then
13543 # This is similar to how AIX traditionally builds its shared
13544 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13545 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
13546 fi
13547 if test aix != "$with_aix_soname"; then
13548 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
13549 else
13550 # used by -dlpreopen to get the symbols
13551 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13552 fi
13553 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13554 fi
13555 fi
13556 ;;
13557
13558 beos*)
13559 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13560 allow_undefined_flag_CXX=unsupported
13561 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13562 # support --undefined. This deserves some investigation. FIXME
13563 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13564 else
13565 ld_shlibs_CXX=no
13566 fi
13567 ;;
13568
13569 chorus*)
13570 case $cc_basename in
13571 *)
13572 # FIXME: insert proper C++ library support
13573 ld_shlibs_CXX=no
13574 ;;
13575 esac
13576 ;;
13577
13578 cygwin* | mingw* | pw32* | cegcc*)
13579 case $GXX,$cc_basename in
13580 ,cl* | no,cl*)
13581 # Native MSVC
13582 # hardcode_libdir_flag_spec is actually meaningless, as there is
13583 # no search path for DLLs.
13584 hardcode_libdir_flag_spec_CXX=' '
13585 allow_undefined_flag_CXX=unsupported
13586 always_export_symbols_CXX=yes
13587 file_list_spec_CXX='@'
13588 # Tell ltmain to make .lib files, not .a files.
13589 libext=lib
13590 # Tell ltmain to make .dll files, not .so files.
13591 shrext_cmds=.dll
13592 # FIXME: Setting linknames here is a bad hack.
13593 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13594 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13595 cp "$export_symbols" "$output_objdir/$soname.def";
13596 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13597 else
13598 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13599 fi~
13600 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13601 linknames='
13602 # The linker will not automatically build a static lib if we build a DLL.
13603 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13604 enable_shared_with_static_runtimes_CXX=yes
13605 # Don't use ranlib
13606 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13607 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13608 lt_tool_outputfile="@TOOL_OUTPUT@"~
13609 case $lt_outputfile in
13610 *.exe|*.EXE) ;;
13611 *)
13612 lt_outputfile=$lt_outputfile.exe
13613 lt_tool_outputfile=$lt_tool_outputfile.exe
13614 ;;
13615 esac~
13616 func_to_tool_file "$lt_outputfile"~
13617 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13618 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13619 $RM "$lt_outputfile.manifest";
13620 fi'
13621 ;;
13622 *)
13623 # g++
13624 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13625 # as there is no search path for DLLs.
13626 hardcode_libdir_flag_spec_CXX='-L$libdir'
13627 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13628 allow_undefined_flag_CXX=unsupported
13629 always_export_symbols_CXX=no
13630 enable_shared_with_static_runtimes_CXX=yes
13631
13632 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13633 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13634 # If the export-symbols file already is a .def file, use it as
13635 # is; otherwise, prepend EXPORTS...
13636 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13637 cp $export_symbols $output_objdir/$soname.def;
13638 else
13639 echo EXPORTS > $output_objdir/$soname.def;
13640 cat $export_symbols >> $output_objdir/$soname.def;
13641 fi~
13642 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13643 else
13644 ld_shlibs_CXX=no
13645 fi
13646 ;;
13647 esac
13648 ;;
13649 darwin* | rhapsody*)
13650
13651
13652 archive_cmds_need_lc_CXX=no
13653 hardcode_direct_CXX=no
13654 hardcode_automatic_CXX=yes
13655 hardcode_shlibpath_var_CXX=unsupported
13656 if test yes = "$lt_cv_ld_force_load"; then
13657 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13658
13659 else
13660 whole_archive_flag_spec_CXX=''
13661 fi
13662 link_all_deplibs_CXX=yes
13663 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13664 case $cc_basename in
13665 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13666 *) _lt_dar_can_shared=$GCC ;;
13667 esac
13668 if test yes = "$_lt_dar_can_shared"; then
13669 output_verbose_link_cmd=func_echo_all
13670 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13671 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13672 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
13673 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
13674 if test yes != "$lt_cv_apple_cc_single_mod"; then
13675 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
13676 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
13677 fi
13678
13679 else
13680 ld_shlibs_CXX=no
13681 fi
13682
13683 ;;
13684
13685 os2*)
13686 hardcode_libdir_flag_spec_CXX='-L$libdir'
13687 hardcode_minus_L_CXX=yes
13688 allow_undefined_flag_CXX=unsupported
13689 shrext_cmds=.dll
13690 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13691 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13692 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13693 $ECHO EXPORTS >> $output_objdir/$libname.def~
13694 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13695 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13696 emximp -o $lib $output_objdir/$libname.def'
13697 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13698 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13699 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13700 $ECHO EXPORTS >> $output_objdir/$libname.def~
13701 prefix_cmds="$SED"~
13702 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13703 prefix_cmds="$prefix_cmds -e 1d";
13704 fi~
13705 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13706 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13707 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13708 emximp -o $lib $output_objdir/$libname.def'
13709 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13710 enable_shared_with_static_runtimes_CXX=yes
13711 ;;
13712
13713 dgux*)
13714 case $cc_basename in
13715 ec++*)
13716 # FIXME: insert proper C++ library support
13717 ld_shlibs_CXX=no
13718 ;;
13719 ghcx*)
13720 # Green Hills C++ Compiler
13721 # FIXME: insert proper C++ library support
13722 ld_shlibs_CXX=no
13723 ;;
13724 *)
13725 # FIXME: insert proper C++ library support
13726 ld_shlibs_CXX=no
13727 ;;
13728 esac
13729 ;;
13730
13731 freebsd2.*)
13732 # C++ shared libraries reported to be fairly broken before
13733 # switch to ELF
13734 ld_shlibs_CXX=no
13735 ;;
13736
13737 freebsd-elf*)
13738 archive_cmds_need_lc_CXX=no
13739 ;;
13740
13741 freebsd* | dragonfly*)
13742 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13743 # conventions
13744 ld_shlibs_CXX=yes
13745 ;;
13746
13747 haiku*)
13748 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13749 link_all_deplibs_CXX=yes
13750 ;;
13751
13752 hpux9*)
13753 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13754 hardcode_libdir_separator_CXX=:
13755 export_dynamic_flag_spec_CXX='$wl-E'
13756 hardcode_direct_CXX=yes
13757 hardcode_minus_L_CXX=yes # Not in the search PATH,
13758 # but as the default
13759 # location of the library.
13760
13761 case $cc_basename in
13762 CC*)
13763 # FIXME: insert proper C++ library support
13764 ld_shlibs_CXX=no
13765 ;;
13766 aCC*)
13767 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13768 # Commands to make compiler produce verbose output that lists
13769 # what "hidden" libraries, object files and flags are used when
13770 # linking a shared library.
13771 #
13772 # There doesn't appear to be a way to prevent this compiler from
13773 # explicitly linking system object files so we need to strip them
13774 # from the output so that they don't get included in the library
13775 # dependencies.
13776 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13777 ;;
13778 *)
13779 if test yes = "$GXX"; then
13780 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13781 else
13782 # FIXME: insert proper C++ library support
13783 ld_shlibs_CXX=no
13784 fi
13785 ;;
13786 esac
13787 ;;
13788
13789 hpux10*|hpux11*)
13790 if test no = "$with_gnu_ld"; then
13791 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13792 hardcode_libdir_separator_CXX=:
13793
13794 case $host_cpu in
13795 hppa*64*|ia64*)
13796 ;;
13797 *)
13798 export_dynamic_flag_spec_CXX='$wl-E'
13799 ;;
13800 esac
13801 fi
13802 case $host_cpu in
13803 hppa*64*|ia64*)
13804 hardcode_direct_CXX=no
13805 hardcode_shlibpath_var_CXX=no
13806 ;;
13807 *)
13808 hardcode_direct_CXX=yes
13809 hardcode_direct_absolute_CXX=yes
13810 hardcode_minus_L_CXX=yes # Not in the search PATH,
13811 # but as the default
13812 # location of the library.
13813 ;;
13814 esac
13815
13816 case $cc_basename in
13817 CC*)
13818 # FIXME: insert proper C++ library support
13819 ld_shlibs_CXX=no
13820 ;;
13821 aCC*)
13822 case $host_cpu in
13823 hppa*64*)
13824 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13825 ;;
13826 ia64*)
13827 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13828 ;;
13829 *)
13830 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13831 ;;
13832 esac
13833 # Commands to make compiler produce verbose output that lists
13834 # what "hidden" libraries, object files and flags are used when
13835 # linking a shared library.
13836 #
13837 # There doesn't appear to be a way to prevent this compiler from
13838 # explicitly linking system object files so we need to strip them
13839 # from the output so that they don't get included in the library
13840 # dependencies.
13841 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13842 ;;
13843 *)
13844 if test yes = "$GXX"; then
13845 if test no = "$with_gnu_ld"; then
13846 case $host_cpu in
13847 hppa*64*)
13848 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13849 ;;
13850 ia64*)
13851 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13852 ;;
13853 *)
13854 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13855 ;;
13856 esac
13857 fi
13858 else
13859 # FIXME: insert proper C++ library support
13860 ld_shlibs_CXX=no
13861 fi
13862 ;;
13863 esac
13864 ;;
13865
13866 interix[3-9]*)
13867 hardcode_direct_CXX=no
13868 hardcode_shlibpath_var_CXX=no
13869 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13870 export_dynamic_flag_spec_CXX='$wl-E'
13871 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13872 # Instead, shared libraries are loaded at an image base (0x10000000 by
13873 # default) and relocated if they conflict, which is a slow very memory
13874 # consuming and fragmenting process. To avoid this, we pick a random,
13875 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13876 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13877 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13878 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13879 ;;
13880 irix5* | irix6*)
13881 case $cc_basename in
13882 CC*)
13883 # SGI C++
13884 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13885
13886 # Archives containing C++ object files must be created using
13887 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13888 # necessary to make sure instantiated templates are included
13889 # in the archive.
13890 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13891 ;;
13892 *)
13893 if test yes = "$GXX"; then
13894 if test no = "$with_gnu_ld"; then
13895 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13896 else
13897 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
13898 fi
13899 fi
13900 link_all_deplibs_CXX=yes
13901 ;;
13902 esac
13903 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13904 hardcode_libdir_separator_CXX=:
13905 inherit_rpath_CXX=yes
13906 ;;
13907
13908 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13909 case $cc_basename in
13910 KCC*)
13911 # Kuck and Associates, Inc. (KAI) C++ Compiler
13912
13913 # KCC will only create a shared library if the output file
13914 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13915 # to its proper name (with version) after linking.
13916 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13917 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
13918 # Commands to make compiler produce verbose output that lists
13919 # what "hidden" libraries, object files and flags are used when
13920 # linking a shared library.
13921 #
13922 # There doesn't appear to be a way to prevent this compiler from
13923 # explicitly linking system object files so we need to strip them
13924 # from the output so that they don't get included in the library
13925 # dependencies.
13926 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13927
13928 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13929 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13930
13931 # Archives containing C++ object files must be created using
13932 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13933 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13934 ;;
13935 icpc* | ecpc* )
13936 # Intel C++
13937 with_gnu_ld=yes
13938 # version 8.0 and above of icpc choke on multiply defined symbols
13939 # if we add $predep_objects and $postdep_objects, however 7.1 and
13940 # earlier do not add the objects themselves.
13941 case `$CC -V 2>&1` in
13942 *"Version 7."*)
13943 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13944 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13945 ;;
13946 *) # Version 8.0 or newer
13947 tmp_idyn=
13948 case $host_cpu in
13949 ia64*) tmp_idyn=' -i_dynamic';;
13950 esac
13951 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13952 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13953 ;;
13954 esac
13955 archive_cmds_need_lc_CXX=no
13956 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13957 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13958 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13959 ;;
13960 pgCC* | pgcpp*)
13961 # Portland Group C++ compiler
13962 case `$CC -V` in
13963 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13964 prelink_cmds_CXX='tpldir=Template.dir~
13965 rm -rf $tpldir~
13966 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13967 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13968 old_archive_cmds_CXX='tpldir=Template.dir~
13969 rm -rf $tpldir~
13970 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13971 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13972 $RANLIB $oldlib'
13973 archive_cmds_CXX='tpldir=Template.dir~
13974 rm -rf $tpldir~
13975 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13976 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13977 archive_expsym_cmds_CXX='tpldir=Template.dir~
13978 rm -rf $tpldir~
13979 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13980 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13981 ;;
13982 *) # Version 6 and above use weak symbols
13983 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13984 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13985 ;;
13986 esac
13987
13988 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13989 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13990 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
13991 ;;
13992 cxx*)
13993 # Compaq C++
13994 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13995 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
13996
13997 runpath_var=LD_RUN_PATH
13998 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13999 hardcode_libdir_separator_CXX=:
14000
14001 # Commands to make compiler produce verbose output that lists
14002 # what "hidden" libraries, object files and flags are used when
14003 # linking a shared library.
14004 #
14005 # There doesn't appear to be a way to prevent this compiler from
14006 # explicitly linking system object files so we need to strip them
14007 # from the output so that they don't get included in the library
14008 # dependencies.
14009 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14010 ;;
14011 xl* | mpixl* | bgxl*)
14012 # IBM XL 8.0 on PPC, with GNU ld
14013 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14014 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14015 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14016 if test yes = "$supports_anon_versioning"; then
14017 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14018 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14019 echo "local: *; };" >> $output_objdir/$libname.ver~
14020 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14021 fi
14022 ;;
14023 *)
14024 case `$CC -V 2>&1 | sed 5q` in
14025 *Sun\ C*)
14026 # Sun C++ 5.9
14027 no_undefined_flag_CXX=' -zdefs'
14028 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14029 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
14030 hardcode_libdir_flag_spec_CXX='-R$libdir'
14031 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14032 compiler_needs_object_CXX=yes
14033
14034 # Not sure whether something based on
14035 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14036 # would be better.
14037 output_verbose_link_cmd='func_echo_all'
14038
14039 # Archives containing C++ object files must be created using
14040 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14041 # necessary to make sure instantiated templates are included
14042 # in the archive.
14043 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14044 ;;
14045 esac
14046 ;;
14047 esac
14048 ;;
14049
14050 lynxos*)
14051 # FIXME: insert proper C++ library support
14052 ld_shlibs_CXX=no
14053 ;;
14054
14055 m88k*)
14056 # FIXME: insert proper C++ library support
14057 ld_shlibs_CXX=no
14058 ;;
14059
14060 mvs*)
14061 case $cc_basename in
14062 cxx*)
14063 # FIXME: insert proper C++ library support
14064 ld_shlibs_CXX=no
14065 ;;
14066 *)
14067 # FIXME: insert proper C++ library support
14068 ld_shlibs_CXX=no
14069 ;;
14070 esac
14071 ;;
14072
14073 netbsd*)
14074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14075 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14076 wlarc=
14077 hardcode_libdir_flag_spec_CXX='-R$libdir'
14078 hardcode_direct_CXX=yes
14079 hardcode_shlibpath_var_CXX=no
14080 fi
14081 # Workaround some broken pre-1.5 toolchains
14082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14083 ;;
14084
14085 *nto* | *qnx*)
14086 ld_shlibs_CXX=yes
14087 ;;
14088
14089 openbsd* | bitrig*)
14090 if test -f /usr/libexec/ld.so; then
14091 hardcode_direct_CXX=yes
14092 hardcode_shlibpath_var_CXX=no
14093 hardcode_direct_absolute_CXX=yes
14094 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14095 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14097 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14098 export_dynamic_flag_spec_CXX='$wl-E'
14099 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14100 fi
14101 output_verbose_link_cmd=func_echo_all
14102 else
14103 ld_shlibs_CXX=no
14104 fi
14105 ;;
14106
14107 osf3* | osf4* | osf5*)
14108 case $cc_basename in
14109 KCC*)
14110 # Kuck and Associates, Inc. (KAI) C++ Compiler
14111
14112 # KCC will only create a shared library if the output file
14113 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14114 # to its proper name (with version) after linking.
14115 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14116
14117 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14118 hardcode_libdir_separator_CXX=:
14119
14120 # Archives containing C++ object files must be created using
14121 # the KAI C++ compiler.
14122 case $host in
14123 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14124 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14125 esac
14126 ;;
14127 RCC*)
14128 # Rational C++ 2.4.1
14129 # FIXME: insert proper C++ library support
14130 ld_shlibs_CXX=no
14131 ;;
14132 cxx*)
14133 case $host in
14134 osf3*)
14135 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14136 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14137 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14138 ;;
14139 *)
14140 allow_undefined_flag_CXX=' -expect_unresolved \*'
14141 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14142 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14143 echo "-hidden">> $lib.exp~
14144 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
14145 $RM $lib.exp'
14146 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14147 ;;
14148 esac
14149
14150 hardcode_libdir_separator_CXX=:
14151
14152 # Commands to make compiler produce verbose output that lists
14153 # what "hidden" libraries, object files and flags are used when
14154 # linking a shared library.
14155 #
14156 # There doesn't appear to be a way to prevent this compiler from
14157 # explicitly linking system object files so we need to strip them
14158 # from the output so that they don't get included in the library
14159 # dependencies.
14160 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14161 ;;
14162 *)
14163 if test yes,no = "$GXX,$with_gnu_ld"; then
14164 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14165 case $host in
14166 osf3*)
14167 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14168 ;;
14169 *)
14170 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14171 ;;
14172 esac
14173
14174 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14175 hardcode_libdir_separator_CXX=:
14176
14177 # Commands to make compiler produce verbose output that lists
14178 # what "hidden" libraries, object files and flags are used when
14179 # linking a shared library.
14180 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14181
14182 else
14183 # FIXME: insert proper C++ library support
14184 ld_shlibs_CXX=no
14185 fi
14186 ;;
14187 esac
14188 ;;
14189
14190 psos*)
14191 # FIXME: insert proper C++ library support
14192 ld_shlibs_CXX=no
14193 ;;
14194
14195 sunos4*)
14196 case $cc_basename in
14197 CC*)
14198 # Sun C++ 4.x
14199 # FIXME: insert proper C++ library support
14200 ld_shlibs_CXX=no
14201 ;;
14202 lcc*)
14203 # Lucid
14204 # FIXME: insert proper C++ library support
14205 ld_shlibs_CXX=no
14206 ;;
14207 *)
14208 # FIXME: insert proper C++ library support
14209 ld_shlibs_CXX=no
14210 ;;
14211 esac
14212 ;;
14213
14214 solaris*)
14215 case $cc_basename in
14216 CC* | sunCC*)
14217 # Sun C++ 4.2, 5.x and Centerline C++
14218 archive_cmds_need_lc_CXX=yes
14219 no_undefined_flag_CXX=' -zdefs'
14220 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14221 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14222 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14223
14224 hardcode_libdir_flag_spec_CXX='-R$libdir'
14225 hardcode_shlibpath_var_CXX=no
14226 case $host_os in
14227 solaris2.[0-5] | solaris2.[0-5].*) ;;
14228 *)
14229 # The compiler driver will combine and reorder linker options,
14230 # but understands '-z linker_flag'.
14231 # Supported since Solaris 2.6 (maybe 2.5.1?)
14232 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14233 ;;
14234 esac
14235 link_all_deplibs_CXX=yes
14236
14237 output_verbose_link_cmd='func_echo_all'
14238
14239 # Archives containing C++ object files must be created using
14240 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14241 # necessary to make sure instantiated templates are included
14242 # in the archive.
14243 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14244 ;;
14245 gcx*)
14246 # Green Hills C++ Compiler
14247 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14248
14249 # The C++ compiler must be used to create the archive.
14250 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14251 ;;
14252 *)
14253 # GNU C++ compiler with Solaris linker
14254 if test yes,no = "$GXX,$with_gnu_ld"; then
14255 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14256 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14257 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14258 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14259 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14260
14261 # Commands to make compiler produce verbose output that lists
14262 # what "hidden" libraries, object files and flags are used when
14263 # linking a shared library.
14264 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14265 else
14266 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14267 # platform.
14268 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14269 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14270 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14271
14272 # Commands to make compiler produce verbose output that lists
14273 # what "hidden" libraries, object files and flags are used when
14274 # linking a shared library.
14275 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14276 fi
14277
14278 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14279 case $host_os in
14280 solaris2.[0-5] | solaris2.[0-5].*) ;;
14281 *)
14282 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14283 ;;
14284 esac
14285 fi
14286 ;;
14287 esac
14288 ;;
14289
14290 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14291 no_undefined_flag_CXX='$wl-z,text'
14292 archive_cmds_need_lc_CXX=no
14293 hardcode_shlibpath_var_CXX=no
14294 runpath_var='LD_RUN_PATH'
14295
14296 case $cc_basename in
14297 CC*)
14298 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14299 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14300 ;;
14301 *)
14302 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14303 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14304 ;;
14305 esac
14306 ;;
14307
14308 sysv5* | sco3.2v5* | sco5v6*)
14309 # Note: We CANNOT use -z defs as we might desire, because we do not
14310 # link with -lc, and that would cause any symbols used from libc to
14311 # always be unresolved, which means just about no library would
14312 # ever link correctly. If we're not using GNU ld we use -z text
14313 # though, which does catch some bad symbols but isn't as heavy-handed
14314 # as -z defs.
14315 no_undefined_flag_CXX='$wl-z,text'
14316 allow_undefined_flag_CXX='$wl-z,nodefs'
14317 archive_cmds_need_lc_CXX=no
14318 hardcode_shlibpath_var_CXX=no
14319 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14320 hardcode_libdir_separator_CXX=':'
14321 link_all_deplibs_CXX=yes
14322 export_dynamic_flag_spec_CXX='$wl-Bexport'
14323 runpath_var='LD_RUN_PATH'
14324
14325 case $cc_basename in
14326 CC*)
14327 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14328 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14329 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14330 '"$old_archive_cmds_CXX"
14331 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14332 '"$reload_cmds_CXX"
14333 ;;
14334 *)
14335 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14336 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14337 ;;
14338 esac
14339 ;;
14340
14341 tandem*)
14342 case $cc_basename in
14343 NCC*)
14344 # NonStop-UX NCC 3.20
14345 # FIXME: insert proper C++ library support
14346 ld_shlibs_CXX=no
14347 ;;
14348 *)
14349 # FIXME: insert proper C++ library support
14350 ld_shlibs_CXX=no
14351 ;;
14352 esac
14353 ;;
14354
14355 vxworks*)
14356 # FIXME: insert proper C++ library support
14357 ld_shlibs_CXX=no
14358 ;;
14359
14360 *)
14361 # FIXME: insert proper C++ library support
14362 ld_shlibs_CXX=no
14363 ;;
14364 esac
14365
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14367$as_echo "$ld_shlibs_CXX" >&6; }
14368 test no = "$ld_shlibs_CXX" && can_build_shared=no
14369
14370 GCC_CXX=$GXX
14371 LD_CXX=$LD
14372
14373 ## CAVEAT EMPTOR:
14374 ## There is no encapsulation within the following macros, do not change
14375 ## the running order or otherwise move them around unless you know exactly
14376 ## what you are doing...
14377 # Dependencies to place before and after the object being linked:
14378predep_objects_CXX=
14379postdep_objects_CXX=
14380predeps_CXX=
14381postdeps_CXX=
14382compiler_lib_search_path_CXX=
14383
14384cat > conftest.$ac_ext <<_LT_EOF
14385class Foo
14386{
14387public:
14388 Foo (void) { a = 0; }
14389private:
14390 int a;
14391};
14392_LT_EOF
14393
14394
14395_lt_libdeps_save_CFLAGS=$CFLAGS
14396case "$CC $CFLAGS " in #(
14397*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14398*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14399*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14400esac
14401
14402if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14403 (eval $ac_compile) 2>&5
14404 ac_status=$?
14405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14406 test $ac_status = 0; }; then
14407 # Parse the compiler output and extract the necessary
14408 # objects, libraries and library flags.
14409
14410 # Sentinel used to keep track of whether or not we are before
14411 # the conftest object file.
14412 pre_test_object_deps_done=no
14413
14414 for p in `eval "$output_verbose_link_cmd"`; do
14415 case $prev$p in
14416
14417 -L* | -R* | -l*)
14418 # Some compilers place space between "-{L,R}" and the path.
14419 # Remove the space.
14420 if test x-L = "$p" ||
14421 test x-R = "$p"; then
14422 prev=$p
14423 continue
14424 fi
14425
14426 # Expand the sysroot to ease extracting the directories later.
14427 if test -z "$prev"; then
14428 case $p in
14429 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14430 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14431 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14432 esac
14433 fi
14434 case $p in
14435 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14436 esac
14437 if test no = "$pre_test_object_deps_done"; then
14438 case $prev in
14439 -L | -R)
14440 # Internal compiler library paths should come after those
14441 # provided the user. The postdeps already come after the
14442 # user supplied libs so there is no need to process them.
14443 if test -z "$compiler_lib_search_path_CXX"; then
14444 compiler_lib_search_path_CXX=$prev$p
14445 else
14446 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14447 fi
14448 ;;
14449 # The "-l" case would never come before the object being
14450 # linked, so don't bother handling this case.
14451 esac
14452 else
14453 if test -z "$postdeps_CXX"; then
14454 postdeps_CXX=$prev$p
14455 else
14456 postdeps_CXX="${postdeps_CXX} $prev$p"
14457 fi
14458 fi
14459 prev=
14460 ;;
14461
14462 *.lto.$objext) ;; # Ignore GCC LTO objects
14463 *.$objext)
14464 # This assumes that the test object file only shows up
14465 # once in the compiler output.
14466 if test "$p" = "conftest.$objext"; then
14467 pre_test_object_deps_done=yes
14468 continue
14469 fi
14470
14471 if test no = "$pre_test_object_deps_done"; then
14472 if test -z "$predep_objects_CXX"; then
14473 predep_objects_CXX=$p
14474 else
14475 predep_objects_CXX="$predep_objects_CXX $p"
14476 fi
14477 else
14478 if test -z "$postdep_objects_CXX"; then
14479 postdep_objects_CXX=$p
14480 else
14481 postdep_objects_CXX="$postdep_objects_CXX $p"
14482 fi
14483 fi
14484 ;;
14485
14486 *) ;; # Ignore the rest.
14487
14488 esac
14489 done
14490
14491 # Clean up.
14492 rm -f a.out a.exe
14493else
14494 echo "libtool.m4: error: problem compiling CXX test program"
14495fi
14496
14497$RM -f confest.$objext
14498CFLAGS=$_lt_libdeps_save_CFLAGS
14499
14500# PORTME: override above test on systems where it is broken
14501case $host_os in
14502interix[3-9]*)
14503 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14504 # hack all around it, let's just trust "g++" to DTRT.
14505 predep_objects_CXX=
14506 postdep_objects_CXX=
14507 postdeps_CXX=
14508 ;;
14509esac
14510
14511
14512case " $postdeps_CXX " in
14513*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14514esac
14515 compiler_lib_search_dirs_CXX=
14516if test -n "${compiler_lib_search_path_CXX}"; then
14517 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14518fi
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550 lt_prog_compiler_wl_CXX=
14551lt_prog_compiler_pic_CXX=
14552lt_prog_compiler_static_CXX=
14553
14554
14555 # C++ specific cases for pic, static, wl, etc.
14556 if test yes = "$GXX"; then
14557 lt_prog_compiler_wl_CXX='-Wl,'
14558 lt_prog_compiler_static_CXX='-static'
14559
14560 case $host_os in
14561 aix*)
14562 # All AIX code is PIC.
14563 if test ia64 = "$host_cpu"; then
14564 # AIX 5 now supports IA64 processor
14565 lt_prog_compiler_static_CXX='-Bstatic'
14566 fi
14567 lt_prog_compiler_pic_CXX='-fPIC'
14568 ;;
14569
14570 amigaos*)
14571 case $host_cpu in
14572 powerpc)
14573 # see comment about AmigaOS4 .so support
14574 lt_prog_compiler_pic_CXX='-fPIC'
14575 ;;
14576 m68k)
14577 # FIXME: we need at least 68020 code to build shared libraries, but
14578 # adding the '-m68020' flag to GCC prevents building anything better,
14579 # like '-m68040'.
14580 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14581 ;;
14582 esac
14583 ;;
14584
14585 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14586 # PIC is the default for these OSes.
14587 ;;
14588 mingw* | cygwin* | os2* | pw32* | cegcc*)
14589 # This hack is so that the source file can tell whether it is being
14590 # built for inclusion in a dll (and should export symbols for example).
14591 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14592 # (--disable-auto-import) libraries
14593 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14594 case $host_os in
14595 os2*)
14596 lt_prog_compiler_static_CXX='$wl-static'
14597 ;;
14598 esac
14599 ;;
14600 darwin* | rhapsody*)
14601 # PIC is the default on this platform
14602 # Common symbols not allowed in MH_DYLIB files
14603 lt_prog_compiler_pic_CXX='-fno-common'
14604 ;;
14605 *djgpp*)
14606 # DJGPP does not support shared libraries at all
14607 lt_prog_compiler_pic_CXX=
14608 ;;
14609 haiku*)
14610 # PIC is the default for Haiku.
14611 # The "-static" flag exists, but is broken.
14612 lt_prog_compiler_static_CXX=
14613 ;;
14614 interix[3-9]*)
14615 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14616 # Instead, we relocate shared libraries at runtime.
14617 ;;
14618 sysv4*MP*)
14619 if test -d /usr/nec; then
14620 lt_prog_compiler_pic_CXX=-Kconform_pic
14621 fi
14622 ;;
14623 hpux*)
14624 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14625 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14626 # sets the default TLS model and affects inlining.
14627 case $host_cpu in
14628 hppa*64*)
14629 ;;
14630 *)
14631 lt_prog_compiler_pic_CXX='-fPIC'
14632 ;;
14633 esac
14634 ;;
14635 *qnx* | *nto*)
14636 # QNX uses GNU C++, but need to define -shared option too, otherwise
14637 # it will coredump.
14638 lt_prog_compiler_pic_CXX='-fPIC -shared'
14639 ;;
14640 *)
14641 lt_prog_compiler_pic_CXX='-fPIC'
14642 ;;
14643 esac
14644 else
14645 case $host_os in
14646 aix[4-9]*)
14647 # All AIX code is PIC.
14648 if test ia64 = "$host_cpu"; then
14649 # AIX 5 now supports IA64 processor
14650 lt_prog_compiler_static_CXX='-Bstatic'
14651 else
14652 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14653 fi
14654 ;;
14655 chorus*)
14656 case $cc_basename in
14657 cxch68*)
14658 # Green Hills C++ Compiler
14659 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14660 ;;
14661 esac
14662 ;;
14663 mingw* | cygwin* | os2* | pw32* | cegcc*)
14664 # This hack is so that the source file can tell whether it is being
14665 # built for inclusion in a dll (and should export symbols for example).
14666 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14667 ;;
14668 dgux*)
14669 case $cc_basename in
14670 ec++*)
14671 lt_prog_compiler_pic_CXX='-KPIC'
14672 ;;
14673 ghcx*)
14674 # Green Hills C++ Compiler
14675 lt_prog_compiler_pic_CXX='-pic'
14676 ;;
14677 *)
14678 ;;
14679 esac
14680 ;;
14681 freebsd* | dragonfly*)
14682 # FreeBSD uses GNU C++
14683 ;;
14684 hpux9* | hpux10* | hpux11*)
14685 case $cc_basename in
14686 CC*)
14687 lt_prog_compiler_wl_CXX='-Wl,'
14688 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14689 if test ia64 != "$host_cpu"; then
14690 lt_prog_compiler_pic_CXX='+Z'
14691 fi
14692 ;;
14693 aCC*)
14694 lt_prog_compiler_wl_CXX='-Wl,'
14695 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14696 case $host_cpu in
14697 hppa*64*|ia64*)
14698 # +Z the default
14699 ;;
14700 *)
14701 lt_prog_compiler_pic_CXX='+Z'
14702 ;;
14703 esac
14704 ;;
14705 *)
14706 ;;
14707 esac
14708 ;;
14709 interix*)
14710 # This is c89, which is MS Visual C++ (no shared libs)
14711 # Anyone wants to do a port?
14712 ;;
14713 irix5* | irix6* | nonstopux*)
14714 case $cc_basename in
14715 CC*)
14716 lt_prog_compiler_wl_CXX='-Wl,'
14717 lt_prog_compiler_static_CXX='-non_shared'
14718 # CC pic flag -KPIC is the default.
14719 ;;
14720 *)
14721 ;;
14722 esac
14723 ;;
14724 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14725 case $cc_basename in
14726 KCC*)
14727 # KAI C++ Compiler
14728 lt_prog_compiler_wl_CXX='--backend -Wl,'
14729 lt_prog_compiler_pic_CXX='-fPIC'
14730 ;;
14731 ecpc* )
14732 # old Intel C++ for x86_64, which still supported -KPIC.
14733 lt_prog_compiler_wl_CXX='-Wl,'
14734 lt_prog_compiler_pic_CXX='-KPIC'
14735 lt_prog_compiler_static_CXX='-static'
14736 ;;
14737 icpc* )
14738 # Intel C++, used to be incompatible with GCC.
14739 # ICC 10 doesn't accept -KPIC any more.
14740 lt_prog_compiler_wl_CXX='-Wl,'
14741 lt_prog_compiler_pic_CXX='-fPIC'
14742 lt_prog_compiler_static_CXX='-static'
14743 ;;
14744 pgCC* | pgcpp*)
14745 # Portland Group C++ compiler
14746 lt_prog_compiler_wl_CXX='-Wl,'
14747 lt_prog_compiler_pic_CXX='-fpic'
14748 lt_prog_compiler_static_CXX='-Bstatic'
14749 ;;
14750 cxx*)
14751 # Compaq C++
14752 # Make sure the PIC flag is empty. It appears that all Alpha
14753 # Linux and Compaq Tru64 Unix objects are PIC.
14754 lt_prog_compiler_pic_CXX=
14755 lt_prog_compiler_static_CXX='-non_shared'
14756 ;;
14757 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14758 # IBM XL 8.0, 9.0 on PPC and BlueGene
14759 lt_prog_compiler_wl_CXX='-Wl,'
14760 lt_prog_compiler_pic_CXX='-qpic'
14761 lt_prog_compiler_static_CXX='-qstaticlink'
14762 ;;
14763 *)
14764 case `$CC -V 2>&1 | sed 5q` in
14765 *Sun\ C*)
14766 # Sun C++ 5.9
14767 lt_prog_compiler_pic_CXX='-KPIC'
14768 lt_prog_compiler_static_CXX='-Bstatic'
14769 lt_prog_compiler_wl_CXX='-Qoption ld '
14770 ;;
14771 esac
14772 ;;
14773 esac
14774 ;;
14775 lynxos*)
14776 ;;
14777 m88k*)
14778 ;;
14779 mvs*)
14780 case $cc_basename in
14781 cxx*)
14782 lt_prog_compiler_pic_CXX='-W c,exportall'
14783 ;;
14784 *)
14785 ;;
14786 esac
14787 ;;
14788 netbsd* | netbsdelf*-gnu)
14789 ;;
14790 *qnx* | *nto*)
14791 # QNX uses GNU C++, but need to define -shared option too, otherwise
14792 # it will coredump.
14793 lt_prog_compiler_pic_CXX='-fPIC -shared'
14794 ;;
14795 osf3* | osf4* | osf5*)
14796 case $cc_basename in
14797 KCC*)
14798 lt_prog_compiler_wl_CXX='--backend -Wl,'
14799 ;;
14800 RCC*)
14801 # Rational C++ 2.4.1
14802 lt_prog_compiler_pic_CXX='-pic'
14803 ;;
14804 cxx*)
14805 # Digital/Compaq C++
14806 lt_prog_compiler_wl_CXX='-Wl,'
14807 # Make sure the PIC flag is empty. It appears that all Alpha
14808 # Linux and Compaq Tru64 Unix objects are PIC.
14809 lt_prog_compiler_pic_CXX=
14810 lt_prog_compiler_static_CXX='-non_shared'
14811 ;;
14812 *)
14813 ;;
14814 esac
14815 ;;
14816 psos*)
14817 ;;
14818 solaris*)
14819 case $cc_basename in
14820 CC* | sunCC*)
14821 # Sun C++ 4.2, 5.x and Centerline C++
14822 lt_prog_compiler_pic_CXX='-KPIC'
14823 lt_prog_compiler_static_CXX='-Bstatic'
14824 lt_prog_compiler_wl_CXX='-Qoption ld '
14825 ;;
14826 gcx*)
14827 # Green Hills C++ Compiler
14828 lt_prog_compiler_pic_CXX='-PIC'
14829 ;;
14830 *)
14831 ;;
14832 esac
14833 ;;
14834 sunos4*)
14835 case $cc_basename in
14836 CC*)
14837 # Sun C++ 4.x
14838 lt_prog_compiler_pic_CXX='-pic'
14839 lt_prog_compiler_static_CXX='-Bstatic'
14840 ;;
14841 lcc*)
14842 # Lucid
14843 lt_prog_compiler_pic_CXX='-pic'
14844 ;;
14845 *)
14846 ;;
14847 esac
14848 ;;
14849 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14850 case $cc_basename in
14851 CC*)
14852 lt_prog_compiler_wl_CXX='-Wl,'
14853 lt_prog_compiler_pic_CXX='-KPIC'
14854 lt_prog_compiler_static_CXX='-Bstatic'
14855 ;;
14856 esac
14857 ;;
14858 tandem*)
14859 case $cc_basename in
14860 NCC*)
14861 # NonStop-UX NCC 3.20
14862 lt_prog_compiler_pic_CXX='-KPIC'
14863 ;;
14864 *)
14865 ;;
14866 esac
14867 ;;
14868 vxworks*)
14869 ;;
14870 *)
14871 lt_prog_compiler_can_build_shared_CXX=no
14872 ;;
14873 esac
14874 fi
14875
14876case $host_os in
14877 # For platforms that do not support PIC, -DPIC is meaningless:
14878 *djgpp*)
14879 lt_prog_compiler_pic_CXX=
14880 ;;
14881 *)
14882 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14883 ;;
14884esac
14885
14886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14887$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14888if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14889 $as_echo_n "(cached) " >&6
14890else
14891 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14892fi
14893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14894$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14895lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14896
14897#
14898# Check to make sure the PIC flag actually works.
14899#
14900if test -n "$lt_prog_compiler_pic_CXX"; then
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14902$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14903if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14904 $as_echo_n "(cached) " >&6
14905else
14906 lt_cv_prog_compiler_pic_works_CXX=no
14907 ac_outfile=conftest.$ac_objext
14908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14909 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14910 # Insert the option either (1) after the last *FLAGS variable, or
14911 # (2) before a word containing "conftest.", or (3) at the end.
14912 # Note that $ac_compile itself does not contain backslashes and begins
14913 # with a dollar sign (not a hyphen), so the echo should work correctly.
14914 # The option is referenced via a variable to avoid confusing sed.
14915 lt_compile=`echo "$ac_compile" | $SED \
14916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14918 -e 's:$: $lt_compiler_flag:'`
14919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14920 (eval "$lt_compile" 2>conftest.err)
14921 ac_status=$?
14922 cat conftest.err >&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 if (exit $ac_status) && test -s "$ac_outfile"; then
14925 # The compiler can only warn and ignore the option if not recognized
14926 # So say no if there are warnings other than the usual output.
14927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14930 lt_cv_prog_compiler_pic_works_CXX=yes
14931 fi
14932 fi
14933 $RM conftest*
14934
14935fi
14936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14937$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14938
14939if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14940 case $lt_prog_compiler_pic_CXX in
14941 "" | " "*) ;;
14942 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14943 esac
14944else
14945 lt_prog_compiler_pic_CXX=
14946 lt_prog_compiler_can_build_shared_CXX=no
14947fi
14948
14949fi
14950
14951
14952
14953
14954
14955#
14956# Check to make sure the static flag actually works.
14957#
14958wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14960$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14961if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14962 $as_echo_n "(cached) " >&6
14963else
14964 lt_cv_prog_compiler_static_works_CXX=no
14965 save_LDFLAGS=$LDFLAGS
14966 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14967 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14968 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14969 # The linker can only warn and ignore the option if not recognized
14970 # So say no if there are warnings
14971 if test -s conftest.err; then
14972 # Append any errors to the config.log.
14973 cat conftest.err 1>&5
14974 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14976 if diff conftest.exp conftest.er2 >/dev/null; then
14977 lt_cv_prog_compiler_static_works_CXX=yes
14978 fi
14979 else
14980 lt_cv_prog_compiler_static_works_CXX=yes
14981 fi
14982 fi
14983 $RM -r conftest*
14984 LDFLAGS=$save_LDFLAGS
14985
14986fi
14987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14988$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14989
14990if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14991 :
14992else
14993 lt_prog_compiler_static_CXX=
14994fi
14995
14996
14997
14998
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15000$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15001if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15002 $as_echo_n "(cached) " >&6
15003else
15004 lt_cv_prog_compiler_c_o_CXX=no
15005 $RM -r conftest 2>/dev/null
15006 mkdir conftest
15007 cd conftest
15008 mkdir out
15009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15010
15011 lt_compiler_flag="-o out/conftest2.$ac_objext"
15012 # Insert the option either (1) after the last *FLAGS variable, or
15013 # (2) before a word containing "conftest.", or (3) at the end.
15014 # Note that $ac_compile itself does not contain backslashes and begins
15015 # with a dollar sign (not a hyphen), so the echo should work correctly.
15016 lt_compile=`echo "$ac_compile" | $SED \
15017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15019 -e 's:$: $lt_compiler_flag:'`
15020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15021 (eval "$lt_compile" 2>out/conftest.err)
15022 ac_status=$?
15023 cat out/conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15026 then
15027 # The compiler can only warn and ignore the option if not recognized
15028 # So say no if there are warnings
15029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15030 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15031 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15032 lt_cv_prog_compiler_c_o_CXX=yes
15033 fi
15034 fi
15035 chmod u+w . 2>&5
15036 $RM conftest*
15037 # SGI C++ compiler will create directory out/ii_files/ for
15038 # template instantiation
15039 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15040 $RM out/* && rmdir out
15041 cd ..
15042 $RM -r conftest
15043 $RM conftest*
15044
15045fi
15046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15047$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15048
15049
15050
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15052$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15053if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15054 $as_echo_n "(cached) " >&6
15055else
15056 lt_cv_prog_compiler_c_o_CXX=no
15057 $RM -r conftest 2>/dev/null
15058 mkdir conftest
15059 cd conftest
15060 mkdir out
15061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15062
15063 lt_compiler_flag="-o out/conftest2.$ac_objext"
15064 # Insert the option either (1) after the last *FLAGS variable, or
15065 # (2) before a word containing "conftest.", or (3) at the end.
15066 # Note that $ac_compile itself does not contain backslashes and begins
15067 # with a dollar sign (not a hyphen), so the echo should work correctly.
15068 lt_compile=`echo "$ac_compile" | $SED \
15069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15071 -e 's:$: $lt_compiler_flag:'`
15072 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15073 (eval "$lt_compile" 2>out/conftest.err)
15074 ac_status=$?
15075 cat out/conftest.err >&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15078 then
15079 # The compiler can only warn and ignore the option if not recognized
15080 # So say no if there are warnings
15081 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15082 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15083 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15084 lt_cv_prog_compiler_c_o_CXX=yes
15085 fi
15086 fi
15087 chmod u+w . 2>&5
15088 $RM conftest*
15089 # SGI C++ compiler will create directory out/ii_files/ for
15090 # template instantiation
15091 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15092 $RM out/* && rmdir out
15093 cd ..
15094 $RM -r conftest
15095 $RM conftest*
15096
15097fi
15098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15099$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15100
15101
15102
15103
15104hard_links=nottested
15105if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15106 # do not overwrite the value of need_locks provided by the user
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15108$as_echo_n "checking if we can lock with hard links... " >&6; }
15109 hard_links=yes
15110 $RM conftest*
15111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15112 touch conftest.a
15113 ln conftest.a conftest.b 2>&5 || hard_links=no
15114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15116$as_echo "$hard_links" >&6; }
15117 if test no = "$hard_links"; then
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15119$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15120 need_locks=warn
15121 fi
15122else
15123 need_locks=no
15124fi
15125
15126
15127
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15129$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15130
15131 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15132 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15133 case $host_os in
15134 aix[4-9]*)
15135 # If we're using GNU nm, then we don't want the "-C" option.
15136 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15137 # Without the "-l" option, or with the "-B" option, AIX nm treats
15138 # weak defined symbols like other global defined symbols, whereas
15139 # GNU nm marks them as "W".
15140 # While the 'weak' keyword is ignored in the Export File, we need
15141 # it in the Import File for the 'aix-soname' feature, so we have
15142 # to replace the "-B" option with "-P" for AIX nm.
15143 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15144 export_symbols_cmds_CXX='$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'
15145 else
15146 export_symbols_cmds_CXX='`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'
15147 fi
15148 ;;
15149 pw32*)
15150 export_symbols_cmds_CXX=$ltdll_cmds
15151 ;;
15152 cygwin* | mingw* | cegcc*)
15153 case $cc_basename in
15154 cl*)
15155 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15156 ;;
15157 *)
15158 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15159 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15160 ;;
15161 esac
15162 ;;
15163 linux* | k*bsd*-gnu | gnu*)
15164 link_all_deplibs_CXX=no
15165 ;;
15166 *)
15167 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15168 ;;
15169 esac
15170
15171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15172$as_echo "$ld_shlibs_CXX" >&6; }
15173test no = "$ld_shlibs_CXX" && can_build_shared=no
15174
15175with_gnu_ld_CXX=$with_gnu_ld
15176
15177
15178
15179
15180
15181
15182#
15183# Do we need to explicitly link libc?
15184#
15185case "x$archive_cmds_need_lc_CXX" in
15186x|xyes)
15187 # Assume -lc should be added
15188 archive_cmds_need_lc_CXX=yes
15189
15190 if test yes,yes = "$GCC,$enable_shared"; then
15191 case $archive_cmds_CXX in
15192 *'~'*)
15193 # FIXME: we may have to deal with multi-command sequences.
15194 ;;
15195 '$CC '*)
15196 # Test whether the compiler implicitly links with -lc since on some
15197 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15198 # to ld, don't add -lc before -lgcc.
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15200$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15201if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15202 $as_echo_n "(cached) " >&6
15203else
15204 $RM conftest*
15205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15206
15207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15208 (eval $ac_compile) 2>&5
15209 ac_status=$?
15210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15211 test $ac_status = 0; } 2>conftest.err; then
15212 soname=conftest
15213 lib=conftest
15214 libobjs=conftest.$ac_objext
15215 deplibs=
15216 wl=$lt_prog_compiler_wl_CXX
15217 pic_flag=$lt_prog_compiler_pic_CXX
15218 compiler_flags=-v
15219 linker_flags=-v
15220 verstring=
15221 output_objdir=.
15222 libname=conftest
15223 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15224 allow_undefined_flag_CXX=
15225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15226 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15227 ac_status=$?
15228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15229 test $ac_status = 0; }
15230 then
15231 lt_cv_archive_cmds_need_lc_CXX=no
15232 else
15233 lt_cv_archive_cmds_need_lc_CXX=yes
15234 fi
15235 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15236 else
15237 cat conftest.err 1>&5
15238 fi
15239 $RM conftest*
15240
15241fi
15242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15243$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15244 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15245 ;;
15246 esac
15247 fi
15248 ;;
15249esac
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15313$as_echo_n "checking dynamic linker characteristics... " >&6; }
15314
15315library_names_spec=
15316libname_spec='lib$name'
15317soname_spec=
15318shrext_cmds=.so
15319postinstall_cmds=
15320postuninstall_cmds=
15321finish_cmds=
15322finish_eval=
15323shlibpath_var=
15324shlibpath_overrides_runpath=unknown
15325version_type=none
15326dynamic_linker="$host_os ld.so"
15327sys_lib_dlsearch_path_spec="/lib /usr/lib"
15328need_lib_prefix=unknown
15329hardcode_into_libs=no
15330
15331# when you set need_version to no, make sure it does not cause -set_version
15332# flags to be left without arguments
15333need_version=unknown
15334
15335
15336
15337case $host_os in
15338aix3*)
15339 version_type=linux # correct to gnu/linux during the next big refactor
15340 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15341 shlibpath_var=LIBPATH
15342
15343 # AIX 3 has no versioning support, so we append a major version to the name.
15344 soname_spec='$libname$release$shared_ext$major'
15345 ;;
15346
15347aix[4-9]*)
15348 version_type=linux # correct to gnu/linux during the next big refactor
15349 need_lib_prefix=no
15350 need_version=no
15351 hardcode_into_libs=yes
15352 if test ia64 = "$host_cpu"; then
15353 # AIX 5 supports IA64
15354 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15355 shlibpath_var=LD_LIBRARY_PATH
15356 else
15357 # With GCC up to 2.95.x, collect2 would create an import file
15358 # for dependence libraries. The import file would start with
15359 # the line '#! .'. This would cause the generated library to
15360 # depend on '.', always an invalid library. This was fixed in
15361 # development snapshots of GCC prior to 3.0.
15362 case $host_os in
15363 aix4 | aix4.[01] | aix4.[01].*)
15364 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15365 echo ' yes '
15366 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15367 :
15368 else
15369 can_build_shared=no
15370 fi
15371 ;;
15372 esac
15373 # Using Import Files as archive members, it is possible to support
15374 # filename-based versioning of shared library archives on AIX. While
15375 # this would work for both with and without runtime linking, it will
15376 # prevent static linking of such archives. So we do filename-based
15377 # shared library versioning with .so extension only, which is used
15378 # when both runtime linking and shared linking is enabled.
15379 # Unfortunately, runtime linking may impact performance, so we do
15380 # not want this to be the default eventually. Also, we use the
15381 # versioned .so libs for executables only if there is the -brtl
15382 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15383 # To allow for filename-based versioning support, we need to create
15384 # libNAME.so.V as an archive file, containing:
15385 # *) an Import File, referring to the versioned filename of the
15386 # archive as well as the shared archive member, telling the
15387 # bitwidth (32 or 64) of that shared object, and providing the
15388 # list of exported symbols of that shared object, eventually
15389 # decorated with the 'weak' keyword
15390 # *) the shared object with the F_LOADONLY flag set, to really avoid
15391 # it being seen by the linker.
15392 # At run time we better use the real file rather than another symlink,
15393 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15394
15395 case $with_aix_soname,$aix_use_runtimelinking in
15396 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15397 # soname into executable. Probably we can add versioning support to
15398 # collect2, so additional links can be useful in future.
15399 aix,yes) # traditional libtool
15400 dynamic_linker='AIX unversionable lib.so'
15401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15402 # instead of lib<name>.a to let people know that these are not
15403 # typical AIX shared libraries.
15404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15405 ;;
15406 aix,no) # traditional AIX only
15407 dynamic_linker='AIX lib.a(lib.so.V)'
15408 # We preserve .a as extension for shared libraries through AIX4.2
15409 # and later when we are not doing run time linking.
15410 library_names_spec='$libname$release.a $libname.a'
15411 soname_spec='$libname$release$shared_ext$major'
15412 ;;
15413 svr4,*) # full svr4 only
15414 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15415 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15416 # We do not specify a path in Import Files, so LIBPATH fires.
15417 shlibpath_overrides_runpath=yes
15418 ;;
15419 *,yes) # both, prefer svr4
15420 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15421 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15422 # unpreferred sharedlib libNAME.a needs extra handling
15423 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"'
15424 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"'
15425 # We do not specify a path in Import Files, so LIBPATH fires.
15426 shlibpath_overrides_runpath=yes
15427 ;;
15428 *,no) # both, prefer aix
15429 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15430 library_names_spec='$libname$release.a $libname.a'
15431 soname_spec='$libname$release$shared_ext$major'
15432 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15433 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)'
15434 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"'
15435 ;;
15436 esac
15437 shlibpath_var=LIBPATH
15438 fi
15439 ;;
15440
15441amigaos*)
15442 case $host_cpu in
15443 powerpc)
15444 # Since July 2007 AmigaOS4 officially supports .so libraries.
15445 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15447 ;;
15448 m68k)
15449 library_names_spec='$libname.ixlibrary $libname.a'
15450 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15451 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'
15452 ;;
15453 esac
15454 ;;
15455
15456beos*)
15457 library_names_spec='$libname$shared_ext'
15458 dynamic_linker="$host_os ld.so"
15459 shlibpath_var=LIBRARY_PATH
15460 ;;
15461
15462bsdi[45]*)
15463 version_type=linux # correct to gnu/linux during the next big refactor
15464 need_version=no
15465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15466 soname_spec='$libname$release$shared_ext$major'
15467 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15468 shlibpath_var=LD_LIBRARY_PATH
15469 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15470 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15471 # the default ld.so.conf also contains /usr/contrib/lib and
15472 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15473 # libtool to hard-code these into programs
15474 ;;
15475
15476cygwin* | mingw* | pw32* | cegcc*)
15477 version_type=windows
15478 shrext_cmds=.dll
15479 need_version=no
15480 need_lib_prefix=no
15481
15482 case $GCC,$cc_basename in
15483 yes,*)
15484 # gcc
15485 library_names_spec='$libname.dll.a'
15486 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15487 postinstall_cmds='base_file=`basename \$file`~
15488 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15489 dldir=$destdir/`dirname \$dlpath`~
15490 test -d \$dldir || mkdir -p \$dldir~
15491 $install_prog $dir/$dlname \$dldir/$dlname~
15492 chmod a+x \$dldir/$dlname~
15493 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15494 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15495 fi'
15496 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15497 dlpath=$dir/\$dldll~
15498 $RM \$dlpath'
15499 shlibpath_overrides_runpath=yes
15500
15501 case $host_os in
15502 cygwin*)
15503 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15504 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15505
15506 ;;
15507 mingw* | cegcc*)
15508 # MinGW DLLs use traditional 'lib' prefix
15509 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15510 ;;
15511 pw32*)
15512 # pw32 DLLs use 'pw' prefix rather than 'lib'
15513 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15514 ;;
15515 esac
15516 dynamic_linker='Win32 ld.exe'
15517 ;;
15518
15519 *,cl*)
15520 # Native MSVC
15521 libname_spec='$name'
15522 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15523 library_names_spec='$libname.dll.lib'
15524
15525 case $build_os in
15526 mingw*)
15527 sys_lib_search_path_spec=
15528 lt_save_ifs=$IFS
15529 IFS=';'
15530 for lt_path in $LIB
15531 do
15532 IFS=$lt_save_ifs
15533 # Let DOS variable expansion print the short 8.3 style file name.
15534 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15535 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15536 done
15537 IFS=$lt_save_ifs
15538 # Convert to MSYS style.
15539 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15540 ;;
15541 cygwin*)
15542 # Convert to unix form, then to dos form, then back to unix form
15543 # but this time dos style (no spaces!) so that the unix form looks
15544 # like /cygdrive/c/PROGRA~1:/cygdr...
15545 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15546 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15547 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15548 ;;
15549 *)
15550 sys_lib_search_path_spec=$LIB
15551 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15552 # It is most probably a Windows format PATH.
15553 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15554 else
15555 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15556 fi
15557 # FIXME: find the short name or the path components, as spaces are
15558 # common. (e.g. "Program Files" -> "PROGRA~1")
15559 ;;
15560 esac
15561
15562 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15563 postinstall_cmds='base_file=`basename \$file`~
15564 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15565 dldir=$destdir/`dirname \$dlpath`~
15566 test -d \$dldir || mkdir -p \$dldir~
15567 $install_prog $dir/$dlname \$dldir/$dlname'
15568 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15569 dlpath=$dir/\$dldll~
15570 $RM \$dlpath'
15571 shlibpath_overrides_runpath=yes
15572 dynamic_linker='Win32 link.exe'
15573 ;;
15574
15575 *)
15576 # Assume MSVC wrapper
15577 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15578 dynamic_linker='Win32 ld.exe'
15579 ;;
15580 esac
15581 # FIXME: first we should search . and the directory the executable is in
15582 shlibpath_var=PATH
15583 ;;
15584
15585darwin* | rhapsody*)
15586 dynamic_linker="$host_os dyld"
15587 version_type=darwin
15588 need_lib_prefix=no
15589 need_version=no
15590 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15591 soname_spec='$libname$release$major$shared_ext'
15592 shlibpath_overrides_runpath=yes
15593 shlibpath_var=DYLD_LIBRARY_PATH
15594 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15595
15596 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15597 ;;
15598
15599dgux*)
15600 version_type=linux # correct to gnu/linux during the next big refactor
15601 need_lib_prefix=no
15602 need_version=no
15603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15604 soname_spec='$libname$release$shared_ext$major'
15605 shlibpath_var=LD_LIBRARY_PATH
15606 ;;
15607
15608freebsd* | dragonfly*)
15609 # DragonFly does not have aout. When/if they implement a new
15610 # versioning mechanism, adjust this.
15611 if test -x /usr/bin/objformat; then
15612 objformat=`/usr/bin/objformat`
15613 else
15614 case $host_os in
15615 freebsd[23].*) objformat=aout ;;
15616 *) objformat=elf ;;
15617 esac
15618 fi
15619 version_type=freebsd-$objformat
15620 case $version_type in
15621 freebsd-elf*)
15622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15623 soname_spec='$libname$release$shared_ext$major'
15624 need_version=no
15625 need_lib_prefix=no
15626 ;;
15627 freebsd-*)
15628 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15629 need_version=yes
15630 ;;
15631 esac
15632 shlibpath_var=LD_LIBRARY_PATH
15633 case $host_os in
15634 freebsd2.*)
15635 shlibpath_overrides_runpath=yes
15636 ;;
15637 freebsd3.[01]* | freebsdelf3.[01]*)
15638 shlibpath_overrides_runpath=yes
15639 hardcode_into_libs=yes
15640 ;;
15641 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15642 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15643 shlibpath_overrides_runpath=no
15644 hardcode_into_libs=yes
15645 ;;
15646 *) # from 4.6 on, and DragonFly
15647 shlibpath_overrides_runpath=yes
15648 hardcode_into_libs=yes
15649 ;;
15650 esac
15651 ;;
15652
15653haiku*)
15654 version_type=linux # correct to gnu/linux during the next big refactor
15655 need_lib_prefix=no
15656 need_version=no
15657 dynamic_linker="$host_os runtime_loader"
15658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15659 soname_spec='$libname$release$shared_ext$major'
15660 shlibpath_var=LIBRARY_PATH
15661 shlibpath_overrides_runpath=no
15662 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15663 hardcode_into_libs=yes
15664 ;;
15665
15666hpux9* | hpux10* | hpux11*)
15667 # Give a soname corresponding to the major version so that dld.sl refuses to
15668 # link against other versions.
15669 version_type=sunos
15670 need_lib_prefix=no
15671 need_version=no
15672 case $host_cpu in
15673 ia64*)
15674 shrext_cmds='.so'
15675 hardcode_into_libs=yes
15676 dynamic_linker="$host_os dld.so"
15677 shlibpath_var=LD_LIBRARY_PATH
15678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15680 soname_spec='$libname$release$shared_ext$major'
15681 if test 32 = "$HPUX_IA64_MODE"; then
15682 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15683 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15684 else
15685 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15686 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15687 fi
15688 ;;
15689 hppa*64*)
15690 shrext_cmds='.sl'
15691 hardcode_into_libs=yes
15692 dynamic_linker="$host_os dld.sl"
15693 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15696 soname_spec='$libname$release$shared_ext$major'
15697 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15699 ;;
15700 *)
15701 shrext_cmds='.sl'
15702 dynamic_linker="$host_os dld.sl"
15703 shlibpath_var=SHLIB_PATH
15704 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15706 soname_spec='$libname$release$shared_ext$major'
15707 ;;
15708 esac
15709 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15710 postinstall_cmds='chmod 555 $lib'
15711 # or fails outright, so override atomically:
15712 install_override_mode=555
15713 ;;
15714
15715interix[3-9]*)
15716 version_type=linux # correct to gnu/linux during the next big refactor
15717 need_lib_prefix=no
15718 need_version=no
15719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15720 soname_spec='$libname$release$shared_ext$major'
15721 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15722 shlibpath_var=LD_LIBRARY_PATH
15723 shlibpath_overrides_runpath=no
15724 hardcode_into_libs=yes
15725 ;;
15726
15727irix5* | irix6* | nonstopux*)
15728 case $host_os in
15729 nonstopux*) version_type=nonstopux ;;
15730 *)
15731 if test yes = "$lt_cv_prog_gnu_ld"; then
15732 version_type=linux # correct to gnu/linux during the next big refactor
15733 else
15734 version_type=irix
15735 fi ;;
15736 esac
15737 need_lib_prefix=no
15738 need_version=no
15739 soname_spec='$libname$release$shared_ext$major'
15740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15741 case $host_os in
15742 irix5* | nonstopux*)
15743 libsuff= shlibsuff=
15744 ;;
15745 *)
15746 case $LD in # libtool.m4 will add one of these switches to LD
15747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15748 libsuff= shlibsuff= libmagic=32-bit;;
15749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15750 libsuff=32 shlibsuff=N32 libmagic=N32;;
15751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15752 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15753 *) libsuff= shlibsuff= libmagic=never-match;;
15754 esac
15755 ;;
15756 esac
15757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15758 shlibpath_overrides_runpath=no
15759 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15760 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15761 hardcode_into_libs=yes
15762 ;;
15763
15764# No shared lib support for Linux oldld, aout, or coff.
15765linux*oldld* | linux*aout* | linux*coff*)
15766 dynamic_linker=no
15767 ;;
15768
15769linux*android*)
15770 version_type=none # Android doesn't support versioned libraries.
15771 need_lib_prefix=no
15772 need_version=no
15773 library_names_spec='$libname$release$shared_ext'
15774 soname_spec='$libname$release$shared_ext'
15775 finish_cmds=
15776 shlibpath_var=LD_LIBRARY_PATH
15777 shlibpath_overrides_runpath=yes
15778
15779 # This implies no fast_install, which is unacceptable.
15780 # Some rework will be needed to allow for fast_install
15781 # before this can be enabled.
15782 hardcode_into_libs=yes
15783
15784 dynamic_linker='Android linker'
15785 # Don't embed -rpath directories since the linker doesn't support them.
15786 hardcode_libdir_flag_spec_CXX='-L$libdir'
15787 ;;
15788
15789# This must be glibc/ELF.
15790linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15791 version_type=linux # correct to gnu/linux during the next big refactor
15792 need_lib_prefix=no
15793 need_version=no
15794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15795 soname_spec='$libname$release$shared_ext$major'
15796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15797 shlibpath_var=LD_LIBRARY_PATH
15798 shlibpath_overrides_runpath=no
15799
15800 # Some binutils ld are patched to set DT_RUNPATH
15801 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15802 $as_echo_n "(cached) " >&6
15803else
15804 lt_cv_shlibpath_overrides_runpath=no
15805 save_LDFLAGS=$LDFLAGS
15806 save_libdir=$libdir
15807 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15808 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15810/* end confdefs.h. */
15811
15812int
15813main ()
15814{
15815
15816 ;
15817 return 0;
15818}
15819_ACEOF
15820if ac_fn_cxx_try_link "$LINENO"; then :
15821 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15822 lt_cv_shlibpath_overrides_runpath=yes
15823fi
15824fi
15825rm -f core conftest.err conftest.$ac_objext \
15826 conftest$ac_exeext conftest.$ac_ext
15827 LDFLAGS=$save_LDFLAGS
15828 libdir=$save_libdir
15829
15830fi
15831
15832 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15833
15834 # This implies no fast_install, which is unacceptable.
15835 # Some rework will be needed to allow for fast_install
15836 # before this can be enabled.
15837 hardcode_into_libs=yes
15838
15839 # Ideally, we could use ldconfig to report *all* directores which are
15840 # searched for libraries, however this is still not possible. Aside from not
15841 # being certain /sbin/ldconfig is available, command
15842 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15843 # even though it is searched at run-time. Try to do the best guess by
15844 # appending ld.so.conf contents (and includes) to the search path.
15845 if test -f /etc/ld.so.conf; then
15846 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' ' '`
15847 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15848 fi
15849
15850 # We used to test for /lib/ld.so.1 and disable shared libraries on
15851 # powerpc, because MkLinux only supported shared libraries with the
15852 # GNU dynamic linker. Since this was broken with cross compilers,
15853 # most powerpc-linux boxes support dynamic linking these days and
15854 # people can always --disable-shared, the test was removed, and we
15855 # assume the GNU/Linux dynamic linker is in use.
15856 dynamic_linker='GNU/Linux ld.so'
15857 ;;
15858
15859netbsdelf*-gnu)
15860 version_type=linux
15861 need_lib_prefix=no
15862 need_version=no
15863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15864 soname_spec='${libname}${release}${shared_ext}$major'
15865 shlibpath_var=LD_LIBRARY_PATH
15866 shlibpath_overrides_runpath=no
15867 hardcode_into_libs=yes
15868 dynamic_linker='NetBSD ld.elf_so'
15869 ;;
15870
15871netbsd*)
15872 version_type=sunos
15873 need_lib_prefix=no
15874 need_version=no
15875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15876 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15878 dynamic_linker='NetBSD (a.out) ld.so'
15879 else
15880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15881 soname_spec='$libname$release$shared_ext$major'
15882 dynamic_linker='NetBSD ld.elf_so'
15883 fi
15884 shlibpath_var=LD_LIBRARY_PATH
15885 shlibpath_overrides_runpath=yes
15886 hardcode_into_libs=yes
15887 ;;
15888
15889newsos6)
15890 version_type=linux # correct to gnu/linux during the next big refactor
15891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15892 shlibpath_var=LD_LIBRARY_PATH
15893 shlibpath_overrides_runpath=yes
15894 ;;
15895
15896*nto* | *qnx*)
15897 version_type=qnx
15898 need_lib_prefix=no
15899 need_version=no
15900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15901 soname_spec='$libname$release$shared_ext$major'
15902 shlibpath_var=LD_LIBRARY_PATH
15903 shlibpath_overrides_runpath=no
15904 hardcode_into_libs=yes
15905 dynamic_linker='ldqnx.so'
15906 ;;
15907
15908openbsd* | bitrig*)
15909 version_type=sunos
15910 sys_lib_dlsearch_path_spec=/usr/lib
15911 need_lib_prefix=no
15912 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15913 need_version=no
15914 else
15915 need_version=yes
15916 fi
15917 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15919 shlibpath_var=LD_LIBRARY_PATH
15920 shlibpath_overrides_runpath=yes
15921 ;;
15922
15923os2*)
15924 libname_spec='$name'
15925 version_type=windows
15926 shrext_cmds=.dll
15927 need_version=no
15928 need_lib_prefix=no
15929 # OS/2 can only load a DLL with a base name of 8 characters or less.
15930 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15931 v=$($ECHO $release$versuffix | tr -d .-);
15932 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15933 $ECHO $n$v`$shared_ext'
15934 library_names_spec='${libname}_dll.$libext'
15935 dynamic_linker='OS/2 ld.exe'
15936 shlibpath_var=BEGINLIBPATH
15937 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15939 postinstall_cmds='base_file=`basename \$file`~
15940 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15941 dldir=$destdir/`dirname \$dlpath`~
15942 test -d \$dldir || mkdir -p \$dldir~
15943 $install_prog $dir/$dlname \$dldir/$dlname~
15944 chmod a+x \$dldir/$dlname~
15945 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15946 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15947 fi'
15948 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15949 dlpath=$dir/\$dldll~
15950 $RM \$dlpath'
15951 ;;
15952
15953osf3* | osf4* | osf5*)
15954 version_type=osf
15955 need_lib_prefix=no
15956 need_version=no
15957 soname_spec='$libname$release$shared_ext$major'
15958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15959 shlibpath_var=LD_LIBRARY_PATH
15960 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15962 ;;
15963
15964rdos*)
15965 dynamic_linker=no
15966 ;;
15967
15968solaris*)
15969 version_type=linux # correct to gnu/linux during the next big refactor
15970 need_lib_prefix=no
15971 need_version=no
15972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15973 soname_spec='$libname$release$shared_ext$major'
15974 shlibpath_var=LD_LIBRARY_PATH
15975 shlibpath_overrides_runpath=yes
15976 hardcode_into_libs=yes
15977 # ldd complains unless libraries are executable
15978 postinstall_cmds='chmod +x $lib'
15979 ;;
15980
15981sunos4*)
15982 version_type=sunos
15983 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15984 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15985 shlibpath_var=LD_LIBRARY_PATH
15986 shlibpath_overrides_runpath=yes
15987 if test yes = "$with_gnu_ld"; then
15988 need_lib_prefix=no
15989 fi
15990 need_version=yes
15991 ;;
15992
15993sysv4 | sysv4.3*)
15994 version_type=linux # correct to gnu/linux during the next big refactor
15995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15996 soname_spec='$libname$release$shared_ext$major'
15997 shlibpath_var=LD_LIBRARY_PATH
15998 case $host_vendor in
15999 sni)
16000 shlibpath_overrides_runpath=no
16001 need_lib_prefix=no
16002 runpath_var=LD_RUN_PATH
16003 ;;
16004 siemens)
16005 need_lib_prefix=no
16006 ;;
16007 motorola)
16008 need_lib_prefix=no
16009 need_version=no
16010 shlibpath_overrides_runpath=no
16011 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16012 ;;
16013 esac
16014 ;;
16015
16016sysv4*MP*)
16017 if test -d /usr/nec; then
16018 version_type=linux # correct to gnu/linux during the next big refactor
16019 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16020 soname_spec='$libname$shared_ext.$major'
16021 shlibpath_var=LD_LIBRARY_PATH
16022 fi
16023 ;;
16024
16025sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16026 version_type=sco
16027 need_lib_prefix=no
16028 need_version=no
16029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16030 soname_spec='$libname$release$shared_ext$major'
16031 shlibpath_var=LD_LIBRARY_PATH
16032 shlibpath_overrides_runpath=yes
16033 hardcode_into_libs=yes
16034 if test yes = "$with_gnu_ld"; then
16035 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16036 else
16037 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16038 case $host_os in
16039 sco3.2v5*)
16040 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16041 ;;
16042 esac
16043 fi
16044 sys_lib_dlsearch_path_spec='/usr/lib'
16045 ;;
16046
16047tpf*)
16048 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16049 version_type=linux # correct to gnu/linux during the next big refactor
16050 need_lib_prefix=no
16051 need_version=no
16052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16053 shlibpath_var=LD_LIBRARY_PATH
16054 shlibpath_overrides_runpath=no
16055 hardcode_into_libs=yes
16056 ;;
16057
16058uts4*)
16059 version_type=linux # correct to gnu/linux during the next big refactor
16060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16061 soname_spec='$libname$release$shared_ext$major'
16062 shlibpath_var=LD_LIBRARY_PATH
16063 ;;
16064
16065*)
16066 dynamic_linker=no
16067 ;;
16068esac
16069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16070$as_echo "$dynamic_linker" >&6; }
16071test no = "$dynamic_linker" && can_build_shared=no
16072
16073variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16074if test yes = "$GCC"; then
16075 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16076fi
16077
16078if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16079 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16080fi
16081
16082if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16083 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16084fi
16085
16086# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16087configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16088
16089# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16090func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16091
16092# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16093configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16135$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16136hardcode_action_CXX=
16137if test -n "$hardcode_libdir_flag_spec_CXX" ||
16138 test -n "$runpath_var_CXX" ||
16139 test yes = "$hardcode_automatic_CXX"; then
16140
16141 # We can hardcode non-existent directories.
16142 if test no != "$hardcode_direct_CXX" &&
16143 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16144 # have to relink, otherwise we might link with an installed library
16145 # when we should be linking with a yet-to-be-installed one
16146 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16147 test no != "$hardcode_minus_L_CXX"; then
16148 # Linking always hardcodes the temporary library directory.
16149 hardcode_action_CXX=relink
16150 else
16151 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16152 hardcode_action_CXX=immediate
16153 fi
16154else
16155 # We cannot hardcode anything, or else we can only hardcode existing
16156 # directories.
16157 hardcode_action_CXX=unsupported
16158fi
16159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16160$as_echo "$hardcode_action_CXX" >&6; }
16161
16162if test relink = "$hardcode_action_CXX" ||
16163 test yes = "$inherit_rpath_CXX"; then
16164 # Fast installation is not supported
16165 enable_fast_install=no
16166elif test yes = "$shlibpath_overrides_runpath" ||
16167 test no = "$enable_shared"; then
16168 # Fast installation is not necessary
16169 enable_fast_install=needless
16170fi
16171
16172
16173
16174
16175
16176
16177
16178 fi # test -n "$compiler"
16179
16180 CC=$lt_save_CC
16181 CFLAGS=$lt_save_CFLAGS
16182 LDCXX=$LD
16183 LD=$lt_save_LD
16184 GCC=$lt_save_GCC
16185 with_gnu_ld=$lt_save_with_gnu_ld
16186 lt_cv_path_LDCXX=$lt_cv_path_LD
16187 lt_cv_path_LD=$lt_save_path_LD
16188 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16189 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16190fi # test yes != "$_lt_caught_CXX_error"
16191
16192ac_ext=c
16193ac_cpp='$CPP $CPPFLAGS'
16194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16196ac_compiler_gnu=$ac_cv_c_compiler_gnu
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212 ac_config_commands="$ac_config_commands libtool"
16213
16214
16215
16216
16217# Only expand once:
16218
16219
16220if test -n "$ac_tool_prefix"; then
16221 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16222set dummy ${ac_tool_prefix}windres; ac_word=$2
16223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16224$as_echo_n "checking for $ac_word... " >&6; }
16225if ${ac_cv_prog_RC+:} false; then :
16226 $as_echo_n "(cached) " >&6
16227else
16228 if test -n "$RC"; then
16229 ac_cv_prog_RC="$RC" # Let the user override the test.
16230else
16231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16232for as_dir in $PATH
16233do
16234 IFS=$as_save_IFS
16235 test -z "$as_dir" && as_dir=.
16236 for ac_exec_ext in '' $ac_executable_extensions; do
16237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16238 ac_cv_prog_RC="${ac_tool_prefix}windres"
16239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16240 break 2
16241 fi
16242done
16243 done
16244IFS=$as_save_IFS
16245
16246fi
16247fi
16248RC=$ac_cv_prog_RC
16249if test -n "$RC"; then
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
16251$as_echo "$RC" >&6; }
16252else
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16254$as_echo "no" >&6; }
16255fi
16256
16257
16258fi
16259if test -z "$ac_cv_prog_RC"; then
16260 ac_ct_RC=$RC
16261 # Extract the first word of "windres", so it can be a program name with args.
16262set dummy windres; ac_word=$2
16263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16264$as_echo_n "checking for $ac_word... " >&6; }
16265if ${ac_cv_prog_ac_ct_RC+:} false; then :
16266 $as_echo_n "(cached) " >&6
16267else
16268 if test -n "$ac_ct_RC"; then
16269 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
16270else
16271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16272for as_dir in $PATH
16273do
16274 IFS=$as_save_IFS
16275 test -z "$as_dir" && as_dir=.
16276 for ac_exec_ext in '' $ac_executable_extensions; do
16277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16278 ac_cv_prog_ac_ct_RC="windres"
16279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16280 break 2
16281 fi
16282done
16283 done
16284IFS=$as_save_IFS
16285
16286fi
16287fi
16288ac_ct_RC=$ac_cv_prog_ac_ct_RC
16289if test -n "$ac_ct_RC"; then
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
16291$as_echo "$ac_ct_RC" >&6; }
16292else
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16294$as_echo "no" >&6; }
16295fi
16296
16297 if test "x$ac_ct_RC" = x; then
16298 RC=""
16299 else
16300 case $cross_compiling:$ac_tool_warned in
16301yes:)
16302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16304ac_tool_warned=yes ;;
16305esac
16306 RC=$ac_ct_RC
16307 fi
16308else
16309 RC="$ac_cv_prog_RC"
16310fi
16311
16312
16313
16314# Source file extension for RC test sources.
16315ac_ext=rc
16316
16317# Object file extension for compiled RC test sources.
16318objext=o
16319objext_RC=$objext
16320
16321# Code to be used in simple compile tests
16322lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
16323
16324# Code to be used in simple link tests
16325lt_simple_link_test_code=$lt_simple_compile_test_code
16326
16327# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16328
16329
16330
16331
16332
16333
16334# If no C compiler was specified, use CC.
16335LTCC=${LTCC-"$CC"}
16336
16337# If no C compiler flags were specified, use CFLAGS.
16338LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16339
16340# Allow CC to be a program name with arguments.
16341compiler=$CC
16342
16343
16344# save warnings/boilerplate of simple test code
16345ac_outfile=conftest.$ac_objext
16346echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16347eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16348_lt_compiler_boilerplate=`cat conftest.err`
16349$RM conftest*
16350
16351ac_outfile=conftest.$ac_objext
16352echo "$lt_simple_link_test_code" >conftest.$ac_ext
16353eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16354_lt_linker_boilerplate=`cat conftest.err`
16355$RM -r conftest*
16356
16357
16358# Allow CC to be a program name with arguments.
16359lt_save_CC=$CC
16360lt_save_CFLAGS=$CFLAGS
16361lt_save_GCC=$GCC
16362GCC=
16363CC=${RC-"windres"}
16364CFLAGS=
16365compiler=$CC
16366compiler_RC=$CC
16367func_cc_basename $compiler
16368cc_basename=$func_cc_basename_result
16369
16370lt_cv_prog_compiler_c_o_RC=yes
16371
16372if test -n "$compiler"; then
16373 :
16374
16375
16376
16377fi
16378
16379GCC=$lt_save_GCC
16380ac_ext=c
16381ac_cpp='$CPP $CPPFLAGS'
16382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16384ac_compiler_gnu=$ac_cv_c_compiler_gnu
16385
16386CC=$lt_save_CC
16387CFLAGS=$lt_save_CFLAGS
16388
16389
16390
16391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16392$as_echo_n "checking whether ln -s works... " >&6; }
16393LN_S=$as_ln_s
16394if test "$LN_S" = "ln -s"; then
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16396$as_echo "yes" >&6; }
16397else
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16399$as_echo "no, using $LN_S" >&6; }
16400fi
16401
16402
16403#------------------------------------------------------------------------------------
16404# Rules for library version information:
16405#
16406# 1. Start with version information of `0:0:0' for each libtool library.
16407# 2. Update the version information only immediately before a public release of
16408# your software. More frequent updates are unnecessary, and only guarantee
16409# that the current interface number gets larger faster.
16410# 3. If the library source code has changed at all since the last update, then
16411# increment revision (`c:r:a' becomes `c:r+1:a').
16412# 4. If any interfaces have been added, removed, or changed since the last update,
16413# increment current, and set revision to 0.
16414# 5. If any interfaces have been added since the last public release, then increment
16415# age.
16416# 6. If any interfaces have been removed since the last public release, then set age
16417# to 0.
16418
16419SHARED_VERSION_INFO="1:8:1"
16420
16421
16422
16423
16424
16425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16426$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16427set x ${MAKE-make}
16428ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16429if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16430 $as_echo_n "(cached) " >&6
16431else
16432 cat >conftest.make <<\_ACEOF
16433SHELL = /bin/sh
16434all:
16435 @echo '@@@%%%=$(MAKE)=@@@%%%'
16436_ACEOF
16437# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16438case `${MAKE-make} -f conftest.make 2>/dev/null` in
16439 *@@@%%%=?*=@@@%%%*)
16440 eval ac_cv_prog_make_${ac_make}_set=yes;;
16441 *)
16442 eval ac_cv_prog_make_${ac_make}_set=no;;
16443esac
16444rm -f conftest.make
16445fi
16446if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16448$as_echo "yes" >&6; }
16449 SET_MAKE=
16450else
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16452$as_echo "no" >&6; }
16453 SET_MAKE="MAKE=${MAKE-make}"
16454fi
16455
16456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16457$as_echo_n "checking whether ln -s works... " >&6; }
16458LN_S=$as_ln_s
16459if test "$LN_S" = "ln -s"; then
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16461$as_echo "yes" >&6; }
16462else
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16464$as_echo "no, using $LN_S" >&6; }
16465fi
16466
16467
16468
16469if test "x-$build_os-$host_os-$target_os" = x-mingw32-mingw32-mingw32 ; then
16470 # Extract the first word of "dlltool", so it can be a program name with args.
16471set dummy dlltool; ac_word=$2
16472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16473$as_echo_n "checking for $ac_word... " >&6; }
16474if ${ac_cv_prog_DLLTOOL+:} false; then :
16475 $as_echo_n "(cached) " >&6
16476else
16477 if test -n "$DLLTOOL"; then
16478 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16479else
16480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16481for as_dir in $PATH
16482do
16483 IFS=$as_save_IFS
16484 test -z "$as_dir" && as_dir=.
16485 for ac_exec_ext in '' $ac_executable_extensions; do
16486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16487 ac_cv_prog_DLLTOOL="dlltool"
16488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16489 break 2
16490 fi
16491done
16492 done
16493IFS=$as_save_IFS
16494
16495fi
16496fi
16497DLLTOOL=$ac_cv_prog_DLLTOOL
16498if test -n "$DLLTOOL"; then
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
16500$as_echo "$DLLTOOL" >&6; }
16501else
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16503$as_echo "no" >&6; }
16504fi
16505
16506
16507 # Extract the first word of "dllwrap", so it can be a program name with args.
16508set dummy dllwrap; ac_word=$2
16509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16510$as_echo_n "checking for $ac_word... " >&6; }
16511if ${ac_cv_prog_DLLWRAP+:} false; then :
16512 $as_echo_n "(cached) " >&6
16513else
16514 if test -n "$DLLWRAP"; then
16515 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
16516else
16517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16518for as_dir in $PATH
16519do
16520 IFS=$as_save_IFS
16521 test -z "$as_dir" && as_dir=.
16522 for ac_exec_ext in '' $ac_executable_extensions; do
16523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16524 ac_cv_prog_DLLWRAP="dllwrap"
16525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16526 break 2
16527 fi
16528done
16529 done
16530IFS=$as_save_IFS
16531
16532fi
16533fi
16534DLLWRAP=$ac_cv_prog_DLLWRAP
16535if test -n "$DLLWRAP"; then
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
16537$as_echo "$DLLWRAP" >&6; }
16538else
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16540$as_echo "no" >&6; }
16541fi
16542
16543
16544 # Extract the first word of "pexports", so it can be a program name with args.
16545set dummy pexports; ac_word=$2
16546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16547$as_echo_n "checking for $ac_word... " >&6; }
16548if ${ac_cv_prog_PEXPORTS+:} false; then :
16549 $as_echo_n "(cached) " >&6
16550else
16551 if test -n "$PEXPORTS"; then
16552 ac_cv_prog_PEXPORTS="$PEXPORTS" # Let the user override the test.
16553else
16554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16555for as_dir in $PATH
16556do
16557 IFS=$as_save_IFS
16558 test -z "$as_dir" && as_dir=.
16559 for ac_exec_ext in '' $ac_executable_extensions; do
16560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16561 ac_cv_prog_PEXPORTS="pexports"
16562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16563 break 2
16564 fi
16565done
16566 done
16567IFS=$as_save_IFS
16568
16569fi
16570fi
16571PEXPORTS=$ac_cv_prog_PEXPORTS
16572if test -n "$PEXPORTS"; then
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PEXPORTS" >&5
16574$as_echo "$PEXPORTS" >&6; }
16575else
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16577$as_echo "no" >&6; }
16578fi
16579
16580
16581 fi
16582
16583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16584$as_echo_n "checking for ANSI C header files... " >&6; }
16585if ${ac_cv_header_stdc+:} false; then :
16586 $as_echo_n "(cached) " >&6
16587else
16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589/* end confdefs.h. */
16590#include <stdlib.h>
16591#include <stdarg.h>
16592#include <string.h>
16593#include <float.h>
16594
16595int
16596main ()
16597{
16598
16599 ;
16600 return 0;
16601}
16602_ACEOF
16603if ac_fn_c_try_compile "$LINENO"; then :
16604 ac_cv_header_stdc=yes
16605else
16606 ac_cv_header_stdc=no
16607fi
16608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16609
16610if test $ac_cv_header_stdc = yes; then
16611 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16613/* end confdefs.h. */
16614#include <string.h>
16615
16616_ACEOF
16617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16618 $EGREP "memchr" >/dev/null 2>&1; then :
16619
16620else
16621 ac_cv_header_stdc=no
16622fi
16623rm -f conftest*
16624
16625fi
16626
16627if test $ac_cv_header_stdc = yes; then
16628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630/* end confdefs.h. */
16631#include <stdlib.h>
16632
16633_ACEOF
16634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16635 $EGREP "free" >/dev/null 2>&1; then :
16636
16637else
16638 ac_cv_header_stdc=no
16639fi
16640rm -f conftest*
16641
16642fi
16643
16644if test $ac_cv_header_stdc = yes; then
16645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16646 if test "$cross_compiling" = yes; then :
16647 :
16648else
16649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16650/* end confdefs.h. */
16651#include <ctype.h>
16652#include <stdlib.h>
16653#if ((' ' & 0x0FF) == 0x020)
16654# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16655# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16656#else
16657# define ISLOWER(c) \
16658 (('a' <= (c) && (c) <= 'i') \
16659 || ('j' <= (c) && (c) <= 'r') \
16660 || ('s' <= (c) && (c) <= 'z'))
16661# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16662#endif
16663
16664#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16665int
16666main ()
16667{
16668 int i;
16669 for (i = 0; i < 256; i++)
16670 if (XOR (islower (i), ISLOWER (i))
16671 || toupper (i) != TOUPPER (i))
16672 return 2;
16673 return 0;
16674}
16675_ACEOF
16676if ac_fn_c_try_run "$LINENO"; then :
16677
16678else
16679 ac_cv_header_stdc=no
16680fi
16681rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16682 conftest.$ac_objext conftest.beam conftest.$ac_ext
16683fi
16684
16685fi
16686fi
16687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16688$as_echo "$ac_cv_header_stdc" >&6; }
16689if test $ac_cv_header_stdc = yes; then
16690
16691$as_echo "#define STDC_HEADERS 1" >>confdefs.h
16692
16693fi
16694
16695
16696for ac_header in stdint.h sys/times.h
16697do :
16698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16699ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16700if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16701 cat >>confdefs.h <<_ACEOF
16702#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16703_ACEOF
16704
16705fi
16706
16707done
16708
16709
16710#====================================================================================
16711# Couple of initializations here. Fill in real values later.
16712
16713SHLIB_VERSION_ARG=""
16714
16715#====================================================================================
16716# Finished checking, handle options.
16717
16718# Check whether --enable-gcc-werror was given.
16719if test "${enable_gcc_werror+set}" = set; then :
16720 enableval=$enable_gcc_werror; ac_arg_gcc_werror=yes
16721else
16722 ac_arg_gcc_werror=no
16723fi
16724
16725
16726# Check whether --enable-gcc-pipe was given.
16727if test "${enable_gcc_pipe+set}" = set; then :
16728 enableval=$enable_gcc_pipe; ac_arg_gcc_pipe="N"
16729else
16730 ac_arg_gcc_pipe="Y"
16731fi
16732
16733
16734# Check whether --enable-gcc-opt was given.
16735if test "${enable_gcc_opt+set}" = set; then :
16736 enableval=$enable_gcc_opt; ac_arg_gcc_opt="N"
16737else
16738 ac_arg_gcc_opt="Y"
16739fi
16740
16741
16742# Check whether --enable-fftw was given.
16743if test "${enable_fftw+set}" = set; then :
16744 enableval=$enable_fftw; ac_arg_fftw="N"
16745else
16746 ac_arg_fftw="Y"
16747fi
16748
16749
16750# Check whether --enable-cpu-clip was given.
16751if test "${enable_cpu_clip+set}" = set; then :
16752 enableval=$enable_cpu_clip; ac_arg_cpu_clip="N"
16753else
16754 ac_arg_cpu_clip="Y"
16755fi
16756
16757
16758#====================================================================================
16759# Check types and their sizes.
16760
16761# The cast to long int works around a bug in the HP C Compiler
16762# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16763# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16764# This bug is HP SR number 8606223364.
16765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16766$as_echo_n "checking size of int... " >&6; }
16767if ${ac_cv_sizeof_int+:} false; then :
16768 $as_echo_n "(cached) " >&6
16769else
16770 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16771
16772else
16773 if test "$ac_cv_type_int" = yes; then
16774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16776as_fn_error 77 "cannot compute sizeof (int)
16777See \`config.log' for more details" "$LINENO" 5; }
16778 else
16779 ac_cv_sizeof_int=0
16780 fi
16781fi
16782
16783fi
16784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16785$as_echo "$ac_cv_sizeof_int" >&6; }
16786
16787
16788
16789cat >>confdefs.h <<_ACEOF
16790#define SIZEOF_INT $ac_cv_sizeof_int
16791_ACEOF
16792
16793
16794# The cast to long int works around a bug in the HP C Compiler
16795# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16796# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16797# This bug is HP SR number 8606223364.
16798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16799$as_echo_n "checking size of long... " >&6; }
16800if ${ac_cv_sizeof_long+:} false; then :
16801 $as_echo_n "(cached) " >&6
16802else
16803 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16804
16805else
16806 if test "$ac_cv_type_long" = yes; then
16807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16809as_fn_error 77 "cannot compute sizeof (long)
16810See \`config.log' for more details" "$LINENO" 5; }
16811 else
16812 ac_cv_sizeof_long=0
16813 fi
16814fi
16815
16816fi
16817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16818$as_echo "$ac_cv_sizeof_long" >&6; }
16819
16820
16821
16822cat >>confdefs.h <<_ACEOF
16823#define SIZEOF_LONG $ac_cv_sizeof_long
16824_ACEOF
16825
16826
16827# The cast to long int works around a bug in the HP C Compiler
16828# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16829# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16830# This bug is HP SR number 8606223364.
16831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
16832$as_echo_n "checking size of float... " >&6; }
16833if ${ac_cv_sizeof_float+:} false; then :
16834 $as_echo_n "(cached) " >&6
16835else
16836 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
16837
16838else
16839 if test "$ac_cv_type_float" = yes; then
16840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16842as_fn_error 77 "cannot compute sizeof (float)
16843See \`config.log' for more details" "$LINENO" 5; }
16844 else
16845 ac_cv_sizeof_float=0
16846 fi
16847fi
16848
16849fi
16850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
16851$as_echo "$ac_cv_sizeof_float" >&6; }
16852
16853
16854
16855cat >>confdefs.h <<_ACEOF
16856#define SIZEOF_FLOAT $ac_cv_sizeof_float
16857_ACEOF
16858
16859
16860# The cast to long int works around a bug in the HP C Compiler
16861# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16862# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16863# This bug is HP SR number 8606223364.
16864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
16865$as_echo_n "checking size of double... " >&6; }
16866if ${ac_cv_sizeof_double+:} false; then :
16867 $as_echo_n "(cached) " >&6
16868else
16869 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
16870
16871else
16872 if test "$ac_cv_type_double" = yes; then
16873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16875as_fn_error 77 "cannot compute sizeof (double)
16876See \`config.log' for more details" "$LINENO" 5; }
16877 else
16878 ac_cv_sizeof_double=0
16879 fi
16880fi
16881
16882fi
16883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
16884$as_echo "$ac_cv_sizeof_double" >&6; }
16885
16886
16887
16888cat >>confdefs.h <<_ACEOF
16889#define SIZEOF_DOUBLE $ac_cv_sizeof_double
16890_ACEOF
16891
16892
16893
16894#====================================================================================
16895# Determine endian-ness of target processor.
16896
16897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking processor byte ordering" >&5
16898$as_echo_n "checking processor byte ordering... " >&6; }
16899if ${ac_cv_c_byte_order+:} false; then :
16900 $as_echo_n "(cached) " >&6
16901else
16902 # Initialize to unknown
16903ac_cv_c_byte_order=unknown
16904
16905if test x$ac_cv_header_endian_h = xyes ; then
16906
16907 # First try <endian.h> which should set BYTE_ORDER.
16908
16909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910/* end confdefs.h. */
16911
16912 #include <endian.h>
16913 #if BYTE_ORDER != LITTLE_ENDIAN
16914 not big endian
16915 #endif
16916
16917int
16918main ()
16919{
16920return 0 ;
16921 ;
16922 return 0;
16923}
16924_ACEOF
16925if ac_fn_c_try_link "$LINENO"; then :
16926 ac_cv_c_byte_order=little
16927
16928fi
16929rm -f core conftest.err conftest.$ac_objext \
16930 conftest$ac_exeext conftest.$ac_ext
16931
16932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16933/* end confdefs.h. */
16934
16935 #include <endian.h>
16936 #if BYTE_ORDER != BIG_ENDIAN
16937 not big endian
16938 #endif
16939
16940int
16941main ()
16942{
16943return 0 ;
16944 ;
16945 return 0;
16946}
16947_ACEOF
16948if ac_fn_c_try_link "$LINENO"; then :
16949 ac_cv_c_byte_order=big
16950
16951fi
16952rm -f core conftest.err conftest.$ac_objext \
16953 conftest$ac_exeext conftest.$ac_ext
16954
16955 fi
16956
16957if test $ac_cv_c_byte_order = unknown ; then
16958
16959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16960/* end confdefs.h. */
16961
16962 #include <sys/types.h>
16963 #include <sys/param.h>
16964 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16965 bogus endian macros
16966 #endif
16967
16968int
16969main ()
16970{
16971return 0 ;
16972 ;
16973 return 0;
16974}
16975_ACEOF
16976if ac_fn_c_try_link "$LINENO"; then :
16977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16978/* end confdefs.h. */
16979
16980 #include <sys/types.h>
16981 #include <sys/param.h>
16982 #if BYTE_ORDER != LITTLE_ENDIAN
16983 not big endian
16984 #endif
16985
16986int
16987main ()
16988{
16989return 0 ;
16990 ;
16991 return 0;
16992}
16993_ACEOF
16994if ac_fn_c_try_link "$LINENO"; then :
16995 ac_cv_c_byte_order=little
16996
16997fi
16998rm -f core conftest.err conftest.$ac_objext \
16999 conftest$ac_exeext conftest.$ac_ext
17000
17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17002/* end confdefs.h. */
17003
17004 #include <sys/types.h>
17005 #include <sys/param.h>
17006 #if BYTE_ORDER != LITTLE_ENDIAN
17007 not big endian
17008 #endif
17009
17010int
17011main ()
17012{
17013return 0 ;
17014 ;
17015 return 0;
17016}
17017_ACEOF
17018if ac_fn_c_try_link "$LINENO"; then :
17019 ac_cv_c_byte_order=little
17020
17021fi
17022rm -f core conftest.err conftest.$ac_objext \
17023 conftest$ac_exeext conftest.$ac_ext
17024
17025
17026fi
17027rm -f core conftest.err conftest.$ac_objext \
17028 conftest$ac_exeext conftest.$ac_ext
17029
17030 fi
17031
17032if test $ac_cv_c_byte_order = unknown ; then
17033 if test $cross_compiling = yes ; then
17034 # This is the last resort. Try to guess the target processor endian-ness
17035 # by looking at the target CPU type.
17036
17037 case "$target_cpu" in
17038 alpha* | i?86* | mipsel* | ia64*)
17039 ac_cv_c_byte_order=little
17040 ;;
17041
17042 m68* | mips* | powerpc* | hppa* | sparc*)
17043 ac_cv_c_byte_order=big
17044 ;;
17045
17046 esac
17047
17048 else
17049 if test "$cross_compiling" = yes; then :
17050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17052as_fn_error $? "cannot run test program while cross compiling
17053See \`config.log' for more details" "$LINENO" 5; }
17054else
17055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17056/* end confdefs.h. */
17057
17058 int main (void)
17059 { /* Are we little or big endian? From Harbison&Steele. */
17060 union
17061 { long l ;
17062 char c [sizeof (long)] ;
17063 } u ;
17064 u.l = 1 ;
17065 return (u.c [sizeof (long) - 1] == 1);
17066 }
17067
17068_ACEOF
17069if ac_fn_c_try_run "$LINENO"; then :
17070
17071else
17072 ac_cv_c_byte_order=big
17073fi
17074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17075 conftest.$ac_objext conftest.beam conftest.$ac_ext
17076fi
17077
17078
17079 if test "$cross_compiling" = yes; then :
17080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17082as_fn_error $? "cannot run test program while cross compiling
17083See \`config.log' for more details" "$LINENO" 5; }
17084else
17085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17086/* end confdefs.h. */
17087int main (void)
17088 { /* Are we little or big endian? From Harbison&Steele. */
17089 union
17090 { long l ;
17091 char c [sizeof (long)] ;
17092 } u ;
17093 u.l = 1 ;
17094 return (u.c [0] == 1);
17095 }
17096_ACEOF
17097if ac_fn_c_try_run "$LINENO"; then :
17098
17099else
17100 ac_cv_c_byte_order=little
17101fi
17102rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17103 conftest.$ac_objext conftest.beam conftest.$ac_ext
17104fi
17105
17106 fi
17107 fi
17108
17109
17110fi
17111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_byte_order" >&5
17112$as_echo "$ac_cv_c_byte_order" >&6; }
17113
17114if test $ac_cv_c_byte_order = big ; then
17115 ac_cv_c_big_endian=1
17116 ac_cv_c_little_endian=0
17117elif test $ac_cv_c_byte_order = little ; then
17118 ac_cv_c_big_endian=0
17119 ac_cv_c_little_endian=1
17120else
17121 ac_cv_c_big_endian=0
17122 ac_cv_c_little_endian=0
17123
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
17125$as_echo "$as_me: WARNING: *****************************************************************" >&2;}
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Not able to determine endian-ness of target processor. " >&5
17127$as_echo "$as_me: WARNING: *** Not able to determine endian-ness of target processor. " >&2;}
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&5
17129$as_echo "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in " >&2;}
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** src/config.h may need to be hand editied. " >&5
17131$as_echo "$as_me: WARNING: *** src/config.h may need to be hand editied. " >&2;}
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *****************************************************************" >&5
17133$as_echo "$as_me: WARNING: *****************************************************************" >&2;}
17134 fi
17135
17136
17137
17138
17139
17140cat >>confdefs.h <<_ACEOF
17141#define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian}
17142_ACEOF
17143
17144
17145cat >>confdefs.h <<_ACEOF
17146#define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian}
17147_ACEOF
17148
17149
17150#====================================================================================
17151# Check for functions.
17152
17153for ac_func in malloc calloc free memcpy memmove alarm signal
17154do :
17155 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17156ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17157if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17158 cat >>confdefs.h <<_ACEOF
17159#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17160_ACEOF
17161
17162fi
17163done
17164
17165
17166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
17167$as_echo_n "checking for floor in -lm... " >&6; }
17168if ${ac_cv_lib_m_floor+:} false; then :
17169 $as_echo_n "(cached) " >&6
17170else
17171 ac_check_lib_save_LIBS=$LIBS
17172LIBS="-lm $LIBS"
17173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174/* end confdefs.h. */
17175
17176/* Override any GCC internal prototype to avoid an error.
17177 Use char because int might match the return type of a GCC
17178 builtin and then its argument prototype would still apply. */
17179#ifdef __cplusplus
17180extern "C"
17181#endif
17182char floor ();
17183int
17184main ()
17185{
17186return floor ();
17187 ;
17188 return 0;
17189}
17190_ACEOF
17191if ac_fn_c_try_link "$LINENO"; then :
17192 ac_cv_lib_m_floor=yes
17193else
17194 ac_cv_lib_m_floor=no
17195fi
17196rm -f core conftest.err conftest.$ac_objext \
17197 conftest$ac_exeext conftest.$ac_ext
17198LIBS=$ac_check_lib_save_LIBS
17199fi
17200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
17201$as_echo "$ac_cv_lib_m_floor" >&6; }
17202if test "x$ac_cv_lib_m_floor" = xyes; then :
17203 cat >>confdefs.h <<_ACEOF
17204#define HAVE_LIBM 1
17205_ACEOF
17206
17207 LIBS="-lm $LIBS"
17208
17209fi
17210
17211for ac_func in floor ceil fmod
17212do :
17213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17214ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17215if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17216 cat >>confdefs.h <<_ACEOF
17217#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17218_ACEOF
17219
17220fi
17221done
17222
17223
17224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGALRM" >&5
17225$as_echo_n "checking for SIGALRM... " >&6; }
17226if ${ac_cv_signal_SIGALRM+:} false; then :
17227 $as_echo_n "(cached) " >&6
17228else
17229
17230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17231/* end confdefs.h. */
17232
17233#include <signal.h>
17234
17235
17236int
17237main ()
17238{
17239signal(SIGALRM, SIG_DFL) ;
17240 ;
17241 return 0;
17242}
17243_ACEOF
17244if ac_fn_c_try_link "$LINENO"; then :
17245 ac_cv_signal_SIGALRM=yes
17246else
17247 ac_cv_signal_SIGALRM=no
17248fi
17249rm -f core conftest.err conftest.$ac_objext \
17250 conftest$ac_exeext conftest.$ac_ext
17251
17252
17253fi
17254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_signal_SIGALRM" >&5
17255$as_echo "$ac_cv_signal_SIGALRM" >&6; }
17256
17257if test "$ac_cv_signal_SIGALRM" = yes; then
17258
17259$as_echo "#define HAVE_SIGALRM 1" >>confdefs.h
17260
17261fi
17262
17263
17264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrint" >&5
17265$as_echo_n "checking for lrint... " >&6; }
17266if ${ac_cv_c99_lrint+:} false; then :
17267 $as_echo_n "(cached) " >&6
17268else
17269
17270lrint_save_CFLAGS=$CFLAGS
17271CFLAGS="-lm"
17272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273/* end confdefs.h. */
17274
17275#define _ISOC9X_SOURCE 1
17276#define _ISOC99_SOURCE 1
17277#define __USE_ISOC99 1
17278#define __USE_ISOC9X 1
17279
17280#include <math.h>
17281
17282int
17283main ()
17284{
17285if (!lrint(3.14159)) lrint(2.7183);
17286 ;
17287 return 0;
17288}
17289_ACEOF
17290if ac_fn_c_try_link "$LINENO"; then :
17291 ac_cv_c99_lrint=yes
17292else
17293 ac_cv_c99_lrint=no
17294fi
17295rm -f core conftest.err conftest.$ac_objext \
17296 conftest$ac_exeext conftest.$ac_ext
17297
17298CFLAGS=$lrint_save_CFLAGS
17299
17300
17301fi
17302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrint" >&5
17303$as_echo "$ac_cv_c99_lrint" >&6; }
17304
17305if test "$ac_cv_c99_lrint" = yes; then
17306
17307$as_echo "#define HAVE_LRINT 1" >>confdefs.h
17308
17309fi
17310
17311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf" >&5
17312$as_echo_n "checking for lrintf... " >&6; }
17313if ${ac_cv_c99_lrintf+:} false; then :
17314 $as_echo_n "(cached) " >&6
17315else
17316
17317lrintf_save_CFLAGS=$CFLAGS
17318CFLAGS="-lm"
17319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17320/* end confdefs.h. */
17321
17322#define _ISOC9X_SOURCE 1
17323#define _ISOC99_SOURCE 1
17324#define __USE_ISOC99 1
17325#define __USE_ISOC9X 1
17326
17327#include <math.h>
17328
17329int
17330main ()
17331{
17332if (!lrintf(3.14159)) lrintf(2.7183);
17333 ;
17334 return 0;
17335}
17336_ACEOF
17337if ac_fn_c_try_link "$LINENO"; then :
17338 ac_cv_c99_lrintf=yes
17339else
17340 ac_cv_c99_lrintf=no
17341fi
17342rm -f core conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
17344
17345CFLAGS=$lrintf_save_CFLAGS
17346
17347
17348fi
17349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_lrintf" >&5
17350$as_echo "$ac_cv_c99_lrintf" >&6; }
17351
17352if test "$ac_cv_c99_lrintf" = yes; then
17353
17354$as_echo "#define HAVE_LRINTF 1" >>confdefs.h
17355
17356fi
17357
17358# AC_C99_FUNC_LLRINT Don't need this (yet?).
17359
17360case "x$ac_cv_c99_lrint$ac_cv_c99_lrintf" in
17361 xyesyes)
17362 ;;
17363 *)
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&5
17365$as_echo "$as_me: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&2;}
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&5
17367$as_echo "$as_me: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&2;}
17368 ;;
17369 esac
17370
17371#====================================================================================
17372# Determine if the processor can do clipping on float to int conversions.
17373
17374if test x$ac_arg_cpu_clip = "xY" ; then
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking processor clipping capabilities" >&5
17376$as_echo_n "checking processor clipping capabilities... " >&6; }
17377if ${ac_cv_c_clip_type+:} false; then :
17378 $as_echo_n "(cached) " >&6
17379else
17380 # Initialize to unknown
17381ac_cv_c_clip_positive=unknown
17382ac_cv_c_clip_negative=unknown
17383
17384
17385if test $ac_cv_c_clip_positive = unknown ; then
17386 if test "$cross_compiling" = yes; then :
17387 ac_cv_c_clip_positive=unknown
17388
17389else
17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391/* end confdefs.h. */
17392
17393 #define _ISOC9X_SOURCE 1
17394 #define _ISOC99_SOURCE 1
17395 #define __USE_ISOC99 1
17396 #define __USE_ISOC9X 1
17397 #include <math.h>
17398 int main (void)
17399 { double fval ;
17400 int k, ival ;
17401
17402 fval = 1.0 * 0x7FFFFFFF ;
17403 for (k = 0 ; k < 100 ; k++)
17404 { ival = (lrint (fval)) >> 24 ;
17405 if (ival != 127)
17406 return 1 ;
17407
17408 fval *= 1.2499999 ;
17409 } ;
17410
17411 return 0 ;
17412 }
17413
17414_ACEOF
17415if ac_fn_c_try_run "$LINENO"; then :
17416 ac_cv_c_clip_positive=yes
17417else
17418 ac_cv_c_clip_positive=no
17419fi
17420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17421 conftest.$ac_objext conftest.beam conftest.$ac_ext
17422fi
17423
17424
17425 if test "$cross_compiling" = yes; then :
17426 ac_cv_c_clip_negative=unknown
17427
17428else
17429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17430/* end confdefs.h. */
17431
17432 #define _ISOC9X_SOURCE 1
17433 #define _ISOC99_SOURCE 1
17434 #define __USE_ISOC99 1
17435 #define __USE_ISOC9X 1
17436 #include <math.h>
17437 int main (void)
17438 { double fval ;
17439 int k, ival ;
17440
17441 fval = -8.0 * 0x10000000 ;
17442 for (k = 0 ; k < 100 ; k++)
17443 { ival = (lrint (fval)) >> 24 ;
17444 if (ival != -128)
17445 return 1 ;
17446
17447 fval *= 1.2499999 ;
17448 } ;
17449
17450 return 0 ;
17451 }
17452
17453_ACEOF
17454if ac_fn_c_try_run "$LINENO"; then :
17455 ac_cv_c_clip_negative=yes
17456else
17457 ac_cv_c_clip_negative=no
17458fi
17459rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17460 conftest.$ac_objext conftest.beam conftest.$ac_ext
17461fi
17462
17463 fi
17464
17465if test $ac_cv_c_clip_positive = yes ; then
17466 ac_cv_c_clip_positive=1
17467else
17468 ac_cv_c_clip_positive=0
17469 fi
17470
17471if test $ac_cv_c_clip_negative = yes ; then
17472 ac_cv_c_clip_negative=1
17473else
17474 ac_cv_c_clip_negative=0
17475 fi
17476
17477
17478case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
17479 "00")
17480 ac_cv_c_clip_type="none"
17481 ;;
17482 "10")
17483 ac_cv_c_clip_type="positive"
17484 ;;
17485 "01")
17486 ac_cv_c_clip_type="negative"
17487 ;;
17488 "11")
17489 ac_cv_c_clip_type="both"
17490 ;;
17491 esac
17492
17493
17494
17495fi
17496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_clip_type" >&5
17497$as_echo "$ac_cv_c_clip_type" >&6; }
17498
17499
17500
17501else
17502 echo "checking processor clipping capabilities... disabled"
17503 ac_cv_c_clip_positive=0
17504 ac_cv_c_clip_negative=0
17505 fi
17506
17507
17508cat >>confdefs.h <<_ACEOF
17509#define CPU_CLIPS_POSITIVE ${ac_cv_c_clip_positive}
17510_ACEOF
17511
17512
17513cat >>confdefs.h <<_ACEOF
17514#define CPU_CLIPS_NEGATIVE ${ac_cv_c_clip_negative}
17515_ACEOF
17516
17517
17518#====================================================================================
17519# Check for libsndfile which is required for the test and example programs.
17520
17521# Check whether --enable-sndfile was given.
17522if test "${enable_sndfile+set}" = set; then :
17523 enableval=$enable_sndfile; enable_sndfile=$enableval
17524else
17525 enable_sndfile=yes
17526fi
17527
17528
17529# Check for pkg-config outside the if statement.
17530
17531
17532
17533
17534
17535
17536
17537if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17538 if test -n "$ac_tool_prefix"; then
17539 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17540set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17542$as_echo_n "checking for $ac_word... " >&6; }
17543if ${ac_cv_path_PKG_CONFIG+:} false; then :
17544 $as_echo_n "(cached) " >&6
17545else
17546 case $PKG_CONFIG in
17547 [\\/]* | ?:[\\/]*)
17548 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17549 ;;
17550 *)
17551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17552for as_dir in $PATH
17553do
17554 IFS=$as_save_IFS
17555 test -z "$as_dir" && as_dir=.
17556 for ac_exec_ext in '' $ac_executable_extensions; do
17557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17558 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17560 break 2
17561 fi
17562done
17563 done
17564IFS=$as_save_IFS
17565
17566 ;;
17567esac
17568fi
17569PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17570if test -n "$PKG_CONFIG"; then
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17572$as_echo "$PKG_CONFIG" >&6; }
17573else
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17575$as_echo "no" >&6; }
17576fi
17577
17578
17579fi
17580if test -z "$ac_cv_path_PKG_CONFIG"; then
17581 ac_pt_PKG_CONFIG=$PKG_CONFIG
17582 # Extract the first word of "pkg-config", so it can be a program name with args.
17583set dummy pkg-config; ac_word=$2
17584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17585$as_echo_n "checking for $ac_word... " >&6; }
17586if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17587 $as_echo_n "(cached) " >&6
17588else
17589 case $ac_pt_PKG_CONFIG in
17590 [\\/]* | ?:[\\/]*)
17591 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17592 ;;
17593 *)
17594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17595for as_dir in $PATH
17596do
17597 IFS=$as_save_IFS
17598 test -z "$as_dir" && as_dir=.
17599 for ac_exec_ext in '' $ac_executable_extensions; do
17600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17601 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17603 break 2
17604 fi
17605done
17606 done
17607IFS=$as_save_IFS
17608
17609 ;;
17610esac
17611fi
17612ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17613if test -n "$ac_pt_PKG_CONFIG"; then
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17615$as_echo "$ac_pt_PKG_CONFIG" >&6; }
17616else
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17618$as_echo "no" >&6; }
17619fi
17620
17621 if test "x$ac_pt_PKG_CONFIG" = x; then
17622 PKG_CONFIG=""
17623 else
17624 case $cross_compiling:$ac_tool_warned in
17625yes:)
17626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17628ac_tool_warned=yes ;;
17629esac
17630 PKG_CONFIG=$ac_pt_PKG_CONFIG
17631 fi
17632else
17633 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17634fi
17635
17636fi
17637if test -n "$PKG_CONFIG"; then
17638 _pkg_min_version=0.9.0
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17640$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17641 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17643$as_echo "yes" >&6; }
17644 else
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17646$as_echo "no" >&6; }
17647 PKG_CONFIG=""
17648 fi
17649fi
17650
17651if test "x$enable_sndfile" = "xyes"; then
17652
17653pkg_failed=no
17654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5
17655$as_echo_n "checking for SNDFILE... " >&6; }
17656
17657if test -n "$SNDFILE_CFLAGS"; then
17658 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
17659 elif test -n "$PKG_CONFIG"; then
17660 if test -n "$PKG_CONFIG" && \
17661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.6\""; } >&5
17662 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.6") 2>&5
17663 ac_status=$?
17664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17665 test $ac_status = 0; }; then
17666 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.6" 2>/dev/null`
17667 test "x$?" != "x0" && pkg_failed=yes
17668else
17669 pkg_failed=yes
17670fi
17671 else
17672 pkg_failed=untried
17673fi
17674if test -n "$SNDFILE_LIBS"; then
17675 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
17676 elif test -n "$PKG_CONFIG"; then
17677 if test -n "$PKG_CONFIG" && \
17678 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.6\""; } >&5
17679 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.6") 2>&5
17680 ac_status=$?
17681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17682 test $ac_status = 0; }; then
17683 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.6" 2>/dev/null`
17684 test "x$?" != "x0" && pkg_failed=yes
17685else
17686 pkg_failed=yes
17687fi
17688 else
17689 pkg_failed=untried
17690fi
17691
17692
17693
17694if test $pkg_failed = yes; then
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17696$as_echo "no" >&6; }
17697
17698if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17699 _pkg_short_errors_supported=yes
17700else
17701 _pkg_short_errors_supported=no
17702fi
17703 if test $_pkg_short_errors_supported = yes; then
17704 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.6" 2>&1`
17705 else
17706 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.6" 2>&1`
17707 fi
17708 # Put the nasty error message in config.log where it belongs
17709 echo "$SNDFILE_PKG_ERRORS" >&5
17710
17711 ac_cv_sndfile=0
17712elif test $pkg_failed = untried; then
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714$as_echo "no" >&6; }
17715 ac_cv_sndfile=0
17716else
17717 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
17718 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17720$as_echo "yes" >&6; }
17721 ac_cv_sndfile=1
17722fi
17723else
17724 ac_cv_sndfile=0
17725fi
17726
17727
17728cat >>confdefs.h <<_ACEOF
17729#define HAVE_SNDFILE $ac_cv_sndfile
17730_ACEOF
17731
17732
17733if test x$ac_cv_sndfile = x1 ; then
17734 ac_cv_sndfile=yes
17735 HAVE_SNDFILE=1
17736else
17737 ac_cv_sndfile=no
17738 HAVE_SNDFILE=0
17739 fi
17740
17741#====================================================================================
17742# Check for ALSA.
17743
17744ALSA_LIBS=""
17745
17746if test x$enable_alsa != xno ; then
17747 for ac_header in alsa/asoundlib.h
17748do :
17749 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
17750if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
17751 cat >>confdefs.h <<_ACEOF
17752#define HAVE_ALSA_ASOUNDLIB_H 1
17753_ACEOF
17754
17755fi
17756
17757done
17758
17759 if test x$ac_cv_header_alsa_asoundlib_h = xyes ; then
17760 ALSA_LIBS="-lasound"
17761 enable_alsa=yes
17762 fi
17763 fi
17764
17765#====================================================================================
17766# Check for libfftw3 which is required for the test and example programs.
17767
17768if test $ac_arg_fftw = "Y" ; then
17769
17770pkg_failed=no
17771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW3" >&5
17772$as_echo_n "checking for FFTW3... " >&6; }
17773
17774if test -n "$FFTW3_CFLAGS"; then
17775 pkg_cv_FFTW3_CFLAGS="$FFTW3_CFLAGS"
17776 elif test -n "$PKG_CONFIG"; then
17777 if test -n "$PKG_CONFIG" && \
17778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 0.15.0\""; } >&5
17779 ($PKG_CONFIG --exists --print-errors "fftw3 >= 0.15.0") 2>&5
17780 ac_status=$?
17781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17782 test $ac_status = 0; }; then
17783 pkg_cv_FFTW3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 0.15.0" 2>/dev/null`
17784 test "x$?" != "x0" && pkg_failed=yes
17785else
17786 pkg_failed=yes
17787fi
17788 else
17789 pkg_failed=untried
17790fi
17791if test -n "$FFTW3_LIBS"; then
17792 pkg_cv_FFTW3_LIBS="$FFTW3_LIBS"
17793 elif test -n "$PKG_CONFIG"; then
17794 if test -n "$PKG_CONFIG" && \
17795 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 0.15.0\""; } >&5
17796 ($PKG_CONFIG --exists --print-errors "fftw3 >= 0.15.0") 2>&5
17797 ac_status=$?
17798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17799 test $ac_status = 0; }; then
17800 pkg_cv_FFTW3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 0.15.0" 2>/dev/null`
17801 test "x$?" != "x0" && pkg_failed=yes
17802else
17803 pkg_failed=yes
17804fi
17805 else
17806 pkg_failed=untried
17807fi
17808
17809
17810
17811if test $pkg_failed = yes; then
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17813$as_echo "no" >&6; }
17814
17815if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17816 _pkg_short_errors_supported=yes
17817else
17818 _pkg_short_errors_supported=no
17819fi
17820 if test $_pkg_short_errors_supported = yes; then
17821 FFTW3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 0.15.0" 2>&1`
17822 else
17823 FFTW3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 0.15.0" 2>&1`
17824 fi
17825 # Put the nasty error message in config.log where it belongs
17826 echo "$FFTW3_PKG_ERRORS" >&5
17827
17828 ac_cv_fftw3=0
17829elif test $pkg_failed = untried; then
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17831$as_echo "no" >&6; }
17832 ac_cv_fftw3=0
17833else
17834 FFTW3_CFLAGS=$pkg_cv_FFTW3_CFLAGS
17835 FFTW3_LIBS=$pkg_cv_FFTW3_LIBS
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17837$as_echo "yes" >&6; }
17838 ac_cv_fftw3=1
17839fi
17840
17841cat >>confdefs.h <<_ACEOF
17842#define HAVE_FFTW3 $ac_cv_fftw3
17843_ACEOF
17844
17845
17846 if test x$ac_cv_fftw3 = x1 ; then
17847 ac_cv_fftw3=yes
17848 HAVE_FFTW3=1
17849 fi
17850 fi
17851
17852if test x$ac_cv_fftw3 != xyes ; then
17853 ac_cv_fftw3=no
17854 HAVE_FFTW3=0
17855 fi
17856
17857#====================================================================================
17858# GCC stuff.
17859
17860if test $ac_cv_c_compiler_gnu = yes ; then
17861 CFLAGS="$CFLAGS -std=gnu99 -W -Wstrict-prototypes -Wmissing-prototypes -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wpointer-arith"
17862 # -Wundef -Wbad-function-cast -Wmissing-declarations -Wconversion -Winline"
17863 if test "$ac_arg_gcc_opt" = "N" ; then
17864 temp_CFLAGS=`echo $CFLAGS | sed "s/O2/O0/"`
17865 CFLAGS=$temp_CFLAGS
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Compiler optimisations switched off. ***" >&5
17867$as_echo "$as_me: WARNING: *** Compiler optimisations switched off. ***" >&2;}
17868 fi
17869
17870 # Disable -Wall for Apple Darwin/Rhapsody.
17871 # System headers on these systems are broken.
17872 case "$target_os" in
17873 darwin* | rhapsody*)
17874 temp_CFLAGS=`echo $CFLAGS | sed "s/-Wall//"`
17875 CFLAGS=$temp_CFLAGS
17876 ;;
17877
17878 linux*|kfreebsd*-gnu*|gnu*)
17879 SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
17880 ;;
17881 *)
17882 ;;
17883 esac
17884 if test x$ac_arg_gcc_pipe != "xN" ; then
17885 CFLAGS="$CFLAGS -pipe"
17886 fi
17887
17888 if test x$ac_arg_gcc_werror = "xyes" ; then
17889 CFLAGS="-Werror $CFLAGS"
17890 fi
17891
17892
17893$as_echo "#define COMPILER_IS_GCC 1" >>confdefs.h
17894
17895 GCC_MAJOR_VERSION=`$CC -dumpversion | sed "s/\..*//"`
17896
17897cat >>confdefs.h <<_ACEOF
17898#define GCC_MAJOR_VERSION ${GCC_MAJOR_VERSION}
17899_ACEOF
17900
17901 fi
17902
17903#====================================================================================
17904# Find known target OS.
17905
17906OS_SPECIFIC_INCLUDES=""
17907os_is_win32=0
17908
17909case "$target_os" in
17910 darwin* | rhapsody*)
17911 OS_SPECIFIC_INCLUDES="-fpascal-strings -I/Developer/Headers/FlatCarbon"
17912 OS_SPECIFIC_LINKS="-framework CoreAudio"
17913 ;;
17914 mingw32*)
17915 OS_SPECIFIC_LINKS="-lwinmm"
17916 os_is_win32=1
17917 ;;
17918 *)
17919 OS_SPECIFIC_INCLUDES=""
17920 OS_SPECIFIC_LINKS=""
17921 ;;
17922 esac
17923
17924htmldocdir=$prefix/share/doc/libsamplerate0-dev/html
17925
17926if test $prefix = "NONE" ; then
17927 htmldocdir=/usr/local/share/doc/libsamplerate0-dev/html
17928else
17929 htmldocdir=$prefix/share/doc/libsamplerate0-dev/html
17930 fi
17931
17932#====================================================================================
17933# Now use the information from the checking stage.
17934
17935
17936cat >>confdefs.h <<_ACEOF
17937#define OS_IS_WIN32 ${os_is_win32}
17938_ACEOF
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961ac_config_files="$ac_config_files Makefile M4/Makefile src/Version_script Win32/Makefile Win32/Makefile.mingw src/Makefile examples/Makefile tests/Makefile doc/Makefile libsamplerate.spec samplerate.pc"
17962
17963cat >confcache <<\_ACEOF
17964# This file is a shell script that caches the results of configure
17965# tests run on this system so they can be shared between configure
17966# scripts and configure runs, see configure's option --config-cache.
17967# It is not useful on other systems. If it contains results you don't
17968# want to keep, you may remove or edit it.
17969#
17970# config.status only pays attention to the cache file if you give it
17971# the --recheck option to rerun configure.
17972#
17973# `ac_cv_env_foo' variables (set or unset) will be overridden when
17974# loading this file, other *unset* `ac_cv_foo' will be assigned the
17975# following values.
17976
17977_ACEOF
17978
17979# The following way of writing the cache mishandles newlines in values,
17980# but we know of no workaround that is simple, portable, and efficient.
17981# So, we kill variables containing newlines.
17982# Ultrix sh set writes to stderr and can't be redirected directly,
17983# and sets the high bit in the cache file unless we assign to the vars.
17984(
17985 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17986 eval ac_val=\$$ac_var
17987 case $ac_val in #(
17988 *${as_nl}*)
17989 case $ac_var in #(
17990 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17991$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17992 esac
17993 case $ac_var in #(
17994 _ | IFS | as_nl) ;; #(
17995 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17996 *) { eval $ac_var=; unset $ac_var;} ;;
17997 esac ;;
17998 esac
17999 done
18000
18001 (set) 2>&1 |
18002 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18003 *${as_nl}ac_space=\ *)
18004 # `set' does not quote correctly, so add quotes: double-quote
18005 # substitution turns \\\\ into \\, and sed turns \\ into \.
18006 sed -n \
18007 "s/'/'\\\\''/g;
18008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18009 ;; #(
18010 *)
18011 # `set' quotes correctly as required by POSIX, so do not add quotes.
18012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18013 ;;
18014 esac |
18015 sort
18016) |
18017 sed '
18018 /^ac_cv_env_/b end
18019 t clear
18020 :clear
18021 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18022 t end
18023 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18024 :end' >>confcache
18025if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18026 if test -w "$cache_file"; then
18027 if test "x$cache_file" != "x/dev/null"; then
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18029$as_echo "$as_me: updating cache $cache_file" >&6;}
18030 if test ! -f "$cache_file" || test -h "$cache_file"; then
18031 cat confcache >"$cache_file"
18032 else
18033 case $cache_file in #(
18034 */* | ?:*)
18035 mv -f confcache "$cache_file"$$ &&
18036 mv -f "$cache_file"$$ "$cache_file" ;; #(
18037 *)
18038 mv -f confcache "$cache_file" ;;
18039 esac
18040 fi
18041 fi
18042 else
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18044$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18045 fi
18046fi
18047rm -f confcache
18048
18049test "x$prefix" = xNONE && prefix=$ac_default_prefix
18050# Let make expand exec_prefix.
18051test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18052
18053DEFS=-DHAVE_CONFIG_H
18054
18055ac_libobjs=
18056ac_ltlibobjs=
18057U=
18058for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18059 # 1. Remove the extension, and $U if already installed.
18060 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18061 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18062 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18063 # will be set to the directory where LIBOBJS objects are built.
18064 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18065 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18066done
18067LIBOBJS=$ac_libobjs
18068
18069LTLIBOBJS=$ac_ltlibobjs
18070
18071
18072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18073$as_echo_n "checking that generated files are newer than configure... " >&6; }
18074 if test -n "$am_sleep_pid"; then
18075 # Hide warnings about reused PIDs.
18076 wait $am_sleep_pid 2>/dev/null
18077 fi
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18079$as_echo "done" >&6; }
18080 if test -n "$EXEEXT"; then
18081 am__EXEEXT_TRUE=
18082 am__EXEEXT_FALSE='#'
18083else
18084 am__EXEEXT_TRUE='#'
18085 am__EXEEXT_FALSE=
18086fi
18087
18088if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18089 as_fn_error $? "conditional \"AMDEP\" was never defined.
18090Usually this means the macro was only invoked conditionally." "$LINENO" 5
18091fi
18092if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18093 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18094Usually this means the macro was only invoked conditionally." "$LINENO" 5
18095fi
18096if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18097 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18098Usually this means the macro was only invoked conditionally." "$LINENO" 5
18099fi
18100
18101: "${CONFIG_STATUS=./config.status}"
18102ac_write_fail=0
18103ac_clean_files_save=$ac_clean_files
18104ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18105{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18106$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18107as_write_fail=0
18108cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18109#! $SHELL
18110# Generated by $as_me.
18111# Run this file to recreate the current configuration.
18112# Compiler output produced by configure, useful for debugging
18113# configure, is in config.log if it exists.
18114
18115debug=false
18116ac_cs_recheck=false
18117ac_cs_silent=false
18118
18119SHELL=\${CONFIG_SHELL-$SHELL}
18120export SHELL
18121_ASEOF
18122cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18123## -------------------- ##
18124## M4sh Initialization. ##
18125## -------------------- ##
18126
18127# Be more Bourne compatible
18128DUALCASE=1; export DUALCASE # for MKS sh
18129if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18130 emulate sh
18131 NULLCMD=:
18132 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18133 # is contrary to our usage. Disable this feature.
18134 alias -g '${1+"$@"}'='"$@"'
18135 setopt NO_GLOB_SUBST
18136else
18137 case `(set -o) 2>/dev/null` in #(
18138 *posix*) :
18139 set -o posix ;; #(
18140 *) :
18141 ;;
18142esac
18143fi
18144
18145
18146as_nl='
18147'
18148export as_nl
18149# Printing a long string crashes Solaris 7 /usr/bin/printf.
18150as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18151as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18152as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18153# Prefer a ksh shell builtin over an external printf program on Solaris,
18154# but without wasting forks for bash or zsh.
18155if test -z "$BASH_VERSION$ZSH_VERSION" \
18156 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18157 as_echo='print -r --'
18158 as_echo_n='print -rn --'
18159elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18160 as_echo='printf %s\n'
18161 as_echo_n='printf %s'
18162else
18163 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18164 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18165 as_echo_n='/usr/ucb/echo -n'
18166 else
18167 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18168 as_echo_n_body='eval
18169 arg=$1;
18170 case $arg in #(
18171 *"$as_nl"*)
18172 expr "X$arg" : "X\\(.*\\)$as_nl";
18173 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18174 esac;
18175 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18176 '
18177 export as_echo_n_body
18178 as_echo_n='sh -c $as_echo_n_body as_echo'
18179 fi
18180 export as_echo_body
18181 as_echo='sh -c $as_echo_body as_echo'
18182fi
18183
18184# The user is always right.
18185if test "${PATH_SEPARATOR+set}" != set; then
18186 PATH_SEPARATOR=:
18187 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18188 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18189 PATH_SEPARATOR=';'
18190 }
18191fi
18192
18193
18194# IFS
18195# We need space, tab and new line, in precisely that order. Quoting is
18196# there to prevent editors from complaining about space-tab.
18197# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18198# splitting by setting IFS to empty value.)
18199IFS=" "" $as_nl"
18200
18201# Find who we are. Look in the path if we contain no directory separator.
18202as_myself=
18203case $0 in #((
18204 *[\\/]* ) as_myself=$0 ;;
18205 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18206for as_dir in $PATH
18207do
18208 IFS=$as_save_IFS
18209 test -z "$as_dir" && as_dir=.
18210 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18211 done
18212IFS=$as_save_IFS
18213
18214 ;;
18215esac
18216# We did not find ourselves, most probably we were run as `sh COMMAND'
18217# in which case we are not to be found in the path.
18218if test "x$as_myself" = x; then
18219 as_myself=$0
18220fi
18221if test ! -f "$as_myself"; then
18222 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18223 exit 1
18224fi
18225
18226# Unset variables that we do not need and which cause bugs (e.g. in
18227# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18228# suppresses any "Segmentation fault" message there. '((' could
18229# trigger a bug in pdksh 5.2.14.
18230for as_var in BASH_ENV ENV MAIL MAILPATH
18231do eval test x\${$as_var+set} = xset \
18232 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18233done
18234PS1='$ '
18235PS2='> '
18236PS4='+ '
18237
18238# NLS nuisances.
18239LC_ALL=C
18240export LC_ALL
18241LANGUAGE=C
18242export LANGUAGE
18243
18244# CDPATH.
18245(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18246
18247
18248# as_fn_error STATUS ERROR [LINENO LOG_FD]
18249# ----------------------------------------
18250# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18251# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18252# script with STATUS, using 1 if that was 0.
18253as_fn_error ()
18254{
18255 as_status=$1; test $as_status -eq 0 && as_status=1
18256 if test "$4"; then
18257 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18258 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18259 fi
18260 $as_echo "$as_me: error: $2" >&2
18261 as_fn_exit $as_status
18262} # as_fn_error
18263
18264
18265# as_fn_set_status STATUS
18266# -----------------------
18267# Set $? to STATUS, without forking.
18268as_fn_set_status ()
18269{
18270 return $1
18271} # as_fn_set_status
18272
18273# as_fn_exit STATUS
18274# -----------------
18275# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18276as_fn_exit ()
18277{
18278 set +e
18279 as_fn_set_status $1
18280 exit $1
18281} # as_fn_exit
18282
18283# as_fn_unset VAR
18284# ---------------
18285# Portably unset VAR.
18286as_fn_unset ()
18287{
18288 { eval $1=; unset $1;}
18289}
18290as_unset=as_fn_unset
18291# as_fn_append VAR VALUE
18292# ----------------------
18293# Append the text in VALUE to the end of the definition contained in VAR. Take
18294# advantage of any shell optimizations that allow amortized linear growth over
18295# repeated appends, instead of the typical quadratic growth present in naive
18296# implementations.
18297if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18298 eval 'as_fn_append ()
18299 {
18300 eval $1+=\$2
18301 }'
18302else
18303 as_fn_append ()
18304 {
18305 eval $1=\$$1\$2
18306 }
18307fi # as_fn_append
18308
18309# as_fn_arith ARG...
18310# ------------------
18311# Perform arithmetic evaluation on the ARGs, and store the result in the
18312# global $as_val. Take advantage of shells that can avoid forks. The arguments
18313# must be portable across $(()) and expr.
18314if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18315 eval 'as_fn_arith ()
18316 {
18317 as_val=$(( $* ))
18318 }'
18319else
18320 as_fn_arith ()
18321 {
18322 as_val=`expr "$@" || test $? -eq 1`
18323 }
18324fi # as_fn_arith
18325
18326
18327if expr a : '\(a\)' >/dev/null 2>&1 &&
18328 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18329 as_expr=expr
18330else
18331 as_expr=false
18332fi
18333
18334if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18335 as_basename=basename
18336else
18337 as_basename=false
18338fi
18339
18340if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18341 as_dirname=dirname
18342else
18343 as_dirname=false
18344fi
18345
18346as_me=`$as_basename -- "$0" ||
18347$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18348 X"$0" : 'X\(//\)$' \| \
18349 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18350$as_echo X/"$0" |
18351 sed '/^.*\/\([^/][^/]*\)\/*$/{
18352 s//\1/
18353 q
18354 }
18355 /^X\/\(\/\/\)$/{
18356 s//\1/
18357 q
18358 }
18359 /^X\/\(\/\).*/{
18360 s//\1/
18361 q
18362 }
18363 s/.*/./; q'`
18364
18365# Avoid depending upon Character Ranges.
18366as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18367as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18368as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18369as_cr_digits='0123456789'
18370as_cr_alnum=$as_cr_Letters$as_cr_digits
18371
18372ECHO_C= ECHO_N= ECHO_T=
18373case `echo -n x` in #(((((
18374-n*)
18375 case `echo 'xy\c'` in
18376 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18377 xy) ECHO_C='\c';;
18378 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18379 ECHO_T=' ';;
18380 esac;;
18381*)
18382 ECHO_N='-n';;
18383esac
18384
18385rm -f conf$$ conf$$.exe conf$$.file
18386if test -d conf$$.dir; then
18387 rm -f conf$$.dir/conf$$.file
18388else
18389 rm -f conf$$.dir
18390 mkdir conf$$.dir 2>/dev/null
18391fi
18392if (echo >conf$$.file) 2>/dev/null; then
18393 if ln -s conf$$.file conf$$ 2>/dev/null; then
18394 as_ln_s='ln -s'
18395 # ... but there are two gotchas:
18396 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18397 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18398 # In both cases, we have to default to `cp -pR'.
18399 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18400 as_ln_s='cp -pR'
18401 elif ln conf$$.file conf$$ 2>/dev/null; then
18402 as_ln_s=ln
18403 else
18404 as_ln_s='cp -pR'
18405 fi
18406else
18407 as_ln_s='cp -pR'
18408fi
18409rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18410rmdir conf$$.dir 2>/dev/null
18411
18412
18413# as_fn_mkdir_p
18414# -------------
18415# Create "$as_dir" as a directory, including parents if necessary.
18416as_fn_mkdir_p ()
18417{
18418
18419 case $as_dir in #(
18420 -*) as_dir=./$as_dir;;
18421 esac
18422 test -d "$as_dir" || eval $as_mkdir_p || {
18423 as_dirs=
18424 while :; do
18425 case $as_dir in #(
18426 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18427 *) as_qdir=$as_dir;;
18428 esac
18429 as_dirs="'$as_qdir' $as_dirs"
18430 as_dir=`$as_dirname -- "$as_dir" ||
18431$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18432 X"$as_dir" : 'X\(//\)[^/]' \| \
18433 X"$as_dir" : 'X\(//\)$' \| \
18434 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18435$as_echo X"$as_dir" |
18436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18437 s//\1/
18438 q
18439 }
18440 /^X\(\/\/\)[^/].*/{
18441 s//\1/
18442 q
18443 }
18444 /^X\(\/\/\)$/{
18445 s//\1/
18446 q
18447 }
18448 /^X\(\/\).*/{
18449 s//\1/
18450 q
18451 }
18452 s/.*/./; q'`
18453 test -d "$as_dir" && break
18454 done
18455 test -z "$as_dirs" || eval "mkdir $as_dirs"
18456 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18457
18458
18459} # as_fn_mkdir_p
18460if mkdir -p . 2>/dev/null; then
18461 as_mkdir_p='mkdir -p "$as_dir"'
18462else
18463 test -d ./-p && rmdir ./-p
18464 as_mkdir_p=false
18465fi
18466
18467
18468# as_fn_executable_p FILE
18469# -----------------------
18470# Test if FILE is an executable regular file.
18471as_fn_executable_p ()
18472{
18473 test -f "$1" && test -x "$1"
18474} # as_fn_executable_p
18475as_test_x='test -x'
18476as_executable_p=as_fn_executable_p
18477
18478# Sed expression to map a string onto a valid CPP name.
18479as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18480
18481# Sed expression to map a string onto a valid variable name.
18482as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18483
18484
18485exec 6>&1
18486## ----------------------------------- ##
18487## Main body of $CONFIG_STATUS script. ##
18488## ----------------------------------- ##
18489_ASEOF
18490test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18491
18492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18493# Save the log message, to keep $0 and so on meaningful, and to
18494# report actual input values of CONFIG_FILES etc. instead of their
18495# values after options handling.
18496ac_log="
18497This file was extended by libsamplerate $as_me 0.1.9, which was
18498generated by GNU Autoconf 2.69. Invocation command line was
18499
18500 CONFIG_FILES = $CONFIG_FILES
18501 CONFIG_HEADERS = $CONFIG_HEADERS
18502 CONFIG_LINKS = $CONFIG_LINKS
18503 CONFIG_COMMANDS = $CONFIG_COMMANDS
18504 $ $0 $@
18505
18506on `(hostname || uname -n) 2>/dev/null | sed 1q`
18507"
18508
18509_ACEOF
18510
18511case $ac_config_files in *"
18512"*) set x $ac_config_files; shift; ac_config_files=$*;;
18513esac
18514
18515case $ac_config_headers in *"
18516"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18517esac
18518
18519
18520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18521# Files that config.status was made for.
18522config_files="$ac_config_files"
18523config_headers="$ac_config_headers"
18524config_commands="$ac_config_commands"
18525
18526_ACEOF
18527
18528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18529ac_cs_usage="\
18530\`$as_me' instantiates files and other configuration actions
18531from templates according to the current configuration. Unless the files
18532and actions are specified as TAGs, all are instantiated by default.
18533
18534Usage: $0 [OPTION]... [TAG]...
18535
18536 -h, --help print this help, then exit
18537 -V, --version print version number and configuration settings, then exit
18538 --config print configuration, then exit
18539 -q, --quiet, --silent
18540 do not print progress messages
18541 -d, --debug don't remove temporary files
18542 --recheck update $as_me by reconfiguring in the same conditions
18543 --file=FILE[:TEMPLATE]
18544 instantiate the configuration file FILE
18545 --header=FILE[:TEMPLATE]
18546 instantiate the configuration header FILE
18547
18548Configuration files:
18549$config_files
18550
18551Configuration headers:
18552$config_headers
18553
18554Configuration commands:
18555$config_commands
18556
18557Report bugs to <erikd@mega-nerd.com>.
18558libsamplerate home page: <http://www.mega-nerd.com/libsamplerate/>."
18559
18560_ACEOF
18561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18562ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18563ac_cs_version="\\
18564libsamplerate config.status 0.1.9
18565configured by $0, generated by GNU Autoconf 2.69,
18566 with options \\"\$ac_cs_config\\"
18567
18568Copyright (C) 2012 Free Software Foundation, Inc.
18569This config.status script is free software; the Free Software Foundation
18570gives unlimited permission to copy, distribute and modify it."
18571
18572ac_pwd='$ac_pwd'
18573srcdir='$srcdir'
18574INSTALL='$INSTALL'
18575MKDIR_P='$MKDIR_P'
18576AWK='$AWK'
18577test -n "\$AWK" || AWK=awk
18578_ACEOF
18579
18580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18581# The default lists apply if the user does not specify any file.
18582ac_need_defaults=:
18583while test $# != 0
18584do
18585 case $1 in
18586 --*=?*)
18587 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18588 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18589 ac_shift=:
18590 ;;
18591 --*=)
18592 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18593 ac_optarg=
18594 ac_shift=:
18595 ;;
18596 *)
18597 ac_option=$1
18598 ac_optarg=$2
18599 ac_shift=shift
18600 ;;
18601 esac
18602
18603 case $ac_option in
18604 # Handling of the options.
18605 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18606 ac_cs_recheck=: ;;
18607 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18608 $as_echo "$ac_cs_version"; exit ;;
18609 --config | --confi | --conf | --con | --co | --c )
18610 $as_echo "$ac_cs_config"; exit ;;
18611 --debug | --debu | --deb | --de | --d | -d )
18612 debug=: ;;
18613 --file | --fil | --fi | --f )
18614 $ac_shift
18615 case $ac_optarg in
18616 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18617 '') as_fn_error $? "missing file argument" ;;
18618 esac
18619 as_fn_append CONFIG_FILES " '$ac_optarg'"
18620 ac_need_defaults=false;;
18621 --header | --heade | --head | --hea )
18622 $ac_shift
18623 case $ac_optarg in
18624 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18625 esac
18626 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18627 ac_need_defaults=false;;
18628 --he | --h)
18629 # Conflict between --help and --header
18630 as_fn_error $? "ambiguous option: \`$1'
18631Try \`$0 --help' for more information.";;
18632 --help | --hel | -h )
18633 $as_echo "$ac_cs_usage"; exit ;;
18634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18635 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18636 ac_cs_silent=: ;;
18637
18638 # This is an error.
18639 -*) as_fn_error $? "unrecognized option: \`$1'
18640Try \`$0 --help' for more information." ;;
18641
18642 *) as_fn_append ac_config_targets " $1"
18643 ac_need_defaults=false ;;
18644
18645 esac
18646 shift
18647done
18648
18649ac_configure_extra_args=
18650
18651if $ac_cs_silent; then
18652 exec 6>/dev/null
18653 ac_configure_extra_args="$ac_configure_extra_args --silent"
18654fi
18655
18656_ACEOF
18657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18658if \$ac_cs_recheck; then
18659 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18660 shift
18661 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18662 CONFIG_SHELL='$SHELL'
18663 export CONFIG_SHELL
18664 exec "\$@"
18665fi
18666
18667_ACEOF
18668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18669exec 5>>config.log
18670{
18671 echo
18672 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18673## Running $as_me. ##
18674_ASBOX
18675 $as_echo "$ac_log"
18676} >&5
18677
18678_ACEOF
18679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18680#
18681# INIT-COMMANDS
18682#
18683AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18684
18685
18686# The HP-UX ksh and POSIX shell print the target directory to stdout
18687# if CDPATH is set.
18688(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18689
18690sed_quote_subst='$sed_quote_subst'
18691double_quote_subst='$double_quote_subst'
18692delay_variable_subst='$delay_variable_subst'
18693macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18694macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18695enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18696enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18697pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18698enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18699shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18700SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18701ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18702PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18703host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18704host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18705host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18706build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18707build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18708build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18709SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18710Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18711GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18712EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18713FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18714LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18715NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18716LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18717max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18718ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18719exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18720lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18721lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18722lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18723lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18724lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18725reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18726reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18727OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18728deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18729file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18730file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18731want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18732DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18733sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18734AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18735AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18736archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18737STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18738RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18739old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18740old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18741old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18742lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18743CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18744CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18745compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18746GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18747lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18748lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18749lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18750lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18751lt_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"`'
18752lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18753nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18754lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18755lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18756objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18757MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18758lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18759lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18760lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18761lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18762lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18763need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18764MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18765DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18766NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18767LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18768OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18769OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18770libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18771shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18772extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18773archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18774enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18775export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18776whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18777compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18778old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18779old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18780archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18781archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18782module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18783module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18784with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18785allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18786no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18787hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18788hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18789hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18790hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18791hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18792hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18793hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18794inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18795link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18796always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18797export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18798exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18799include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18800prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18801postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18802file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18803variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18804need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18805need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18806version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18807runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18808shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18809shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18810libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18811library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18812soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18813install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18814postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18815postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18816finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18817finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18818hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18819sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18820configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18821configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18822hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18823enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18824enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18825enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18826old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18827striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18828compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18829predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18830postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18831predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18832postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18833compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18834LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18835LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
18836reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18837reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
18838reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18839reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
18840old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18841old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
18842compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18843compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
18844GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18845GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
18846lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18847lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
18848lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18849lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
18850lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18851lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
18852lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18853lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
18854lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18855lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
18856archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18857archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
18858enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18859enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
18860export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18861export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
18862whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18863whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
18864compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18865compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
18866old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18867old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
18868old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18869old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
18870archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18871archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
18872archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18873archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
18874module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18875module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
18876module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18877module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
18878with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18879with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
18880allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18881allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
18882no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18883no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
18884hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18885hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
18886hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18887hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
18888hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18889hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
18890hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18891hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
18892hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18893hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
18894hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18895hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
18896hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18897hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
18898inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18899inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
18900link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18901link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
18902always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18903always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
18904export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18905export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
18906exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18907exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
18908include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18909include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
18910prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18911prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
18912postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18913postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
18914file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18915file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
18916hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18917hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
18918compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18919compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
18920predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18921predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
18922postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18923postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
18924predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18925predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
18926postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18927postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
18928compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18929compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
18930
18931LTCC='$LTCC'
18932LTCFLAGS='$LTCFLAGS'
18933compiler='$compiler_DEFAULT'
18934
18935# A function that is used when there is no print builtin or printf.
18936func_fallback_echo ()
18937{
18938 eval 'cat <<_LTECHO_EOF
18939\$1
18940_LTECHO_EOF'
18941}
18942
18943# Quote evaled strings.
18944for var in SHELL \
18945ECHO \
18946PATH_SEPARATOR \
18947SED \
18948GREP \
18949EGREP \
18950FGREP \
18951LD \
18952NM \
18953LN_S \
18954lt_SP2NL \
18955lt_NL2SP \
18956reload_flag \
18957OBJDUMP \
18958deplibs_check_method \
18959file_magic_cmd \
18960file_magic_glob \
18961want_nocaseglob \
18962DLLTOOL \
18963sharedlib_from_linklib_cmd \
18964AR \
18965AR_FLAGS \
18966archiver_list_spec \
18967STRIP \
18968RANLIB \
18969CC \
18970CFLAGS \
18971compiler \
18972lt_cv_sys_global_symbol_pipe \
18973lt_cv_sys_global_symbol_to_cdecl \
18974lt_cv_sys_global_symbol_to_import \
18975lt_cv_sys_global_symbol_to_c_name_address \
18976lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18977lt_cv_nm_interface \
18978nm_file_list_spec \
18979lt_cv_truncate_bin \
18980lt_prog_compiler_no_builtin_flag \
18981lt_prog_compiler_pic \
18982lt_prog_compiler_wl \
18983lt_prog_compiler_static \
18984lt_cv_prog_compiler_c_o \
18985need_locks \
18986MANIFEST_TOOL \
18987DSYMUTIL \
18988NMEDIT \
18989LIPO \
18990OTOOL \
18991OTOOL64 \
18992shrext_cmds \
18993export_dynamic_flag_spec \
18994whole_archive_flag_spec \
18995compiler_needs_object \
18996with_gnu_ld \
18997allow_undefined_flag \
18998no_undefined_flag \
18999hardcode_libdir_flag_spec \
19000hardcode_libdir_separator \
19001exclude_expsyms \
19002include_expsyms \
19003file_list_spec \
19004variables_saved_for_relink \
19005libname_spec \
19006library_names_spec \
19007soname_spec \
19008install_override_mode \
19009finish_eval \
19010old_striplib \
19011striplib \
19012compiler_lib_search_dirs \
19013predep_objects \
19014postdep_objects \
19015predeps \
19016postdeps \
19017compiler_lib_search_path \
19018LD_CXX \
19019LD_RC \
19020reload_flag_CXX \
19021reload_flag_RC \
19022compiler_CXX \
19023compiler_RC \
19024lt_prog_compiler_no_builtin_flag_CXX \
19025lt_prog_compiler_no_builtin_flag_RC \
19026lt_prog_compiler_pic_CXX \
19027lt_prog_compiler_pic_RC \
19028lt_prog_compiler_wl_CXX \
19029lt_prog_compiler_wl_RC \
19030lt_prog_compiler_static_CXX \
19031lt_prog_compiler_static_RC \
19032lt_cv_prog_compiler_c_o_CXX \
19033lt_cv_prog_compiler_c_o_RC \
19034export_dynamic_flag_spec_CXX \
19035export_dynamic_flag_spec_RC \
19036whole_archive_flag_spec_CXX \
19037whole_archive_flag_spec_RC \
19038compiler_needs_object_CXX \
19039compiler_needs_object_RC \
19040with_gnu_ld_CXX \
19041with_gnu_ld_RC \
19042allow_undefined_flag_CXX \
19043allow_undefined_flag_RC \
19044no_undefined_flag_CXX \
19045no_undefined_flag_RC \
19046hardcode_libdir_flag_spec_CXX \
19047hardcode_libdir_flag_spec_RC \
19048hardcode_libdir_separator_CXX \
19049hardcode_libdir_separator_RC \
19050exclude_expsyms_CXX \
19051exclude_expsyms_RC \
19052include_expsyms_CXX \
19053include_expsyms_RC \
19054file_list_spec_CXX \
19055file_list_spec_RC \
19056compiler_lib_search_dirs_CXX \
19057compiler_lib_search_dirs_RC \
19058predep_objects_CXX \
19059predep_objects_RC \
19060postdep_objects_CXX \
19061postdep_objects_RC \
19062predeps_CXX \
19063predeps_RC \
19064postdeps_CXX \
19065postdeps_RC \
19066compiler_lib_search_path_CXX \
19067compiler_lib_search_path_RC; do
19068 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19069 *[\\\\\\\`\\"\\\$]*)
19070 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19071 ;;
19072 *)
19073 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19074 ;;
19075 esac
19076done
19077
19078# Double-quote double-evaled strings.
19079for var in reload_cmds \
19080old_postinstall_cmds \
19081old_postuninstall_cmds \
19082old_archive_cmds \
19083extract_expsyms_cmds \
19084old_archive_from_new_cmds \
19085old_archive_from_expsyms_cmds \
19086archive_cmds \
19087archive_expsym_cmds \
19088module_cmds \
19089module_expsym_cmds \
19090export_symbols_cmds \
19091prelink_cmds \
19092postlink_cmds \
19093postinstall_cmds \
19094postuninstall_cmds \
19095finish_cmds \
19096sys_lib_search_path_spec \
19097configure_time_dlsearch_path \
19098configure_time_lt_sys_library_path \
19099reload_cmds_CXX \
19100reload_cmds_RC \
19101old_archive_cmds_CXX \
19102old_archive_cmds_RC \
19103old_archive_from_new_cmds_CXX \
19104old_archive_from_new_cmds_RC \
19105old_archive_from_expsyms_cmds_CXX \
19106old_archive_from_expsyms_cmds_RC \
19107archive_cmds_CXX \
19108archive_cmds_RC \
19109archive_expsym_cmds_CXX \
19110archive_expsym_cmds_RC \
19111module_cmds_CXX \
19112module_cmds_RC \
19113module_expsym_cmds_CXX \
19114module_expsym_cmds_RC \
19115export_symbols_cmds_CXX \
19116export_symbols_cmds_RC \
19117prelink_cmds_CXX \
19118prelink_cmds_RC \
19119postlink_cmds_CXX \
19120postlink_cmds_RC; do
19121 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19122 *[\\\\\\\`\\"\\\$]*)
19123 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19124 ;;
19125 *)
19126 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19127 ;;
19128 esac
19129done
19130
19131ac_aux_dir='$ac_aux_dir'
19132
19133# See if we are running on zsh, and set the options that allow our
19134# commands through without removal of \ escapes INIT.
19135if test -n "\${ZSH_VERSION+set}"; then
19136 setopt NO_GLOB_SUBST
19137fi
19138
19139
19140 PACKAGE='$PACKAGE'
19141 VERSION='$VERSION'
19142 RM='$RM'
19143 ofile='$ofile'
19144
19145
19146
19147
19148
19149
19150
19151
19152_ACEOF
19153
19154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19155
19156# Handling of arguments.
19157for ac_config_target in $ac_config_targets
19158do
19159 case $ac_config_target in
19160 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19161 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19162 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19163 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19164 "M4/Makefile") CONFIG_FILES="$CONFIG_FILES M4/Makefile" ;;
19165 "src/Version_script") CONFIG_FILES="$CONFIG_FILES src/Version_script" ;;
19166 "Win32/Makefile") CONFIG_FILES="$CONFIG_FILES Win32/Makefile" ;;
19167 "Win32/Makefile.mingw") CONFIG_FILES="$CONFIG_FILES Win32/Makefile.mingw" ;;
19168 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19169 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19170 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19171 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19172 "libsamplerate.spec") CONFIG_FILES="$CONFIG_FILES libsamplerate.spec" ;;
19173 "samplerate.pc") CONFIG_FILES="$CONFIG_FILES samplerate.pc" ;;
19174
19175 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19176 esac
19177done
19178
19179
19180# If the user did not use the arguments to specify the items to instantiate,
19181# then the envvar interface is used. Set only those that are not.
19182# We use the long form for the default assignment because of an extremely
19183# bizarre bug on SunOS 4.1.3.
19184if $ac_need_defaults; then
19185 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19186 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19187 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19188fi
19189
19190# Have a temporary directory for convenience. Make it in the build tree
19191# simply because there is no reason against having it here, and in addition,
19192# creating and moving files from /tmp can sometimes cause problems.
19193# Hook for its removal unless debugging.
19194# Note that there is a small window in which the directory will not be cleaned:
19195# after its creation but before its name has been assigned to `$tmp'.
19196$debug ||
19197{
19198 tmp= ac_tmp=
19199 trap 'exit_status=$?
19200 : "${ac_tmp:=$tmp}"
19201 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19202' 0
19203 trap 'as_fn_exit 1' 1 2 13 15
19204}
19205# Create a (secure) tmp directory for tmp files.
19206
19207{
19208 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19209 test -d "$tmp"
19210} ||
19211{
19212 tmp=./conf$$-$RANDOM
19213 (umask 077 && mkdir "$tmp")
19214} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19215ac_tmp=$tmp
19216
19217# Set up the scripts for CONFIG_FILES section.
19218# No need to generate them if there are no CONFIG_FILES.
19219# This happens for instance with `./config.status config.h'.
19220if test -n "$CONFIG_FILES"; then
19221
19222
19223ac_cr=`echo X | tr X '\015'`
19224# On cygwin, bash can eat \r inside `` if the user requested igncr.
19225# But we know of no other shell where ac_cr would be empty at this
19226# point, so we can use a bashism as a fallback.
19227if test "x$ac_cr" = x; then
19228 eval ac_cr=\$\'\\r\'
19229fi
19230ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19231if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19232 ac_cs_awk_cr='\\r'
19233else
19234 ac_cs_awk_cr=$ac_cr
19235fi
19236
19237echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19238_ACEOF
19239
19240
19241{
19242 echo "cat >conf$$subs.awk <<_ACEOF" &&
19243 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19244 echo "_ACEOF"
19245} >conf$$subs.sh ||
19246 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19247ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19248ac_delim='%!_!# '
19249for ac_last_try in false false false false false :; do
19250 . ./conf$$subs.sh ||
19251 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19252
19253 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19254 if test $ac_delim_n = $ac_delim_num; then
19255 break
19256 elif $ac_last_try; then
19257 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19258 else
19259 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19260 fi
19261done
19262rm -f conf$$subs.sh
19263
19264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19265cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19266_ACEOF
19267sed -n '
19268h
19269s/^/S["/; s/!.*/"]=/
19270p
19271g
19272s/^[^!]*!//
19273:repl
19274t repl
19275s/'"$ac_delim"'$//
19276t delim
19277:nl
19278h
19279s/\(.\{148\}\)..*/\1/
19280t more1
19281s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19282p
19283n
19284b repl
19285:more1
19286s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19287p
19288g
19289s/.\{148\}//
19290t nl
19291:delim
19292h
19293s/\(.\{148\}\)..*/\1/
19294t more2
19295s/["\\]/\\&/g; s/^/"/; s/$/"/
19296p
19297b
19298:more2
19299s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19300p
19301g
19302s/.\{148\}//
19303t delim
19304' <conf$$subs.awk | sed '
19305/^[^""]/{
19306 N
19307 s/\n//
19308}
19309' >>$CONFIG_STATUS || ac_write_fail=1
19310rm -f conf$$subs.awk
19311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19312_ACAWK
19313cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19314 for (key in S) S_is_set[key] = 1
19315 FS = "\a"
19316
19317}
19318{
19319 line = $ 0
19320 nfields = split(line, field, "@")
19321 substed = 0
19322 len = length(field[1])
19323 for (i = 2; i < nfields; i++) {
19324 key = field[i]
19325 keylen = length(key)
19326 if (S_is_set[key]) {
19327 value = S[key]
19328 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19329 len += length(value) + length(field[++i])
19330 substed = 1
19331 } else
19332 len += 1 + keylen
19333 }
19334
19335 print line
19336}
19337
19338_ACAWK
19339_ACEOF
19340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19341if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19342 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19343else
19344 cat
19345fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19346 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19347_ACEOF
19348
19349# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19350# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19351# trailing colons and then remove the whole line if VPATH becomes empty
19352# (actually we leave an empty line to preserve line numbers).
19353if test "x$srcdir" = x.; then
19354 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19355h
19356s///
19357s/^/:/
19358s/[ ]*$/:/
19359s/:\$(srcdir):/:/g
19360s/:\${srcdir}:/:/g
19361s/:@srcdir@:/:/g
19362s/^:*//
19363s/:*$//
19364x
19365s/\(=[ ]*\).*/\1/
19366G
19367s/\n//
19368s/^[^=]*=[ ]*$//
19369}'
19370fi
19371
19372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19373fi # test -n "$CONFIG_FILES"
19374
19375# Set up the scripts for CONFIG_HEADERS section.
19376# No need to generate them if there are no CONFIG_HEADERS.
19377# This happens for instance with `./config.status Makefile'.
19378if test -n "$CONFIG_HEADERS"; then
19379cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19380BEGIN {
19381_ACEOF
19382
19383# Transform confdefs.h into an awk script `defines.awk', embedded as
19384# here-document in config.status, that substitutes the proper values into
19385# config.h.in to produce config.h.
19386
19387# Create a delimiter string that does not exist in confdefs.h, to ease
19388# handling of long lines.
19389ac_delim='%!_!# '
19390for ac_last_try in false false :; do
19391 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19392 if test -z "$ac_tt"; then
19393 break
19394 elif $ac_last_try; then
19395 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19396 else
19397 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19398 fi
19399done
19400
19401# For the awk script, D is an array of macro values keyed by name,
19402# likewise P contains macro parameters if any. Preserve backslash
19403# newline sequences.
19404
19405ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19406sed -n '
19407s/.\{148\}/&'"$ac_delim"'/g
19408t rset
19409:rset
19410s/^[ ]*#[ ]*define[ ][ ]*/ /
19411t def
19412d
19413:def
19414s/\\$//
19415t bsnl
19416s/["\\]/\\&/g
19417s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19418D["\1"]=" \3"/p
19419s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19420d
19421:bsnl
19422s/["\\]/\\&/g
19423s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19424D["\1"]=" \3\\\\\\n"\\/p
19425t cont
19426s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19427t cont
19428d
19429:cont
19430n
19431s/.\{148\}/&'"$ac_delim"'/g
19432t clear
19433:clear
19434s/\\$//
19435t bsnlc
19436s/["\\]/\\&/g; s/^/"/; s/$/"/p
19437d
19438:bsnlc
19439s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19440b cont
19441' <confdefs.h | sed '
19442s/'"$ac_delim"'/"\\\
19443"/g' >>$CONFIG_STATUS || ac_write_fail=1
19444
19445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19446 for (key in D) D_is_set[key] = 1
19447 FS = "\a"
19448}
19449/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19450 line = \$ 0
19451 split(line, arg, " ")
19452 if (arg[1] == "#") {
19453 defundef = arg[2]
19454 mac1 = arg[3]
19455 } else {
19456 defundef = substr(arg[1], 2)
19457 mac1 = arg[2]
19458 }
19459 split(mac1, mac2, "(") #)
19460 macro = mac2[1]
19461 prefix = substr(line, 1, index(line, defundef) - 1)
19462 if (D_is_set[macro]) {
19463 # Preserve the white space surrounding the "#".
19464 print prefix "define", macro P[macro] D[macro]
19465 next
19466 } else {
19467 # Replace #undef with comments. This is necessary, for example,
19468 # in the case of _POSIX_SOURCE, which is predefined and required
19469 # on some systems where configure will not decide to define it.
19470 if (defundef == "undef") {
19471 print "/*", prefix defundef, macro, "*/"
19472 next
19473 }
19474 }
19475}
19476{ print }
19477_ACAWK
19478_ACEOF
19479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19480 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19481fi # test -n "$CONFIG_HEADERS"
19482
19483
19484eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19485shift
19486for ac_tag
19487do
19488 case $ac_tag in
19489 :[FHLC]) ac_mode=$ac_tag; continue;;
19490 esac
19491 case $ac_mode$ac_tag in
19492 :[FHL]*:*);;
19493 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19494 :[FH]-) ac_tag=-:-;;
19495 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19496 esac
19497 ac_save_IFS=$IFS
19498 IFS=:
19499 set x $ac_tag
19500 IFS=$ac_save_IFS
19501 shift
19502 ac_file=$1
19503 shift
19504
19505 case $ac_mode in
19506 :L) ac_source=$1;;
19507 :[FH])
19508 ac_file_inputs=
19509 for ac_f
19510 do
19511 case $ac_f in
19512 -) ac_f="$ac_tmp/stdin";;
19513 *) # Look for the file first in the build tree, then in the source tree
19514 # (if the path is not absolute). The absolute path cannot be DOS-style,
19515 # because $ac_f cannot contain `:'.
19516 test -f "$ac_f" ||
19517 case $ac_f in
19518 [\\/$]*) false;;
19519 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19520 esac ||
19521 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19522 esac
19523 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19524 as_fn_append ac_file_inputs " '$ac_f'"
19525 done
19526
19527 # Let's still pretend it is `configure' which instantiates (i.e., don't
19528 # use $as_me), people would be surprised to read:
19529 # /* config.h. Generated by config.status. */
19530 configure_input='Generated from '`
19531 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19532 `' by configure.'
19533 if test x"$ac_file" != x-; then
19534 configure_input="$ac_file. $configure_input"
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19536$as_echo "$as_me: creating $ac_file" >&6;}
19537 fi
19538 # Neutralize special characters interpreted by sed in replacement strings.
19539 case $configure_input in #(
19540 *\&* | *\|* | *\\* )
19541 ac_sed_conf_input=`$as_echo "$configure_input" |
19542 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19543 *) ac_sed_conf_input=$configure_input;;
19544 esac
19545
19546 case $ac_tag in
19547 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19549 esac
19550 ;;
19551 esac
19552
19553 ac_dir=`$as_dirname -- "$ac_file" ||
19554$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19555 X"$ac_file" : 'X\(//\)[^/]' \| \
19556 X"$ac_file" : 'X\(//\)$' \| \
19557 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19558$as_echo X"$ac_file" |
19559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19560 s//\1/
19561 q
19562 }
19563 /^X\(\/\/\)[^/].*/{
19564 s//\1/
19565 q
19566 }
19567 /^X\(\/\/\)$/{
19568 s//\1/
19569 q
19570 }
19571 /^X\(\/\).*/{
19572 s//\1/
19573 q
19574 }
19575 s/.*/./; q'`
19576 as_dir="$ac_dir"; as_fn_mkdir_p
19577 ac_builddir=.
19578
19579case "$ac_dir" in
19580.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19581*)
19582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19583 # A ".." for each directory in $ac_dir_suffix.
19584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19585 case $ac_top_builddir_sub in
19586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19588 esac ;;
19589esac
19590ac_abs_top_builddir=$ac_pwd
19591ac_abs_builddir=$ac_pwd$ac_dir_suffix
19592# for backward compatibility:
19593ac_top_builddir=$ac_top_build_prefix
19594
19595case $srcdir in
19596 .) # We are building in place.
19597 ac_srcdir=.
19598 ac_top_srcdir=$ac_top_builddir_sub
19599 ac_abs_top_srcdir=$ac_pwd ;;
19600 [\\/]* | ?:[\\/]* ) # Absolute name.
19601 ac_srcdir=$srcdir$ac_dir_suffix;
19602 ac_top_srcdir=$srcdir
19603 ac_abs_top_srcdir=$srcdir ;;
19604 *) # Relative name.
19605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19606 ac_top_srcdir=$ac_top_build_prefix$srcdir
19607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19608esac
19609ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19610
19611
19612 case $ac_mode in
19613 :F)
19614 #
19615 # CONFIG_FILE
19616 #
19617
19618 case $INSTALL in
19619 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19620 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19621 esac
19622 ac_MKDIR_P=$MKDIR_P
19623 case $MKDIR_P in
19624 [\\/$]* | ?:[\\/]* ) ;;
19625 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19626 esac
19627_ACEOF
19628
19629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19630# If the template does not know about datarootdir, expand it.
19631# FIXME: This hack should be removed a few years after 2.60.
19632ac_datarootdir_hack=; ac_datarootdir_seen=
19633ac_sed_dataroot='
19634/datarootdir/ {
19635 p
19636 q
19637}
19638/@datadir@/p
19639/@docdir@/p
19640/@infodir@/p
19641/@localedir@/p
19642/@mandir@/p'
19643case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19644*datarootdir*) ac_datarootdir_seen=yes;;
19645*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19647$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19648_ACEOF
19649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19650 ac_datarootdir_hack='
19651 s&@datadir@&$datadir&g
19652 s&@docdir@&$docdir&g
19653 s&@infodir@&$infodir&g
19654 s&@localedir@&$localedir&g
19655 s&@mandir@&$mandir&g
19656 s&\\\${datarootdir}&$datarootdir&g' ;;
19657esac
19658_ACEOF
19659
19660# Neutralize VPATH when `$srcdir' = `.'.
19661# Shell code in configure.ac might set extrasub.
19662# FIXME: do we really want to maintain this feature?
19663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19664ac_sed_extra="$ac_vpsub
19665$extrasub
19666_ACEOF
19667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19668:t
19669/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19670s|@configure_input@|$ac_sed_conf_input|;t t
19671s&@top_builddir@&$ac_top_builddir_sub&;t t
19672s&@top_build_prefix@&$ac_top_build_prefix&;t t
19673s&@srcdir@&$ac_srcdir&;t t
19674s&@abs_srcdir@&$ac_abs_srcdir&;t t
19675s&@top_srcdir@&$ac_top_srcdir&;t t
19676s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19677s&@builddir@&$ac_builddir&;t t
19678s&@abs_builddir@&$ac_abs_builddir&;t t
19679s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19680s&@INSTALL@&$ac_INSTALL&;t t
19681s&@MKDIR_P@&$ac_MKDIR_P&;t t
19682$ac_datarootdir_hack
19683"
19684eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19685 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19686
19687test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19688 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19689 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19690 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19692which seems to be undefined. Please make sure it is defined" >&5
19693$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19694which seems to be undefined. Please make sure it is defined" >&2;}
19695
19696 rm -f "$ac_tmp/stdin"
19697 case $ac_file in
19698 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19699 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19700 esac \
19701 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19702 ;;
19703 :H)
19704 #
19705 # CONFIG_HEADER
19706 #
19707 if test x"$ac_file" != x-; then
19708 {
19709 $as_echo "/* $configure_input */" \
19710 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19711 } >"$ac_tmp/config.h" \
19712 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19713 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19715$as_echo "$as_me: $ac_file is unchanged" >&6;}
19716 else
19717 rm -f "$ac_file"
19718 mv "$ac_tmp/config.h" "$ac_file" \
19719 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19720 fi
19721 else
19722 $as_echo "/* $configure_input */" \
19723 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19724 || as_fn_error $? "could not create -" "$LINENO" 5
19725 fi
19726# Compute "$ac_file"'s index in $config_headers.
19727_am_arg="$ac_file"
19728_am_stamp_count=1
19729for _am_header in $config_headers :; do
19730 case $_am_header in
19731 $_am_arg | $_am_arg:* )
19732 break ;;
19733 * )
19734 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19735 esac
19736done
19737echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19738$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19739 X"$_am_arg" : 'X\(//\)[^/]' \| \
19740 X"$_am_arg" : 'X\(//\)$' \| \
19741 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19742$as_echo X"$_am_arg" |
19743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19744 s//\1/
19745 q
19746 }
19747 /^X\(\/\/\)[^/].*/{
19748 s//\1/
19749 q
19750 }
19751 /^X\(\/\/\)$/{
19752 s//\1/
19753 q
19754 }
19755 /^X\(\/\).*/{
19756 s//\1/
19757 q
19758 }
19759 s/.*/./; q'`/stamp-h$_am_stamp_count
19760 ;;
19761
19762 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19763$as_echo "$as_me: executing $ac_file commands" >&6;}
19764 ;;
19765 esac
19766
19767
19768 case $ac_file$ac_mode in
19769 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19770 # Older Autoconf quotes --file arguments for eval, but not when files
19771 # are listed without --file. Let's play safe and only enable the eval
19772 # if we detect the quoting.
19773 case $CONFIG_FILES in
19774 *\'*) eval set x "$CONFIG_FILES" ;;
19775 *) set x $CONFIG_FILES ;;
19776 esac
19777 shift
19778 for mf
19779 do
19780 # Strip MF so we end up with the name of the file.
19781 mf=`echo "$mf" | sed -e 's/:.*$//'`
19782 # Check whether this is an Automake generated Makefile or not.
19783 # We used to match only the files named 'Makefile.in', but
19784 # some people rename them; so instead we look at the file content.
19785 # Grep'ing the first line is not enough: some people post-process
19786 # each Makefile.in and add a new line on top of each file to say so.
19787 # Grep'ing the whole file is not good either: AIX grep has a line
19788 # limit of 2048, but all sed's we know have understand at least 4000.
19789 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19790 dirpart=`$as_dirname -- "$mf" ||
19791$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19792 X"$mf" : 'X\(//\)[^/]' \| \
19793 X"$mf" : 'X\(//\)$' \| \
19794 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19795$as_echo X"$mf" |
19796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19797 s//\1/
19798 q
19799 }
19800 /^X\(\/\/\)[^/].*/{
19801 s//\1/
19802 q
19803 }
19804 /^X\(\/\/\)$/{
19805 s//\1/
19806 q
19807 }
19808 /^X\(\/\).*/{
19809 s//\1/
19810 q
19811 }
19812 s/.*/./; q'`
19813 else
19814 continue
19815 fi
19816 # Extract the definition of DEPDIR, am__include, and am__quote
19817 # from the Makefile without running 'make'.
19818 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19819 test -z "$DEPDIR" && continue
19820 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19821 test -z "$am__include" && continue
19822 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19823 # Find all dependency output files, they are included files with
19824 # $(DEPDIR) in their names. We invoke sed twice because it is the
19825 # simplest approach to changing $(DEPDIR) to its actual value in the
19826 # expansion.
19827 for file in `sed -n "
19828 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19829 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19830 # Make sure the directory exists.
19831 test -f "$dirpart/$file" && continue
19832 fdir=`$as_dirname -- "$file" ||
19833$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19834 X"$file" : 'X\(//\)[^/]' \| \
19835 X"$file" : 'X\(//\)$' \| \
19836 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19837$as_echo X"$file" |
19838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19839 s//\1/
19840 q
19841 }
19842 /^X\(\/\/\)[^/].*/{
19843 s//\1/
19844 q
19845 }
19846 /^X\(\/\/\)$/{
19847 s//\1/
19848 q
19849 }
19850 /^X\(\/\).*/{
19851 s//\1/
19852 q
19853 }
19854 s/.*/./; q'`
19855 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19856 # echo "creating $dirpart/$file"
19857 echo '# dummy' > "$dirpart/$file"
19858 done
19859 done
19860}
19861 ;;
19862 "libtool":C)
19863
19864 # See if we are running on zsh, and set the options that allow our
19865 # commands through without removal of \ escapes.
19866 if test -n "${ZSH_VERSION+set}"; then
19867 setopt NO_GLOB_SUBST
19868 fi
19869
19870 cfgfile=${ofile}T
19871 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19872 $RM "$cfgfile"
19873
19874 cat <<_LT_EOF >> "$cfgfile"
19875#! $SHELL
19876# Generated automatically by $as_me ($PACKAGE) $VERSION
19877# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19878
19879# Provide generalized library-building support services.
19880# Written by Gordon Matzigkeit, 1996
19881
19882# Copyright (C) 2014 Free Software Foundation, Inc.
19883# This is free software; see the source for copying conditions. There is NO
19884# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19885
19886# GNU Libtool is free software; you can redistribute it and/or modify
19887# it under the terms of the GNU General Public License as published by
19888# the Free Software Foundation; either version 2 of of the License, or
19889# (at your option) any later version.
19890#
19891# As a special exception to the GNU General Public License, if you
19892# distribute this file as part of a program or library that is built
19893# using GNU Libtool, you may include this file under the same
19894# distribution terms that you use for the rest of that program.
19895#
19896# GNU Libtool is distributed in the hope that it will be useful, but
19897# WITHOUT ANY WARRANTY; without even the implied warranty of
19898# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19899# GNU General Public License for more details.
19900#
19901# You should have received a copy of the GNU General Public License
19902# along with this program. If not, see <http://www.gnu.org/licenses/>.
19903
19904
19905# The names of the tagged configurations supported by this script.
19906available_tags='CXX RC '
19907
19908# Configured defaults for sys_lib_dlsearch_path munging.
19909: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19910
19911# ### BEGIN LIBTOOL CONFIG
19912
19913# Which release of libtool.m4 was used?
19914macro_version=$macro_version
19915macro_revision=$macro_revision
19916
19917# Whether or not to build shared libraries.
19918build_libtool_libs=$enable_shared
19919
19920# Whether or not to build static libraries.
19921build_old_libs=$enable_static
19922
19923# What type of objects to build.
19924pic_mode=$pic_mode
19925
19926# Whether or not to optimize for fast installation.
19927fast_install=$enable_fast_install
19928
19929# Shared archive member basename,for filename based shared library versioning on AIX.
19930shared_archive_member_spec=$shared_archive_member_spec
19931
19932# Shell to use when invoking shell scripts.
19933SHELL=$lt_SHELL
19934
19935# An echo program that protects backslashes.
19936ECHO=$lt_ECHO
19937
19938# The PATH separator for the build system.
19939PATH_SEPARATOR=$lt_PATH_SEPARATOR
19940
19941# The host system.
19942host_alias=$host_alias
19943host=$host
19944host_os=$host_os
19945
19946# The build system.
19947build_alias=$build_alias
19948build=$build
19949build_os=$build_os
19950
19951# A sed program that does not truncate output.
19952SED=$lt_SED
19953
19954# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19955Xsed="\$SED -e 1s/^X//"
19956
19957# A grep program that handles long lines.
19958GREP=$lt_GREP
19959
19960# An ERE matcher.
19961EGREP=$lt_EGREP
19962
19963# A literal string matcher.
19964FGREP=$lt_FGREP
19965
19966# A BSD- or MS-compatible name lister.
19967NM=$lt_NM
19968
19969# Whether we need soft or hard links.
19970LN_S=$lt_LN_S
19971
19972# What is the maximum length of a command?
19973max_cmd_len=$max_cmd_len
19974
19975# Object file suffix (normally "o").
19976objext=$ac_objext
19977
19978# Executable file suffix (normally "").
19979exeext=$exeext
19980
19981# whether the shell understands "unset".
19982lt_unset=$lt_unset
19983
19984# turn spaces into newlines.
19985SP2NL=$lt_lt_SP2NL
19986
19987# turn newlines into spaces.
19988NL2SP=$lt_lt_NL2SP
19989
19990# convert \$build file names to \$host format.
19991to_host_file_cmd=$lt_cv_to_host_file_cmd
19992
19993# convert \$build files to toolchain format.
19994to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19995
19996# An object symbol dumper.
19997OBJDUMP=$lt_OBJDUMP
19998
19999# Method to check whether dependent libraries are shared objects.
20000deplibs_check_method=$lt_deplibs_check_method
20001
20002# Command to use when deplibs_check_method = "file_magic".
20003file_magic_cmd=$lt_file_magic_cmd
20004
20005# How to find potential files when deplibs_check_method = "file_magic".
20006file_magic_glob=$lt_file_magic_glob
20007
20008# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20009want_nocaseglob=$lt_want_nocaseglob
20010
20011# DLL creation program.
20012DLLTOOL=$lt_DLLTOOL
20013
20014# Command to associate shared and link libraries.
20015sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20016
20017# The archiver.
20018AR=$lt_AR
20019
20020# Flags to create an archive.
20021AR_FLAGS=$lt_AR_FLAGS
20022
20023# How to feed a file listing to the archiver.
20024archiver_list_spec=$lt_archiver_list_spec
20025
20026# A symbol stripping program.
20027STRIP=$lt_STRIP
20028
20029# Commands used to install an old-style archive.
20030RANLIB=$lt_RANLIB
20031old_postinstall_cmds=$lt_old_postinstall_cmds
20032old_postuninstall_cmds=$lt_old_postuninstall_cmds
20033
20034# Whether to use a lock for old archive extraction.
20035lock_old_archive_extraction=$lock_old_archive_extraction
20036
20037# A C compiler.
20038LTCC=$lt_CC
20039
20040# LTCC compiler flags.
20041LTCFLAGS=$lt_CFLAGS
20042
20043# Take the output of nm and produce a listing of raw symbols and C names.
20044global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20045
20046# Transform the output of nm in a proper C declaration.
20047global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20048
20049# Transform the output of nm into a list of symbols to manually relocate.
20050global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20051
20052# Transform the output of nm in a C name address pair.
20053global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20054
20055# Transform the output of nm in a C name address pair when lib prefix is needed.
20056global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20057
20058# The name lister interface.
20059nm_interface=$lt_lt_cv_nm_interface
20060
20061# Specify filename containing input files for \$NM.
20062nm_file_list_spec=$lt_nm_file_list_spec
20063
20064# The root where to search for dependent libraries,and where our libraries should be installed.
20065lt_sysroot=$lt_sysroot
20066
20067# Command to truncate a binary pipe.
20068lt_truncate_bin=$lt_lt_cv_truncate_bin
20069
20070# The name of the directory that contains temporary libtool files.
20071objdir=$objdir
20072
20073# Used to examine libraries when file_magic_cmd begins with "file".
20074MAGIC_CMD=$MAGIC_CMD
20075
20076# Must we lock files when doing compilation?
20077need_locks=$lt_need_locks
20078
20079# Manifest tool.
20080MANIFEST_TOOL=$lt_MANIFEST_TOOL
20081
20082# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20083DSYMUTIL=$lt_DSYMUTIL
20084
20085# Tool to change global to local symbols on Mac OS X.
20086NMEDIT=$lt_NMEDIT
20087
20088# Tool to manipulate fat objects and archives on Mac OS X.
20089LIPO=$lt_LIPO
20090
20091# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20092OTOOL=$lt_OTOOL
20093
20094# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20095OTOOL64=$lt_OTOOL64
20096
20097# Old archive suffix (normally "a").
20098libext=$libext
20099
20100# Shared library suffix (normally ".so").
20101shrext_cmds=$lt_shrext_cmds
20102
20103# The commands to extract the exported symbol list from a shared archive.
20104extract_expsyms_cmds=$lt_extract_expsyms_cmds
20105
20106# Variables whose values should be saved in libtool wrapper scripts and
20107# restored at link time.
20108variables_saved_for_relink=$lt_variables_saved_for_relink
20109
20110# Do we need the "lib" prefix for modules?
20111need_lib_prefix=$need_lib_prefix
20112
20113# Do we need a version for libraries?
20114need_version=$need_version
20115
20116# Library versioning type.
20117version_type=$version_type
20118
20119# Shared library runtime path variable.
20120runpath_var=$runpath_var
20121
20122# Shared library path variable.
20123shlibpath_var=$shlibpath_var
20124
20125# Is shlibpath searched before the hard-coded library search path?
20126shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20127
20128# Format of library name prefix.
20129libname_spec=$lt_libname_spec
20130
20131# List of archive names. First name is the real one, the rest are links.
20132# The last name is the one that the linker finds with -lNAME
20133library_names_spec=$lt_library_names_spec
20134
20135# The coded name of the library, if different from the real name.
20136soname_spec=$lt_soname_spec
20137
20138# Permission mode override for installation of shared libraries.
20139install_override_mode=$lt_install_override_mode
20140
20141# Command to use after installation of a shared archive.
20142postinstall_cmds=$lt_postinstall_cmds
20143
20144# Command to use after uninstallation of a shared archive.
20145postuninstall_cmds=$lt_postuninstall_cmds
20146
20147# Commands used to finish a libtool library installation in a directory.
20148finish_cmds=$lt_finish_cmds
20149
20150# As "finish_cmds", except a single script fragment to be evaled but
20151# not shown.
20152finish_eval=$lt_finish_eval
20153
20154# Whether we should hardcode library paths into libraries.
20155hardcode_into_libs=$hardcode_into_libs
20156
20157# Compile-time system search path for libraries.
20158sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20159
20160# Detected run-time system search path for libraries.
20161sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20162
20163# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20164configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20165
20166# Whether dlopen is supported.
20167dlopen_support=$enable_dlopen
20168
20169# Whether dlopen of programs is supported.
20170dlopen_self=$enable_dlopen_self
20171
20172# Whether dlopen of statically linked programs is supported.
20173dlopen_self_static=$enable_dlopen_self_static
20174
20175# Commands to strip libraries.
20176old_striplib=$lt_old_striplib
20177striplib=$lt_striplib
20178
20179
20180# The linker used to build libraries.
20181LD=$lt_LD
20182
20183# How to create reloadable object files.
20184reload_flag=$lt_reload_flag
20185reload_cmds=$lt_reload_cmds
20186
20187# Commands used to build an old-style archive.
20188old_archive_cmds=$lt_old_archive_cmds
20189
20190# A language specific compiler.
20191CC=$lt_compiler
20192
20193# Is the compiler the GNU compiler?
20194with_gcc=$GCC
20195
20196# Compiler flag to turn off builtin functions.
20197no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20198
20199# Additional compiler flags for building library objects.
20200pic_flag=$lt_lt_prog_compiler_pic
20201
20202# How to pass a linker flag through the compiler.
20203wl=$lt_lt_prog_compiler_wl
20204
20205# Compiler flag to prevent dynamic linking.
20206link_static_flag=$lt_lt_prog_compiler_static
20207
20208# Does compiler simultaneously support -c and -o options?
20209compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20210
20211# Whether or not to add -lc for building shared libraries.
20212build_libtool_need_lc=$archive_cmds_need_lc
20213
20214# Whether or not to disallow shared libs when runtime libs are static.
20215allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20216
20217# Compiler flag to allow reflexive dlopens.
20218export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20219
20220# Compiler flag to generate shared objects directly from archives.
20221whole_archive_flag_spec=$lt_whole_archive_flag_spec
20222
20223# Whether the compiler copes with passing no objects directly.
20224compiler_needs_object=$lt_compiler_needs_object
20225
20226# Create an old-style archive from a shared archive.
20227old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20228
20229# Create a temporary old-style archive to link instead of a shared archive.
20230old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20231
20232# Commands used to build a shared archive.
20233archive_cmds=$lt_archive_cmds
20234archive_expsym_cmds=$lt_archive_expsym_cmds
20235
20236# Commands used to build a loadable module if different from building
20237# a shared archive.
20238module_cmds=$lt_module_cmds
20239module_expsym_cmds=$lt_module_expsym_cmds
20240
20241# Whether we are building with GNU ld or not.
20242with_gnu_ld=$lt_with_gnu_ld
20243
20244# Flag that allows shared libraries with undefined symbols to be built.
20245allow_undefined_flag=$lt_allow_undefined_flag
20246
20247# Flag that enforces no undefined symbols.
20248no_undefined_flag=$lt_no_undefined_flag
20249
20250# Flag to hardcode \$libdir into a binary during linking.
20251# This must work even if \$libdir does not exist
20252hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20253
20254# Whether we need a single "-rpath" flag with a separated argument.
20255hardcode_libdir_separator=$lt_hardcode_libdir_separator
20256
20257# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20258# DIR into the resulting binary.
20259hardcode_direct=$hardcode_direct
20260
20261# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20262# DIR into the resulting binary and the resulting library dependency is
20263# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20264# library is relocated.
20265hardcode_direct_absolute=$hardcode_direct_absolute
20266
20267# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20268# into the resulting binary.
20269hardcode_minus_L=$hardcode_minus_L
20270
20271# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20272# into the resulting binary.
20273hardcode_shlibpath_var=$hardcode_shlibpath_var
20274
20275# Set to "yes" if building a shared library automatically hardcodes DIR
20276# into the library and all subsequent libraries and executables linked
20277# against it.
20278hardcode_automatic=$hardcode_automatic
20279
20280# Set to yes if linker adds runtime paths of dependent libraries
20281# to runtime path list.
20282inherit_rpath=$inherit_rpath
20283
20284# Whether libtool must link a program against all its dependency libraries.
20285link_all_deplibs=$link_all_deplibs
20286
20287# Set to "yes" if exported symbols are required.
20288always_export_symbols=$always_export_symbols
20289
20290# The commands to list exported symbols.
20291export_symbols_cmds=$lt_export_symbols_cmds
20292
20293# Symbols that should not be listed in the preloaded symbols.
20294exclude_expsyms=$lt_exclude_expsyms
20295
20296# Symbols that must always be exported.
20297include_expsyms=$lt_include_expsyms
20298
20299# Commands necessary for linking programs (against libraries) with templates.
20300prelink_cmds=$lt_prelink_cmds
20301
20302# Commands necessary for finishing linking programs.
20303postlink_cmds=$lt_postlink_cmds
20304
20305# Specify filename containing input files.
20306file_list_spec=$lt_file_list_spec
20307
20308# How to hardcode a shared library path into an executable.
20309hardcode_action=$hardcode_action
20310
20311# The directories searched by this compiler when creating a shared library.
20312compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20313
20314# Dependencies to place before and after the objects being linked to
20315# create a shared library.
20316predep_objects=$lt_predep_objects
20317postdep_objects=$lt_postdep_objects
20318predeps=$lt_predeps
20319postdeps=$lt_postdeps
20320
20321# The library search path used internally by the compiler when linking
20322# a shared library.
20323compiler_lib_search_path=$lt_compiler_lib_search_path
20324
20325# ### END LIBTOOL CONFIG
20326
20327_LT_EOF
20328
20329 cat <<'_LT_EOF' >> "$cfgfile"
20330
20331# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20332
20333# func_munge_path_list VARIABLE PATH
20334# -----------------------------------
20335# VARIABLE is name of variable containing _space_ separated list of
20336# directories to be munged by the contents of PATH, which is string
20337# having a format:
20338# "DIR[:DIR]:"
20339# string "DIR[ DIR]" will be prepended to VARIABLE
20340# ":DIR[:DIR]"
20341# string "DIR[ DIR]" will be appended to VARIABLE
20342# "DIRP[:DIRP]::[DIRA:]DIRA"
20343# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20344# "DIRA[ DIRA]" will be appended to VARIABLE
20345# "DIR[:DIR]"
20346# VARIABLE will be replaced by "DIR[ DIR]"
20347func_munge_path_list ()
20348{
20349 case x$2 in
20350 x)
20351 ;;
20352 *:)
20353 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20354 ;;
20355 x:*)
20356 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20357 ;;
20358 *::*)
20359 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20360 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20361 ;;
20362 *)
20363 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20364 ;;
20365 esac
20366}
20367
20368
20369# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20370func_cc_basename ()
20371{
20372 for cc_temp in $*""; do
20373 case $cc_temp in
20374 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20375 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20376 \-*) ;;
20377 *) break;;
20378 esac
20379 done
20380 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20381}
20382
20383
20384# ### END FUNCTIONS SHARED WITH CONFIGURE
20385
20386_LT_EOF
20387
20388 case $host_os in
20389 aix3*)
20390 cat <<\_LT_EOF >> "$cfgfile"
20391# AIX sometimes has problems with the GCC collect2 program. For some
20392# reason, if we set the COLLECT_NAMES environment variable, the problems
20393# vanish in a puff of smoke.
20394if test set != "${COLLECT_NAMES+set}"; then
20395 COLLECT_NAMES=
20396 export COLLECT_NAMES
20397fi
20398_LT_EOF
20399 ;;
20400 esac
20401
20402
20403ltmain=$ac_aux_dir/ltmain.sh
20404
20405
20406 # We use sed instead of cat because bash on DJGPP gets confused if
20407 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20408 # text mode, it properly converts lines to CR/LF. This bash problem
20409 # is reportedly fixed, but why not run on old versions too?
20410 sed '$q' "$ltmain" >> "$cfgfile" \
20411 || (rm -f "$cfgfile"; exit 1)
20412
20413 mv -f "$cfgfile" "$ofile" ||
20414 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20415 chmod +x "$ofile"
20416
20417
20418 cat <<_LT_EOF >> "$ofile"
20419
20420# ### BEGIN LIBTOOL TAG CONFIG: CXX
20421
20422# The linker used to build libraries.
20423LD=$lt_LD_CXX
20424
20425# How to create reloadable object files.
20426reload_flag=$lt_reload_flag_CXX
20427reload_cmds=$lt_reload_cmds_CXX
20428
20429# Commands used to build an old-style archive.
20430old_archive_cmds=$lt_old_archive_cmds_CXX
20431
20432# A language specific compiler.
20433CC=$lt_compiler_CXX
20434
20435# Is the compiler the GNU compiler?
20436with_gcc=$GCC_CXX
20437
20438# Compiler flag to turn off builtin functions.
20439no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20440
20441# Additional compiler flags for building library objects.
20442pic_flag=$lt_lt_prog_compiler_pic_CXX
20443
20444# How to pass a linker flag through the compiler.
20445wl=$lt_lt_prog_compiler_wl_CXX
20446
20447# Compiler flag to prevent dynamic linking.
20448link_static_flag=$lt_lt_prog_compiler_static_CXX
20449
20450# Does compiler simultaneously support -c and -o options?
20451compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20452
20453# Whether or not to add -lc for building shared libraries.
20454build_libtool_need_lc=$archive_cmds_need_lc_CXX
20455
20456# Whether or not to disallow shared libs when runtime libs are static.
20457allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20458
20459# Compiler flag to allow reflexive dlopens.
20460export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20461
20462# Compiler flag to generate shared objects directly from archives.
20463whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20464
20465# Whether the compiler copes with passing no objects directly.
20466compiler_needs_object=$lt_compiler_needs_object_CXX
20467
20468# Create an old-style archive from a shared archive.
20469old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20470
20471# Create a temporary old-style archive to link instead of a shared archive.
20472old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20473
20474# Commands used to build a shared archive.
20475archive_cmds=$lt_archive_cmds_CXX
20476archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20477
20478# Commands used to build a loadable module if different from building
20479# a shared archive.
20480module_cmds=$lt_module_cmds_CXX
20481module_expsym_cmds=$lt_module_expsym_cmds_CXX
20482
20483# Whether we are building with GNU ld or not.
20484with_gnu_ld=$lt_with_gnu_ld_CXX
20485
20486# Flag that allows shared libraries with undefined symbols to be built.
20487allow_undefined_flag=$lt_allow_undefined_flag_CXX
20488
20489# Flag that enforces no undefined symbols.
20490no_undefined_flag=$lt_no_undefined_flag_CXX
20491
20492# Flag to hardcode \$libdir into a binary during linking.
20493# This must work even if \$libdir does not exist
20494hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20495
20496# Whether we need a single "-rpath" flag with a separated argument.
20497hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20498
20499# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20500# DIR into the resulting binary.
20501hardcode_direct=$hardcode_direct_CXX
20502
20503# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20504# DIR into the resulting binary and the resulting library dependency is
20505# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20506# library is relocated.
20507hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20508
20509# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20510# into the resulting binary.
20511hardcode_minus_L=$hardcode_minus_L_CXX
20512
20513# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20514# into the resulting binary.
20515hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20516
20517# Set to "yes" if building a shared library automatically hardcodes DIR
20518# into the library and all subsequent libraries and executables linked
20519# against it.
20520hardcode_automatic=$hardcode_automatic_CXX
20521
20522# Set to yes if linker adds runtime paths of dependent libraries
20523# to runtime path list.
20524inherit_rpath=$inherit_rpath_CXX
20525
20526# Whether libtool must link a program against all its dependency libraries.
20527link_all_deplibs=$link_all_deplibs_CXX
20528
20529# Set to "yes" if exported symbols are required.
20530always_export_symbols=$always_export_symbols_CXX
20531
20532# The commands to list exported symbols.
20533export_symbols_cmds=$lt_export_symbols_cmds_CXX
20534
20535# Symbols that should not be listed in the preloaded symbols.
20536exclude_expsyms=$lt_exclude_expsyms_CXX
20537
20538# Symbols that must always be exported.
20539include_expsyms=$lt_include_expsyms_CXX
20540
20541# Commands necessary for linking programs (against libraries) with templates.
20542prelink_cmds=$lt_prelink_cmds_CXX
20543
20544# Commands necessary for finishing linking programs.
20545postlink_cmds=$lt_postlink_cmds_CXX
20546
20547# Specify filename containing input files.
20548file_list_spec=$lt_file_list_spec_CXX
20549
20550# How to hardcode a shared library path into an executable.
20551hardcode_action=$hardcode_action_CXX
20552
20553# The directories searched by this compiler when creating a shared library.
20554compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20555
20556# Dependencies to place before and after the objects being linked to
20557# create a shared library.
20558predep_objects=$lt_predep_objects_CXX
20559postdep_objects=$lt_postdep_objects_CXX
20560predeps=$lt_predeps_CXX
20561postdeps=$lt_postdeps_CXX
20562
20563# The library search path used internally by the compiler when linking
20564# a shared library.
20565compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20566
20567# ### END LIBTOOL TAG CONFIG: CXX
20568_LT_EOF
20569
20570
20571 cat <<_LT_EOF >> "$ofile"
20572
20573# ### BEGIN LIBTOOL TAG CONFIG: RC
20574
20575# The linker used to build libraries.
20576LD=$lt_LD_RC
20577
20578# How to create reloadable object files.
20579reload_flag=$lt_reload_flag_RC
20580reload_cmds=$lt_reload_cmds_RC
20581
20582# Commands used to build an old-style archive.
20583old_archive_cmds=$lt_old_archive_cmds_RC
20584
20585# A language specific compiler.
20586CC=$lt_compiler_RC
20587
20588# Is the compiler the GNU compiler?
20589with_gcc=$GCC_RC
20590
20591# Compiler flag to turn off builtin functions.
20592no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20593
20594# Additional compiler flags for building library objects.
20595pic_flag=$lt_lt_prog_compiler_pic_RC
20596
20597# How to pass a linker flag through the compiler.
20598wl=$lt_lt_prog_compiler_wl_RC
20599
20600# Compiler flag to prevent dynamic linking.
20601link_static_flag=$lt_lt_prog_compiler_static_RC
20602
20603# Does compiler simultaneously support -c and -o options?
20604compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20605
20606# Whether or not to add -lc for building shared libraries.
20607build_libtool_need_lc=$archive_cmds_need_lc_RC
20608
20609# Whether or not to disallow shared libs when runtime libs are static.
20610allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20611
20612# Compiler flag to allow reflexive dlopens.
20613export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20614
20615# Compiler flag to generate shared objects directly from archives.
20616whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20617
20618# Whether the compiler copes with passing no objects directly.
20619compiler_needs_object=$lt_compiler_needs_object_RC
20620
20621# Create an old-style archive from a shared archive.
20622old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20623
20624# Create a temporary old-style archive to link instead of a shared archive.
20625old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20626
20627# Commands used to build a shared archive.
20628archive_cmds=$lt_archive_cmds_RC
20629archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20630
20631# Commands used to build a loadable module if different from building
20632# a shared archive.
20633module_cmds=$lt_module_cmds_RC
20634module_expsym_cmds=$lt_module_expsym_cmds_RC
20635
20636# Whether we are building with GNU ld or not.
20637with_gnu_ld=$lt_with_gnu_ld_RC
20638
20639# Flag that allows shared libraries with undefined symbols to be built.
20640allow_undefined_flag=$lt_allow_undefined_flag_RC
20641
20642# Flag that enforces no undefined symbols.
20643no_undefined_flag=$lt_no_undefined_flag_RC
20644
20645# Flag to hardcode \$libdir into a binary during linking.
20646# This must work even if \$libdir does not exist
20647hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20648
20649# Whether we need a single "-rpath" flag with a separated argument.
20650hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20651
20652# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20653# DIR into the resulting binary.
20654hardcode_direct=$hardcode_direct_RC
20655
20656# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20657# DIR into the resulting binary and the resulting library dependency is
20658# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20659# library is relocated.
20660hardcode_direct_absolute=$hardcode_direct_absolute_RC
20661
20662# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20663# into the resulting binary.
20664hardcode_minus_L=$hardcode_minus_L_RC
20665
20666# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20667# into the resulting binary.
20668hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20669
20670# Set to "yes" if building a shared library automatically hardcodes DIR
20671# into the library and all subsequent libraries and executables linked
20672# against it.
20673hardcode_automatic=$hardcode_automatic_RC
20674
20675# Set to yes if linker adds runtime paths of dependent libraries
20676# to runtime path list.
20677inherit_rpath=$inherit_rpath_RC
20678
20679# Whether libtool must link a program against all its dependency libraries.
20680link_all_deplibs=$link_all_deplibs_RC
20681
20682# Set to "yes" if exported symbols are required.
20683always_export_symbols=$always_export_symbols_RC
20684
20685# The commands to list exported symbols.
20686export_symbols_cmds=$lt_export_symbols_cmds_RC
20687
20688# Symbols that should not be listed in the preloaded symbols.
20689exclude_expsyms=$lt_exclude_expsyms_RC
20690
20691# Symbols that must always be exported.
20692include_expsyms=$lt_include_expsyms_RC
20693
20694# Commands necessary for linking programs (against libraries) with templates.
20695prelink_cmds=$lt_prelink_cmds_RC
20696
20697# Commands necessary for finishing linking programs.
20698postlink_cmds=$lt_postlink_cmds_RC
20699
20700# Specify filename containing input files.
20701file_list_spec=$lt_file_list_spec_RC
20702
20703# How to hardcode a shared library path into an executable.
20704hardcode_action=$hardcode_action_RC
20705
20706# The directories searched by this compiler when creating a shared library.
20707compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20708
20709# Dependencies to place before and after the objects being linked to
20710# create a shared library.
20711predep_objects=$lt_predep_objects_RC
20712postdep_objects=$lt_postdep_objects_RC
20713predeps=$lt_predeps_RC
20714postdeps=$lt_postdeps_RC
20715
20716# The library search path used internally by the compiler when linking
20717# a shared library.
20718compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20719
20720# ### END LIBTOOL TAG CONFIG: RC
20721_LT_EOF
20722
20723 ;;
20724
20725 esac
20726done # for ac_tag
20727
20728
20729as_fn_exit 0
20730_ACEOF
20731ac_clean_files=$ac_clean_files_save
20732
20733test $ac_write_fail = 0 ||
20734 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20735
20736
20737# configure is writing to config.log, and then calls config.status.
20738# config.status does its own redirection, appending to config.log.
20739# Unfortunately, on DOS this fails, as config.log is still kept open
20740# by configure, so config.status won't be able to write to it; its
20741# output is simply discarded. So we exec the FD to /dev/null,
20742# effectively closing config.log, so it can be properly (re)opened and
20743# appended to by config.status. When coming back to configure, we
20744# need to make the FD available again.
20745if test "$no_create" != yes; then
20746 ac_cs_success=:
20747 ac_config_status_args=
20748 test "$silent" = yes &&
20749 ac_config_status_args="$ac_config_status_args --quiet"
20750 exec 5>/dev/null
20751 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20752 exec 5>>config.log
20753 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20754 # would make configure fail if this is the last instruction.
20755 $ac_cs_success || as_fn_exit 1
20756fi
20757if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20759$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20760fi
20761
20762
20763#====================================================================================
20764
20765{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
20766-=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-
20767
20768 Configuration summary :
20769
20770 Version : ..................... ${VERSION}
20771
20772 Host CPU : .................... ${host_cpu}
20773 Host Vendor : ................. ${host_vendor}
20774 Host OS : ..................... ${host_os}
20775" >&5
20776$as_echo "
20777-=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-
20778
20779 Configuration summary :
20780
20781 Version : ..................... ${VERSION}
20782
20783 Host CPU : .................... ${host_cpu}
20784 Host Vendor : ................. ${host_vendor}
20785 Host OS : ..................... ${host_os}
20786" >&6; }
20787
20788if test x$ac_cv_c_compiler_gnu = xyes ; then
20789 echo -e " Tools :\n"
20790 echo " Compiler is GCC : ............. ${ac_cv_c_compiler_gnu}"
20791 echo " GCC major version : ........... ${GCC_MAJOR_VERSION}"
20792 fi
20793
20794{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
20795 Extra tools required for testing and examples :
20796
20797 Have FFTW : ................... ${ac_cv_fftw3}" >&5
20798$as_echo "
20799 Extra tools required for testing and examples :
20800
20801 Have FFTW : ................... ${ac_cv_fftw3}" >&6; }
20802
20803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Have libsndfile : ............. ${ac_cv_sndfile}" >&5
20804$as_echo " Have libsndfile : ............. ${ac_cv_sndfile}" >&6; }
20805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Have ALSA : ................... ${ac_cv_header_alsa_asoundlib_h}
20806" >&5
20807$as_echo " Have ALSA : ................... ${ac_cv_header_alsa_asoundlib_h}
20808" >&6; }
20809
20810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Installation directories :
20811
20812 Library directory : ........... ${prefix}/lib
20813 Program directory : ........... ${prefix}/bin
20814 Pkgconfig directory : ......... ${prefix}/lib/pkgconfig
20815" >&5
20816$as_echo " Installation directories :
20817
20818 Library directory : ........... ${prefix}/lib
20819 Program directory : ........... ${prefix}/bin
20820 Pkgconfig directory : ......... ${prefix}/lib/pkgconfig
20821" >&6; }
20822
20823if test x$prefix != "x/usr" ; then
20824 echo "Compiling some other packages against ${PACKAGE} may require "
20825 echo -e "the addition of \"${prefix}/lib/pkgconfig\" to the "
20826 echo -e "PKG_CONFIG_PATH environment variable.\n"
20827 fi
20828
This page took 2.334678 seconds and 4 git commands to generate.