blob: a71cc864b69ed27cd7830eaa82fe02c3b652f7a9 [file] [log] [blame]
Alexandre Lision744f7422013-09-25 11:39:37 -04001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for opus 1.0.3.
4#
5# Report bugs to <opus@xiph.org>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and opus@xiph.org
250$0: about your system, including any error possibly output
251$0: before this message. Then install a modern shell, or
252$0: manually run the script under such a shell if you do
253$0: have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382# script with STATUS, using 1 if that was 0.
383as_fn_error ()
384{
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392} # as_fn_error
393
394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
472case `echo -n x` in #(((((
473-n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480*)
481 ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
552
553# Name of the host.
554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
569
570# Identity of this package.
571PACKAGE_NAME='opus'
572PACKAGE_TARNAME='opus'
573PACKAGE_VERSION='1.0.3'
574PACKAGE_STRING='opus 1.0.3'
575PACKAGE_BUGREPORT='opus@xiph.org'
576PACKAGE_URL=''
577
578ac_unique_file="src/opus_encoder.c"
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593# include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598# include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
615ac_subst_vars='am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
618LIBOBJS
619PC_LIBM
620PC_BUILD
621CUSTOM_MODES_FALSE
622CUSTOM_MODES_TRUE
623FIXED_POINT_FALSE
624FIXED_POINT_TRUE
625SIZE32
626SIZE16
627SYMBOL_VISIBILITY
628HAVE_DOXYGEN_FALSE
629HAVE_DOXYGEN_TRUE
630HAVE_DOXYGEN
631LIBM
632CPP
633OTOOL64
634OTOOL
635LIPO
636NMEDIT
637DSYMUTIL
638MANIFEST_TOOL
639RANLIB
640ac_ct_AR
641AR
642DLLTOOL
643OBJDUMP
644LN_S
645NM
646ac_ct_DUMPBIN
647DUMPBIN
648LD
649FGREP
650EGREP
651GREP
652SED
653am__fastdepCC_FALSE
654am__fastdepCC_TRUE
655CCDEPMODE
656am__nodep
657AMDEPBACKSLASH
658AMDEP_FALSE
659AMDEP_TRUE
660am__quote
661am__include
662DEPDIR
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670LIBTOOL
671host_os
672host_vendor
673host_cpu
674host
675build_os
676build_vendor
677build_cpu
678build
679MAINT
680MAINTAINER_MODE_FALSE
681MAINTAINER_MODE_TRUE
682am__untar
683am__tar
684AMTAR
685am__leading_dot
686SET_MAKE
687AWK
688mkdir_p
689MKDIR_P
690INSTALL_STRIP_PROGRAM
691STRIP
692install_sh
693MAKEINFO
694AUTOHEADER
695AUTOMAKE
696AUTOCONF
697ACLOCAL
698VERSION
699PACKAGE
700CYGPATH_W
701am__isrc
702INSTALL_DATA
703INSTALL_SCRIPT
704INSTALL_PROGRAM
705OPUS_LT_AGE
706OPUS_LT_REVISION
707OPUS_LT_CURRENT
708AM_BACKSLASH
709AM_DEFAULT_VERBOSITY
710AM_DEFAULT_V
711AM_V
712target_alias
713host_alias
714build_alias
715LIBS
716ECHO_T
717ECHO_N
718ECHO_C
719DEFS
720mandir
721localedir
722libdir
723psdir
724pdfdir
725dvidir
726htmldir
727infodir
728docdir
729oldincludedir
730includedir
731localstatedir
732sharedstatedir
733sysconfdir
734datadir
735datarootdir
736libexecdir
737sbindir
738bindir
739program_transform_name
740prefix
741exec_prefix
742PACKAGE_URL
743PACKAGE_BUGREPORT
744PACKAGE_STRING
745PACKAGE_VERSION
746PACKAGE_TARNAME
747PACKAGE_NAME
748PATH_SEPARATOR
749SHELL'
750ac_subst_files=''
751ac_user_opts='
752enable_option_checking
753enable_silent_rules
754enable_maintainer_mode
755enable_shared
756enable_static
757with_pic
758enable_fast_install
759enable_dependency_tracking
760with_gnu_ld
761with_sysroot
762enable_libtool_lock
763enable_fixed_point
764enable_fixed_point_debug
765enable_custom_modes
766enable_float_approx
767enable_assertions
768enable_fuzzing
769enable_doc
770'
771 ac_precious_vars='build_alias
772host_alias
773target_alias
774CC
775CFLAGS
776LDFLAGS
777LIBS
778CPPFLAGS
779CPP'
780
781
782# Initialize some variables set by options.
783ac_init_help=
784ac_init_version=false
785ac_unrecognized_opts=
786ac_unrecognized_sep=
787# The variables have the same names as the options, with
788# dashes changed to underlines.
789cache_file=/dev/null
790exec_prefix=NONE
791no_create=
792no_recursion=
793prefix=NONE
794program_prefix=NONE
795program_suffix=NONE
796program_transform_name=s,x,x,
797silent=
798site=
799srcdir=
800verbose=
801x_includes=NONE
802x_libraries=NONE
803
804# Installation directory options.
805# These are left unexpanded so users can "make install exec_prefix=/foo"
806# and all the variables that are supposed to be based on exec_prefix
807# by default will actually change.
808# Use braces instead of parens because sh, perl, etc. also accept them.
809# (The list follows the same order as the GNU Coding Standards.)
810bindir='${exec_prefix}/bin'
811sbindir='${exec_prefix}/sbin'
812libexecdir='${exec_prefix}/libexec'
813datarootdir='${prefix}/share'
814datadir='${datarootdir}'
815sysconfdir='${prefix}/etc'
816sharedstatedir='${prefix}/com'
817localstatedir='${prefix}/var'
818includedir='${prefix}/include'
819oldincludedir='/usr/include'
820docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821infodir='${datarootdir}/info'
822htmldir='${docdir}'
823dvidir='${docdir}'
824pdfdir='${docdir}'
825psdir='${docdir}'
826libdir='${exec_prefix}/lib'
827localedir='${datarootdir}/locale'
828mandir='${datarootdir}/man'
829
830ac_prev=
831ac_dashdash=
832for ac_option
833do
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
839 fi
840
841 case $ac_option in
842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *=) ac_optarg= ;;
844 *) ac_optarg=yes ;;
845 esac
846
847 # Accept the important Cygnus configure options, so we can diagnose typos.
848
849 case $ac_dashdash$ac_option in
850 --)
851 ac_dashdash=yes ;;
852
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 bindir=$ac_optarg ;;
857
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
862
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
869
870 --config-cache | -C)
871 cache_file=config.cache ;;
872
873 -datadir | --datadir | --datadi | --datad)
874 ac_prev=datadir ;;
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
877
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
884
885 -disable-* | --disable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error $? "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
893 *"
894"enable_$ac_useropt"
895"*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=no ;;
900
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
905
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
910
911 -enable-* | --enable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920"enable_$ac_useropt"
921"*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=\$ac_optarg ;;
926
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix=$ac_optarg ;;
935
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
938 with_gas=yes ;;
939
940 -help | --help | --hel | --he | -h)
941 ac_init_help=long ;;
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
946
947 -host | --host | --hos | --ho)
948 ac_prev=host_alias ;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias=$ac_optarg ;;
951
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 ac_prev=htmldir ;;
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 | --ht=*)
956 htmldir=$ac_optarg ;;
957
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir=$ac_optarg ;;
964
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 ac_prev=infodir ;;
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir=$ac_optarg ;;
969
970 -libdir | --libdir | --libdi | --libd)
971 ac_prev=libdir ;;
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 libdir=$ac_optarg ;;
974
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir=$ac_optarg ;;
981
982 -localedir | --localedir | --localedi | --localed | --locale)
983 ac_prev=localedir ;;
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
986
987 -localstatedir | --localstatedir | --localstatedi | --localstated \
988 | --localstate | --localstat | --localsta | --localst | --locals)
989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992 localstatedir=$ac_optarg ;;
993
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 ac_prev=mandir ;;
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997 mandir=$ac_optarg ;;
998
999 -nfp | --nfp | --nf)
1000 # Obsolete; use --without-fp.
1001 with_fp=no ;;
1002
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1005 no_create=yes ;;
1006
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 no_recursion=yes ;;
1010
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir=$ac_optarg ;;
1019
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 ac_prev=prefix ;;
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix=$ac_optarg ;;
1024
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix=$ac_optarg ;;
1031
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix=$ac_optarg ;;
1038
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name=$ac_optarg ;;
1055
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 ac_prev=pdfdir ;;
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1060
1061 -psdir | --psdir | --psdi | --psd | --ps)
1062 ac_prev=psdir ;;
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 psdir=$ac_optarg ;;
1065
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 silent=yes ;;
1069
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 ac_prev=sbindir ;;
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 | --sbi=* | --sb=*)
1074 sbindir=$ac_optarg ;;
1075
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1079 | --sha | --sh)
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 | --sha=* | --sh=*)
1085 sharedstatedir=$ac_optarg ;;
1086
1087 -site | --site | --sit)
1088 ac_prev=site ;;
1089 -site=* | --site=* | --sit=*)
1090 site=$ac_optarg ;;
1091
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 ac_prev=srcdir ;;
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir=$ac_optarg ;;
1096
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir=$ac_optarg ;;
1103
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev=target_alias ;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias=$ac_optarg ;;
1108
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 verbose=yes ;;
1111
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
1114
1115 -with-* | --with-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124"with_$ac_useropt"
1125"*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=\$ac_optarg ;;
1130
1131 -without-* | --without-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140"with_$ac_useropt"
1141"*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=no ;;
1146
1147 --x)
1148 # Obsolete; use --with-x.
1149 with_x=yes ;;
1150
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1157
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1164
1165 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166Try \`$0 --help' for more information"
1167 ;;
1168
1169 *=*)
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175 esac
1176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1178
1179 *)
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185 ;;
1186
1187 esac
1188done
1189
1190if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192 as_fn_error $? "missing argument to $ac_option"
1193fi
1194
1195if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1197 no) ;;
1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 esac
1201fi
1202
1203# Check all directory arguments for consistency.
1204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1208do
1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
1211 case $ac_val in
1212 */ )
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1215 esac
1216 # Be sure to have absolute directory names.
1217 case $ac_val in
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 esac
1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222done
1223
1224# There might be people who depend on the old broken behavior: `$host'
1225# used to hold the argument of --host etc.
1226# FIXME: To remove some day.
1227build=$build_alias
1228host=$host_alias
1229target=$target_alias
1230
1231# FIXME: To remove some day.
1232if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1236 If a cross compiler is detected then cross compile mode will be used" >&2
1237 elif test "x$build_alias" != "x$host_alias"; then
1238 cross_compiling=yes
1239 fi
1240fi
1241
1242ac_tool_prefix=
1243test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244
1245test "$silent" = yes && exec 6>/dev/null
1246
1247
1248ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249ac_ls_di=`ls -di .` &&
1250ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251 as_fn_error $? "working directory cannot be determined"
1252test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 as_fn_error $? "pwd does not report name of working directory"
1254
1255
1256# Find the source files, if location was not specified.
1257if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir=`$as_dirname -- "$as_myself" ||
1261$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$as_myself" : 'X\(//\)[^/]' \| \
1263 X"$as_myself" : 'X\(//\)$' \| \
1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265$as_echo X"$as_myself" |
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)[^/].*/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\).*/{
1279 s//\1/
1280 q
1281 }
1282 s/.*/./; q'`
1283 srcdir=$ac_confdir
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 srcdir=..
1286 fi
1287else
1288 ac_srcdir_defaulted=no
1289fi
1290if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1293fi
1294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295ac_abs_confdir=`(
1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1297 pwd)`
1298# When building in place, set srcdir=.
1299if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1301fi
1302# Remove unnecessary trailing slashes from srcdir.
1303# Double slashes in file names in object file debugging info
1304# mess up M-x gdb in Emacs.
1305case $srcdir in
1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307esac
1308for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313done
1314
1315#
1316# Report the --help message.
1317#
1318if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
1322\`configure' configures opus 1.0.3 to adapt to many kinds of systems.
1323
1324Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327VAR=VALUE. See below for descriptions of some of the useful variables.
1328
1329Defaults for the options are specified in brackets.
1330
1331Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking ...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341
1342Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 [PREFIX]
1347
1348By default, \`make install' will install all the files in
1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351for instance \`--prefix=\$HOME'.
1352
1353For better control, use the options below.
1354
1355Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/opus]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1375_ACEOF
1376
1377 cat <<\_ACEOF
1378
1379Program names:
1380 --program-prefix=PREFIX prepend PREFIX to installed program names
1381 --program-suffix=SUFFIX append SUFFIX to installed program names
1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1383
1384System types:
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387_ACEOF
1388fi
1389
1390if test -n "$ac_init_help"; then
1391 case $ac_init_help in
1392 short | recursive ) echo "Configuration of opus 1.0.3:";;
1393 esac
1394 cat <<\_ACEOF
1395
1396Optional Features:
1397 --disable-option-checking ignore unrecognized --enable/--with options
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1400 --enable-silent-rules less verbose build output (undo: `make V=1')
1401 --disable-silent-rules verbose build output (undo: `make V=0')
1402 --disable-maintainer-mode disable make rules and dependencies not useful
1403 (and sometimes confusing) to the casual installer
1404 --enable-shared[=PKGS] build shared libraries [default=yes]
1405 --enable-static[=PKGS] build static libraries [default=yes]
1406 --enable-fast-install[=PKGS]
1407 optimize for fast installation [default=yes]
1408 --disable-dependency-tracking speeds up one-time build
1409 --enable-dependency-tracking do not reject slow dependency extractors
1410 --disable-libtool-lock avoid locking (might break parallel builds)
1411 --enable-fixed-point compile without floating point (for machines without a fast enough FPU)
1412 --enable-fixed-point-debug debug fixed-point implementation
1413 --enable-custom-modes enable non-Opus modes, e.g. 44.1 kHz & 2^n frames
1414 --enable-float-approx enable fast approximations for floating point
1415 --enable-assertions enable additional software error checking
1416 --enable-fuzzing causes the encoder to make random decisions
1417 --disable-doc Do not build API documentation
1418
1419Optional Packages:
1420 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1422 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1423 both]
1424 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1425 --with-sysroot=DIR Search for dependent libraries within DIR
1426 (or the compiler's sysroot if not specified).
1427
1428Some influential environment variables:
1429 CC C compiler command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432 nonstandard directory <lib dir>
1433 LIBS libraries to pass to the linker, e.g. -l<library>
1434 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1435 you have headers in a nonstandard directory <include dir>
1436 CPP C preprocessor
1437
1438Use these variables to override the choices made by `configure' or to help
1439it to find libraries and programs with nonstandard names/locations.
1440
1441Report bugs to <opus@xiph.org>.
1442_ACEOF
1443ac_status=$?
1444fi
1445
1446if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" ||
1450 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451 continue
1452 ac_builddir=.
1453
1454case "$ac_dir" in
1455.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456*)
1457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458 # A ".." for each directory in $ac_dir_suffix.
1459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460 case $ac_top_builddir_sub in
1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 esac ;;
1464esac
1465ac_abs_top_builddir=$ac_pwd
1466ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467# for backward compatibility:
1468ac_top_builddir=$ac_top_build_prefix
1469
1470case $srcdir in
1471 .) # We are building in place.
1472 ac_srcdir=.
1473 ac_top_srcdir=$ac_top_builddir_sub
1474 ac_abs_top_srcdir=$ac_pwd ;;
1475 [\\/]* | ?:[\\/]* ) # Absolute name.
1476 ac_srcdir=$srcdir$ac_dir_suffix;
1477 ac_top_srcdir=$srcdir
1478 ac_abs_top_srcdir=$srcdir ;;
1479 *) # Relative name.
1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481 ac_top_srcdir=$ac_top_build_prefix$srcdir
1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1483esac
1484ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1485
1486 cd "$ac_dir" || { ac_status=$?; continue; }
1487 # Check for guested configure.
1488 if test -f "$ac_srcdir/configure.gnu"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491 elif test -f "$ac_srcdir/configure"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure" --help=recursive
1494 else
1495 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496 fi || ac_status=$?
1497 cd "$ac_pwd" || { ac_status=$?; break; }
1498 done
1499fi
1500
1501test -n "$ac_init_help" && exit $ac_status
1502if $ac_init_version; then
1503 cat <<\_ACEOF
1504opus configure 1.0.3
1505generated by GNU Autoconf 2.68
1506
1507Copyright (C) 2010 Free Software Foundation, Inc.
1508This configure script is free software; the Free Software Foundation
1509gives unlimited permission to copy, distribute and modify it.
1510_ACEOF
1511 exit
1512fi
1513
1514## ------------------------ ##
1515## Autoconf initialization. ##
1516## ------------------------ ##
1517
1518# ac_fn_c_try_compile LINENO
1519# --------------------------
1520# Try to compile conftest.$ac_ext, and return whether this succeeded.
1521ac_fn_c_try_compile ()
1522{
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext
1525 if { { ac_try="$ac_compile"
1526case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529esac
1530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531$as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_compile") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1538 fi
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest.$ac_objext; then :
1544 ac_retval=0
1545else
1546 $as_echo "$as_me: failed program was:" >&5
1547sed 's/^/| /' conftest.$ac_ext >&5
1548
1549 ac_retval=1
1550fi
1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1552 as_fn_set_status $ac_retval
1553
1554} # ac_fn_c_try_compile
1555
1556# ac_fn_c_try_link LINENO
1557# -----------------------
1558# Try to link conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_link ()
1560{
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext conftest$ac_exeext
1563 if { { ac_try="$ac_link"
1564case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569$as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_link") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1576 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest$ac_exeext && {
1582 test "$cross_compiling" = yes ||
1583 $as_test_x conftest$ac_exeext
1584 }; then :
1585 ac_retval=0
1586else
1587 $as_echo "$as_me: failed program was:" >&5
1588sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591fi
1592 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1593 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1594 # interfere with the next link command; also delete a directory that is
1595 # left behind by Apple's compiler. We do this before executing the actions.
1596 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1599
1600} # ac_fn_c_try_link
1601
1602# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1603# -------------------------------------------------------
1604# Tests whether HEADER exists and can be compiled using the include files in
1605# INCLUDES, setting the cache variable VAR accordingly.
1606ac_fn_c_check_header_compile ()
1607{
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610$as_echo_n "checking for $2... " >&6; }
1611if eval \${$3+:} false; then :
1612 $as_echo_n "(cached) " >&6
1613else
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615/* end confdefs.h. */
1616$4
1617#include <$2>
1618_ACEOF
1619if ac_fn_c_try_compile "$LINENO"; then :
1620 eval "$3=yes"
1621else
1622 eval "$3=no"
1623fi
1624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1625fi
1626eval ac_res=\$$3
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628$as_echo "$ac_res" >&6; }
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630
1631} # ac_fn_c_check_header_compile
1632
1633# ac_fn_c_try_cpp LINENO
1634# ----------------------
1635# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636ac_fn_c_try_cpp ()
1637{
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } > conftest.i && {
1655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 }; 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_c_try_cpp
1669
1670# ac_fn_c_try_run LINENO
1671# ----------------------
1672# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673# that executables *can* be run.
1674ac_fn_c_try_run ()
1675{
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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>&5
1685 ac_status=$?
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688 { { case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_try") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; }; }; then :
1698 ac_retval=0
1699else
1700 $as_echo "$as_me: program exited with status $ac_status" >&5
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=$ac_status
1705fi
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710} # ac_fn_c_try_run
1711
1712# ac_fn_c_check_func LINENO FUNC VAR
1713# ----------------------------------
1714# Tests whether FUNC exists, setting the cache variable VAR accordingly
1715ac_fn_c_check_func ()
1716{
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719$as_echo_n "checking for $2... " >&6; }
1720if eval \${$3+:} false; then :
1721 $as_echo_n "(cached) " >&6
1722else
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724/* end confdefs.h. */
1725/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1727#define $2 innocuous_$2
1728
1729/* System header to define __stub macros and hopefully few prototypes,
1730 which can conflict with char $2 (); below.
1731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1732 <limits.h> exists even on freestanding compilers. */
1733
1734#ifdef __STDC__
1735# include <limits.h>
1736#else
1737# include <assert.h>
1738#endif
1739
1740#undef $2
1741
1742/* Override any GCC internal prototype to avoid an error.
1743 Use char because int might match the return type of a GCC
1744 builtin and then its argument prototype would still apply. */
1745#ifdef __cplusplus
1746extern "C"
1747#endif
1748char $2 ();
1749/* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752#if defined __stub_$2 || defined __stub___$2
1753choke me
1754#endif
1755
1756int
1757main ()
1758{
1759return $2 ();
1760 ;
1761 return 0;
1762}
1763_ACEOF
1764if ac_fn_c_try_link "$LINENO"; then :
1765 eval "$3=yes"
1766else
1767 eval "$3=no"
1768fi
1769rm -f core conftest.err conftest.$ac_objext \
1770 conftest$ac_exeext conftest.$ac_ext
1771fi
1772eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774$as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777} # ac_fn_c_check_func
1778
1779# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1780# -------------------------------------------------------
1781# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1782# the include files in INCLUDES and setting the cache variable VAR
1783# accordingly.
1784ac_fn_c_check_header_mongrel ()
1785{
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if eval \${$3+:} false; then :
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789$as_echo_n "checking for $2... " >&6; }
1790if eval \${$3+:} false; then :
1791 $as_echo_n "(cached) " >&6
1792fi
1793eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795$as_echo "$ac_res" >&6; }
1796else
1797 # Is the header compilable?
1798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1799$as_echo_n "checking $2 usability... " >&6; }
1800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801/* end confdefs.h. */
1802$4
1803#include <$2>
1804_ACEOF
1805if ac_fn_c_try_compile "$LINENO"; then :
1806 ac_header_compiler=yes
1807else
1808 ac_header_compiler=no
1809fi
1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1812$as_echo "$ac_header_compiler" >&6; }
1813
1814# Is the header present?
1815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1816$as_echo_n "checking $2 presence... " >&6; }
1817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818/* end confdefs.h. */
1819#include <$2>
1820_ACEOF
1821if ac_fn_c_try_cpp "$LINENO"; then :
1822 ac_header_preproc=yes
1823else
1824 ac_header_preproc=no
1825fi
1826rm -f conftest.err conftest.i conftest.$ac_ext
1827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1828$as_echo "$ac_header_preproc" >&6; }
1829
1830# So? What about this header?
1831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1832 yes:no: )
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1834$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1837 ;;
1838 no:yes:* )
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1840$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1842$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1844$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1846$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849( $as_echo "## ---------------------------- ##
1850## Report this to opus@xiph.org ##
1851## ---------------------------- ##"
1852 ) | sed "s/^/$as_me: WARNING: /" >&2
1853 ;;
1854esac
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856$as_echo_n "checking for $2... " >&6; }
1857if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1859else
1860 eval "$3=\$ac_header_compiler"
1861fi
1862eval ac_res=\$$3
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864$as_echo "$ac_res" >&6; }
1865fi
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868} # ac_fn_c_check_header_mongrel
1869
1870# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1871# --------------------------------------------
1872# Tries to find the compile-time value of EXPR in a program that includes
1873# INCLUDES, setting VAR accordingly. Returns whether the value could be
1874# computed
1875ac_fn_c_compute_int ()
1876{
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if test "$cross_compiling" = yes; then
1879 # Depending upon the size, compute the lo and hi bounds.
1880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h. */
1882$4
1883int
1884main ()
1885{
1886static int test_array [1 - 2 * !(($2) >= 0)];
1887test_array [0] = 0
1888
1889 ;
1890 return 0;
1891}
1892_ACEOF
1893if ac_fn_c_try_compile "$LINENO"; then :
1894 ac_lo=0 ac_mid=0
1895 while :; do
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h. */
1898$4
1899int
1900main ()
1901{
1902static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1903test_array [0] = 0
1904
1905 ;
1906 return 0;
1907}
1908_ACEOF
1909if ac_fn_c_try_compile "$LINENO"; then :
1910 ac_hi=$ac_mid; break
1911else
1912 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1913 if test $ac_lo -le $ac_mid; then
1914 ac_lo= ac_hi=
1915 break
1916 fi
1917 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1918fi
1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 done
1921else
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923/* end confdefs.h. */
1924$4
1925int
1926main ()
1927{
1928static int test_array [1 - 2 * !(($2) < 0)];
1929test_array [0] = 0
1930
1931 ;
1932 return 0;
1933}
1934_ACEOF
1935if ac_fn_c_try_compile "$LINENO"; then :
1936 ac_hi=-1 ac_mid=-1
1937 while :; do
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939/* end confdefs.h. */
1940$4
1941int
1942main ()
1943{
1944static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1945test_array [0] = 0
1946
1947 ;
1948 return 0;
1949}
1950_ACEOF
1951if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_lo=$ac_mid; break
1953else
1954 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1955 if test $ac_mid -le $ac_hi; then
1956 ac_lo= ac_hi=
1957 break
1958 fi
1959 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1960fi
1961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 done
1963else
1964 ac_lo= ac_hi=
1965fi
1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967fi
1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969# Binary search between lo and hi bounds.
1970while test "x$ac_lo" != "x$ac_hi"; do
1971 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973/* end confdefs.h. */
1974$4
1975int
1976main ()
1977{
1978static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1979test_array [0] = 0
1980
1981 ;
1982 return 0;
1983}
1984_ACEOF
1985if ac_fn_c_try_compile "$LINENO"; then :
1986 ac_hi=$ac_mid
1987else
1988 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1989fi
1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991done
1992case $ac_lo in #((
1993?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1994'') ac_retval=1 ;;
1995esac
1996 else
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h. */
1999$4
2000static long int longval () { return $2; }
2001static unsigned long int ulongval () { return $2; }
2002#include <stdio.h>
2003#include <stdlib.h>
2004int
2005main ()
2006{
2007
2008 FILE *f = fopen ("conftest.val", "w");
2009 if (! f)
2010 return 1;
2011 if (($2) < 0)
2012 {
2013 long int i = longval ();
2014 if (i != ($2))
2015 return 1;
2016 fprintf (f, "%ld", i);
2017 }
2018 else
2019 {
2020 unsigned long int i = ulongval ();
2021 if (i != ($2))
2022 return 1;
2023 fprintf (f, "%lu", i);
2024 }
2025 /* Do not output a trailing newline, as this causes \r\n confusion
2026 on some platforms. */
2027 return ferror (f) || fclose (f) != 0;
2028
2029 ;
2030 return 0;
2031}
2032_ACEOF
2033if ac_fn_c_try_run "$LINENO"; then :
2034 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2035else
2036 ac_retval=1
2037fi
2038rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2039 conftest.$ac_objext conftest.beam conftest.$ac_ext
2040rm -f conftest.val
2041
2042 fi
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 as_fn_set_status $ac_retval
2045
2046} # ac_fn_c_compute_int
2047cat >config.log <<_ACEOF
2048This file contains any messages produced by compilers while
2049running configure, to aid debugging if configure makes a mistake.
2050
2051It was created by opus $as_me 1.0.3, which was
2052generated by GNU Autoconf 2.68. Invocation command line was
2053
2054 $ $0 $@
2055
2056_ACEOF
2057exec 5>>config.log
2058{
2059cat <<_ASUNAME
2060## --------- ##
2061## Platform. ##
2062## --------- ##
2063
2064hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2065uname -m = `(uname -m) 2>/dev/null || echo unknown`
2066uname -r = `(uname -r) 2>/dev/null || echo unknown`
2067uname -s = `(uname -s) 2>/dev/null || echo unknown`
2068uname -v = `(uname -v) 2>/dev/null || echo unknown`
2069
2070/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2071/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2072
2073/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2074/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2075/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2076/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2077/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2078/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2079/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2080
2081_ASUNAME
2082
2083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084for as_dir in $PATH
2085do
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
2088 $as_echo "PATH: $as_dir"
2089 done
2090IFS=$as_save_IFS
2091
2092} >&5
2093
2094cat >&5 <<_ACEOF
2095
2096
2097## ----------- ##
2098## Core tests. ##
2099## ----------- ##
2100
2101_ACEOF
2102
2103
2104# Keep a trace of the command line.
2105# Strip out --no-create and --no-recursion so they do not pile up.
2106# Strip out --silent because we don't want to record it for future runs.
2107# Also quote any args containing shell meta-characters.
2108# Make two passes to allow for proper duplicate-argument suppression.
2109ac_configure_args=
2110ac_configure_args0=
2111ac_configure_args1=
2112ac_must_keep_next=false
2113for ac_pass in 1 2
2114do
2115 for ac_arg
2116 do
2117 case $ac_arg in
2118 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2120 | -silent | --silent | --silen | --sile | --sil)
2121 continue ;;
2122 *\'*)
2123 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2124 esac
2125 case $ac_pass in
2126 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2127 2)
2128 as_fn_append ac_configure_args1 " '$ac_arg'"
2129 if test $ac_must_keep_next = true; then
2130 ac_must_keep_next=false # Got value, back to normal.
2131 else
2132 case $ac_arg in
2133 *=* | --config-cache | -C | -disable-* | --disable-* \
2134 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2135 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2136 | -with-* | --with-* | -without-* | --without-* | --x)
2137 case "$ac_configure_args0 " in
2138 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2139 esac
2140 ;;
2141 -* ) ac_must_keep_next=true ;;
2142 esac
2143 fi
2144 as_fn_append ac_configure_args " '$ac_arg'"
2145 ;;
2146 esac
2147 done
2148done
2149{ ac_configure_args0=; unset ac_configure_args0;}
2150{ ac_configure_args1=; unset ac_configure_args1;}
2151
2152# When interrupted or exit'd, cleanup temporary files, and complete
2153# config.log. We remove comments because anyway the quotes in there
2154# would cause problems or look ugly.
2155# WARNING: Use '\'' to represent an apostrophe within the trap.
2156# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2157trap 'exit_status=$?
2158 # Save into config.log some information that might help in debugging.
2159 {
2160 echo
2161
2162 $as_echo "## ---------------- ##
2163## Cache variables. ##
2164## ---------------- ##"
2165 echo
2166 # The following way of writing the cache mishandles newlines in values,
2167(
2168 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2169 eval ac_val=\$$ac_var
2170 case $ac_val in #(
2171 *${as_nl}*)
2172 case $ac_var in #(
2173 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2174$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2175 esac
2176 case $ac_var in #(
2177 _ | IFS | as_nl) ;; #(
2178 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2179 *) { eval $ac_var=; unset $ac_var;} ;;
2180 esac ;;
2181 esac
2182 done
2183 (set) 2>&1 |
2184 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2185 *${as_nl}ac_space=\ *)
2186 sed -n \
2187 "s/'\''/'\''\\\\'\'''\''/g;
2188 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2189 ;; #(
2190 *)
2191 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2192 ;;
2193 esac |
2194 sort
2195)
2196 echo
2197
2198 $as_echo "## ----------------- ##
2199## Output variables. ##
2200## ----------------- ##"
2201 echo
2202 for ac_var in $ac_subst_vars
2203 do
2204 eval ac_val=\$$ac_var
2205 case $ac_val in
2206 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2207 esac
2208 $as_echo "$ac_var='\''$ac_val'\''"
2209 done | sort
2210 echo
2211
2212 if test -n "$ac_subst_files"; then
2213 $as_echo "## ------------------- ##
2214## File substitutions. ##
2215## ------------------- ##"
2216 echo
2217 for ac_var in $ac_subst_files
2218 do
2219 eval ac_val=\$$ac_var
2220 case $ac_val in
2221 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2222 esac
2223 $as_echo "$ac_var='\''$ac_val'\''"
2224 done | sort
2225 echo
2226 fi
2227
2228 if test -s confdefs.h; then
2229 $as_echo "## ----------- ##
2230## confdefs.h. ##
2231## ----------- ##"
2232 echo
2233 cat confdefs.h
2234 echo
2235 fi
2236 test "$ac_signal" != 0 &&
2237 $as_echo "$as_me: caught signal $ac_signal"
2238 $as_echo "$as_me: exit $exit_status"
2239 } >&5
2240 rm -f core *.core core.conftest.* &&
2241 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2242 exit $exit_status
2243' 0
2244for ac_signal in 1 2 13 15; do
2245 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2246done
2247ac_signal=0
2248
2249# confdefs.h avoids OS command line length limits that DEFS can exceed.
2250rm -f -r conftest* confdefs.h
2251
2252$as_echo "/* confdefs.h */" > confdefs.h
2253
2254# Predefined preprocessor variables.
2255
2256cat >>confdefs.h <<_ACEOF
2257#define PACKAGE_NAME "$PACKAGE_NAME"
2258_ACEOF
2259
2260cat >>confdefs.h <<_ACEOF
2261#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2262_ACEOF
2263
2264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE_VERSION "$PACKAGE_VERSION"
2266_ACEOF
2267
2268cat >>confdefs.h <<_ACEOF
2269#define PACKAGE_STRING "$PACKAGE_STRING"
2270_ACEOF
2271
2272cat >>confdefs.h <<_ACEOF
2273#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2274_ACEOF
2275
2276cat >>confdefs.h <<_ACEOF
2277#define PACKAGE_URL "$PACKAGE_URL"
2278_ACEOF
2279
2280
2281# Let the site file select an alternate cache file if it wants to.
2282# Prefer an explicitly selected file to automatically selected ones.
2283ac_site_file1=NONE
2284ac_site_file2=NONE
2285if test -n "$CONFIG_SITE"; then
2286 # We do not want a PATH search for config.site.
2287 case $CONFIG_SITE in #((
2288 -*) ac_site_file1=./$CONFIG_SITE;;
2289 */*) ac_site_file1=$CONFIG_SITE;;
2290 *) ac_site_file1=./$CONFIG_SITE;;
2291 esac
2292elif test "x$prefix" != xNONE; then
2293 ac_site_file1=$prefix/share/config.site
2294 ac_site_file2=$prefix/etc/config.site
2295else
2296 ac_site_file1=$ac_default_prefix/share/config.site
2297 ac_site_file2=$ac_default_prefix/etc/config.site
2298fi
2299for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2300do
2301 test "x$ac_site_file" = xNONE && continue
2302 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2304$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2305 sed 's/^/| /' "$ac_site_file" >&5
2306 . "$ac_site_file" \
2307 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309as_fn_error $? "failed to load site script $ac_site_file
2310See \`config.log' for more details" "$LINENO" 5; }
2311 fi
2312done
2313
2314if test -r "$cache_file"; then
2315 # Some versions of bash will fail to source /dev/null (special files
2316 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2317 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2319$as_echo "$as_me: loading cache $cache_file" >&6;}
2320 case $cache_file in
2321 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2322 *) . "./$cache_file";;
2323 esac
2324 fi
2325else
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2327$as_echo "$as_me: creating cache $cache_file" >&6;}
2328 >$cache_file
2329fi
2330
2331# Check that the precious variables saved in the cache have kept the same
2332# value.
2333ac_cache_corrupted=false
2334for ac_var in $ac_precious_vars; do
2335 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2336 eval ac_new_set=\$ac_env_${ac_var}_set
2337 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2338 eval ac_new_val=\$ac_env_${ac_var}_value
2339 case $ac_old_set,$ac_new_set in
2340 set,)
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2342$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2343 ac_cache_corrupted=: ;;
2344 ,set)
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2346$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2347 ac_cache_corrupted=: ;;
2348 ,);;
2349 *)
2350 if test "x$ac_old_val" != "x$ac_new_val"; then
2351 # differences in whitespace do not lead to failure.
2352 ac_old_val_w=`echo x $ac_old_val`
2353 ac_new_val_w=`echo x $ac_new_val`
2354 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2356$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2357 ac_cache_corrupted=:
2358 else
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2360$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2361 eval $ac_var=\$ac_old_val
2362 fi
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2364$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2366$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2367 fi;;
2368 esac
2369 # Pass precious variables to config.status.
2370 if test "$ac_new_set" = set; then
2371 case $ac_new_val in
2372 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2373 *) ac_arg=$ac_var=$ac_new_val ;;
2374 esac
2375 case " $ac_configure_args " in
2376 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2377 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2378 esac
2379 fi
2380done
2381if $ac_cache_corrupted; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2385$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2386 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2387fi
2388## -------------------- ##
2389## Main body of script. ##
2390## -------------------- ##
2391
2392ac_ext=c
2393ac_cpp='$CPP $CPPFLAGS'
2394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397
2398
2399
2400
2401
2402# Check whether --enable-silent-rules was given.
2403if test "${enable_silent_rules+set}" = set; then :
2404 enableval=$enable_silent_rules;
2405fi
2406
2407case $enable_silent_rules in
2408yes) AM_DEFAULT_VERBOSITY=0;;
2409no) AM_DEFAULT_VERBOSITY=1;;
2410*) AM_DEFAULT_VERBOSITY=0;;
2411esac
2412am_make=${MAKE-make}
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2414$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2415if ${am_cv_make_support_nested_variables+:} false; then :
2416 $as_echo_n "(cached) " >&6
2417else
2418 if $as_echo 'TRUE=$(BAR$(V))
2419BAR0=false
2420BAR1=true
2421V=1
2422am__doit:
2423 @$(TRUE)
2424.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2425 am_cv_make_support_nested_variables=yes
2426else
2427 am_cv_make_support_nested_variables=no
2428fi
2429fi
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2431$as_echo "$am_cv_make_support_nested_variables" >&6; }
2432if test $am_cv_make_support_nested_variables = yes; then
2433 AM_V='$(V)'
2434 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2435else
2436 AM_V=$AM_DEFAULT_VERBOSITY
2437 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2438fi
2439AM_BACKSLASH='\'
2440
2441
2442
2443# For libtool.
2444OPUS_LT_CURRENT=4
2445OPUS_LT_REVISION=0
2446OPUS_LT_AGE=4
2447
2448
2449
2450
2451
2452am__api_version='1.11'
2453
2454ac_aux_dir=
2455for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2456 if test -f "$ac_dir/install-sh"; then
2457 ac_aux_dir=$ac_dir
2458 ac_install_sh="$ac_aux_dir/install-sh -c"
2459 break
2460 elif test -f "$ac_dir/install.sh"; then
2461 ac_aux_dir=$ac_dir
2462 ac_install_sh="$ac_aux_dir/install.sh -c"
2463 break
2464 elif test -f "$ac_dir/shtool"; then
2465 ac_aux_dir=$ac_dir
2466 ac_install_sh="$ac_aux_dir/shtool install -c"
2467 break
2468 fi
2469done
2470if test -z "$ac_aux_dir"; then
2471 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2472fi
2473
2474# These three variables are undocumented and unsupported,
2475# and are intended to be withdrawn in a future Autoconf release.
2476# They can cause serious problems if a builder's source tree is in a directory
2477# whose full name contains unusual characters.
2478ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2479ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2480ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2481
2482
2483# Find a good install program. We prefer a C program (faster),
2484# so one script is as good as another. But avoid the broken or
2485# incompatible versions:
2486# SysV /etc/install, /usr/sbin/install
2487# SunOS /usr/etc/install
2488# IRIX /sbin/install
2489# AIX /bin/install
2490# AmigaOS /C/install, which installs bootblocks on floppy discs
2491# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2492# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2493# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2494# OS/2's system install, which has a completely different semantic
2495# ./install, which can be erroneously created by make from ./install.sh.
2496# Reject install programs that cannot install multiple files.
2497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2498$as_echo_n "checking for a BSD-compatible install... " >&6; }
2499if test -z "$INSTALL"; then
2500if ${ac_cv_path_install+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502else
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504for as_dir in $PATH
2505do
2506 IFS=$as_save_IFS
2507 test -z "$as_dir" && as_dir=.
2508 # Account for people who put trailing slashes in PATH elements.
2509case $as_dir/ in #((
2510 ./ | .// | /[cC]/* | \
2511 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2512 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2513 /usr/ucb/* ) ;;
2514 *)
2515 # OSF1 and SCO ODT 3.0 have their own names for install.
2516 # Don't use installbsd from OSF since it installs stuff as root
2517 # by default.
2518 for ac_prog in ginstall scoinst install; do
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2521 if test $ac_prog = install &&
2522 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2523 # AIX install. It has an incompatible calling convention.
2524 :
2525 elif test $ac_prog = install &&
2526 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2527 # program-specific install script used by HP pwplus--don't use.
2528 :
2529 else
2530 rm -rf conftest.one conftest.two conftest.dir
2531 echo one > conftest.one
2532 echo two > conftest.two
2533 mkdir conftest.dir
2534 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2535 test -s conftest.one && test -s conftest.two &&
2536 test -s conftest.dir/conftest.one &&
2537 test -s conftest.dir/conftest.two
2538 then
2539 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2540 break 3
2541 fi
2542 fi
2543 fi
2544 done
2545 done
2546 ;;
2547esac
2548
2549 done
2550IFS=$as_save_IFS
2551
2552rm -rf conftest.one conftest.two conftest.dir
2553
2554fi
2555 if test "${ac_cv_path_install+set}" = set; then
2556 INSTALL=$ac_cv_path_install
2557 else
2558 # As a last resort, use the slow shell script. Don't cache a
2559 # value for INSTALL within a source directory, because that will
2560 # break other packages using the cache if that directory is
2561 # removed, or if the value is a relative name.
2562 INSTALL=$ac_install_sh
2563 fi
2564fi
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2566$as_echo "$INSTALL" >&6; }
2567
2568# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2569# It thinks the first close brace ends the variable substitution.
2570test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2571
2572test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2573
2574test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2575
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2577$as_echo_n "checking whether build environment is sane... " >&6; }
2578# Just in case
2579sleep 1
2580echo timestamp > conftest.file
2581# Reject unsafe characters in $srcdir or the absolute working directory
2582# name. Accept space and tab only in the latter.
2583am_lf='
2584'
2585case `pwd` in
2586 *[\\\"\#\$\&\'\`$am_lf]*)
2587 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2588esac
2589case $srcdir in
2590 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2591 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2592esac
2593
2594# Do `set' in a subshell so we don't clobber the current shell's
2595# arguments. Must try -L first in case configure is actually a
2596# symlink; some systems play weird games with the mod time of symlinks
2597# (eg FreeBSD returns the mod time of the symlink's containing
2598# directory).
2599if (
2600 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2601 if test "$*" = "X"; then
2602 # -L didn't work.
2603 set X `ls -t "$srcdir/configure" conftest.file`
2604 fi
2605 rm -f conftest.file
2606 if test "$*" != "X $srcdir/configure conftest.file" \
2607 && test "$*" != "X conftest.file $srcdir/configure"; then
2608
2609 # If neither matched, then we have a broken ls. This can happen
2610 # if, for instance, CONFIG_SHELL is bash and it inherits a
2611 # broken ls alias from the environment. This has actually
2612 # happened. Such a system could not be considered "sane".
2613 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2614alias in your environment" "$LINENO" 5
2615 fi
2616
2617 test "$2" = conftest.file
2618 )
2619then
2620 # Ok.
2621 :
2622else
2623 as_fn_error $? "newly created file is older than distributed files!
2624Check your system clock" "$LINENO" 5
2625fi
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627$as_echo "yes" >&6; }
2628test "$program_prefix" != NONE &&
2629 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2630# Use a double $ so make ignores it.
2631test "$program_suffix" != NONE &&
2632 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2633# Double any \ or $.
2634# By default was `s,x,x', remove it if useless.
2635ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2636program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2637
2638# expand $ac_aux_dir to an absolute path
2639am_aux_dir=`cd $ac_aux_dir && pwd`
2640
2641if test x"${MISSING+set}" != xset; then
2642 case $am_aux_dir in
2643 *\ * | *\ *)
2644 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2645 *)
2646 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2647 esac
2648fi
2649# Use eval to expand $SHELL
2650if eval "$MISSING --run true"; then
2651 am_missing_run="$MISSING --run "
2652else
2653 am_missing_run=
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2655$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2656fi
2657
2658if test x"${install_sh}" != xset; then
2659 case $am_aux_dir in
2660 *\ * | *\ *)
2661 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2662 *)
2663 install_sh="\${SHELL} $am_aux_dir/install-sh"
2664 esac
2665fi
2666
2667# Installed binaries are usually stripped using `strip' when the user
2668# run `make install-strip'. However `strip' might not be the right
2669# tool to use in cross-compilation environments, therefore Automake
2670# will honor the `STRIP' environment variable to overrule this program.
2671if test "$cross_compiling" != no; then
2672 if test -n "$ac_tool_prefix"; then
2673 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2674set dummy ${ac_tool_prefix}strip; ac_word=$2
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676$as_echo_n "checking for $ac_word... " >&6; }
2677if ${ac_cv_prog_STRIP+:} false; then :
2678 $as_echo_n "(cached) " >&6
2679else
2680 if test -n "$STRIP"; then
2681 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694done
2695 done
2696IFS=$as_save_IFS
2697
2698fi
2699fi
2700STRIP=$ac_cv_prog_STRIP
2701if test -n "$STRIP"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2703$as_echo "$STRIP" >&6; }
2704else
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706$as_echo "no" >&6; }
2707fi
2708
2709
2710fi
2711if test -z "$ac_cv_prog_STRIP"; then
2712 ac_ct_STRIP=$STRIP
2713 # Extract the first word of "strip", so it can be a program name with args.
2714set dummy strip; ac_word=$2
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716$as_echo_n "checking for $ac_word... " >&6; }
2717if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2718 $as_echo_n "(cached) " >&6
2719else
2720 if test -n "$ac_ct_STRIP"; then
2721 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2722else
2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH
2725do
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_ac_ct_STRIP="strip"
2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 break 2
2733 fi
2734done
2735 done
2736IFS=$as_save_IFS
2737
2738fi
2739fi
2740ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2741if test -n "$ac_ct_STRIP"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2743$as_echo "$ac_ct_STRIP" >&6; }
2744else
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746$as_echo "no" >&6; }
2747fi
2748
2749 if test "x$ac_ct_STRIP" = x; then
2750 STRIP=":"
2751 else
2752 case $cross_compiling:$ac_tool_warned in
2753yes:)
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2756ac_tool_warned=yes ;;
2757esac
2758 STRIP=$ac_ct_STRIP
2759 fi
2760else
2761 STRIP="$ac_cv_prog_STRIP"
2762fi
2763
2764fi
2765INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2766
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2768$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2769if test -z "$MKDIR_P"; then
2770 if ${ac_cv_path_mkdir+:} false; then :
2771 $as_echo_n "(cached) " >&6
2772else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2775do
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_prog in mkdir gmkdir; do
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2781 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2782 'mkdir (GNU coreutils) '* | \
2783 'mkdir (coreutils) '* | \
2784 'mkdir (fileutils) '4.1*)
2785 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2786 break 3;;
2787 esac
2788 done
2789 done
2790 done
2791IFS=$as_save_IFS
2792
2793fi
2794
2795 test -d ./--version && rmdir ./--version
2796 if test "${ac_cv_path_mkdir+set}" = set; then
2797 MKDIR_P="$ac_cv_path_mkdir -p"
2798 else
2799 # As a last resort, use the slow shell script. Don't cache a
2800 # value for MKDIR_P within a source directory, because that will
2801 # break other packages using the cache if that directory is
2802 # removed, or if the value is a relative name.
2803 MKDIR_P="$ac_install_sh -d"
2804 fi
2805fi
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2807$as_echo "$MKDIR_P" >&6; }
2808
2809mkdir_p="$MKDIR_P"
2810case $mkdir_p in
2811 [\\/$]* | ?:[\\/]*) ;;
2812 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2813esac
2814
2815for ac_prog in gawk mawk nawk awk
2816do
2817 # Extract the first word of "$ac_prog", so it can be a program name with args.
2818set dummy $ac_prog; ac_word=$2
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820$as_echo_n "checking for $ac_word... " >&6; }
2821if ${ac_cv_prog_AWK+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823else
2824 if test -n "$AWK"; then
2825 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2826else
2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828for as_dir in $PATH
2829do
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2834 ac_cv_prog_AWK="$ac_prog"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2837 fi
2838done
2839 done
2840IFS=$as_save_IFS
2841
2842fi
2843fi
2844AWK=$ac_cv_prog_AWK
2845if test -n "$AWK"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2847$as_echo "$AWK" >&6; }
2848else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850$as_echo "no" >&6; }
2851fi
2852
2853
2854 test -n "$AWK" && break
2855done
2856
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2858$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2859set x ${MAKE-make}
2860ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2861if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2862 $as_echo_n "(cached) " >&6
2863else
2864 cat >conftest.make <<\_ACEOF
2865SHELL = /bin/sh
2866all:
2867 @echo '@@@%%%=$(MAKE)=@@@%%%'
2868_ACEOF
2869# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2870case `${MAKE-make} -f conftest.make 2>/dev/null` in
2871 *@@@%%%=?*=@@@%%%*)
2872 eval ac_cv_prog_make_${ac_make}_set=yes;;
2873 *)
2874 eval ac_cv_prog_make_${ac_make}_set=no;;
2875esac
2876rm -f conftest.make
2877fi
2878if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2880$as_echo "yes" >&6; }
2881 SET_MAKE=
2882else
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884$as_echo "no" >&6; }
2885 SET_MAKE="MAKE=${MAKE-make}"
2886fi
2887
2888rm -rf .tst 2>/dev/null
2889mkdir .tst 2>/dev/null
2890if test -d .tst; then
2891 am__leading_dot=.
2892else
2893 am__leading_dot=_
2894fi
2895rmdir .tst 2>/dev/null
2896
2897if test "`cd $srcdir && pwd`" != "`pwd`"; then
2898 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2899 # is not polluted with repeated "-I."
2900 am__isrc=' -I$(srcdir)'
2901 # test to see if srcdir already configured
2902 if test -f $srcdir/config.status; then
2903 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2904 fi
2905fi
2906
2907# test whether we have cygpath
2908if test -z "$CYGPATH_W"; then
2909 if (cygpath --version) >/dev/null 2>/dev/null; then
2910 CYGPATH_W='cygpath -w'
2911 else
2912 CYGPATH_W=echo
2913 fi
2914fi
2915
2916
2917# Define the identity of the package.
2918 PACKAGE='opus'
2919 VERSION='1.0.3'
2920
2921
2922# Some tools Automake needs.
2923
2924ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2925
2926
2927AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2928
2929
2930AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2931
2932
2933AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2934
2935
2936MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2937
2938# We need awk for the "check" target. The system "awk" is bad on
2939# some platforms.
2940# Always define AMTAR for backward compatibility. Yes, it's still used
2941# in the wild :-( We should find a proper way to deprecate it ...
2942AMTAR='$${TAR-tar}'
2943
2944am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2945
2946
2947
2948
2949
2950
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2952$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2953 # Check whether --enable-maintainer-mode was given.
2954if test "${enable_maintainer_mode+set}" = set; then :
2955 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2956else
2957 USE_MAINTAINER_MODE=yes
2958fi
2959
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2961$as_echo "$USE_MAINTAINER_MODE" >&6; }
2962 if test $USE_MAINTAINER_MODE = yes; then
2963 MAINTAINER_MODE_TRUE=
2964 MAINTAINER_MODE_FALSE='#'
2965else
2966 MAINTAINER_MODE_TRUE='#'
2967 MAINTAINER_MODE_FALSE=
2968fi
2969
2970 MAINT=$MAINTAINER_MODE_TRUE
2971
2972
2973
2974# Make sure we can run config.sub.
2975$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2976 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2977
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2979$as_echo_n "checking build system type... " >&6; }
2980if ${ac_cv_build+:} false; then :
2981 $as_echo_n "(cached) " >&6
2982else
2983 ac_build_alias=$build_alias
2984test "x$ac_build_alias" = x &&
2985 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2986test "x$ac_build_alias" = x &&
2987 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2988ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2989 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2990
2991fi
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2993$as_echo "$ac_cv_build" >&6; }
2994case $ac_cv_build in
2995*-*-*) ;;
2996*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2997esac
2998build=$ac_cv_build
2999ac_save_IFS=$IFS; IFS='-'
3000set x $ac_cv_build
3001shift
3002build_cpu=$1
3003build_vendor=$2
3004shift; shift
3005# Remember, the first character of IFS is used to create $*,
3006# except with old shells:
3007build_os=$*
3008IFS=$ac_save_IFS
3009case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3010
3011
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3013$as_echo_n "checking host system type... " >&6; }
3014if ${ac_cv_host+:} false; then :
3015 $as_echo_n "(cached) " >&6
3016else
3017 if test "x$host_alias" = x; then
3018 ac_cv_host=$ac_cv_build
3019else
3020 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3021 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3022fi
3023
3024fi
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3026$as_echo "$ac_cv_host" >&6; }
3027case $ac_cv_host in
3028*-*-*) ;;
3029*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3030esac
3031host=$ac_cv_host
3032ac_save_IFS=$IFS; IFS='-'
3033set x $ac_cv_host
3034shift
3035host_cpu=$1
3036host_vendor=$2
3037shift; shift
3038# Remember, the first character of IFS is used to create $*,
3039# except with old shells:
3040host_os=$*
3041IFS=$ac_save_IFS
3042case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3043
3044
3045
3046case $host_os in
3047 *mingw32* ) MINGW32=yes;;
3048 * ) MINGW32=no;;
3049esac
3050
3051case `pwd` in
3052 *\ * | *\ *)
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3054$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3055esac
3056
3057
3058
3059macro_version='2.4.2'
3060macro_revision='1.3337'
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074ltmain="$ac_aux_dir/ltmain.sh"
3075
3076# Backslashify metacharacters that are still active within
3077# double-quoted strings.
3078sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3079
3080# Same as above, but do not quote variable references.
3081double_quote_subst='s/\(["`\\]\)/\\\1/g'
3082
3083# Sed substitution to delay expansion of an escaped shell variable in a
3084# double_quote_subst'ed string.
3085delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3086
3087# Sed substitution to delay expansion of an escaped single quote.
3088delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3089
3090# Sed substitution to avoid accidental globbing in evaled expressions
3091no_glob_subst='s/\*/\\\*/g'
3092
3093ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3094ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3095ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3096
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3098$as_echo_n "checking how to print strings... " >&6; }
3099# Test print first, because it will be a builtin if present.
3100if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3101 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3102 ECHO='print -r --'
3103elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3104 ECHO='printf %s\n'
3105else
3106 # Use this function as a fallback that always works.
3107 func_fallback_echo ()
3108 {
3109 eval 'cat <<_LTECHO_EOF
3110$1
3111_LTECHO_EOF'
3112 }
3113 ECHO='func_fallback_echo'
3114fi
3115
3116# func_echo_all arg...
3117# Invoke $ECHO with all args, space-separated.
3118func_echo_all ()
3119{
3120 $ECHO ""
3121}
3122
3123case "$ECHO" in
3124 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3125$as_echo "printf" >&6; } ;;
3126 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3127$as_echo "print -r" >&6; } ;;
3128 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3129$as_echo "cat" >&6; } ;;
3130esac
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145DEPDIR="${am__leading_dot}deps"
3146
3147ac_config_commands="$ac_config_commands depfiles"
3148
3149
3150am_make=${MAKE-make}
3151cat > confinc << 'END'
3152am__doit:
3153 @echo this is the am__doit target
3154.PHONY: am__doit
3155END
3156# If we don't find an include directive, just comment out the code.
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3158$as_echo_n "checking for style of include used by $am_make... " >&6; }
3159am__include="#"
3160am__quote=
3161_am_result=none
3162# First try GNU make style include.
3163echo "include confinc" > confmf
3164# Ignore all kinds of additional output from `make'.
3165case `$am_make -s -f confmf 2> /dev/null` in #(
3166*the\ am__doit\ target*)
3167 am__include=include
3168 am__quote=
3169 _am_result=GNU
3170 ;;
3171esac
3172# Now try BSD make style include.
3173if test "$am__include" = "#"; then
3174 echo '.include "confinc"' > confmf
3175 case `$am_make -s -f confmf 2> /dev/null` in #(
3176 *the\ am__doit\ target*)
3177 am__include=.include
3178 am__quote="\""
3179 _am_result=BSD
3180 ;;
3181 esac
3182fi
3183
3184
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3186$as_echo "$_am_result" >&6; }
3187rm -f confinc confmf
3188
3189# Check whether --enable-dependency-tracking was given.
3190if test "${enable_dependency_tracking+set}" = set; then :
3191 enableval=$enable_dependency_tracking;
3192fi
3193
3194if test "x$enable_dependency_tracking" != xno; then
3195 am_depcomp="$ac_aux_dir/depcomp"
3196 AMDEPBACKSLASH='\'
3197 am__nodep='_no'
3198fi
3199 if test "x$enable_dependency_tracking" != xno; then
3200 AMDEP_TRUE=
3201 AMDEP_FALSE='#'
3202else
3203 AMDEP_TRUE='#'
3204 AMDEP_FALSE=
3205fi
3206
3207
3208ac_ext=c
3209ac_cpp='$CPP $CPPFLAGS'
3210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213if test -n "$ac_tool_prefix"; then
3214 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3215set dummy ${ac_tool_prefix}gcc; ac_word=$2
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217$as_echo_n "checking for $ac_word... " >&6; }
3218if ${ac_cv_prog_CC+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220else
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3223else
3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225for as_dir in $PATH
3226do
3227 IFS=$as_save_IFS
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 break 2
3234 fi
3235done
3236 done
3237IFS=$as_save_IFS
3238
3239fi
3240fi
3241CC=$ac_cv_prog_CC
3242if test -n "$CC"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3244$as_echo "$CC" >&6; }
3245else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247$as_echo "no" >&6; }
3248fi
3249
3250
3251fi
3252if test -z "$ac_cv_prog_CC"; then
3253 ac_ct_CC=$CC
3254 # Extract the first word of "gcc", so it can be a program name with args.
3255set dummy gcc; ac_word=$2
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257$as_echo_n "checking for $ac_word... " >&6; }
3258if ${ac_cv_prog_ac_ct_CC+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260else
3261 if test -n "$ac_ct_CC"; then
3262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3263else
3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265for as_dir in $PATH
3266do
3267 IFS=$as_save_IFS
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3271 ac_cv_prog_ac_ct_CC="gcc"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275done
3276 done
3277IFS=$as_save_IFS
3278
3279fi
3280fi
3281ac_ct_CC=$ac_cv_prog_ac_ct_CC
3282if test -n "$ac_ct_CC"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3284$as_echo "$ac_ct_CC" >&6; }
3285else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287$as_echo "no" >&6; }
3288fi
3289
3290 if test "x$ac_ct_CC" = x; then
3291 CC=""
3292 else
3293 case $cross_compiling:$ac_tool_warned in
3294yes:)
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3297ac_tool_warned=yes ;;
3298esac
3299 CC=$ac_ct_CC
3300 fi
3301else
3302 CC="$ac_cv_prog_CC"
3303fi
3304
3305if test -z "$CC"; then
3306 if test -n "$ac_tool_prefix"; then
3307 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3308set dummy ${ac_tool_prefix}cc; ac_word=$2
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310$as_echo_n "checking for $ac_word... " >&6; }
3311if ${ac_cv_prog_CC+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313else
3314 if test -n "$CC"; then
3315 ac_cv_prog_CC="$CC" # Let the user override the test.
3316else
3317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318for as_dir in $PATH
3319do
3320 IFS=$as_save_IFS
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3324 ac_cv_prog_CC="${ac_tool_prefix}cc"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 break 2
3327 fi
3328done
3329 done
3330IFS=$as_save_IFS
3331
3332fi
3333fi
3334CC=$ac_cv_prog_CC
3335if test -n "$CC"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3337$as_echo "$CC" >&6; }
3338else
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340$as_echo "no" >&6; }
3341fi
3342
3343
3344 fi
3345fi
3346if test -z "$CC"; then
3347 # Extract the first word of "cc", so it can be a program name with args.
3348set dummy cc; ac_word=$2
3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350$as_echo_n "checking for $ac_word... " >&6; }
3351if ${ac_cv_prog_CC+:} false; then :
3352 $as_echo_n "(cached) " >&6
3353else
3354 if test -n "$CC"; then
3355 ac_cv_prog_CC="$CC" # Let the user override the test.
3356else
3357 ac_prog_rejected=no
3358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359for as_dir in $PATH
3360do
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3366 ac_prog_rejected=yes
3367 continue
3368 fi
3369 ac_cv_prog_CC="cc"
3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373done
3374 done
3375IFS=$as_save_IFS
3376
3377if test $ac_prog_rejected = yes; then
3378 # We found a bogon in the path, so make sure we never use it.
3379 set dummy $ac_cv_prog_CC
3380 shift
3381 if test $# != 0; then
3382 # We chose a different compiler from the bogus one.
3383 # However, it has the same basename, so the bogon will be chosen
3384 # first if we set CC to just the basename; use the full file name.
3385 shift
3386 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3387 fi
3388fi
3389fi
3390fi
3391CC=$ac_cv_prog_CC
3392if test -n "$CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394$as_echo "$CC" >&6; }
3395else
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397$as_echo "no" >&6; }
3398fi
3399
3400
3401fi
3402if test -z "$CC"; then
3403 if test -n "$ac_tool_prefix"; then
3404 for ac_prog in cl.exe
3405 do
3406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3407set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409$as_echo_n "checking for $ac_word... " >&6; }
3410if ${ac_cv_prog_CC+:} false; then :
3411 $as_echo_n "(cached) " >&6
3412else
3413 if test -n "$CC"; then
3414 ac_cv_prog_CC="$CC" # Let the user override the test.
3415else
3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417for as_dir in $PATH
3418do
3419 IFS=$as_save_IFS
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 break 2
3426 fi
3427done
3428 done
3429IFS=$as_save_IFS
3430
3431fi
3432fi
3433CC=$ac_cv_prog_CC
3434if test -n "$CC"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436$as_echo "$CC" >&6; }
3437else
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439$as_echo "no" >&6; }
3440fi
3441
3442
3443 test -n "$CC" && break
3444 done
3445fi
3446if test -z "$CC"; then
3447 ac_ct_CC=$CC
3448 for ac_prog in cl.exe
3449do
3450 # Extract the first word of "$ac_prog", so it can be a program name with args.
3451set dummy $ac_prog; ac_word=$2
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453$as_echo_n "checking for $ac_word... " >&6; }
3454if ${ac_cv_prog_ac_ct_CC+:} false; then :
3455 $as_echo_n "(cached) " >&6
3456else
3457 if test -n "$ac_ct_CC"; then
3458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3459else
3460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461for as_dir in $PATH
3462do
3463 IFS=$as_save_IFS
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3467 ac_cv_prog_ac_ct_CC="$ac_prog"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 break 2
3470 fi
3471done
3472 done
3473IFS=$as_save_IFS
3474
3475fi
3476fi
3477ac_ct_CC=$ac_cv_prog_ac_ct_CC
3478if test -n "$ac_ct_CC"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3480$as_echo "$ac_ct_CC" >&6; }
3481else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483$as_echo "no" >&6; }
3484fi
3485
3486
3487 test -n "$ac_ct_CC" && break
3488done
3489
3490 if test "x$ac_ct_CC" = x; then
3491 CC=""
3492 else
3493 case $cross_compiling:$ac_tool_warned in
3494yes:)
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3497ac_tool_warned=yes ;;
3498esac
3499 CC=$ac_ct_CC
3500 fi
3501fi
3502
3503fi
3504
3505
3506test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508as_fn_error $? "no acceptable C compiler found in \$PATH
3509See \`config.log' for more details" "$LINENO" 5; }
3510
3511# Provide some information about the compiler.
3512$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3513set X $ac_compile
3514ac_compiler=$2
3515for ac_option in --version -v -V -qversion; do
3516 { { ac_try="$ac_compiler $ac_option >&5"
3517case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
3521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522$as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3524 ac_status=$?
3525 if test -s conftest.err; then
3526 sed '10a\
3527... rest of stderr output deleted ...
3528 10q' conftest.err >conftest.er1
3529 cat conftest.er1 >&5
3530 fi
3531 rm -f conftest.er1 conftest.err
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }
3534done
3535
3536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537/* end confdefs.h. */
3538
3539int
3540main ()
3541{
3542
3543 ;
3544 return 0;
3545}
3546_ACEOF
3547ac_clean_files_save=$ac_clean_files
3548ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3549# Try to create an executable without -o first, disregard a.out.
3550# It will help us diagnose broken compilers, and finding out an intuition
3551# of exeext.
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3553$as_echo_n "checking whether the C compiler works... " >&6; }
3554ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3555
3556# The possible output files:
3557ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3558
3559ac_rmfiles=
3560for ac_file in $ac_files
3561do
3562 case $ac_file in
3563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3564 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3565 esac
3566done
3567rm -f $ac_rmfiles
3568
3569if { { ac_try="$ac_link_default"
3570case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573esac
3574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575$as_echo "$ac_try_echo"; } >&5
3576 (eval "$ac_link_default") 2>&5
3577 ac_status=$?
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }; then :
3580 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3581# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3582# in a Makefile. We should not override ac_cv_exeext if it was cached,
3583# so that the user can short-circuit this test for compilers unknown to
3584# Autoconf.
3585for ac_file in $ac_files ''
3586do
3587 test -f "$ac_file" || continue
3588 case $ac_file in
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3590 ;;
3591 [ab].out )
3592 # We found the default executable, but exeext='' is most
3593 # certainly right.
3594 break;;
3595 *.* )
3596 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3597 then :; else
3598 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3599 fi
3600 # We set ac_cv_exeext here because the later test for it is not
3601 # safe: cross compilers may not add the suffix if given an `-o'
3602 # argument, so we may need to know it at that point already.
3603 # Even if this section looks crufty: it has the advantage of
3604 # actually working.
3605 break;;
3606 * )
3607 break;;
3608 esac
3609done
3610test "$ac_cv_exeext" = no && ac_cv_exeext=
3611
3612else
3613 ac_file=''
3614fi
3615if test -z "$ac_file"; then :
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617$as_echo "no" >&6; }
3618$as_echo "$as_me: failed program was:" >&5
3619sed 's/^/| /' conftest.$ac_ext >&5
3620
3621{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623as_fn_error 77 "C compiler cannot create executables
3624See \`config.log' for more details" "$LINENO" 5; }
3625else
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3627$as_echo "yes" >&6; }
3628fi
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3630$as_echo_n "checking for C compiler default output file name... " >&6; }
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3632$as_echo "$ac_file" >&6; }
3633ac_exeext=$ac_cv_exeext
3634
3635rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3636ac_clean_files=$ac_clean_files_save
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3638$as_echo_n "checking for suffix of executables... " >&6; }
3639if { { ac_try="$ac_link"
3640case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643esac
3644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645$as_echo "$ac_try_echo"; } >&5
3646 (eval "$ac_link") 2>&5
3647 ac_status=$?
3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }; then :
3650 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3651# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3652# work properly (i.e., refer to `conftest.exe'), while it won't with
3653# `rm'.
3654for ac_file in conftest.exe conftest conftest.*; do
3655 test -f "$ac_file" || continue
3656 case $ac_file in
3657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3658 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3659 break;;
3660 * ) break;;
3661 esac
3662done
3663else
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3667See \`config.log' for more details" "$LINENO" 5; }
3668fi
3669rm -f conftest conftest$ac_cv_exeext
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3671$as_echo "$ac_cv_exeext" >&6; }
3672
3673rm -f conftest.$ac_ext
3674EXEEXT=$ac_cv_exeext
3675ac_exeext=$EXEEXT
3676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677/* end confdefs.h. */
3678#include <stdio.h>
3679int
3680main ()
3681{
3682FILE *f = fopen ("conftest.out", "w");
3683 return ferror (f) || fclose (f) != 0;
3684
3685 ;
3686 return 0;
3687}
3688_ACEOF
3689ac_clean_files="$ac_clean_files conftest.out"
3690# Check that the compiler produces executables we can run. If not, either
3691# the compiler is broken, or we cross compile.
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3693$as_echo_n "checking whether we are cross compiling... " >&6; }
3694if test "$cross_compiling" != yes; then
3695 { { ac_try="$ac_link"
3696case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699esac
3700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3701$as_echo "$ac_try_echo"; } >&5
3702 (eval "$ac_link") 2>&5
3703 ac_status=$?
3704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3705 test $ac_status = 0; }
3706 if { ac_try='./conftest$ac_cv_exeext'
3707 { { case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3710esac
3711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3712$as_echo "$ac_try_echo"; } >&5
3713 (eval "$ac_try") 2>&5
3714 ac_status=$?
3715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716 test $ac_status = 0; }; }; then
3717 cross_compiling=no
3718 else
3719 if test "$cross_compiling" = maybe; then
3720 cross_compiling=yes
3721 else
3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724as_fn_error $? "cannot run C compiled programs.
3725If you meant to cross compile, use \`--host'.
3726See \`config.log' for more details" "$LINENO" 5; }
3727 fi
3728 fi
3729fi
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3731$as_echo "$cross_compiling" >&6; }
3732
3733rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3734ac_clean_files=$ac_clean_files_save
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3736$as_echo_n "checking for suffix of object files... " >&6; }
3737if ${ac_cv_objext+:} false; then :
3738 $as_echo_n "(cached) " >&6
3739else
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741/* end confdefs.h. */
3742
3743int
3744main ()
3745{
3746
3747 ;
3748 return 0;
3749}
3750_ACEOF
3751rm -f conftest.o conftest.obj
3752if { { ac_try="$ac_compile"
3753case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756esac
3757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758$as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_compile") 2>&5
3760 ac_status=$?
3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }; then :
3763 for ac_file in conftest.o conftest.obj conftest.*; do
3764 test -f "$ac_file" || continue;
3765 case $ac_file in
3766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3767 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3768 break;;
3769 esac
3770done
3771else
3772 $as_echo "$as_me: failed program was:" >&5
3773sed 's/^/| /' conftest.$ac_ext >&5
3774
3775{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777as_fn_error $? "cannot compute suffix of object files: cannot compile
3778See \`config.log' for more details" "$LINENO" 5; }
3779fi
3780rm -f conftest.$ac_cv_objext conftest.$ac_ext
3781fi
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3783$as_echo "$ac_cv_objext" >&6; }
3784OBJEXT=$ac_cv_objext
3785ac_objext=$OBJEXT
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3787$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3788if ${ac_cv_c_compiler_gnu+:} false; then :
3789 $as_echo_n "(cached) " >&6
3790else
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792/* end confdefs.h. */
3793
3794int
3795main ()
3796{
3797#ifndef __GNUC__
3798 choke me
3799#endif
3800
3801 ;
3802 return 0;
3803}
3804_ACEOF
3805if ac_fn_c_try_compile "$LINENO"; then :
3806 ac_compiler_gnu=yes
3807else
3808 ac_compiler_gnu=no
3809fi
3810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811ac_cv_c_compiler_gnu=$ac_compiler_gnu
3812
3813fi
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3815$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3816if test $ac_compiler_gnu = yes; then
3817 GCC=yes
3818else
3819 GCC=
3820fi
3821ac_test_CFLAGS=${CFLAGS+set}
3822ac_save_CFLAGS=$CFLAGS
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3824$as_echo_n "checking whether $CC accepts -g... " >&6; }
3825if ${ac_cv_prog_cc_g+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827else
3828 ac_save_c_werror_flag=$ac_c_werror_flag
3829 ac_c_werror_flag=yes
3830 ac_cv_prog_cc_g=no
3831 CFLAGS="-g"
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833/* end confdefs.h. */
3834
3835int
3836main ()
3837{
3838
3839 ;
3840 return 0;
3841}
3842_ACEOF
3843if ac_fn_c_try_compile "$LINENO"; then :
3844 ac_cv_prog_cc_g=yes
3845else
3846 CFLAGS=""
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h. */
3849
3850int
3851main ()
3852{
3853
3854 ;
3855 return 0;
3856}
3857_ACEOF
3858if ac_fn_c_try_compile "$LINENO"; then :
3859
3860else
3861 ac_c_werror_flag=$ac_save_c_werror_flag
3862 CFLAGS="-g"
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h. */
3865
3866int
3867main ()
3868{
3869
3870 ;
3871 return 0;
3872}
3873_ACEOF
3874if ac_fn_c_try_compile "$LINENO"; then :
3875 ac_cv_prog_cc_g=yes
3876fi
3877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878fi
3879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880fi
3881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 ac_c_werror_flag=$ac_save_c_werror_flag
3883fi
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3885$as_echo "$ac_cv_prog_cc_g" >&6; }
3886if test "$ac_test_CFLAGS" = set; then
3887 CFLAGS=$ac_save_CFLAGS
3888elif test $ac_cv_prog_cc_g = yes; then
3889 if test "$GCC" = yes; then
3890 CFLAGS="-g -O2"
3891 else
3892 CFLAGS="-g"
3893 fi
3894else
3895 if test "$GCC" = yes; then
3896 CFLAGS="-O2"
3897 else
3898 CFLAGS=
3899 fi
3900fi
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3902$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3903if ${ac_cv_prog_cc_c89+:} false; then :
3904 $as_echo_n "(cached) " >&6
3905else
3906 ac_cv_prog_cc_c89=no
3907ac_save_CC=$CC
3908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909/* end confdefs.h. */
3910#include <stdarg.h>
3911#include <stdio.h>
3912#include <sys/types.h>
3913#include <sys/stat.h>
3914/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3915struct buf { int x; };
3916FILE * (*rcsopen) (struct buf *, struct stat *, int);
3917static char *e (p, i)
3918 char **p;
3919 int i;
3920{
3921 return p[i];
3922}
3923static char *f (char * (*g) (char **, int), char **p, ...)
3924{
3925 char *s;
3926 va_list v;
3927 va_start (v,p);
3928 s = g (p, va_arg (v,int));
3929 va_end (v);
3930 return s;
3931}
3932
3933/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3934 function prototypes and stuff, but not '\xHH' hex character constants.
3935 These don't provoke an error unfortunately, instead are silently treated
3936 as 'x'. The following induces an error, until -std is added to get
3937 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3938 array size at least. It's necessary to write '\x00'==0 to get something
3939 that's true only with -std. */
3940int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3941
3942/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3943 inside strings and character constants. */
3944#define FOO(x) 'x'
3945int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3946
3947int test (int i, double x);
3948struct s1 {int (*f) (int a);};
3949struct s2 {int (*f) (double a);};
3950int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3951int argc;
3952char **argv;
3953int
3954main ()
3955{
3956return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3957 ;
3958 return 0;
3959}
3960_ACEOF
3961for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3962 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3963do
3964 CC="$ac_save_CC $ac_arg"
3965 if ac_fn_c_try_compile "$LINENO"; then :
3966 ac_cv_prog_cc_c89=$ac_arg
3967fi
3968rm -f core conftest.err conftest.$ac_objext
3969 test "x$ac_cv_prog_cc_c89" != "xno" && break
3970done
3971rm -f conftest.$ac_ext
3972CC=$ac_save_CC
3973
3974fi
3975# AC_CACHE_VAL
3976case "x$ac_cv_prog_cc_c89" in
3977 x)
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3979$as_echo "none needed" >&6; } ;;
3980 xno)
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3982$as_echo "unsupported" >&6; } ;;
3983 *)
3984 CC="$CC $ac_cv_prog_cc_c89"
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3986$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3987esac
3988if test "x$ac_cv_prog_cc_c89" != xno; then :
3989
3990fi
3991
3992ac_ext=c
3993ac_cpp='$CPP $CPPFLAGS'
3994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997
3998depcc="$CC" am_compiler_list=
3999
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4001$as_echo_n "checking dependency style of $depcc... " >&6; }
4002if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4003 $as_echo_n "(cached) " >&6
4004else
4005 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4006 # We make a subdir and do the tests there. Otherwise we can end up
4007 # making bogus files that we don't know about and never remove. For
4008 # instance it was reported that on HP-UX the gcc test will end up
4009 # making a dummy file named `D' -- because `-MD' means `put the output
4010 # in D'.
4011 rm -rf conftest.dir
4012 mkdir conftest.dir
4013 # Copy depcomp to subdir because otherwise we won't find it if we're
4014 # using a relative directory.
4015 cp "$am_depcomp" conftest.dir
4016 cd conftest.dir
4017 # We will build objects and dependencies in a subdirectory because
4018 # it helps to detect inapplicable dependency modes. For instance
4019 # both Tru64's cc and ICC support -MD to output dependencies as a
4020 # side effect of compilation, but ICC will put the dependencies in
4021 # the current directory while Tru64 will put them in the object
4022 # directory.
4023 mkdir sub
4024
4025 am_cv_CC_dependencies_compiler_type=none
4026 if test "$am_compiler_list" = ""; then
4027 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4028 fi
4029 am__universal=false
4030 case " $depcc " in #(
4031 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4032 esac
4033
4034 for depmode in $am_compiler_list; do
4035 # Setup a source with many dependencies, because some compilers
4036 # like to wrap large dependency lists on column 80 (with \), and
4037 # we should not choose a depcomp mode which is confused by this.
4038 #
4039 # We need to recreate these files for each test, as the compiler may
4040 # overwrite some of them when testing with obscure command lines.
4041 # This happens at least with the AIX C compiler.
4042 : > sub/conftest.c
4043 for i in 1 2 3 4 5 6; do
4044 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4045 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4046 # Solaris 8's {/usr,}/bin/sh.
4047 touch sub/conftst$i.h
4048 done
4049 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4050
4051 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4052 # mode. It turns out that the SunPro C++ compiler does not properly
4053 # handle `-M -o', and we need to detect this. Also, some Intel
4054 # versions had trouble with output in subdirs
4055 am__obj=sub/conftest.${OBJEXT-o}
4056 am__minus_obj="-o $am__obj"
4057 case $depmode in
4058 gcc)
4059 # This depmode causes a compiler race in universal mode.
4060 test "$am__universal" = false || continue
4061 ;;
4062 nosideeffect)
4063 # after this tag, mechanisms are not by side-effect, so they'll
4064 # only be used when explicitly requested
4065 if test "x$enable_dependency_tracking" = xyes; then
4066 continue
4067 else
4068 break
4069 fi
4070 ;;
4071 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4072 # This compiler won't grok `-c -o', but also, the minuso test has
4073 # not run yet. These depmodes are late enough in the game, and
4074 # so weak that their functioning should not be impacted.
4075 am__obj=conftest.${OBJEXT-o}
4076 am__minus_obj=
4077 ;;
4078 none) break ;;
4079 esac
4080 if depmode=$depmode \
4081 source=sub/conftest.c object=$am__obj \
4082 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4083 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4084 >/dev/null 2>conftest.err &&
4085 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4086 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4087 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4088 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4089 # icc doesn't choke on unknown options, it will just issue warnings
4090 # or remarks (even with -Werror). So we grep stderr for any message
4091 # that says an option was ignored or not supported.
4092 # When given -MP, icc 7.0 and 7.1 complain thusly:
4093 # icc: Command line warning: ignoring option '-M'; no argument required
4094 # The diagnosis changed in icc 8.0:
4095 # icc: Command line remark: option '-MP' not supported
4096 if (grep 'ignoring option' conftest.err ||
4097 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4098 am_cv_CC_dependencies_compiler_type=$depmode
4099 break
4100 fi
4101 fi
4102 done
4103
4104 cd ..
4105 rm -rf conftest.dir
4106else
4107 am_cv_CC_dependencies_compiler_type=none
4108fi
4109
4110fi
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4112$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4113CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4114
4115 if
4116 test "x$enable_dependency_tracking" != xno \
4117 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4118 am__fastdepCC_TRUE=
4119 am__fastdepCC_FALSE='#'
4120else
4121 am__fastdepCC_TRUE='#'
4122 am__fastdepCC_FALSE=
4123fi
4124
4125
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4127$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4128if ${ac_cv_path_SED+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130else
4131 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4132 for ac_i in 1 2 3 4 5 6 7; do
4133 ac_script="$ac_script$as_nl$ac_script"
4134 done
4135 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4136 { ac_script=; unset ac_script;}
4137 if test -z "$SED"; then
4138 ac_path_SED_found=false
4139 # Loop through the user's path and test for each of PROGNAME-LIST
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH
4142do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_prog in sed gsed; do
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4148 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4149# Check for GNU ac_path_SED and select it if it is found.
4150 # Check for GNU $ac_path_SED
4151case `"$ac_path_SED" --version 2>&1` in
4152*GNU*)
4153 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4154*)
4155 ac_count=0
4156 $as_echo_n 0123456789 >"conftest.in"
4157 while :
4158 do
4159 cat "conftest.in" "conftest.in" >"conftest.tmp"
4160 mv "conftest.tmp" "conftest.in"
4161 cp "conftest.in" "conftest.nl"
4162 $as_echo '' >> "conftest.nl"
4163 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4165 as_fn_arith $ac_count + 1 && ac_count=$as_val
4166 if test $ac_count -gt ${ac_path_SED_max-0}; then
4167 # Best one so far, save it but keep looking for a better one
4168 ac_cv_path_SED="$ac_path_SED"
4169 ac_path_SED_max=$ac_count
4170 fi
4171 # 10*(2^10) chars as input seems more than enough
4172 test $ac_count -gt 10 && break
4173 done
4174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4175esac
4176
4177 $ac_path_SED_found && break 3
4178 done
4179 done
4180 done
4181IFS=$as_save_IFS
4182 if test -z "$ac_cv_path_SED"; then
4183 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4184 fi
4185else
4186 ac_cv_path_SED=$SED
4187fi
4188
4189fi
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4191$as_echo "$ac_cv_path_SED" >&6; }
4192 SED="$ac_cv_path_SED"
4193 rm -f conftest.sed
4194
4195test -z "$SED" && SED=sed
4196Xsed="$SED -e 1s/^X//"
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4209$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4210if ${ac_cv_path_GREP+:} false; then :
4211 $as_echo_n "(cached) " >&6
4212else
4213 if test -z "$GREP"; then
4214 ac_path_GREP_found=false
4215 # Loop through the user's path and test for each of PROGNAME-LIST
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4218do
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_prog in grep ggrep; do
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4224 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4225# Check for GNU ac_path_GREP and select it if it is found.
4226 # Check for GNU $ac_path_GREP
4227case `"$ac_path_GREP" --version 2>&1` in
4228*GNU*)
4229 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4230*)
4231 ac_count=0
4232 $as_echo_n 0123456789 >"conftest.in"
4233 while :
4234 do
4235 cat "conftest.in" "conftest.in" >"conftest.tmp"
4236 mv "conftest.tmp" "conftest.in"
4237 cp "conftest.in" "conftest.nl"
4238 $as_echo 'GREP' >> "conftest.nl"
4239 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4241 as_fn_arith $ac_count + 1 && ac_count=$as_val
4242 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4243 # Best one so far, save it but keep looking for a better one
4244 ac_cv_path_GREP="$ac_path_GREP"
4245 ac_path_GREP_max=$ac_count
4246 fi
4247 # 10*(2^10) chars as input seems more than enough
4248 test $ac_count -gt 10 && break
4249 done
4250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4251esac
4252
4253 $ac_path_GREP_found && break 3
4254 done
4255 done
4256 done
4257IFS=$as_save_IFS
4258 if test -z "$ac_cv_path_GREP"; then
4259 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4260 fi
4261else
4262 ac_cv_path_GREP=$GREP
4263fi
4264
4265fi
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4267$as_echo "$ac_cv_path_GREP" >&6; }
4268 GREP="$ac_cv_path_GREP"
4269
4270
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4272$as_echo_n "checking for egrep... " >&6; }
4273if ${ac_cv_path_EGREP+:} false; then :
4274 $as_echo_n "(cached) " >&6
4275else
4276 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4277 then ac_cv_path_EGREP="$GREP -E"
4278 else
4279 if test -z "$EGREP"; then
4280 ac_path_EGREP_found=false
4281 # Loop through the user's path and test for each of PROGNAME-LIST
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4284do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_prog in egrep; do
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4290 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4291# Check for GNU ac_path_EGREP and select it if it is found.
4292 # Check for GNU $ac_path_EGREP
4293case `"$ac_path_EGREP" --version 2>&1` in
4294*GNU*)
4295 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4296*)
4297 ac_count=0
4298 $as_echo_n 0123456789 >"conftest.in"
4299 while :
4300 do
4301 cat "conftest.in" "conftest.in" >"conftest.tmp"
4302 mv "conftest.tmp" "conftest.in"
4303 cp "conftest.in" "conftest.nl"
4304 $as_echo 'EGREP' >> "conftest.nl"
4305 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4307 as_fn_arith $ac_count + 1 && ac_count=$as_val
4308 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4309 # Best one so far, save it but keep looking for a better one
4310 ac_cv_path_EGREP="$ac_path_EGREP"
4311 ac_path_EGREP_max=$ac_count
4312 fi
4313 # 10*(2^10) chars as input seems more than enough
4314 test $ac_count -gt 10 && break
4315 done
4316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4317esac
4318
4319 $ac_path_EGREP_found && break 3
4320 done
4321 done
4322 done
4323IFS=$as_save_IFS
4324 if test -z "$ac_cv_path_EGREP"; then
4325 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4326 fi
4327else
4328 ac_cv_path_EGREP=$EGREP
4329fi
4330
4331 fi
4332fi
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4334$as_echo "$ac_cv_path_EGREP" >&6; }
4335 EGREP="$ac_cv_path_EGREP"
4336
4337
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4339$as_echo_n "checking for fgrep... " >&6; }
4340if ${ac_cv_path_FGREP+:} false; then :
4341 $as_echo_n "(cached) " >&6
4342else
4343 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4344 then ac_cv_path_FGREP="$GREP -F"
4345 else
4346 if test -z "$FGREP"; then
4347 ac_path_FGREP_found=false
4348 # Loop through the user's path and test for each of PROGNAME-LIST
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4351do
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_prog in fgrep; do
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4357 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4358# Check for GNU ac_path_FGREP and select it if it is found.
4359 # Check for GNU $ac_path_FGREP
4360case `"$ac_path_FGREP" --version 2>&1` in
4361*GNU*)
4362 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4363*)
4364 ac_count=0
4365 $as_echo_n 0123456789 >"conftest.in"
4366 while :
4367 do
4368 cat "conftest.in" "conftest.in" >"conftest.tmp"
4369 mv "conftest.tmp" "conftest.in"
4370 cp "conftest.in" "conftest.nl"
4371 $as_echo 'FGREP' >> "conftest.nl"
4372 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4374 as_fn_arith $ac_count + 1 && ac_count=$as_val
4375 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4376 # Best one so far, save it but keep looking for a better one
4377 ac_cv_path_FGREP="$ac_path_FGREP"
4378 ac_path_FGREP_max=$ac_count
4379 fi
4380 # 10*(2^10) chars as input seems more than enough
4381 test $ac_count -gt 10 && break
4382 done
4383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4384esac
4385
4386 $ac_path_FGREP_found && break 3
4387 done
4388 done
4389 done
4390IFS=$as_save_IFS
4391 if test -z "$ac_cv_path_FGREP"; then
4392 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4393 fi
4394else
4395 ac_cv_path_FGREP=$FGREP
4396fi
4397
4398 fi
4399fi
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4401$as_echo "$ac_cv_path_FGREP" >&6; }
4402 FGREP="$ac_cv_path_FGREP"
4403
4404
4405test -z "$GREP" && GREP=grep
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425# Check whether --with-gnu-ld was given.
4426if test "${with_gnu_ld+set}" = set; then :
4427 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4428else
4429 with_gnu_ld=no
4430fi
4431
4432ac_prog=ld
4433if test "$GCC" = yes; then
4434 # Check if gcc -print-prog-name=ld gives a path.
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4436$as_echo_n "checking for ld used by $CC... " >&6; }
4437 case $host in
4438 *-*-mingw*)
4439 # gcc leaves a trailing carriage return which upsets mingw
4440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4441 *)
4442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4443 esac
4444 case $ac_prog in
4445 # Accept absolute paths.
4446 [\\/]* | ?:[\\/]*)
4447 re_direlt='/[^/][^/]*/\.\./'
4448 # Canonicalize the pathname of ld
4449 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4450 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4451 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4452 done
4453 test -z "$LD" && LD="$ac_prog"
4454 ;;
4455 "")
4456 # If it fails, then pretend we aren't using GCC.
4457 ac_prog=ld
4458 ;;
4459 *)
4460 # If it is relative, then search for the first ld in PATH.
4461 with_gnu_ld=unknown
4462 ;;
4463 esac
4464elif test "$with_gnu_ld" = yes; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4466$as_echo_n "checking for GNU ld... " >&6; }
4467else
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4469$as_echo_n "checking for non-GNU ld... " >&6; }
4470fi
4471if ${lt_cv_path_LD+:} false; then :
4472 $as_echo_n "(cached) " >&6
4473else
4474 if test -z "$LD"; then
4475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4476 for ac_dir in $PATH; do
4477 IFS="$lt_save_ifs"
4478 test -z "$ac_dir" && ac_dir=.
4479 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4480 lt_cv_path_LD="$ac_dir/$ac_prog"
4481 # Check to see if the program is GNU ld. I'd rather use --version,
4482 # but apparently some variants of GNU ld only accept -v.
4483 # Break only if it was the GNU/non-GNU ld that we prefer.
4484 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4485 *GNU* | *'with BFD'*)
4486 test "$with_gnu_ld" != no && break
4487 ;;
4488 *)
4489 test "$with_gnu_ld" != yes && break
4490 ;;
4491 esac
4492 fi
4493 done
4494 IFS="$lt_save_ifs"
4495else
4496 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4497fi
4498fi
4499
4500LD="$lt_cv_path_LD"
4501if test -n "$LD"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4503$as_echo "$LD" >&6; }
4504else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506$as_echo "no" >&6; }
4507fi
4508test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4510$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4511if ${lt_cv_prog_gnu_ld+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513else
4514 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4515case `$LD -v 2>&1 </dev/null` in
4516*GNU* | *'with BFD'*)
4517 lt_cv_prog_gnu_ld=yes
4518 ;;
4519*)
4520 lt_cv_prog_gnu_ld=no
4521 ;;
4522esac
4523fi
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4525$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4526with_gnu_ld=$lt_cv_prog_gnu_ld
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4537$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4538if ${lt_cv_path_NM+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540else
4541 if test -n "$NM"; then
4542 # Let the user override the test.
4543 lt_cv_path_NM="$NM"
4544else
4545 lt_nm_to_check="${ac_tool_prefix}nm"
4546 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4547 lt_nm_to_check="$lt_nm_to_check nm"
4548 fi
4549 for lt_tmp_nm in $lt_nm_to_check; do
4550 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4551 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4552 IFS="$lt_save_ifs"
4553 test -z "$ac_dir" && ac_dir=.
4554 tmp_nm="$ac_dir/$lt_tmp_nm"
4555 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4556 # Check to see if the nm accepts a BSD-compat flag.
4557 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4558 # nm: unknown option "B" ignored
4559 # Tru64's nm complains that /dev/null is an invalid object file
4560 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4561 */dev/null* | *'Invalid file or object type'*)
4562 lt_cv_path_NM="$tmp_nm -B"
4563 break
4564 ;;
4565 *)
4566 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4567 */dev/null*)
4568 lt_cv_path_NM="$tmp_nm -p"
4569 break
4570 ;;
4571 *)
4572 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4573 continue # so that we can try to find one that supports BSD flags
4574 ;;
4575 esac
4576 ;;
4577 esac
4578 fi
4579 done
4580 IFS="$lt_save_ifs"
4581 done
4582 : ${lt_cv_path_NM=no}
4583fi
4584fi
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4586$as_echo "$lt_cv_path_NM" >&6; }
4587if test "$lt_cv_path_NM" != "no"; then
4588 NM="$lt_cv_path_NM"
4589else
4590 # Didn't find any BSD compatible name lister, look for dumpbin.
4591 if test -n "$DUMPBIN"; then :
4592 # Let the user override the test.
4593 else
4594 if test -n "$ac_tool_prefix"; then
4595 for ac_prog in dumpbin "link -dump"
4596 do
4597 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4598set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600$as_echo_n "checking for $ac_word... " >&6; }
4601if ${ac_cv_prog_DUMPBIN+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603else
4604 if test -n "$DUMPBIN"; then
4605 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4606else
4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618done
4619 done
4620IFS=$as_save_IFS
4621
4622fi
4623fi
4624DUMPBIN=$ac_cv_prog_DUMPBIN
4625if test -n "$DUMPBIN"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4627$as_echo "$DUMPBIN" >&6; }
4628else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630$as_echo "no" >&6; }
4631fi
4632
4633
4634 test -n "$DUMPBIN" && break
4635 done
4636fi
4637if test -z "$DUMPBIN"; then
4638 ac_ct_DUMPBIN=$DUMPBIN
4639 for ac_prog in dumpbin "link -dump"
4640do
4641 # Extract the first word of "$ac_prog", so it can be a program name with args.
4642set dummy $ac_prog; ac_word=$2
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644$as_echo_n "checking for $ac_word... " >&6; }
4645if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4646 $as_echo_n "(cached) " >&6
4647else
4648 if test -n "$ac_ct_DUMPBIN"; then
4649 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4650else
4651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 break 2
4661 fi
4662done
4663 done
4664IFS=$as_save_IFS
4665
4666fi
4667fi
4668ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4669if test -n "$ac_ct_DUMPBIN"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4671$as_echo "$ac_ct_DUMPBIN" >&6; }
4672else
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674$as_echo "no" >&6; }
4675fi
4676
4677
4678 test -n "$ac_ct_DUMPBIN" && break
4679done
4680
4681 if test "x$ac_ct_DUMPBIN" = x; then
4682 DUMPBIN=":"
4683 else
4684 case $cross_compiling:$ac_tool_warned in
4685yes:)
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4688ac_tool_warned=yes ;;
4689esac
4690 DUMPBIN=$ac_ct_DUMPBIN
4691 fi
4692fi
4693
4694 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4695 *COFF*)
4696 DUMPBIN="$DUMPBIN -symbols"
4697 ;;
4698 *)
4699 DUMPBIN=:
4700 ;;
4701 esac
4702 fi
4703
4704 if test "$DUMPBIN" != ":"; then
4705 NM="$DUMPBIN"
4706 fi
4707fi
4708test -z "$NM" && NM=nm
4709
4710
4711
4712
4713
4714
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4716$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4717if ${lt_cv_nm_interface+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719else
4720 lt_cv_nm_interface="BSD nm"
4721 echo "int some_variable = 0;" > conftest.$ac_ext
4722 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4723 (eval "$ac_compile" 2>conftest.err)
4724 cat conftest.err >&5
4725 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4726 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4727 cat conftest.err >&5
4728 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4729 cat conftest.out >&5
4730 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4731 lt_cv_nm_interface="MS dumpbin"
4732 fi
4733 rm -f conftest*
4734fi
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4736$as_echo "$lt_cv_nm_interface" >&6; }
4737
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4739$as_echo_n "checking whether ln -s works... " >&6; }
4740LN_S=$as_ln_s
4741if test "$LN_S" = "ln -s"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4743$as_echo "yes" >&6; }
4744else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4746$as_echo "no, using $LN_S" >&6; }
4747fi
4748
4749# find the maximum length of command line arguments
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4751$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4752if ${lt_cv_sys_max_cmd_len+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754else
4755 i=0
4756 teststring="ABCD"
4757
4758 case $build_os in
4759 msdosdjgpp*)
4760 # On DJGPP, this test can blow up pretty badly due to problems in libc
4761 # (any single argument exceeding 2000 bytes causes a buffer overrun
4762 # during glob expansion). Even if it were fixed, the result of this
4763 # check would be larger than it should be.
4764 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4765 ;;
4766
4767 gnu*)
4768 # Under GNU Hurd, this test is not required because there is
4769 # no limit to the length of command line arguments.
4770 # Libtool will interpret -1 as no limit whatsoever
4771 lt_cv_sys_max_cmd_len=-1;
4772 ;;
4773
4774 cygwin* | mingw* | cegcc*)
4775 # On Win9x/ME, this test blows up -- it succeeds, but takes
4776 # about 5 minutes as the teststring grows exponentially.
4777 # Worse, since 9x/ME are not pre-emptively multitasking,
4778 # you end up with a "frozen" computer, even though with patience
4779 # the test eventually succeeds (with a max line length of 256k).
4780 # Instead, let's just punt: use the minimum linelength reported by
4781 # all of the supported platforms: 8192 (on NT/2K/XP).
4782 lt_cv_sys_max_cmd_len=8192;
4783 ;;
4784
4785 mint*)
4786 # On MiNT this can take a long time and run out of memory.
4787 lt_cv_sys_max_cmd_len=8192;
4788 ;;
4789
4790 amigaos*)
4791 # On AmigaOS with pdksh, this test takes hours, literally.
4792 # So we just punt and use a minimum line length of 8192.
4793 lt_cv_sys_max_cmd_len=8192;
4794 ;;
4795
4796 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4797 # This has been around since 386BSD, at least. Likely further.
4798 if test -x /sbin/sysctl; then
4799 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4800 elif test -x /usr/sbin/sysctl; then
4801 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4802 else
4803 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4804 fi
4805 # And add a safety zone
4806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4808 ;;
4809
4810 interix*)
4811 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4812 lt_cv_sys_max_cmd_len=196608
4813 ;;
4814
4815 os2*)
4816 # The test takes a long time on OS/2.
4817 lt_cv_sys_max_cmd_len=8192
4818 ;;
4819
4820 osf*)
4821 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4822 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4823 # nice to cause kernel panics so lets avoid the loop below.
4824 # First set a reasonable default.
4825 lt_cv_sys_max_cmd_len=16384
4826 #
4827 if test -x /sbin/sysconfig; then
4828 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4829 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4830 esac
4831 fi
4832 ;;
4833 sco3.2v5*)
4834 lt_cv_sys_max_cmd_len=102400
4835 ;;
4836 sysv5* | sco5v6* | sysv4.2uw2*)
4837 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4838 if test -n "$kargmax"; then
4839 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4840 else
4841 lt_cv_sys_max_cmd_len=32768
4842 fi
4843 ;;
4844 *)
4845 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4846 if test -n "$lt_cv_sys_max_cmd_len"; then
4847 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4849 else
4850 # Make teststring a little bigger before we do anything with it.
4851 # a 1K string should be a reasonable start.
4852 for i in 1 2 3 4 5 6 7 8 ; do
4853 teststring=$teststring$teststring
4854 done
4855 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4856 # If test is not a shell built-in, we'll probably end up computing a
4857 # maximum length that is only half of the actual maximum length, but
4858 # we can't tell.
4859 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4860 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4861 test $i != 17 # 1/2 MB should be enough
4862 do
4863 i=`expr $i + 1`
4864 teststring=$teststring$teststring
4865 done
4866 # Only check the string length outside the loop.
4867 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4868 teststring=
4869 # Add a significant safety factor because C++ compilers can tack on
4870 # massive amounts of additional arguments before passing them to the
4871 # linker. It appears as though 1/2 is a usable value.
4872 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4873 fi
4874 ;;
4875 esac
4876
4877fi
4878
4879if test -n $lt_cv_sys_max_cmd_len ; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4881$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4882else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4884$as_echo "none" >&6; }
4885fi
4886max_cmd_len=$lt_cv_sys_max_cmd_len
4887
4888
4889
4890
4891
4892
4893: ${CP="cp -f"}
4894: ${MV="mv -f"}
4895: ${RM="rm -f"}
4896
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4898$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4899# Try some XSI features
4900xsi_shell=no
4901( _lt_dummy="a/b/c"
4902 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4903 = c,a/b,b/c, \
4904 && eval 'test $(( 1 + 1 )) -eq 2 \
4905 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4906 && xsi_shell=yes
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4908$as_echo "$xsi_shell" >&6; }
4909
4910
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4912$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4913lt_shell_append=no
4914( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4915 >/dev/null 2>&1 \
4916 && lt_shell_append=yes
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4918$as_echo "$lt_shell_append" >&6; }
4919
4920
4921if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4922 lt_unset=unset
4923else
4924 lt_unset=false
4925fi
4926
4927
4928
4929
4930
4931# test EBCDIC or ASCII
4932case `echo X|tr X '\101'` in
4933 A) # ASCII based system
4934 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4935 lt_SP2NL='tr \040 \012'
4936 lt_NL2SP='tr \015\012 \040\040'
4937 ;;
4938 *) # EBCDIC based system
4939 lt_SP2NL='tr \100 \n'
4940 lt_NL2SP='tr \r\n \100\100'
4941 ;;
4942esac
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4953$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4954if ${lt_cv_to_host_file_cmd+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956else
4957 case $host in
4958 *-*-mingw* )
4959 case $build in
4960 *-*-mingw* ) # actually msys
4961 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4962 ;;
4963 *-*-cygwin* )
4964 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4965 ;;
4966 * ) # otherwise, assume *nix
4967 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4968 ;;
4969 esac
4970 ;;
4971 *-*-cygwin* )
4972 case $build in
4973 *-*-mingw* ) # actually msys
4974 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4975 ;;
4976 *-*-cygwin* )
4977 lt_cv_to_host_file_cmd=func_convert_file_noop
4978 ;;
4979 * ) # otherwise, assume *nix
4980 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4981 ;;
4982 esac
4983 ;;
4984 * ) # unhandled hosts (and "normal" native builds)
4985 lt_cv_to_host_file_cmd=func_convert_file_noop
4986 ;;
4987esac
4988
4989fi
4990
4991to_host_file_cmd=$lt_cv_to_host_file_cmd
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4993$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4994
4995
4996
4997
4998
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5000$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5001if ${lt_cv_to_tool_file_cmd+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003else
5004 #assume ordinary cross tools, or native build.
5005lt_cv_to_tool_file_cmd=func_convert_file_noop
5006case $host in
5007 *-*-mingw* )
5008 case $build in
5009 *-*-mingw* ) # actually msys
5010 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5011 ;;
5012 esac
5013 ;;
5014esac
5015
5016fi
5017
5018to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5020$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5021
5022
5023
5024
5025
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5027$as_echo_n "checking for $LD option to reload object files... " >&6; }
5028if ${lt_cv_ld_reload_flag+:} false; then :
5029 $as_echo_n "(cached) " >&6
5030else
5031 lt_cv_ld_reload_flag='-r'
5032fi
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5034$as_echo "$lt_cv_ld_reload_flag" >&6; }
5035reload_flag=$lt_cv_ld_reload_flag
5036case $reload_flag in
5037"" | " "*) ;;
5038*) reload_flag=" $reload_flag" ;;
5039esac
5040reload_cmds='$LD$reload_flag -o $output$reload_objs'
5041case $host_os in
5042 cygwin* | mingw* | pw32* | cegcc*)
5043 if test "$GCC" != yes; then
5044 reload_cmds=false
5045 fi
5046 ;;
5047 darwin*)
5048 if test "$GCC" = yes; then
5049 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5050 else
5051 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5052 fi
5053 ;;
5054esac
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064if test -n "$ac_tool_prefix"; then
5065 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5066set dummy ${ac_tool_prefix}objdump; ac_word=$2
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068$as_echo_n "checking for $ac_word... " >&6; }
5069if ${ac_cv_prog_OBJDUMP+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071else
5072 if test -n "$OBJDUMP"; then
5073 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5074else
5075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
5077do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5082 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5085 fi
5086done
5087 done
5088IFS=$as_save_IFS
5089
5090fi
5091fi
5092OBJDUMP=$ac_cv_prog_OBJDUMP
5093if test -n "$OBJDUMP"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5095$as_echo "$OBJDUMP" >&6; }
5096else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098$as_echo "no" >&6; }
5099fi
5100
5101
5102fi
5103if test -z "$ac_cv_prog_OBJDUMP"; then
5104 ac_ct_OBJDUMP=$OBJDUMP
5105 # Extract the first word of "objdump", so it can be a program name with args.
5106set dummy objdump; ac_word=$2
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108$as_echo_n "checking for $ac_word... " >&6; }
5109if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111else
5112 if test -n "$ac_ct_OBJDUMP"; then
5113 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5114else
5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126done
5127 done
5128IFS=$as_save_IFS
5129
5130fi
5131fi
5132ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5133if test -n "$ac_ct_OBJDUMP"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5135$as_echo "$ac_ct_OBJDUMP" >&6; }
5136else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138$as_echo "no" >&6; }
5139fi
5140
5141 if test "x$ac_ct_OBJDUMP" = x; then
5142 OBJDUMP="false"
5143 else
5144 case $cross_compiling:$ac_tool_warned in
5145yes:)
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5148ac_tool_warned=yes ;;
5149esac
5150 OBJDUMP=$ac_ct_OBJDUMP
5151 fi
5152else
5153 OBJDUMP="$ac_cv_prog_OBJDUMP"
5154fi
5155
5156test -z "$OBJDUMP" && OBJDUMP=objdump
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5167$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5168if ${lt_cv_deplibs_check_method+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170else
5171 lt_cv_file_magic_cmd='$MAGIC_CMD'
5172lt_cv_file_magic_test_file=
5173lt_cv_deplibs_check_method='unknown'
5174# Need to set the preceding variable on all platforms that support
5175# interlibrary dependencies.
5176# 'none' -- dependencies not supported.
5177# `unknown' -- same as none, but documents that we really don't know.
5178# 'pass_all' -- all dependencies passed with no checks.
5179# 'test_compile' -- check by making test program.
5180# 'file_magic [[regex]]' -- check by looking for files in library path
5181# which responds to the $file_magic_cmd with a given extended regex.
5182# If you have `file' or equivalent on your system and you're not sure
5183# whether `pass_all' will *always* work, you probably want this one.
5184
5185case $host_os in
5186aix[4-9]*)
5187 lt_cv_deplibs_check_method=pass_all
5188 ;;
5189
5190beos*)
5191 lt_cv_deplibs_check_method=pass_all
5192 ;;
5193
5194bsdi[45]*)
5195 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5196 lt_cv_file_magic_cmd='/usr/bin/file -L'
5197 lt_cv_file_magic_test_file=/shlib/libc.so
5198 ;;
5199
5200cygwin*)
5201 # func_win32_libid is a shell function defined in ltmain.sh
5202 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5203 lt_cv_file_magic_cmd='func_win32_libid'
5204 ;;
5205
5206mingw* | pw32*)
5207 # Base MSYS/MinGW do not provide the 'file' command needed by
5208 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5209 # unless we find 'file', for example because we are cross-compiling.
5210 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5211 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5212 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5213 lt_cv_file_magic_cmd='func_win32_libid'
5214 else
5215 # Keep this pattern in sync with the one in func_win32_libid.
5216 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5217 lt_cv_file_magic_cmd='$OBJDUMP -f'
5218 fi
5219 ;;
5220
5221cegcc*)
5222 # use the weaker test based on 'objdump'. See mingw*.
5223 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5224 lt_cv_file_magic_cmd='$OBJDUMP -f'
5225 ;;
5226
5227darwin* | rhapsody*)
5228 lt_cv_deplibs_check_method=pass_all
5229 ;;
5230
5231freebsd* | dragonfly*)
5232 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5233 case $host_cpu in
5234 i*86 )
5235 # Not sure whether the presence of OpenBSD here was a mistake.
5236 # Let's accept both of them until this is cleared up.
5237 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5238 lt_cv_file_magic_cmd=/usr/bin/file
5239 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5240 ;;
5241 esac
5242 else
5243 lt_cv_deplibs_check_method=pass_all
5244 fi
5245 ;;
5246
5247gnu*)
5248 lt_cv_deplibs_check_method=pass_all
5249 ;;
5250
5251haiku*)
5252 lt_cv_deplibs_check_method=pass_all
5253 ;;
5254
5255hpux10.20* | hpux11*)
5256 lt_cv_file_magic_cmd=/usr/bin/file
5257 case $host_cpu in
5258 ia64*)
5259 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5260 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5261 ;;
5262 hppa*64*)
5263 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]'
5264 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5265 ;;
5266 *)
5267 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5268 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5269 ;;
5270 esac
5271 ;;
5272
5273interix[3-9]*)
5274 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5276 ;;
5277
5278irix5* | irix6* | nonstopux*)
5279 case $LD in
5280 *-32|*"-32 ") libmagic=32-bit;;
5281 *-n32|*"-n32 ") libmagic=N32;;
5282 *-64|*"-64 ") libmagic=64-bit;;
5283 *) libmagic=never-match;;
5284 esac
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287
5288# This must be glibc/ELF.
5289linux* | k*bsd*-gnu | kopensolaris*-gnu)
5290 lt_cv_deplibs_check_method=pass_all
5291 ;;
5292
5293netbsd*)
5294 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5296 else
5297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5298 fi
5299 ;;
5300
5301newos6*)
5302 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5303 lt_cv_file_magic_cmd=/usr/bin/file
5304 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5305 ;;
5306
5307*nto* | *qnx*)
5308 lt_cv_deplibs_check_method=pass_all
5309 ;;
5310
5311openbsd*)
5312 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5313 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5314 else
5315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5316 fi
5317 ;;
5318
5319osf3* | osf4* | osf5*)
5320 lt_cv_deplibs_check_method=pass_all
5321 ;;
5322
5323rdos*)
5324 lt_cv_deplibs_check_method=pass_all
5325 ;;
5326
5327solaris*)
5328 lt_cv_deplibs_check_method=pass_all
5329 ;;
5330
5331sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5332 lt_cv_deplibs_check_method=pass_all
5333 ;;
5334
5335sysv4 | sysv4.3*)
5336 case $host_vendor in
5337 motorola)
5338 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]'
5339 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5340 ;;
5341 ncr)
5342 lt_cv_deplibs_check_method=pass_all
5343 ;;
5344 sequent)
5345 lt_cv_file_magic_cmd='/bin/file'
5346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5347 ;;
5348 sni)
5349 lt_cv_file_magic_cmd='/bin/file'
5350 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5351 lt_cv_file_magic_test_file=/lib/libc.so
5352 ;;
5353 siemens)
5354 lt_cv_deplibs_check_method=pass_all
5355 ;;
5356 pc)
5357 lt_cv_deplibs_check_method=pass_all
5358 ;;
5359 esac
5360 ;;
5361
5362tpf*)
5363 lt_cv_deplibs_check_method=pass_all
5364 ;;
5365esac
5366
5367fi
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5369$as_echo "$lt_cv_deplibs_check_method" >&6; }
5370
5371file_magic_glob=
5372want_nocaseglob=no
5373if test "$build" = "$host"; then
5374 case $host_os in
5375 mingw* | pw32*)
5376 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5377 want_nocaseglob=yes
5378 else
5379 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5380 fi
5381 ;;
5382 esac
5383fi
5384
5385file_magic_cmd=$lt_cv_file_magic_cmd
5386deplibs_check_method=$lt_cv_deplibs_check_method
5387test -z "$deplibs_check_method" && deplibs_check_method=unknown
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410if test -n "$ac_tool_prefix"; then
5411 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5412set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414$as_echo_n "checking for $ac_word... " >&6; }
5415if ${ac_cv_prog_DLLTOOL+:} false; then :
5416 $as_echo_n "(cached) " >&6
5417else
5418 if test -n "$DLLTOOL"; then
5419 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5420else
5421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422for as_dir in $PATH
5423do
5424 IFS=$as_save_IFS
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5428 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 break 2
5431 fi
5432done
5433 done
5434IFS=$as_save_IFS
5435
5436fi
5437fi
5438DLLTOOL=$ac_cv_prog_DLLTOOL
5439if test -n "$DLLTOOL"; then
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5441$as_echo "$DLLTOOL" >&6; }
5442else
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444$as_echo "no" >&6; }
5445fi
5446
5447
5448fi
5449if test -z "$ac_cv_prog_DLLTOOL"; then
5450 ac_ct_DLLTOOL=$DLLTOOL
5451 # Extract the first word of "dlltool", so it can be a program name with args.
5452set dummy dlltool; ac_word=$2
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454$as_echo_n "checking for $ac_word... " >&6; }
5455if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457else
5458 if test -n "$ac_ct_DLLTOOL"; then
5459 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5460else
5461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462for as_dir in $PATH
5463do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5471 fi
5472done
5473 done
5474IFS=$as_save_IFS
5475
5476fi
5477fi
5478ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5479if test -n "$ac_ct_DLLTOOL"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5481$as_echo "$ac_ct_DLLTOOL" >&6; }
5482else
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484$as_echo "no" >&6; }
5485fi
5486
5487 if test "x$ac_ct_DLLTOOL" = x; then
5488 DLLTOOL="false"
5489 else
5490 case $cross_compiling:$ac_tool_warned in
5491yes:)
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5494ac_tool_warned=yes ;;
5495esac
5496 DLLTOOL=$ac_ct_DLLTOOL
5497 fi
5498else
5499 DLLTOOL="$ac_cv_prog_DLLTOOL"
5500fi
5501
5502test -z "$DLLTOOL" && DLLTOOL=dlltool
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5514$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5515if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517else
5518 lt_cv_sharedlib_from_linklib_cmd='unknown'
5519
5520case $host_os in
5521cygwin* | mingw* | pw32* | cegcc*)
5522 # two different shell functions defined in ltmain.sh
5523 # decide which to use based on capabilities of $DLLTOOL
5524 case `$DLLTOOL --help 2>&1` in
5525 *--identify-strict*)
5526 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5527 ;;
5528 *)
5529 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5530 ;;
5531 esac
5532 ;;
5533*)
5534 # fallback: assume linklib IS sharedlib
5535 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5536 ;;
5537esac
5538
5539fi
5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5541$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5542sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5543test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5544
5545
5546
5547
5548
5549
5550
5551
5552if test -n "$ac_tool_prefix"; then
5553 for ac_prog in ar
5554 do
5555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5556set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558$as_echo_n "checking for $ac_word... " >&6; }
5559if ${ac_cv_prog_AR+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561else
5562 if test -n "$AR"; then
5563 ac_cv_prog_AR="$AR" # Let the user override the test.
5564else
5565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566for as_dir in $PATH
5567do
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2
5575 fi
5576done
5577 done
5578IFS=$as_save_IFS
5579
5580fi
5581fi
5582AR=$ac_cv_prog_AR
5583if test -n "$AR"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5585$as_echo "$AR" >&6; }
5586else
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588$as_echo "no" >&6; }
5589fi
5590
5591
5592 test -n "$AR" && break
5593 done
5594fi
5595if test -z "$AR"; then
5596 ac_ct_AR=$AR
5597 for ac_prog in ar
5598do
5599 # Extract the first word of "$ac_prog", so it can be a program name with args.
5600set dummy $ac_prog; ac_word=$2
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602$as_echo_n "checking for $ac_word... " >&6; }
5603if ${ac_cv_prog_ac_ct_AR+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605else
5606 if test -n "$ac_ct_AR"; then
5607 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5608else
5609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610for as_dir in $PATH
5611do
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_prog_ac_ct_AR="$ac_prog"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620done
5621 done
5622IFS=$as_save_IFS
5623
5624fi
5625fi
5626ac_ct_AR=$ac_cv_prog_ac_ct_AR
5627if test -n "$ac_ct_AR"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5629$as_echo "$ac_ct_AR" >&6; }
5630else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632$as_echo "no" >&6; }
5633fi
5634
5635
5636 test -n "$ac_ct_AR" && break
5637done
5638
5639 if test "x$ac_ct_AR" = x; then
5640 AR="false"
5641 else
5642 case $cross_compiling:$ac_tool_warned in
5643yes:)
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5646ac_tool_warned=yes ;;
5647esac
5648 AR=$ac_ct_AR
5649 fi
5650fi
5651
5652: ${AR=ar}
5653: ${AR_FLAGS=cru}
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5666$as_echo_n "checking for archiver @FILE support... " >&6; }
5667if ${lt_cv_ar_at_file+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669else
5670 lt_cv_ar_at_file=no
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672/* end confdefs.h. */
5673
5674int
5675main ()
5676{
5677
5678 ;
5679 return 0;
5680}
5681_ACEOF
5682if ac_fn_c_try_compile "$LINENO"; then :
5683 echo conftest.$ac_objext > conftest.lst
5684 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5686 (eval $lt_ar_try) 2>&5
5687 ac_status=$?
5688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5689 test $ac_status = 0; }
5690 if test "$ac_status" -eq 0; then
5691 # Ensure the archiver fails upon bogus file names.
5692 rm -f conftest.$ac_objext libconftest.a
5693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5694 (eval $lt_ar_try) 2>&5
5695 ac_status=$?
5696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5697 test $ac_status = 0; }
5698 if test "$ac_status" -ne 0; then
5699 lt_cv_ar_at_file=@
5700 fi
5701 fi
5702 rm -f conftest.* libconftest.a
5703
5704fi
5705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706
5707fi
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5709$as_echo "$lt_cv_ar_at_file" >&6; }
5710
5711if test "x$lt_cv_ar_at_file" = xno; then
5712 archiver_list_spec=
5713else
5714 archiver_list_spec=$lt_cv_ar_at_file
5715fi
5716
5717
5718
5719
5720
5721
5722
5723if test -n "$ac_tool_prefix"; then
5724 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5725set dummy ${ac_tool_prefix}strip; ac_word=$2
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727$as_echo_n "checking for $ac_word... " >&6; }
5728if ${ac_cv_prog_STRIP+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730else
5731 if test -n "$STRIP"; then
5732 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5733else
5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735for as_dir in $PATH
5736do
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5741 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5744 fi
5745done
5746 done
5747IFS=$as_save_IFS
5748
5749fi
5750fi
5751STRIP=$ac_cv_prog_STRIP
5752if test -n "$STRIP"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5754$as_echo "$STRIP" >&6; }
5755else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757$as_echo "no" >&6; }
5758fi
5759
5760
5761fi
5762if test -z "$ac_cv_prog_STRIP"; then
5763 ac_ct_STRIP=$STRIP
5764 # Extract the first word of "strip", so it can be a program name with args.
5765set dummy strip; ac_word=$2
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767$as_echo_n "checking for $ac_word... " >&6; }
5768if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770else
5771 if test -n "$ac_ct_STRIP"; then
5772 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5773else
5774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775for as_dir in $PATH
5776do
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5781 ac_cv_prog_ac_ct_STRIP="strip"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 break 2
5784 fi
5785done
5786 done
5787IFS=$as_save_IFS
5788
5789fi
5790fi
5791ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5792if test -n "$ac_ct_STRIP"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5794$as_echo "$ac_ct_STRIP" >&6; }
5795else
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797$as_echo "no" >&6; }
5798fi
5799
5800 if test "x$ac_ct_STRIP" = x; then
5801 STRIP=":"
5802 else
5803 case $cross_compiling:$ac_tool_warned in
5804yes:)
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5807ac_tool_warned=yes ;;
5808esac
5809 STRIP=$ac_ct_STRIP
5810 fi
5811else
5812 STRIP="$ac_cv_prog_STRIP"
5813fi
5814
5815test -z "$STRIP" && STRIP=:
5816
5817
5818
5819
5820
5821
5822if test -n "$ac_tool_prefix"; then
5823 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5824set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826$as_echo_n "checking for $ac_word... " >&6; }
5827if ${ac_cv_prog_RANLIB+:} false; then :
5828 $as_echo_n "(cached) " >&6
5829else
5830 if test -n "$RANLIB"; then
5831 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5832else
5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5840 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 break 2
5843 fi
5844done
5845 done
5846IFS=$as_save_IFS
5847
5848fi
5849fi
5850RANLIB=$ac_cv_prog_RANLIB
5851if test -n "$RANLIB"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5853$as_echo "$RANLIB" >&6; }
5854else
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856$as_echo "no" >&6; }
5857fi
5858
5859
5860fi
5861if test -z "$ac_cv_prog_RANLIB"; then
5862 ac_ct_RANLIB=$RANLIB
5863 # Extract the first word of "ranlib", so it can be a program name with args.
5864set dummy ranlib; ac_word=$2
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866$as_echo_n "checking for $ac_word... " >&6; }
5867if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5868 $as_echo_n "(cached) " >&6
5869else
5870 if test -n "$ac_ct_RANLIB"; then
5871 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5872else
5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880 ac_cv_prog_ac_ct_RANLIB="ranlib"
5881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 break 2
5883 fi
5884done
5885 done
5886IFS=$as_save_IFS
5887
5888fi
5889fi
5890ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5891if test -n "$ac_ct_RANLIB"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5893$as_echo "$ac_ct_RANLIB" >&6; }
5894else
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896$as_echo "no" >&6; }
5897fi
5898
5899 if test "x$ac_ct_RANLIB" = x; then
5900 RANLIB=":"
5901 else
5902 case $cross_compiling:$ac_tool_warned in
5903yes:)
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5906ac_tool_warned=yes ;;
5907esac
5908 RANLIB=$ac_ct_RANLIB
5909 fi
5910else
5911 RANLIB="$ac_cv_prog_RANLIB"
5912fi
5913
5914test -z "$RANLIB" && RANLIB=:
5915
5916
5917
5918
5919
5920
5921# Determine commands to create old-style static archives.
5922old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5923old_postinstall_cmds='chmod 644 $oldlib'
5924old_postuninstall_cmds=
5925
5926if test -n "$RANLIB"; then
5927 case $host_os in
5928 openbsd*)
5929 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5930 ;;
5931 *)
5932 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5933 ;;
5934 esac
5935 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5936fi
5937
5938case $host_os in
5939 darwin*)
5940 lock_old_archive_extraction=yes ;;
5941 *)
5942 lock_old_archive_extraction=no ;;
5943esac
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983# If no C compiler was specified, use CC.
5984LTCC=${LTCC-"$CC"}
5985
5986# If no C compiler flags were specified, use CFLAGS.
5987LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5988
5989# Allow CC to be a program name with arguments.
5990compiler=$CC
5991
5992
5993# Check for command to grab the raw symbol name followed by C symbol from nm.
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5995$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5996if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998else
5999
6000# These are sane defaults that work on at least a few old systems.
6001# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6002
6003# Character class describing NM global symbol codes.
6004symcode='[BCDEGRST]'
6005
6006# Regexp to match symbols that can be accessed directly from C.
6007sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6008
6009# Define system-specific variables.
6010case $host_os in
6011aix*)
6012 symcode='[BCDT]'
6013 ;;
6014cygwin* | mingw* | pw32* | cegcc*)
6015 symcode='[ABCDGISTW]'
6016 ;;
6017hpux*)
6018 if test "$host_cpu" = ia64; then
6019 symcode='[ABCDEGRST]'
6020 fi
6021 ;;
6022irix* | nonstopux*)
6023 symcode='[BCDEGRST]'
6024 ;;
6025osf*)
6026 symcode='[BCDEGQRST]'
6027 ;;
6028solaris*)
6029 symcode='[BDRT]'
6030 ;;
6031sco3.2v5*)
6032 symcode='[DT]'
6033 ;;
6034sysv4.2uw2*)
6035 symcode='[DT]'
6036 ;;
6037sysv5* | sco5v6* | unixware* | OpenUNIX*)
6038 symcode='[ABDT]'
6039 ;;
6040sysv4)
6041 symcode='[DFNSTU]'
6042 ;;
6043esac
6044
6045# If we're using GNU nm, then use its standard symbol codes.
6046case `$NM -V 2>&1` in
6047*GNU* | *'with BFD'*)
6048 symcode='[ABCDGIRSTW]' ;;
6049esac
6050
6051# Transform an extracted symbol line into a proper C declaration.
6052# Some systems (esp. on ia64) link data and code symbols differently,
6053# so use this general approach.
6054lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6055
6056# Transform an extracted symbol line into symbol name and symbol address
6057lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6058lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6059
6060# Handle CRLF in mingw tool chain
6061opt_cr=
6062case $build_os in
6063mingw*)
6064 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6065 ;;
6066esac
6067
6068# Try without a prefix underscore, then with it.
6069for ac_symprfx in "" "_"; do
6070
6071 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6072 symxfrm="\\1 $ac_symprfx\\2 \\2"
6073
6074 # Write the raw and C identifiers.
6075 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6076 # Fake it for dumpbin and say T for any non-static function
6077 # and D for any global variable.
6078 # Also find C++ and __fastcall symbols from MSVC++,
6079 # which start with @ or ?.
6080 lt_cv_sys_global_symbol_pipe="$AWK '"\
6081" {last_section=section; section=\$ 3};"\
6082" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6083" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6084" \$ 0!~/External *\|/{next};"\
6085" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6086" {if(hide[section]) next};"\
6087" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6088" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6089" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6090" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6091" ' prfx=^$ac_symprfx"
6092 else
6093 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6094 fi
6095 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6096
6097 # Check to see that the pipe works correctly.
6098 pipe_works=no
6099
6100 rm -f conftest*
6101 cat > conftest.$ac_ext <<_LT_EOF
6102#ifdef __cplusplus
6103extern "C" {
6104#endif
6105char nm_test_var;
6106void nm_test_func(void);
6107void nm_test_func(void){}
6108#ifdef __cplusplus
6109}
6110#endif
6111int main(){nm_test_var='a';nm_test_func();return(0);}
6112_LT_EOF
6113
6114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6115 (eval $ac_compile) 2>&5
6116 ac_status=$?
6117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6118 test $ac_status = 0; }; then
6119 # Now try to grab the symbols.
6120 nlist=conftest.nm
6121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6122 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6123 ac_status=$?
6124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6125 test $ac_status = 0; } && test -s "$nlist"; then
6126 # Try sorting and uniquifying the output.
6127 if sort "$nlist" | uniq > "$nlist"T; then
6128 mv -f "$nlist"T "$nlist"
6129 else
6130 rm -f "$nlist"T
6131 fi
6132
6133 # Make sure that we snagged all the symbols we need.
6134 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6135 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6136 cat <<_LT_EOF > conftest.$ac_ext
6137/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6138#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6139/* DATA imports from DLLs on WIN32 con't be const, because runtime
6140 relocations are performed -- see ld's documentation on pseudo-relocs. */
6141# define LT_DLSYM_CONST
6142#elif defined(__osf__)
6143/* This system does not cope well with relocations in const data. */
6144# define LT_DLSYM_CONST
6145#else
6146# define LT_DLSYM_CONST const
6147#endif
6148
6149#ifdef __cplusplus
6150extern "C" {
6151#endif
6152
6153_LT_EOF
6154 # Now generate the symbol file.
6155 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6156
6157 cat <<_LT_EOF >> conftest.$ac_ext
6158
6159/* The mapping between symbol names and symbols. */
6160LT_DLSYM_CONST struct {
6161 const char *name;
6162 void *address;
6163}
6164lt__PROGRAM__LTX_preloaded_symbols[] =
6165{
6166 { "@PROGRAM@", (void *) 0 },
6167_LT_EOF
6168 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6169 cat <<\_LT_EOF >> conftest.$ac_ext
6170 {0, (void *) 0}
6171};
6172
6173/* This works around a problem in FreeBSD linker */
6174#ifdef FREEBSD_WORKAROUND
6175static const void *lt_preloaded_setup() {
6176 return lt__PROGRAM__LTX_preloaded_symbols;
6177}
6178#endif
6179
6180#ifdef __cplusplus
6181}
6182#endif
6183_LT_EOF
6184 # Now try linking the two files.
6185 mv conftest.$ac_objext conftstm.$ac_objext
6186 lt_globsym_save_LIBS=$LIBS
6187 lt_globsym_save_CFLAGS=$CFLAGS
6188 LIBS="conftstm.$ac_objext"
6189 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6191 (eval $ac_link) 2>&5
6192 ac_status=$?
6193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6194 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6195 pipe_works=yes
6196 fi
6197 LIBS=$lt_globsym_save_LIBS
6198 CFLAGS=$lt_globsym_save_CFLAGS
6199 else
6200 echo "cannot find nm_test_func in $nlist" >&5
6201 fi
6202 else
6203 echo "cannot find nm_test_var in $nlist" >&5
6204 fi
6205 else
6206 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6207 fi
6208 else
6209 echo "$progname: failed program was:" >&5
6210 cat conftest.$ac_ext >&5
6211 fi
6212 rm -rf conftest* conftst*
6213
6214 # Do not use the global_symbol_pipe unless it works.
6215 if test "$pipe_works" = yes; then
6216 break
6217 else
6218 lt_cv_sys_global_symbol_pipe=
6219 fi
6220done
6221
6222fi
6223
6224if test -z "$lt_cv_sys_global_symbol_pipe"; then
6225 lt_cv_sys_global_symbol_to_cdecl=
6226fi
6227if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6229$as_echo "failed" >&6; }
6230else
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6232$as_echo "ok" >&6; }
6233fi
6234
6235# Response file support.
6236if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6237 nm_file_list_spec='@'
6238elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6239 nm_file_list_spec='@'
6240fi
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6269$as_echo_n "checking for sysroot... " >&6; }
6270
6271# Check whether --with-sysroot was given.
6272if test "${with_sysroot+set}" = set; then :
6273 withval=$with_sysroot;
6274else
6275 with_sysroot=no
6276fi
6277
6278
6279lt_sysroot=
6280case ${with_sysroot} in #(
6281 yes)
6282 if test "$GCC" = yes; then
6283 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6284 fi
6285 ;; #(
6286 /*)
6287 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6288 ;; #(
6289 no|'')
6290 ;; #(
6291 *)
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6293$as_echo "${with_sysroot}" >&6; }
6294 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6295 ;;
6296esac
6297
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6299$as_echo "${lt_sysroot:-no}" >&6; }
6300
6301
6302
6303
6304
6305# Check whether --enable-libtool-lock was given.
6306if test "${enable_libtool_lock+set}" = set; then :
6307 enableval=$enable_libtool_lock;
6308fi
6309
6310test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6311
6312# Some flags need to be propagated to the compiler or linker for good
6313# libtool support.
6314case $host in
6315ia64-*-hpux*)
6316 # Find out which ABI we are using.
6317 echo 'int i;' > conftest.$ac_ext
6318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6319 (eval $ac_compile) 2>&5
6320 ac_status=$?
6321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6322 test $ac_status = 0; }; then
6323 case `/usr/bin/file conftest.$ac_objext` in
6324 *ELF-32*)
6325 HPUX_IA64_MODE="32"
6326 ;;
6327 *ELF-64*)
6328 HPUX_IA64_MODE="64"
6329 ;;
6330 esac
6331 fi
6332 rm -rf conftest*
6333 ;;
6334*-*-irix6*)
6335 # Find out which ABI we are using.
6336 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6338 (eval $ac_compile) 2>&5
6339 ac_status=$?
6340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341 test $ac_status = 0; }; then
6342 if test "$lt_cv_prog_gnu_ld" = yes; then
6343 case `/usr/bin/file conftest.$ac_objext` in
6344 *32-bit*)
6345 LD="${LD-ld} -melf32bsmip"
6346 ;;
6347 *N32*)
6348 LD="${LD-ld} -melf32bmipn32"
6349 ;;
6350 *64-bit*)
6351 LD="${LD-ld} -melf64bmip"
6352 ;;
6353 esac
6354 else
6355 case `/usr/bin/file conftest.$ac_objext` in
6356 *32-bit*)
6357 LD="${LD-ld} -32"
6358 ;;
6359 *N32*)
6360 LD="${LD-ld} -n32"
6361 ;;
6362 *64-bit*)
6363 LD="${LD-ld} -64"
6364 ;;
6365 esac
6366 fi
6367 fi
6368 rm -rf conftest*
6369 ;;
6370
6371x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6372s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6373 # Find out which ABI we are using.
6374 echo 'int i;' > conftest.$ac_ext
6375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6376 (eval $ac_compile) 2>&5
6377 ac_status=$?
6378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6379 test $ac_status = 0; }; then
6380 case `/usr/bin/file conftest.o` in
6381 *32-bit*)
6382 case $host in
6383 x86_64-*kfreebsd*-gnu)
6384 LD="${LD-ld} -m elf_i386_fbsd"
6385 ;;
6386 x86_64-*linux*)
6387 LD="${LD-ld} -m elf_i386"
6388 ;;
6389 ppc64-*linux*|powerpc64-*linux*)
6390 LD="${LD-ld} -m elf32ppclinux"
6391 ;;
6392 s390x-*linux*)
6393 LD="${LD-ld} -m elf_s390"
6394 ;;
6395 sparc64-*linux*)
6396 LD="${LD-ld} -m elf32_sparc"
6397 ;;
6398 esac
6399 ;;
6400 *64-bit*)
6401 case $host in
6402 x86_64-*kfreebsd*-gnu)
6403 LD="${LD-ld} -m elf_x86_64_fbsd"
6404 ;;
6405 x86_64-*linux*)
6406 LD="${LD-ld} -m elf_x86_64"
6407 ;;
6408 ppc*-*linux*|powerpc*-*linux*)
6409 LD="${LD-ld} -m elf64ppc"
6410 ;;
6411 s390*-*linux*|s390*-*tpf*)
6412 LD="${LD-ld} -m elf64_s390"
6413 ;;
6414 sparc*-*linux*)
6415 LD="${LD-ld} -m elf64_sparc"
6416 ;;
6417 esac
6418 ;;
6419 esac
6420 fi
6421 rm -rf conftest*
6422 ;;
6423
6424*-*-sco3.2v5*)
6425 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6426 SAVE_CFLAGS="$CFLAGS"
6427 CFLAGS="$CFLAGS -belf"
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6429$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6430if ${lt_cv_cc_needs_belf+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432else
6433 ac_ext=c
6434ac_cpp='$CPP $CPPFLAGS'
6435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6437ac_compiler_gnu=$ac_cv_c_compiler_gnu
6438
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440/* end confdefs.h. */
6441
6442int
6443main ()
6444{
6445
6446 ;
6447 return 0;
6448}
6449_ACEOF
6450if ac_fn_c_try_link "$LINENO"; then :
6451 lt_cv_cc_needs_belf=yes
6452else
6453 lt_cv_cc_needs_belf=no
6454fi
6455rm -f core conftest.err conftest.$ac_objext \
6456 conftest$ac_exeext conftest.$ac_ext
6457 ac_ext=c
6458ac_cpp='$CPP $CPPFLAGS'
6459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6461ac_compiler_gnu=$ac_cv_c_compiler_gnu
6462
6463fi
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6465$as_echo "$lt_cv_cc_needs_belf" >&6; }
6466 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6467 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6468 CFLAGS="$SAVE_CFLAGS"
6469 fi
6470 ;;
6471*-*solaris*)
6472 # Find out which ABI we are using.
6473 echo 'int i;' > conftest.$ac_ext
6474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6475 (eval $ac_compile) 2>&5
6476 ac_status=$?
6477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6478 test $ac_status = 0; }; then
6479 case `/usr/bin/file conftest.o` in
6480 *64-bit*)
6481 case $lt_cv_prog_gnu_ld in
6482 yes*)
6483 case $host in
6484 i?86-*-solaris*)
6485 LD="${LD-ld} -m elf_x86_64"
6486 ;;
6487 sparc*-*-solaris*)
6488 LD="${LD-ld} -m elf64_sparc"
6489 ;;
6490 esac
6491 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6492 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6493 LD="${LD-ld}_sol2"
6494 fi
6495 ;;
6496 *)
6497 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6498 LD="${LD-ld} -64"
6499 fi
6500 ;;
6501 esac
6502 ;;
6503 esac
6504 fi
6505 rm -rf conftest*
6506 ;;
6507esac
6508
6509need_locks="$enable_libtool_lock"
6510
6511if test -n "$ac_tool_prefix"; then
6512 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6513set dummy ${ac_tool_prefix}mt; ac_word=$2
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515$as_echo_n "checking for $ac_word... " >&6; }
6516if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6517 $as_echo_n "(cached) " >&6
6518else
6519 if test -n "$MANIFEST_TOOL"; then
6520 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6521else
6522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523for as_dir in $PATH
6524do
6525 IFS=$as_save_IFS
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 break 2
6532 fi
6533done
6534 done
6535IFS=$as_save_IFS
6536
6537fi
6538fi
6539MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6540if test -n "$MANIFEST_TOOL"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6542$as_echo "$MANIFEST_TOOL" >&6; }
6543else
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545$as_echo "no" >&6; }
6546fi
6547
6548
6549fi
6550if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6551 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6552 # Extract the first word of "mt", so it can be a program name with args.
6553set dummy mt; ac_word=$2
6554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6555$as_echo_n "checking for $ac_word... " >&6; }
6556if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558else
6559 if test -n "$ac_ct_MANIFEST_TOOL"; then
6560 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6561else
6562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563for as_dir in $PATH
6564do
6565 IFS=$as_save_IFS
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 break 2
6572 fi
6573done
6574 done
6575IFS=$as_save_IFS
6576
6577fi
6578fi
6579ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6580if test -n "$ac_ct_MANIFEST_TOOL"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6582$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6583else
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585$as_echo "no" >&6; }
6586fi
6587
6588 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6589 MANIFEST_TOOL=":"
6590 else
6591 case $cross_compiling:$ac_tool_warned in
6592yes:)
6593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6595ac_tool_warned=yes ;;
6596esac
6597 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6598 fi
6599else
6600 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6601fi
6602
6603test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6605$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6606if ${lt_cv_path_mainfest_tool+:} false; then :
6607 $as_echo_n "(cached) " >&6
6608else
6609 lt_cv_path_mainfest_tool=no
6610 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6611 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6612 cat conftest.err >&5
6613 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6614 lt_cv_path_mainfest_tool=yes
6615 fi
6616 rm -f conftest*
6617fi
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6619$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6620if test "x$lt_cv_path_mainfest_tool" != xyes; then
6621 MANIFEST_TOOL=:
6622fi
6623
6624
6625
6626
6627
6628
6629 case $host_os in
6630 rhapsody* | darwin*)
6631 if test -n "$ac_tool_prefix"; then
6632 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6633set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635$as_echo_n "checking for $ac_word... " >&6; }
6636if ${ac_cv_prog_DSYMUTIL+:} false; then :
6637 $as_echo_n "(cached) " >&6
6638else
6639 if test -n "$DSYMUTIL"; then
6640 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6641else
6642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643for as_dir in $PATH
6644do
6645 IFS=$as_save_IFS
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 break 2
6652 fi
6653done
6654 done
6655IFS=$as_save_IFS
6656
6657fi
6658fi
6659DSYMUTIL=$ac_cv_prog_DSYMUTIL
6660if test -n "$DSYMUTIL"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6662$as_echo "$DSYMUTIL" >&6; }
6663else
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665$as_echo "no" >&6; }
6666fi
6667
6668
6669fi
6670if test -z "$ac_cv_prog_DSYMUTIL"; then
6671 ac_ct_DSYMUTIL=$DSYMUTIL
6672 # Extract the first word of "dsymutil", so it can be a program name with args.
6673set dummy dsymutil; ac_word=$2
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675$as_echo_n "checking for $ac_word... " >&6; }
6676if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6677 $as_echo_n "(cached) " >&6
6678else
6679 if test -n "$ac_ct_DSYMUTIL"; then
6680 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6681else
6682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683for as_dir in $PATH
6684do
6685 IFS=$as_save_IFS
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 break 2
6692 fi
6693done
6694 done
6695IFS=$as_save_IFS
6696
6697fi
6698fi
6699ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6700if test -n "$ac_ct_DSYMUTIL"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6702$as_echo "$ac_ct_DSYMUTIL" >&6; }
6703else
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705$as_echo "no" >&6; }
6706fi
6707
6708 if test "x$ac_ct_DSYMUTIL" = x; then
6709 DSYMUTIL=":"
6710 else
6711 case $cross_compiling:$ac_tool_warned in
6712yes:)
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6715ac_tool_warned=yes ;;
6716esac
6717 DSYMUTIL=$ac_ct_DSYMUTIL
6718 fi
6719else
6720 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6721fi
6722
6723 if test -n "$ac_tool_prefix"; then
6724 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6725set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727$as_echo_n "checking for $ac_word... " >&6; }
6728if ${ac_cv_prog_NMEDIT+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730else
6731 if test -n "$NMEDIT"; then
6732 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6733else
6734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735for as_dir in $PATH
6736do
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 break 2
6744 fi
6745done
6746 done
6747IFS=$as_save_IFS
6748
6749fi
6750fi
6751NMEDIT=$ac_cv_prog_NMEDIT
6752if test -n "$NMEDIT"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6754$as_echo "$NMEDIT" >&6; }
6755else
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757$as_echo "no" >&6; }
6758fi
6759
6760
6761fi
6762if test -z "$ac_cv_prog_NMEDIT"; then
6763 ac_ct_NMEDIT=$NMEDIT
6764 # Extract the first word of "nmedit", so it can be a program name with args.
6765set dummy nmedit; ac_word=$2
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767$as_echo_n "checking for $ac_word... " >&6; }
6768if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6769 $as_echo_n "(cached) " >&6
6770else
6771 if test -n "$ac_ct_NMEDIT"; then
6772 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6773else
6774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775for as_dir in $PATH
6776do
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6784 fi
6785done
6786 done
6787IFS=$as_save_IFS
6788
6789fi
6790fi
6791ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6792if test -n "$ac_ct_NMEDIT"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6794$as_echo "$ac_ct_NMEDIT" >&6; }
6795else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797$as_echo "no" >&6; }
6798fi
6799
6800 if test "x$ac_ct_NMEDIT" = x; then
6801 NMEDIT=":"
6802 else
6803 case $cross_compiling:$ac_tool_warned in
6804yes:)
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807ac_tool_warned=yes ;;
6808esac
6809 NMEDIT=$ac_ct_NMEDIT
6810 fi
6811else
6812 NMEDIT="$ac_cv_prog_NMEDIT"
6813fi
6814
6815 if test -n "$ac_tool_prefix"; then
6816 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6817set dummy ${ac_tool_prefix}lipo; ac_word=$2
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819$as_echo_n "checking for $ac_word... " >&6; }
6820if ${ac_cv_prog_LIPO+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822else
6823 if test -n "$LIPO"; then
6824 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6825else
6826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6836 fi
6837done
6838 done
6839IFS=$as_save_IFS
6840
6841fi
6842fi
6843LIPO=$ac_cv_prog_LIPO
6844if test -n "$LIPO"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6846$as_echo "$LIPO" >&6; }
6847else
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849$as_echo "no" >&6; }
6850fi
6851
6852
6853fi
6854if test -z "$ac_cv_prog_LIPO"; then
6855 ac_ct_LIPO=$LIPO
6856 # Extract the first word of "lipo", so it can be a program name with args.
6857set dummy lipo; ac_word=$2
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859$as_echo_n "checking for $ac_word... " >&6; }
6860if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862else
6863 if test -n "$ac_ct_LIPO"; then
6864 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6865else
6866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867for as_dir in $PATH
6868do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_prog_ac_ct_LIPO="lipo"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877done
6878 done
6879IFS=$as_save_IFS
6880
6881fi
6882fi
6883ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6884if test -n "$ac_ct_LIPO"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6886$as_echo "$ac_ct_LIPO" >&6; }
6887else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889$as_echo "no" >&6; }
6890fi
6891
6892 if test "x$ac_ct_LIPO" = x; then
6893 LIPO=":"
6894 else
6895 case $cross_compiling:$ac_tool_warned in
6896yes:)
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899ac_tool_warned=yes ;;
6900esac
6901 LIPO=$ac_ct_LIPO
6902 fi
6903else
6904 LIPO="$ac_cv_prog_LIPO"
6905fi
6906
6907 if test -n "$ac_tool_prefix"; then
6908 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6909set dummy ${ac_tool_prefix}otool; ac_word=$2
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911$as_echo_n "checking for $ac_word... " >&6; }
6912if ${ac_cv_prog_OTOOL+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914else
6915 if test -n "$OTOOL"; then
6916 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6917else
6918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919for as_dir in $PATH
6920do
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 break 2
6928 fi
6929done
6930 done
6931IFS=$as_save_IFS
6932
6933fi
6934fi
6935OTOOL=$ac_cv_prog_OTOOL
6936if test -n "$OTOOL"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6938$as_echo "$OTOOL" >&6; }
6939else
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941$as_echo "no" >&6; }
6942fi
6943
6944
6945fi
6946if test -z "$ac_cv_prog_OTOOL"; then
6947 ac_ct_OTOOL=$OTOOL
6948 # Extract the first word of "otool", so it can be a program name with args.
6949set dummy otool; ac_word=$2
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951$as_echo_n "checking for $ac_word... " >&6; }
6952if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954else
6955 if test -n "$ac_ct_OTOOL"; then
6956 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6957else
6958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_prog_ac_ct_OTOOL="otool"
6966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6968 fi
6969done
6970 done
6971IFS=$as_save_IFS
6972
6973fi
6974fi
6975ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6976if test -n "$ac_ct_OTOOL"; then
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6978$as_echo "$ac_ct_OTOOL" >&6; }
6979else
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981$as_echo "no" >&6; }
6982fi
6983
6984 if test "x$ac_ct_OTOOL" = x; then
6985 OTOOL=":"
6986 else
6987 case $cross_compiling:$ac_tool_warned in
6988yes:)
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6991ac_tool_warned=yes ;;
6992esac
6993 OTOOL=$ac_ct_OTOOL
6994 fi
6995else
6996 OTOOL="$ac_cv_prog_OTOOL"
6997fi
6998
6999 if test -n "$ac_tool_prefix"; then
7000 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7001set dummy ${ac_tool_prefix}otool64; ac_word=$2
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003$as_echo_n "checking for $ac_word... " >&6; }
7004if ${ac_cv_prog_OTOOL64+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006else
7007 if test -n "$OTOOL64"; then
7008 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7009else
7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011for as_dir in $PATH
7012do
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7020 fi
7021done
7022 done
7023IFS=$as_save_IFS
7024
7025fi
7026fi
7027OTOOL64=$ac_cv_prog_OTOOL64
7028if test -n "$OTOOL64"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7030$as_echo "$OTOOL64" >&6; }
7031else
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033$as_echo "no" >&6; }
7034fi
7035
7036
7037fi
7038if test -z "$ac_cv_prog_OTOOL64"; then
7039 ac_ct_OTOOL64=$OTOOL64
7040 # Extract the first word of "otool64", so it can be a program name with args.
7041set dummy otool64; ac_word=$2
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043$as_echo_n "checking for $ac_word... " >&6; }
7044if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7045 $as_echo_n "(cached) " >&6
7046else
7047 if test -n "$ac_ct_OTOOL64"; then
7048 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7049else
7050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051for as_dir in $PATH
7052do
7053 IFS=$as_save_IFS
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7057 ac_cv_prog_ac_ct_OTOOL64="otool64"
7058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 break 2
7060 fi
7061done
7062 done
7063IFS=$as_save_IFS
7064
7065fi
7066fi
7067ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7068if test -n "$ac_ct_OTOOL64"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7070$as_echo "$ac_ct_OTOOL64" >&6; }
7071else
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073$as_echo "no" >&6; }
7074fi
7075
7076 if test "x$ac_ct_OTOOL64" = x; then
7077 OTOOL64=":"
7078 else
7079 case $cross_compiling:$ac_tool_warned in
7080yes:)
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083ac_tool_warned=yes ;;
7084esac
7085 OTOOL64=$ac_ct_OTOOL64
7086 fi
7087else
7088 OTOOL64="$ac_cv_prog_OTOOL64"
7089fi
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7118$as_echo_n "checking for -single_module linker flag... " >&6; }
7119if ${lt_cv_apple_cc_single_mod+:} false; then :
7120 $as_echo_n "(cached) " >&6
7121else
7122 lt_cv_apple_cc_single_mod=no
7123 if test -z "${LT_MULTI_MODULE}"; then
7124 # By default we will add the -single_module flag. You can override
7125 # by either setting the environment variable LT_MULTI_MODULE
7126 # non-empty at configure time, or by adding -multi_module to the
7127 # link flags.
7128 rm -rf libconftest.dylib*
7129 echo "int foo(void){return 1;}" > conftest.c
7130 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7131-dynamiclib -Wl,-single_module conftest.c" >&5
7132 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7133 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7134 _lt_result=$?
7135 # If there is a non-empty error log, and "single_module"
7136 # appears in it, assume the flag caused a linker warning
7137 if test -s conftest.err && $GREP single_module conftest.err; then
7138 cat conftest.err >&5
7139 # Otherwise, if the output was created with a 0 exit code from
7140 # the compiler, it worked.
7141 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7142 lt_cv_apple_cc_single_mod=yes
7143 else
7144 cat conftest.err >&5
7145 fi
7146 rm -rf libconftest.dylib*
7147 rm -f conftest.*
7148 fi
7149fi
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7151$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7152
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7154$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7155if ${lt_cv_ld_exported_symbols_list+:} false; then :
7156 $as_echo_n "(cached) " >&6
7157else
7158 lt_cv_ld_exported_symbols_list=no
7159 save_LDFLAGS=$LDFLAGS
7160 echo "_main" > conftest.sym
7161 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163/* end confdefs.h. */
7164
7165int
7166main ()
7167{
7168
7169 ;
7170 return 0;
7171}
7172_ACEOF
7173if ac_fn_c_try_link "$LINENO"; then :
7174 lt_cv_ld_exported_symbols_list=yes
7175else
7176 lt_cv_ld_exported_symbols_list=no
7177fi
7178rm -f core conftest.err conftest.$ac_objext \
7179 conftest$ac_exeext conftest.$ac_ext
7180 LDFLAGS="$save_LDFLAGS"
7181
7182fi
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7184$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7185
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7187$as_echo_n "checking for -force_load linker flag... " >&6; }
7188if ${lt_cv_ld_force_load+:} false; then :
7189 $as_echo_n "(cached) " >&6
7190else
7191 lt_cv_ld_force_load=no
7192 cat > conftest.c << _LT_EOF
7193int forced_loaded() { return 2;}
7194_LT_EOF
7195 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7196 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7197 echo "$AR cru libconftest.a conftest.o" >&5
7198 $AR cru libconftest.a conftest.o 2>&5
7199 echo "$RANLIB libconftest.a" >&5
7200 $RANLIB libconftest.a 2>&5
7201 cat > conftest.c << _LT_EOF
7202int main() { return 0;}
7203_LT_EOF
7204 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7205 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7206 _lt_result=$?
7207 if test -s conftest.err && $GREP force_load conftest.err; then
7208 cat conftest.err >&5
7209 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7210 lt_cv_ld_force_load=yes
7211 else
7212 cat conftest.err >&5
7213 fi
7214 rm -f conftest.err libconftest.a conftest conftest.c
7215 rm -rf conftest.dSYM
7216
7217fi
7218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7219$as_echo "$lt_cv_ld_force_load" >&6; }
7220 case $host_os in
7221 rhapsody* | darwin1.[012])
7222 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7223 darwin1.*)
7224 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7225 darwin*) # darwin 5.x on
7226 # if running on 10.5 or later, the deployment target defaults
7227 # to the OS version, if on x86, and 10.4, the deployment
7228 # target defaults to 10.4. Don't you love it?
7229 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7230 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7231 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7232 10.[012]*)
7233 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7234 10.*)
7235 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7236 esac
7237 ;;
7238 esac
7239 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7240 _lt_dar_single_mod='$single_module'
7241 fi
7242 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7243 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7244 else
7245 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7246 fi
7247 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7248 _lt_dsymutil='~$DSYMUTIL $lib || :'
7249 else
7250 _lt_dsymutil=
7251 fi
7252 ;;
7253 esac
7254
7255ac_ext=c
7256ac_cpp='$CPP $CPPFLAGS'
7257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7259ac_compiler_gnu=$ac_cv_c_compiler_gnu
7260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7261$as_echo_n "checking how to run the C preprocessor... " >&6; }
7262# On Suns, sometimes $CPP names a directory.
7263if test -n "$CPP" && test -d "$CPP"; then
7264 CPP=
7265fi
7266if test -z "$CPP"; then
7267 if ${ac_cv_prog_CPP+:} false; then :
7268 $as_echo_n "(cached) " >&6
7269else
7270 # Double quotes because CPP needs to be expanded
7271 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7272 do
7273 ac_preproc_ok=false
7274for ac_c_preproc_warn_flag in '' yes
7275do
7276 # Use a header file that comes with gcc, so configuring glibc
7277 # with a fresh cross-compiler works.
7278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7279 # <limits.h> exists even on freestanding compilers.
7280 # On the NeXT, cc -E runs the code through the compiler's parser,
7281 # not just through cpp. "Syntax error" is here to catch this case.
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283/* end confdefs.h. */
7284#ifdef __STDC__
7285# include <limits.h>
7286#else
7287# include <assert.h>
7288#endif
7289 Syntax error
7290_ACEOF
7291if ac_fn_c_try_cpp "$LINENO"; then :
7292
7293else
7294 # Broken: fails on valid input.
7295continue
7296fi
7297rm -f conftest.err conftest.i conftest.$ac_ext
7298
7299 # OK, works on sane cases. Now check whether nonexistent headers
7300 # can be detected and how.
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302/* end confdefs.h. */
7303#include <ac_nonexistent.h>
7304_ACEOF
7305if ac_fn_c_try_cpp "$LINENO"; then :
7306 # Broken: success on invalid input.
7307continue
7308else
7309 # Passes both tests.
7310ac_preproc_ok=:
7311break
7312fi
7313rm -f conftest.err conftest.i conftest.$ac_ext
7314
7315done
7316# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7317rm -f conftest.i conftest.err conftest.$ac_ext
7318if $ac_preproc_ok; then :
7319 break
7320fi
7321
7322 done
7323 ac_cv_prog_CPP=$CPP
7324
7325fi
7326 CPP=$ac_cv_prog_CPP
7327else
7328 ac_cv_prog_CPP=$CPP
7329fi
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7331$as_echo "$CPP" >&6; }
7332ac_preproc_ok=false
7333for ac_c_preproc_warn_flag in '' yes
7334do
7335 # Use a header file that comes with gcc, so configuring glibc
7336 # with a fresh cross-compiler works.
7337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7338 # <limits.h> exists even on freestanding compilers.
7339 # On the NeXT, cc -E runs the code through the compiler's parser,
7340 # not just through cpp. "Syntax error" is here to catch this case.
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342/* end confdefs.h. */
7343#ifdef __STDC__
7344# include <limits.h>
7345#else
7346# include <assert.h>
7347#endif
7348 Syntax error
7349_ACEOF
7350if ac_fn_c_try_cpp "$LINENO"; then :
7351
7352else
7353 # Broken: fails on valid input.
7354continue
7355fi
7356rm -f conftest.err conftest.i conftest.$ac_ext
7357
7358 # OK, works on sane cases. Now check whether nonexistent headers
7359 # can be detected and how.
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361/* end confdefs.h. */
7362#include <ac_nonexistent.h>
7363_ACEOF
7364if ac_fn_c_try_cpp "$LINENO"; then :
7365 # Broken: success on invalid input.
7366continue
7367else
7368 # Passes both tests.
7369ac_preproc_ok=:
7370break
7371fi
7372rm -f conftest.err conftest.i conftest.$ac_ext
7373
7374done
7375# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7376rm -f conftest.i conftest.err conftest.$ac_ext
7377if $ac_preproc_ok; then :
7378
7379else
7380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7382as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7383See \`config.log' for more details" "$LINENO" 5; }
7384fi
7385
7386ac_ext=c
7387ac_cpp='$CPP $CPPFLAGS'
7388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7390ac_compiler_gnu=$ac_cv_c_compiler_gnu
7391
7392
7393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7394$as_echo_n "checking for ANSI C header files... " >&6; }
7395if ${ac_cv_header_stdc+:} false; then :
7396 $as_echo_n "(cached) " >&6
7397else
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399/* end confdefs.h. */
7400#include <stdlib.h>
7401#include <stdarg.h>
7402#include <string.h>
7403#include <float.h>
7404
7405int
7406main ()
7407{
7408
7409 ;
7410 return 0;
7411}
7412_ACEOF
7413if ac_fn_c_try_compile "$LINENO"; then :
7414 ac_cv_header_stdc=yes
7415else
7416 ac_cv_header_stdc=no
7417fi
7418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419
7420if test $ac_cv_header_stdc = yes; then
7421 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423/* end confdefs.h. */
7424#include <string.h>
7425
7426_ACEOF
7427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7428 $EGREP "memchr" >/dev/null 2>&1; then :
7429
7430else
7431 ac_cv_header_stdc=no
7432fi
7433rm -f conftest*
7434
7435fi
7436
7437if test $ac_cv_header_stdc = yes; then
7438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440/* end confdefs.h. */
7441#include <stdlib.h>
7442
7443_ACEOF
7444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7445 $EGREP "free" >/dev/null 2>&1; then :
7446
7447else
7448 ac_cv_header_stdc=no
7449fi
7450rm -f conftest*
7451
7452fi
7453
7454if test $ac_cv_header_stdc = yes; then
7455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7456 if test "$cross_compiling" = yes; then :
7457 :
7458else
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460/* end confdefs.h. */
7461#include <ctype.h>
7462#include <stdlib.h>
7463#if ((' ' & 0x0FF) == 0x020)
7464# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7465# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7466#else
7467# define ISLOWER(c) \
7468 (('a' <= (c) && (c) <= 'i') \
7469 || ('j' <= (c) && (c) <= 'r') \
7470 || ('s' <= (c) && (c) <= 'z'))
7471# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7472#endif
7473
7474#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7475int
7476main ()
7477{
7478 int i;
7479 for (i = 0; i < 256; i++)
7480 if (XOR (islower (i), ISLOWER (i))
7481 || toupper (i) != TOUPPER (i))
7482 return 2;
7483 return 0;
7484}
7485_ACEOF
7486if ac_fn_c_try_run "$LINENO"; then :
7487
7488else
7489 ac_cv_header_stdc=no
7490fi
7491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7492 conftest.$ac_objext conftest.beam conftest.$ac_ext
7493fi
7494
7495fi
7496fi
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7498$as_echo "$ac_cv_header_stdc" >&6; }
7499if test $ac_cv_header_stdc = yes; then
7500
7501$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7502
7503fi
7504
7505# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7506for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7507 inttypes.h stdint.h unistd.h
7508do :
7509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7510ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7511"
7512if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7513 cat >>confdefs.h <<_ACEOF
7514#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7515_ACEOF
7516
7517fi
7518
7519done
7520
7521
7522for ac_header in dlfcn.h
7523do :
7524 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7525"
7526if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7527 cat >>confdefs.h <<_ACEOF
7528#define HAVE_DLFCN_H 1
7529_ACEOF
7530
7531fi
7532
7533done
7534
7535
7536
7537
7538
7539# Set options
7540
7541
7542
7543 enable_dlopen=no
7544
7545
7546 enable_win32_dll=no
7547
7548
7549 # Check whether --enable-shared was given.
7550if test "${enable_shared+set}" = set; then :
7551 enableval=$enable_shared; p=${PACKAGE-default}
7552 case $enableval in
7553 yes) enable_shared=yes ;;
7554 no) enable_shared=no ;;
7555 *)
7556 enable_shared=no
7557 # Look at the argument we got. We use all the common list separators.
7558 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7559 for pkg in $enableval; do
7560 IFS="$lt_save_ifs"
7561 if test "X$pkg" = "X$p"; then
7562 enable_shared=yes
7563 fi
7564 done
7565 IFS="$lt_save_ifs"
7566 ;;
7567 esac
7568else
7569 enable_shared=yes
7570fi
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580 # Check whether --enable-static was given.
7581if test "${enable_static+set}" = set; then :
7582 enableval=$enable_static; p=${PACKAGE-default}
7583 case $enableval in
7584 yes) enable_static=yes ;;
7585 no) enable_static=no ;;
7586 *)
7587 enable_static=no
7588 # Look at the argument we got. We use all the common list separators.
7589 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7590 for pkg in $enableval; do
7591 IFS="$lt_save_ifs"
7592 if test "X$pkg" = "X$p"; then
7593 enable_static=yes
7594 fi
7595 done
7596 IFS="$lt_save_ifs"
7597 ;;
7598 esac
7599else
7600 enable_static=yes
7601fi
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612# Check whether --with-pic was given.
7613if test "${with_pic+set}" = set; then :
7614 withval=$with_pic; lt_p=${PACKAGE-default}
7615 case $withval in
7616 yes|no) pic_mode=$withval ;;
7617 *)
7618 pic_mode=default
7619 # Look at the argument we got. We use all the common list separators.
7620 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7621 for lt_pkg in $withval; do
7622 IFS="$lt_save_ifs"
7623 if test "X$lt_pkg" = "X$lt_p"; then
7624 pic_mode=yes
7625 fi
7626 done
7627 IFS="$lt_save_ifs"
7628 ;;
7629 esac
7630else
7631 pic_mode=default
7632fi
7633
7634
7635test -z "$pic_mode" && pic_mode=default
7636
7637
7638
7639
7640
7641
7642
7643 # Check whether --enable-fast-install was given.
7644if test "${enable_fast_install+set}" = set; then :
7645 enableval=$enable_fast_install; p=${PACKAGE-default}
7646 case $enableval in
7647 yes) enable_fast_install=yes ;;
7648 no) enable_fast_install=no ;;
7649 *)
7650 enable_fast_install=no
7651 # Look at the argument we got. We use all the common list separators.
7652 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7653 for pkg in $enableval; do
7654 IFS="$lt_save_ifs"
7655 if test "X$pkg" = "X$p"; then
7656 enable_fast_install=yes
7657 fi
7658 done
7659 IFS="$lt_save_ifs"
7660 ;;
7661 esac
7662else
7663 enable_fast_install=yes
7664fi
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676# This can be used to rebuild libtool when needed
7677LIBTOOL_DEPS="$ltmain"
7678
7679# Always use our own libtool.
7680LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711test -z "$LN_S" && LN_S="ln -s"
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726if test -n "${ZSH_VERSION+set}" ; then
7727 setopt NO_GLOB_SUBST
7728fi
7729
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7731$as_echo_n "checking for objdir... " >&6; }
7732if ${lt_cv_objdir+:} false; then :
7733 $as_echo_n "(cached) " >&6
7734else
7735 rm -f .libs 2>/dev/null
7736mkdir .libs 2>/dev/null
7737if test -d .libs; then
7738 lt_cv_objdir=.libs
7739else
7740 # MS-DOS does not allow filenames that begin with a dot.
7741 lt_cv_objdir=_libs
7742fi
7743rmdir .libs 2>/dev/null
7744fi
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7746$as_echo "$lt_cv_objdir" >&6; }
7747objdir=$lt_cv_objdir
7748
7749
7750
7751
7752
7753cat >>confdefs.h <<_ACEOF
7754#define LT_OBJDIR "$lt_cv_objdir/"
7755_ACEOF
7756
7757
7758
7759
7760case $host_os in
7761aix3*)
7762 # AIX sometimes has problems with the GCC collect2 program. For some
7763 # reason, if we set the COLLECT_NAMES environment variable, the problems
7764 # vanish in a puff of smoke.
7765 if test "X${COLLECT_NAMES+set}" != Xset; then
7766 COLLECT_NAMES=
7767 export COLLECT_NAMES
7768 fi
7769 ;;
7770esac
7771
7772# Global variables:
7773ofile=libtool
7774can_build_shared=yes
7775
7776# All known linkers require a `.a' archive for static linking (except MSVC,
7777# which needs '.lib').
7778libext=a
7779
7780with_gnu_ld="$lt_cv_prog_gnu_ld"
7781
7782old_CC="$CC"
7783old_CFLAGS="$CFLAGS"
7784
7785# Set sane defaults for various variables
7786test -z "$CC" && CC=cc
7787test -z "$LTCC" && LTCC=$CC
7788test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7789test -z "$LD" && LD=ld
7790test -z "$ac_objext" && ac_objext=o
7791
7792for cc_temp in $compiler""; do
7793 case $cc_temp in
7794 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7795 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7796 \-*) ;;
7797 *) break;;
7798 esac
7799done
7800cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7801
7802
7803# Only perform the check for file, if the check method requires it
7804test -z "$MAGIC_CMD" && MAGIC_CMD=file
7805case $deplibs_check_method in
7806file_magic*)
7807 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7809$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7810if ${lt_cv_path_MAGIC_CMD+:} false; then :
7811 $as_echo_n "(cached) " >&6
7812else
7813 case $MAGIC_CMD in
7814[\\/*] | ?:[\\/]*)
7815 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7816 ;;
7817*)
7818 lt_save_MAGIC_CMD="$MAGIC_CMD"
7819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7820 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7821 for ac_dir in $ac_dummy; do
7822 IFS="$lt_save_ifs"
7823 test -z "$ac_dir" && ac_dir=.
7824 if test -f $ac_dir/${ac_tool_prefix}file; then
7825 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7826 if test -n "$file_magic_test_file"; then
7827 case $deplibs_check_method in
7828 "file_magic "*)
7829 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7830 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7831 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7832 $EGREP "$file_magic_regex" > /dev/null; then
7833 :
7834 else
7835 cat <<_LT_EOF 1>&2
7836
7837*** Warning: the command libtool uses to detect shared libraries,
7838*** $file_magic_cmd, produces output that libtool cannot recognize.
7839*** The result is that libtool may fail to recognize shared libraries
7840*** as such. This will affect the creation of libtool libraries that
7841*** depend on shared libraries, but programs linked with such libtool
7842*** libraries will work regardless of this problem. Nevertheless, you
7843*** may want to report the problem to your system manager and/or to
7844*** bug-libtool@gnu.org
7845
7846_LT_EOF
7847 fi ;;
7848 esac
7849 fi
7850 break
7851 fi
7852 done
7853 IFS="$lt_save_ifs"
7854 MAGIC_CMD="$lt_save_MAGIC_CMD"
7855 ;;
7856esac
7857fi
7858
7859MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7860if test -n "$MAGIC_CMD"; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7862$as_echo "$MAGIC_CMD" >&6; }
7863else
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865$as_echo "no" >&6; }
7866fi
7867
7868
7869
7870
7871
7872if test -z "$lt_cv_path_MAGIC_CMD"; then
7873 if test -n "$ac_tool_prefix"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7875$as_echo_n "checking for file... " >&6; }
7876if ${lt_cv_path_MAGIC_CMD+:} false; then :
7877 $as_echo_n "(cached) " >&6
7878else
7879 case $MAGIC_CMD in
7880[\\/*] | ?:[\\/]*)
7881 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7882 ;;
7883*)
7884 lt_save_MAGIC_CMD="$MAGIC_CMD"
7885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7886 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7887 for ac_dir in $ac_dummy; do
7888 IFS="$lt_save_ifs"
7889 test -z "$ac_dir" && ac_dir=.
7890 if test -f $ac_dir/file; then
7891 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7892 if test -n "$file_magic_test_file"; then
7893 case $deplibs_check_method in
7894 "file_magic "*)
7895 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7896 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7897 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7898 $EGREP "$file_magic_regex" > /dev/null; then
7899 :
7900 else
7901 cat <<_LT_EOF 1>&2
7902
7903*** Warning: the command libtool uses to detect shared libraries,
7904*** $file_magic_cmd, produces output that libtool cannot recognize.
7905*** The result is that libtool may fail to recognize shared libraries
7906*** as such. This will affect the creation of libtool libraries that
7907*** depend on shared libraries, but programs linked with such libtool
7908*** libraries will work regardless of this problem. Nevertheless, you
7909*** may want to report the problem to your system manager and/or to
7910*** bug-libtool@gnu.org
7911
7912_LT_EOF
7913 fi ;;
7914 esac
7915 fi
7916 break
7917 fi
7918 done
7919 IFS="$lt_save_ifs"
7920 MAGIC_CMD="$lt_save_MAGIC_CMD"
7921 ;;
7922esac
7923fi
7924
7925MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7926if test -n "$MAGIC_CMD"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7928$as_echo "$MAGIC_CMD" >&6; }
7929else
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931$as_echo "no" >&6; }
7932fi
7933
7934
7935 else
7936 MAGIC_CMD=:
7937 fi
7938fi
7939
7940 fi
7941 ;;
7942esac
7943
7944# Use C for the default configuration in the libtool script
7945
7946lt_save_CC="$CC"
7947ac_ext=c
7948ac_cpp='$CPP $CPPFLAGS'
7949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7951ac_compiler_gnu=$ac_cv_c_compiler_gnu
7952
7953
7954# Source file extension for C test sources.
7955ac_ext=c
7956
7957# Object file extension for compiled C test sources.
7958objext=o
7959objext=$objext
7960
7961# Code to be used in simple compile tests
7962lt_simple_compile_test_code="int some_variable = 0;"
7963
7964# Code to be used in simple link tests
7965lt_simple_link_test_code='int main(){return(0);}'
7966
7967
7968
7969
7970
7971
7972
7973# If no C compiler was specified, use CC.
7974LTCC=${LTCC-"$CC"}
7975
7976# If no C compiler flags were specified, use CFLAGS.
7977LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7978
7979# Allow CC to be a program name with arguments.
7980compiler=$CC
7981
7982# Save the default compiler, since it gets overwritten when the other
7983# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7984compiler_DEFAULT=$CC
7985
7986# save warnings/boilerplate of simple test code
7987ac_outfile=conftest.$ac_objext
7988echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7989eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7990_lt_compiler_boilerplate=`cat conftest.err`
7991$RM conftest*
7992
7993ac_outfile=conftest.$ac_objext
7994echo "$lt_simple_link_test_code" >conftest.$ac_ext
7995eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7996_lt_linker_boilerplate=`cat conftest.err`
7997$RM -r conftest*
7998
7999
8000## CAVEAT EMPTOR:
8001## There is no encapsulation within the following macros, do not change
8002## the running order or otherwise move them around unless you know exactly
8003## what you are doing...
8004if test -n "$compiler"; then
8005
8006lt_prog_compiler_no_builtin_flag=
8007
8008if test "$GCC" = yes; then
8009 case $cc_basename in
8010 nvcc*)
8011 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8012 *)
8013 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8014 esac
8015
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8017$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8018if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8019 $as_echo_n "(cached) " >&6
8020else
8021 lt_cv_prog_compiler_rtti_exceptions=no
8022 ac_outfile=conftest.$ac_objext
8023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8024 lt_compiler_flag="-fno-rtti -fno-exceptions"
8025 # Insert the option either (1) after the last *FLAGS variable, or
8026 # (2) before a word containing "conftest.", or (3) at the end.
8027 # Note that $ac_compile itself does not contain backslashes and begins
8028 # with a dollar sign (not a hyphen), so the echo should work correctly.
8029 # The option is referenced via a variable to avoid confusing sed.
8030 lt_compile=`echo "$ac_compile" | $SED \
8031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8033 -e 's:$: $lt_compiler_flag:'`
8034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8035 (eval "$lt_compile" 2>conftest.err)
8036 ac_status=$?
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 if (exit $ac_status) && test -s "$ac_outfile"; then
8040 # The compiler can only warn and ignore the option if not recognized
8041 # So say no if there are warnings other than the usual output.
8042 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8044 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8045 lt_cv_prog_compiler_rtti_exceptions=yes
8046 fi
8047 fi
8048 $RM conftest*
8049
8050fi
8051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8052$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8053
8054if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8055 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8056else
8057 :
8058fi
8059
8060fi
8061
8062
8063
8064
8065
8066
8067 lt_prog_compiler_wl=
8068lt_prog_compiler_pic=
8069lt_prog_compiler_static=
8070
8071
8072 if test "$GCC" = yes; then
8073 lt_prog_compiler_wl='-Wl,'
8074 lt_prog_compiler_static='-static'
8075
8076 case $host_os in
8077 aix*)
8078 # All AIX code is PIC.
8079 if test "$host_cpu" = ia64; then
8080 # AIX 5 now supports IA64 processor
8081 lt_prog_compiler_static='-Bstatic'
8082 fi
8083 ;;
8084
8085 amigaos*)
8086 case $host_cpu in
8087 powerpc)
8088 # see comment about AmigaOS4 .so support
8089 lt_prog_compiler_pic='-fPIC'
8090 ;;
8091 m68k)
8092 # FIXME: we need at least 68020 code to build shared libraries, but
8093 # adding the `-m68020' flag to GCC prevents building anything better,
8094 # like `-m68040'.
8095 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8096 ;;
8097 esac
8098 ;;
8099
8100 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8101 # PIC is the default for these OSes.
8102 ;;
8103
8104 mingw* | cygwin* | pw32* | os2* | cegcc*)
8105 # This hack is so that the source file can tell whether it is being
8106 # built for inclusion in a dll (and should export symbols for example).
8107 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8108 # (--disable-auto-import) libraries
8109 lt_prog_compiler_pic='-DDLL_EXPORT'
8110 ;;
8111
8112 darwin* | rhapsody*)
8113 # PIC is the default on this platform
8114 # Common symbols not allowed in MH_DYLIB files
8115 lt_prog_compiler_pic='-fno-common'
8116 ;;
8117
8118 haiku*)
8119 # PIC is the default for Haiku.
8120 # The "-static" flag exists, but is broken.
8121 lt_prog_compiler_static=
8122 ;;
8123
8124 hpux*)
8125 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8126 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8127 # sets the default TLS model and affects inlining.
8128 case $host_cpu in
8129 hppa*64*)
8130 # +Z the default
8131 ;;
8132 *)
8133 lt_prog_compiler_pic='-fPIC'
8134 ;;
8135 esac
8136 ;;
8137
8138 interix[3-9]*)
8139 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8140 # Instead, we relocate shared libraries at runtime.
8141 ;;
8142
8143 msdosdjgpp*)
8144 # Just because we use GCC doesn't mean we suddenly get shared libraries
8145 # on systems that don't support them.
8146 lt_prog_compiler_can_build_shared=no
8147 enable_shared=no
8148 ;;
8149
8150 *nto* | *qnx*)
8151 # QNX uses GNU C++, but need to define -shared option too, otherwise
8152 # it will coredump.
8153 lt_prog_compiler_pic='-fPIC -shared'
8154 ;;
8155
8156 sysv4*MP*)
8157 if test -d /usr/nec; then
8158 lt_prog_compiler_pic=-Kconform_pic
8159 fi
8160 ;;
8161
8162 *)
8163 lt_prog_compiler_pic='-fPIC'
8164 ;;
8165 esac
8166
8167 case $cc_basename in
8168 nvcc*) # Cuda Compiler Driver 2.2
8169 lt_prog_compiler_wl='-Xlinker '
8170 if test -n "$lt_prog_compiler_pic"; then
8171 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8172 fi
8173 ;;
8174 esac
8175 else
8176 # PORTME Check for flag to pass linker flags through the system compiler.
8177 case $host_os in
8178 aix*)
8179 lt_prog_compiler_wl='-Wl,'
8180 if test "$host_cpu" = ia64; then
8181 # AIX 5 now supports IA64 processor
8182 lt_prog_compiler_static='-Bstatic'
8183 else
8184 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8185 fi
8186 ;;
8187
8188 mingw* | cygwin* | pw32* | os2* | cegcc*)
8189 # This hack is so that the source file can tell whether it is being
8190 # built for inclusion in a dll (and should export symbols for example).
8191 lt_prog_compiler_pic='-DDLL_EXPORT'
8192 ;;
8193
8194 hpux9* | hpux10* | hpux11*)
8195 lt_prog_compiler_wl='-Wl,'
8196 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8197 # not for PA HP-UX.
8198 case $host_cpu in
8199 hppa*64*|ia64*)
8200 # +Z the default
8201 ;;
8202 *)
8203 lt_prog_compiler_pic='+Z'
8204 ;;
8205 esac
8206 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8207 lt_prog_compiler_static='${wl}-a ${wl}archive'
8208 ;;
8209
8210 irix5* | irix6* | nonstopux*)
8211 lt_prog_compiler_wl='-Wl,'
8212 # PIC (with -KPIC) is the default.
8213 lt_prog_compiler_static='-non_shared'
8214 ;;
8215
8216 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8217 case $cc_basename in
8218 # old Intel for x86_64 which still supported -KPIC.
8219 ecc*)
8220 lt_prog_compiler_wl='-Wl,'
8221 lt_prog_compiler_pic='-KPIC'
8222 lt_prog_compiler_static='-static'
8223 ;;
8224 # icc used to be incompatible with GCC.
8225 # ICC 10 doesn't accept -KPIC any more.
8226 icc* | ifort*)
8227 lt_prog_compiler_wl='-Wl,'
8228 lt_prog_compiler_pic='-fPIC'
8229 lt_prog_compiler_static='-static'
8230 ;;
8231 # Lahey Fortran 8.1.
8232 lf95*)
8233 lt_prog_compiler_wl='-Wl,'
8234 lt_prog_compiler_pic='--shared'
8235 lt_prog_compiler_static='--static'
8236 ;;
8237 nagfor*)
8238 # NAG Fortran compiler
8239 lt_prog_compiler_wl='-Wl,-Wl,,'
8240 lt_prog_compiler_pic='-PIC'
8241 lt_prog_compiler_static='-Bstatic'
8242 ;;
8243 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8244 # Portland Group compilers (*not* the Pentium gcc compiler,
8245 # which looks to be a dead project)
8246 lt_prog_compiler_wl='-Wl,'
8247 lt_prog_compiler_pic='-fpic'
8248 lt_prog_compiler_static='-Bstatic'
8249 ;;
8250 ccc*)
8251 lt_prog_compiler_wl='-Wl,'
8252 # All Alpha code is PIC.
8253 lt_prog_compiler_static='-non_shared'
8254 ;;
8255 xl* | bgxl* | bgf* | mpixl*)
8256 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8257 lt_prog_compiler_wl='-Wl,'
8258 lt_prog_compiler_pic='-qpic'
8259 lt_prog_compiler_static='-qstaticlink'
8260 ;;
8261 *)
8262 case `$CC -V 2>&1 | sed 5q` in
8263 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8264 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8265 lt_prog_compiler_pic='-KPIC'
8266 lt_prog_compiler_static='-Bstatic'
8267 lt_prog_compiler_wl=''
8268 ;;
8269 *Sun\ F* | *Sun*Fortran*)
8270 lt_prog_compiler_pic='-KPIC'
8271 lt_prog_compiler_static='-Bstatic'
8272 lt_prog_compiler_wl='-Qoption ld '
8273 ;;
8274 *Sun\ C*)
8275 # Sun C 5.9
8276 lt_prog_compiler_pic='-KPIC'
8277 lt_prog_compiler_static='-Bstatic'
8278 lt_prog_compiler_wl='-Wl,'
8279 ;;
8280 *Intel*\ [CF]*Compiler*)
8281 lt_prog_compiler_wl='-Wl,'
8282 lt_prog_compiler_pic='-fPIC'
8283 lt_prog_compiler_static='-static'
8284 ;;
8285 *Portland\ Group*)
8286 lt_prog_compiler_wl='-Wl,'
8287 lt_prog_compiler_pic='-fpic'
8288 lt_prog_compiler_static='-Bstatic'
8289 ;;
8290 esac
8291 ;;
8292 esac
8293 ;;
8294
8295 newsos6)
8296 lt_prog_compiler_pic='-KPIC'
8297 lt_prog_compiler_static='-Bstatic'
8298 ;;
8299
8300 *nto* | *qnx*)
8301 # QNX uses GNU C++, but need to define -shared option too, otherwise
8302 # it will coredump.
8303 lt_prog_compiler_pic='-fPIC -shared'
8304 ;;
8305
8306 osf3* | osf4* | osf5*)
8307 lt_prog_compiler_wl='-Wl,'
8308 # All OSF/1 code is PIC.
8309 lt_prog_compiler_static='-non_shared'
8310 ;;
8311
8312 rdos*)
8313 lt_prog_compiler_static='-non_shared'
8314 ;;
8315
8316 solaris*)
8317 lt_prog_compiler_pic='-KPIC'
8318 lt_prog_compiler_static='-Bstatic'
8319 case $cc_basename in
8320 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8321 lt_prog_compiler_wl='-Qoption ld ';;
8322 *)
8323 lt_prog_compiler_wl='-Wl,';;
8324 esac
8325 ;;
8326
8327 sunos4*)
8328 lt_prog_compiler_wl='-Qoption ld '
8329 lt_prog_compiler_pic='-PIC'
8330 lt_prog_compiler_static='-Bstatic'
8331 ;;
8332
8333 sysv4 | sysv4.2uw2* | sysv4.3*)
8334 lt_prog_compiler_wl='-Wl,'
8335 lt_prog_compiler_pic='-KPIC'
8336 lt_prog_compiler_static='-Bstatic'
8337 ;;
8338
8339 sysv4*MP*)
8340 if test -d /usr/nec ;then
8341 lt_prog_compiler_pic='-Kconform_pic'
8342 lt_prog_compiler_static='-Bstatic'
8343 fi
8344 ;;
8345
8346 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8347 lt_prog_compiler_wl='-Wl,'
8348 lt_prog_compiler_pic='-KPIC'
8349 lt_prog_compiler_static='-Bstatic'
8350 ;;
8351
8352 unicos*)
8353 lt_prog_compiler_wl='-Wl,'
8354 lt_prog_compiler_can_build_shared=no
8355 ;;
8356
8357 uts4*)
8358 lt_prog_compiler_pic='-pic'
8359 lt_prog_compiler_static='-Bstatic'
8360 ;;
8361
8362 *)
8363 lt_prog_compiler_can_build_shared=no
8364 ;;
8365 esac
8366 fi
8367
8368case $host_os in
8369 # For platforms which do not support PIC, -DPIC is meaningless:
8370 *djgpp*)
8371 lt_prog_compiler_pic=
8372 ;;
8373 *)
8374 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8375 ;;
8376esac
8377
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8379$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8380if ${lt_cv_prog_compiler_pic+:} false; then :
8381 $as_echo_n "(cached) " >&6
8382else
8383 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8384fi
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8386$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8387lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8388
8389#
8390# Check to make sure the PIC flag actually works.
8391#
8392if test -n "$lt_prog_compiler_pic"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8394$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8395if ${lt_cv_prog_compiler_pic_works+:} false; then :
8396 $as_echo_n "(cached) " >&6
8397else
8398 lt_cv_prog_compiler_pic_works=no
8399 ac_outfile=conftest.$ac_objext
8400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8401 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8402 # Insert the option either (1) after the last *FLAGS variable, or
8403 # (2) before a word containing "conftest.", or (3) at the end.
8404 # Note that $ac_compile itself does not contain backslashes and begins
8405 # with a dollar sign (not a hyphen), so the echo should work correctly.
8406 # The option is referenced via a variable to avoid confusing sed.
8407 lt_compile=`echo "$ac_compile" | $SED \
8408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8410 -e 's:$: $lt_compiler_flag:'`
8411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8412 (eval "$lt_compile" 2>conftest.err)
8413 ac_status=$?
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 if (exit $ac_status) && test -s "$ac_outfile"; then
8417 # The compiler can only warn and ignore the option if not recognized
8418 # So say no if there are warnings other than the usual output.
8419 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8421 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8422 lt_cv_prog_compiler_pic_works=yes
8423 fi
8424 fi
8425 $RM conftest*
8426
8427fi
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8429$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8430
8431if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8432 case $lt_prog_compiler_pic in
8433 "" | " "*) ;;
8434 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8435 esac
8436else
8437 lt_prog_compiler_pic=
8438 lt_prog_compiler_can_build_shared=no
8439fi
8440
8441fi
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453#
8454# Check to make sure the static flag actually works.
8455#
8456wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8458$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8459if ${lt_cv_prog_compiler_static_works+:} false; then :
8460 $as_echo_n "(cached) " >&6
8461else
8462 lt_cv_prog_compiler_static_works=no
8463 save_LDFLAGS="$LDFLAGS"
8464 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8465 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8466 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8467 # The linker can only warn and ignore the option if not recognized
8468 # So say no if there are warnings
8469 if test -s conftest.err; then
8470 # Append any errors to the config.log.
8471 cat conftest.err 1>&5
8472 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8474 if diff conftest.exp conftest.er2 >/dev/null; then
8475 lt_cv_prog_compiler_static_works=yes
8476 fi
8477 else
8478 lt_cv_prog_compiler_static_works=yes
8479 fi
8480 fi
8481 $RM -r conftest*
8482 LDFLAGS="$save_LDFLAGS"
8483
8484fi
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8486$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8487
8488if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8489 :
8490else
8491 lt_prog_compiler_static=
8492fi
8493
8494
8495
8496
8497
8498
8499
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8501$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8502if ${lt_cv_prog_compiler_c_o+:} false; then :
8503 $as_echo_n "(cached) " >&6
8504else
8505 lt_cv_prog_compiler_c_o=no
8506 $RM -r conftest 2>/dev/null
8507 mkdir conftest
8508 cd conftest
8509 mkdir out
8510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8511
8512 lt_compiler_flag="-o out/conftest2.$ac_objext"
8513 # Insert the option either (1) after the last *FLAGS variable, or
8514 # (2) before a word containing "conftest.", or (3) at the end.
8515 # Note that $ac_compile itself does not contain backslashes and begins
8516 # with a dollar sign (not a hyphen), so the echo should work correctly.
8517 lt_compile=`echo "$ac_compile" | $SED \
8518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8520 -e 's:$: $lt_compiler_flag:'`
8521 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8522 (eval "$lt_compile" 2>out/conftest.err)
8523 ac_status=$?
8524 cat out/conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8527 then
8528 # The compiler can only warn and ignore the option if not recognized
8529 # So say no if there are warnings
8530 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8531 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8532 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8533 lt_cv_prog_compiler_c_o=yes
8534 fi
8535 fi
8536 chmod u+w . 2>&5
8537 $RM conftest*
8538 # SGI C++ compiler will create directory out/ii_files/ for
8539 # template instantiation
8540 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8541 $RM out/* && rmdir out
8542 cd ..
8543 $RM -r conftest
8544 $RM conftest*
8545
8546fi
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8548$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8549
8550
8551
8552
8553
8554
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8556$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8557if ${lt_cv_prog_compiler_c_o+:} false; then :
8558 $as_echo_n "(cached) " >&6
8559else
8560 lt_cv_prog_compiler_c_o=no
8561 $RM -r conftest 2>/dev/null
8562 mkdir conftest
8563 cd conftest
8564 mkdir out
8565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8566
8567 lt_compiler_flag="-o out/conftest2.$ac_objext"
8568 # Insert the option either (1) after the last *FLAGS variable, or
8569 # (2) before a word containing "conftest.", or (3) at the end.
8570 # Note that $ac_compile itself does not contain backslashes and begins
8571 # with a dollar sign (not a hyphen), so the echo should work correctly.
8572 lt_compile=`echo "$ac_compile" | $SED \
8573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8575 -e 's:$: $lt_compiler_flag:'`
8576 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8577 (eval "$lt_compile" 2>out/conftest.err)
8578 ac_status=$?
8579 cat out/conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8582 then
8583 # The compiler can only warn and ignore the option if not recognized
8584 # So say no if there are warnings
8585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8586 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8587 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8588 lt_cv_prog_compiler_c_o=yes
8589 fi
8590 fi
8591 chmod u+w . 2>&5
8592 $RM conftest*
8593 # SGI C++ compiler will create directory out/ii_files/ for
8594 # template instantiation
8595 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8596 $RM out/* && rmdir out
8597 cd ..
8598 $RM -r conftest
8599 $RM conftest*
8600
8601fi
8602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8603$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8604
8605
8606
8607
8608hard_links="nottested"
8609if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8610 # do not overwrite the value of need_locks provided by the user
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8612$as_echo_n "checking if we can lock with hard links... " >&6; }
8613 hard_links=yes
8614 $RM conftest*
8615 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8616 touch conftest.a
8617 ln conftest.a conftest.b 2>&5 || hard_links=no
8618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8620$as_echo "$hard_links" >&6; }
8621 if test "$hard_links" = no; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8623$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8624 need_locks=warn
8625 fi
8626else
8627 need_locks=no
8628fi
8629
8630
8631
8632
8633
8634
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8636$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8637
8638 runpath_var=
8639 allow_undefined_flag=
8640 always_export_symbols=no
8641 archive_cmds=
8642 archive_expsym_cmds=
8643 compiler_needs_object=no
8644 enable_shared_with_static_runtimes=no
8645 export_dynamic_flag_spec=
8646 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8647 hardcode_automatic=no
8648 hardcode_direct=no
8649 hardcode_direct_absolute=no
8650 hardcode_libdir_flag_spec=
8651 hardcode_libdir_separator=
8652 hardcode_minus_L=no
8653 hardcode_shlibpath_var=unsupported
8654 inherit_rpath=no
8655 link_all_deplibs=unknown
8656 module_cmds=
8657 module_expsym_cmds=
8658 old_archive_from_new_cmds=
8659 old_archive_from_expsyms_cmds=
8660 thread_safe_flag_spec=
8661 whole_archive_flag_spec=
8662 # include_expsyms should be a list of space-separated symbols to be *always*
8663 # included in the symbol list
8664 include_expsyms=
8665 # exclude_expsyms can be an extended regexp of symbols to exclude
8666 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8667 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8668 # as well as any symbol that contains `d'.
8669 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8670 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8671 # platforms (ab)use it in PIC code, but their linkers get confused if
8672 # the symbol is explicitly referenced. Since portable code cannot
8673 # rely on this symbol name, it's probably fine to never include it in
8674 # preloaded symbol tables.
8675 # Exclude shared library initialization/finalization symbols.
8676 extract_expsyms_cmds=
8677
8678 case $host_os in
8679 cygwin* | mingw* | pw32* | cegcc*)
8680 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8681 # When not using gcc, we currently assume that we are using
8682 # Microsoft Visual C++.
8683 if test "$GCC" != yes; then
8684 with_gnu_ld=no
8685 fi
8686 ;;
8687 interix*)
8688 # we just hope/assume this is gcc and not c89 (= MSVC++)
8689 with_gnu_ld=yes
8690 ;;
8691 openbsd*)
8692 with_gnu_ld=no
8693 ;;
8694 esac
8695
8696 ld_shlibs=yes
8697
8698 # On some targets, GNU ld is compatible enough with the native linker
8699 # that we're better off using the native interface for both.
8700 lt_use_gnu_ld_interface=no
8701 if test "$with_gnu_ld" = yes; then
8702 case $host_os in
8703 aix*)
8704 # The AIX port of GNU ld has always aspired to compatibility
8705 # with the native linker. However, as the warning in the GNU ld
8706 # block says, versions before 2.19.5* couldn't really create working
8707 # shared libraries, regardless of the interface used.
8708 case `$LD -v 2>&1` in
8709 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8710 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8711 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8712 *)
8713 lt_use_gnu_ld_interface=yes
8714 ;;
8715 esac
8716 ;;
8717 *)
8718 lt_use_gnu_ld_interface=yes
8719 ;;
8720 esac
8721 fi
8722
8723 if test "$lt_use_gnu_ld_interface" = yes; then
8724 # If archive_cmds runs LD, not CC, wlarc should be empty
8725 wlarc='${wl}'
8726
8727 # Set some defaults for GNU ld with shared library support. These
8728 # are reset later if shared libraries are not supported. Putting them
8729 # here allows them to be overridden if necessary.
8730 runpath_var=LD_RUN_PATH
8731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8732 export_dynamic_flag_spec='${wl}--export-dynamic'
8733 # ancient GNU ld didn't support --whole-archive et. al.
8734 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8735 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8736 else
8737 whole_archive_flag_spec=
8738 fi
8739 supports_anon_versioning=no
8740 case `$LD -v 2>&1` in
8741 *GNU\ gold*) supports_anon_versioning=yes ;;
8742 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8743 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8744 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8745 *\ 2.11.*) ;; # other 2.11 versions
8746 *) supports_anon_versioning=yes ;;
8747 esac
8748
8749 # See if GNU ld supports shared libraries.
8750 case $host_os in
8751 aix[3-9]*)
8752 # On AIX/PPC, the GNU linker is very broken
8753 if test "$host_cpu" != ia64; then
8754 ld_shlibs=no
8755 cat <<_LT_EOF 1>&2
8756
8757*** Warning: the GNU linker, at least up to release 2.19, is reported
8758*** to be unable to reliably create shared libraries on AIX.
8759*** Therefore, libtool is disabling shared libraries support. If you
8760*** really care for shared libraries, you may want to install binutils
8761*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8762*** You will then need to restart the configuration process.
8763
8764_LT_EOF
8765 fi
8766 ;;
8767
8768 amigaos*)
8769 case $host_cpu in
8770 powerpc)
8771 # see comment about AmigaOS4 .so support
8772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8773 archive_expsym_cmds=''
8774 ;;
8775 m68k)
8776 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)'
8777 hardcode_libdir_flag_spec='-L$libdir'
8778 hardcode_minus_L=yes
8779 ;;
8780 esac
8781 ;;
8782
8783 beos*)
8784 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8785 allow_undefined_flag=unsupported
8786 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8787 # support --undefined. This deserves some investigation. FIXME
8788 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8789 else
8790 ld_shlibs=no
8791 fi
8792 ;;
8793
8794 cygwin* | mingw* | pw32* | cegcc*)
8795 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8796 # as there is no search path for DLLs.
8797 hardcode_libdir_flag_spec='-L$libdir'
8798 export_dynamic_flag_spec='${wl}--export-all-symbols'
8799 allow_undefined_flag=unsupported
8800 always_export_symbols=no
8801 enable_shared_with_static_runtimes=yes
8802 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'
8803 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8804
8805 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8807 # If the export-symbols file already is a .def file (1st line
8808 # is EXPORTS), use it as is; otherwise, prepend...
8809 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8810 cp $export_symbols $output_objdir/$soname.def;
8811 else
8812 echo EXPORTS > $output_objdir/$soname.def;
8813 cat $export_symbols >> $output_objdir/$soname.def;
8814 fi~
8815 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8816 else
8817 ld_shlibs=no
8818 fi
8819 ;;
8820
8821 haiku*)
8822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8823 link_all_deplibs=yes
8824 ;;
8825
8826 interix[3-9]*)
8827 hardcode_direct=no
8828 hardcode_shlibpath_var=no
8829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8830 export_dynamic_flag_spec='${wl}-E'
8831 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8832 # Instead, shared libraries are loaded at an image base (0x10000000 by
8833 # default) and relocated if they conflict, which is a slow very memory
8834 # consuming and fragmenting process. To avoid this, we pick a random,
8835 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8836 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8837 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8838 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'
8839 ;;
8840
8841 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8842 tmp_diet=no
8843 if test "$host_os" = linux-dietlibc; then
8844 case $cc_basename in
8845 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8846 esac
8847 fi
8848 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8849 && test "$tmp_diet" = no
8850 then
8851 tmp_addflag=' $pic_flag'
8852 tmp_sharedflag='-shared'
8853 case $cc_basename,$host_cpu in
8854 pgcc*) # Portland Group C compiler
8855 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'
8856 tmp_addflag=' $pic_flag'
8857 ;;
8858 pgf77* | pgf90* | pgf95* | pgfortran*)
8859 # Portland Group f77 and f90 compilers
8860 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'
8861 tmp_addflag=' $pic_flag -Mnomain' ;;
8862 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8863 tmp_addflag=' -i_dynamic' ;;
8864 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8865 tmp_addflag=' -i_dynamic -nofor_main' ;;
8866 ifc* | ifort*) # Intel Fortran compiler
8867 tmp_addflag=' -nofor_main' ;;
8868 lf95*) # Lahey Fortran 8.1
8869 whole_archive_flag_spec=
8870 tmp_sharedflag='--shared' ;;
8871 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8872 tmp_sharedflag='-qmkshrobj'
8873 tmp_addflag= ;;
8874 nvcc*) # Cuda Compiler Driver 2.2
8875 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'
8876 compiler_needs_object=yes
8877 ;;
8878 esac
8879 case `$CC -V 2>&1 | sed 5q` in
8880 *Sun\ C*) # Sun C 5.9
8881 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'
8882 compiler_needs_object=yes
8883 tmp_sharedflag='-G' ;;
8884 *Sun\ F*) # Sun Fortran 8.3
8885 tmp_sharedflag='-G' ;;
8886 esac
8887 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8888
8889 if test "x$supports_anon_versioning" = xyes; then
8890 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8891 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8892 echo "local: *; };" >> $output_objdir/$libname.ver~
8893 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8894 fi
8895
8896 case $cc_basename in
8897 xlf* | bgf* | bgxlf* | mpixlf*)
8898 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8899 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8901 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8902 if test "x$supports_anon_versioning" = xyes; then
8903 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8904 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8905 echo "local: *; };" >> $output_objdir/$libname.ver~
8906 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8907 fi
8908 ;;
8909 esac
8910 else
8911 ld_shlibs=no
8912 fi
8913 ;;
8914
8915 netbsd*)
8916 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8917 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8918 wlarc=
8919 else
8920 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8922 fi
8923 ;;
8924
8925 solaris*)
8926 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8927 ld_shlibs=no
8928 cat <<_LT_EOF 1>&2
8929
8930*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8931*** create shared libraries on Solaris systems. Therefore, libtool
8932*** is disabling shared libraries support. We urge you to upgrade GNU
8933*** binutils to release 2.9.1 or newer. Another option is to modify
8934*** your PATH or compiler configuration so that the native linker is
8935*** used, and then restart.
8936
8937_LT_EOF
8938 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8939 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8940 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8941 else
8942 ld_shlibs=no
8943 fi
8944 ;;
8945
8946 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8947 case `$LD -v 2>&1` in
8948 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8949 ld_shlibs=no
8950 cat <<_LT_EOF 1>&2
8951
8952*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8953*** reliably create shared libraries on SCO systems. Therefore, libtool
8954*** is disabling shared libraries support. We urge you to upgrade GNU
8955*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8956*** your PATH or compiler configuration so that the native linker is
8957*** used, and then restart.
8958
8959_LT_EOF
8960 ;;
8961 *)
8962 # For security reasons, it is highly recommended that you always
8963 # use absolute paths for naming shared libraries, and exclude the
8964 # DT_RUNPATH tag from executables and libraries. But doing so
8965 # requires that you compile everything twice, which is a pain.
8966 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8970 else
8971 ld_shlibs=no
8972 fi
8973 ;;
8974 esac
8975 ;;
8976
8977 sunos4*)
8978 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8979 wlarc=
8980 hardcode_direct=yes
8981 hardcode_shlibpath_var=no
8982 ;;
8983
8984 *)
8985 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8986 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988 else
8989 ld_shlibs=no
8990 fi
8991 ;;
8992 esac
8993
8994 if test "$ld_shlibs" = no; then
8995 runpath_var=
8996 hardcode_libdir_flag_spec=
8997 export_dynamic_flag_spec=
8998 whole_archive_flag_spec=
8999 fi
9000 else
9001 # PORTME fill in a description of your system's linker (not GNU ld)
9002 case $host_os in
9003 aix3*)
9004 allow_undefined_flag=unsupported
9005 always_export_symbols=yes
9006 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'
9007 # Note: this linker hardcodes the directories in LIBPATH if there
9008 # are no directories specified by -L.
9009 hardcode_minus_L=yes
9010 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9011 # Neither direct hardcoding nor static linking is supported with a
9012 # broken collect2.
9013 hardcode_direct=unsupported
9014 fi
9015 ;;
9016
9017 aix[4-9]*)
9018 if test "$host_cpu" = ia64; then
9019 # On IA64, the linker does run time linking by default, so we don't
9020 # have to do anything special.
9021 aix_use_runtimelinking=no
9022 exp_sym_flag='-Bexport'
9023 no_entry_flag=""
9024 else
9025 # If we're using GNU nm, then we don't want the "-C" option.
9026 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9027 # Also, AIX nm treats weak defined symbols like other global
9028 # defined symbols, whereas GNU nm marks them as "W".
9029 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9030 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9031 else
9032 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9033 fi
9034 aix_use_runtimelinking=no
9035
9036 # Test if we are trying to use run time linking or normal
9037 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9038 # need to do runtime linking.
9039 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9040 for ld_flag in $LDFLAGS; do
9041 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9042 aix_use_runtimelinking=yes
9043 break
9044 fi
9045 done
9046 ;;
9047 esac
9048
9049 exp_sym_flag='-bexport'
9050 no_entry_flag='-bnoentry'
9051 fi
9052
9053 # When large executables or shared objects are built, AIX ld can
9054 # have problems creating the table of contents. If linking a library
9055 # or program results in "error TOC overflow" add -mminimal-toc to
9056 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9057 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9058
9059 archive_cmds=''
9060 hardcode_direct=yes
9061 hardcode_direct_absolute=yes
9062 hardcode_libdir_separator=':'
9063 link_all_deplibs=yes
9064 file_list_spec='${wl}-f,'
9065
9066 if test "$GCC" = yes; then
9067 case $host_os in aix4.[012]|aix4.[012].*)
9068 # We only want to do this on AIX 4.2 and lower, the check
9069 # below for broken collect2 doesn't work under 4.3+
9070 collect2name=`${CC} -print-prog-name=collect2`
9071 if test -f "$collect2name" &&
9072 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9073 then
9074 # We have reworked collect2
9075 :
9076 else
9077 # We have old collect2
9078 hardcode_direct=unsupported
9079 # It fails to find uninstalled libraries when the uninstalled
9080 # path is not listed in the libpath. Setting hardcode_minus_L
9081 # to unsupported forces relinking
9082 hardcode_minus_L=yes
9083 hardcode_libdir_flag_spec='-L$libdir'
9084 hardcode_libdir_separator=
9085 fi
9086 ;;
9087 esac
9088 shared_flag='-shared'
9089 if test "$aix_use_runtimelinking" = yes; then
9090 shared_flag="$shared_flag "'${wl}-G'
9091 fi
9092 else
9093 # not using gcc
9094 if test "$host_cpu" = ia64; then
9095 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9096 # chokes on -Wl,-G. The following line is correct:
9097 shared_flag='-G'
9098 else
9099 if test "$aix_use_runtimelinking" = yes; then
9100 shared_flag='${wl}-G'
9101 else
9102 shared_flag='${wl}-bM:SRE'
9103 fi
9104 fi
9105 fi
9106
9107 export_dynamic_flag_spec='${wl}-bexpall'
9108 # It seems that -bexpall does not export symbols beginning with
9109 # underscore (_), so it is better to generate a list of symbols to export.
9110 always_export_symbols=yes
9111 if test "$aix_use_runtimelinking" = yes; then
9112 # Warning - without using the other runtime loading flags (-brtl),
9113 # -berok will link without error, but may produce a broken library.
9114 allow_undefined_flag='-berok'
9115 # Determine the default libpath from the value encoded in an
9116 # empty executable.
9117 if test "${lt_cv_aix_libpath+set}" = set; then
9118 aix_libpath=$lt_cv_aix_libpath
9119else
9120 if ${lt_cv_aix_libpath_+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122else
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124/* end confdefs.h. */
9125
9126int
9127main ()
9128{
9129
9130 ;
9131 return 0;
9132}
9133_ACEOF
9134if ac_fn_c_try_link "$LINENO"; then :
9135
9136 lt_aix_libpath_sed='
9137 /Import File Strings/,/^$/ {
9138 /^0/ {
9139 s/^0 *\([^ ]*\) *$/\1/
9140 p
9141 }
9142 }'
9143 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9144 # Check for a 64-bit object if we didn't find anything.
9145 if test -z "$lt_cv_aix_libpath_"; then
9146 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9147 fi
9148fi
9149rm -f core conftest.err conftest.$ac_objext \
9150 conftest$ac_exeext conftest.$ac_ext
9151 if test -z "$lt_cv_aix_libpath_"; then
9152 lt_cv_aix_libpath_="/usr/lib:/lib"
9153 fi
9154
9155fi
9156
9157 aix_libpath=$lt_cv_aix_libpath_
9158fi
9159
9160 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9161 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9162 else
9163 if test "$host_cpu" = ia64; then
9164 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9165 allow_undefined_flag="-z nodefs"
9166 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"
9167 else
9168 # Determine the default libpath from the value encoded in an
9169 # empty executable.
9170 if test "${lt_cv_aix_libpath+set}" = set; then
9171 aix_libpath=$lt_cv_aix_libpath
9172else
9173 if ${lt_cv_aix_libpath_+:} false; then :
9174 $as_echo_n "(cached) " >&6
9175else
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177/* end confdefs.h. */
9178
9179int
9180main ()
9181{
9182
9183 ;
9184 return 0;
9185}
9186_ACEOF
9187if ac_fn_c_try_link "$LINENO"; then :
9188
9189 lt_aix_libpath_sed='
9190 /Import File Strings/,/^$/ {
9191 /^0/ {
9192 s/^0 *\([^ ]*\) *$/\1/
9193 p
9194 }
9195 }'
9196 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9197 # Check for a 64-bit object if we didn't find anything.
9198 if test -z "$lt_cv_aix_libpath_"; then
9199 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9200 fi
9201fi
9202rm -f core conftest.err conftest.$ac_objext \
9203 conftest$ac_exeext conftest.$ac_ext
9204 if test -z "$lt_cv_aix_libpath_"; then
9205 lt_cv_aix_libpath_="/usr/lib:/lib"
9206 fi
9207
9208fi
9209
9210 aix_libpath=$lt_cv_aix_libpath_
9211fi
9212
9213 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9214 # Warning - without using the other run time loading flags,
9215 # -berok will link without error, but may produce a broken library.
9216 no_undefined_flag=' ${wl}-bernotok'
9217 allow_undefined_flag=' ${wl}-berok'
9218 if test "$with_gnu_ld" = yes; then
9219 # We only use this code for GNU lds that support --whole-archive.
9220 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9221 else
9222 # Exported symbols can be pulled into shared objects from archives
9223 whole_archive_flag_spec='$convenience'
9224 fi
9225 archive_cmds_need_lc=yes
9226 # This is similar to how AIX traditionally builds its shared libraries.
9227 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9228 fi
9229 fi
9230 ;;
9231
9232 amigaos*)
9233 case $host_cpu in
9234 powerpc)
9235 # see comment about AmigaOS4 .so support
9236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9237 archive_expsym_cmds=''
9238 ;;
9239 m68k)
9240 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)'
9241 hardcode_libdir_flag_spec='-L$libdir'
9242 hardcode_minus_L=yes
9243 ;;
9244 esac
9245 ;;
9246
9247 bsdi[45]*)
9248 export_dynamic_flag_spec=-rdynamic
9249 ;;
9250
9251 cygwin* | mingw* | pw32* | cegcc*)
9252 # When not using gcc, we currently assume that we are using
9253 # Microsoft Visual C++.
9254 # hardcode_libdir_flag_spec is actually meaningless, as there is
9255 # no search path for DLLs.
9256 case $cc_basename in
9257 cl*)
9258 # Native MSVC
9259 hardcode_libdir_flag_spec=' '
9260 allow_undefined_flag=unsupported
9261 always_export_symbols=yes
9262 file_list_spec='@'
9263 # Tell ltmain to make .lib files, not .a files.
9264 libext=lib
9265 # Tell ltmain to make .dll files, not .so files.
9266 shrext_cmds=".dll"
9267 # FIXME: Setting linknames here is a bad hack.
9268 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9269 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9270 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9271 else
9272 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9273 fi~
9274 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9275 linknames='
9276 # The linker will not automatically build a static lib if we build a DLL.
9277 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9278 enable_shared_with_static_runtimes=yes
9279 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9280 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9281 # Don't use ranlib
9282 old_postinstall_cmds='chmod 644 $oldlib'
9283 postlink_cmds='lt_outputfile="@OUTPUT@"~
9284 lt_tool_outputfile="@TOOL_OUTPUT@"~
9285 case $lt_outputfile in
9286 *.exe|*.EXE) ;;
9287 *)
9288 lt_outputfile="$lt_outputfile.exe"
9289 lt_tool_outputfile="$lt_tool_outputfile.exe"
9290 ;;
9291 esac~
9292 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9293 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9294 $RM "$lt_outputfile.manifest";
9295 fi'
9296 ;;
9297 *)
9298 # Assume MSVC wrapper
9299 hardcode_libdir_flag_spec=' '
9300 allow_undefined_flag=unsupported
9301 # Tell ltmain to make .lib files, not .a files.
9302 libext=lib
9303 # Tell ltmain to make .dll files, not .so files.
9304 shrext_cmds=".dll"
9305 # FIXME: Setting linknames here is a bad hack.
9306 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9307 # The linker will automatically build a .lib file if we build a DLL.
9308 old_archive_from_new_cmds='true'
9309 # FIXME: Should let the user specify the lib program.
9310 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9311 enable_shared_with_static_runtimes=yes
9312 ;;
9313 esac
9314 ;;
9315
9316 darwin* | rhapsody*)
9317
9318
9319 archive_cmds_need_lc=no
9320 hardcode_direct=no
9321 hardcode_automatic=yes
9322 hardcode_shlibpath_var=unsupported
9323 if test "$lt_cv_ld_force_load" = "yes"; then
9324 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\"`'
9325
9326 else
9327 whole_archive_flag_spec=''
9328 fi
9329 link_all_deplibs=yes
9330 allow_undefined_flag="$_lt_dar_allow_undefined"
9331 case $cc_basename in
9332 ifort*) _lt_dar_can_shared=yes ;;
9333 *) _lt_dar_can_shared=$GCC ;;
9334 esac
9335 if test "$_lt_dar_can_shared" = "yes"; then
9336 output_verbose_link_cmd=func_echo_all
9337 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9338 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9339 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}"
9340 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}"
9341
9342 else
9343 ld_shlibs=no
9344 fi
9345
9346 ;;
9347
9348 dgux*)
9349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_libdir_flag_spec='-L$libdir'
9351 hardcode_shlibpath_var=no
9352 ;;
9353
9354 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9355 # support. Future versions do this automatically, but an explicit c++rt0.o
9356 # does not break anything, and helps significantly (at the cost of a little
9357 # extra space).
9358 freebsd2.2*)
9359 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9360 hardcode_libdir_flag_spec='-R$libdir'
9361 hardcode_direct=yes
9362 hardcode_shlibpath_var=no
9363 ;;
9364
9365 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9366 freebsd2.*)
9367 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9368 hardcode_direct=yes
9369 hardcode_minus_L=yes
9370 hardcode_shlibpath_var=no
9371 ;;
9372
9373 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9374 freebsd* | dragonfly*)
9375 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9376 hardcode_libdir_flag_spec='-R$libdir'
9377 hardcode_direct=yes
9378 hardcode_shlibpath_var=no
9379 ;;
9380
9381 hpux9*)
9382 if test "$GCC" = yes; then
9383 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9384 else
9385 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9386 fi
9387 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9388 hardcode_libdir_separator=:
9389 hardcode_direct=yes
9390
9391 # hardcode_minus_L: Not really in the search PATH,
9392 # but as the default location of the library.
9393 hardcode_minus_L=yes
9394 export_dynamic_flag_spec='${wl}-E'
9395 ;;
9396
9397 hpux10*)
9398 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9399 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9400 else
9401 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9402 fi
9403 if test "$with_gnu_ld" = no; then
9404 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9405 hardcode_libdir_separator=:
9406 hardcode_direct=yes
9407 hardcode_direct_absolute=yes
9408 export_dynamic_flag_spec='${wl}-E'
9409 # hardcode_minus_L: Not really in the search PATH,
9410 # but as the default location of the library.
9411 hardcode_minus_L=yes
9412 fi
9413 ;;
9414
9415 hpux11*)
9416 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9417 case $host_cpu in
9418 hppa*64*)
9419 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9420 ;;
9421 ia64*)
9422 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9423 ;;
9424 *)
9425 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9426 ;;
9427 esac
9428 else
9429 case $host_cpu in
9430 hppa*64*)
9431 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 ;;
9433 ia64*)
9434 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9435 ;;
9436 *)
9437
9438 # Older versions of the 11.00 compiler do not understand -b yet
9439 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9441$as_echo_n "checking if $CC understands -b... " >&6; }
9442if ${lt_cv_prog_compiler__b+:} false; then :
9443 $as_echo_n "(cached) " >&6
9444else
9445 lt_cv_prog_compiler__b=no
9446 save_LDFLAGS="$LDFLAGS"
9447 LDFLAGS="$LDFLAGS -b"
9448 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9449 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9450 # The linker can only warn and ignore the option if not recognized
9451 # So say no if there are warnings
9452 if test -s conftest.err; then
9453 # Append any errors to the config.log.
9454 cat conftest.err 1>&5
9455 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9457 if diff conftest.exp conftest.er2 >/dev/null; then
9458 lt_cv_prog_compiler__b=yes
9459 fi
9460 else
9461 lt_cv_prog_compiler__b=yes
9462 fi
9463 fi
9464 $RM -r conftest*
9465 LDFLAGS="$save_LDFLAGS"
9466
9467fi
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9469$as_echo "$lt_cv_prog_compiler__b" >&6; }
9470
9471if test x"$lt_cv_prog_compiler__b" = xyes; then
9472 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9473else
9474 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9475fi
9476
9477 ;;
9478 esac
9479 fi
9480 if test "$with_gnu_ld" = no; then
9481 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9482 hardcode_libdir_separator=:
9483
9484 case $host_cpu in
9485 hppa*64*|ia64*)
9486 hardcode_direct=no
9487 hardcode_shlibpath_var=no
9488 ;;
9489 *)
9490 hardcode_direct=yes
9491 hardcode_direct_absolute=yes
9492 export_dynamic_flag_spec='${wl}-E'
9493
9494 # hardcode_minus_L: Not really in the search PATH,
9495 # but as the default location of the library.
9496 hardcode_minus_L=yes
9497 ;;
9498 esac
9499 fi
9500 ;;
9501
9502 irix5* | irix6* | nonstopux*)
9503 if test "$GCC" = yes; then
9504 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'
9505 # Try to use the -exported_symbol ld option, if it does not
9506 # work, assume that -exports_file does not work either and
9507 # implicitly export all symbols.
9508 # This should be the same for all languages, so no per-tag cache variable.
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9510$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9511if ${lt_cv_irix_exported_symbol+:} false; then :
9512 $as_echo_n "(cached) " >&6
9513else
9514 save_LDFLAGS="$LDFLAGS"
9515 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517/* end confdefs.h. */
9518int foo (void) { return 0; }
9519_ACEOF
9520if ac_fn_c_try_link "$LINENO"; then :
9521 lt_cv_irix_exported_symbol=yes
9522else
9523 lt_cv_irix_exported_symbol=no
9524fi
9525rm -f core conftest.err conftest.$ac_objext \
9526 conftest$ac_exeext conftest.$ac_ext
9527 LDFLAGS="$save_LDFLAGS"
9528fi
9529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9530$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9531 if test "$lt_cv_irix_exported_symbol" = yes; then
9532 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'
9533 fi
9534 else
9535 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'
9536 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'
9537 fi
9538 archive_cmds_need_lc='no'
9539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9540 hardcode_libdir_separator=:
9541 inherit_rpath=yes
9542 link_all_deplibs=yes
9543 ;;
9544
9545 netbsd*)
9546 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9548 else
9549 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9550 fi
9551 hardcode_libdir_flag_spec='-R$libdir'
9552 hardcode_direct=yes
9553 hardcode_shlibpath_var=no
9554 ;;
9555
9556 newsos6)
9557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558 hardcode_direct=yes
9559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9560 hardcode_libdir_separator=:
9561 hardcode_shlibpath_var=no
9562 ;;
9563
9564 *nto* | *qnx*)
9565 ;;
9566
9567 openbsd*)
9568 if test -f /usr/libexec/ld.so; then
9569 hardcode_direct=yes
9570 hardcode_shlibpath_var=no
9571 hardcode_direct_absolute=yes
9572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9573 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9574 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9576 export_dynamic_flag_spec='${wl}-E'
9577 else
9578 case $host_os in
9579 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9580 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9581 hardcode_libdir_flag_spec='-R$libdir'
9582 ;;
9583 *)
9584 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9585 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9586 ;;
9587 esac
9588 fi
9589 else
9590 ld_shlibs=no
9591 fi
9592 ;;
9593
9594 os2*)
9595 hardcode_libdir_flag_spec='-L$libdir'
9596 hardcode_minus_L=yes
9597 allow_undefined_flag=unsupported
9598 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9599 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9600 ;;
9601
9602 osf3*)
9603 if test "$GCC" = yes; then
9604 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9605 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'
9606 else
9607 allow_undefined_flag=' -expect_unresolved \*'
9608 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'
9609 fi
9610 archive_cmds_need_lc='no'
9611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612 hardcode_libdir_separator=:
9613 ;;
9614
9615 osf4* | osf5*) # as osf3* with the addition of -msym flag
9616 if test "$GCC" = yes; then
9617 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9618 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'
9619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9620 else
9621 allow_undefined_flag=' -expect_unresolved \*'
9622 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'
9623 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~
9624 $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'
9625
9626 # Both c and cxx compiler support -rpath directly
9627 hardcode_libdir_flag_spec='-rpath $libdir'
9628 fi
9629 archive_cmds_need_lc='no'
9630 hardcode_libdir_separator=:
9631 ;;
9632
9633 solaris*)
9634 no_undefined_flag=' -z defs'
9635 if test "$GCC" = yes; then
9636 wlarc='${wl}'
9637 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9639 $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'
9640 else
9641 case `$CC -V 2>&1` in
9642 *"Compilers 5.0"*)
9643 wlarc=''
9644 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9645 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9646 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9647 ;;
9648 *)
9649 wlarc='${wl}'
9650 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9652 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9653 ;;
9654 esac
9655 fi
9656 hardcode_libdir_flag_spec='-R$libdir'
9657 hardcode_shlibpath_var=no
9658 case $host_os in
9659 solaris2.[0-5] | solaris2.[0-5].*) ;;
9660 *)
9661 # The compiler driver will combine and reorder linker options,
9662 # but understands `-z linker_flag'. GCC discards it without `$wl',
9663 # but is careful enough not to reorder.
9664 # Supported since Solaris 2.6 (maybe 2.5.1?)
9665 if test "$GCC" = yes; then
9666 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9667 else
9668 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9669 fi
9670 ;;
9671 esac
9672 link_all_deplibs=yes
9673 ;;
9674
9675 sunos4*)
9676 if test "x$host_vendor" = xsequent; then
9677 # Use $CC to link under sequent, because it throws in some extra .o
9678 # files that make .init and .fini sections work.
9679 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9680 else
9681 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9682 fi
9683 hardcode_libdir_flag_spec='-L$libdir'
9684 hardcode_direct=yes
9685 hardcode_minus_L=yes
9686 hardcode_shlibpath_var=no
9687 ;;
9688
9689 sysv4)
9690 case $host_vendor in
9691 sni)
9692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9693 hardcode_direct=yes # is this really true???
9694 ;;
9695 siemens)
9696 ## LD is ld it makes a PLAMLIB
9697 ## CC just makes a GrossModule.
9698 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9699 reload_cmds='$CC -r -o $output$reload_objs'
9700 hardcode_direct=no
9701 ;;
9702 motorola)
9703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9704 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9705 ;;
9706 esac
9707 runpath_var='LD_RUN_PATH'
9708 hardcode_shlibpath_var=no
9709 ;;
9710
9711 sysv4.3*)
9712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9713 hardcode_shlibpath_var=no
9714 export_dynamic_flag_spec='-Bexport'
9715 ;;
9716
9717 sysv4*MP*)
9718 if test -d /usr/nec; then
9719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9720 hardcode_shlibpath_var=no
9721 runpath_var=LD_RUN_PATH
9722 hardcode_runpath_var=yes
9723 ld_shlibs=yes
9724 fi
9725 ;;
9726
9727 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9728 no_undefined_flag='${wl}-z,text'
9729 archive_cmds_need_lc=no
9730 hardcode_shlibpath_var=no
9731 runpath_var='LD_RUN_PATH'
9732
9733 if test "$GCC" = yes; then
9734 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9736 else
9737 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9738 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 fi
9740 ;;
9741
9742 sysv5* | sco3.2v5* | sco5v6*)
9743 # Note: We can NOT use -z defs as we might desire, because we do not
9744 # link with -lc, and that would cause any symbols used from libc to
9745 # always be unresolved, which means just about no library would
9746 # ever link correctly. If we're not using GNU ld we use -z text
9747 # though, which does catch some bad symbols but isn't as heavy-handed
9748 # as -z defs.
9749 no_undefined_flag='${wl}-z,text'
9750 allow_undefined_flag='${wl}-z,nodefs'
9751 archive_cmds_need_lc=no
9752 hardcode_shlibpath_var=no
9753 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9754 hardcode_libdir_separator=':'
9755 link_all_deplibs=yes
9756 export_dynamic_flag_spec='${wl}-Bexport'
9757 runpath_var='LD_RUN_PATH'
9758
9759 if test "$GCC" = yes; then
9760 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9761 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9762 else
9763 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9764 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9765 fi
9766 ;;
9767
9768 uts4*)
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_libdir_flag_spec='-L$libdir'
9771 hardcode_shlibpath_var=no
9772 ;;
9773
9774 *)
9775 ld_shlibs=no
9776 ;;
9777 esac
9778
9779 if test x$host_vendor = xsni; then
9780 case $host in
9781 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9782 export_dynamic_flag_spec='${wl}-Blargedynsym'
9783 ;;
9784 esac
9785 fi
9786 fi
9787
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9789$as_echo "$ld_shlibs" >&6; }
9790test "$ld_shlibs" = no && can_build_shared=no
9791
9792with_gnu_ld=$with_gnu_ld
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808#
9809# Do we need to explicitly link libc?
9810#
9811case "x$archive_cmds_need_lc" in
9812x|xyes)
9813 # Assume -lc should be added
9814 archive_cmds_need_lc=yes
9815
9816 if test "$enable_shared" = yes && test "$GCC" = yes; then
9817 case $archive_cmds in
9818 *'~'*)
9819 # FIXME: we may have to deal with multi-command sequences.
9820 ;;
9821 '$CC '*)
9822 # Test whether the compiler implicitly links with -lc since on some
9823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9824 # to ld, don't add -lc before -lgcc.
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9826$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9827if ${lt_cv_archive_cmds_need_lc+:} false; then :
9828 $as_echo_n "(cached) " >&6
9829else
9830 $RM conftest*
9831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9832
9833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9834 (eval $ac_compile) 2>&5
9835 ac_status=$?
9836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9837 test $ac_status = 0; } 2>conftest.err; then
9838 soname=conftest
9839 lib=conftest
9840 libobjs=conftest.$ac_objext
9841 deplibs=
9842 wl=$lt_prog_compiler_wl
9843 pic_flag=$lt_prog_compiler_pic
9844 compiler_flags=-v
9845 linker_flags=-v
9846 verstring=
9847 output_objdir=.
9848 libname=conftest
9849 lt_save_allow_undefined_flag=$allow_undefined_flag
9850 allow_undefined_flag=
9851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9852 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9853 ac_status=$?
9854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9855 test $ac_status = 0; }
9856 then
9857 lt_cv_archive_cmds_need_lc=no
9858 else
9859 lt_cv_archive_cmds_need_lc=yes
9860 fi
9861 allow_undefined_flag=$lt_save_allow_undefined_flag
9862 else
9863 cat conftest.err 1>&5
9864 fi
9865 $RM conftest*
9866
9867fi
9868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9869$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9870 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9871 ;;
9872 esac
9873 fi
9874 ;;
9875esac
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10029$as_echo_n "checking dynamic linker characteristics... " >&6; }
10030
10031if test "$GCC" = yes; then
10032 case $host_os in
10033 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10034 *) lt_awk_arg="/^libraries:/" ;;
10035 esac
10036 case $host_os in
10037 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10038 *) lt_sed_strip_eq="s,=/,/,g" ;;
10039 esac
10040 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10041 case $lt_search_path_spec in
10042 *\;*)
10043 # if the path contains ";" then we assume it to be the separator
10044 # otherwise default to the standard path separator (i.e. ":") - it is
10045 # assumed that no part of a normal pathname contains ";" but that should
10046 # okay in the real world where ";" in dirpaths is itself problematic.
10047 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10048 ;;
10049 *)
10050 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10051 ;;
10052 esac
10053 # Ok, now we have the path, separated by spaces, we can step through it
10054 # and add multilib dir if necessary.
10055 lt_tmp_lt_search_path_spec=
10056 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10057 for lt_sys_path in $lt_search_path_spec; do
10058 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10059 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10060 else
10061 test -d "$lt_sys_path" && \
10062 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10063 fi
10064 done
10065 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10066BEGIN {RS=" "; FS="/|\n";} {
10067 lt_foo="";
10068 lt_count=0;
10069 for (lt_i = NF; lt_i > 0; lt_i--) {
10070 if ($lt_i != "" && $lt_i != ".") {
10071 if ($lt_i == "..") {
10072 lt_count++;
10073 } else {
10074 if (lt_count == 0) {
10075 lt_foo="/" $lt_i lt_foo;
10076 } else {
10077 lt_count--;
10078 }
10079 }
10080 }
10081 }
10082 if (lt_foo != "") { lt_freq[lt_foo]++; }
10083 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10084}'`
10085 # AWK program above erroneously prepends '/' to C:/dos/paths
10086 # for these hosts.
10087 case $host_os in
10088 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10089 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10090 esac
10091 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10092else
10093 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10094fi
10095library_names_spec=
10096libname_spec='lib$name'
10097soname_spec=
10098shrext_cmds=".so"
10099postinstall_cmds=
10100postuninstall_cmds=
10101finish_cmds=
10102finish_eval=
10103shlibpath_var=
10104shlibpath_overrides_runpath=unknown
10105version_type=none
10106dynamic_linker="$host_os ld.so"
10107sys_lib_dlsearch_path_spec="/lib /usr/lib"
10108need_lib_prefix=unknown
10109hardcode_into_libs=no
10110
10111# when you set need_version to no, make sure it does not cause -set_version
10112# flags to be left without arguments
10113need_version=unknown
10114
10115case $host_os in
10116aix3*)
10117 version_type=linux # correct to gnu/linux during the next big refactor
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10119 shlibpath_var=LIBPATH
10120
10121 # AIX 3 has no versioning support, so we append a major version to the name.
10122 soname_spec='${libname}${release}${shared_ext}$major'
10123 ;;
10124
10125aix[4-9]*)
10126 version_type=linux # correct to gnu/linux during the next big refactor
10127 need_lib_prefix=no
10128 need_version=no
10129 hardcode_into_libs=yes
10130 if test "$host_cpu" = ia64; then
10131 # AIX 5 supports IA64
10132 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10133 shlibpath_var=LD_LIBRARY_PATH
10134 else
10135 # With GCC up to 2.95.x, collect2 would create an import file
10136 # for dependence libraries. The import file would start with
10137 # the line `#! .'. This would cause the generated library to
10138 # depend on `.', always an invalid library. This was fixed in
10139 # development snapshots of GCC prior to 3.0.
10140 case $host_os in
10141 aix4 | aix4.[01] | aix4.[01].*)
10142 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10143 echo ' yes '
10144 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10145 :
10146 else
10147 can_build_shared=no
10148 fi
10149 ;;
10150 esac
10151 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10152 # soname into executable. Probably we can add versioning support to
10153 # collect2, so additional links can be useful in future.
10154 if test "$aix_use_runtimelinking" = yes; then
10155 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10156 # instead of lib<name>.a to let people know that these are not
10157 # typical AIX shared libraries.
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159 else
10160 # We preserve .a as extension for shared libraries through AIX4.2
10161 # and later when we are not doing run time linking.
10162 library_names_spec='${libname}${release}.a $libname.a'
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 fi
10165 shlibpath_var=LIBPATH
10166 fi
10167 ;;
10168
10169amigaos*)
10170 case $host_cpu in
10171 powerpc)
10172 # Since July 2007 AmigaOS4 officially supports .so libraries.
10173 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175 ;;
10176 m68k)
10177 library_names_spec='$libname.ixlibrary $libname.a'
10178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10179 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10180 ;;
10181 esac
10182 ;;
10183
10184beos*)
10185 library_names_spec='${libname}${shared_ext}'
10186 dynamic_linker="$host_os ld.so"
10187 shlibpath_var=LIBRARY_PATH
10188 ;;
10189
10190bsdi[45]*)
10191 version_type=linux # correct to gnu/linux during the next big refactor
10192 need_version=no
10193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10194 soname_spec='${libname}${release}${shared_ext}$major'
10195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10196 shlibpath_var=LD_LIBRARY_PATH
10197 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10198 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10199 # the default ld.so.conf also contains /usr/contrib/lib and
10200 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10201 # libtool to hard-code these into programs
10202 ;;
10203
10204cygwin* | mingw* | pw32* | cegcc*)
10205 version_type=windows
10206 shrext_cmds=".dll"
10207 need_version=no
10208 need_lib_prefix=no
10209
10210 case $GCC,$cc_basename in
10211 yes,*)
10212 # gcc
10213 library_names_spec='$libname.dll.a'
10214 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10215 postinstall_cmds='base_file=`basename \${file}`~
10216 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10217 dldir=$destdir/`dirname \$dlpath`~
10218 test -d \$dldir || mkdir -p \$dldir~
10219 $install_prog $dir/$dlname \$dldir/$dlname~
10220 chmod a+x \$dldir/$dlname~
10221 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10222 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10223 fi'
10224 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10225 dlpath=$dir/\$dldll~
10226 $RM \$dlpath'
10227 shlibpath_overrides_runpath=yes
10228
10229 case $host_os in
10230 cygwin*)
10231 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10232 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10233
10234 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10235 ;;
10236 mingw* | cegcc*)
10237 # MinGW DLLs use traditional 'lib' prefix
10238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10239 ;;
10240 pw32*)
10241 # pw32 DLLs use 'pw' prefix rather than 'lib'
10242 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10243 ;;
10244 esac
10245 dynamic_linker='Win32 ld.exe'
10246 ;;
10247
10248 *,cl*)
10249 # Native MSVC
10250 libname_spec='$name'
10251 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10252 library_names_spec='${libname}.dll.lib'
10253
10254 case $build_os in
10255 mingw*)
10256 sys_lib_search_path_spec=
10257 lt_save_ifs=$IFS
10258 IFS=';'
10259 for lt_path in $LIB
10260 do
10261 IFS=$lt_save_ifs
10262 # Let DOS variable expansion print the short 8.3 style file name.
10263 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10264 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10265 done
10266 IFS=$lt_save_ifs
10267 # Convert to MSYS style.
10268 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10269 ;;
10270 cygwin*)
10271 # Convert to unix form, then to dos form, then back to unix form
10272 # but this time dos style (no spaces!) so that the unix form looks
10273 # like /cygdrive/c/PROGRA~1:/cygdr...
10274 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10275 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10276 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10277 ;;
10278 *)
10279 sys_lib_search_path_spec="$LIB"
10280 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10281 # It is most probably a Windows format PATH.
10282 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10283 else
10284 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10285 fi
10286 # FIXME: find the short name or the path components, as spaces are
10287 # common. (e.g. "Program Files" -> "PROGRA~1")
10288 ;;
10289 esac
10290
10291 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10292 postinstall_cmds='base_file=`basename \${file}`~
10293 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10294 dldir=$destdir/`dirname \$dlpath`~
10295 test -d \$dldir || mkdir -p \$dldir~
10296 $install_prog $dir/$dlname \$dldir/$dlname'
10297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10298 dlpath=$dir/\$dldll~
10299 $RM \$dlpath'
10300 shlibpath_overrides_runpath=yes
10301 dynamic_linker='Win32 link.exe'
10302 ;;
10303
10304 *)
10305 # Assume MSVC wrapper
10306 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10307 dynamic_linker='Win32 ld.exe'
10308 ;;
10309 esac
10310 # FIXME: first we should search . and the directory the executable is in
10311 shlibpath_var=PATH
10312 ;;
10313
10314darwin* | rhapsody*)
10315 dynamic_linker="$host_os dyld"
10316 version_type=darwin
10317 need_lib_prefix=no
10318 need_version=no
10319 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10320 soname_spec='${libname}${release}${major}$shared_ext'
10321 shlibpath_overrides_runpath=yes
10322 shlibpath_var=DYLD_LIBRARY_PATH
10323 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10324
10325 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10326 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10327 ;;
10328
10329dgux*)
10330 version_type=linux # correct to gnu/linux during the next big refactor
10331 need_lib_prefix=no
10332 need_version=no
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 shlibpath_var=LD_LIBRARY_PATH
10336 ;;
10337
10338freebsd* | dragonfly*)
10339 # DragonFly does not have aout. When/if they implement a new
10340 # versioning mechanism, adjust this.
10341 if test -x /usr/bin/objformat; then
10342 objformat=`/usr/bin/objformat`
10343 else
10344 case $host_os in
10345 freebsd[23].*) objformat=aout ;;
10346 *) objformat=elf ;;
10347 esac
10348 fi
10349 version_type=freebsd-$objformat
10350 case $version_type in
10351 freebsd-elf*)
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10353 need_version=no
10354 need_lib_prefix=no
10355 ;;
10356 freebsd-*)
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10358 need_version=yes
10359 ;;
10360 esac
10361 shlibpath_var=LD_LIBRARY_PATH
10362 case $host_os in
10363 freebsd2.*)
10364 shlibpath_overrides_runpath=yes
10365 ;;
10366 freebsd3.[01]* | freebsdelf3.[01]*)
10367 shlibpath_overrides_runpath=yes
10368 hardcode_into_libs=yes
10369 ;;
10370 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10371 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10372 shlibpath_overrides_runpath=no
10373 hardcode_into_libs=yes
10374 ;;
10375 *) # from 4.6 on, and DragonFly
10376 shlibpath_overrides_runpath=yes
10377 hardcode_into_libs=yes
10378 ;;
10379 esac
10380 ;;
10381
10382gnu*)
10383 version_type=linux # correct to gnu/linux during the next big refactor
10384 need_lib_prefix=no
10385 need_version=no
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 shlibpath_overrides_runpath=no
10390 hardcode_into_libs=yes
10391 ;;
10392
10393haiku*)
10394 version_type=linux # correct to gnu/linux during the next big refactor
10395 need_lib_prefix=no
10396 need_version=no
10397 dynamic_linker="$host_os runtime_loader"
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 shlibpath_var=LIBRARY_PATH
10401 shlibpath_overrides_runpath=yes
10402 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10403 hardcode_into_libs=yes
10404 ;;
10405
10406hpux9* | hpux10* | hpux11*)
10407 # Give a soname corresponding to the major version so that dld.sl refuses to
10408 # link against other versions.
10409 version_type=sunos
10410 need_lib_prefix=no
10411 need_version=no
10412 case $host_cpu in
10413 ia64*)
10414 shrext_cmds='.so'
10415 hardcode_into_libs=yes
10416 dynamic_linker="$host_os dld.so"
10417 shlibpath_var=LD_LIBRARY_PATH
10418 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 if test "X$HPUX_IA64_MODE" = X32; then
10422 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10423 else
10424 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10425 fi
10426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10427 ;;
10428 hppa*64*)
10429 shrext_cmds='.sl'
10430 hardcode_into_libs=yes
10431 dynamic_linker="$host_os dld.sl"
10432 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10435 soname_spec='${libname}${release}${shared_ext}$major'
10436 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10438 ;;
10439 *)
10440 shrext_cmds='.sl'
10441 dynamic_linker="$host_os dld.sl"
10442 shlibpath_var=SHLIB_PATH
10443 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445 soname_spec='${libname}${release}${shared_ext}$major'
10446 ;;
10447 esac
10448 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10449 postinstall_cmds='chmod 555 $lib'
10450 # or fails outright, so override atomically:
10451 install_override_mode=555
10452 ;;
10453
10454interix[3-9]*)
10455 version_type=linux # correct to gnu/linux during the next big refactor
10456 need_lib_prefix=no
10457 need_version=no
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10461 shlibpath_var=LD_LIBRARY_PATH
10462 shlibpath_overrides_runpath=no
10463 hardcode_into_libs=yes
10464 ;;
10465
10466irix5* | irix6* | nonstopux*)
10467 case $host_os in
10468 nonstopux*) version_type=nonstopux ;;
10469 *)
10470 if test "$lt_cv_prog_gnu_ld" = yes; then
10471 version_type=linux # correct to gnu/linux during the next big refactor
10472 else
10473 version_type=irix
10474 fi ;;
10475 esac
10476 need_lib_prefix=no
10477 need_version=no
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10480 case $host_os in
10481 irix5* | nonstopux*)
10482 libsuff= shlibsuff=
10483 ;;
10484 *)
10485 case $LD in # libtool.m4 will add one of these switches to LD
10486 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10487 libsuff= shlibsuff= libmagic=32-bit;;
10488 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10489 libsuff=32 shlibsuff=N32 libmagic=N32;;
10490 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10491 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10492 *) libsuff= shlibsuff= libmagic=never-match;;
10493 esac
10494 ;;
10495 esac
10496 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10497 shlibpath_overrides_runpath=no
10498 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10499 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10500 hardcode_into_libs=yes
10501 ;;
10502
10503# No shared lib support for Linux oldld, aout, or coff.
10504linux*oldld* | linux*aout* | linux*coff*)
10505 dynamic_linker=no
10506 ;;
10507
10508# This must be glibc/ELF.
10509linux* | k*bsd*-gnu | kopensolaris*-gnu)
10510 version_type=linux # correct to gnu/linux during the next big refactor
10511 need_lib_prefix=no
10512 need_version=no
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10516 shlibpath_var=LD_LIBRARY_PATH
10517 shlibpath_overrides_runpath=no
10518
10519 # Some binutils ld are patched to set DT_RUNPATH
10520 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10521 $as_echo_n "(cached) " >&6
10522else
10523 lt_cv_shlibpath_overrides_runpath=no
10524 save_LDFLAGS=$LDFLAGS
10525 save_libdir=$libdir
10526 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10527 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529/* end confdefs.h. */
10530
10531int
10532main ()
10533{
10534
10535 ;
10536 return 0;
10537}
10538_ACEOF
10539if ac_fn_c_try_link "$LINENO"; then :
10540 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10541 lt_cv_shlibpath_overrides_runpath=yes
10542fi
10543fi
10544rm -f core conftest.err conftest.$ac_objext \
10545 conftest$ac_exeext conftest.$ac_ext
10546 LDFLAGS=$save_LDFLAGS
10547 libdir=$save_libdir
10548
10549fi
10550
10551 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10552
10553 # This implies no fast_install, which is unacceptable.
10554 # Some rework will be needed to allow for fast_install
10555 # before this can be enabled.
10556 hardcode_into_libs=yes
10557
10558 # Add ABI-specific directories to the system library path.
10559 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10560
10561 # Append ld.so.conf contents to the search path
10562 if test -f /etc/ld.so.conf; then
10563 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' ' '`
10564 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10565
10566 fi
10567
10568 # We used to test for /lib/ld.so.1 and disable shared libraries on
10569 # powerpc, because MkLinux only supported shared libraries with the
10570 # GNU dynamic linker. Since this was broken with cross compilers,
10571 # most powerpc-linux boxes support dynamic linking these days and
10572 # people can always --disable-shared, the test was removed, and we
10573 # assume the GNU/Linux dynamic linker is in use.
10574 dynamic_linker='GNU/Linux ld.so'
10575 ;;
10576
10577netbsd*)
10578 version_type=sunos
10579 need_lib_prefix=no
10580 need_version=no
10581 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10584 dynamic_linker='NetBSD (a.out) ld.so'
10585 else
10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10587 soname_spec='${libname}${release}${shared_ext}$major'
10588 dynamic_linker='NetBSD ld.elf_so'
10589 fi
10590 shlibpath_var=LD_LIBRARY_PATH
10591 shlibpath_overrides_runpath=yes
10592 hardcode_into_libs=yes
10593 ;;
10594
10595newsos6)
10596 version_type=linux # correct to gnu/linux during the next big refactor
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 shlibpath_overrides_runpath=yes
10600 ;;
10601
10602*nto* | *qnx*)
10603 version_type=qnx
10604 need_lib_prefix=no
10605 need_version=no
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10607 soname_spec='${libname}${release}${shared_ext}$major'
10608 shlibpath_var=LD_LIBRARY_PATH
10609 shlibpath_overrides_runpath=no
10610 hardcode_into_libs=yes
10611 dynamic_linker='ldqnx.so'
10612 ;;
10613
10614openbsd*)
10615 version_type=sunos
10616 sys_lib_dlsearch_path_spec="/usr/lib"
10617 need_lib_prefix=no
10618 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10619 case $host_os in
10620 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10621 *) need_version=no ;;
10622 esac
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10625 shlibpath_var=LD_LIBRARY_PATH
10626 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10627 case $host_os in
10628 openbsd2.[89] | openbsd2.[89].*)
10629 shlibpath_overrides_runpath=no
10630 ;;
10631 *)
10632 shlibpath_overrides_runpath=yes
10633 ;;
10634 esac
10635 else
10636 shlibpath_overrides_runpath=yes
10637 fi
10638 ;;
10639
10640os2*)
10641 libname_spec='$name'
10642 shrext_cmds=".dll"
10643 need_lib_prefix=no
10644 library_names_spec='$libname${shared_ext} $libname.a'
10645 dynamic_linker='OS/2 ld.exe'
10646 shlibpath_var=LIBPATH
10647 ;;
10648
10649osf3* | osf4* | osf5*)
10650 version_type=osf
10651 need_lib_prefix=no
10652 need_version=no
10653 soname_spec='${libname}${release}${shared_ext}$major'
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10657 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10658 ;;
10659
10660rdos*)
10661 dynamic_linker=no
10662 ;;
10663
10664solaris*)
10665 version_type=linux # correct to gnu/linux during the next big refactor
10666 need_lib_prefix=no
10667 need_version=no
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 shlibpath_var=LD_LIBRARY_PATH
10671 shlibpath_overrides_runpath=yes
10672 hardcode_into_libs=yes
10673 # ldd complains unless libraries are executable
10674 postinstall_cmds='chmod +x $lib'
10675 ;;
10676
10677sunos4*)
10678 version_type=sunos
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10680 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10681 shlibpath_var=LD_LIBRARY_PATH
10682 shlibpath_overrides_runpath=yes
10683 if test "$with_gnu_ld" = yes; then
10684 need_lib_prefix=no
10685 fi
10686 need_version=yes
10687 ;;
10688
10689sysv4 | sysv4.3*)
10690 version_type=linux # correct to gnu/linux during the next big refactor
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692 soname_spec='${libname}${release}${shared_ext}$major'
10693 shlibpath_var=LD_LIBRARY_PATH
10694 case $host_vendor in
10695 sni)
10696 shlibpath_overrides_runpath=no
10697 need_lib_prefix=no
10698 runpath_var=LD_RUN_PATH
10699 ;;
10700 siemens)
10701 need_lib_prefix=no
10702 ;;
10703 motorola)
10704 need_lib_prefix=no
10705 need_version=no
10706 shlibpath_overrides_runpath=no
10707 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10708 ;;
10709 esac
10710 ;;
10711
10712sysv4*MP*)
10713 if test -d /usr/nec ;then
10714 version_type=linux # correct to gnu/linux during the next big refactor
10715 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10716 soname_spec='$libname${shared_ext}.$major'
10717 shlibpath_var=LD_LIBRARY_PATH
10718 fi
10719 ;;
10720
10721sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10722 version_type=freebsd-elf
10723 need_lib_prefix=no
10724 need_version=no
10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10726 soname_spec='${libname}${release}${shared_ext}$major'
10727 shlibpath_var=LD_LIBRARY_PATH
10728 shlibpath_overrides_runpath=yes
10729 hardcode_into_libs=yes
10730 if test "$with_gnu_ld" = yes; then
10731 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10732 else
10733 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10734 case $host_os in
10735 sco3.2v5*)
10736 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10737 ;;
10738 esac
10739 fi
10740 sys_lib_dlsearch_path_spec='/usr/lib'
10741 ;;
10742
10743tpf*)
10744 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10745 version_type=linux # correct to gnu/linux during the next big refactor
10746 need_lib_prefix=no
10747 need_version=no
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 shlibpath_overrides_runpath=no
10751 hardcode_into_libs=yes
10752 ;;
10753
10754uts4*)
10755 version_type=linux # correct to gnu/linux during the next big refactor
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757 soname_spec='${libname}${release}${shared_ext}$major'
10758 shlibpath_var=LD_LIBRARY_PATH
10759 ;;
10760
10761*)
10762 dynamic_linker=no
10763 ;;
10764esac
10765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10766$as_echo "$dynamic_linker" >&6; }
10767test "$dynamic_linker" = no && can_build_shared=no
10768
10769variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10770if test "$GCC" = yes; then
10771 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10772fi
10773
10774if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10775 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10776fi
10777if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10778 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10779fi
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10873$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10874hardcode_action=
10875if test -n "$hardcode_libdir_flag_spec" ||
10876 test -n "$runpath_var" ||
10877 test "X$hardcode_automatic" = "Xyes" ; then
10878
10879 # We can hardcode non-existent directories.
10880 if test "$hardcode_direct" != no &&
10881 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10882 # have to relink, otherwise we might link with an installed library
10883 # when we should be linking with a yet-to-be-installed one
10884 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10885 test "$hardcode_minus_L" != no; then
10886 # Linking always hardcodes the temporary library directory.
10887 hardcode_action=relink
10888 else
10889 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10890 hardcode_action=immediate
10891 fi
10892else
10893 # We cannot hardcode anything, or else we can only hardcode existing
10894 # directories.
10895 hardcode_action=unsupported
10896fi
10897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10898$as_echo "$hardcode_action" >&6; }
10899
10900if test "$hardcode_action" = relink ||
10901 test "$inherit_rpath" = yes; then
10902 # Fast installation is not supported
10903 enable_fast_install=no
10904elif test "$shlibpath_overrides_runpath" = yes ||
10905 test "$enable_shared" = no; then
10906 # Fast installation is not necessary
10907 enable_fast_install=needless
10908fi
10909
10910
10911
10912
10913
10914
10915 if test "x$enable_dlopen" != xyes; then
10916 enable_dlopen=unknown
10917 enable_dlopen_self=unknown
10918 enable_dlopen_self_static=unknown
10919else
10920 lt_cv_dlopen=no
10921 lt_cv_dlopen_libs=
10922
10923 case $host_os in
10924 beos*)
10925 lt_cv_dlopen="load_add_on"
10926 lt_cv_dlopen_libs=
10927 lt_cv_dlopen_self=yes
10928 ;;
10929
10930 mingw* | pw32* | cegcc*)
10931 lt_cv_dlopen="LoadLibrary"
10932 lt_cv_dlopen_libs=
10933 ;;
10934
10935 cygwin*)
10936 lt_cv_dlopen="dlopen"
10937 lt_cv_dlopen_libs=
10938 ;;
10939
10940 darwin*)
10941 # if libdl is installed we need to link against it
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10943$as_echo_n "checking for dlopen in -ldl... " >&6; }
10944if ${ac_cv_lib_dl_dlopen+:} false; then :
10945 $as_echo_n "(cached) " >&6
10946else
10947 ac_check_lib_save_LIBS=$LIBS
10948LIBS="-ldl $LIBS"
10949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950/* end confdefs.h. */
10951
10952/* Override any GCC internal prototype to avoid an error.
10953 Use char because int might match the return type of a GCC
10954 builtin and then its argument prototype would still apply. */
10955#ifdef __cplusplus
10956extern "C"
10957#endif
10958char dlopen ();
10959int
10960main ()
10961{
10962return dlopen ();
10963 ;
10964 return 0;
10965}
10966_ACEOF
10967if ac_fn_c_try_link "$LINENO"; then :
10968 ac_cv_lib_dl_dlopen=yes
10969else
10970 ac_cv_lib_dl_dlopen=no
10971fi
10972rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10974LIBS=$ac_check_lib_save_LIBS
10975fi
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10977$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10978if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10979 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10980else
10981
10982 lt_cv_dlopen="dyld"
10983 lt_cv_dlopen_libs=
10984 lt_cv_dlopen_self=yes
10985
10986fi
10987
10988 ;;
10989
10990 *)
10991 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10992if test "x$ac_cv_func_shl_load" = xyes; then :
10993 lt_cv_dlopen="shl_load"
10994else
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10996$as_echo_n "checking for shl_load in -ldld... " >&6; }
10997if ${ac_cv_lib_dld_shl_load+:} false; then :
10998 $as_echo_n "(cached) " >&6
10999else
11000 ac_check_lib_save_LIBS=$LIBS
11001LIBS="-ldld $LIBS"
11002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003/* end confdefs.h. */
11004
11005/* Override any GCC internal prototype to avoid an error.
11006 Use char because int might match the return type of a GCC
11007 builtin and then its argument prototype would still apply. */
11008#ifdef __cplusplus
11009extern "C"
11010#endif
11011char shl_load ();
11012int
11013main ()
11014{
11015return shl_load ();
11016 ;
11017 return 0;
11018}
11019_ACEOF
11020if ac_fn_c_try_link "$LINENO"; then :
11021 ac_cv_lib_dld_shl_load=yes
11022else
11023 ac_cv_lib_dld_shl_load=no
11024fi
11025rm -f core conftest.err conftest.$ac_objext \
11026 conftest$ac_exeext conftest.$ac_ext
11027LIBS=$ac_check_lib_save_LIBS
11028fi
11029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11030$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11031if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11032 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11033else
11034 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11035if test "x$ac_cv_func_dlopen" = xyes; then :
11036 lt_cv_dlopen="dlopen"
11037else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11039$as_echo_n "checking for dlopen in -ldl... " >&6; }
11040if ${ac_cv_lib_dl_dlopen+:} false; then :
11041 $as_echo_n "(cached) " >&6
11042else
11043 ac_check_lib_save_LIBS=$LIBS
11044LIBS="-ldl $LIBS"
11045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11046/* end confdefs.h. */
11047
11048/* Override any GCC internal prototype to avoid an error.
11049 Use char because int might match the return type of a GCC
11050 builtin and then its argument prototype would still apply. */
11051#ifdef __cplusplus
11052extern "C"
11053#endif
11054char dlopen ();
11055int
11056main ()
11057{
11058return dlopen ();
11059 ;
11060 return 0;
11061}
11062_ACEOF
11063if ac_fn_c_try_link "$LINENO"; then :
11064 ac_cv_lib_dl_dlopen=yes
11065else
11066 ac_cv_lib_dl_dlopen=no
11067fi
11068rm -f core conftest.err conftest.$ac_objext \
11069 conftest$ac_exeext conftest.$ac_ext
11070LIBS=$ac_check_lib_save_LIBS
11071fi
11072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11073$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11074if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11075 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11076else
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11078$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11079if ${ac_cv_lib_svld_dlopen+:} false; then :
11080 $as_echo_n "(cached) " >&6
11081else
11082 ac_check_lib_save_LIBS=$LIBS
11083LIBS="-lsvld $LIBS"
11084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085/* end confdefs.h. */
11086
11087/* Override any GCC internal prototype to avoid an error.
11088 Use char because int might match the return type of a GCC
11089 builtin and then its argument prototype would still apply. */
11090#ifdef __cplusplus
11091extern "C"
11092#endif
11093char dlopen ();
11094int
11095main ()
11096{
11097return dlopen ();
11098 ;
11099 return 0;
11100}
11101_ACEOF
11102if ac_fn_c_try_link "$LINENO"; then :
11103 ac_cv_lib_svld_dlopen=yes
11104else
11105 ac_cv_lib_svld_dlopen=no
11106fi
11107rm -f core conftest.err conftest.$ac_objext \
11108 conftest$ac_exeext conftest.$ac_ext
11109LIBS=$ac_check_lib_save_LIBS
11110fi
11111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11112$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11113if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11114 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11115else
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11117$as_echo_n "checking for dld_link in -ldld... " >&6; }
11118if ${ac_cv_lib_dld_dld_link+:} false; then :
11119 $as_echo_n "(cached) " >&6
11120else
11121 ac_check_lib_save_LIBS=$LIBS
11122LIBS="-ldld $LIBS"
11123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124/* end confdefs.h. */
11125
11126/* Override any GCC internal prototype to avoid an error.
11127 Use char because int might match the return type of a GCC
11128 builtin and then its argument prototype would still apply. */
11129#ifdef __cplusplus
11130extern "C"
11131#endif
11132char dld_link ();
11133int
11134main ()
11135{
11136return dld_link ();
11137 ;
11138 return 0;
11139}
11140_ACEOF
11141if ac_fn_c_try_link "$LINENO"; then :
11142 ac_cv_lib_dld_dld_link=yes
11143else
11144 ac_cv_lib_dld_dld_link=no
11145fi
11146rm -f core conftest.err conftest.$ac_objext \
11147 conftest$ac_exeext conftest.$ac_ext
11148LIBS=$ac_check_lib_save_LIBS
11149fi
11150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11151$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11152if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11153 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11154fi
11155
11156
11157fi
11158
11159
11160fi
11161
11162
11163fi
11164
11165
11166fi
11167
11168
11169fi
11170
11171 ;;
11172 esac
11173
11174 if test "x$lt_cv_dlopen" != xno; then
11175 enable_dlopen=yes
11176 else
11177 enable_dlopen=no
11178 fi
11179
11180 case $lt_cv_dlopen in
11181 dlopen)
11182 save_CPPFLAGS="$CPPFLAGS"
11183 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11184
11185 save_LDFLAGS="$LDFLAGS"
11186 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11187
11188 save_LIBS="$LIBS"
11189 LIBS="$lt_cv_dlopen_libs $LIBS"
11190
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11192$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11193if ${lt_cv_dlopen_self+:} false; then :
11194 $as_echo_n "(cached) " >&6
11195else
11196 if test "$cross_compiling" = yes; then :
11197 lt_cv_dlopen_self=cross
11198else
11199 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11200 lt_status=$lt_dlunknown
11201 cat > conftest.$ac_ext <<_LT_EOF
11202#line $LINENO "configure"
11203#include "confdefs.h"
11204
11205#if HAVE_DLFCN_H
11206#include <dlfcn.h>
11207#endif
11208
11209#include <stdio.h>
11210
11211#ifdef RTLD_GLOBAL
11212# define LT_DLGLOBAL RTLD_GLOBAL
11213#else
11214# ifdef DL_GLOBAL
11215# define LT_DLGLOBAL DL_GLOBAL
11216# else
11217# define LT_DLGLOBAL 0
11218# endif
11219#endif
11220
11221/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11222 find out it does not work in some platform. */
11223#ifndef LT_DLLAZY_OR_NOW
11224# ifdef RTLD_LAZY
11225# define LT_DLLAZY_OR_NOW RTLD_LAZY
11226# else
11227# ifdef DL_LAZY
11228# define LT_DLLAZY_OR_NOW DL_LAZY
11229# else
11230# ifdef RTLD_NOW
11231# define LT_DLLAZY_OR_NOW RTLD_NOW
11232# else
11233# ifdef DL_NOW
11234# define LT_DLLAZY_OR_NOW DL_NOW
11235# else
11236# define LT_DLLAZY_OR_NOW 0
11237# endif
11238# endif
11239# endif
11240# endif
11241#endif
11242
11243/* When -fvisbility=hidden is used, assume the code has been annotated
11244 correspondingly for the symbols needed. */
11245#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11246int fnord () __attribute__((visibility("default")));
11247#endif
11248
11249int fnord () { return 42; }
11250int main ()
11251{
11252 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11253 int status = $lt_dlunknown;
11254
11255 if (self)
11256 {
11257 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11258 else
11259 {
11260 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11261 else puts (dlerror ());
11262 }
11263 /* dlclose (self); */
11264 }
11265 else
11266 puts (dlerror ());
11267
11268 return status;
11269}
11270_LT_EOF
11271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11272 (eval $ac_link) 2>&5
11273 ac_status=$?
11274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11275 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11276 (./conftest; exit; ) >&5 2>/dev/null
11277 lt_status=$?
11278 case x$lt_status in
11279 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11280 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11281 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11282 esac
11283 else :
11284 # compilation failed
11285 lt_cv_dlopen_self=no
11286 fi
11287fi
11288rm -fr conftest*
11289
11290
11291fi
11292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11293$as_echo "$lt_cv_dlopen_self" >&6; }
11294
11295 if test "x$lt_cv_dlopen_self" = xyes; then
11296 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11298$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11299if ${lt_cv_dlopen_self_static+:} false; then :
11300 $as_echo_n "(cached) " >&6
11301else
11302 if test "$cross_compiling" = yes; then :
11303 lt_cv_dlopen_self_static=cross
11304else
11305 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11306 lt_status=$lt_dlunknown
11307 cat > conftest.$ac_ext <<_LT_EOF
11308#line $LINENO "configure"
11309#include "confdefs.h"
11310
11311#if HAVE_DLFCN_H
11312#include <dlfcn.h>
11313#endif
11314
11315#include <stdio.h>
11316
11317#ifdef RTLD_GLOBAL
11318# define LT_DLGLOBAL RTLD_GLOBAL
11319#else
11320# ifdef DL_GLOBAL
11321# define LT_DLGLOBAL DL_GLOBAL
11322# else
11323# define LT_DLGLOBAL 0
11324# endif
11325#endif
11326
11327/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11328 find out it does not work in some platform. */
11329#ifndef LT_DLLAZY_OR_NOW
11330# ifdef RTLD_LAZY
11331# define LT_DLLAZY_OR_NOW RTLD_LAZY
11332# else
11333# ifdef DL_LAZY
11334# define LT_DLLAZY_OR_NOW DL_LAZY
11335# else
11336# ifdef RTLD_NOW
11337# define LT_DLLAZY_OR_NOW RTLD_NOW
11338# else
11339# ifdef DL_NOW
11340# define LT_DLLAZY_OR_NOW DL_NOW
11341# else
11342# define LT_DLLAZY_OR_NOW 0
11343# endif
11344# endif
11345# endif
11346# endif
11347#endif
11348
11349/* When -fvisbility=hidden is used, assume the code has been annotated
11350 correspondingly for the symbols needed. */
11351#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11352int fnord () __attribute__((visibility("default")));
11353#endif
11354
11355int fnord () { return 42; }
11356int main ()
11357{
11358 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11359 int status = $lt_dlunknown;
11360
11361 if (self)
11362 {
11363 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11364 else
11365 {
11366 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11367 else puts (dlerror ());
11368 }
11369 /* dlclose (self); */
11370 }
11371 else
11372 puts (dlerror ());
11373
11374 return status;
11375}
11376_LT_EOF
11377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11378 (eval $ac_link) 2>&5
11379 ac_status=$?
11380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11381 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11382 (./conftest; exit; ) >&5 2>/dev/null
11383 lt_status=$?
11384 case x$lt_status in
11385 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11386 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11387 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11388 esac
11389 else :
11390 # compilation failed
11391 lt_cv_dlopen_self_static=no
11392 fi
11393fi
11394rm -fr conftest*
11395
11396
11397fi
11398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11399$as_echo "$lt_cv_dlopen_self_static" >&6; }
11400 fi
11401
11402 CPPFLAGS="$save_CPPFLAGS"
11403 LDFLAGS="$save_LDFLAGS"
11404 LIBS="$save_LIBS"
11405 ;;
11406 esac
11407
11408 case $lt_cv_dlopen_self in
11409 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11410 *) enable_dlopen_self=unknown ;;
11411 esac
11412
11413 case $lt_cv_dlopen_self_static in
11414 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11415 *) enable_dlopen_self_static=unknown ;;
11416 esac
11417fi
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435striplib=
11436old_striplib=
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11438$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11439if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11440 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11441 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11443$as_echo "yes" >&6; }
11444else
11445# FIXME - insert some real tests, host_os isn't really good enough
11446 case $host_os in
11447 darwin*)
11448 if test -n "$STRIP" ; then
11449 striplib="$STRIP -x"
11450 old_striplib="$STRIP -S"
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11452$as_echo "yes" >&6; }
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455$as_echo "no" >&6; }
11456 fi
11457 ;;
11458 *)
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460$as_echo "no" >&6; }
11461 ;;
11462 esac
11463fi
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476 # Report which library types will actually be built
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11478$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11480$as_echo "$can_build_shared" >&6; }
11481
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11483$as_echo_n "checking whether to build shared libraries... " >&6; }
11484 test "$can_build_shared" = "no" && enable_shared=no
11485
11486 # On AIX, shared libraries and static libraries use the same namespace, and
11487 # are all built from PIC.
11488 case $host_os in
11489 aix3*)
11490 test "$enable_shared" = yes && enable_static=no
11491 if test -n "$RANLIB"; then
11492 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11493 postinstall_cmds='$RANLIB $lib'
11494 fi
11495 ;;
11496
11497 aix[4-9]*)
11498 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11499 test "$enable_shared" = yes && enable_static=no
11500 fi
11501 ;;
11502 esac
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11504$as_echo "$enable_shared" >&6; }
11505
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11507$as_echo_n "checking whether to build static libraries... " >&6; }
11508 # Make sure either enable_shared or enable_static is yes.
11509 test "$enable_shared" = yes || enable_static=yes
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11511$as_echo "$enable_static" >&6; }
11512
11513
11514
11515
11516fi
11517ac_ext=c
11518ac_cpp='$CPP $CPPFLAGS'
11519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11521ac_compiler_gnu=$ac_cv_c_compiler_gnu
11522
11523CC="$lt_save_CC"
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539 ac_config_commands="$ac_config_commands libtool"
11540
11541
11542
11543
11544# Only expand once:
11545
11546
11547if test "x$CC" != xcc; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11549$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11550else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11552$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11553fi
11554set dummy $CC; ac_cc=`$as_echo "$2" |
11555 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11556if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11557 $as_echo_n "(cached) " >&6
11558else
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560/* end confdefs.h. */
11561
11562int
11563main ()
11564{
11565
11566 ;
11567 return 0;
11568}
11569_ACEOF
11570# Make sure it works both with $CC and with simple cc.
11571# We do the test twice because some compilers refuse to overwrite an
11572# existing .o file with -o, though they will create one.
11573ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11574rm -f conftest2.*
11575if { { case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11578esac
11579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11580$as_echo "$ac_try_echo"; } >&5
11581 (eval "$ac_try") 2>&5
11582 ac_status=$?
11583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11584 test $ac_status = 0; } &&
11585 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11588esac
11589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11590$as_echo "$ac_try_echo"; } >&5
11591 (eval "$ac_try") 2>&5
11592 ac_status=$?
11593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11594 test $ac_status = 0; };
11595then
11596 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11597 if test "x$CC" != xcc; then
11598 # Test first that cc exists at all.
11599 if { ac_try='cc -c conftest.$ac_ext >&5'
11600 { { case "(($ac_try" in
11601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11602 *) ac_try_echo=$ac_try;;
11603esac
11604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11605$as_echo "$ac_try_echo"; } >&5
11606 (eval "$ac_try") 2>&5
11607 ac_status=$?
11608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11609 test $ac_status = 0; }; }; then
11610 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11611 rm -f conftest2.*
11612 if { { case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615esac
11616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11617$as_echo "$ac_try_echo"; } >&5
11618 (eval "$ac_try") 2>&5
11619 ac_status=$?
11620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11621 test $ac_status = 0; } &&
11622 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625esac
11626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11627$as_echo "$ac_try_echo"; } >&5
11628 (eval "$ac_try") 2>&5
11629 ac_status=$?
11630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11631 test $ac_status = 0; };
11632 then
11633 # cc works too.
11634 :
11635 else
11636 # cc exists but doesn't like -o.
11637 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11638 fi
11639 fi
11640 fi
11641else
11642 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11643fi
11644rm -f core conftest*
11645
11646fi
11647if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11649$as_echo "yes" >&6; }
11650else
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11652$as_echo "no" >&6; }
11653
11654$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11655
11656fi
11657
11658# FIXME: we rely on the cache variable name because
11659# there is no other way.
11660set dummy $CC
11661am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11662eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11663if test "$am_t" != yes; then
11664 # Losing compiler, so override with the script.
11665 # FIXME: It is wrong to rewrite CC.
11666 # But if we don't then we get into trouble of one sort or another.
11667 # A longer-term fix would be to have automake use am__CC in this case,
11668 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11669 CC="$am_aux_dir/compile $CC"
11670fi
11671
11672
11673
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11675$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11676if ${ac_cv_prog_cc_c99+:} false; then :
11677 $as_echo_n "(cached) " >&6
11678else
11679 ac_cv_prog_cc_c99=no
11680ac_save_CC=$CC
11681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682/* end confdefs.h. */
11683#include <stdarg.h>
11684#include <stdbool.h>
11685#include <stdlib.h>
11686#include <wchar.h>
11687#include <stdio.h>
11688
11689// Check varargs macros. These examples are taken from C99 6.10.3.5.
11690#define debug(...) fprintf (stderr, __VA_ARGS__)
11691#define showlist(...) puts (#__VA_ARGS__)
11692#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11693static void
11694test_varargs_macros (void)
11695{
11696 int x = 1234;
11697 int y = 5678;
11698 debug ("Flag");
11699 debug ("X = %d\n", x);
11700 showlist (The first, second, and third items.);
11701 report (x>y, "x is %d but y is %d", x, y);
11702}
11703
11704// Check long long types.
11705#define BIG64 18446744073709551615ull
11706#define BIG32 4294967295ul
11707#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11708#if !BIG_OK
11709 your preprocessor is broken;
11710#endif
11711#if BIG_OK
11712#else
11713 your preprocessor is broken;
11714#endif
11715static long long int bignum = -9223372036854775807LL;
11716static unsigned long long int ubignum = BIG64;
11717
11718struct incomplete_array
11719{
11720 int datasize;
11721 double data[];
11722};
11723
11724struct named_init {
11725 int number;
11726 const wchar_t *name;
11727 double average;
11728};
11729
11730typedef const char *ccp;
11731
11732static inline int
11733test_restrict (ccp restrict text)
11734{
11735 // See if C++-style comments work.
11736 // Iterate through items via the restricted pointer.
11737 // Also check for declarations in for loops.
11738 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11739 continue;
11740 return 0;
11741}
11742
11743// Check varargs and va_copy.
11744static void
11745test_varargs (const char *format, ...)
11746{
11747 va_list args;
11748 va_start (args, format);
11749 va_list args_copy;
11750 va_copy (args_copy, args);
11751
11752 const char *str;
11753 int number;
11754 float fnumber;
11755
11756 while (*format)
11757 {
11758 switch (*format++)
11759 {
11760 case 's': // string
11761 str = va_arg (args_copy, const char *);
11762 break;
11763 case 'd': // int
11764 number = va_arg (args_copy, int);
11765 break;
11766 case 'f': // float
11767 fnumber = va_arg (args_copy, double);
11768 break;
11769 default:
11770 break;
11771 }
11772 }
11773 va_end (args_copy);
11774 va_end (args);
11775}
11776
11777int
11778main ()
11779{
11780
11781 // Check bool.
11782 _Bool success = false;
11783
11784 // Check restrict.
11785 if (test_restrict ("String literal") == 0)
11786 success = true;
11787 char *restrict newvar = "Another string";
11788
11789 // Check varargs.
11790 test_varargs ("s, d' f .", "string", 65, 34.234);
11791 test_varargs_macros ();
11792
11793 // Check flexible array members.
11794 struct incomplete_array *ia =
11795 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11796 ia->datasize = 10;
11797 for (int i = 0; i < ia->datasize; ++i)
11798 ia->data[i] = i * 1.234;
11799
11800 // Check named initializers.
11801 struct named_init ni = {
11802 .number = 34,
11803 .name = L"Test wide string",
11804 .average = 543.34343,
11805 };
11806
11807 ni.number = 58;
11808
11809 int dynamic_array[ni.number];
11810 dynamic_array[ni.number - 1] = 543;
11811
11812 // work around unused variable warnings
11813 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11814 || dynamic_array[ni.number - 1] != 543);
11815
11816 ;
11817 return 0;
11818}
11819_ACEOF
11820for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11821do
11822 CC="$ac_save_CC $ac_arg"
11823 if ac_fn_c_try_compile "$LINENO"; then :
11824 ac_cv_prog_cc_c99=$ac_arg
11825fi
11826rm -f core conftest.err conftest.$ac_objext
11827 test "x$ac_cv_prog_cc_c99" != "xno" && break
11828done
11829rm -f conftest.$ac_ext
11830CC=$ac_save_CC
11831
11832fi
11833# AC_CACHE_VAL
11834case "x$ac_cv_prog_cc_c99" in
11835 x)
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11837$as_echo "none needed" >&6; } ;;
11838 xno)
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11840$as_echo "unsupported" >&6; } ;;
11841 *)
11842 CC="$CC $ac_cv_prog_cc_c99"
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11844$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11845esac
11846if test "x$ac_cv_prog_cc_c99" != xno; then :
11847
11848fi
11849
11850
11851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11852$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11853if ${ac_cv_c_const+:} false; then :
11854 $as_echo_n "(cached) " >&6
11855else
11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857/* end confdefs.h. */
11858
11859int
11860main ()
11861{
11862/* FIXME: Include the comments suggested by Paul. */
11863#ifndef __cplusplus
11864 /* Ultrix mips cc rejects this. */
11865 typedef int charset[2];
11866 const charset cs;
11867 /* SunOS 4.1.1 cc rejects this. */
11868 char const *const *pcpcc;
11869 char **ppc;
11870 /* NEC SVR4.0.2 mips cc rejects this. */
11871 struct point {int x, y;};
11872 static struct point const zero = {0,0};
11873 /* AIX XL C 1.02.0.0 rejects this.
11874 It does not let you subtract one const X* pointer from another in
11875 an arm of an if-expression whose if-part is not a constant
11876 expression */
11877 const char *g = "string";
11878 pcpcc = &g + (g ? g-g : 0);
11879 /* HPUX 7.0 cc rejects these. */
11880 ++pcpcc;
11881 ppc = (char**) pcpcc;
11882 pcpcc = (char const *const *) ppc;
11883 { /* SCO 3.2v4 cc rejects this. */
11884 char *t;
11885 char const *s = 0 ? (char *) 0 : (char const *) 0;
11886
11887 *t++ = 0;
11888 if (s) return 0;
11889 }
11890 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11891 int x[] = {25, 17};
11892 const int *foo = &x[0];
11893 ++foo;
11894 }
11895 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11896 typedef const int *iptr;
11897 iptr p = 0;
11898 ++p;
11899 }
11900 { /* AIX XL C 1.02.0.0 rejects this saying
11901 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11902 struct s { int j; const int *ap[3]; };
11903 struct s *b; b->j = 5;
11904 }
11905 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11906 const int foo = 10;
11907 if (!foo) return 0;
11908 }
11909 return !cs[0] && !zero.x;
11910#endif
11911
11912 ;
11913 return 0;
11914}
11915_ACEOF
11916if ac_fn_c_try_compile "$LINENO"; then :
11917 ac_cv_c_const=yes
11918else
11919 ac_cv_c_const=no
11920fi
11921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11922fi
11923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11924$as_echo "$ac_cv_c_const" >&6; }
11925if test $ac_cv_c_const = no; then
11926
11927$as_echo "#define const /**/" >>confdefs.h
11928
11929fi
11930
11931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11932$as_echo_n "checking for inline... " >&6; }
11933if ${ac_cv_c_inline+:} false; then :
11934 $as_echo_n "(cached) " >&6
11935else
11936 ac_cv_c_inline=no
11937for ac_kw in inline __inline__ __inline; do
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939/* end confdefs.h. */
11940#ifndef __cplusplus
11941typedef int foo_t;
11942static $ac_kw foo_t static_foo () {return 0; }
11943$ac_kw foo_t foo () {return 0; }
11944#endif
11945
11946_ACEOF
11947if ac_fn_c_try_compile "$LINENO"; then :
11948 ac_cv_c_inline=$ac_kw
11949fi
11950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11951 test "$ac_cv_c_inline" != no && break
11952done
11953
11954fi
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11956$as_echo "$ac_cv_c_inline" >&6; }
11957
11958case $ac_cv_c_inline in
11959 inline | yes) ;;
11960 *)
11961 case $ac_cv_c_inline in
11962 no) ac_val=;;
11963 *) ac_val=$ac_cv_c_inline;;
11964 esac
11965 cat >>confdefs.h <<_ACEOF
11966#ifndef __cplusplus
11967#define inline $ac_val
11968#endif
11969_ACEOF
11970 ;;
11971esac
11972
11973
11974#Use a hacked up version of autoconf's AC_C_RESTRICT because it's not
11975#strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3)
11976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
11977$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
11978if ${ac_cv_c_restrict+:} false; then :
11979 $as_echo_n "(cached) " >&6
11980else
11981 ac_cv_c_restrict=no
11982 # The order here caters to the fact that C++ does not require restrict.
11983 for ac_kw in __restrict __restrict__ _Restrict restrict; do
11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985/* end confdefs.h. */
11986typedef int * int_ptr;
11987 int foo (int_ptr $ac_kw ip, int * $ac_kw baz[]) {
11988 return ip[0];
11989 }
11990int
11991main ()
11992{
11993int s[1];
11994 int * $ac_kw t = s;
11995 t[0] = 0;
11996 return foo(t, (void *)0)
11997 ;
11998 return 0;
11999}
12000_ACEOF
12001if ac_fn_c_try_compile "$LINENO"; then :
12002 ac_cv_c_restrict=$ac_kw
12003fi
12004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12005 test "$ac_cv_c_restrict" != no && break
12006 done
12007
12008fi
12009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12010$as_echo "$ac_cv_c_restrict" >&6; }
12011
12012 case $ac_cv_c_restrict in
12013 restrict) ;;
12014 no) $as_echo "#define restrict /**/" >>confdefs.h
12015 ;;
12016 *) cat >>confdefs.h <<_ACEOF
12017#define restrict $ac_cv_c_restrict
12018_ACEOF
12019 ;;
12020 esac
12021
12022
12023$as_echo "#define OPUS_BUILD /**/" >>confdefs.h
12024
12025
12026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variable-size arrays" >&5
12027$as_echo_n "checking for C99 variable-size arrays... " >&6; }
12028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12029/* end confdefs.h. */
12030
12031int
12032main ()
12033{
12034static int x; char a[++x]; a[sizeof a - 1] = 0; int N; return a[0];
12035 ;
12036 return 0;
12037}
12038_ACEOF
12039if ac_fn_c_try_compile "$LINENO"; then :
12040 has_var_arrays=yes;
12041$as_echo "#define VAR_ARRAYS /**/" >>confdefs.h
12042
12043
12044else
12045 has_var_arrays=no
12046
12047fi
12048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_var_arrays" >&5
12050$as_echo "$has_var_arrays" >&6; }
12051
12052for ac_header in alloca.h getopt.h
12053do :
12054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12055ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12056if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12057 cat >>confdefs.h <<_ACEOF
12058#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12059_ACEOF
12060
12061fi
12062
12063done
12064
12065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12066$as_echo_n "checking for alloca... " >&6; }
12067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068/* end confdefs.h. */
12069#include <alloca.h>
12070int
12071main ()
12072{
12073
12074int foo=10;
12075int *array = alloca(foo);
12076
12077 ;
12078 return 0;
12079}
12080_ACEOF
12081if ac_fn_c_try_compile "$LINENO"; then :
12082
12083has_alloca=yes;
12084if test x$has_var_arrays = "xno" ; then
12085
12086$as_echo "#define USE_ALLOCA /**/" >>confdefs.h
12087
12088fi
12089
12090else
12091 has_alloca=no
12092
12093fi
12094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_alloca" >&5
12096$as_echo "$has_alloca" >&6; }
12097
12098ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
12099if test "x$ac_cv_func_exp" = xyes; then :
12100 fp_libm_not_needed=yes;LIBM=
12101else
12102 fp_libm_not_needed=dunno
12103fi
12104
12105if test x"$fp_libm_not_needed" = xdunno; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
12107$as_echo_n "checking for exp in -lm... " >&6; }
12108if ${ac_cv_lib_m_exp+:} false; then :
12109 $as_echo_n "(cached) " >&6
12110else
12111 ac_check_lib_save_LIBS=$LIBS
12112LIBS="-lm $LIBS"
12113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114/* end confdefs.h. */
12115
12116/* Override any GCC internal prototype to avoid an error.
12117 Use char because int might match the return type of a GCC
12118 builtin and then its argument prototype would still apply. */
12119#ifdef __cplusplus
12120extern "C"
12121#endif
12122char exp ();
12123int
12124main ()
12125{
12126return exp ();
12127 ;
12128 return 0;
12129}
12130_ACEOF
12131if ac_fn_c_try_link "$LINENO"; then :
12132 ac_cv_lib_m_exp=yes
12133else
12134 ac_cv_lib_m_exp=no
12135fi
12136rm -f core conftest.err conftest.$ac_objext \
12137 conftest$ac_exeext conftest.$ac_ext
12138LIBS=$ac_check_lib_save_LIBS
12139fi
12140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
12141$as_echo "$ac_cv_lib_m_exp" >&6; }
12142if test "x$ac_cv_lib_m_exp" = xyes; then :
12143 LIBS="-lm $LIBS"; LIBM="-lm"
12144else
12145 LIBM=
12146fi
12147
12148fi
12149
12150
12151has_float_approx=no
12152#case "$host_cpu" in
12153#i[[3456]]86 | x86_64 | powerpc64 | powerpc32 | ia64)
12154# has_float_approx=yes
12155# ;;
12156#esac
12157
12158ac_enable_fixed="no";
12159ac_enable_float="yes";
12160# Check whether --enable-fixed-point was given.
12161if test "${enable_fixed_point+set}" = set; then :
12162 enableval=$enable_fixed_point; if test "$enableval" = yes; then
12163 ac_enable_fixed="yes";
12164 ac_enable_float="no";
12165
12166$as_echo "#define FIXED_POINT 1" >>confdefs.h
12167
12168fi
12169fi
12170
12171
12172ac_enable_fixed_debug="no"
12173# Check whether --enable-fixed-point-debug was given.
12174if test "${enable_fixed_point_debug+set}" = set; then :
12175 enableval=$enable_fixed_point_debug; if test "$enableval" = yes; then
12176 ac_enable_fixed_debug="yes"
12177
12178$as_echo "#define FIXED_DEBUG /**/" >>confdefs.h
12179
12180fi
12181fi
12182
12183
12184ac_enable_custom_modes="no"
12185# Check whether --enable-custom-modes was given.
12186if test "${enable_custom_modes+set}" = set; then :
12187 enableval=$enable_custom_modes; if test "$enableval" = yes; then
12188 ac_enable_custom_modes="yes"
12189
12190$as_echo "#define CUSTOM_MODES /**/" >>confdefs.h
12191
12192fi
12193fi
12194
12195
12196float_approx=$has_float_approx
12197# Check whether --enable-float-approx was given.
12198if test "${enable_float_approx+set}" = set; then :
12199 enableval=$enable_float_approx; if test "$enableval" = yes; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Floating point approximations are not supported on all platforms." >&5
12201$as_echo "$as_me: WARNING: Floating point approximations are not supported on all platforms." >&2;}
12202 float_approx=yes
12203 else
12204 float_approx=no
12205 fi
12206else
12207 float_approx=$has_float_approx
12208fi
12209
12210
12211if test "x${float_approx}" = "xyes"; then
12212
12213$as_echo "#define FLOAT_APPROX /**/" >>confdefs.h
12214
12215fi
12216
12217ac_enable_assertions="no"
12218# Check whether --enable-assertions was given.
12219if test "${enable_assertions+set}" = set; then :
12220 enableval=$enable_assertions; if test "$enableval" = yes; then
12221 ac_enable_assertions="yes"
12222
12223$as_echo "#define ENABLE_ASSERTIONS /**/" >>confdefs.h
12224
12225fi
12226fi
12227
12228
12229ac_enable_fuzzing="no"
12230# Check whether --enable-fuzzing was given.
12231if test "${enable_fuzzing+set}" = set; then :
12232 enableval=$enable_fuzzing; if test "$enableval" = yes; then
12233 ac_enable_fuzzing="yes"
12234
12235$as_echo "#define FUZZING /**/" >>confdefs.h
12236
12237fi
12238fi
12239
12240
12241ac_enable_doc="yes"
12242# Check whether --enable-doc was given.
12243if test "${enable_doc+set}" = set; then :
12244 enableval=$enable_doc; ac_enable_doc=$enableval
12245fi
12246
12247# Extract the first word of "doxygen", so it can be a program name with args.
12248set dummy doxygen; ac_word=$2
12249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12250$as_echo_n "checking for $ac_word... " >&6; }
12251if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
12252 $as_echo_n "(cached) " >&6
12253else
12254 if test -n "$HAVE_DOXYGEN"; then
12255 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
12256else
12257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258for as_dir in $PATH
12259do
12260 IFS=$as_save_IFS
12261 test -z "$as_dir" && as_dir=.
12262 for ac_exec_ext in '' $ac_executable_extensions; do
12263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12264 ac_cv_prog_HAVE_DOXYGEN="yes"
12265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12266 break 2
12267 fi
12268done
12269 done
12270IFS=$as_save_IFS
12271
12272 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
12273fi
12274fi
12275HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
12276if test -n "$HAVE_DOXYGEN"; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
12278$as_echo "$HAVE_DOXYGEN" >&6; }
12279else
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281$as_echo "no" >&6; }
12282fi
12283
12284
12285if test "$HAVE_DOXYGEN" != "yes" -o "$ac_enable_doc" != "yes"; then
12286 HAVE_DOXYGEN="false"
12287 ac_enable_doc="no"
12288fi
12289 if test $HAVE_DOXYGEN = yes; then
12290 HAVE_DOXYGEN_TRUE=
12291 HAVE_DOXYGEN_FALSE='#'
12292else
12293 HAVE_DOXYGEN_TRUE='#'
12294 HAVE_DOXYGEN_FALSE=
12295fi
12296
12297
12298saved_CFLAGS="$CFLAGS"
12299CFLAGS="$CFLAGS -fvisibility=hidden"
12300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fvisibility=hidden" >&5
12301$as_echo_n "checking if ${CC} supports -fvisibility=hidden... " >&6; }
12302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303/* end confdefs.h. */
12304char foo;
12305_ACEOF
12306if ac_fn_c_try_compile "$LINENO"; then :
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12308$as_echo "yes" >&6; }
12309 SYMBOL_VISIBILITY="-fvisibility=hidden"
12310else
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312$as_echo "no" >&6; }
12313fi
12314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12315CFLAGS="$saved_CFLAGS $SYMBOL_VISIBILITY"
12316
12317
12318CFLAGS="$CFLAGS -W"
12319
12320saved_CFLAGS="$CFLAGS"
12321CFLAGS="$CFLAGS -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes"
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes" >&5
12323$as_echo_n "checking if ${CC} supports -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes... " >&6; }
12324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325/* end confdefs.h. */
12326char foo;
12327_ACEOF
12328if ac_fn_c_try_compile "$LINENO"; then :
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12330$as_echo "yes" >&6; }
12331 EXTRA_WARNS="-Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes"
12332else
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334$as_echo "no" >&6; }
12335fi
12336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12337CFLAGS="$saved_CFLAGS $EXTRA_WARNS"
12338
12339for ac_func in lrintf
12340do :
12341 ac_fn_c_check_func "$LINENO" "lrintf" "ac_cv_func_lrintf"
12342if test "x$ac_cv_func_lrintf" = xyes; then :
12343 cat >>confdefs.h <<_ACEOF
12344#define HAVE_LRINTF 1
12345_ACEOF
12346
12347fi
12348done
12349
12350for ac_func in lrint
12351do :
12352 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
12353if test "x$ac_cv_func_lrint" = xyes; then :
12354 cat >>confdefs.h <<_ACEOF
12355#define HAVE_LRINT 1
12356_ACEOF
12357
12358fi
12359done
12360
12361for ac_func in __malloc_hook
12362do :
12363 ac_fn_c_check_func "$LINENO" "__malloc_hook" "ac_cv_func___malloc_hook"
12364if test "x$ac_cv_func___malloc_hook" = xyes; then :
12365 cat >>confdefs.h <<_ACEOF
12366#define HAVE___MALLOC_HOOK 1
12367_ACEOF
12368
12369fi
12370done
12371
12372
12373# The cast to long int works around a bug in the HP C Compiler
12374# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12375# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12376# This bug is HP SR number 8606223364.
12377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12378$as_echo_n "checking size of short... " >&6; }
12379if ${ac_cv_sizeof_short+:} false; then :
12380 $as_echo_n "(cached) " >&6
12381else
12382 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12383
12384else
12385 if test "$ac_cv_type_short" = yes; then
12386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12388as_fn_error 77 "cannot compute sizeof (short)
12389See \`config.log' for more details" "$LINENO" 5; }
12390 else
12391 ac_cv_sizeof_short=0
12392 fi
12393fi
12394
12395fi
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12397$as_echo "$ac_cv_sizeof_short" >&6; }
12398
12399
12400
12401cat >>confdefs.h <<_ACEOF
12402#define SIZEOF_SHORT $ac_cv_sizeof_short
12403_ACEOF
12404
12405
12406# The cast to long int works around a bug in the HP C Compiler
12407# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12408# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12409# This bug is HP SR number 8606223364.
12410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12411$as_echo_n "checking size of int... " >&6; }
12412if ${ac_cv_sizeof_int+:} false; then :
12413 $as_echo_n "(cached) " >&6
12414else
12415 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12416
12417else
12418 if test "$ac_cv_type_int" = yes; then
12419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12421as_fn_error 77 "cannot compute sizeof (int)
12422See \`config.log' for more details" "$LINENO" 5; }
12423 else
12424 ac_cv_sizeof_int=0
12425 fi
12426fi
12427
12428fi
12429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12430$as_echo "$ac_cv_sizeof_int" >&6; }
12431
12432
12433
12434cat >>confdefs.h <<_ACEOF
12435#define SIZEOF_INT $ac_cv_sizeof_int
12436_ACEOF
12437
12438
12439# The cast to long int works around a bug in the HP C Compiler
12440# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12441# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12442# This bug is HP SR number 8606223364.
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12444$as_echo_n "checking size of long... " >&6; }
12445if ${ac_cv_sizeof_long+:} false; then :
12446 $as_echo_n "(cached) " >&6
12447else
12448 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12449
12450else
12451 if test "$ac_cv_type_long" = yes; then
12452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12454as_fn_error 77 "cannot compute sizeof (long)
12455See \`config.log' for more details" "$LINENO" 5; }
12456 else
12457 ac_cv_sizeof_long=0
12458 fi
12459fi
12460
12461fi
12462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12463$as_echo "$ac_cv_sizeof_long" >&6; }
12464
12465
12466
12467cat >>confdefs.h <<_ACEOF
12468#define SIZEOF_LONG $ac_cv_sizeof_long
12469_ACEOF
12470
12471
12472# The cast to long int works around a bug in the HP C Compiler
12473# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12474# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12475# This bug is HP SR number 8606223364.
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12477$as_echo_n "checking size of long long... " >&6; }
12478if ${ac_cv_sizeof_long_long+:} false; then :
12479 $as_echo_n "(cached) " >&6
12480else
12481 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12482
12483else
12484 if test "$ac_cv_type_long_long" = yes; then
12485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12487as_fn_error 77 "cannot compute sizeof (long long)
12488See \`config.log' for more details" "$LINENO" 5; }
12489 else
12490 ac_cv_sizeof_long_long=0
12491 fi
12492fi
12493
12494fi
12495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12496$as_echo "$ac_cv_sizeof_long_long" >&6; }
12497
12498
12499
12500cat >>confdefs.h <<_ACEOF
12501#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12502_ACEOF
12503
12504
12505
12506if test x$has_char16 = "xyes" ; then
12507 case 1 in
12508 $ac_cv_sizeof_short) SIZE16="short";;
12509 $ac_cv_sizeof_int) SIZE16="int";;
12510 esac
12511else
12512 case 2 in
12513 $ac_cv_sizeof_short) SIZE16="short";;
12514 $ac_cv_sizeof_int) SIZE16="int";;
12515 esac
12516fi
12517
12518if test x$has_char16 = "xyes" ; then
12519 case 2 in
12520 $ac_cv_sizeof_int) SIZE32="int";;
12521 $ac_cv_sizeof_long) SIZE32="long";;
12522 $ac_cv_sizeof_short) SIZE32="short";;
12523 esac
12524else
12525 case 4 in
12526 $ac_cv_sizeof_int) SIZE32="int";;
12527 $ac_cv_sizeof_long) SIZE32="long";;
12528 $ac_cv_sizeof_short) SIZE32="short";;
12529 esac
12530fi
12531
12532
12533
12534
12535 if test x$ac_enable_fixed = xyes; then
12536 FIXED_POINT_TRUE=
12537 FIXED_POINT_FALSE='#'
12538else
12539 FIXED_POINT_TRUE='#'
12540 FIXED_POINT_FALSE=
12541fi
12542
12543 if test x$ac_enable_custom_modes = xyes; then
12544 CUSTOM_MODES_TRUE=
12545 CUSTOM_MODES_FALSE='#'
12546else
12547 CUSTOM_MODES_TRUE='#'
12548 CUSTOM_MODES_FALSE=
12549fi
12550
12551
12552if test x$ac_enable_float = xyes; then
12553 PC_BUILD="floating-point"
12554 PC_LIBM=$LIBM
12555else
12556 PC_BUILD="fixed-point"
12557 PC_LIBM=
12558fi
12559if test x$ac_enable_custom_modes = xyes; then
12560 PC_BUILD="${PC_BUILD}, custom modes"
12561 PC_LIBM=$LIBM
12562fi
12563
12564
12565
12566
12567ac_config_files="$ac_config_files Makefile opus.pc opus-uninstalled.pc doc/Makefile doc/Doxyfile"
12568
12569ac_config_headers="$ac_config_headers config.h"
12570
12571
12572cat >confcache <<\_ACEOF
12573# This file is a shell script that caches the results of configure
12574# tests run on this system so they can be shared between configure
12575# scripts and configure runs, see configure's option --config-cache.
12576# It is not useful on other systems. If it contains results you don't
12577# want to keep, you may remove or edit it.
12578#
12579# config.status only pays attention to the cache file if you give it
12580# the --recheck option to rerun configure.
12581#
12582# `ac_cv_env_foo' variables (set or unset) will be overridden when
12583# loading this file, other *unset* `ac_cv_foo' will be assigned the
12584# following values.
12585
12586_ACEOF
12587
12588# The following way of writing the cache mishandles newlines in values,
12589# but we know of no workaround that is simple, portable, and efficient.
12590# So, we kill variables containing newlines.
12591# Ultrix sh set writes to stderr and can't be redirected directly,
12592# and sets the high bit in the cache file unless we assign to the vars.
12593(
12594 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12595 eval ac_val=\$$ac_var
12596 case $ac_val in #(
12597 *${as_nl}*)
12598 case $ac_var in #(
12599 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12600$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12601 esac
12602 case $ac_var in #(
12603 _ | IFS | as_nl) ;; #(
12604 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12605 *) { eval $ac_var=; unset $ac_var;} ;;
12606 esac ;;
12607 esac
12608 done
12609
12610 (set) 2>&1 |
12611 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12612 *${as_nl}ac_space=\ *)
12613 # `set' does not quote correctly, so add quotes: double-quote
12614 # substitution turns \\\\ into \\, and sed turns \\ into \.
12615 sed -n \
12616 "s/'/'\\\\''/g;
12617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12618 ;; #(
12619 *)
12620 # `set' quotes correctly as required by POSIX, so do not add quotes.
12621 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12622 ;;
12623 esac |
12624 sort
12625) |
12626 sed '
12627 /^ac_cv_env_/b end
12628 t clear
12629 :clear
12630 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12631 t end
12632 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12633 :end' >>confcache
12634if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12635 if test -w "$cache_file"; then
12636 if test "x$cache_file" != "x/dev/null"; then
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12638$as_echo "$as_me: updating cache $cache_file" >&6;}
12639 if test ! -f "$cache_file" || test -h "$cache_file"; then
12640 cat confcache >"$cache_file"
12641 else
12642 case $cache_file in #(
12643 */* | ?:*)
12644 mv -f confcache "$cache_file"$$ &&
12645 mv -f "$cache_file"$$ "$cache_file" ;; #(
12646 *)
12647 mv -f confcache "$cache_file" ;;
12648 esac
12649 fi
12650 fi
12651 else
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12653$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12654 fi
12655fi
12656rm -f confcache
12657
12658test "x$prefix" = xNONE && prefix=$ac_default_prefix
12659# Let make expand exec_prefix.
12660test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12661
12662DEFS=-DHAVE_CONFIG_H
12663
12664ac_libobjs=
12665ac_ltlibobjs=
12666U=
12667for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12668 # 1. Remove the extension, and $U if already installed.
12669 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12670 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12671 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12672 # will be set to the directory where LIBOBJS objects are built.
12673 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12674 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12675done
12676LIBOBJS=$ac_libobjs
12677
12678LTLIBOBJS=$ac_ltlibobjs
12679
12680
12681 if test -n "$EXEEXT"; then
12682 am__EXEEXT_TRUE=
12683 am__EXEEXT_FALSE='#'
12684else
12685 am__EXEEXT_TRUE='#'
12686 am__EXEEXT_FALSE=
12687fi
12688
12689if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12690 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12691Usually this means the macro was only invoked conditionally." "$LINENO" 5
12692fi
12693if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12694 as_fn_error $? "conditional \"AMDEP\" was never defined.
12695Usually this means the macro was only invoked conditionally." "$LINENO" 5
12696fi
12697if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12698 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12699Usually this means the macro was only invoked conditionally." "$LINENO" 5
12700fi
12701if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
12702 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
12703Usually this means the macro was only invoked conditionally." "$LINENO" 5
12704fi
12705if test -z "${FIXED_POINT_TRUE}" && test -z "${FIXED_POINT_FALSE}"; then
12706 as_fn_error $? "conditional \"FIXED_POINT\" was never defined.
12707Usually this means the macro was only invoked conditionally." "$LINENO" 5
12708fi
12709if test -z "${CUSTOM_MODES_TRUE}" && test -z "${CUSTOM_MODES_FALSE}"; then
12710 as_fn_error $? "conditional \"CUSTOM_MODES\" was never defined.
12711Usually this means the macro was only invoked conditionally." "$LINENO" 5
12712fi
12713
12714: "${CONFIG_STATUS=./config.status}"
12715ac_write_fail=0
12716ac_clean_files_save=$ac_clean_files
12717ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12718{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12719$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12720as_write_fail=0
12721cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12722#! $SHELL
12723# Generated by $as_me.
12724# Run this file to recreate the current configuration.
12725# Compiler output produced by configure, useful for debugging
12726# configure, is in config.log if it exists.
12727
12728debug=false
12729ac_cs_recheck=false
12730ac_cs_silent=false
12731
12732SHELL=\${CONFIG_SHELL-$SHELL}
12733export SHELL
12734_ASEOF
12735cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12736## -------------------- ##
12737## M4sh Initialization. ##
12738## -------------------- ##
12739
12740# Be more Bourne compatible
12741DUALCASE=1; export DUALCASE # for MKS sh
12742if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12743 emulate sh
12744 NULLCMD=:
12745 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12746 # is contrary to our usage. Disable this feature.
12747 alias -g '${1+"$@"}'='"$@"'
12748 setopt NO_GLOB_SUBST
12749else
12750 case `(set -o) 2>/dev/null` in #(
12751 *posix*) :
12752 set -o posix ;; #(
12753 *) :
12754 ;;
12755esac
12756fi
12757
12758
12759as_nl='
12760'
12761export as_nl
12762# Printing a long string crashes Solaris 7 /usr/bin/printf.
12763as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12764as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12765as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12766# Prefer a ksh shell builtin over an external printf program on Solaris,
12767# but without wasting forks for bash or zsh.
12768if test -z "$BASH_VERSION$ZSH_VERSION" \
12769 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12770 as_echo='print -r --'
12771 as_echo_n='print -rn --'
12772elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12773 as_echo='printf %s\n'
12774 as_echo_n='printf %s'
12775else
12776 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12777 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12778 as_echo_n='/usr/ucb/echo -n'
12779 else
12780 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12781 as_echo_n_body='eval
12782 arg=$1;
12783 case $arg in #(
12784 *"$as_nl"*)
12785 expr "X$arg" : "X\\(.*\\)$as_nl";
12786 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12787 esac;
12788 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12789 '
12790 export as_echo_n_body
12791 as_echo_n='sh -c $as_echo_n_body as_echo'
12792 fi
12793 export as_echo_body
12794 as_echo='sh -c $as_echo_body as_echo'
12795fi
12796
12797# The user is always right.
12798if test "${PATH_SEPARATOR+set}" != set; then
12799 PATH_SEPARATOR=:
12800 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12801 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12802 PATH_SEPARATOR=';'
12803 }
12804fi
12805
12806
12807# IFS
12808# We need space, tab and new line, in precisely that order. Quoting is
12809# there to prevent editors from complaining about space-tab.
12810# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12811# splitting by setting IFS to empty value.)
12812IFS=" "" $as_nl"
12813
12814# Find who we are. Look in the path if we contain no directory separator.
12815as_myself=
12816case $0 in #((
12817 *[\\/]* ) as_myself=$0 ;;
12818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819for as_dir in $PATH
12820do
12821 IFS=$as_save_IFS
12822 test -z "$as_dir" && as_dir=.
12823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12824 done
12825IFS=$as_save_IFS
12826
12827 ;;
12828esac
12829# We did not find ourselves, most probably we were run as `sh COMMAND'
12830# in which case we are not to be found in the path.
12831if test "x$as_myself" = x; then
12832 as_myself=$0
12833fi
12834if test ! -f "$as_myself"; then
12835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12836 exit 1
12837fi
12838
12839# Unset variables that we do not need and which cause bugs (e.g. in
12840# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12841# suppresses any "Segmentation fault" message there. '((' could
12842# trigger a bug in pdksh 5.2.14.
12843for as_var in BASH_ENV ENV MAIL MAILPATH
12844do eval test x\${$as_var+set} = xset \
12845 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12846done
12847PS1='$ '
12848PS2='> '
12849PS4='+ '
12850
12851# NLS nuisances.
12852LC_ALL=C
12853export LC_ALL
12854LANGUAGE=C
12855export LANGUAGE
12856
12857# CDPATH.
12858(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12859
12860
12861# as_fn_error STATUS ERROR [LINENO LOG_FD]
12862# ----------------------------------------
12863# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12864# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12865# script with STATUS, using 1 if that was 0.
12866as_fn_error ()
12867{
12868 as_status=$1; test $as_status -eq 0 && as_status=1
12869 if test "$4"; then
12870 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12871 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12872 fi
12873 $as_echo "$as_me: error: $2" >&2
12874 as_fn_exit $as_status
12875} # as_fn_error
12876
12877
12878# as_fn_set_status STATUS
12879# -----------------------
12880# Set $? to STATUS, without forking.
12881as_fn_set_status ()
12882{
12883 return $1
12884} # as_fn_set_status
12885
12886# as_fn_exit STATUS
12887# -----------------
12888# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12889as_fn_exit ()
12890{
12891 set +e
12892 as_fn_set_status $1
12893 exit $1
12894} # as_fn_exit
12895
12896# as_fn_unset VAR
12897# ---------------
12898# Portably unset VAR.
12899as_fn_unset ()
12900{
12901 { eval $1=; unset $1;}
12902}
12903as_unset=as_fn_unset
12904# as_fn_append VAR VALUE
12905# ----------------------
12906# Append the text in VALUE to the end of the definition contained in VAR. Take
12907# advantage of any shell optimizations that allow amortized linear growth over
12908# repeated appends, instead of the typical quadratic growth present in naive
12909# implementations.
12910if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12911 eval 'as_fn_append ()
12912 {
12913 eval $1+=\$2
12914 }'
12915else
12916 as_fn_append ()
12917 {
12918 eval $1=\$$1\$2
12919 }
12920fi # as_fn_append
12921
12922# as_fn_arith ARG...
12923# ------------------
12924# Perform arithmetic evaluation on the ARGs, and store the result in the
12925# global $as_val. Take advantage of shells that can avoid forks. The arguments
12926# must be portable across $(()) and expr.
12927if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12928 eval 'as_fn_arith ()
12929 {
12930 as_val=$(( $* ))
12931 }'
12932else
12933 as_fn_arith ()
12934 {
12935 as_val=`expr "$@" || test $? -eq 1`
12936 }
12937fi # as_fn_arith
12938
12939
12940if expr a : '\(a\)' >/dev/null 2>&1 &&
12941 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12942 as_expr=expr
12943else
12944 as_expr=false
12945fi
12946
12947if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12948 as_basename=basename
12949else
12950 as_basename=false
12951fi
12952
12953if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12954 as_dirname=dirname
12955else
12956 as_dirname=false
12957fi
12958
12959as_me=`$as_basename -- "$0" ||
12960$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12961 X"$0" : 'X\(//\)$' \| \
12962 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12963$as_echo X/"$0" |
12964 sed '/^.*\/\([^/][^/]*\)\/*$/{
12965 s//\1/
12966 q
12967 }
12968 /^X\/\(\/\/\)$/{
12969 s//\1/
12970 q
12971 }
12972 /^X\/\(\/\).*/{
12973 s//\1/
12974 q
12975 }
12976 s/.*/./; q'`
12977
12978# Avoid depending upon Character Ranges.
12979as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12980as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12981as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12982as_cr_digits='0123456789'
12983as_cr_alnum=$as_cr_Letters$as_cr_digits
12984
12985ECHO_C= ECHO_N= ECHO_T=
12986case `echo -n x` in #(((((
12987-n*)
12988 case `echo 'xy\c'` in
12989 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12990 xy) ECHO_C='\c';;
12991 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12992 ECHO_T=' ';;
12993 esac;;
12994*)
12995 ECHO_N='-n';;
12996esac
12997
12998rm -f conf$$ conf$$.exe conf$$.file
12999if test -d conf$$.dir; then
13000 rm -f conf$$.dir/conf$$.file
13001else
13002 rm -f conf$$.dir
13003 mkdir conf$$.dir 2>/dev/null
13004fi
13005if (echo >conf$$.file) 2>/dev/null; then
13006 if ln -s conf$$.file conf$$ 2>/dev/null; then
13007 as_ln_s='ln -s'
13008 # ... but there are two gotchas:
13009 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13010 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13011 # In both cases, we have to default to `cp -p'.
13012 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13013 as_ln_s='cp -p'
13014 elif ln conf$$.file conf$$ 2>/dev/null; then
13015 as_ln_s=ln
13016 else
13017 as_ln_s='cp -p'
13018 fi
13019else
13020 as_ln_s='cp -p'
13021fi
13022rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13023rmdir conf$$.dir 2>/dev/null
13024
13025
13026# as_fn_mkdir_p
13027# -------------
13028# Create "$as_dir" as a directory, including parents if necessary.
13029as_fn_mkdir_p ()
13030{
13031
13032 case $as_dir in #(
13033 -*) as_dir=./$as_dir;;
13034 esac
13035 test -d "$as_dir" || eval $as_mkdir_p || {
13036 as_dirs=
13037 while :; do
13038 case $as_dir in #(
13039 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13040 *) as_qdir=$as_dir;;
13041 esac
13042 as_dirs="'$as_qdir' $as_dirs"
13043 as_dir=`$as_dirname -- "$as_dir" ||
13044$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13045 X"$as_dir" : 'X\(//\)[^/]' \| \
13046 X"$as_dir" : 'X\(//\)$' \| \
13047 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13048$as_echo X"$as_dir" |
13049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13050 s//\1/
13051 q
13052 }
13053 /^X\(\/\/\)[^/].*/{
13054 s//\1/
13055 q
13056 }
13057 /^X\(\/\/\)$/{
13058 s//\1/
13059 q
13060 }
13061 /^X\(\/\).*/{
13062 s//\1/
13063 q
13064 }
13065 s/.*/./; q'`
13066 test -d "$as_dir" && break
13067 done
13068 test -z "$as_dirs" || eval "mkdir $as_dirs"
13069 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13070
13071
13072} # as_fn_mkdir_p
13073if mkdir -p . 2>/dev/null; then
13074 as_mkdir_p='mkdir -p "$as_dir"'
13075else
13076 test -d ./-p && rmdir ./-p
13077 as_mkdir_p=false
13078fi
13079
13080if test -x / >/dev/null 2>&1; then
13081 as_test_x='test -x'
13082else
13083 if ls -dL / >/dev/null 2>&1; then
13084 as_ls_L_option=L
13085 else
13086 as_ls_L_option=
13087 fi
13088 as_test_x='
13089 eval sh -c '\''
13090 if test -d "$1"; then
13091 test -d "$1/.";
13092 else
13093 case $1 in #(
13094 -*)set "./$1";;
13095 esac;
13096 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13097 ???[sx]*):;;*)false;;esac;fi
13098 '\'' sh
13099 '
13100fi
13101as_executable_p=$as_test_x
13102
13103# Sed expression to map a string onto a valid CPP name.
13104as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13105
13106# Sed expression to map a string onto a valid variable name.
13107as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13108
13109
13110exec 6>&1
13111## ----------------------------------- ##
13112## Main body of $CONFIG_STATUS script. ##
13113## ----------------------------------- ##
13114_ASEOF
13115test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13116
13117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13118# Save the log message, to keep $0 and so on meaningful, and to
13119# report actual input values of CONFIG_FILES etc. instead of their
13120# values after options handling.
13121ac_log="
13122This file was extended by opus $as_me 1.0.3, which was
13123generated by GNU Autoconf 2.68. Invocation command line was
13124
13125 CONFIG_FILES = $CONFIG_FILES
13126 CONFIG_HEADERS = $CONFIG_HEADERS
13127 CONFIG_LINKS = $CONFIG_LINKS
13128 CONFIG_COMMANDS = $CONFIG_COMMANDS
13129 $ $0 $@
13130
13131on `(hostname || uname -n) 2>/dev/null | sed 1q`
13132"
13133
13134_ACEOF
13135
13136case $ac_config_files in *"
13137"*) set x $ac_config_files; shift; ac_config_files=$*;;
13138esac
13139
13140case $ac_config_headers in *"
13141"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13142esac
13143
13144
13145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13146# Files that config.status was made for.
13147config_files="$ac_config_files"
13148config_headers="$ac_config_headers"
13149config_commands="$ac_config_commands"
13150
13151_ACEOF
13152
13153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13154ac_cs_usage="\
13155\`$as_me' instantiates files and other configuration actions
13156from templates according to the current configuration. Unless the files
13157and actions are specified as TAGs, all are instantiated by default.
13158
13159Usage: $0 [OPTION]... [TAG]...
13160
13161 -h, --help print this help, then exit
13162 -V, --version print version number and configuration settings, then exit
13163 --config print configuration, then exit
13164 -q, --quiet, --silent
13165 do not print progress messages
13166 -d, --debug don't remove temporary files
13167 --recheck update $as_me by reconfiguring in the same conditions
13168 --file=FILE[:TEMPLATE]
13169 instantiate the configuration file FILE
13170 --header=FILE[:TEMPLATE]
13171 instantiate the configuration header FILE
13172
13173Configuration files:
13174$config_files
13175
13176Configuration headers:
13177$config_headers
13178
13179Configuration commands:
13180$config_commands
13181
13182Report bugs to <opus@xiph.org>."
13183
13184_ACEOF
13185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13186ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13187ac_cs_version="\\
13188opus config.status 1.0.3
13189configured by $0, generated by GNU Autoconf 2.68,
13190 with options \\"\$ac_cs_config\\"
13191
13192Copyright (C) 2010 Free Software Foundation, Inc.
13193This config.status script is free software; the Free Software Foundation
13194gives unlimited permission to copy, distribute and modify it."
13195
13196ac_pwd='$ac_pwd'
13197srcdir='$srcdir'
13198INSTALL='$INSTALL'
13199MKDIR_P='$MKDIR_P'
13200AWK='$AWK'
13201test -n "\$AWK" || AWK=awk
13202_ACEOF
13203
13204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13205# The default lists apply if the user does not specify any file.
13206ac_need_defaults=:
13207while test $# != 0
13208do
13209 case $1 in
13210 --*=?*)
13211 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13212 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13213 ac_shift=:
13214 ;;
13215 --*=)
13216 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13217 ac_optarg=
13218 ac_shift=:
13219 ;;
13220 *)
13221 ac_option=$1
13222 ac_optarg=$2
13223 ac_shift=shift
13224 ;;
13225 esac
13226
13227 case $ac_option in
13228 # Handling of the options.
13229 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13230 ac_cs_recheck=: ;;
13231 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13232 $as_echo "$ac_cs_version"; exit ;;
13233 --config | --confi | --conf | --con | --co | --c )
13234 $as_echo "$ac_cs_config"; exit ;;
13235 --debug | --debu | --deb | --de | --d | -d )
13236 debug=: ;;
13237 --file | --fil | --fi | --f )
13238 $ac_shift
13239 case $ac_optarg in
13240 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13241 '') as_fn_error $? "missing file argument" ;;
13242 esac
13243 as_fn_append CONFIG_FILES " '$ac_optarg'"
13244 ac_need_defaults=false;;
13245 --header | --heade | --head | --hea )
13246 $ac_shift
13247 case $ac_optarg in
13248 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13249 esac
13250 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13251 ac_need_defaults=false;;
13252 --he | --h)
13253 # Conflict between --help and --header
13254 as_fn_error $? "ambiguous option: \`$1'
13255Try \`$0 --help' for more information.";;
13256 --help | --hel | -h )
13257 $as_echo "$ac_cs_usage"; exit ;;
13258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13259 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13260 ac_cs_silent=: ;;
13261
13262 # This is an error.
13263 -*) as_fn_error $? "unrecognized option: \`$1'
13264Try \`$0 --help' for more information." ;;
13265
13266 *) as_fn_append ac_config_targets " $1"
13267 ac_need_defaults=false ;;
13268
13269 esac
13270 shift
13271done
13272
13273ac_configure_extra_args=
13274
13275if $ac_cs_silent; then
13276 exec 6>/dev/null
13277 ac_configure_extra_args="$ac_configure_extra_args --silent"
13278fi
13279
13280_ACEOF
13281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13282if \$ac_cs_recheck; then
13283 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13284 shift
13285 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13286 CONFIG_SHELL='$SHELL'
13287 export CONFIG_SHELL
13288 exec "\$@"
13289fi
13290
13291_ACEOF
13292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13293exec 5>>config.log
13294{
13295 echo
13296 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13297## Running $as_me. ##
13298_ASBOX
13299 $as_echo "$ac_log"
13300} >&5
13301
13302_ACEOF
13303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13304#
13305# INIT-COMMANDS
13306#
13307AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13308
13309
13310# The HP-UX ksh and POSIX shell print the target directory to stdout
13311# if CDPATH is set.
13312(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13313
13314sed_quote_subst='$sed_quote_subst'
13315double_quote_subst='$double_quote_subst'
13316delay_variable_subst='$delay_variable_subst'
13317macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13318macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13319enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13320enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13321pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13322enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13323SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13324ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13325PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13326host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13327host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13328host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13329build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13330build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13331build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13332SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13333Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13334GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13335EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13336FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13337LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13338NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13339LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13340max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13341ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13342exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13343lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13344lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13345lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13346lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13347lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13348reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13349reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13350OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13351deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13352file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13353file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13354want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13355DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13356sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13357AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13358AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13359archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13360STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13361RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13362old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13363old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13364old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13365lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13366CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13367CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13368compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13369GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13370lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13371lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13372lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13373lt_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"`'
13374nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13375lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13376objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13377MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13378lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13379lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13380lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13381lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13382lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13383need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13384MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13385DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13386NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13387LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13388OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13389OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13390libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13391shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13392extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13393archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13394enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13395export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13396whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13397compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13398old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13399old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13400archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13401archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13402module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13403module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13404with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13405allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13406no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13407hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13408hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13409hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13410hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13411hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13412hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13413hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13414inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13415link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13416always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13417export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13418exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13419include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13420prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13421postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13422file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13423variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13424need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13425need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13426version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13427runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13428shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13429shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13430libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13431library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13432soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13433install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13434postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13435postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13436finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13437finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13438hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13439sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13440sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13441hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13442enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13443enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13444enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13445old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13446striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13447
13448LTCC='$LTCC'
13449LTCFLAGS='$LTCFLAGS'
13450compiler='$compiler_DEFAULT'
13451
13452# A function that is used when there is no print builtin or printf.
13453func_fallback_echo ()
13454{
13455 eval 'cat <<_LTECHO_EOF
13456\$1
13457_LTECHO_EOF'
13458}
13459
13460# Quote evaled strings.
13461for var in SHELL \
13462ECHO \
13463PATH_SEPARATOR \
13464SED \
13465GREP \
13466EGREP \
13467FGREP \
13468LD \
13469NM \
13470LN_S \
13471lt_SP2NL \
13472lt_NL2SP \
13473reload_flag \
13474OBJDUMP \
13475deplibs_check_method \
13476file_magic_cmd \
13477file_magic_glob \
13478want_nocaseglob \
13479DLLTOOL \
13480sharedlib_from_linklib_cmd \
13481AR \
13482AR_FLAGS \
13483archiver_list_spec \
13484STRIP \
13485RANLIB \
13486CC \
13487CFLAGS \
13488compiler \
13489lt_cv_sys_global_symbol_pipe \
13490lt_cv_sys_global_symbol_to_cdecl \
13491lt_cv_sys_global_symbol_to_c_name_address \
13492lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13493nm_file_list_spec \
13494lt_prog_compiler_no_builtin_flag \
13495lt_prog_compiler_pic \
13496lt_prog_compiler_wl \
13497lt_prog_compiler_static \
13498lt_cv_prog_compiler_c_o \
13499need_locks \
13500MANIFEST_TOOL \
13501DSYMUTIL \
13502NMEDIT \
13503LIPO \
13504OTOOL \
13505OTOOL64 \
13506shrext_cmds \
13507export_dynamic_flag_spec \
13508whole_archive_flag_spec \
13509compiler_needs_object \
13510with_gnu_ld \
13511allow_undefined_flag \
13512no_undefined_flag \
13513hardcode_libdir_flag_spec \
13514hardcode_libdir_separator \
13515exclude_expsyms \
13516include_expsyms \
13517file_list_spec \
13518variables_saved_for_relink \
13519libname_spec \
13520library_names_spec \
13521soname_spec \
13522install_override_mode \
13523finish_eval \
13524old_striplib \
13525striplib; do
13526 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13527 *[\\\\\\\`\\"\\\$]*)
13528 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13529 ;;
13530 *)
13531 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13532 ;;
13533 esac
13534done
13535
13536# Double-quote double-evaled strings.
13537for var in reload_cmds \
13538old_postinstall_cmds \
13539old_postuninstall_cmds \
13540old_archive_cmds \
13541extract_expsyms_cmds \
13542old_archive_from_new_cmds \
13543old_archive_from_expsyms_cmds \
13544archive_cmds \
13545archive_expsym_cmds \
13546module_cmds \
13547module_expsym_cmds \
13548export_symbols_cmds \
13549prelink_cmds \
13550postlink_cmds \
13551postinstall_cmds \
13552postuninstall_cmds \
13553finish_cmds \
13554sys_lib_search_path_spec \
13555sys_lib_dlsearch_path_spec; do
13556 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13557 *[\\\\\\\`\\"\\\$]*)
13558 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13559 ;;
13560 *)
13561 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13562 ;;
13563 esac
13564done
13565
13566ac_aux_dir='$ac_aux_dir'
13567xsi_shell='$xsi_shell'
13568lt_shell_append='$lt_shell_append'
13569
13570# See if we are running on zsh, and set the options which allow our
13571# commands through without removal of \ escapes INIT.
13572if test -n "\${ZSH_VERSION+set}" ; then
13573 setopt NO_GLOB_SUBST
13574fi
13575
13576
13577 PACKAGE='$PACKAGE'
13578 VERSION='$VERSION'
13579 TIMESTAMP='$TIMESTAMP'
13580 RM='$RM'
13581 ofile='$ofile'
13582
13583
13584
13585
13586_ACEOF
13587
13588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13589
13590# Handling of arguments.
13591for ac_config_target in $ac_config_targets
13592do
13593 case $ac_config_target in
13594 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13595 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13596 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13597 "opus.pc") CONFIG_FILES="$CONFIG_FILES opus.pc" ;;
13598 "opus-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opus-uninstalled.pc" ;;
13599 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13600 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
13601 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13602
13603 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13604 esac
13605done
13606
13607
13608# If the user did not use the arguments to specify the items to instantiate,
13609# then the envvar interface is used. Set only those that are not.
13610# We use the long form for the default assignment because of an extremely
13611# bizarre bug on SunOS 4.1.3.
13612if $ac_need_defaults; then
13613 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13614 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13615 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13616fi
13617
13618# Have a temporary directory for convenience. Make it in the build tree
13619# simply because there is no reason against having it here, and in addition,
13620# creating and moving files from /tmp can sometimes cause problems.
13621# Hook for its removal unless debugging.
13622# Note that there is a small window in which the directory will not be cleaned:
13623# after its creation but before its name has been assigned to `$tmp'.
13624$debug ||
13625{
13626 tmp= ac_tmp=
13627 trap 'exit_status=$?
13628 : "${ac_tmp:=$tmp}"
13629 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13630' 0
13631 trap 'as_fn_exit 1' 1 2 13 15
13632}
13633# Create a (secure) tmp directory for tmp files.
13634
13635{
13636 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13637 test -d "$tmp"
13638} ||
13639{
13640 tmp=./conf$$-$RANDOM
13641 (umask 077 && mkdir "$tmp")
13642} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13643ac_tmp=$tmp
13644
13645# Set up the scripts for CONFIG_FILES section.
13646# No need to generate them if there are no CONFIG_FILES.
13647# This happens for instance with `./config.status config.h'.
13648if test -n "$CONFIG_FILES"; then
13649
13650
13651ac_cr=`echo X | tr X '\015'`
13652# On cygwin, bash can eat \r inside `` if the user requested igncr.
13653# But we know of no other shell where ac_cr would be empty at this
13654# point, so we can use a bashism as a fallback.
13655if test "x$ac_cr" = x; then
13656 eval ac_cr=\$\'\\r\'
13657fi
13658ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13659if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13660 ac_cs_awk_cr='\\r'
13661else
13662 ac_cs_awk_cr=$ac_cr
13663fi
13664
13665echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13666_ACEOF
13667
13668
13669{
13670 echo "cat >conf$$subs.awk <<_ACEOF" &&
13671 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13672 echo "_ACEOF"
13673} >conf$$subs.sh ||
13674 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13675ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13676ac_delim='%!_!# '
13677for ac_last_try in false false false false false :; do
13678 . ./conf$$subs.sh ||
13679 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13680
13681 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13682 if test $ac_delim_n = $ac_delim_num; then
13683 break
13684 elif $ac_last_try; then
13685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13686 else
13687 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13688 fi
13689done
13690rm -f conf$$subs.sh
13691
13692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13693cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13694_ACEOF
13695sed -n '
13696h
13697s/^/S["/; s/!.*/"]=/
13698p
13699g
13700s/^[^!]*!//
13701:repl
13702t repl
13703s/'"$ac_delim"'$//
13704t delim
13705:nl
13706h
13707s/\(.\{148\}\)..*/\1/
13708t more1
13709s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13710p
13711n
13712b repl
13713:more1
13714s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13715p
13716g
13717s/.\{148\}//
13718t nl
13719:delim
13720h
13721s/\(.\{148\}\)..*/\1/
13722t more2
13723s/["\\]/\\&/g; s/^/"/; s/$/"/
13724p
13725b
13726:more2
13727s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13728p
13729g
13730s/.\{148\}//
13731t delim
13732' <conf$$subs.awk | sed '
13733/^[^""]/{
13734 N
13735 s/\n//
13736}
13737' >>$CONFIG_STATUS || ac_write_fail=1
13738rm -f conf$$subs.awk
13739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13740_ACAWK
13741cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13742 for (key in S) S_is_set[key] = 1
13743 FS = ""
13744
13745}
13746{
13747 line = $ 0
13748 nfields = split(line, field, "@")
13749 substed = 0
13750 len = length(field[1])
13751 for (i = 2; i < nfields; i++) {
13752 key = field[i]
13753 keylen = length(key)
13754 if (S_is_set[key]) {
13755 value = S[key]
13756 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13757 len += length(value) + length(field[++i])
13758 substed = 1
13759 } else
13760 len += 1 + keylen
13761 }
13762
13763 print line
13764}
13765
13766_ACAWK
13767_ACEOF
13768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13769if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13770 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13771else
13772 cat
13773fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13774 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13775_ACEOF
13776
13777# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13778# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13779# trailing colons and then remove the whole line if VPATH becomes empty
13780# (actually we leave an empty line to preserve line numbers).
13781if test "x$srcdir" = x.; then
13782 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13783h
13784s///
13785s/^/:/
13786s/[ ]*$/:/
13787s/:\$(srcdir):/:/g
13788s/:\${srcdir}:/:/g
13789s/:@srcdir@:/:/g
13790s/^:*//
13791s/:*$//
13792x
13793s/\(=[ ]*\).*/\1/
13794G
13795s/\n//
13796s/^[^=]*=[ ]*$//
13797}'
13798fi
13799
13800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13801fi # test -n "$CONFIG_FILES"
13802
13803# Set up the scripts for CONFIG_HEADERS section.
13804# No need to generate them if there are no CONFIG_HEADERS.
13805# This happens for instance with `./config.status Makefile'.
13806if test -n "$CONFIG_HEADERS"; then
13807cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13808BEGIN {
13809_ACEOF
13810
13811# Transform confdefs.h into an awk script `defines.awk', embedded as
13812# here-document in config.status, that substitutes the proper values into
13813# config.h.in to produce config.h.
13814
13815# Create a delimiter string that does not exist in confdefs.h, to ease
13816# handling of long lines.
13817ac_delim='%!_!# '
13818for ac_last_try in false false :; do
13819 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13820 if test -z "$ac_tt"; then
13821 break
13822 elif $ac_last_try; then
13823 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13824 else
13825 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13826 fi
13827done
13828
13829# For the awk script, D is an array of macro values keyed by name,
13830# likewise P contains macro parameters if any. Preserve backslash
13831# newline sequences.
13832
13833ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13834sed -n '
13835s/.\{148\}/&'"$ac_delim"'/g
13836t rset
13837:rset
13838s/^[ ]*#[ ]*define[ ][ ]*/ /
13839t def
13840d
13841:def
13842s/\\$//
13843t bsnl
13844s/["\\]/\\&/g
13845s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13846D["\1"]=" \3"/p
13847s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13848d
13849:bsnl
13850s/["\\]/\\&/g
13851s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13852D["\1"]=" \3\\\\\\n"\\/p
13853t cont
13854s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13855t cont
13856d
13857:cont
13858n
13859s/.\{148\}/&'"$ac_delim"'/g
13860t clear
13861:clear
13862s/\\$//
13863t bsnlc
13864s/["\\]/\\&/g; s/^/"/; s/$/"/p
13865d
13866:bsnlc
13867s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13868b cont
13869' <confdefs.h | sed '
13870s/'"$ac_delim"'/"\\\
13871"/g' >>$CONFIG_STATUS || ac_write_fail=1
13872
13873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13874 for (key in D) D_is_set[key] = 1
13875 FS = ""
13876}
13877/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13878 line = \$ 0
13879 split(line, arg, " ")
13880 if (arg[1] == "#") {
13881 defundef = arg[2]
13882 mac1 = arg[3]
13883 } else {
13884 defundef = substr(arg[1], 2)
13885 mac1 = arg[2]
13886 }
13887 split(mac1, mac2, "(") #)
13888 macro = mac2[1]
13889 prefix = substr(line, 1, index(line, defundef) - 1)
13890 if (D_is_set[macro]) {
13891 # Preserve the white space surrounding the "#".
13892 print prefix "define", macro P[macro] D[macro]
13893 next
13894 } else {
13895 # Replace #undef with comments. This is necessary, for example,
13896 # in the case of _POSIX_SOURCE, which is predefined and required
13897 # on some systems where configure will not decide to define it.
13898 if (defundef == "undef") {
13899 print "/*", prefix defundef, macro, "*/"
13900 next
13901 }
13902 }
13903}
13904{ print }
13905_ACAWK
13906_ACEOF
13907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13908 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13909fi # test -n "$CONFIG_HEADERS"
13910
13911
13912eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13913shift
13914for ac_tag
13915do
13916 case $ac_tag in
13917 :[FHLC]) ac_mode=$ac_tag; continue;;
13918 esac
13919 case $ac_mode$ac_tag in
13920 :[FHL]*:*);;
13921 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13922 :[FH]-) ac_tag=-:-;;
13923 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13924 esac
13925 ac_save_IFS=$IFS
13926 IFS=:
13927 set x $ac_tag
13928 IFS=$ac_save_IFS
13929 shift
13930 ac_file=$1
13931 shift
13932
13933 case $ac_mode in
13934 :L) ac_source=$1;;
13935 :[FH])
13936 ac_file_inputs=
13937 for ac_f
13938 do
13939 case $ac_f in
13940 -) ac_f="$ac_tmp/stdin";;
13941 *) # Look for the file first in the build tree, then in the source tree
13942 # (if the path is not absolute). The absolute path cannot be DOS-style,
13943 # because $ac_f cannot contain `:'.
13944 test -f "$ac_f" ||
13945 case $ac_f in
13946 [\\/$]*) false;;
13947 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13948 esac ||
13949 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13950 esac
13951 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13952 as_fn_append ac_file_inputs " '$ac_f'"
13953 done
13954
13955 # Let's still pretend it is `configure' which instantiates (i.e., don't
13956 # use $as_me), people would be surprised to read:
13957 # /* config.h. Generated by config.status. */
13958 configure_input='Generated from '`
13959 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13960 `' by configure.'
13961 if test x"$ac_file" != x-; then
13962 configure_input="$ac_file. $configure_input"
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13964$as_echo "$as_me: creating $ac_file" >&6;}
13965 fi
13966 # Neutralize special characters interpreted by sed in replacement strings.
13967 case $configure_input in #(
13968 *\&* | *\|* | *\\* )
13969 ac_sed_conf_input=`$as_echo "$configure_input" |
13970 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13971 *) ac_sed_conf_input=$configure_input;;
13972 esac
13973
13974 case $ac_tag in
13975 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13976 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13977 esac
13978 ;;
13979 esac
13980
13981 ac_dir=`$as_dirname -- "$ac_file" ||
13982$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13983 X"$ac_file" : 'X\(//\)[^/]' \| \
13984 X"$ac_file" : 'X\(//\)$' \| \
13985 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13986$as_echo X"$ac_file" |
13987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13988 s//\1/
13989 q
13990 }
13991 /^X\(\/\/\)[^/].*/{
13992 s//\1/
13993 q
13994 }
13995 /^X\(\/\/\)$/{
13996 s//\1/
13997 q
13998 }
13999 /^X\(\/\).*/{
14000 s//\1/
14001 q
14002 }
14003 s/.*/./; q'`
14004 as_dir="$ac_dir"; as_fn_mkdir_p
14005 ac_builddir=.
14006
14007case "$ac_dir" in
14008.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14009*)
14010 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14011 # A ".." for each directory in $ac_dir_suffix.
14012 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14013 case $ac_top_builddir_sub in
14014 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14015 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14016 esac ;;
14017esac
14018ac_abs_top_builddir=$ac_pwd
14019ac_abs_builddir=$ac_pwd$ac_dir_suffix
14020# for backward compatibility:
14021ac_top_builddir=$ac_top_build_prefix
14022
14023case $srcdir in
14024 .) # We are building in place.
14025 ac_srcdir=.
14026 ac_top_srcdir=$ac_top_builddir_sub
14027 ac_abs_top_srcdir=$ac_pwd ;;
14028 [\\/]* | ?:[\\/]* ) # Absolute name.
14029 ac_srcdir=$srcdir$ac_dir_suffix;
14030 ac_top_srcdir=$srcdir
14031 ac_abs_top_srcdir=$srcdir ;;
14032 *) # Relative name.
14033 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14034 ac_top_srcdir=$ac_top_build_prefix$srcdir
14035 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14036esac
14037ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14038
14039
14040 case $ac_mode in
14041 :F)
14042 #
14043 # CONFIG_FILE
14044 #
14045
14046 case $INSTALL in
14047 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14048 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14049 esac
14050 ac_MKDIR_P=$MKDIR_P
14051 case $MKDIR_P in
14052 [\\/$]* | ?:[\\/]* ) ;;
14053 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14054 esac
14055_ACEOF
14056
14057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14058# If the template does not know about datarootdir, expand it.
14059# FIXME: This hack should be removed a few years after 2.60.
14060ac_datarootdir_hack=; ac_datarootdir_seen=
14061ac_sed_dataroot='
14062/datarootdir/ {
14063 p
14064 q
14065}
14066/@datadir@/p
14067/@docdir@/p
14068/@infodir@/p
14069/@localedir@/p
14070/@mandir@/p'
14071case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14072*datarootdir*) ac_datarootdir_seen=yes;;
14073*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14075$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14076_ACEOF
14077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14078 ac_datarootdir_hack='
14079 s&@datadir@&$datadir&g
14080 s&@docdir@&$docdir&g
14081 s&@infodir@&$infodir&g
14082 s&@localedir@&$localedir&g
14083 s&@mandir@&$mandir&g
14084 s&\\\${datarootdir}&$datarootdir&g' ;;
14085esac
14086_ACEOF
14087
14088# Neutralize VPATH when `$srcdir' = `.'.
14089# Shell code in configure.ac might set extrasub.
14090# FIXME: do we really want to maintain this feature?
14091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14092ac_sed_extra="$ac_vpsub
14093$extrasub
14094_ACEOF
14095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14096:t
14097/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14098s|@configure_input@|$ac_sed_conf_input|;t t
14099s&@top_builddir@&$ac_top_builddir_sub&;t t
14100s&@top_build_prefix@&$ac_top_build_prefix&;t t
14101s&@srcdir@&$ac_srcdir&;t t
14102s&@abs_srcdir@&$ac_abs_srcdir&;t t
14103s&@top_srcdir@&$ac_top_srcdir&;t t
14104s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14105s&@builddir@&$ac_builddir&;t t
14106s&@abs_builddir@&$ac_abs_builddir&;t t
14107s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14108s&@INSTALL@&$ac_INSTALL&;t t
14109s&@MKDIR_P@&$ac_MKDIR_P&;t t
14110$ac_datarootdir_hack
14111"
14112eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14113 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14114
14115test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14116 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14117 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14118 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14120which seems to be undefined. Please make sure it is defined" >&5
14121$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14122which seems to be undefined. Please make sure it is defined" >&2;}
14123
14124 rm -f "$ac_tmp/stdin"
14125 case $ac_file in
14126 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14127 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14128 esac \
14129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14130 ;;
14131 :H)
14132 #
14133 # CONFIG_HEADER
14134 #
14135 if test x"$ac_file" != x-; then
14136 {
14137 $as_echo "/* $configure_input */" \
14138 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14139 } >"$ac_tmp/config.h" \
14140 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14141 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14143$as_echo "$as_me: $ac_file is unchanged" >&6;}
14144 else
14145 rm -f "$ac_file"
14146 mv "$ac_tmp/config.h" "$ac_file" \
14147 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14148 fi
14149 else
14150 $as_echo "/* $configure_input */" \
14151 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14152 || as_fn_error $? "could not create -" "$LINENO" 5
14153 fi
14154# Compute "$ac_file"'s index in $config_headers.
14155_am_arg="$ac_file"
14156_am_stamp_count=1
14157for _am_header in $config_headers :; do
14158 case $_am_header in
14159 $_am_arg | $_am_arg:* )
14160 break ;;
14161 * )
14162 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14163 esac
14164done
14165echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14166$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14167 X"$_am_arg" : 'X\(//\)[^/]' \| \
14168 X"$_am_arg" : 'X\(//\)$' \| \
14169 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14170$as_echo X"$_am_arg" |
14171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14172 s//\1/
14173 q
14174 }
14175 /^X\(\/\/\)[^/].*/{
14176 s//\1/
14177 q
14178 }
14179 /^X\(\/\/\)$/{
14180 s//\1/
14181 q
14182 }
14183 /^X\(\/\).*/{
14184 s//\1/
14185 q
14186 }
14187 s/.*/./; q'`/stamp-h$_am_stamp_count
14188 ;;
14189
14190 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14191$as_echo "$as_me: executing $ac_file commands" >&6;}
14192 ;;
14193 esac
14194
14195
14196 case $ac_file$ac_mode in
14197 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14198 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14199 # are listed without --file. Let's play safe and only enable the eval
14200 # if we detect the quoting.
14201 case $CONFIG_FILES in
14202 *\'*) eval set x "$CONFIG_FILES" ;;
14203 *) set x $CONFIG_FILES ;;
14204 esac
14205 shift
14206 for mf
14207 do
14208 # Strip MF so we end up with the name of the file.
14209 mf=`echo "$mf" | sed -e 's/:.*$//'`
14210 # Check whether this is an Automake generated Makefile or not.
14211 # We used to match only the files named `Makefile.in', but
14212 # some people rename them; so instead we look at the file content.
14213 # Grep'ing the first line is not enough: some people post-process
14214 # each Makefile.in and add a new line on top of each file to say so.
14215 # Grep'ing the whole file is not good either: AIX grep has a line
14216 # limit of 2048, but all sed's we know have understand at least 4000.
14217 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14218 dirpart=`$as_dirname -- "$mf" ||
14219$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14220 X"$mf" : 'X\(//\)[^/]' \| \
14221 X"$mf" : 'X\(//\)$' \| \
14222 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14223$as_echo X"$mf" |
14224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14225 s//\1/
14226 q
14227 }
14228 /^X\(\/\/\)[^/].*/{
14229 s//\1/
14230 q
14231 }
14232 /^X\(\/\/\)$/{
14233 s//\1/
14234 q
14235 }
14236 /^X\(\/\).*/{
14237 s//\1/
14238 q
14239 }
14240 s/.*/./; q'`
14241 else
14242 continue
14243 fi
14244 # Extract the definition of DEPDIR, am__include, and am__quote
14245 # from the Makefile without running `make'.
14246 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14247 test -z "$DEPDIR" && continue
14248 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14249 test -z "am__include" && continue
14250 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14251 # When using ansi2knr, U may be empty or an underscore; expand it
14252 U=`sed -n 's/^U = //p' < "$mf"`
14253 # Find all dependency output files, they are included files with
14254 # $(DEPDIR) in their names. We invoke sed twice because it is the
14255 # simplest approach to changing $(DEPDIR) to its actual value in the
14256 # expansion.
14257 for file in `sed -n "
14258 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14259 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14260 # Make sure the directory exists.
14261 test -f "$dirpart/$file" && continue
14262 fdir=`$as_dirname -- "$file" ||
14263$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14264 X"$file" : 'X\(//\)[^/]' \| \
14265 X"$file" : 'X\(//\)$' \| \
14266 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14267$as_echo X"$file" |
14268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14269 s//\1/
14270 q
14271 }
14272 /^X\(\/\/\)[^/].*/{
14273 s//\1/
14274 q
14275 }
14276 /^X\(\/\/\)$/{
14277 s//\1/
14278 q
14279 }
14280 /^X\(\/\).*/{
14281 s//\1/
14282 q
14283 }
14284 s/.*/./; q'`
14285 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14286 # echo "creating $dirpart/$file"
14287 echo '# dummy' > "$dirpart/$file"
14288 done
14289 done
14290}
14291 ;;
14292 "libtool":C)
14293
14294 # See if we are running on zsh, and set the options which allow our
14295 # commands through without removal of \ escapes.
14296 if test -n "${ZSH_VERSION+set}" ; then
14297 setopt NO_GLOB_SUBST
14298 fi
14299
14300 cfgfile="${ofile}T"
14301 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14302 $RM "$cfgfile"
14303
14304 cat <<_LT_EOF >> "$cfgfile"
14305#! $SHELL
14306
14307# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14308# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14309# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14310# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14311#
14312# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14313# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14314# Foundation, Inc.
14315# Written by Gordon Matzigkeit, 1996
14316#
14317# This file is part of GNU Libtool.
14318#
14319# GNU Libtool is free software; you can redistribute it and/or
14320# modify it under the terms of the GNU General Public License as
14321# published by the Free Software Foundation; either version 2 of
14322# the License, or (at your option) any later version.
14323#
14324# As a special exception to the GNU General Public License,
14325# if you distribute this file as part of a program or library that
14326# is built using GNU Libtool, you may include this file under the
14327# same distribution terms that you use for the rest of that program.
14328#
14329# GNU Libtool is distributed in the hope that it will be useful,
14330# but WITHOUT ANY WARRANTY; without even the implied warranty of
14331# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14332# GNU General Public License for more details.
14333#
14334# You should have received a copy of the GNU General Public License
14335# along with GNU Libtool; see the file COPYING. If not, a copy
14336# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14337# obtained by writing to the Free Software Foundation, Inc.,
14338# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14339
14340
14341# The names of the tagged configurations supported by this script.
14342available_tags=""
14343
14344# ### BEGIN LIBTOOL CONFIG
14345
14346# Which release of libtool.m4 was used?
14347macro_version=$macro_version
14348macro_revision=$macro_revision
14349
14350# Whether or not to build shared libraries.
14351build_libtool_libs=$enable_shared
14352
14353# Whether or not to build static libraries.
14354build_old_libs=$enable_static
14355
14356# What type of objects to build.
14357pic_mode=$pic_mode
14358
14359# Whether or not to optimize for fast installation.
14360fast_install=$enable_fast_install
14361
14362# Shell to use when invoking shell scripts.
14363SHELL=$lt_SHELL
14364
14365# An echo program that protects backslashes.
14366ECHO=$lt_ECHO
14367
14368# The PATH separator for the build system.
14369PATH_SEPARATOR=$lt_PATH_SEPARATOR
14370
14371# The host system.
14372host_alias=$host_alias
14373host=$host
14374host_os=$host_os
14375
14376# The build system.
14377build_alias=$build_alias
14378build=$build
14379build_os=$build_os
14380
14381# A sed program that does not truncate output.
14382SED=$lt_SED
14383
14384# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14385Xsed="\$SED -e 1s/^X//"
14386
14387# A grep program that handles long lines.
14388GREP=$lt_GREP
14389
14390# An ERE matcher.
14391EGREP=$lt_EGREP
14392
14393# A literal string matcher.
14394FGREP=$lt_FGREP
14395
14396# A BSD- or MS-compatible name lister.
14397NM=$lt_NM
14398
14399# Whether we need soft or hard links.
14400LN_S=$lt_LN_S
14401
14402# What is the maximum length of a command?
14403max_cmd_len=$max_cmd_len
14404
14405# Object file suffix (normally "o").
14406objext=$ac_objext
14407
14408# Executable file suffix (normally "").
14409exeext=$exeext
14410
14411# whether the shell understands "unset".
14412lt_unset=$lt_unset
14413
14414# turn spaces into newlines.
14415SP2NL=$lt_lt_SP2NL
14416
14417# turn newlines into spaces.
14418NL2SP=$lt_lt_NL2SP
14419
14420# convert \$build file names to \$host format.
14421to_host_file_cmd=$lt_cv_to_host_file_cmd
14422
14423# convert \$build files to toolchain format.
14424to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14425
14426# An object symbol dumper.
14427OBJDUMP=$lt_OBJDUMP
14428
14429# Method to check whether dependent libraries are shared objects.
14430deplibs_check_method=$lt_deplibs_check_method
14431
14432# Command to use when deplibs_check_method = "file_magic".
14433file_magic_cmd=$lt_file_magic_cmd
14434
14435# How to find potential files when deplibs_check_method = "file_magic".
14436file_magic_glob=$lt_file_magic_glob
14437
14438# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14439want_nocaseglob=$lt_want_nocaseglob
14440
14441# DLL creation program.
14442DLLTOOL=$lt_DLLTOOL
14443
14444# Command to associate shared and link libraries.
14445sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14446
14447# The archiver.
14448AR=$lt_AR
14449
14450# Flags to create an archive.
14451AR_FLAGS=$lt_AR_FLAGS
14452
14453# How to feed a file listing to the archiver.
14454archiver_list_spec=$lt_archiver_list_spec
14455
14456# A symbol stripping program.
14457STRIP=$lt_STRIP
14458
14459# Commands used to install an old-style archive.
14460RANLIB=$lt_RANLIB
14461old_postinstall_cmds=$lt_old_postinstall_cmds
14462old_postuninstall_cmds=$lt_old_postuninstall_cmds
14463
14464# Whether to use a lock for old archive extraction.
14465lock_old_archive_extraction=$lock_old_archive_extraction
14466
14467# A C compiler.
14468LTCC=$lt_CC
14469
14470# LTCC compiler flags.
14471LTCFLAGS=$lt_CFLAGS
14472
14473# Take the output of nm and produce a listing of raw symbols and C names.
14474global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14475
14476# Transform the output of nm in a proper C declaration.
14477global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14478
14479# Transform the output of nm in a C name address pair.
14480global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14481
14482# Transform the output of nm in a C name address pair when lib prefix is needed.
14483global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14484
14485# Specify filename containing input files for \$NM.
14486nm_file_list_spec=$lt_nm_file_list_spec
14487
14488# The root where to search for dependent libraries,and in which our libraries should be installed.
14489lt_sysroot=$lt_sysroot
14490
14491# The name of the directory that contains temporary libtool files.
14492objdir=$objdir
14493
14494# Used to examine libraries when file_magic_cmd begins with "file".
14495MAGIC_CMD=$MAGIC_CMD
14496
14497# Must we lock files when doing compilation?
14498need_locks=$lt_need_locks
14499
14500# Manifest tool.
14501MANIFEST_TOOL=$lt_MANIFEST_TOOL
14502
14503# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14504DSYMUTIL=$lt_DSYMUTIL
14505
14506# Tool to change global to local symbols on Mac OS X.
14507NMEDIT=$lt_NMEDIT
14508
14509# Tool to manipulate fat objects and archives on Mac OS X.
14510LIPO=$lt_LIPO
14511
14512# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14513OTOOL=$lt_OTOOL
14514
14515# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14516OTOOL64=$lt_OTOOL64
14517
14518# Old archive suffix (normally "a").
14519libext=$libext
14520
14521# Shared library suffix (normally ".so").
14522shrext_cmds=$lt_shrext_cmds
14523
14524# The commands to extract the exported symbol list from a shared archive.
14525extract_expsyms_cmds=$lt_extract_expsyms_cmds
14526
14527# Variables whose values should be saved in libtool wrapper scripts and
14528# restored at link time.
14529variables_saved_for_relink=$lt_variables_saved_for_relink
14530
14531# Do we need the "lib" prefix for modules?
14532need_lib_prefix=$need_lib_prefix
14533
14534# Do we need a version for libraries?
14535need_version=$need_version
14536
14537# Library versioning type.
14538version_type=$version_type
14539
14540# Shared library runtime path variable.
14541runpath_var=$runpath_var
14542
14543# Shared library path variable.
14544shlibpath_var=$shlibpath_var
14545
14546# Is shlibpath searched before the hard-coded library search path?
14547shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14548
14549# Format of library name prefix.
14550libname_spec=$lt_libname_spec
14551
14552# List of archive names. First name is the real one, the rest are links.
14553# The last name is the one that the linker finds with -lNAME
14554library_names_spec=$lt_library_names_spec
14555
14556# The coded name of the library, if different from the real name.
14557soname_spec=$lt_soname_spec
14558
14559# Permission mode override for installation of shared libraries.
14560install_override_mode=$lt_install_override_mode
14561
14562# Command to use after installation of a shared archive.
14563postinstall_cmds=$lt_postinstall_cmds
14564
14565# Command to use after uninstallation of a shared archive.
14566postuninstall_cmds=$lt_postuninstall_cmds
14567
14568# Commands used to finish a libtool library installation in a directory.
14569finish_cmds=$lt_finish_cmds
14570
14571# As "finish_cmds", except a single script fragment to be evaled but
14572# not shown.
14573finish_eval=$lt_finish_eval
14574
14575# Whether we should hardcode library paths into libraries.
14576hardcode_into_libs=$hardcode_into_libs
14577
14578# Compile-time system search path for libraries.
14579sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14580
14581# Run-time system search path for libraries.
14582sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14583
14584# Whether dlopen is supported.
14585dlopen_support=$enable_dlopen
14586
14587# Whether dlopen of programs is supported.
14588dlopen_self=$enable_dlopen_self
14589
14590# Whether dlopen of statically linked programs is supported.
14591dlopen_self_static=$enable_dlopen_self_static
14592
14593# Commands to strip libraries.
14594old_striplib=$lt_old_striplib
14595striplib=$lt_striplib
14596
14597
14598# The linker used to build libraries.
14599LD=$lt_LD
14600
14601# How to create reloadable object files.
14602reload_flag=$lt_reload_flag
14603reload_cmds=$lt_reload_cmds
14604
14605# Commands used to build an old-style archive.
14606old_archive_cmds=$lt_old_archive_cmds
14607
14608# A language specific compiler.
14609CC=$lt_compiler
14610
14611# Is the compiler the GNU compiler?
14612with_gcc=$GCC
14613
14614# Compiler flag to turn off builtin functions.
14615no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14616
14617# Additional compiler flags for building library objects.
14618pic_flag=$lt_lt_prog_compiler_pic
14619
14620# How to pass a linker flag through the compiler.
14621wl=$lt_lt_prog_compiler_wl
14622
14623# Compiler flag to prevent dynamic linking.
14624link_static_flag=$lt_lt_prog_compiler_static
14625
14626# Does compiler simultaneously support -c and -o options?
14627compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14628
14629# Whether or not to add -lc for building shared libraries.
14630build_libtool_need_lc=$archive_cmds_need_lc
14631
14632# Whether or not to disallow shared libs when runtime libs are static.
14633allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14634
14635# Compiler flag to allow reflexive dlopens.
14636export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14637
14638# Compiler flag to generate shared objects directly from archives.
14639whole_archive_flag_spec=$lt_whole_archive_flag_spec
14640
14641# Whether the compiler copes with passing no objects directly.
14642compiler_needs_object=$lt_compiler_needs_object
14643
14644# Create an old-style archive from a shared archive.
14645old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14646
14647# Create a temporary old-style archive to link instead of a shared archive.
14648old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14649
14650# Commands used to build a shared archive.
14651archive_cmds=$lt_archive_cmds
14652archive_expsym_cmds=$lt_archive_expsym_cmds
14653
14654# Commands used to build a loadable module if different from building
14655# a shared archive.
14656module_cmds=$lt_module_cmds
14657module_expsym_cmds=$lt_module_expsym_cmds
14658
14659# Whether we are building with GNU ld or not.
14660with_gnu_ld=$lt_with_gnu_ld
14661
14662# Flag that allows shared libraries with undefined symbols to be built.
14663allow_undefined_flag=$lt_allow_undefined_flag
14664
14665# Flag that enforces no undefined symbols.
14666no_undefined_flag=$lt_no_undefined_flag
14667
14668# Flag to hardcode \$libdir into a binary during linking.
14669# This must work even if \$libdir does not exist
14670hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14671
14672# Whether we need a single "-rpath" flag with a separated argument.
14673hardcode_libdir_separator=$lt_hardcode_libdir_separator
14674
14675# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14676# DIR into the resulting binary.
14677hardcode_direct=$hardcode_direct
14678
14679# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14680# DIR into the resulting binary and the resulting library dependency is
14681# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14682# library is relocated.
14683hardcode_direct_absolute=$hardcode_direct_absolute
14684
14685# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14686# into the resulting binary.
14687hardcode_minus_L=$hardcode_minus_L
14688
14689# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14690# into the resulting binary.
14691hardcode_shlibpath_var=$hardcode_shlibpath_var
14692
14693# Set to "yes" if building a shared library automatically hardcodes DIR
14694# into the library and all subsequent libraries and executables linked
14695# against it.
14696hardcode_automatic=$hardcode_automatic
14697
14698# Set to yes if linker adds runtime paths of dependent libraries
14699# to runtime path list.
14700inherit_rpath=$inherit_rpath
14701
14702# Whether libtool must link a program against all its dependency libraries.
14703link_all_deplibs=$link_all_deplibs
14704
14705# Set to "yes" if exported symbols are required.
14706always_export_symbols=$always_export_symbols
14707
14708# The commands to list exported symbols.
14709export_symbols_cmds=$lt_export_symbols_cmds
14710
14711# Symbols that should not be listed in the preloaded symbols.
14712exclude_expsyms=$lt_exclude_expsyms
14713
14714# Symbols that must always be exported.
14715include_expsyms=$lt_include_expsyms
14716
14717# Commands necessary for linking programs (against libraries) with templates.
14718prelink_cmds=$lt_prelink_cmds
14719
14720# Commands necessary for finishing linking programs.
14721postlink_cmds=$lt_postlink_cmds
14722
14723# Specify filename containing input files.
14724file_list_spec=$lt_file_list_spec
14725
14726# How to hardcode a shared library path into an executable.
14727hardcode_action=$hardcode_action
14728
14729# ### END LIBTOOL CONFIG
14730
14731_LT_EOF
14732
14733 case $host_os in
14734 aix3*)
14735 cat <<\_LT_EOF >> "$cfgfile"
14736# AIX sometimes has problems with the GCC collect2 program. For some
14737# reason, if we set the COLLECT_NAMES environment variable, the problems
14738# vanish in a puff of smoke.
14739if test "X${COLLECT_NAMES+set}" != Xset; then
14740 COLLECT_NAMES=
14741 export COLLECT_NAMES
14742fi
14743_LT_EOF
14744 ;;
14745 esac
14746
14747
14748ltmain="$ac_aux_dir/ltmain.sh"
14749
14750
14751 # We use sed instead of cat because bash on DJGPP gets confused if
14752 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14753 # text mode, it properly converts lines to CR/LF. This bash problem
14754 # is reportedly fixed, but why not run on old versions too?
14755 sed '$q' "$ltmain" >> "$cfgfile" \
14756 || (rm -f "$cfgfile"; exit 1)
14757
14758 if test x"$xsi_shell" = xyes; then
14759 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14760func_dirname ()\
14761{\
14762\ case ${1} in\
14763\ */*) func_dirname_result="${1%/*}${2}" ;;\
14764\ * ) func_dirname_result="${3}" ;;\
14765\ esac\
14766} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14767 && mv -f "$cfgfile.tmp" "$cfgfile" \
14768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14769test 0 -eq $? || _lt_function_replace_fail=:
14770
14771
14772 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14773func_basename ()\
14774{\
14775\ func_basename_result="${1##*/}"\
14776} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14777 && mv -f "$cfgfile.tmp" "$cfgfile" \
14778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14779test 0 -eq $? || _lt_function_replace_fail=:
14780
14781
14782 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14783func_dirname_and_basename ()\
14784{\
14785\ case ${1} in\
14786\ */*) func_dirname_result="${1%/*}${2}" ;;\
14787\ * ) func_dirname_result="${3}" ;;\
14788\ esac\
14789\ func_basename_result="${1##*/}"\
14790} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14791 && mv -f "$cfgfile.tmp" "$cfgfile" \
14792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14793test 0 -eq $? || _lt_function_replace_fail=:
14794
14795
14796 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14797func_stripname ()\
14798{\
14799\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14800\ # positional parameters, so assign one to ordinary parameter first.\
14801\ func_stripname_result=${3}\
14802\ func_stripname_result=${func_stripname_result#"${1}"}\
14803\ func_stripname_result=${func_stripname_result%"${2}"}\
14804} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14805 && mv -f "$cfgfile.tmp" "$cfgfile" \
14806 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14807test 0 -eq $? || _lt_function_replace_fail=:
14808
14809
14810 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14811func_split_long_opt ()\
14812{\
14813\ func_split_long_opt_name=${1%%=*}\
14814\ func_split_long_opt_arg=${1#*=}\
14815} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14816 && mv -f "$cfgfile.tmp" "$cfgfile" \
14817 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14818test 0 -eq $? || _lt_function_replace_fail=:
14819
14820
14821 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14822func_split_short_opt ()\
14823{\
14824\ func_split_short_opt_arg=${1#??}\
14825\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14826} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14827 && mv -f "$cfgfile.tmp" "$cfgfile" \
14828 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14829test 0 -eq $? || _lt_function_replace_fail=:
14830
14831
14832 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14833func_lo2o ()\
14834{\
14835\ case ${1} in\
14836\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14837\ *) func_lo2o_result=${1} ;;\
14838\ esac\
14839} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14840 && mv -f "$cfgfile.tmp" "$cfgfile" \
14841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14842test 0 -eq $? || _lt_function_replace_fail=:
14843
14844
14845 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14846func_xform ()\
14847{\
14848 func_xform_result=${1%.*}.lo\
14849} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14850 && mv -f "$cfgfile.tmp" "$cfgfile" \
14851 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14852test 0 -eq $? || _lt_function_replace_fail=:
14853
14854
14855 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14856func_arith ()\
14857{\
14858 func_arith_result=$(( $* ))\
14859} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14860 && mv -f "$cfgfile.tmp" "$cfgfile" \
14861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14862test 0 -eq $? || _lt_function_replace_fail=:
14863
14864
14865 sed -e '/^func_len ()$/,/^} # func_len /c\
14866func_len ()\
14867{\
14868 func_len_result=${#1}\
14869} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14870 && mv -f "$cfgfile.tmp" "$cfgfile" \
14871 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14872test 0 -eq $? || _lt_function_replace_fail=:
14873
14874fi
14875
14876if test x"$lt_shell_append" = xyes; then
14877 sed -e '/^func_append ()$/,/^} # func_append /c\
14878func_append ()\
14879{\
14880 eval "${1}+=\\${2}"\
14881} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14882 && mv -f "$cfgfile.tmp" "$cfgfile" \
14883 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14884test 0 -eq $? || _lt_function_replace_fail=:
14885
14886
14887 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14888func_append_quoted ()\
14889{\
14890\ func_quote_for_eval "${2}"\
14891\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14892} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14893 && mv -f "$cfgfile.tmp" "$cfgfile" \
14894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14895test 0 -eq $? || _lt_function_replace_fail=:
14896
14897
14898 # Save a `func_append' function call where possible by direct use of '+='
14899 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14900 && mv -f "$cfgfile.tmp" "$cfgfile" \
14901 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14902 test 0 -eq $? || _lt_function_replace_fail=:
14903else
14904 # Save a `func_append' function call even when '+=' is not available
14905 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14906 && mv -f "$cfgfile.tmp" "$cfgfile" \
14907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14908 test 0 -eq $? || _lt_function_replace_fail=:
14909fi
14910
14911if test x"$_lt_function_replace_fail" = x":"; then
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14913$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14914fi
14915
14916
14917 mv -f "$cfgfile" "$ofile" ||
14918 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14919 chmod +x "$ofile"
14920
14921 ;;
14922
14923 esac
14924done # for ac_tag
14925
14926
14927as_fn_exit 0
14928_ACEOF
14929ac_clean_files=$ac_clean_files_save
14930
14931test $ac_write_fail = 0 ||
14932 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14933
14934
14935# configure is writing to config.log, and then calls config.status.
14936# config.status does its own redirection, appending to config.log.
14937# Unfortunately, on DOS this fails, as config.log is still kept open
14938# by configure, so config.status won't be able to write to it; its
14939# output is simply discarded. So we exec the FD to /dev/null,
14940# effectively closing config.log, so it can be properly (re)opened and
14941# appended to by config.status. When coming back to configure, we
14942# need to make the FD available again.
14943if test "$no_create" != yes; then
14944 ac_cs_success=:
14945 ac_config_status_args=
14946 test "$silent" = yes &&
14947 ac_config_status_args="$ac_config_status_args --quiet"
14948 exec 5>/dev/null
14949 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14950 exec 5>>config.log
14951 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14952 # would make configure fail if this is the last instruction.
14953 $ac_cs_success || as_fn_exit 1
14954fi
14955if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14957$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14958fi
14959
14960
14961{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
14962------------------------------------------------------------------------
14963 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
14964
14965 Compiler support:
14966
14967 C99 var arrays: ................ ${has_var_arrays}
14968 C99 lrintf: .................... ${ac_cv_func_lrintf}
14969 Alloca: ........................ ${has_alloca}
14970
14971 General configuration:
14972
14973 Floating point support: ........ ${ac_enable_float}
14974 Fast float approximations: ..... ${float_approx}
14975 Fixed point debugging: ......... ${ac_enable_fixed_debug}
14976 Custom modes: .................. ${ac_enable_custom_modes}
14977 Assertion checking: ............ ${ac_enable_assertions}
14978 Fuzzing: ....................... ${ac_enable_fuzzing}
14979
14980 API documentation: ............. ${ac_enable_doc}
14981------------------------------------------------------------------------
14982" >&5
14983$as_echo "
14984------------------------------------------------------------------------
14985 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
14986
14987 Compiler support:
14988
14989 C99 var arrays: ................ ${has_var_arrays}
14990 C99 lrintf: .................... ${ac_cv_func_lrintf}
14991 Alloca: ........................ ${has_alloca}
14992
14993 General configuration:
14994
14995 Floating point support: ........ ${ac_enable_float}
14996 Fast float approximations: ..... ${float_approx}
14997 Fixed point debugging: ......... ${ac_enable_fixed_debug}
14998 Custom modes: .................. ${ac_enable_custom_modes}
14999 Assertion checking: ............ ${ac_enable_assertions}
15000 Fuzzing: ....................... ${ac_enable_fuzzing}
15001
15002 API documentation: ............. ${ac_enable_doc}
15003------------------------------------------------------------------------
15004" >&6; }
15005
15006echo "Type \"make; make install\" to compile and install";
15007echo "Type \"make check\" to run the test suite";