blob: c6cb40a3aafd0e6a7ce4b1ed1a7994ca9c7db99c [file] [log] [blame]
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
tlegrand@google.com3c3902f2013-12-09 08:35:25 +00003# Generated by GNU Autoconf 2.68 for opus 1.1.
4#
5# Report bugs to <opus@xiph.org>.
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00006#
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
tlegrand@google.com3c3902f2013-12-09 08:35:25 +0000249 $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."
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +0000254 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.
tlegrand@google.com3c3902f2013-12-09 08:35:25 +0000571PACKAGE_NAME='opus'
572PACKAGE_TARNAME='opus'
573PACKAGE_VERSION='1.1'
574PACKAGE_STRING='opus 1.1'
575PACKAGE_BUGREPORT='opus@xiph.org'
576PACKAGE_URL=''
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +0000577
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
sergeyu@chromium.org6b6bee22013-02-28 21:17:26 +0000619PC_BUILD
tlegrand@google.com3c3902f2013-12-09 08:35:25 +0000620EXTRA_PROGRAMS_FALSE
621EXTRA_PROGRAMS_TRUE
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +0000622HAVE_DOXYGEN_FALSE
623HAVE_DOXYGEN_TRUE
624HAVE_DOXYGEN
tlegrand@google.com3c3902f2013-12-09 08:35:25 +0000625OPUS_HAVE_RTCD
626CPU_ARM_FALSE
627CPU_ARM_TRUE
628OPUS_ARM_MAY_HAVE_NEON
629OPUS_ARM_MAY_HAVE_MEDIA
630OPUS_ARM_MAY_HAVE_EDSP
631OPUS_ARM_EXTERNAL_ASM_FALSE
632OPUS_ARM_EXTERNAL_ASM_TRUE
633HAVE_PERL
634OPUS_ARM_INLINE_ASM_FALSE
635OPUS_ARM_INLINE_ASM_TRUE
636CUSTOM_MODES_FALSE
637CUSTOM_MODES_TRUE
638DISABLE_FLOAT_API_FALSE
639DISABLE_FLOAT_API_TRUE
640FIXED_POINT_FALSE
641FIXED_POINT_TRUE
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +0000642LIBM
tlegrand@google.com3c3902f2013-12-09 08:35:25 +0000643am__fastdepCCAS_FALSE
644am__fastdepCCAS_TRUE
645CCASDEPMODE
646CCASFLAGS
647CCAS
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +0000648CPP
649OTOOL64
650OTOOL
651LIPO
652NMEDIT
653DSYMUTIL
654MANIFEST_TOOL
655RANLIB
656ac_ct_AR
657AR
658DLLTOOL
659OBJDUMP
660LN_S
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666EGREP
667GREP
668SED
669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
672am__nodep
673AMDEPBACKSLASH
674AMDEP_FALSE
675AMDEP_TRUE
676am__quote
677am__include
678DEPDIR
679OBJEXT
680EXEEXT
681ac_ct_CC
682CPPFLAGS
683LDFLAGS
684CFLAGS
685CC
686LIBTOOL
687host_os
688host_vendor
689host_cpu
690host
691build_os
692build_vendor
693build_cpu
694build
695MAINT
696MAINTAINER_MODE_FALSE
697MAINTAINER_MODE_TRUE
698am__untar
699am__tar
700AMTAR
701am__leading_dot
702SET_MAKE
703AWK
704mkdir_p
705MKDIR_P
706INSTALL_STRIP_PROGRAM
707STRIP
708install_sh
709MAKEINFO
710AUTOHEADER
711AUTOMAKE
712AUTOCONF
713ACLOCAL
714VERSION
715PACKAGE
716CYGPATH_W
717am__isrc
718INSTALL_DATA
719INSTALL_SCRIPT
720INSTALL_PROGRAM
721OPUS_LT_AGE
722OPUS_LT_REVISION
723OPUS_LT_CURRENT
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +0000724AM_BACKSLASH
725AM_DEFAULT_VERBOSITY
726AM_DEFAULT_V
727AM_V
728target_alias
729host_alias
730build_alias
731LIBS
732ECHO_T
733ECHO_N
734ECHO_C
735DEFS
736mandir
737localedir
738libdir
739psdir
740pdfdir
741dvidir
742htmldir
743infodir
744docdir
745oldincludedir
746includedir
747localstatedir
748sharedstatedir
749sysconfdir
750datadir
751datarootdir
752libexecdir
753sbindir
754bindir
755program_transform_name
756prefix
757exec_prefix
758PACKAGE_URL
759PACKAGE_BUGREPORT
760PACKAGE_STRING
761PACKAGE_VERSION
762PACKAGE_TARNAME
763PACKAGE_NAME
764PATH_SEPARATOR
765SHELL'
766ac_subst_files=''
767ac_user_opts='
768enable_option_checking
769enable_silent_rules
770enable_maintainer_mode
771enable_shared
772enable_static
773with_pic
774enable_fast_install
775enable_dependency_tracking
776with_gnu_ld
777with_sysroot
778enable_libtool_lock
779enable_fixed_point
780enable_fixed_point_debug
tlegrand@google.com3c3902f2013-12-09 08:35:25 +0000781enable_float_api
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +0000782enable_custom_modes
783enable_float_approx
tlegrand@google.com3c3902f2013-12-09 08:35:25 +0000784enable_asm
785enable_rtcd
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +0000786enable_assertions
787enable_fuzzing
788enable_doc
tlegrand@google.com3c3902f2013-12-09 08:35:25 +0000789enable_extra_programs
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +0000790'
791 ac_precious_vars='build_alias
792host_alias
793target_alias
794CC
795CFLAGS
796LDFLAGS
797LIBS
798CPPFLAGS
tlegrand@google.com3c3902f2013-12-09 08:35:25 +0000799CPP
800CCAS
801CCASFLAGS'
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +0000802
803
804# Initialize some variables set by options.
805ac_init_help=
806ac_init_version=false
807ac_unrecognized_opts=
808ac_unrecognized_sep=
809# The variables have the same names as the options, with
810# dashes changed to underlines.
811cache_file=/dev/null
812exec_prefix=NONE
813no_create=
814no_recursion=
815prefix=NONE
816program_prefix=NONE
817program_suffix=NONE
818program_transform_name=s,x,x,
819silent=
820site=
821srcdir=
822verbose=
823x_includes=NONE
824x_libraries=NONE
825
826# Installation directory options.
827# These are left unexpanded so users can "make install exec_prefix=/foo"
828# and all the variables that are supposed to be based on exec_prefix
829# by default will actually change.
830# Use braces instead of parens because sh, perl, etc. also accept them.
831# (The list follows the same order as the GNU Coding Standards.)
832bindir='${exec_prefix}/bin'
833sbindir='${exec_prefix}/sbin'
834libexecdir='${exec_prefix}/libexec'
835datarootdir='${prefix}/share'
836datadir='${datarootdir}'
837sysconfdir='${prefix}/etc'
838sharedstatedir='${prefix}/com'
839localstatedir='${prefix}/var'
840includedir='${prefix}/include'
841oldincludedir='/usr/include'
tlegrand@google.com3c3902f2013-12-09 08:35:25 +0000842docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +0000843infodir='${datarootdir}/info'
844htmldir='${docdir}'
845dvidir='${docdir}'
846pdfdir='${docdir}'
847psdir='${docdir}'
848libdir='${exec_prefix}/lib'
849localedir='${datarootdir}/locale'
850mandir='${datarootdir}/man'
851
852ac_prev=
853ac_dashdash=
854for ac_option
855do
856 # If the previous option needs an argument, assign it.
857 if test -n "$ac_prev"; then
858 eval $ac_prev=\$ac_option
859 ac_prev=
860 continue
861 fi
862
863 case $ac_option in
864 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865 *=) ac_optarg= ;;
866 *) ac_optarg=yes ;;
867 esac
868
869 # Accept the important Cygnus configure options, so we can diagnose typos.
870
871 case $ac_dashdash$ac_option in
872 --)
873 ac_dashdash=yes ;;
874
875 -bindir | --bindir | --bindi | --bind | --bin | --bi)
876 ac_prev=bindir ;;
877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878 bindir=$ac_optarg ;;
879
880 -build | --build | --buil | --bui | --bu)
881 ac_prev=build_alias ;;
882 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883 build_alias=$ac_optarg ;;
884
885 -cache-file | --cache-file | --cache-fil | --cache-fi \
886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887 ac_prev=cache_file ;;
888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890 cache_file=$ac_optarg ;;
891
892 --config-cache | -C)
893 cache_file=config.cache ;;
894
895 -datadir | --datadir | --datadi | --datad)
896 ac_prev=datadir ;;
897 -datadir=* | --datadir=* | --datadi=* | --datad=*)
898 datadir=$ac_optarg ;;
899
900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901 | --dataroo | --dataro | --datar)
902 ac_prev=datarootdir ;;
903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905 datarootdir=$ac_optarg ;;
906
907 -disable-* | --disable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
915 *"
916"enable_$ac_useropt"
917"*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=no ;;
922
923 -docdir | --docdir | --docdi | --doc | --do)
924 ac_prev=docdir ;;
925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926 docdir=$ac_optarg ;;
927
928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929 ac_prev=dvidir ;;
930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931 dvidir=$ac_optarg ;;
932
933 -enable-* | --enable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error $? "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942"enable_$ac_useropt"
943"*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=\$ac_optarg ;;
948
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
957
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
961
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
968
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
973
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
979
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
986
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
991
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
996
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1003
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1008
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1015
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1020
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1024
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1028
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1032
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1041
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1046
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1053
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1060
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1077
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1082
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1087
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1091
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1097
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1108
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1113
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1118
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1125
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1130
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1133
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1136
1137 -with-* | --with-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146"with_$ac_useropt"
1147"*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=\$ac_optarg ;;
1152
1153 -without-* | --without-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162"with_$ac_useropt"
1163"*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=no ;;
1168
1169 --x)
1170 # Obsolete; use --with-x.
1171 with_x=yes ;;
1172
1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174 | --x-incl | --x-inc | --x-in | --x-i)
1175 ac_prev=x_includes ;;
1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178 x_includes=$ac_optarg ;;
1179
1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182 ac_prev=x_libraries ;;
1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185 x_libraries=$ac_optarg ;;
1186
1187 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1188Try \`$0 --help' for more information"
1189 ;;
1190
1191 *=*)
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 case $ac_envvar in #(
1195 '' | [0-9]* | *[!_$as_cr_alnum]* )
1196 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1197 esac
1198 eval $ac_envvar=\$ac_optarg
1199 export $ac_envvar ;;
1200
1201 *)
1202 # FIXME: should be removed in autoconf 3.0.
1203 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207 ;;
1208
1209 esac
1210done
1211
1212if test -n "$ac_prev"; then
1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214 as_fn_error $? "missing argument to $ac_option"
1215fi
1216
1217if test -n "$ac_unrecognized_opts"; then
1218 case $enable_option_checking in
1219 no) ;;
1220 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222 esac
1223fi
1224
1225# Check all directory arguments for consistency.
1226for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227 datadir sysconfdir sharedstatedir localstatedir includedir \
1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229 libdir localedir mandir
1230do
1231 eval ac_val=\$$ac_var
1232 # Remove trailing slashes.
1233 case $ac_val in
1234 */ )
1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236 eval $ac_var=\$ac_val;;
1237 esac
1238 # Be sure to have absolute directory names.
1239 case $ac_val in
1240 [\\/$]* | ?:[\\/]* ) continue;;
1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242 esac
1243 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244done
1245
1246# There might be people who depend on the old broken behavior: `$host'
1247# used to hold the argument of --host etc.
1248# FIXME: To remove some day.
1249build=$build_alias
1250host=$host_alias
1251target=$target_alias
1252
1253# FIXME: To remove some day.
1254if test "x$host_alias" != x; then
1255 if test "x$build_alias" = x; then
1256 cross_compiling=maybe
1257 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1258 If a cross compiler is detected then cross compile mode will be used" >&2
1259 elif test "x$build_alias" != "x$host_alias"; then
1260 cross_compiling=yes
1261 fi
1262fi
1263
1264ac_tool_prefix=
1265test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266
1267test "$silent" = yes && exec 6>/dev/null
1268
1269
1270ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271ac_ls_di=`ls -di .` &&
1272ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273 as_fn_error $? "working directory cannot be determined"
1274test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275 as_fn_error $? "pwd does not report name of working directory"
1276
1277
1278# Find the source files, if location was not specified.
1279if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287$as_echo X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)[^/].*/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\).*/{
1301 s//\1/
1302 q
1303 }
1304 s/.*/./; q'`
1305 srcdir=$ac_confdir
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 srcdir=..
1308 fi
1309else
1310 ac_srcdir_defaulted=no
1311fi
1312if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315fi
1316ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317ac_abs_confdir=`(
1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319 pwd)`
1320# When building in place, set srcdir=.
1321if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 srcdir=.
1323fi
1324# Remove unnecessary trailing slashes from srcdir.
1325# Double slashes in file names in object file debugging info
1326# mess up M-x gdb in Emacs.
1327case $srcdir in
1328*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329esac
1330for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335done
1336
1337#
1338# Report the --help message.
1339#
1340if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1343 cat <<_ACEOF
tlegrand@google.com3c3902f2013-12-09 08:35:25 +00001344\`configure' configures opus 1.1 to adapt to many kinds of systems.
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00001345
1346Usage: $0 [OPTION]... [VAR=VALUE]...
1347
1348To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349VAR=VALUE. See below for descriptions of some of the useful variables.
1350
1351Defaults for the options are specified in brackets.
1352
1353Configuration:
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print \`checking ...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1363
1364Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1368 [PREFIX]
1369
1370By default, \`make install' will install all the files in
1371\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373for instance \`--prefix=\$HOME'.
1374
1375For better control, use the options below.
1376
1377Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
tlegrand@google.com3c3902f2013-12-09 08:35:25 +00001392 --docdir=DIR documentation root [DATAROOTDIR/doc/opus]
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00001393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1397_ACEOF
1398
1399 cat <<\_ACEOF
1400
1401Program names:
1402 --program-prefix=PREFIX prepend PREFIX to installed program names
1403 --program-suffix=SUFFIX append SUFFIX to installed program names
1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1405
1406System types:
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409_ACEOF
1410fi
1411
1412if test -n "$ac_init_help"; then
tlegrand@google.com3c3902f2013-12-09 08:35:25 +00001413 case $ac_init_help in
1414 short | recursive ) echo "Configuration of opus 1.1:";;
1415 esac
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00001416 cat <<\_ACEOF
1417
1418Optional Features:
1419 --disable-option-checking ignore unrecognized --enable/--with options
1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1422 --enable-silent-rules less verbose build output (undo: `make V=1')
1423 --disable-silent-rules verbose build output (undo: `make V=0')
sergeyu@chromium.org6b6bee22013-02-28 21:17:26 +00001424 --disable-maintainer-mode disable make rules and dependencies not useful
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00001425 (and sometimes confusing) to the casual installer
1426 --enable-shared[=PKGS] build shared libraries [default=yes]
1427 --enable-static[=PKGS] build static libraries [default=yes]
1428 --enable-fast-install[=PKGS]
1429 optimize for fast installation [default=yes]
1430 --disable-dependency-tracking speeds up one-time build
1431 --enable-dependency-tracking do not reject slow dependency extractors
1432 --disable-libtool-lock avoid locking (might break parallel builds)
tlegrand@google.com3c3902f2013-12-09 08:35:25 +00001433 --enable-fixed-point compile without floating point (for machines without
1434 a fast enough FPU)
1435 --enable-fixed-point-debug
1436 debug fixed-point implementation
1437 --disable-float-api compile without the floating point API (for machines
1438 with no float library)
1439 --enable-custom-modes enable non-Opus modes, e.g. 44.1 kHz & 2^n frames
1440 --enable-float-approx enable fast approximations for floating point
1441 --disable-asm Disable assembly optimizations
1442 --disable-rtcd Disable run-time CPU capabilities detection
1443 --enable-assertions enable additional software error checking
1444 --enable-fuzzing causes the encoder to make random decisions
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00001445 --disable-doc Do not build API documentation
tlegrand@google.com3c3902f2013-12-09 08:35:25 +00001446 --disable-extra-programs
1447 Do not build extra programs (demo and tests)
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00001448
1449Optional Packages:
1450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1452 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1453 both]
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1455 --with-sysroot=DIR Search for dependent libraries within DIR
1456 (or the compiler's sysroot if not specified).
1457
1458Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1466 CPP C preprocessor
tlegrand@google.com3c3902f2013-12-09 08:35:25 +00001467 CCAS assembler compiler command (defaults to CC)
1468 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00001469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
tlegrand@google.com3c3902f2013-12-09 08:35:25 +00001473Report bugs to <opus@xiph.org>.
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00001474_ACEOF
1475ac_status=$?
1476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483 continue
1484 ac_builddir=.
1485
1486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
1489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
1501
1502case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515esac
1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1526 else
1527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1530 done
1531fi
1532
1533test -n "$ac_init_help" && exit $ac_status
1534if $ac_init_version; then
1535 cat <<\_ACEOF
tlegrand@google.com3c3902f2013-12-09 08:35:25 +00001536opus configure 1.1
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00001537generated by GNU Autoconf 2.68
1538
1539Copyright (C) 2010 Free Software Foundation, Inc.
1540This configure script is free software; the Free Software Foundation
1541gives unlimited permission to copy, distribute and modify it.
1542_ACEOF
1543 exit
1544fi
1545
1546## ------------------------ ##
1547## Autoconf initialization. ##
1548## ------------------------ ##
1549
1550# ac_fn_c_try_compile LINENO
1551# --------------------------
1552# Try to compile conftest.$ac_ext, and return whether this succeeded.
1553ac_fn_c_try_compile ()
1554{
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext
1557 if { { ac_try="$ac_compile"
1558case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561esac
1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563$as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.$ac_objext; then :
1576 ac_retval=0
1577else
1578 $as_echo "$as_me: failed program was:" >&5
1579sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1
1582fi
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1585
1586} # ac_fn_c_try_compile
1587
1588# ac_fn_c_try_link LINENO
1589# -----------------------
1590# Try to link conftest.$ac_ext, and return whether this succeeded.
1591ac_fn_c_try_link ()
1592{
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext conftest$ac_exeext
1595 if { { ac_try="$ac_link"
1596case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599esac
1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601$as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_link") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1608 fi
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest$ac_exeext && {
1614 test "$cross_compiling" = yes ||
1615 $as_test_x conftest$ac_exeext
1616 }; then :
1617 ac_retval=0
1618else
1619 $as_echo "$as_me: failed program was:" >&5
1620sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=1
1623fi
1624 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1625 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1626 # interfere with the next link command; also delete a directory that is
1627 # left behind by Apple's compiler. We do this before executing the actions.
1628 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1631
1632} # ac_fn_c_try_link
1633
1634# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1635# -------------------------------------------------------
1636# Tests whether HEADER exists and can be compiled using the include files in
1637# INCLUDES, setting the cache variable VAR accordingly.
1638ac_fn_c_check_header_compile ()
1639{
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642$as_echo_n "checking for $2... " >&6; }
1643if eval \${$3+:} false; then :
1644 $as_echo_n "(cached) " >&6
1645else
1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647/* end confdefs.h. */
1648$4
1649#include <$2>
1650_ACEOF
1651if ac_fn_c_try_compile "$LINENO"; then :
1652 eval "$3=yes"
1653else
1654 eval "$3=no"
1655fi
1656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1657fi
1658eval ac_res=\$$3
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660$as_echo "$ac_res" >&6; }
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662
1663} # ac_fn_c_check_header_compile
1664
1665# ac_fn_c_try_cpp LINENO
1666# ----------------------
1667# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1668ac_fn_c_try_cpp ()
1669{
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_cpp conftest.$ac_ext"
1672case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } > conftest.i && {
1687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 }; then :
1690 ac_retval=0
1691else
1692 $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696fi
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1699
1700} # ac_fn_c_try_cpp
1701
1702# ac_fn_c_try_run LINENO
1703# ----------------------
1704# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1705# that executables *can* be run.
1706ac_fn_c_try_run ()
1707{
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_link"
1710case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>&5
1717 ac_status=$?
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1720 { { case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_try") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; }; }; then :
1730 ac_retval=0
1731else
1732 $as_echo "$as_me: program exited with status $ac_status" >&5
1733 $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=$ac_status
1737fi
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_run
1743
1744# ac_fn_c_check_func LINENO FUNC VAR
1745# ----------------------------------
1746# Tests whether FUNC exists, setting the cache variable VAR accordingly
1747ac_fn_c_check_func ()
1748{
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751$as_echo_n "checking for $2... " >&6; }
1752if eval \${$3+:} false; then :
1753 $as_echo_n "(cached) " >&6
1754else
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h. */
1757/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1759#define $2 innocuous_$2
1760
1761/* System header to define __stub macros and hopefully few prototypes,
1762 which can conflict with char $2 (); below.
1763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1764 <limits.h> exists even on freestanding compilers. */
1765
1766#ifdef __STDC__
1767# include <limits.h>
1768#else
1769# include <assert.h>
1770#endif
1771
1772#undef $2
1773
1774/* Override any GCC internal prototype to avoid an error.
1775 Use char because int might match the return type of a GCC
1776 builtin and then its argument prototype would still apply. */
1777#ifdef __cplusplus
1778extern "C"
1779#endif
1780char $2 ();
1781/* The GNU C library defines this for functions which it implements
1782 to always fail with ENOSYS. Some functions are actually named
1783 something starting with __ and the normal name is an alias. */
1784#if defined __stub_$2 || defined __stub___$2
1785choke me
1786#endif
1787
1788int
1789main ()
1790{
1791return $2 ();
1792 ;
1793 return 0;
1794}
1795_ACEOF
1796if ac_fn_c_try_link "$LINENO"; then :
1797 eval "$3=yes"
1798else
1799 eval "$3=no"
1800fi
1801rm -f core conftest.err conftest.$ac_objext \
1802 conftest$ac_exeext conftest.$ac_ext
1803fi
1804eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809} # ac_fn_c_check_func
1810
1811# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1812# -------------------------------------------------------
1813# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1814# the include files in INCLUDES and setting the cache variable VAR
1815# accordingly.
1816ac_fn_c_check_header_mongrel ()
1817{
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 if eval \${$3+:} false; then :
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821$as_echo_n "checking for $2... " >&6; }
1822if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1824fi
1825eval ac_res=\$$3
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827$as_echo "$ac_res" >&6; }
1828else
1829 # Is the header compilable?
1830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1831$as_echo_n "checking $2 usability... " >&6; }
1832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h. */
1834$4
1835#include <$2>
1836_ACEOF
1837if ac_fn_c_try_compile "$LINENO"; then :
1838 ac_header_compiler=yes
1839else
1840 ac_header_compiler=no
1841fi
1842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1844$as_echo "$ac_header_compiler" >&6; }
1845
1846# Is the header present?
1847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1848$as_echo_n "checking $2 presence... " >&6; }
1849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h. */
1851#include <$2>
1852_ACEOF
1853if ac_fn_c_try_cpp "$LINENO"; then :
1854 ac_header_preproc=yes
1855else
1856 ac_header_preproc=no
1857fi
1858rm -f conftest.err conftest.i conftest.$ac_ext
1859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1860$as_echo "$ac_header_preproc" >&6; }
1861
1862# So? What about this header?
1863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1864 yes:no: )
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1866$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 ;;
1870 no:yes:* )
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1872$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1874$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1876$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1878$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1880$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
tlegrand@google.com3c3902f2013-12-09 08:35:25 +00001881( $as_echo "## ---------------------------- ##
1882## Report this to opus@xiph.org ##
1883## ---------------------------- ##"
1884 ) | sed "s/^/$as_me: WARNING: /" >&2
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00001885 ;;
1886esac
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888$as_echo_n "checking for $2... " >&6; }
1889if eval \${$3+:} false; then :
1890 $as_echo_n "(cached) " >&6
1891else
1892 eval "$3=\$ac_header_compiler"
1893fi
1894eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896$as_echo "$ac_res" >&6; }
1897fi
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900} # ac_fn_c_check_header_mongrel
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00001901cat >config.log <<_ACEOF
1902This file contains any messages produced by compilers while
1903running configure, to aid debugging if configure makes a mistake.
1904
tlegrand@google.com3c3902f2013-12-09 08:35:25 +00001905It was created by opus $as_me 1.1, which was
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00001906generated by GNU Autoconf 2.68. Invocation command line was
1907
1908 $ $0 $@
1909
1910_ACEOF
1911exec 5>>config.log
1912{
1913cat <<_ASUNAME
1914## --------- ##
1915## Platform. ##
1916## --------- ##
1917
1918hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922uname -v = `(uname -v) 2>/dev/null || echo unknown`
1923
1924/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1926
1927/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1928/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1929/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1931/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1932/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1933/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1934
1935_ASUNAME
1936
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 $as_echo "PATH: $as_dir"
1943 done
1944IFS=$as_save_IFS
1945
1946} >&5
1947
1948cat >&5 <<_ACEOF
1949
1950
1951## ----------- ##
1952## Core tests. ##
1953## ----------- ##
1954
1955_ACEOF
1956
1957
1958# Keep a trace of the command line.
1959# Strip out --no-create and --no-recursion so they do not pile up.
1960# Strip out --silent because we don't want to record it for future runs.
1961# Also quote any args containing shell meta-characters.
1962# Make two passes to allow for proper duplicate-argument suppression.
1963ac_configure_args=
1964ac_configure_args0=
1965ac_configure_args1=
1966ac_must_keep_next=false
1967for ac_pass in 1 2
1968do
1969 for ac_arg
1970 do
1971 case $ac_arg in
1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974 | -silent | --silent | --silen | --sile | --sil)
1975 continue ;;
1976 *\'*)
1977 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 esac
1979 case $ac_pass in
1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1981 2)
1982 as_fn_append ac_configure_args1 " '$ac_arg'"
1983 if test $ac_must_keep_next = true; then
1984 ac_must_keep_next=false # Got value, back to normal.
1985 else
1986 case $ac_arg in
1987 *=* | --config-cache | -C | -disable-* | --disable-* \
1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990 | -with-* | --with-* | -without-* | --without-* | --x)
1991 case "$ac_configure_args0 " in
1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993 esac
1994 ;;
1995 -* ) ac_must_keep_next=true ;;
1996 esac
1997 fi
1998 as_fn_append ac_configure_args " '$ac_arg'"
1999 ;;
2000 esac
2001 done
2002done
2003{ ac_configure_args0=; unset ac_configure_args0;}
2004{ ac_configure_args1=; unset ac_configure_args1;}
2005
2006# When interrupted or exit'd, cleanup temporary files, and complete
2007# config.log. We remove comments because anyway the quotes in there
2008# would cause problems or look ugly.
2009# WARNING: Use '\'' to represent an apostrophe within the trap.
2010# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011trap 'exit_status=$?
2012 # Save into config.log some information that might help in debugging.
2013 {
2014 echo
2015
2016 $as_echo "## ---------------- ##
2017## Cache variables. ##
2018## ---------------- ##"
2019 echo
2020 # The following way of writing the cache mishandles newlines in values,
2021(
2022 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023 eval ac_val=\$$ac_var
2024 case $ac_val in #(
2025 *${as_nl}*)
2026 case $ac_var in #(
2027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029 esac
2030 case $ac_var in #(
2031 _ | IFS | as_nl) ;; #(
2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033 *) { eval $ac_var=; unset $ac_var;} ;;
2034 esac ;;
2035 esac
2036 done
2037 (set) 2>&1 |
2038 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039 *${as_nl}ac_space=\ *)
2040 sed -n \
2041 "s/'\''/'\''\\\\'\'''\''/g;
2042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043 ;; #(
2044 *)
2045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2046 ;;
2047 esac |
2048 sort
2049)
2050 echo
2051
2052 $as_echo "## ----------------- ##
2053## Output variables. ##
2054## ----------------- ##"
2055 echo
2056 for ac_var in $ac_subst_vars
2057 do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 $as_echo "$ac_var='\''$ac_val'\''"
2063 done | sort
2064 echo
2065
2066 if test -n "$ac_subst_files"; then
2067 $as_echo "## ------------------- ##
2068## File substitutions. ##
2069## ------------------- ##"
2070 echo
2071 for ac_var in $ac_subst_files
2072 do
2073 eval ac_val=\$$ac_var
2074 case $ac_val in
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 esac
2077 $as_echo "$ac_var='\''$ac_val'\''"
2078 done | sort
2079 echo
2080 fi
2081
2082 if test -s confdefs.h; then
2083 $as_echo "## ----------- ##
2084## confdefs.h. ##
2085## ----------- ##"
2086 echo
2087 cat confdefs.h
2088 echo
2089 fi
2090 test "$ac_signal" != 0 &&
2091 $as_echo "$as_me: caught signal $ac_signal"
2092 $as_echo "$as_me: exit $exit_status"
2093 } >&5
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096 exit $exit_status
2097' 0
2098for ac_signal in 1 2 13 15; do
2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100done
2101ac_signal=0
2102
2103# confdefs.h avoids OS command line length limits that DEFS can exceed.
2104rm -f -r conftest* confdefs.h
2105
2106$as_echo "/* confdefs.h */" > confdefs.h
2107
2108# Predefined preprocessor variables.
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_NAME "$PACKAGE_NAME"
2112_ACEOF
2113
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2116_ACEOF
2117
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_VERSION "$PACKAGE_VERSION"
2120_ACEOF
2121
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_STRING "$PACKAGE_STRING"
2124_ACEOF
2125
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2128_ACEOF
2129
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_URL "$PACKAGE_URL"
2132_ACEOF
2133
2134
2135# Let the site file select an alternate cache file if it wants to.
2136# Prefer an explicitly selected file to automatically selected ones.
2137ac_site_file1=NONE
2138ac_site_file2=NONE
2139if test -n "$CONFIG_SITE"; then
2140 # We do not want a PATH search for config.site.
2141 case $CONFIG_SITE in #((
2142 -*) ac_site_file1=./$CONFIG_SITE;;
2143 */*) ac_site_file1=$CONFIG_SITE;;
2144 *) ac_site_file1=./$CONFIG_SITE;;
2145 esac
2146elif test "x$prefix" != xNONE; then
2147 ac_site_file1=$prefix/share/config.site
2148 ac_site_file2=$prefix/etc/config.site
2149else
2150 ac_site_file1=$ac_default_prefix/share/config.site
2151 ac_site_file2=$ac_default_prefix/etc/config.site
2152fi
2153for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2154do
2155 test "x$ac_site_file" = xNONE && continue
2156 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2158$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2159 sed 's/^/| /' "$ac_site_file" >&5
2160 . "$ac_site_file" \
2161 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2163as_fn_error $? "failed to load site script $ac_site_file
2164See \`config.log' for more details" "$LINENO" 5; }
2165 fi
2166done
2167
2168if test -r "$cache_file"; then
2169 # Some versions of bash will fail to source /dev/null (special files
2170 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2171 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2173$as_echo "$as_me: loading cache $cache_file" >&6;}
2174 case $cache_file in
2175 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2176 *) . "./$cache_file";;
2177 esac
2178 fi
2179else
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2181$as_echo "$as_me: creating cache $cache_file" >&6;}
2182 >$cache_file
2183fi
2184
2185# Check that the precious variables saved in the cache have kept the same
2186# value.
2187ac_cache_corrupted=false
2188for ac_var in $ac_precious_vars; do
2189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2190 eval ac_new_set=\$ac_env_${ac_var}_set
2191 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2192 eval ac_new_val=\$ac_env_${ac_var}_value
2193 case $ac_old_set,$ac_new_set in
2194 set,)
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2196$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2197 ac_cache_corrupted=: ;;
2198 ,set)
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2200$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2201 ac_cache_corrupted=: ;;
2202 ,);;
2203 *)
2204 if test "x$ac_old_val" != "x$ac_new_val"; then
2205 # differences in whitespace do not lead to failure.
2206 ac_old_val_w=`echo x $ac_old_val`
2207 ac_new_val_w=`echo x $ac_new_val`
2208 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2210$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2211 ac_cache_corrupted=:
2212 else
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2214$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2215 eval $ac_var=\$ac_old_val
2216 fi
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2218$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2220$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2221 fi;;
2222 esac
2223 # Pass precious variables to config.status.
2224 if test "$ac_new_set" = set; then
2225 case $ac_new_val in
2226 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2227 *) ac_arg=$ac_var=$ac_new_val ;;
2228 esac
2229 case " $ac_configure_args " in
2230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2231 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2232 esac
2233 fi
2234done
2235if $ac_cache_corrupted; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2239$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2240 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2241fi
2242## -------------------- ##
2243## Main body of script. ##
2244## -------------------- ##
2245
2246ac_ext=c
2247ac_cpp='$CPP $CPPFLAGS'
2248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250ac_compiler_gnu=$ac_cv_c_compiler_gnu
2251
2252
2253
tlegrand@google.com3c3902f2013-12-09 08:35:25 +00002254
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00002255
2256
2257# Check whether --enable-silent-rules was given.
2258if test "${enable_silent_rules+set}" = set; then :
2259 enableval=$enable_silent_rules;
2260fi
2261
2262case $enable_silent_rules in
2263yes) AM_DEFAULT_VERBOSITY=0;;
2264no) AM_DEFAULT_VERBOSITY=1;;
2265*) AM_DEFAULT_VERBOSITY=0;;
2266esac
2267am_make=${MAKE-make}
2268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2269$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2270if ${am_cv_make_support_nested_variables+:} false; then :
2271 $as_echo_n "(cached) " >&6
2272else
2273 if $as_echo 'TRUE=$(BAR$(V))
2274BAR0=false
2275BAR1=true
2276V=1
2277am__doit:
2278 @$(TRUE)
2279.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2280 am_cv_make_support_nested_variables=yes
2281else
2282 am_cv_make_support_nested_variables=no
2283fi
2284fi
2285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2286$as_echo "$am_cv_make_support_nested_variables" >&6; }
2287if test $am_cv_make_support_nested_variables = yes; then
2288 AM_V='$(V)'
2289 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2290else
2291 AM_V=$AM_DEFAULT_VERBOSITY
2292 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2293fi
2294AM_BACKSLASH='\'
2295
2296
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00002297# For libtool.
tlegrand@google.com3c3902f2013-12-09 08:35:25 +00002298OPUS_LT_CURRENT=5
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00002299OPUS_LT_REVISION=0
tlegrand@google.com3c3902f2013-12-09 08:35:25 +00002300OPUS_LT_AGE=5
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00002301
2302
2303
2304
2305
2306am__api_version='1.11'
2307
2308ac_aux_dir=
2309for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2310 if test -f "$ac_dir/install-sh"; then
2311 ac_aux_dir=$ac_dir
2312 ac_install_sh="$ac_aux_dir/install-sh -c"
2313 break
2314 elif test -f "$ac_dir/install.sh"; then
2315 ac_aux_dir=$ac_dir
2316 ac_install_sh="$ac_aux_dir/install.sh -c"
2317 break
2318 elif test -f "$ac_dir/shtool"; then
2319 ac_aux_dir=$ac_dir
2320 ac_install_sh="$ac_aux_dir/shtool install -c"
2321 break
2322 fi
2323done
2324if test -z "$ac_aux_dir"; then
2325 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2326fi
2327
2328# These three variables are undocumented and unsupported,
2329# and are intended to be withdrawn in a future Autoconf release.
2330# They can cause serious problems if a builder's source tree is in a directory
2331# whose full name contains unusual characters.
2332ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2333ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2334ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2335
2336
2337# Find a good install program. We prefer a C program (faster),
2338# so one script is as good as another. But avoid the broken or
2339# incompatible versions:
2340# SysV /etc/install, /usr/sbin/install
2341# SunOS /usr/etc/install
2342# IRIX /sbin/install
2343# AIX /bin/install
2344# AmigaOS /C/install, which installs bootblocks on floppy discs
2345# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2346# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2347# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2348# OS/2's system install, which has a completely different semantic
2349# ./install, which can be erroneously created by make from ./install.sh.
2350# Reject install programs that cannot install multiple files.
2351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2352$as_echo_n "checking for a BSD-compatible install... " >&6; }
2353if test -z "$INSTALL"; then
2354if ${ac_cv_path_install+:} false; then :
2355 $as_echo_n "(cached) " >&6
2356else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 # Account for people who put trailing slashes in PATH elements.
2363case $as_dir/ in #((
2364 ./ | .// | /[cC]/* | \
2365 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2366 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2367 /usr/ucb/* ) ;;
2368 *)
2369 # OSF1 and SCO ODT 3.0 have their own names for install.
2370 # Don't use installbsd from OSF since it installs stuff as root
2371 # by default.
2372 for ac_prog in ginstall scoinst install; do
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2375 if test $ac_prog = install &&
2376 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2377 # AIX install. It has an incompatible calling convention.
2378 :
2379 elif test $ac_prog = install &&
2380 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2381 # program-specific install script used by HP pwplus--don't use.
2382 :
2383 else
2384 rm -rf conftest.one conftest.two conftest.dir
2385 echo one > conftest.one
2386 echo two > conftest.two
2387 mkdir conftest.dir
2388 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2389 test -s conftest.one && test -s conftest.two &&
2390 test -s conftest.dir/conftest.one &&
2391 test -s conftest.dir/conftest.two
2392 then
2393 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2394 break 3
2395 fi
2396 fi
2397 fi
2398 done
2399 done
2400 ;;
2401esac
2402
2403 done
2404IFS=$as_save_IFS
2405
2406rm -rf conftest.one conftest.two conftest.dir
2407
2408fi
2409 if test "${ac_cv_path_install+set}" = set; then
2410 INSTALL=$ac_cv_path_install
2411 else
2412 # As a last resort, use the slow shell script. Don't cache a
2413 # value for INSTALL within a source directory, because that will
2414 # break other packages using the cache if that directory is
2415 # removed, or if the value is a relative name.
2416 INSTALL=$ac_install_sh
2417 fi
2418fi
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2420$as_echo "$INSTALL" >&6; }
2421
2422# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2423# It thinks the first close brace ends the variable substitution.
2424test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2425
2426test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2427
2428test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2429
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2431$as_echo_n "checking whether build environment is sane... " >&6; }
2432# Just in case
2433sleep 1
2434echo timestamp > conftest.file
2435# Reject unsafe characters in $srcdir or the absolute working directory
2436# name. Accept space and tab only in the latter.
2437am_lf='
2438'
2439case `pwd` in
2440 *[\\\"\#\$\&\'\`$am_lf]*)
2441 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2442esac
2443case $srcdir in
2444 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2445 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2446esac
2447
2448# Do `set' in a subshell so we don't clobber the current shell's
2449# arguments. Must try -L first in case configure is actually a
2450# symlink; some systems play weird games with the mod time of symlinks
2451# (eg FreeBSD returns the mod time of the symlink's containing
2452# directory).
2453if (
2454 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2455 if test "$*" = "X"; then
2456 # -L didn't work.
2457 set X `ls -t "$srcdir/configure" conftest.file`
2458 fi
2459 rm -f conftest.file
2460 if test "$*" != "X $srcdir/configure conftest.file" \
2461 && test "$*" != "X conftest.file $srcdir/configure"; then
2462
2463 # If neither matched, then we have a broken ls. This can happen
2464 # if, for instance, CONFIG_SHELL is bash and it inherits a
2465 # broken ls alias from the environment. This has actually
2466 # happened. Such a system could not be considered "sane".
2467 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2468alias in your environment" "$LINENO" 5
2469 fi
2470
2471 test "$2" = conftest.file
2472 )
2473then
2474 # Ok.
2475 :
2476else
2477 as_fn_error $? "newly created file is older than distributed files!
2478Check your system clock" "$LINENO" 5
2479fi
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2481$as_echo "yes" >&6; }
2482test "$program_prefix" != NONE &&
2483 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2484# Use a double $ so make ignores it.
2485test "$program_suffix" != NONE &&
2486 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2487# Double any \ or $.
2488# By default was `s,x,x', remove it if useless.
2489ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2490program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2491
2492# expand $ac_aux_dir to an absolute path
2493am_aux_dir=`cd $ac_aux_dir && pwd`
2494
2495if test x"${MISSING+set}" != xset; then
2496 case $am_aux_dir in
2497 *\ * | *\ *)
2498 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2499 *)
2500 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2501 esac
2502fi
2503# Use eval to expand $SHELL
2504if eval "$MISSING --run true"; then
2505 am_missing_run="$MISSING --run "
2506else
2507 am_missing_run=
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2509$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2510fi
2511
2512if test x"${install_sh}" != xset; then
2513 case $am_aux_dir in
2514 *\ * | *\ *)
2515 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2516 *)
2517 install_sh="\${SHELL} $am_aux_dir/install-sh"
2518 esac
2519fi
2520
2521# Installed binaries are usually stripped using `strip' when the user
2522# run `make install-strip'. However `strip' might not be the right
2523# tool to use in cross-compilation environments, therefore Automake
2524# will honor the `STRIP' environment variable to overrule this program.
2525if test "$cross_compiling" != no; then
2526 if test -n "$ac_tool_prefix"; then
2527 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2528set dummy ${ac_tool_prefix}strip; ac_word=$2
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530$as_echo_n "checking for $ac_word... " >&6; }
2531if ${ac_cv_prog_STRIP+:} false; then :
2532 $as_echo_n "(cached) " >&6
2533else
2534 if test -n "$STRIP"; then
2535 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2536else
2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538for as_dir in $PATH
2539do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2547 fi
2548done
2549 done
2550IFS=$as_save_IFS
2551
2552fi
2553fi
2554STRIP=$ac_cv_prog_STRIP
2555if test -n "$STRIP"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2557$as_echo "$STRIP" >&6; }
2558else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560$as_echo "no" >&6; }
2561fi
2562
2563
2564fi
2565if test -z "$ac_cv_prog_STRIP"; then
2566 ac_ct_STRIP=$STRIP
2567 # Extract the first word of "strip", so it can be a program name with args.
2568set dummy strip; ac_word=$2
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570$as_echo_n "checking for $ac_word... " >&6; }
2571if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573else
2574 if test -n "$ac_ct_STRIP"; then
2575 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2576else
2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578for as_dir in $PATH
2579do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584 ac_cv_prog_ac_ct_STRIP="strip"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2587 fi
2588done
2589 done
2590IFS=$as_save_IFS
2591
2592fi
2593fi
2594ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2595if test -n "$ac_ct_STRIP"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2597$as_echo "$ac_ct_STRIP" >&6; }
2598else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600$as_echo "no" >&6; }
2601fi
2602
2603 if test "x$ac_ct_STRIP" = x; then
2604 STRIP=":"
2605 else
2606 case $cross_compiling:$ac_tool_warned in
2607yes:)
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2610ac_tool_warned=yes ;;
2611esac
2612 STRIP=$ac_ct_STRIP
2613 fi
2614else
2615 STRIP="$ac_cv_prog_STRIP"
2616fi
2617
2618fi
2619INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2620
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2622$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2623if test -z "$MKDIR_P"; then
2624 if ${ac_cv_path_mkdir+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2629do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_prog in mkdir gmkdir; do
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2635 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2636 'mkdir (GNU coreutils) '* | \
2637 'mkdir (coreutils) '* | \
2638 'mkdir (fileutils) '4.1*)
2639 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2640 break 3;;
2641 esac
2642 done
2643 done
2644 done
2645IFS=$as_save_IFS
2646
2647fi
2648
2649 test -d ./--version && rmdir ./--version
2650 if test "${ac_cv_path_mkdir+set}" = set; then
2651 MKDIR_P="$ac_cv_path_mkdir -p"
2652 else
2653 # As a last resort, use the slow shell script. Don't cache a
2654 # value for MKDIR_P within a source directory, because that will
2655 # break other packages using the cache if that directory is
2656 # removed, or if the value is a relative name.
2657 MKDIR_P="$ac_install_sh -d"
2658 fi
2659fi
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2661$as_echo "$MKDIR_P" >&6; }
2662
2663mkdir_p="$MKDIR_P"
2664case $mkdir_p in
2665 [\\/$]* | ?:[\\/]*) ;;
2666 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2667esac
2668
2669for ac_prog in gawk mawk nawk awk
2670do
2671 # Extract the first word of "$ac_prog", so it can be a program name with args.
2672set dummy $ac_prog; ac_word=$2
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674$as_echo_n "checking for $ac_word... " >&6; }
2675if ${ac_cv_prog_AWK+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677else
2678 if test -n "$AWK"; then
2679 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 ac_cv_prog_AWK="$ac_prog"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692done
2693 done
2694IFS=$as_save_IFS
2695
2696fi
2697fi
2698AWK=$ac_cv_prog_AWK
2699if test -n "$AWK"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2701$as_echo "$AWK" >&6; }
2702else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704$as_echo "no" >&6; }
2705fi
2706
2707
2708 test -n "$AWK" && break
2709done
2710
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2712$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2713set x ${MAKE-make}
2714ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2715if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717else
2718 cat >conftest.make <<\_ACEOF
2719SHELL = /bin/sh
2720all:
2721 @echo '@@@%%%=$(MAKE)=@@@%%%'
2722_ACEOF
2723# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2724case `${MAKE-make} -f conftest.make 2>/dev/null` in
2725 *@@@%%%=?*=@@@%%%*)
2726 eval ac_cv_prog_make_${ac_make}_set=yes;;
2727 *)
2728 eval ac_cv_prog_make_${ac_make}_set=no;;
2729esac
2730rm -f conftest.make
2731fi
2732if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2734$as_echo "yes" >&6; }
2735 SET_MAKE=
2736else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738$as_echo "no" >&6; }
2739 SET_MAKE="MAKE=${MAKE-make}"
2740fi
2741
2742rm -rf .tst 2>/dev/null
2743mkdir .tst 2>/dev/null
2744if test -d .tst; then
2745 am__leading_dot=.
2746else
2747 am__leading_dot=_
2748fi
2749rmdir .tst 2>/dev/null
2750
2751if test "`cd $srcdir && pwd`" != "`pwd`"; then
2752 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2753 # is not polluted with repeated "-I."
2754 am__isrc=' -I$(srcdir)'
2755 # test to see if srcdir already configured
2756 if test -f $srcdir/config.status; then
2757 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2758 fi
2759fi
2760
2761# test whether we have cygpath
2762if test -z "$CYGPATH_W"; then
2763 if (cygpath --version) >/dev/null 2>/dev/null; then
2764 CYGPATH_W='cygpath -w'
2765 else
2766 CYGPATH_W=echo
2767 fi
2768fi
2769
2770
2771# Define the identity of the package.
tlegrand@google.com3c3902f2013-12-09 08:35:25 +00002772 PACKAGE='opus'
2773 VERSION='1.1'
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00002774
2775
2776# Some tools Automake needs.
2777
2778ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2779
2780
2781AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2782
2783
2784AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2785
2786
2787AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2788
2789
2790MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2791
2792# We need awk for the "check" target. The system "awk" is bad on
2793# some platforms.
2794# Always define AMTAR for backward compatibility. Yes, it's still used
2795# in the wild :-( We should find a proper way to deprecate it ...
2796AMTAR='$${TAR-tar}'
2797
2798am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2799
2800
2801
2802
2803
2804
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2806$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2807 # Check whether --enable-maintainer-mode was given.
2808if test "${enable_maintainer_mode+set}" = set; then :
2809 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2810else
sergeyu@chromium.org6b6bee22013-02-28 21:17:26 +00002811 USE_MAINTAINER_MODE=yes
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00002812fi
2813
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2815$as_echo "$USE_MAINTAINER_MODE" >&6; }
2816 if test $USE_MAINTAINER_MODE = yes; then
2817 MAINTAINER_MODE_TRUE=
2818 MAINTAINER_MODE_FALSE='#'
2819else
2820 MAINTAINER_MODE_TRUE='#'
2821 MAINTAINER_MODE_FALSE=
2822fi
2823
2824 MAINT=$MAINTAINER_MODE_TRUE
2825
2826
2827
2828# Make sure we can run config.sub.
2829$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2830 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2831
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2833$as_echo_n "checking build system type... " >&6; }
2834if ${ac_cv_build+:} false; then :
2835 $as_echo_n "(cached) " >&6
2836else
2837 ac_build_alias=$build_alias
2838test "x$ac_build_alias" = x &&
2839 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2840test "x$ac_build_alias" = x &&
2841 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2842ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2843 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2844
2845fi
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2847$as_echo "$ac_cv_build" >&6; }
2848case $ac_cv_build in
2849*-*-*) ;;
2850*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2851esac
2852build=$ac_cv_build
2853ac_save_IFS=$IFS; IFS='-'
2854set x $ac_cv_build
2855shift
2856build_cpu=$1
2857build_vendor=$2
2858shift; shift
2859# Remember, the first character of IFS is used to create $*,
2860# except with old shells:
2861build_os=$*
2862IFS=$ac_save_IFS
2863case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2864
2865
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2867$as_echo_n "checking host system type... " >&6; }
2868if ${ac_cv_host+:} false; then :
2869 $as_echo_n "(cached) " >&6
2870else
2871 if test "x$host_alias" = x; then
2872 ac_cv_host=$ac_cv_build
2873else
2874 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2875 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2876fi
2877
2878fi
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2880$as_echo "$ac_cv_host" >&6; }
2881case $ac_cv_host in
2882*-*-*) ;;
2883*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2884esac
2885host=$ac_cv_host
2886ac_save_IFS=$IFS; IFS='-'
2887set x $ac_cv_host
2888shift
2889host_cpu=$1
2890host_vendor=$2
2891shift; shift
2892# Remember, the first character of IFS is used to create $*,
2893# except with old shells:
2894host_os=$*
2895IFS=$ac_save_IFS
2896case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2897
2898
2899
2900case $host_os in
2901 *mingw32* ) MINGW32=yes;;
2902 * ) MINGW32=no;;
2903esac
2904
2905case `pwd` in
2906 *\ * | *\ *)
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2908$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2909esac
2910
2911
2912
2913macro_version='2.4.2'
2914macro_revision='1.3337'
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928ltmain="$ac_aux_dir/ltmain.sh"
2929
2930# Backslashify metacharacters that are still active within
2931# double-quoted strings.
2932sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2933
2934# Same as above, but do not quote variable references.
2935double_quote_subst='s/\(["`\\]\)/\\\1/g'
2936
2937# Sed substitution to delay expansion of an escaped shell variable in a
2938# double_quote_subst'ed string.
2939delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2940
2941# Sed substitution to delay expansion of an escaped single quote.
2942delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2943
2944# Sed substitution to avoid accidental globbing in evaled expressions
2945no_glob_subst='s/\*/\\\*/g'
2946
2947ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2948ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2949ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2950
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2952$as_echo_n "checking how to print strings... " >&6; }
2953# Test print first, because it will be a builtin if present.
2954if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2955 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2956 ECHO='print -r --'
2957elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2958 ECHO='printf %s\n'
2959else
2960 # Use this function as a fallback that always works.
2961 func_fallback_echo ()
2962 {
2963 eval 'cat <<_LTECHO_EOF
2964$1
2965_LTECHO_EOF'
2966 }
2967 ECHO='func_fallback_echo'
2968fi
2969
2970# func_echo_all arg...
2971# Invoke $ECHO with all args, space-separated.
2972func_echo_all ()
2973{
2974 $ECHO ""
2975}
2976
2977case "$ECHO" in
2978 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2979$as_echo "printf" >&6; } ;;
2980 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2981$as_echo "print -r" >&6; } ;;
2982 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2983$as_echo "cat" >&6; } ;;
2984esac
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999DEPDIR="${am__leading_dot}deps"
3000
3001ac_config_commands="$ac_config_commands depfiles"
3002
3003
3004am_make=${MAKE-make}
3005cat > confinc << 'END'
3006am__doit:
3007 @echo this is the am__doit target
3008.PHONY: am__doit
3009END
3010# If we don't find an include directive, just comment out the code.
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3012$as_echo_n "checking for style of include used by $am_make... " >&6; }
3013am__include="#"
3014am__quote=
3015_am_result=none
3016# First try GNU make style include.
3017echo "include confinc" > confmf
3018# Ignore all kinds of additional output from `make'.
3019case `$am_make -s -f confmf 2> /dev/null` in #(
3020*the\ am__doit\ target*)
3021 am__include=include
3022 am__quote=
3023 _am_result=GNU
3024 ;;
3025esac
3026# Now try BSD make style include.
3027if test "$am__include" = "#"; then
3028 echo '.include "confinc"' > confmf
3029 case `$am_make -s -f confmf 2> /dev/null` in #(
3030 *the\ am__doit\ target*)
3031 am__include=.include
3032 am__quote="\""
3033 _am_result=BSD
3034 ;;
3035 esac
3036fi
3037
3038
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3040$as_echo "$_am_result" >&6; }
3041rm -f confinc confmf
3042
3043# Check whether --enable-dependency-tracking was given.
3044if test "${enable_dependency_tracking+set}" = set; then :
3045 enableval=$enable_dependency_tracking;
3046fi
3047
3048if test "x$enable_dependency_tracking" != xno; then
3049 am_depcomp="$ac_aux_dir/depcomp"
3050 AMDEPBACKSLASH='\'
3051 am__nodep='_no'
3052fi
3053 if test "x$enable_dependency_tracking" != xno; then
3054 AMDEP_TRUE=
3055 AMDEP_FALSE='#'
3056else
3057 AMDEP_TRUE='#'
3058 AMDEP_FALSE=
3059fi
3060
3061
3062ac_ext=c
3063ac_cpp='$CPP $CPPFLAGS'
3064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066ac_compiler_gnu=$ac_cv_c_compiler_gnu
3067if test -n "$ac_tool_prefix"; then
3068 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3069set dummy ${ac_tool_prefix}gcc; ac_word=$2
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071$as_echo_n "checking for $ac_word... " >&6; }
3072if ${ac_cv_prog_CC+:} false; then :
3073 $as_echo_n "(cached) " >&6
3074else
3075 if test -n "$CC"; then
3076 ac_cv_prog_CC="$CC" # Let the user override the test.
3077else
3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079for as_dir in $PATH
3080do
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 break 2
3088 fi
3089done
3090 done
3091IFS=$as_save_IFS
3092
3093fi
3094fi
3095CC=$ac_cv_prog_CC
3096if test -n "$CC"; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3098$as_echo "$CC" >&6; }
3099else
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101$as_echo "no" >&6; }
3102fi
3103
3104
3105fi
3106if test -z "$ac_cv_prog_CC"; then
3107 ac_ct_CC=$CC
3108 # Extract the first word of "gcc", so it can be a program name with args.
3109set dummy gcc; ac_word=$2
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111$as_echo_n "checking for $ac_word... " >&6; }
3112if ${ac_cv_prog_ac_ct_CC+:} false; then :
3113 $as_echo_n "(cached) " >&6
3114else
3115 if test -n "$ac_ct_CC"; then
3116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3117else
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125 ac_cv_prog_ac_ct_CC="gcc"
3126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129done
3130 done
3131IFS=$as_save_IFS
3132
3133fi
3134fi
3135ac_ct_CC=$ac_cv_prog_ac_ct_CC
3136if test -n "$ac_ct_CC"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3138$as_echo "$ac_ct_CC" >&6; }
3139else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141$as_echo "no" >&6; }
3142fi
3143
3144 if test "x$ac_ct_CC" = x; then
3145 CC=""
3146 else
3147 case $cross_compiling:$ac_tool_warned in
3148yes:)
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3151ac_tool_warned=yes ;;
3152esac
3153 CC=$ac_ct_CC
3154 fi
3155else
3156 CC="$ac_cv_prog_CC"
3157fi
3158
3159if test -z "$CC"; then
3160 if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3162set dummy ${ac_tool_prefix}cc; ac_word=$2
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164$as_echo_n "checking for $ac_word... " >&6; }
3165if ${ac_cv_prog_CC+:} false; then :
3166 $as_echo_n "(cached) " >&6
3167else
3168 if test -n "$CC"; then
3169 ac_cv_prog_CC="$CC" # Let the user override the test.
3170else
3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172for as_dir in $PATH
3173do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178 ac_cv_prog_CC="${ac_tool_prefix}cc"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182done
3183 done
3184IFS=$as_save_IFS
3185
3186fi
3187fi
3188CC=$ac_cv_prog_CC
3189if test -n "$CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3191$as_echo "$CC" >&6; }
3192else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194$as_echo "no" >&6; }
3195fi
3196
3197
3198 fi
3199fi
3200if test -z "$CC"; then
3201 # Extract the first word of "cc", so it can be a program name with args.
3202set dummy cc; ac_word=$2
3203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204$as_echo_n "checking for $ac_word... " >&6; }
3205if ${ac_cv_prog_CC+:} false; then :
3206 $as_echo_n "(cached) " >&6
3207else
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test.
3210else
3211 ac_prog_rejected=no
3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213for as_dir in $PATH
3214do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3219 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3220 ac_prog_rejected=yes
3221 continue
3222 fi
3223 ac_cv_prog_CC="cc"
3224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 break 2
3226 fi
3227done
3228 done
3229IFS=$as_save_IFS
3230
3231if test $ac_prog_rejected = yes; then
3232 # We found a bogon in the path, so make sure we never use it.
3233 set dummy $ac_cv_prog_CC
3234 shift
3235 if test $# != 0; then
3236 # We chose a different compiler from the bogus one.
3237 # However, it has the same basename, so the bogon will be chosen
3238 # first if we set CC to just the basename; use the full file name.
3239 shift
3240 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3241 fi
3242fi
3243fi
3244fi
3245CC=$ac_cv_prog_CC
3246if test -n "$CC"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3248$as_echo "$CC" >&6; }
3249else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251$as_echo "no" >&6; }
3252fi
3253
3254
3255fi
3256if test -z "$CC"; then
3257 if test -n "$ac_tool_prefix"; then
3258 for ac_prog in cl.exe
3259 do
3260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3261set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263$as_echo_n "checking for $ac_word... " >&6; }
3264if ${ac_cv_prog_CC+:} false; then :
3265 $as_echo_n "(cached) " >&6
3266else
3267 if test -n "$CC"; then
3268 ac_cv_prog_CC="$CC" # Let the user override the test.
3269else
3270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271for as_dir in $PATH
3272do
3273 IFS=$as_save_IFS
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279 break 2
3280 fi
3281done
3282 done
3283IFS=$as_save_IFS
3284
3285fi
3286fi
3287CC=$ac_cv_prog_CC
3288if test -n "$CC"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3290$as_echo "$CC" >&6; }
3291else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294fi
3295
3296
3297 test -n "$CC" && break
3298 done
3299fi
3300if test -z "$CC"; then
3301 ac_ct_CC=$CC
3302 for ac_prog in cl.exe
3303do
3304 # Extract the first word of "$ac_prog", so it can be a program name with args.
3305set dummy $ac_prog; ac_word=$2
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307$as_echo_n "checking for $ac_word... " >&6; }
3308if ${ac_cv_prog_ac_ct_CC+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310else
3311 if test -n "$ac_ct_CC"; then
3312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3313else
3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315for as_dir in $PATH
3316do
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321 ac_cv_prog_ac_ct_CC="$ac_prog"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3324 fi
3325done
3326 done
3327IFS=$as_save_IFS
3328
3329fi
3330fi
3331ac_ct_CC=$ac_cv_prog_ac_ct_CC
3332if test -n "$ac_ct_CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3334$as_echo "$ac_ct_CC" >&6; }
3335else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337$as_echo "no" >&6; }
3338fi
3339
3340
3341 test -n "$ac_ct_CC" && break
3342done
3343
3344 if test "x$ac_ct_CC" = x; then
3345 CC=""
3346 else
3347 case $cross_compiling:$ac_tool_warned in
3348yes:)
3349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3351ac_tool_warned=yes ;;
3352esac
3353 CC=$ac_ct_CC
3354 fi
3355fi
3356
3357fi
3358
3359
3360test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362as_fn_error $? "no acceptable C compiler found in \$PATH
3363See \`config.log' for more details" "$LINENO" 5; }
3364
3365# Provide some information about the compiler.
3366$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3367set X $ac_compile
3368ac_compiler=$2
3369for ac_option in --version -v -V -qversion; do
3370 { { ac_try="$ac_compiler $ac_option >&5"
3371case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374esac
3375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376$as_echo "$ac_try_echo"; } >&5
3377 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3378 ac_status=$?
3379 if test -s conftest.err; then
3380 sed '10a\
3381... rest of stderr output deleted ...
3382 10q' conftest.err >conftest.er1
3383 cat conftest.er1 >&5
3384 fi
3385 rm -f conftest.er1 conftest.err
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }
3388done
3389
3390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391/* end confdefs.h. */
3392
3393int
3394main ()
3395{
3396
3397 ;
3398 return 0;
3399}
3400_ACEOF
3401ac_clean_files_save=$ac_clean_files
3402ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3403# Try to create an executable without -o first, disregard a.out.
3404# It will help us diagnose broken compilers, and finding out an intuition
3405# of exeext.
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3407$as_echo_n "checking whether the C compiler works... " >&6; }
3408ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3409
3410# The possible output files:
3411ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3412
3413ac_rmfiles=
3414for ac_file in $ac_files
3415do
3416 case $ac_file in
3417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3418 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3419 esac
3420done
3421rm -f $ac_rmfiles
3422
3423if { { ac_try="$ac_link_default"
3424case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427esac
3428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429$as_echo "$ac_try_echo"; } >&5
3430 (eval "$ac_link_default") 2>&5
3431 ac_status=$?
3432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433 test $ac_status = 0; }; then :
3434 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3435# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3436# in a Makefile. We should not override ac_cv_exeext if it was cached,
3437# so that the user can short-circuit this test for compilers unknown to
3438# Autoconf.
3439for ac_file in $ac_files ''
3440do
3441 test -f "$ac_file" || continue
3442 case $ac_file in
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3444 ;;
3445 [ab].out )
3446 # We found the default executable, but exeext='' is most
3447 # certainly right.
3448 break;;
3449 *.* )
3450 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3451 then :; else
3452 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3453 fi
3454 # We set ac_cv_exeext here because the later test for it is not
3455 # safe: cross compilers may not add the suffix if given an `-o'
3456 # argument, so we may need to know it at that point already.
3457 # Even if this section looks crufty: it has the advantage of
3458 # actually working.
3459 break;;
3460 * )
3461 break;;
3462 esac
3463done
3464test "$ac_cv_exeext" = no && ac_cv_exeext=
3465
3466else
3467 ac_file=''
3468fi
3469if test -z "$ac_file"; then :
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471$as_echo "no" >&6; }
3472$as_echo "$as_me: failed program was:" >&5
3473sed 's/^/| /' conftest.$ac_ext >&5
3474
3475{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3477as_fn_error 77 "C compiler cannot create executables
3478See \`config.log' for more details" "$LINENO" 5; }
3479else
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3481$as_echo "yes" >&6; }
3482fi
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3484$as_echo_n "checking for C compiler default output file name... " >&6; }
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3486$as_echo "$ac_file" >&6; }
3487ac_exeext=$ac_cv_exeext
3488
3489rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3490ac_clean_files=$ac_clean_files_save
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3492$as_echo_n "checking for suffix of executables... " >&6; }
3493if { { ac_try="$ac_link"
3494case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497esac
3498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499$as_echo "$ac_try_echo"; } >&5
3500 (eval "$ac_link") 2>&5
3501 ac_status=$?
3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }; then :
3504 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3505# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3506# work properly (i.e., refer to `conftest.exe'), while it won't with
3507# `rm'.
3508for ac_file in conftest.exe conftest conftest.*; do
3509 test -f "$ac_file" || continue
3510 case $ac_file in
3511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3512 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3513 break;;
3514 * ) break;;
3515 esac
3516done
3517else
3518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3521See \`config.log' for more details" "$LINENO" 5; }
3522fi
3523rm -f conftest conftest$ac_cv_exeext
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3525$as_echo "$ac_cv_exeext" >&6; }
3526
3527rm -f conftest.$ac_ext
3528EXEEXT=$ac_cv_exeext
3529ac_exeext=$EXEEXT
3530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531/* end confdefs.h. */
3532#include <stdio.h>
3533int
3534main ()
3535{
3536FILE *f = fopen ("conftest.out", "w");
3537 return ferror (f) || fclose (f) != 0;
3538
3539 ;
3540 return 0;
3541}
3542_ACEOF
3543ac_clean_files="$ac_clean_files conftest.out"
3544# Check that the compiler produces executables we can run. If not, either
3545# the compiler is broken, or we cross compile.
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3547$as_echo_n "checking whether we are cross compiling... " >&6; }
3548if test "$cross_compiling" != yes; then
3549 { { ac_try="$ac_link"
3550case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553esac
3554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3555$as_echo "$ac_try_echo"; } >&5
3556 (eval "$ac_link") 2>&5
3557 ac_status=$?
3558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559 test $ac_status = 0; }
3560 if { ac_try='./conftest$ac_cv_exeext'
3561 { { case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564esac
3565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566$as_echo "$ac_try_echo"; } >&5
3567 (eval "$ac_try") 2>&5
3568 ac_status=$?
3569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3570 test $ac_status = 0; }; }; then
3571 cross_compiling=no
3572 else
3573 if test "$cross_compiling" = maybe; then
3574 cross_compiling=yes
3575 else
3576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578as_fn_error $? "cannot run C compiled programs.
3579If you meant to cross compile, use \`--host'.
3580See \`config.log' for more details" "$LINENO" 5; }
3581 fi
3582 fi
3583fi
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3585$as_echo "$cross_compiling" >&6; }
3586
3587rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3588ac_clean_files=$ac_clean_files_save
3589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3590$as_echo_n "checking for suffix of object files... " >&6; }
3591if ${ac_cv_objext+:} false; then :
3592 $as_echo_n "(cached) " >&6
3593else
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595/* end confdefs.h. */
3596
3597int
3598main ()
3599{
3600
3601 ;
3602 return 0;
3603}
3604_ACEOF
3605rm -f conftest.o conftest.obj
3606if { { ac_try="$ac_compile"
3607case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610esac
3611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612$as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_compile") 2>&5
3614 ac_status=$?
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }; then :
3617 for ac_file in conftest.o conftest.obj conftest.*; do
3618 test -f "$ac_file" || continue;
3619 case $ac_file in
3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3621 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3622 break;;
3623 esac
3624done
3625else
3626 $as_echo "$as_me: failed program was:" >&5
3627sed 's/^/| /' conftest.$ac_ext >&5
3628
3629{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3631as_fn_error $? "cannot compute suffix of object files: cannot compile
3632See \`config.log' for more details" "$LINENO" 5; }
3633fi
3634rm -f conftest.$ac_cv_objext conftest.$ac_ext
3635fi
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3637$as_echo "$ac_cv_objext" >&6; }
3638OBJEXT=$ac_cv_objext
3639ac_objext=$OBJEXT
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3641$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3642if ${ac_cv_c_compiler_gnu+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644else
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646/* end confdefs.h. */
3647
3648int
3649main ()
3650{
3651#ifndef __GNUC__
3652 choke me
3653#endif
3654
3655 ;
3656 return 0;
3657}
3658_ACEOF
3659if ac_fn_c_try_compile "$LINENO"; then :
3660 ac_compiler_gnu=yes
3661else
3662 ac_compiler_gnu=no
3663fi
3664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665ac_cv_c_compiler_gnu=$ac_compiler_gnu
3666
3667fi
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3669$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3670if test $ac_compiler_gnu = yes; then
3671 GCC=yes
3672else
3673 GCC=
3674fi
3675ac_test_CFLAGS=${CFLAGS+set}
3676ac_save_CFLAGS=$CFLAGS
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3678$as_echo_n "checking whether $CC accepts -g... " >&6; }
3679if ${ac_cv_prog_cc_g+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681else
3682 ac_save_c_werror_flag=$ac_c_werror_flag
3683 ac_c_werror_flag=yes
3684 ac_cv_prog_cc_g=no
3685 CFLAGS="-g"
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687/* end confdefs.h. */
3688
3689int
3690main ()
3691{
3692
3693 ;
3694 return 0;
3695}
3696_ACEOF
3697if ac_fn_c_try_compile "$LINENO"; then :
3698 ac_cv_prog_cc_g=yes
3699else
3700 CFLAGS=""
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702/* end confdefs.h. */
3703
3704int
3705main ()
3706{
3707
3708 ;
3709 return 0;
3710}
3711_ACEOF
3712if ac_fn_c_try_compile "$LINENO"; then :
3713
3714else
3715 ac_c_werror_flag=$ac_save_c_werror_flag
3716 CFLAGS="-g"
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718/* end confdefs.h. */
3719
3720int
3721main ()
3722{
3723
3724 ;
3725 return 0;
3726}
3727_ACEOF
3728if ac_fn_c_try_compile "$LINENO"; then :
3729 ac_cv_prog_cc_g=yes
3730fi
3731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732fi
3733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734fi
3735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 ac_c_werror_flag=$ac_save_c_werror_flag
3737fi
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3739$as_echo "$ac_cv_prog_cc_g" >&6; }
3740if test "$ac_test_CFLAGS" = set; then
3741 CFLAGS=$ac_save_CFLAGS
3742elif test $ac_cv_prog_cc_g = yes; then
3743 if test "$GCC" = yes; then
3744 CFLAGS="-g -O2"
3745 else
3746 CFLAGS="-g"
3747 fi
3748else
3749 if test "$GCC" = yes; then
3750 CFLAGS="-O2"
3751 else
3752 CFLAGS=
3753 fi
3754fi
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3756$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3757if ${ac_cv_prog_cc_c89+:} false; then :
3758 $as_echo_n "(cached) " >&6
3759else
3760 ac_cv_prog_cc_c89=no
3761ac_save_CC=$CC
3762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763/* end confdefs.h. */
3764#include <stdarg.h>
3765#include <stdio.h>
3766#include <sys/types.h>
3767#include <sys/stat.h>
3768/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3769struct buf { int x; };
3770FILE * (*rcsopen) (struct buf *, struct stat *, int);
3771static char *e (p, i)
3772 char **p;
3773 int i;
3774{
3775 return p[i];
3776}
3777static char *f (char * (*g) (char **, int), char **p, ...)
3778{
3779 char *s;
3780 va_list v;
3781 va_start (v,p);
3782 s = g (p, va_arg (v,int));
3783 va_end (v);
3784 return s;
3785}
3786
3787/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3788 function prototypes and stuff, but not '\xHH' hex character constants.
3789 These don't provoke an error unfortunately, instead are silently treated
3790 as 'x'. The following induces an error, until -std is added to get
3791 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3792 array size at least. It's necessary to write '\x00'==0 to get something
3793 that's true only with -std. */
3794int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3795
3796/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3797 inside strings and character constants. */
3798#define FOO(x) 'x'
3799int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3800
3801int test (int i, double x);
3802struct s1 {int (*f) (int a);};
3803struct s2 {int (*f) (double a);};
3804int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3805int argc;
3806char **argv;
3807int
3808main ()
3809{
3810return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3811 ;
3812 return 0;
3813}
3814_ACEOF
3815for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3816 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3817do
3818 CC="$ac_save_CC $ac_arg"
3819 if ac_fn_c_try_compile "$LINENO"; then :
3820 ac_cv_prog_cc_c89=$ac_arg
3821fi
3822rm -f core conftest.err conftest.$ac_objext
3823 test "x$ac_cv_prog_cc_c89" != "xno" && break
3824done
3825rm -f conftest.$ac_ext
3826CC=$ac_save_CC
3827
3828fi
3829# AC_CACHE_VAL
3830case "x$ac_cv_prog_cc_c89" in
3831 x)
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3833$as_echo "none needed" >&6; } ;;
3834 xno)
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3836$as_echo "unsupported" >&6; } ;;
3837 *)
3838 CC="$CC $ac_cv_prog_cc_c89"
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3840$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3841esac
3842if test "x$ac_cv_prog_cc_c89" != xno; then :
3843
3844fi
3845
3846ac_ext=c
3847ac_cpp='$CPP $CPPFLAGS'
3848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851
3852depcc="$CC" am_compiler_list=
3853
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3855$as_echo_n "checking dependency style of $depcc... " >&6; }
3856if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3857 $as_echo_n "(cached) " >&6
3858else
3859 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3860 # We make a subdir and do the tests there. Otherwise we can end up
3861 # making bogus files that we don't know about and never remove. For
3862 # instance it was reported that on HP-UX the gcc test will end up
3863 # making a dummy file named `D' -- because `-MD' means `put the output
3864 # in D'.
3865 rm -rf conftest.dir
3866 mkdir conftest.dir
3867 # Copy depcomp to subdir because otherwise we won't find it if we're
3868 # using a relative directory.
3869 cp "$am_depcomp" conftest.dir
3870 cd conftest.dir
3871 # We will build objects and dependencies in a subdirectory because
3872 # it helps to detect inapplicable dependency modes. For instance
3873 # both Tru64's cc and ICC support -MD to output dependencies as a
3874 # side effect of compilation, but ICC will put the dependencies in
3875 # the current directory while Tru64 will put them in the object
3876 # directory.
3877 mkdir sub
3878
3879 am_cv_CC_dependencies_compiler_type=none
3880 if test "$am_compiler_list" = ""; then
3881 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3882 fi
3883 am__universal=false
3884 case " $depcc " in #(
3885 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3886 esac
3887
3888 for depmode in $am_compiler_list; do
3889 # Setup a source with many dependencies, because some compilers
3890 # like to wrap large dependency lists on column 80 (with \), and
3891 # we should not choose a depcomp mode which is confused by this.
3892 #
3893 # We need to recreate these files for each test, as the compiler may
3894 # overwrite some of them when testing with obscure command lines.
3895 # This happens at least with the AIX C compiler.
3896 : > sub/conftest.c
3897 for i in 1 2 3 4 5 6; do
3898 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3899 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3900 # Solaris 8's {/usr,}/bin/sh.
3901 touch sub/conftst$i.h
3902 done
3903 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3904
3905 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3906 # mode. It turns out that the SunPro C++ compiler does not properly
3907 # handle `-M -o', and we need to detect this. Also, some Intel
3908 # versions had trouble with output in subdirs
3909 am__obj=sub/conftest.${OBJEXT-o}
3910 am__minus_obj="-o $am__obj"
3911 case $depmode in
3912 gcc)
3913 # This depmode causes a compiler race in universal mode.
3914 test "$am__universal" = false || continue
3915 ;;
3916 nosideeffect)
3917 # after this tag, mechanisms are not by side-effect, so they'll
3918 # only be used when explicitly requested
3919 if test "x$enable_dependency_tracking" = xyes; then
3920 continue
3921 else
3922 break
3923 fi
3924 ;;
3925 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3926 # This compiler won't grok `-c -o', but also, the minuso test has
3927 # not run yet. These depmodes are late enough in the game, and
3928 # so weak that their functioning should not be impacted.
3929 am__obj=conftest.${OBJEXT-o}
3930 am__minus_obj=
3931 ;;
3932 none) break ;;
3933 esac
3934 if depmode=$depmode \
3935 source=sub/conftest.c object=$am__obj \
3936 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3937 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3938 >/dev/null 2>conftest.err &&
3939 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3940 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3941 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3942 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3943 # icc doesn't choke on unknown options, it will just issue warnings
3944 # or remarks (even with -Werror). So we grep stderr for any message
3945 # that says an option was ignored or not supported.
3946 # When given -MP, icc 7.0 and 7.1 complain thusly:
3947 # icc: Command line warning: ignoring option '-M'; no argument required
3948 # The diagnosis changed in icc 8.0:
3949 # icc: Command line remark: option '-MP' not supported
3950 if (grep 'ignoring option' conftest.err ||
3951 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3952 am_cv_CC_dependencies_compiler_type=$depmode
3953 break
3954 fi
3955 fi
3956 done
3957
3958 cd ..
3959 rm -rf conftest.dir
3960else
3961 am_cv_CC_dependencies_compiler_type=none
3962fi
3963
3964fi
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3966$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3967CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3968
3969 if
3970 test "x$enable_dependency_tracking" != xno \
3971 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3972 am__fastdepCC_TRUE=
3973 am__fastdepCC_FALSE='#'
3974else
3975 am__fastdepCC_TRUE='#'
3976 am__fastdepCC_FALSE=
3977fi
3978
3979
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3981$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3982if ${ac_cv_path_SED+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984else
3985 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3986 for ac_i in 1 2 3 4 5 6 7; do
3987 ac_script="$ac_script$as_nl$ac_script"
3988 done
3989 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3990 { ac_script=; unset ac_script;}
3991 if test -z "$SED"; then
3992 ac_path_SED_found=false
3993 # Loop through the user's path and test for each of PROGNAME-LIST
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995for as_dir in $PATH
3996do
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_prog in sed gsed; do
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4002 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4003# Check for GNU ac_path_SED and select it if it is found.
4004 # Check for GNU $ac_path_SED
4005case `"$ac_path_SED" --version 2>&1` in
4006*GNU*)
4007 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4008*)
4009 ac_count=0
4010 $as_echo_n 0123456789 >"conftest.in"
4011 while :
4012 do
4013 cat "conftest.in" "conftest.in" >"conftest.tmp"
4014 mv "conftest.tmp" "conftest.in"
4015 cp "conftest.in" "conftest.nl"
4016 $as_echo '' >> "conftest.nl"
4017 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4019 as_fn_arith $ac_count + 1 && ac_count=$as_val
4020 if test $ac_count -gt ${ac_path_SED_max-0}; then
4021 # Best one so far, save it but keep looking for a better one
4022 ac_cv_path_SED="$ac_path_SED"
4023 ac_path_SED_max=$ac_count
4024 fi
4025 # 10*(2^10) chars as input seems more than enough
4026 test $ac_count -gt 10 && break
4027 done
4028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4029esac
4030
4031 $ac_path_SED_found && break 3
4032 done
4033 done
4034 done
4035IFS=$as_save_IFS
4036 if test -z "$ac_cv_path_SED"; then
4037 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4038 fi
4039else
4040 ac_cv_path_SED=$SED
4041fi
4042
4043fi
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4045$as_echo "$ac_cv_path_SED" >&6; }
4046 SED="$ac_cv_path_SED"
4047 rm -f conftest.sed
4048
4049test -z "$SED" && SED=sed
4050Xsed="$SED -e 1s/^X//"
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4063$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4064if ${ac_cv_path_GREP+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066else
4067 if test -z "$GREP"; then
4068 ac_path_GREP_found=false
4069 # Loop through the user's path and test for each of PROGNAME-LIST
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4072do
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4075 for ac_prog in grep ggrep; do
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4078 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4079# Check for GNU ac_path_GREP and select it if it is found.
4080 # Check for GNU $ac_path_GREP
4081case `"$ac_path_GREP" --version 2>&1` in
4082*GNU*)
4083 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4084*)
4085 ac_count=0
4086 $as_echo_n 0123456789 >"conftest.in"
4087 while :
4088 do
4089 cat "conftest.in" "conftest.in" >"conftest.tmp"
4090 mv "conftest.tmp" "conftest.in"
4091 cp "conftest.in" "conftest.nl"
4092 $as_echo 'GREP' >> "conftest.nl"
4093 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4094 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4095 as_fn_arith $ac_count + 1 && ac_count=$as_val
4096 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4097 # Best one so far, save it but keep looking for a better one
4098 ac_cv_path_GREP="$ac_path_GREP"
4099 ac_path_GREP_max=$ac_count
4100 fi
4101 # 10*(2^10) chars as input seems more than enough
4102 test $ac_count -gt 10 && break
4103 done
4104 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4105esac
4106
4107 $ac_path_GREP_found && break 3
4108 done
4109 done
4110 done
4111IFS=$as_save_IFS
4112 if test -z "$ac_cv_path_GREP"; then
4113 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4114 fi
4115else
4116 ac_cv_path_GREP=$GREP
4117fi
4118
4119fi
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4121$as_echo "$ac_cv_path_GREP" >&6; }
4122 GREP="$ac_cv_path_GREP"
4123
4124
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4126$as_echo_n "checking for egrep... " >&6; }
4127if ${ac_cv_path_EGREP+:} false; then :
4128 $as_echo_n "(cached) " >&6
4129else
4130 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4131 then ac_cv_path_EGREP="$GREP -E"
4132 else
4133 if test -z "$EGREP"; then
4134 ac_path_EGREP_found=false
4135 # Loop through the user's path and test for each of PROGNAME-LIST
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4138do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_prog in egrep; do
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4144 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4145# Check for GNU ac_path_EGREP and select it if it is found.
4146 # Check for GNU $ac_path_EGREP
4147case `"$ac_path_EGREP" --version 2>&1` in
4148*GNU*)
4149 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4150*)
4151 ac_count=0
4152 $as_echo_n 0123456789 >"conftest.in"
4153 while :
4154 do
4155 cat "conftest.in" "conftest.in" >"conftest.tmp"
4156 mv "conftest.tmp" "conftest.in"
4157 cp "conftest.in" "conftest.nl"
4158 $as_echo 'EGREP' >> "conftest.nl"
4159 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4161 as_fn_arith $ac_count + 1 && ac_count=$as_val
4162 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4163 # Best one so far, save it but keep looking for a better one
4164 ac_cv_path_EGREP="$ac_path_EGREP"
4165 ac_path_EGREP_max=$ac_count
4166 fi
4167 # 10*(2^10) chars as input seems more than enough
4168 test $ac_count -gt 10 && break
4169 done
4170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4171esac
4172
4173 $ac_path_EGREP_found && break 3
4174 done
4175 done
4176 done
4177IFS=$as_save_IFS
4178 if test -z "$ac_cv_path_EGREP"; then
4179 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4180 fi
4181else
4182 ac_cv_path_EGREP=$EGREP
4183fi
4184
4185 fi
4186fi
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4188$as_echo "$ac_cv_path_EGREP" >&6; }
4189 EGREP="$ac_cv_path_EGREP"
4190
4191
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4193$as_echo_n "checking for fgrep... " >&6; }
4194if ${ac_cv_path_FGREP+:} false; then :
4195 $as_echo_n "(cached) " >&6
4196else
4197 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4198 then ac_cv_path_FGREP="$GREP -F"
4199 else
4200 if test -z "$FGREP"; then
4201 ac_path_FGREP_found=false
4202 # Loop through the user's path and test for each of PROGNAME-LIST
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4205do
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_prog in fgrep; do
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4211 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4212# Check for GNU ac_path_FGREP and select it if it is found.
4213 # Check for GNU $ac_path_FGREP
4214case `"$ac_path_FGREP" --version 2>&1` in
4215*GNU*)
4216 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4217*)
4218 ac_count=0
4219 $as_echo_n 0123456789 >"conftest.in"
4220 while :
4221 do
4222 cat "conftest.in" "conftest.in" >"conftest.tmp"
4223 mv "conftest.tmp" "conftest.in"
4224 cp "conftest.in" "conftest.nl"
4225 $as_echo 'FGREP' >> "conftest.nl"
4226 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4228 as_fn_arith $ac_count + 1 && ac_count=$as_val
4229 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4230 # Best one so far, save it but keep looking for a better one
4231 ac_cv_path_FGREP="$ac_path_FGREP"
4232 ac_path_FGREP_max=$ac_count
4233 fi
4234 # 10*(2^10) chars as input seems more than enough
4235 test $ac_count -gt 10 && break
4236 done
4237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4238esac
4239
4240 $ac_path_FGREP_found && break 3
4241 done
4242 done
4243 done
4244IFS=$as_save_IFS
4245 if test -z "$ac_cv_path_FGREP"; then
4246 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4247 fi
4248else
4249 ac_cv_path_FGREP=$FGREP
4250fi
4251
4252 fi
4253fi
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4255$as_echo "$ac_cv_path_FGREP" >&6; }
4256 FGREP="$ac_cv_path_FGREP"
4257
4258
4259test -z "$GREP" && GREP=grep
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279# Check whether --with-gnu-ld was given.
4280if test "${with_gnu_ld+set}" = set; then :
4281 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4282else
4283 with_gnu_ld=no
4284fi
4285
4286ac_prog=ld
4287if test "$GCC" = yes; then
4288 # Check if gcc -print-prog-name=ld gives a path.
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4290$as_echo_n "checking for ld used by $CC... " >&6; }
4291 case $host in
4292 *-*-mingw*)
4293 # gcc leaves a trailing carriage return which upsets mingw
4294 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4295 *)
4296 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4297 esac
4298 case $ac_prog in
4299 # Accept absolute paths.
4300 [\\/]* | ?:[\\/]*)
4301 re_direlt='/[^/][^/]*/\.\./'
4302 # Canonicalize the pathname of ld
4303 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4304 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4305 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4306 done
4307 test -z "$LD" && LD="$ac_prog"
4308 ;;
4309 "")
4310 # If it fails, then pretend we aren't using GCC.
4311 ac_prog=ld
4312 ;;
4313 *)
4314 # If it is relative, then search for the first ld in PATH.
4315 with_gnu_ld=unknown
4316 ;;
4317 esac
4318elif test "$with_gnu_ld" = yes; then
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4320$as_echo_n "checking for GNU ld... " >&6; }
4321else
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4323$as_echo_n "checking for non-GNU ld... " >&6; }
4324fi
4325if ${lt_cv_path_LD+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327else
4328 if test -z "$LD"; then
4329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4330 for ac_dir in $PATH; do
4331 IFS="$lt_save_ifs"
4332 test -z "$ac_dir" && ac_dir=.
4333 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4334 lt_cv_path_LD="$ac_dir/$ac_prog"
4335 # Check to see if the program is GNU ld. I'd rather use --version,
4336 # but apparently some variants of GNU ld only accept -v.
4337 # Break only if it was the GNU/non-GNU ld that we prefer.
4338 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4339 *GNU* | *'with BFD'*)
4340 test "$with_gnu_ld" != no && break
4341 ;;
4342 *)
4343 test "$with_gnu_ld" != yes && break
4344 ;;
4345 esac
4346 fi
4347 done
4348 IFS="$lt_save_ifs"
4349else
4350 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4351fi
4352fi
4353
4354LD="$lt_cv_path_LD"
4355if test -n "$LD"; then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4357$as_echo "$LD" >&6; }
4358else
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360$as_echo "no" >&6; }
4361fi
4362test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4364$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4365if ${lt_cv_prog_gnu_ld+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367else
4368 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4369case `$LD -v 2>&1 </dev/null` in
4370*GNU* | *'with BFD'*)
4371 lt_cv_prog_gnu_ld=yes
4372 ;;
4373*)
4374 lt_cv_prog_gnu_ld=no
4375 ;;
4376esac
4377fi
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4379$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4380with_gnu_ld=$lt_cv_prog_gnu_ld
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4391$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4392if ${lt_cv_path_NM+:} false; then :
4393 $as_echo_n "(cached) " >&6
4394else
4395 if test -n "$NM"; then
4396 # Let the user override the test.
4397 lt_cv_path_NM="$NM"
4398else
4399 lt_nm_to_check="${ac_tool_prefix}nm"
4400 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4401 lt_nm_to_check="$lt_nm_to_check nm"
4402 fi
4403 for lt_tmp_nm in $lt_nm_to_check; do
4404 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4405 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4406 IFS="$lt_save_ifs"
4407 test -z "$ac_dir" && ac_dir=.
4408 tmp_nm="$ac_dir/$lt_tmp_nm"
4409 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4410 # Check to see if the nm accepts a BSD-compat flag.
4411 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4412 # nm: unknown option "B" ignored
4413 # Tru64's nm complains that /dev/null is an invalid object file
4414 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4415 */dev/null* | *'Invalid file or object type'*)
4416 lt_cv_path_NM="$tmp_nm -B"
4417 break
4418 ;;
4419 *)
4420 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4421 */dev/null*)
4422 lt_cv_path_NM="$tmp_nm -p"
4423 break
4424 ;;
4425 *)
4426 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4427 continue # so that we can try to find one that supports BSD flags
4428 ;;
4429 esac
4430 ;;
4431 esac
4432 fi
4433 done
4434 IFS="$lt_save_ifs"
4435 done
4436 : ${lt_cv_path_NM=no}
4437fi
4438fi
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4440$as_echo "$lt_cv_path_NM" >&6; }
4441if test "$lt_cv_path_NM" != "no"; then
4442 NM="$lt_cv_path_NM"
4443else
4444 # Didn't find any BSD compatible name lister, look for dumpbin.
4445 if test -n "$DUMPBIN"; then :
4446 # Let the user override the test.
4447 else
4448 if test -n "$ac_tool_prefix"; then
4449 for ac_prog in dumpbin "link -dump"
4450 do
4451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4452set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454$as_echo_n "checking for $ac_word... " >&6; }
4455if ${ac_cv_prog_DUMPBIN+:} false; then :
4456 $as_echo_n "(cached) " >&6
4457else
4458 if test -n "$DUMPBIN"; then
4459 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4460else
4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4471 fi
4472done
4473 done
4474IFS=$as_save_IFS
4475
4476fi
4477fi
4478DUMPBIN=$ac_cv_prog_DUMPBIN
4479if test -n "$DUMPBIN"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4481$as_echo "$DUMPBIN" >&6; }
4482else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484$as_echo "no" >&6; }
4485fi
4486
4487
4488 test -n "$DUMPBIN" && break
4489 done
4490fi
4491if test -z "$DUMPBIN"; then
4492 ac_ct_DUMPBIN=$DUMPBIN
4493 for ac_prog in dumpbin "link -dump"
4494do
4495 # Extract the first word of "$ac_prog", so it can be a program name with args.
4496set dummy $ac_prog; ac_word=$2
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498$as_echo_n "checking for $ac_word... " >&6; }
4499if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4500 $as_echo_n "(cached) " >&6
4501else
4502 if test -n "$ac_ct_DUMPBIN"; then
4503 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4504else
4505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH
4507do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4515 fi
4516done
4517 done
4518IFS=$as_save_IFS
4519
4520fi
4521fi
4522ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4523if test -n "$ac_ct_DUMPBIN"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4525$as_echo "$ac_ct_DUMPBIN" >&6; }
4526else
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528$as_echo "no" >&6; }
4529fi
4530
4531
4532 test -n "$ac_ct_DUMPBIN" && break
4533done
4534
4535 if test "x$ac_ct_DUMPBIN" = x; then
4536 DUMPBIN=":"
4537 else
4538 case $cross_compiling:$ac_tool_warned in
4539yes:)
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4542ac_tool_warned=yes ;;
4543esac
4544 DUMPBIN=$ac_ct_DUMPBIN
4545 fi
4546fi
4547
4548 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4549 *COFF*)
4550 DUMPBIN="$DUMPBIN -symbols"
4551 ;;
4552 *)
4553 DUMPBIN=:
4554 ;;
4555 esac
4556 fi
4557
4558 if test "$DUMPBIN" != ":"; then
4559 NM="$DUMPBIN"
4560 fi
4561fi
4562test -z "$NM" && NM=nm
4563
4564
4565
4566
4567
4568
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4570$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4571if ${lt_cv_nm_interface+:} false; then :
4572 $as_echo_n "(cached) " >&6
4573else
4574 lt_cv_nm_interface="BSD nm"
4575 echo "int some_variable = 0;" > conftest.$ac_ext
4576 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4577 (eval "$ac_compile" 2>conftest.err)
4578 cat conftest.err >&5
4579 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4580 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4581 cat conftest.err >&5
4582 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4583 cat conftest.out >&5
4584 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4585 lt_cv_nm_interface="MS dumpbin"
4586 fi
4587 rm -f conftest*
4588fi
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4590$as_echo "$lt_cv_nm_interface" >&6; }
4591
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4593$as_echo_n "checking whether ln -s works... " >&6; }
4594LN_S=$as_ln_s
4595if test "$LN_S" = "ln -s"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4597$as_echo "yes" >&6; }
4598else
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4600$as_echo "no, using $LN_S" >&6; }
4601fi
4602
4603# find the maximum length of command line arguments
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4605$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4606if ${lt_cv_sys_max_cmd_len+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608else
4609 i=0
4610 teststring="ABCD"
4611
4612 case $build_os in
4613 msdosdjgpp*)
4614 # On DJGPP, this test can blow up pretty badly due to problems in libc
4615 # (any single argument exceeding 2000 bytes causes a buffer overrun
4616 # during glob expansion). Even if it were fixed, the result of this
4617 # check would be larger than it should be.
4618 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4619 ;;
4620
4621 gnu*)
4622 # Under GNU Hurd, this test is not required because there is
4623 # no limit to the length of command line arguments.
4624 # Libtool will interpret -1 as no limit whatsoever
4625 lt_cv_sys_max_cmd_len=-1;
4626 ;;
4627
4628 cygwin* | mingw* | cegcc*)
4629 # On Win9x/ME, this test blows up -- it succeeds, but takes
4630 # about 5 minutes as the teststring grows exponentially.
4631 # Worse, since 9x/ME are not pre-emptively multitasking,
4632 # you end up with a "frozen" computer, even though with patience
4633 # the test eventually succeeds (with a max line length of 256k).
4634 # Instead, let's just punt: use the minimum linelength reported by
4635 # all of the supported platforms: 8192 (on NT/2K/XP).
4636 lt_cv_sys_max_cmd_len=8192;
4637 ;;
4638
4639 mint*)
4640 # On MiNT this can take a long time and run out of memory.
4641 lt_cv_sys_max_cmd_len=8192;
4642 ;;
4643
4644 amigaos*)
4645 # On AmigaOS with pdksh, this test takes hours, literally.
4646 # So we just punt and use a minimum line length of 8192.
4647 lt_cv_sys_max_cmd_len=8192;
4648 ;;
4649
4650 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4651 # This has been around since 386BSD, at least. Likely further.
4652 if test -x /sbin/sysctl; then
4653 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4654 elif test -x /usr/sbin/sysctl; then
4655 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4656 else
4657 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4658 fi
4659 # And add a safety zone
4660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4662 ;;
4663
4664 interix*)
4665 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4666 lt_cv_sys_max_cmd_len=196608
4667 ;;
4668
4669 os2*)
4670 # The test takes a long time on OS/2.
4671 lt_cv_sys_max_cmd_len=8192
4672 ;;
4673
4674 osf*)
4675 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4676 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4677 # nice to cause kernel panics so lets avoid the loop below.
4678 # First set a reasonable default.
4679 lt_cv_sys_max_cmd_len=16384
4680 #
4681 if test -x /sbin/sysconfig; then
4682 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4683 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4684 esac
4685 fi
4686 ;;
4687 sco3.2v5*)
4688 lt_cv_sys_max_cmd_len=102400
4689 ;;
4690 sysv5* | sco5v6* | sysv4.2uw2*)
4691 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4692 if test -n "$kargmax"; then
4693 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4694 else
4695 lt_cv_sys_max_cmd_len=32768
4696 fi
4697 ;;
4698 *)
4699 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4700 if test -n "$lt_cv_sys_max_cmd_len"; then
4701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4703 else
4704 # Make teststring a little bigger before we do anything with it.
4705 # a 1K string should be a reasonable start.
4706 for i in 1 2 3 4 5 6 7 8 ; do
4707 teststring=$teststring$teststring
4708 done
4709 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4710 # If test is not a shell built-in, we'll probably end up computing a
4711 # maximum length that is only half of the actual maximum length, but
4712 # we can't tell.
4713 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4714 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4715 test $i != 17 # 1/2 MB should be enough
4716 do
4717 i=`expr $i + 1`
4718 teststring=$teststring$teststring
4719 done
4720 # Only check the string length outside the loop.
4721 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4722 teststring=
4723 # Add a significant safety factor because C++ compilers can tack on
4724 # massive amounts of additional arguments before passing them to the
4725 # linker. It appears as though 1/2 is a usable value.
4726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4727 fi
4728 ;;
4729 esac
4730
4731fi
4732
4733if test -n $lt_cv_sys_max_cmd_len ; then
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4735$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4736else
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4738$as_echo "none" >&6; }
4739fi
4740max_cmd_len=$lt_cv_sys_max_cmd_len
4741
4742
4743
4744
4745
4746
4747: ${CP="cp -f"}
4748: ${MV="mv -f"}
4749: ${RM="rm -f"}
4750
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4752$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4753# Try some XSI features
4754xsi_shell=no
4755( _lt_dummy="a/b/c"
4756 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4757 = c,a/b,b/c, \
4758 && eval 'test $(( 1 + 1 )) -eq 2 \
4759 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4760 && xsi_shell=yes
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4762$as_echo "$xsi_shell" >&6; }
4763
4764
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4766$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4767lt_shell_append=no
4768( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4769 >/dev/null 2>&1 \
4770 && lt_shell_append=yes
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4772$as_echo "$lt_shell_append" >&6; }
4773
4774
4775if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4776 lt_unset=unset
4777else
4778 lt_unset=false
4779fi
4780
4781
4782
4783
4784
4785# test EBCDIC or ASCII
4786case `echo X|tr X '\101'` in
4787 A) # ASCII based system
4788 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4789 lt_SP2NL='tr \040 \012'
4790 lt_NL2SP='tr \015\012 \040\040'
4791 ;;
4792 *) # EBCDIC based system
4793 lt_SP2NL='tr \100 \n'
4794 lt_NL2SP='tr \r\n \100\100'
4795 ;;
4796esac
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4807$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4808if ${lt_cv_to_host_file_cmd+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810else
4811 case $host in
4812 *-*-mingw* )
4813 case $build in
4814 *-*-mingw* ) # actually msys
4815 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4816 ;;
4817 *-*-cygwin* )
4818 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4819 ;;
4820 * ) # otherwise, assume *nix
4821 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4822 ;;
4823 esac
4824 ;;
4825 *-*-cygwin* )
4826 case $build in
4827 *-*-mingw* ) # actually msys
4828 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4829 ;;
4830 *-*-cygwin* )
4831 lt_cv_to_host_file_cmd=func_convert_file_noop
4832 ;;
4833 * ) # otherwise, assume *nix
4834 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4835 ;;
4836 esac
4837 ;;
4838 * ) # unhandled hosts (and "normal" native builds)
4839 lt_cv_to_host_file_cmd=func_convert_file_noop
4840 ;;
4841esac
4842
4843fi
4844
4845to_host_file_cmd=$lt_cv_to_host_file_cmd
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4847$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4848
4849
4850
4851
4852
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4854$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4855if ${lt_cv_to_tool_file_cmd+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857else
4858 #assume ordinary cross tools, or native build.
4859lt_cv_to_tool_file_cmd=func_convert_file_noop
4860case $host in
4861 *-*-mingw* )
4862 case $build in
4863 *-*-mingw* ) # actually msys
4864 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4865 ;;
4866 esac
4867 ;;
4868esac
4869
4870fi
4871
4872to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4874$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4875
4876
4877
4878
4879
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4881$as_echo_n "checking for $LD option to reload object files... " >&6; }
4882if ${lt_cv_ld_reload_flag+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884else
4885 lt_cv_ld_reload_flag='-r'
4886fi
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4888$as_echo "$lt_cv_ld_reload_flag" >&6; }
4889reload_flag=$lt_cv_ld_reload_flag
4890case $reload_flag in
4891"" | " "*) ;;
4892*) reload_flag=" $reload_flag" ;;
4893esac
4894reload_cmds='$LD$reload_flag -o $output$reload_objs'
4895case $host_os in
4896 cygwin* | mingw* | pw32* | cegcc*)
4897 if test "$GCC" != yes; then
4898 reload_cmds=false
4899 fi
4900 ;;
4901 darwin*)
4902 if test "$GCC" = yes; then
4903 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4904 else
4905 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4906 fi
4907 ;;
4908esac
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918if test -n "$ac_tool_prefix"; then
4919 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4920set dummy ${ac_tool_prefix}objdump; ac_word=$2
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922$as_echo_n "checking for $ac_word... " >&6; }
4923if ${ac_cv_prog_OBJDUMP+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925else
4926 if test -n "$OBJDUMP"; then
4927 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4928else
4929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930for as_dir in $PATH
4931do
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4939 fi
4940done
4941 done
4942IFS=$as_save_IFS
4943
4944fi
4945fi
4946OBJDUMP=$ac_cv_prog_OBJDUMP
4947if test -n "$OBJDUMP"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4949$as_echo "$OBJDUMP" >&6; }
4950else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952$as_echo "no" >&6; }
4953fi
4954
4955
4956fi
4957if test -z "$ac_cv_prog_OBJDUMP"; then
4958 ac_ct_OBJDUMP=$OBJDUMP
4959 # Extract the first word of "objdump", so it can be a program name with args.
4960set dummy objdump; ac_word=$2
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962$as_echo_n "checking for $ac_word... " >&6; }
4963if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965else
4966 if test -n "$ac_ct_OBJDUMP"; then
4967 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4968else
4969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970for as_dir in $PATH
4971do
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4979 fi
4980done
4981 done
4982IFS=$as_save_IFS
4983
4984fi
4985fi
4986ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4987if test -n "$ac_ct_OBJDUMP"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4989$as_echo "$ac_ct_OBJDUMP" >&6; }
4990else
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992$as_echo "no" >&6; }
4993fi
4994
4995 if test "x$ac_ct_OBJDUMP" = x; then
4996 OBJDUMP="false"
4997 else
4998 case $cross_compiling:$ac_tool_warned in
4999yes:)
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5002ac_tool_warned=yes ;;
5003esac
5004 OBJDUMP=$ac_ct_OBJDUMP
5005 fi
5006else
5007 OBJDUMP="$ac_cv_prog_OBJDUMP"
5008fi
5009
5010test -z "$OBJDUMP" && OBJDUMP=objdump
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5021$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5022if ${lt_cv_deplibs_check_method+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024else
5025 lt_cv_file_magic_cmd='$MAGIC_CMD'
5026lt_cv_file_magic_test_file=
5027lt_cv_deplibs_check_method='unknown'
5028# Need to set the preceding variable on all platforms that support
5029# interlibrary dependencies.
5030# 'none' -- dependencies not supported.
5031# `unknown' -- same as none, but documents that we really don't know.
5032# 'pass_all' -- all dependencies passed with no checks.
5033# 'test_compile' -- check by making test program.
5034# 'file_magic [[regex]]' -- check by looking for files in library path
5035# which responds to the $file_magic_cmd with a given extended regex.
5036# If you have `file' or equivalent on your system and you're not sure
5037# whether `pass_all' will *always* work, you probably want this one.
5038
5039case $host_os in
5040aix[4-9]*)
5041 lt_cv_deplibs_check_method=pass_all
5042 ;;
5043
5044beos*)
5045 lt_cv_deplibs_check_method=pass_all
5046 ;;
5047
5048bsdi[45]*)
5049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5050 lt_cv_file_magic_cmd='/usr/bin/file -L'
5051 lt_cv_file_magic_test_file=/shlib/libc.so
5052 ;;
5053
5054cygwin*)
5055 # func_win32_libid is a shell function defined in ltmain.sh
5056 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5057 lt_cv_file_magic_cmd='func_win32_libid'
5058 ;;
5059
5060mingw* | pw32*)
5061 # Base MSYS/MinGW do not provide the 'file' command needed by
5062 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5063 # unless we find 'file', for example because we are cross-compiling.
5064 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5065 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5066 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5067 lt_cv_file_magic_cmd='func_win32_libid'
5068 else
5069 # Keep this pattern in sync with the one in func_win32_libid.
5070 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5071 lt_cv_file_magic_cmd='$OBJDUMP -f'
5072 fi
5073 ;;
5074
5075cegcc*)
5076 # use the weaker test based on 'objdump'. See mingw*.
5077 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5078 lt_cv_file_magic_cmd='$OBJDUMP -f'
5079 ;;
5080
5081darwin* | rhapsody*)
5082 lt_cv_deplibs_check_method=pass_all
5083 ;;
5084
5085freebsd* | dragonfly*)
5086 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5087 case $host_cpu in
5088 i*86 )
5089 # Not sure whether the presence of OpenBSD here was a mistake.
5090 # Let's accept both of them until this is cleared up.
5091 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5092 lt_cv_file_magic_cmd=/usr/bin/file
5093 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5094 ;;
5095 esac
5096 else
5097 lt_cv_deplibs_check_method=pass_all
5098 fi
5099 ;;
5100
5101gnu*)
5102 lt_cv_deplibs_check_method=pass_all
5103 ;;
5104
5105haiku*)
5106 lt_cv_deplibs_check_method=pass_all
5107 ;;
5108
5109hpux10.20* | hpux11*)
5110 lt_cv_file_magic_cmd=/usr/bin/file
5111 case $host_cpu in
5112 ia64*)
5113 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5114 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5115 ;;
5116 hppa*64*)
5117 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]'
5118 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5119 ;;
5120 *)
5121 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5122 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5123 ;;
5124 esac
5125 ;;
5126
5127interix[3-9]*)
5128 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5130 ;;
5131
5132irix5* | irix6* | nonstopux*)
5133 case $LD in
5134 *-32|*"-32 ") libmagic=32-bit;;
5135 *-n32|*"-n32 ") libmagic=N32;;
5136 *-64|*"-64 ") libmagic=64-bit;;
5137 *) libmagic=never-match;;
5138 esac
5139 lt_cv_deplibs_check_method=pass_all
5140 ;;
5141
5142# This must be glibc/ELF.
5143linux* | k*bsd*-gnu | kopensolaris*-gnu)
5144 lt_cv_deplibs_check_method=pass_all
5145 ;;
5146
5147netbsd*)
5148 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5150 else
5151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5152 fi
5153 ;;
5154
5155newos6*)
5156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5157 lt_cv_file_magic_cmd=/usr/bin/file
5158 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5159 ;;
5160
5161*nto* | *qnx*)
5162 lt_cv_deplibs_check_method=pass_all
5163 ;;
5164
5165openbsd*)
5166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5168 else
5169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5170 fi
5171 ;;
5172
5173osf3* | osf4* | osf5*)
5174 lt_cv_deplibs_check_method=pass_all
5175 ;;
5176
5177rdos*)
5178 lt_cv_deplibs_check_method=pass_all
5179 ;;
5180
5181solaris*)
5182 lt_cv_deplibs_check_method=pass_all
5183 ;;
5184
5185sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5186 lt_cv_deplibs_check_method=pass_all
5187 ;;
5188
5189sysv4 | sysv4.3*)
5190 case $host_vendor in
5191 motorola)
5192 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]'
5193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5194 ;;
5195 ncr)
5196 lt_cv_deplibs_check_method=pass_all
5197 ;;
5198 sequent)
5199 lt_cv_file_magic_cmd='/bin/file'
5200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5201 ;;
5202 sni)
5203 lt_cv_file_magic_cmd='/bin/file'
5204 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5205 lt_cv_file_magic_test_file=/lib/libc.so
5206 ;;
5207 siemens)
5208 lt_cv_deplibs_check_method=pass_all
5209 ;;
5210 pc)
5211 lt_cv_deplibs_check_method=pass_all
5212 ;;
5213 esac
5214 ;;
5215
5216tpf*)
5217 lt_cv_deplibs_check_method=pass_all
5218 ;;
5219esac
5220
5221fi
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5223$as_echo "$lt_cv_deplibs_check_method" >&6; }
5224
5225file_magic_glob=
5226want_nocaseglob=no
5227if test "$build" = "$host"; then
5228 case $host_os in
5229 mingw* | pw32*)
5230 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5231 want_nocaseglob=yes
5232 else
5233 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5234 fi
5235 ;;
5236 esac
5237fi
5238
5239file_magic_cmd=$lt_cv_file_magic_cmd
5240deplibs_check_method=$lt_cv_deplibs_check_method
5241test -z "$deplibs_check_method" && deplibs_check_method=unknown
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264if test -n "$ac_tool_prefix"; then
5265 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5266set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268$as_echo_n "checking for $ac_word... " >&6; }
5269if ${ac_cv_prog_DLLTOOL+:} false; then :
5270 $as_echo_n "(cached) " >&6
5271else
5272 if test -n "$DLLTOOL"; then
5273 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5274else
5275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276for as_dir in $PATH
5277do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5285 fi
5286done
5287 done
5288IFS=$as_save_IFS
5289
5290fi
5291fi
5292DLLTOOL=$ac_cv_prog_DLLTOOL
5293if test -n "$DLLTOOL"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5295$as_echo "$DLLTOOL" >&6; }
5296else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298$as_echo "no" >&6; }
5299fi
5300
5301
5302fi
5303if test -z "$ac_cv_prog_DLLTOOL"; then
5304 ac_ct_DLLTOOL=$DLLTOOL
5305 # Extract the first word of "dlltool", so it can be a program name with args.
5306set dummy dlltool; ac_word=$2
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308$as_echo_n "checking for $ac_word... " >&6; }
5309if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311else
5312 if test -n "$ac_ct_DLLTOOL"; then
5313 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5314else
5315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316for as_dir in $PATH
5317do
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 break 2
5325 fi
5326done
5327 done
5328IFS=$as_save_IFS
5329
5330fi
5331fi
5332ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5333if test -n "$ac_ct_DLLTOOL"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5335$as_echo "$ac_ct_DLLTOOL" >&6; }
5336else
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338$as_echo "no" >&6; }
5339fi
5340
5341 if test "x$ac_ct_DLLTOOL" = x; then
5342 DLLTOOL="false"
5343 else
5344 case $cross_compiling:$ac_tool_warned in
5345yes:)
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5348ac_tool_warned=yes ;;
5349esac
5350 DLLTOOL=$ac_ct_DLLTOOL
5351 fi
5352else
5353 DLLTOOL="$ac_cv_prog_DLLTOOL"
5354fi
5355
5356test -z "$DLLTOOL" && DLLTOOL=dlltool
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5368$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5369if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5370 $as_echo_n "(cached) " >&6
5371else
5372 lt_cv_sharedlib_from_linklib_cmd='unknown'
5373
5374case $host_os in
5375cygwin* | mingw* | pw32* | cegcc*)
5376 # two different shell functions defined in ltmain.sh
5377 # decide which to use based on capabilities of $DLLTOOL
5378 case `$DLLTOOL --help 2>&1` in
5379 *--identify-strict*)
5380 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5381 ;;
5382 *)
5383 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5384 ;;
5385 esac
5386 ;;
5387*)
5388 # fallback: assume linklib IS sharedlib
5389 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5390 ;;
5391esac
5392
5393fi
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5395$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5396sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5397test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5398
5399
5400
5401
5402
5403
5404
5405
5406if test -n "$ac_tool_prefix"; then
5407 for ac_prog in ar
5408 do
5409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5410set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412$as_echo_n "checking for $ac_word... " >&6; }
5413if ${ac_cv_prog_AR+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415else
5416 if test -n "$AR"; then
5417 ac_cv_prog_AR="$AR" # Let the user override the test.
5418else
5419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420for as_dir in $PATH
5421do
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5429 fi
5430done
5431 done
5432IFS=$as_save_IFS
5433
5434fi
5435fi
5436AR=$ac_cv_prog_AR
5437if test -n "$AR"; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5439$as_echo "$AR" >&6; }
5440else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442$as_echo "no" >&6; }
5443fi
5444
5445
5446 test -n "$AR" && break
5447 done
5448fi
5449if test -z "$AR"; then
5450 ac_ct_AR=$AR
5451 for ac_prog in ar
5452do
5453 # Extract the first word of "$ac_prog", so it can be a program name with args.
5454set dummy $ac_prog; ac_word=$2
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456$as_echo_n "checking for $ac_word... " >&6; }
5457if ${ac_cv_prog_ac_ct_AR+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459else
5460 if test -n "$ac_ct_AR"; then
5461 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5462else
5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464for as_dir in $PATH
5465do
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470 ac_cv_prog_ac_ct_AR="$ac_prog"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5473 fi
5474done
5475 done
5476IFS=$as_save_IFS
5477
5478fi
5479fi
5480ac_ct_AR=$ac_cv_prog_ac_ct_AR
5481if test -n "$ac_ct_AR"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5483$as_echo "$ac_ct_AR" >&6; }
5484else
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486$as_echo "no" >&6; }
5487fi
5488
5489
5490 test -n "$ac_ct_AR" && break
5491done
5492
5493 if test "x$ac_ct_AR" = x; then
5494 AR="false"
5495 else
5496 case $cross_compiling:$ac_tool_warned in
5497yes:)
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5500ac_tool_warned=yes ;;
5501esac
5502 AR=$ac_ct_AR
5503 fi
5504fi
5505
5506: ${AR=ar}
5507: ${AR_FLAGS=cru}
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5520$as_echo_n "checking for archiver @FILE support... " >&6; }
5521if ${lt_cv_ar_at_file+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523else
5524 lt_cv_ar_at_file=no
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526/* end confdefs.h. */
5527
5528int
5529main ()
5530{
5531
5532 ;
5533 return 0;
5534}
5535_ACEOF
5536if ac_fn_c_try_compile "$LINENO"; then :
5537 echo conftest.$ac_objext > conftest.lst
5538 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5540 (eval $lt_ar_try) 2>&5
5541 ac_status=$?
5542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5543 test $ac_status = 0; }
5544 if test "$ac_status" -eq 0; then
5545 # Ensure the archiver fails upon bogus file names.
5546 rm -f conftest.$ac_objext libconftest.a
5547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5548 (eval $lt_ar_try) 2>&5
5549 ac_status=$?
5550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5551 test $ac_status = 0; }
5552 if test "$ac_status" -ne 0; then
5553 lt_cv_ar_at_file=@
5554 fi
5555 fi
5556 rm -f conftest.* libconftest.a
5557
5558fi
5559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560
5561fi
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5563$as_echo "$lt_cv_ar_at_file" >&6; }
5564
5565if test "x$lt_cv_ar_at_file" = xno; then
5566 archiver_list_spec=
5567else
5568 archiver_list_spec=$lt_cv_ar_at_file
5569fi
5570
5571
5572
5573
5574
5575
5576
5577if test -n "$ac_tool_prefix"; then
5578 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5579set dummy ${ac_tool_prefix}strip; ac_word=$2
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581$as_echo_n "checking for $ac_word... " >&6; }
5582if ${ac_cv_prog_STRIP+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584else
5585 if test -n "$STRIP"; then
5586 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5587else
5588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589for as_dir in $PATH
5590do
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 break 2
5598 fi
5599done
5600 done
5601IFS=$as_save_IFS
5602
5603fi
5604fi
5605STRIP=$ac_cv_prog_STRIP
5606if test -n "$STRIP"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5608$as_echo "$STRIP" >&6; }
5609else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611$as_echo "no" >&6; }
5612fi
5613
5614
5615fi
5616if test -z "$ac_cv_prog_STRIP"; then
5617 ac_ct_STRIP=$STRIP
5618 # Extract the first word of "strip", so it can be a program name with args.
5619set dummy strip; ac_word=$2
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621$as_echo_n "checking for $ac_word... " >&6; }
5622if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624else
5625 if test -n "$ac_ct_STRIP"; then
5626 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5627else
5628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629for as_dir in $PATH
5630do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635 ac_cv_prog_ac_ct_STRIP="strip"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5638 fi
5639done
5640 done
5641IFS=$as_save_IFS
5642
5643fi
5644fi
5645ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5646if test -n "$ac_ct_STRIP"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5648$as_echo "$ac_ct_STRIP" >&6; }
5649else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651$as_echo "no" >&6; }
5652fi
5653
5654 if test "x$ac_ct_STRIP" = x; then
5655 STRIP=":"
5656 else
5657 case $cross_compiling:$ac_tool_warned in
5658yes:)
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5661ac_tool_warned=yes ;;
5662esac
5663 STRIP=$ac_ct_STRIP
5664 fi
5665else
5666 STRIP="$ac_cv_prog_STRIP"
5667fi
5668
5669test -z "$STRIP" && STRIP=:
5670
5671
5672
5673
5674
5675
5676if test -n "$ac_tool_prefix"; then
5677 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5678set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680$as_echo_n "checking for $ac_word... " >&6; }
5681if ${ac_cv_prog_RANLIB+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683else
5684 if test -n "$RANLIB"; then
5685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5686else
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5697 fi
5698done
5699 done
5700IFS=$as_save_IFS
5701
5702fi
5703fi
5704RANLIB=$ac_cv_prog_RANLIB
5705if test -n "$RANLIB"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5707$as_echo "$RANLIB" >&6; }
5708else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710$as_echo "no" >&6; }
5711fi
5712
5713
5714fi
5715if test -z "$ac_cv_prog_RANLIB"; then
5716 ac_ct_RANLIB=$RANLIB
5717 # Extract the first word of "ranlib", so it can be a program name with args.
5718set dummy ranlib; ac_word=$2
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720$as_echo_n "checking for $ac_word... " >&6; }
5721if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5722 $as_echo_n "(cached) " >&6
5723else
5724 if test -n "$ac_ct_RANLIB"; then
5725 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5726else
5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728for as_dir in $PATH
5729do
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734 ac_cv_prog_ac_ct_RANLIB="ranlib"
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738done
5739 done
5740IFS=$as_save_IFS
5741
5742fi
5743fi
5744ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5745if test -n "$ac_ct_RANLIB"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5747$as_echo "$ac_ct_RANLIB" >&6; }
5748else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750$as_echo "no" >&6; }
5751fi
5752
5753 if test "x$ac_ct_RANLIB" = x; then
5754 RANLIB=":"
5755 else
5756 case $cross_compiling:$ac_tool_warned in
5757yes:)
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5760ac_tool_warned=yes ;;
5761esac
5762 RANLIB=$ac_ct_RANLIB
5763 fi
5764else
5765 RANLIB="$ac_cv_prog_RANLIB"
5766fi
5767
5768test -z "$RANLIB" && RANLIB=:
5769
5770
5771
5772
5773
5774
5775# Determine commands to create old-style static archives.
5776old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5777old_postinstall_cmds='chmod 644 $oldlib'
5778old_postuninstall_cmds=
5779
5780if test -n "$RANLIB"; then
5781 case $host_os in
5782 openbsd*)
5783 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5784 ;;
5785 *)
5786 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5787 ;;
5788 esac
5789 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5790fi
5791
5792case $host_os in
5793 darwin*)
5794 lock_old_archive_extraction=yes ;;
5795 *)
5796 lock_old_archive_extraction=no ;;
5797esac
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837# If no C compiler was specified, use CC.
5838LTCC=${LTCC-"$CC"}
5839
5840# If no C compiler flags were specified, use CFLAGS.
5841LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5842
5843# Allow CC to be a program name with arguments.
5844compiler=$CC
5845
5846
5847# Check for command to grab the raw symbol name followed by C symbol from nm.
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5849$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5850if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5851 $as_echo_n "(cached) " >&6
5852else
5853
5854# These are sane defaults that work on at least a few old systems.
5855# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5856
5857# Character class describing NM global symbol codes.
5858symcode='[BCDEGRST]'
5859
5860# Regexp to match symbols that can be accessed directly from C.
5861sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5862
5863# Define system-specific variables.
5864case $host_os in
5865aix*)
5866 symcode='[BCDT]'
5867 ;;
5868cygwin* | mingw* | pw32* | cegcc*)
5869 symcode='[ABCDGISTW]'
5870 ;;
5871hpux*)
5872 if test "$host_cpu" = ia64; then
5873 symcode='[ABCDEGRST]'
5874 fi
5875 ;;
5876irix* | nonstopux*)
5877 symcode='[BCDEGRST]'
5878 ;;
5879osf*)
5880 symcode='[BCDEGQRST]'
5881 ;;
5882solaris*)
5883 symcode='[BDRT]'
5884 ;;
5885sco3.2v5*)
5886 symcode='[DT]'
5887 ;;
5888sysv4.2uw2*)
5889 symcode='[DT]'
5890 ;;
5891sysv5* | sco5v6* | unixware* | OpenUNIX*)
5892 symcode='[ABDT]'
5893 ;;
5894sysv4)
5895 symcode='[DFNSTU]'
5896 ;;
5897esac
5898
5899# If we're using GNU nm, then use its standard symbol codes.
5900case `$NM -V 2>&1` in
5901*GNU* | *'with BFD'*)
5902 symcode='[ABCDGIRSTW]' ;;
5903esac
5904
5905# Transform an extracted symbol line into a proper C declaration.
5906# Some systems (esp. on ia64) link data and code symbols differently,
5907# so use this general approach.
5908lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5909
5910# Transform an extracted symbol line into symbol name and symbol address
5911lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5912lt_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'"
5913
5914# Handle CRLF in mingw tool chain
5915opt_cr=
5916case $build_os in
5917mingw*)
5918 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5919 ;;
5920esac
5921
5922# Try without a prefix underscore, then with it.
5923for ac_symprfx in "" "_"; do
5924
5925 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5926 symxfrm="\\1 $ac_symprfx\\2 \\2"
5927
5928 # Write the raw and C identifiers.
5929 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5930 # Fake it for dumpbin and say T for any non-static function
5931 # and D for any global variable.
5932 # Also find C++ and __fastcall symbols from MSVC++,
5933 # which start with @ or ?.
5934 lt_cv_sys_global_symbol_pipe="$AWK '"\
5935" {last_section=section; section=\$ 3};"\
5936" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5937" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5938" \$ 0!~/External *\|/{next};"\
5939" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5940" {if(hide[section]) next};"\
5941" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5942" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5943" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5944" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5945" ' prfx=^$ac_symprfx"
5946 else
5947 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5948 fi
5949 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5950
5951 # Check to see that the pipe works correctly.
5952 pipe_works=no
5953
5954 rm -f conftest*
5955 cat > conftest.$ac_ext <<_LT_EOF
5956#ifdef __cplusplus
5957extern "C" {
5958#endif
5959char nm_test_var;
5960void nm_test_func(void);
5961void nm_test_func(void){}
5962#ifdef __cplusplus
5963}
5964#endif
5965int main(){nm_test_var='a';nm_test_func();return(0);}
5966_LT_EOF
5967
5968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5969 (eval $ac_compile) 2>&5
5970 ac_status=$?
5971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5972 test $ac_status = 0; }; then
5973 # Now try to grab the symbols.
5974 nlist=conftest.nm
5975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5976 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5977 ac_status=$?
5978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5979 test $ac_status = 0; } && test -s "$nlist"; then
5980 # Try sorting and uniquifying the output.
5981 if sort "$nlist" | uniq > "$nlist"T; then
5982 mv -f "$nlist"T "$nlist"
5983 else
5984 rm -f "$nlist"T
5985 fi
5986
5987 # Make sure that we snagged all the symbols we need.
5988 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5989 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5990 cat <<_LT_EOF > conftest.$ac_ext
5991/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5992#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5993/* DATA imports from DLLs on WIN32 con't be const, because runtime
5994 relocations are performed -- see ld's documentation on pseudo-relocs. */
5995# define LT_DLSYM_CONST
5996#elif defined(__osf__)
5997/* This system does not cope well with relocations in const data. */
5998# define LT_DLSYM_CONST
5999#else
6000# define LT_DLSYM_CONST const
6001#endif
6002
6003#ifdef __cplusplus
6004extern "C" {
6005#endif
6006
6007_LT_EOF
6008 # Now generate the symbol file.
6009 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6010
6011 cat <<_LT_EOF >> conftest.$ac_ext
6012
6013/* The mapping between symbol names and symbols. */
6014LT_DLSYM_CONST struct {
6015 const char *name;
6016 void *address;
6017}
6018lt__PROGRAM__LTX_preloaded_symbols[] =
6019{
6020 { "@PROGRAM@", (void *) 0 },
6021_LT_EOF
6022 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6023 cat <<\_LT_EOF >> conftest.$ac_ext
6024 {0, (void *) 0}
6025};
6026
6027/* This works around a problem in FreeBSD linker */
6028#ifdef FREEBSD_WORKAROUND
6029static const void *lt_preloaded_setup() {
6030 return lt__PROGRAM__LTX_preloaded_symbols;
6031}
6032#endif
6033
6034#ifdef __cplusplus
6035}
6036#endif
6037_LT_EOF
6038 # Now try linking the two files.
6039 mv conftest.$ac_objext conftstm.$ac_objext
6040 lt_globsym_save_LIBS=$LIBS
6041 lt_globsym_save_CFLAGS=$CFLAGS
6042 LIBS="conftstm.$ac_objext"
6043 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6045 (eval $ac_link) 2>&5
6046 ac_status=$?
6047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6048 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6049 pipe_works=yes
6050 fi
6051 LIBS=$lt_globsym_save_LIBS
6052 CFLAGS=$lt_globsym_save_CFLAGS
6053 else
6054 echo "cannot find nm_test_func in $nlist" >&5
6055 fi
6056 else
6057 echo "cannot find nm_test_var in $nlist" >&5
6058 fi
6059 else
6060 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6061 fi
6062 else
6063 echo "$progname: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6065 fi
6066 rm -rf conftest* conftst*
6067
6068 # Do not use the global_symbol_pipe unless it works.
6069 if test "$pipe_works" = yes; then
6070 break
6071 else
6072 lt_cv_sys_global_symbol_pipe=
6073 fi
6074done
6075
6076fi
6077
6078if test -z "$lt_cv_sys_global_symbol_pipe"; then
6079 lt_cv_sys_global_symbol_to_cdecl=
6080fi
6081if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6083$as_echo "failed" >&6; }
6084else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6086$as_echo "ok" >&6; }
6087fi
6088
6089# Response file support.
6090if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6091 nm_file_list_spec='@'
6092elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6093 nm_file_list_spec='@'
6094fi
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6123$as_echo_n "checking for sysroot... " >&6; }
6124
6125# Check whether --with-sysroot was given.
6126if test "${with_sysroot+set}" = set; then :
6127 withval=$with_sysroot;
6128else
6129 with_sysroot=no
6130fi
6131
6132
6133lt_sysroot=
6134case ${with_sysroot} in #(
6135 yes)
6136 if test "$GCC" = yes; then
6137 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6138 fi
6139 ;; #(
6140 /*)
6141 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6142 ;; #(
6143 no|'')
6144 ;; #(
6145 *)
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6147$as_echo "${with_sysroot}" >&6; }
6148 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6149 ;;
6150esac
6151
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6153$as_echo "${lt_sysroot:-no}" >&6; }
6154
6155
6156
6157
6158
6159# Check whether --enable-libtool-lock was given.
6160if test "${enable_libtool_lock+set}" = set; then :
6161 enableval=$enable_libtool_lock;
6162fi
6163
6164test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6165
6166# Some flags need to be propagated to the compiler or linker for good
6167# libtool support.
6168case $host in
6169ia64-*-hpux*)
6170 # Find out which ABI we are using.
6171 echo 'int i;' > conftest.$ac_ext
6172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6173 (eval $ac_compile) 2>&5
6174 ac_status=$?
6175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6176 test $ac_status = 0; }; then
6177 case `/usr/bin/file conftest.$ac_objext` in
6178 *ELF-32*)
6179 HPUX_IA64_MODE="32"
6180 ;;
6181 *ELF-64*)
6182 HPUX_IA64_MODE="64"
6183 ;;
6184 esac
6185 fi
6186 rm -rf conftest*
6187 ;;
6188*-*-irix6*)
6189 # Find out which ABI we are using.
6190 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6192 (eval $ac_compile) 2>&5
6193 ac_status=$?
6194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6195 test $ac_status = 0; }; then
6196 if test "$lt_cv_prog_gnu_ld" = yes; then
6197 case `/usr/bin/file conftest.$ac_objext` in
6198 *32-bit*)
6199 LD="${LD-ld} -melf32bsmip"
6200 ;;
6201 *N32*)
6202 LD="${LD-ld} -melf32bmipn32"
6203 ;;
6204 *64-bit*)
6205 LD="${LD-ld} -melf64bmip"
6206 ;;
6207 esac
6208 else
6209 case `/usr/bin/file conftest.$ac_objext` in
6210 *32-bit*)
6211 LD="${LD-ld} -32"
6212 ;;
6213 *N32*)
6214 LD="${LD-ld} -n32"
6215 ;;
6216 *64-bit*)
6217 LD="${LD-ld} -64"
6218 ;;
6219 esac
6220 fi
6221 fi
6222 rm -rf conftest*
6223 ;;
6224
6225x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6226s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6227 # Find out which ABI we are using.
6228 echo 'int i;' > conftest.$ac_ext
6229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6230 (eval $ac_compile) 2>&5
6231 ac_status=$?
6232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6233 test $ac_status = 0; }; then
6234 case `/usr/bin/file conftest.o` in
6235 *32-bit*)
6236 case $host in
6237 x86_64-*kfreebsd*-gnu)
6238 LD="${LD-ld} -m elf_i386_fbsd"
6239 ;;
6240 x86_64-*linux*)
6241 LD="${LD-ld} -m elf_i386"
6242 ;;
6243 ppc64-*linux*|powerpc64-*linux*)
6244 LD="${LD-ld} -m elf32ppclinux"
6245 ;;
6246 s390x-*linux*)
6247 LD="${LD-ld} -m elf_s390"
6248 ;;
6249 sparc64-*linux*)
6250 LD="${LD-ld} -m elf32_sparc"
6251 ;;
6252 esac
6253 ;;
6254 *64-bit*)
6255 case $host in
6256 x86_64-*kfreebsd*-gnu)
6257 LD="${LD-ld} -m elf_x86_64_fbsd"
6258 ;;
6259 x86_64-*linux*)
6260 LD="${LD-ld} -m elf_x86_64"
6261 ;;
6262 ppc*-*linux*|powerpc*-*linux*)
6263 LD="${LD-ld} -m elf64ppc"
6264 ;;
6265 s390*-*linux*|s390*-*tpf*)
6266 LD="${LD-ld} -m elf64_s390"
6267 ;;
6268 sparc*-*linux*)
6269 LD="${LD-ld} -m elf64_sparc"
6270 ;;
6271 esac
6272 ;;
6273 esac
6274 fi
6275 rm -rf conftest*
6276 ;;
6277
6278*-*-sco3.2v5*)
6279 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6280 SAVE_CFLAGS="$CFLAGS"
6281 CFLAGS="$CFLAGS -belf"
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6283$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6284if ${lt_cv_cc_needs_belf+:} false; then :
6285 $as_echo_n "(cached) " >&6
6286else
6287 ac_ext=c
6288ac_cpp='$CPP $CPPFLAGS'
6289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6291ac_compiler_gnu=$ac_cv_c_compiler_gnu
6292
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294/* end confdefs.h. */
6295
6296int
6297main ()
6298{
6299
6300 ;
6301 return 0;
6302}
6303_ACEOF
6304if ac_fn_c_try_link "$LINENO"; then :
6305 lt_cv_cc_needs_belf=yes
6306else
6307 lt_cv_cc_needs_belf=no
6308fi
6309rm -f core conftest.err conftest.$ac_objext \
6310 conftest$ac_exeext conftest.$ac_ext
6311 ac_ext=c
6312ac_cpp='$CPP $CPPFLAGS'
6313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6315ac_compiler_gnu=$ac_cv_c_compiler_gnu
6316
6317fi
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6319$as_echo "$lt_cv_cc_needs_belf" >&6; }
6320 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6321 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6322 CFLAGS="$SAVE_CFLAGS"
6323 fi
6324 ;;
6325*-*solaris*)
6326 # Find out which ABI we are using.
6327 echo 'int i;' > conftest.$ac_ext
6328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6329 (eval $ac_compile) 2>&5
6330 ac_status=$?
6331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332 test $ac_status = 0; }; then
6333 case `/usr/bin/file conftest.o` in
6334 *64-bit*)
6335 case $lt_cv_prog_gnu_ld in
6336 yes*)
6337 case $host in
6338 i?86-*-solaris*)
6339 LD="${LD-ld} -m elf_x86_64"
6340 ;;
6341 sparc*-*-solaris*)
6342 LD="${LD-ld} -m elf64_sparc"
6343 ;;
6344 esac
6345 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6346 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6347 LD="${LD-ld}_sol2"
6348 fi
6349 ;;
6350 *)
6351 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6352 LD="${LD-ld} -64"
6353 fi
6354 ;;
6355 esac
6356 ;;
6357 esac
6358 fi
6359 rm -rf conftest*
6360 ;;
6361esac
6362
6363need_locks="$enable_libtool_lock"
6364
6365if test -n "$ac_tool_prefix"; then
6366 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6367set dummy ${ac_tool_prefix}mt; ac_word=$2
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369$as_echo_n "checking for $ac_word... " >&6; }
6370if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6371 $as_echo_n "(cached) " >&6
6372else
6373 if test -n "$MANIFEST_TOOL"; then
6374 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6375else
6376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377for as_dir in $PATH
6378do
6379 IFS=$as_save_IFS
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6383 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 break 2
6386 fi
6387done
6388 done
6389IFS=$as_save_IFS
6390
6391fi
6392fi
6393MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6394if test -n "$MANIFEST_TOOL"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6396$as_echo "$MANIFEST_TOOL" >&6; }
6397else
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399$as_echo "no" >&6; }
6400fi
6401
6402
6403fi
6404if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6405 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6406 # Extract the first word of "mt", so it can be a program name with args.
6407set dummy mt; ac_word=$2
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409$as_echo_n "checking for $ac_word... " >&6; }
6410if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6411 $as_echo_n "(cached) " >&6
6412else
6413 if test -n "$ac_ct_MANIFEST_TOOL"; then
6414 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6415else
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 break 2
6426 fi
6427done
6428 done
6429IFS=$as_save_IFS
6430
6431fi
6432fi
6433ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6434if test -n "$ac_ct_MANIFEST_TOOL"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6436$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6437else
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439$as_echo "no" >&6; }
6440fi
6441
6442 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6443 MANIFEST_TOOL=":"
6444 else
6445 case $cross_compiling:$ac_tool_warned in
6446yes:)
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449ac_tool_warned=yes ;;
6450esac
6451 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6452 fi
6453else
6454 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6455fi
6456
6457test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6459$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6460if ${lt_cv_path_mainfest_tool+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462else
6463 lt_cv_path_mainfest_tool=no
6464 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6465 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6466 cat conftest.err >&5
6467 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6468 lt_cv_path_mainfest_tool=yes
6469 fi
6470 rm -f conftest*
6471fi
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6473$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6474if test "x$lt_cv_path_mainfest_tool" != xyes; then
6475 MANIFEST_TOOL=:
6476fi
6477
6478
6479
6480
6481
6482
6483 case $host_os in
6484 rhapsody* | darwin*)
6485 if test -n "$ac_tool_prefix"; then
6486 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6487set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489$as_echo_n "checking for $ac_word... " >&6; }
6490if ${ac_cv_prog_DSYMUTIL+:} false; then :
6491 $as_echo_n "(cached) " >&6
6492else
6493 if test -n "$DSYMUTIL"; then
6494 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6495else
6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497for as_dir in $PATH
6498do
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
6506 fi
6507done
6508 done
6509IFS=$as_save_IFS
6510
6511fi
6512fi
6513DSYMUTIL=$ac_cv_prog_DSYMUTIL
6514if test -n "$DSYMUTIL"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6516$as_echo "$DSYMUTIL" >&6; }
6517else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519$as_echo "no" >&6; }
6520fi
6521
6522
6523fi
6524if test -z "$ac_cv_prog_DSYMUTIL"; then
6525 ac_ct_DSYMUTIL=$DSYMUTIL
6526 # Extract the first word of "dsymutil", so it can be a program name with args.
6527set dummy dsymutil; ac_word=$2
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529$as_echo_n "checking for $ac_word... " >&6; }
6530if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6531 $as_echo_n "(cached) " >&6
6532else
6533 if test -n "$ac_ct_DSYMUTIL"; then
6534 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6535else
6536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537for as_dir in $PATH
6538do
6539 IFS=$as_save_IFS
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 break 2
6546 fi
6547done
6548 done
6549IFS=$as_save_IFS
6550
6551fi
6552fi
6553ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6554if test -n "$ac_ct_DSYMUTIL"; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6556$as_echo "$ac_ct_DSYMUTIL" >&6; }
6557else
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559$as_echo "no" >&6; }
6560fi
6561
6562 if test "x$ac_ct_DSYMUTIL" = x; then
6563 DSYMUTIL=":"
6564 else
6565 case $cross_compiling:$ac_tool_warned in
6566yes:)
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6569ac_tool_warned=yes ;;
6570esac
6571 DSYMUTIL=$ac_ct_DSYMUTIL
6572 fi
6573else
6574 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6575fi
6576
6577 if test -n "$ac_tool_prefix"; then
6578 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6579set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581$as_echo_n "checking for $ac_word... " >&6; }
6582if ${ac_cv_prog_NMEDIT+:} false; then :
6583 $as_echo_n "(cached) " >&6
6584else
6585 if test -n "$NMEDIT"; then
6586 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6587else
6588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589for as_dir in $PATH
6590do
6591 IFS=$as_save_IFS
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 break 2
6598 fi
6599done
6600 done
6601IFS=$as_save_IFS
6602
6603fi
6604fi
6605NMEDIT=$ac_cv_prog_NMEDIT
6606if test -n "$NMEDIT"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6608$as_echo "$NMEDIT" >&6; }
6609else
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611$as_echo "no" >&6; }
6612fi
6613
6614
6615fi
6616if test -z "$ac_cv_prog_NMEDIT"; then
6617 ac_ct_NMEDIT=$NMEDIT
6618 # Extract the first word of "nmedit", so it can be a program name with args.
6619set dummy nmedit; ac_word=$2
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621$as_echo_n "checking for $ac_word... " >&6; }
6622if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6623 $as_echo_n "(cached) " >&6
6624else
6625 if test -n "$ac_ct_NMEDIT"; then
6626 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6627else
6628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629for as_dir in $PATH
6630do
6631 IFS=$as_save_IFS
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6635 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 break 2
6638 fi
6639done
6640 done
6641IFS=$as_save_IFS
6642
6643fi
6644fi
6645ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6646if test -n "$ac_ct_NMEDIT"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6648$as_echo "$ac_ct_NMEDIT" >&6; }
6649else
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651$as_echo "no" >&6; }
6652fi
6653
6654 if test "x$ac_ct_NMEDIT" = x; then
6655 NMEDIT=":"
6656 else
6657 case $cross_compiling:$ac_tool_warned in
6658yes:)
6659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6661ac_tool_warned=yes ;;
6662esac
6663 NMEDIT=$ac_ct_NMEDIT
6664 fi
6665else
6666 NMEDIT="$ac_cv_prog_NMEDIT"
6667fi
6668
6669 if test -n "$ac_tool_prefix"; then
6670 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6671set dummy ${ac_tool_prefix}lipo; ac_word=$2
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673$as_echo_n "checking for $ac_word... " >&6; }
6674if ${ac_cv_prog_LIPO+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676else
6677 if test -n "$LIPO"; then
6678 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6679else
6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681for as_dir in $PATH
6682do
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6690 fi
6691done
6692 done
6693IFS=$as_save_IFS
6694
6695fi
6696fi
6697LIPO=$ac_cv_prog_LIPO
6698if test -n "$LIPO"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6700$as_echo "$LIPO" >&6; }
6701else
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703$as_echo "no" >&6; }
6704fi
6705
6706
6707fi
6708if test -z "$ac_cv_prog_LIPO"; then
6709 ac_ct_LIPO=$LIPO
6710 # Extract the first word of "lipo", so it can be a program name with args.
6711set dummy lipo; ac_word=$2
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713$as_echo_n "checking for $ac_word... " >&6; }
6714if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716else
6717 if test -n "$ac_ct_LIPO"; then
6718 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6719else
6720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721for as_dir in $PATH
6722do
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6727 ac_cv_prog_ac_ct_LIPO="lipo"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6730 fi
6731done
6732 done
6733IFS=$as_save_IFS
6734
6735fi
6736fi
6737ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6738if test -n "$ac_ct_LIPO"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6740$as_echo "$ac_ct_LIPO" >&6; }
6741else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743$as_echo "no" >&6; }
6744fi
6745
6746 if test "x$ac_ct_LIPO" = x; then
6747 LIPO=":"
6748 else
6749 case $cross_compiling:$ac_tool_warned in
6750yes:)
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753ac_tool_warned=yes ;;
6754esac
6755 LIPO=$ac_ct_LIPO
6756 fi
6757else
6758 LIPO="$ac_cv_prog_LIPO"
6759fi
6760
6761 if test -n "$ac_tool_prefix"; then
6762 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6763set dummy ${ac_tool_prefix}otool; ac_word=$2
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765$as_echo_n "checking for $ac_word... " >&6; }
6766if ${ac_cv_prog_OTOOL+:} false; then :
6767 $as_echo_n "(cached) " >&6
6768else
6769 if test -n "$OTOOL"; then
6770 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6771else
6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783done
6784 done
6785IFS=$as_save_IFS
6786
6787fi
6788fi
6789OTOOL=$ac_cv_prog_OTOOL
6790if test -n "$OTOOL"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6792$as_echo "$OTOOL" >&6; }
6793else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795$as_echo "no" >&6; }
6796fi
6797
6798
6799fi
6800if test -z "$ac_cv_prog_OTOOL"; then
6801 ac_ct_OTOOL=$OTOOL
6802 # Extract the first word of "otool", so it can be a program name with args.
6803set dummy otool; ac_word=$2
6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805$as_echo_n "checking for $ac_word... " >&6; }
6806if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6807 $as_echo_n "(cached) " >&6
6808else
6809 if test -n "$ac_ct_OTOOL"; then
6810 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6811else
6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813for as_dir in $PATH
6814do
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6819 ac_cv_prog_ac_ct_OTOOL="otool"
6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6822 fi
6823done
6824 done
6825IFS=$as_save_IFS
6826
6827fi
6828fi
6829ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6830if test -n "$ac_ct_OTOOL"; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6832$as_echo "$ac_ct_OTOOL" >&6; }
6833else
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835$as_echo "no" >&6; }
6836fi
6837
6838 if test "x$ac_ct_OTOOL" = x; then
6839 OTOOL=":"
6840 else
6841 case $cross_compiling:$ac_tool_warned in
6842yes:)
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845ac_tool_warned=yes ;;
6846esac
6847 OTOOL=$ac_ct_OTOOL
6848 fi
6849else
6850 OTOOL="$ac_cv_prog_OTOOL"
6851fi
6852
6853 if test -n "$ac_tool_prefix"; then
6854 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6855set dummy ${ac_tool_prefix}otool64; ac_word=$2
6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857$as_echo_n "checking for $ac_word... " >&6; }
6858if ${ac_cv_prog_OTOOL64+:} false; then :
6859 $as_echo_n "(cached) " >&6
6860else
6861 if test -n "$OTOOL64"; then
6862 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6874 fi
6875done
6876 done
6877IFS=$as_save_IFS
6878
6879fi
6880fi
6881OTOOL64=$ac_cv_prog_OTOOL64
6882if test -n "$OTOOL64"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6884$as_echo "$OTOOL64" >&6; }
6885else
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887$as_echo "no" >&6; }
6888fi
6889
6890
6891fi
6892if test -z "$ac_cv_prog_OTOOL64"; then
6893 ac_ct_OTOOL64=$OTOOL64
6894 # Extract the first word of "otool64", so it can be a program name with args.
6895set dummy otool64; ac_word=$2
6896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897$as_echo_n "checking for $ac_word... " >&6; }
6898if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6899 $as_echo_n "(cached) " >&6
6900else
6901 if test -n "$ac_ct_OTOOL64"; then
6902 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6903else
6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_prog_ac_ct_OTOOL64="otool64"
6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 break 2
6914 fi
6915done
6916 done
6917IFS=$as_save_IFS
6918
6919fi
6920fi
6921ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6922if test -n "$ac_ct_OTOOL64"; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6924$as_echo "$ac_ct_OTOOL64" >&6; }
6925else
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927$as_echo "no" >&6; }
6928fi
6929
6930 if test "x$ac_ct_OTOOL64" = x; then
6931 OTOOL64=":"
6932 else
6933 case $cross_compiling:$ac_tool_warned in
6934yes:)
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6937ac_tool_warned=yes ;;
6938esac
6939 OTOOL64=$ac_ct_OTOOL64
6940 fi
6941else
6942 OTOOL64="$ac_cv_prog_OTOOL64"
6943fi
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6972$as_echo_n "checking for -single_module linker flag... " >&6; }
6973if ${lt_cv_apple_cc_single_mod+:} false; then :
6974 $as_echo_n "(cached) " >&6
6975else
6976 lt_cv_apple_cc_single_mod=no
6977 if test -z "${LT_MULTI_MODULE}"; then
6978 # By default we will add the -single_module flag. You can override
6979 # by either setting the environment variable LT_MULTI_MODULE
6980 # non-empty at configure time, or by adding -multi_module to the
6981 # link flags.
6982 rm -rf libconftest.dylib*
6983 echo "int foo(void){return 1;}" > conftest.c
6984 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6985-dynamiclib -Wl,-single_module conftest.c" >&5
6986 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6987 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6988 _lt_result=$?
6989 # If there is a non-empty error log, and "single_module"
6990 # appears in it, assume the flag caused a linker warning
6991 if test -s conftest.err && $GREP single_module conftest.err; then
6992 cat conftest.err >&5
6993 # Otherwise, if the output was created with a 0 exit code from
6994 # the compiler, it worked.
6995 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6996 lt_cv_apple_cc_single_mod=yes
6997 else
6998 cat conftest.err >&5
6999 fi
7000 rm -rf libconftest.dylib*
7001 rm -f conftest.*
7002 fi
7003fi
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7005$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7006
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7008$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7009if ${lt_cv_ld_exported_symbols_list+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011else
7012 lt_cv_ld_exported_symbols_list=no
7013 save_LDFLAGS=$LDFLAGS
7014 echo "_main" > conftest.sym
7015 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017/* end confdefs.h. */
7018
7019int
7020main ()
7021{
7022
7023 ;
7024 return 0;
7025}
7026_ACEOF
7027if ac_fn_c_try_link "$LINENO"; then :
7028 lt_cv_ld_exported_symbols_list=yes
7029else
7030 lt_cv_ld_exported_symbols_list=no
7031fi
7032rm -f core conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7034 LDFLAGS="$save_LDFLAGS"
7035
7036fi
7037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7038$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7039
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7041$as_echo_n "checking for -force_load linker flag... " >&6; }
7042if ${lt_cv_ld_force_load+:} false; then :
7043 $as_echo_n "(cached) " >&6
7044else
7045 lt_cv_ld_force_load=no
7046 cat > conftest.c << _LT_EOF
7047int forced_loaded() { return 2;}
7048_LT_EOF
7049 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7050 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7051 echo "$AR cru libconftest.a conftest.o" >&5
7052 $AR cru libconftest.a conftest.o 2>&5
7053 echo "$RANLIB libconftest.a" >&5
7054 $RANLIB libconftest.a 2>&5
7055 cat > conftest.c << _LT_EOF
7056int main() { return 0;}
7057_LT_EOF
7058 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7059 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7060 _lt_result=$?
7061 if test -s conftest.err && $GREP force_load conftest.err; then
7062 cat conftest.err >&5
7063 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7064 lt_cv_ld_force_load=yes
7065 else
7066 cat conftest.err >&5
7067 fi
7068 rm -f conftest.err libconftest.a conftest conftest.c
7069 rm -rf conftest.dSYM
7070
7071fi
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7073$as_echo "$lt_cv_ld_force_load" >&6; }
7074 case $host_os in
7075 rhapsody* | darwin1.[012])
7076 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7077 darwin1.*)
7078 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7079 darwin*) # darwin 5.x on
7080 # if running on 10.5 or later, the deployment target defaults
7081 # to the OS version, if on x86, and 10.4, the deployment
7082 # target defaults to 10.4. Don't you love it?
7083 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7084 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7085 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7086 10.[012]*)
7087 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7088 10.*)
7089 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7090 esac
7091 ;;
7092 esac
7093 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7094 _lt_dar_single_mod='$single_module'
7095 fi
7096 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7097 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7098 else
7099 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7100 fi
7101 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7102 _lt_dsymutil='~$DSYMUTIL $lib || :'
7103 else
7104 _lt_dsymutil=
7105 fi
7106 ;;
7107 esac
7108
7109ac_ext=c
7110ac_cpp='$CPP $CPPFLAGS'
7111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113ac_compiler_gnu=$ac_cv_c_compiler_gnu
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7115$as_echo_n "checking how to run the C preprocessor... " >&6; }
7116# On Suns, sometimes $CPP names a directory.
7117if test -n "$CPP" && test -d "$CPP"; then
7118 CPP=
7119fi
7120if test -z "$CPP"; then
7121 if ${ac_cv_prog_CPP+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123else
7124 # Double quotes because CPP needs to be expanded
7125 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7126 do
7127 ac_preproc_ok=false
7128for ac_c_preproc_warn_flag in '' yes
7129do
7130 # Use a header file that comes with gcc, so configuring glibc
7131 # with a fresh cross-compiler works.
7132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7133 # <limits.h> exists even on freestanding compilers.
7134 # On the NeXT, cc -E runs the code through the compiler's parser,
7135 # not just through cpp. "Syntax error" is here to catch this case.
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137/* end confdefs.h. */
7138#ifdef __STDC__
7139# include <limits.h>
7140#else
7141# include <assert.h>
7142#endif
7143 Syntax error
7144_ACEOF
7145if ac_fn_c_try_cpp "$LINENO"; then :
7146
7147else
7148 # Broken: fails on valid input.
7149continue
7150fi
7151rm -f conftest.err conftest.i conftest.$ac_ext
7152
7153 # OK, works on sane cases. Now check whether nonexistent headers
7154 # can be detected and how.
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156/* end confdefs.h. */
7157#include <ac_nonexistent.h>
7158_ACEOF
7159if ac_fn_c_try_cpp "$LINENO"; then :
7160 # Broken: success on invalid input.
7161continue
7162else
7163 # Passes both tests.
7164ac_preproc_ok=:
7165break
7166fi
7167rm -f conftest.err conftest.i conftest.$ac_ext
7168
7169done
7170# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7171rm -f conftest.i conftest.err conftest.$ac_ext
7172if $ac_preproc_ok; then :
7173 break
7174fi
7175
7176 done
7177 ac_cv_prog_CPP=$CPP
7178
7179fi
7180 CPP=$ac_cv_prog_CPP
7181else
7182 ac_cv_prog_CPP=$CPP
7183fi
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7185$as_echo "$CPP" >&6; }
7186ac_preproc_ok=false
7187for ac_c_preproc_warn_flag in '' yes
7188do
7189 # Use a header file that comes with gcc, so configuring glibc
7190 # with a fresh cross-compiler works.
7191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7192 # <limits.h> exists even on freestanding compilers.
7193 # On the NeXT, cc -E runs the code through the compiler's parser,
7194 # not just through cpp. "Syntax error" is here to catch this case.
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196/* end confdefs.h. */
7197#ifdef __STDC__
7198# include <limits.h>
7199#else
7200# include <assert.h>
7201#endif
7202 Syntax error
7203_ACEOF
7204if ac_fn_c_try_cpp "$LINENO"; then :
7205
7206else
7207 # Broken: fails on valid input.
7208continue
7209fi
7210rm -f conftest.err conftest.i conftest.$ac_ext
7211
7212 # OK, works on sane cases. Now check whether nonexistent headers
7213 # can be detected and how.
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215/* end confdefs.h. */
7216#include <ac_nonexistent.h>
7217_ACEOF
7218if ac_fn_c_try_cpp "$LINENO"; then :
7219 # Broken: success on invalid input.
7220continue
7221else
7222 # Passes both tests.
7223ac_preproc_ok=:
7224break
7225fi
7226rm -f conftest.err conftest.i conftest.$ac_ext
7227
7228done
7229# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7230rm -f conftest.i conftest.err conftest.$ac_ext
7231if $ac_preproc_ok; then :
7232
7233else
7234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7236as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7237See \`config.log' for more details" "$LINENO" 5; }
7238fi
7239
7240ac_ext=c
7241ac_cpp='$CPP $CPPFLAGS'
7242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244ac_compiler_gnu=$ac_cv_c_compiler_gnu
7245
7246
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7248$as_echo_n "checking for ANSI C header files... " >&6; }
7249if ${ac_cv_header_stdc+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251else
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253/* end confdefs.h. */
7254#include <stdlib.h>
7255#include <stdarg.h>
7256#include <string.h>
7257#include <float.h>
7258
7259int
7260main ()
7261{
7262
7263 ;
7264 return 0;
7265}
7266_ACEOF
7267if ac_fn_c_try_compile "$LINENO"; then :
7268 ac_cv_header_stdc=yes
7269else
7270 ac_cv_header_stdc=no
7271fi
7272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273
7274if test $ac_cv_header_stdc = yes; then
7275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277/* end confdefs.h. */
7278#include <string.h>
7279
7280_ACEOF
7281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7282 $EGREP "memchr" >/dev/null 2>&1; then :
7283
7284else
7285 ac_cv_header_stdc=no
7286fi
7287rm -f conftest*
7288
7289fi
7290
7291if test $ac_cv_header_stdc = yes; then
7292 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294/* end confdefs.h. */
7295#include <stdlib.h>
7296
7297_ACEOF
7298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7299 $EGREP "free" >/dev/null 2>&1; then :
7300
7301else
7302 ac_cv_header_stdc=no
7303fi
7304rm -f conftest*
7305
7306fi
7307
7308if test $ac_cv_header_stdc = yes; then
7309 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7310 if test "$cross_compiling" = yes; then :
7311 :
7312else
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314/* end confdefs.h. */
7315#include <ctype.h>
7316#include <stdlib.h>
7317#if ((' ' & 0x0FF) == 0x020)
7318# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7319# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7320#else
7321# define ISLOWER(c) \
7322 (('a' <= (c) && (c) <= 'i') \
7323 || ('j' <= (c) && (c) <= 'r') \
7324 || ('s' <= (c) && (c) <= 'z'))
7325# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7326#endif
7327
7328#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7329int
7330main ()
7331{
7332 int i;
7333 for (i = 0; i < 256; i++)
7334 if (XOR (islower (i), ISLOWER (i))
7335 || toupper (i) != TOUPPER (i))
7336 return 2;
7337 return 0;
7338}
7339_ACEOF
7340if ac_fn_c_try_run "$LINENO"; then :
7341
7342else
7343 ac_cv_header_stdc=no
7344fi
7345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7346 conftest.$ac_objext conftest.beam conftest.$ac_ext
7347fi
7348
7349fi
7350fi
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7352$as_echo "$ac_cv_header_stdc" >&6; }
7353if test $ac_cv_header_stdc = yes; then
7354
7355$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7356
7357fi
7358
7359# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7360for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7361 inttypes.h stdint.h unistd.h
7362do :
7363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7364ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7365"
7366if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7367 cat >>confdefs.h <<_ACEOF
7368#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7369_ACEOF
7370
7371fi
7372
7373done
7374
7375
7376for ac_header in dlfcn.h
7377do :
7378 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7379"
7380if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7381 cat >>confdefs.h <<_ACEOF
7382#define HAVE_DLFCN_H 1
7383_ACEOF
7384
7385fi
7386
7387done
7388
7389
7390
7391
7392
7393# Set options
7394
7395
7396
7397 enable_dlopen=no
7398
7399
7400 enable_win32_dll=no
7401
7402
7403 # Check whether --enable-shared was given.
7404if test "${enable_shared+set}" = set; then :
7405 enableval=$enable_shared; p=${PACKAGE-default}
7406 case $enableval in
7407 yes) enable_shared=yes ;;
7408 no) enable_shared=no ;;
7409 *)
7410 enable_shared=no
7411 # Look at the argument we got. We use all the common list separators.
7412 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7413 for pkg in $enableval; do
7414 IFS="$lt_save_ifs"
7415 if test "X$pkg" = "X$p"; then
7416 enable_shared=yes
7417 fi
7418 done
7419 IFS="$lt_save_ifs"
7420 ;;
7421 esac
7422else
7423 enable_shared=yes
7424fi
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434 # Check whether --enable-static was given.
7435if test "${enable_static+set}" = set; then :
7436 enableval=$enable_static; p=${PACKAGE-default}
7437 case $enableval in
7438 yes) enable_static=yes ;;
7439 no) enable_static=no ;;
7440 *)
7441 enable_static=no
7442 # Look at the argument we got. We use all the common list separators.
7443 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7444 for pkg in $enableval; do
7445 IFS="$lt_save_ifs"
7446 if test "X$pkg" = "X$p"; then
7447 enable_static=yes
7448 fi
7449 done
7450 IFS="$lt_save_ifs"
7451 ;;
7452 esac
7453else
7454 enable_static=yes
7455fi
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466# Check whether --with-pic was given.
7467if test "${with_pic+set}" = set; then :
7468 withval=$with_pic; lt_p=${PACKAGE-default}
7469 case $withval in
7470 yes|no) pic_mode=$withval ;;
7471 *)
7472 pic_mode=default
7473 # Look at the argument we got. We use all the common list separators.
7474 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7475 for lt_pkg in $withval; do
7476 IFS="$lt_save_ifs"
7477 if test "X$lt_pkg" = "X$lt_p"; then
7478 pic_mode=yes
7479 fi
7480 done
7481 IFS="$lt_save_ifs"
7482 ;;
7483 esac
7484else
7485 pic_mode=default
7486fi
7487
7488
7489test -z "$pic_mode" && pic_mode=default
7490
7491
7492
7493
7494
7495
7496
7497 # Check whether --enable-fast-install was given.
7498if test "${enable_fast_install+set}" = set; then :
7499 enableval=$enable_fast_install; p=${PACKAGE-default}
7500 case $enableval in
7501 yes) enable_fast_install=yes ;;
7502 no) enable_fast_install=no ;;
7503 *)
7504 enable_fast_install=no
7505 # Look at the argument we got. We use all the common list separators.
7506 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7507 for pkg in $enableval; do
7508 IFS="$lt_save_ifs"
7509 if test "X$pkg" = "X$p"; then
7510 enable_fast_install=yes
7511 fi
7512 done
7513 IFS="$lt_save_ifs"
7514 ;;
7515 esac
7516else
7517 enable_fast_install=yes
7518fi
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530# This can be used to rebuild libtool when needed
7531LIBTOOL_DEPS="$ltmain"
7532
7533# Always use our own libtool.
7534LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565test -z "$LN_S" && LN_S="ln -s"
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580if test -n "${ZSH_VERSION+set}" ; then
7581 setopt NO_GLOB_SUBST
7582fi
7583
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7585$as_echo_n "checking for objdir... " >&6; }
7586if ${lt_cv_objdir+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588else
7589 rm -f .libs 2>/dev/null
7590mkdir .libs 2>/dev/null
7591if test -d .libs; then
7592 lt_cv_objdir=.libs
7593else
7594 # MS-DOS does not allow filenames that begin with a dot.
7595 lt_cv_objdir=_libs
7596fi
7597rmdir .libs 2>/dev/null
7598fi
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7600$as_echo "$lt_cv_objdir" >&6; }
7601objdir=$lt_cv_objdir
7602
7603
7604
7605
7606
7607cat >>confdefs.h <<_ACEOF
7608#define LT_OBJDIR "$lt_cv_objdir/"
7609_ACEOF
7610
7611
7612
7613
7614case $host_os in
7615aix3*)
7616 # AIX sometimes has problems with the GCC collect2 program. For some
7617 # reason, if we set the COLLECT_NAMES environment variable, the problems
7618 # vanish in a puff of smoke.
7619 if test "X${COLLECT_NAMES+set}" != Xset; then
7620 COLLECT_NAMES=
7621 export COLLECT_NAMES
7622 fi
7623 ;;
7624esac
7625
7626# Global variables:
7627ofile=libtool
7628can_build_shared=yes
7629
7630# All known linkers require a `.a' archive for static linking (except MSVC,
7631# which needs '.lib').
7632libext=a
7633
7634with_gnu_ld="$lt_cv_prog_gnu_ld"
7635
7636old_CC="$CC"
7637old_CFLAGS="$CFLAGS"
7638
7639# Set sane defaults for various variables
7640test -z "$CC" && CC=cc
7641test -z "$LTCC" && LTCC=$CC
7642test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7643test -z "$LD" && LD=ld
7644test -z "$ac_objext" && ac_objext=o
7645
7646for cc_temp in $compiler""; do
7647 case $cc_temp in
7648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7650 \-*) ;;
7651 *) break;;
7652 esac
7653done
7654cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7655
7656
7657# Only perform the check for file, if the check method requires it
7658test -z "$MAGIC_CMD" && MAGIC_CMD=file
7659case $deplibs_check_method in
7660file_magic*)
7661 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7663$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7664if ${lt_cv_path_MAGIC_CMD+:} false; then :
7665 $as_echo_n "(cached) " >&6
7666else
7667 case $MAGIC_CMD in
7668[\\/*] | ?:[\\/]*)
7669 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7670 ;;
7671*)
7672 lt_save_MAGIC_CMD="$MAGIC_CMD"
7673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7674 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7675 for ac_dir in $ac_dummy; do
7676 IFS="$lt_save_ifs"
7677 test -z "$ac_dir" && ac_dir=.
7678 if test -f $ac_dir/${ac_tool_prefix}file; then
7679 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7680 if test -n "$file_magic_test_file"; then
7681 case $deplibs_check_method in
7682 "file_magic "*)
7683 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7685 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7686 $EGREP "$file_magic_regex" > /dev/null; then
7687 :
7688 else
7689 cat <<_LT_EOF 1>&2
7690
7691*** Warning: the command libtool uses to detect shared libraries,
7692*** $file_magic_cmd, produces output that libtool cannot recognize.
7693*** The result is that libtool may fail to recognize shared libraries
7694*** as such. This will affect the creation of libtool libraries that
7695*** depend on shared libraries, but programs linked with such libtool
7696*** libraries will work regardless of this problem. Nevertheless, you
7697*** may want to report the problem to your system manager and/or to
7698*** bug-libtool@gnu.org
7699
7700_LT_EOF
7701 fi ;;
7702 esac
7703 fi
7704 break
7705 fi
7706 done
7707 IFS="$lt_save_ifs"
7708 MAGIC_CMD="$lt_save_MAGIC_CMD"
7709 ;;
7710esac
7711fi
7712
7713MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7714if test -n "$MAGIC_CMD"; then
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7716$as_echo "$MAGIC_CMD" >&6; }
7717else
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719$as_echo "no" >&6; }
7720fi
7721
7722
7723
7724
7725
7726if test -z "$lt_cv_path_MAGIC_CMD"; then
7727 if test -n "$ac_tool_prefix"; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7729$as_echo_n "checking for file... " >&6; }
7730if ${lt_cv_path_MAGIC_CMD+:} false; then :
7731 $as_echo_n "(cached) " >&6
7732else
7733 case $MAGIC_CMD in
7734[\\/*] | ?:[\\/]*)
7735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7736 ;;
7737*)
7738 lt_save_MAGIC_CMD="$MAGIC_CMD"
7739 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7740 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7741 for ac_dir in $ac_dummy; do
7742 IFS="$lt_save_ifs"
7743 test -z "$ac_dir" && ac_dir=.
7744 if test -f $ac_dir/file; then
7745 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7746 if test -n "$file_magic_test_file"; then
7747 case $deplibs_check_method in
7748 "file_magic "*)
7749 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7750 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7751 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7752 $EGREP "$file_magic_regex" > /dev/null; then
7753 :
7754 else
7755 cat <<_LT_EOF 1>&2
7756
7757*** Warning: the command libtool uses to detect shared libraries,
7758*** $file_magic_cmd, produces output that libtool cannot recognize.
7759*** The result is that libtool may fail to recognize shared libraries
7760*** as such. This will affect the creation of libtool libraries that
7761*** depend on shared libraries, but programs linked with such libtool
7762*** libraries will work regardless of this problem. Nevertheless, you
7763*** may want to report the problem to your system manager and/or to
7764*** bug-libtool@gnu.org
7765
7766_LT_EOF
7767 fi ;;
7768 esac
7769 fi
7770 break
7771 fi
7772 done
7773 IFS="$lt_save_ifs"
7774 MAGIC_CMD="$lt_save_MAGIC_CMD"
7775 ;;
7776esac
7777fi
7778
7779MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7780if test -n "$MAGIC_CMD"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7782$as_echo "$MAGIC_CMD" >&6; }
7783else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785$as_echo "no" >&6; }
7786fi
7787
7788
7789 else
7790 MAGIC_CMD=:
7791 fi
7792fi
7793
7794 fi
7795 ;;
7796esac
7797
7798# Use C for the default configuration in the libtool script
7799
7800lt_save_CC="$CC"
7801ac_ext=c
7802ac_cpp='$CPP $CPPFLAGS'
7803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7805ac_compiler_gnu=$ac_cv_c_compiler_gnu
7806
7807
7808# Source file extension for C test sources.
7809ac_ext=c
7810
7811# Object file extension for compiled C test sources.
7812objext=o
7813objext=$objext
7814
7815# Code to be used in simple compile tests
7816lt_simple_compile_test_code="int some_variable = 0;"
7817
7818# Code to be used in simple link tests
7819lt_simple_link_test_code='int main(){return(0);}'
7820
7821
7822
7823
7824
7825
7826
7827# If no C compiler was specified, use CC.
7828LTCC=${LTCC-"$CC"}
7829
7830# If no C compiler flags were specified, use CFLAGS.
7831LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7832
7833# Allow CC to be a program name with arguments.
7834compiler=$CC
7835
7836# Save the default compiler, since it gets overwritten when the other
7837# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7838compiler_DEFAULT=$CC
7839
7840# save warnings/boilerplate of simple test code
7841ac_outfile=conftest.$ac_objext
7842echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7843eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7844_lt_compiler_boilerplate=`cat conftest.err`
7845$RM conftest*
7846
7847ac_outfile=conftest.$ac_objext
7848echo "$lt_simple_link_test_code" >conftest.$ac_ext
7849eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7850_lt_linker_boilerplate=`cat conftest.err`
7851$RM -r conftest*
7852
7853
tlegrand@google.com3c3902f2013-12-09 08:35:25 +00007854## CAVEAT EMPTOR:
7855## There is no encapsulation within the following macros, do not change
7856## the running order or otherwise move them around unless you know exactly
7857## what you are doing...
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +00007858if test -n "$compiler"; then
7859
7860lt_prog_compiler_no_builtin_flag=
7861
7862if test "$GCC" = yes; then
7863 case $cc_basename in
7864 nvcc*)
7865 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7866 *)
7867 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7868 esac
7869
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7871$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7872if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7873 $as_echo_n "(cached) " >&6
7874else
7875 lt_cv_prog_compiler_rtti_exceptions=no
7876 ac_outfile=conftest.$ac_objext
7877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7878 lt_compiler_flag="-fno-rtti -fno-exceptions"
7879 # Insert the option either (1) after the last *FLAGS variable, or
7880 # (2) before a word containing "conftest.", or (3) at the end.
7881 # Note that $ac_compile itself does not contain backslashes and begins
7882 # with a dollar sign (not a hyphen), so the echo should work correctly.
7883 # The option is referenced via a variable to avoid confusing sed.
7884 lt_compile=`echo "$ac_compile" | $SED \
7885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7887 -e 's:$: $lt_compiler_flag:'`
7888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7889 (eval "$lt_compile" 2>conftest.err)
7890 ac_status=$?
7891 cat conftest.err >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 if (exit $ac_status) && test -s "$ac_outfile"; then
7894 # The compiler can only warn and ignore the option if not recognized
7895 # So say no if there are warnings other than the usual output.
7896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7899 lt_cv_prog_compiler_rtti_exceptions=yes
7900 fi
7901 fi
7902 $RM conftest*
7903
7904fi
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7906$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7907
7908if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7909 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7910else
7911 :
7912fi
7913
7914fi
7915
7916
7917
7918
7919
7920
7921 lt_prog_compiler_wl=
7922lt_prog_compiler_pic=
7923lt_prog_compiler_static=
7924
7925
7926 if test "$GCC" = yes; then
7927 lt_prog_compiler_wl='-Wl,'
7928 lt_prog_compiler_static='-static'
7929
7930 case $host_os in
7931 aix*)
7932 # All AIX code is PIC.
7933 if test "$host_cpu" = ia64; then
7934 # AIX 5 now supports IA64 processor
7935 lt_prog_compiler_static='-Bstatic'
7936 fi
7937 ;;
7938
7939 amigaos*)
7940 case $host_cpu in
7941 powerpc)
7942 # see comment about AmigaOS4 .so support
7943 lt_prog_compiler_pic='-fPIC'
7944 ;;
7945 m68k)
7946 # FIXME: we need at least 68020 code to build shared libraries, but
7947 # adding the `-m68020' flag to GCC prevents building anything better,
7948 # like `-m68040'.
7949 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7950 ;;
7951 esac
7952 ;;
7953
7954 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7955 # PIC is the default for these OSes.
7956 ;;
7957
7958 mingw* | cygwin* | pw32* | os2* | cegcc*)
7959 # This hack is so that the source file can tell whether it is being
7960 # built for inclusion in a dll (and should export symbols for example).
7961 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7962 # (--disable-auto-import) libraries
7963 lt_prog_compiler_pic='-DDLL_EXPORT'
7964 ;;
7965
7966 darwin* | rhapsody*)
7967 # PIC is the default on this platform
7968 # Common symbols not allowed in MH_DYLIB files
7969 lt_prog_compiler_pic='-fno-common'
7970 ;;
7971
7972 haiku*)
7973 # PIC is the default for Haiku.
7974 # The "-static" flag exists, but is broken.
7975 lt_prog_compiler_static=
7976 ;;
7977
7978 hpux*)
7979 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7980 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7981 # sets the default TLS model and affects inlining.
7982 case $host_cpu in
7983 hppa*64*)
7984 # +Z the default
7985 ;;
7986 *)
7987 lt_prog_compiler_pic='-fPIC'
7988 ;;
7989 esac
7990 ;;
7991
7992 interix[3-9]*)
7993 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7994 # Instead, we relocate shared libraries at runtime.
7995 ;;
7996
7997 msdosdjgpp*)
7998 # Just because we use GCC doesn't mean we suddenly get shared libraries
7999 # on systems that don't support them.
8000 lt_prog_compiler_can_build_shared=no
8001 enable_shared=no
8002 ;;
8003
8004 *nto* | *qnx*)
8005 # QNX uses GNU C++, but need to define -shared option too, otherwise
8006 # it will coredump.
8007 lt_prog_compiler_pic='-fPIC -shared'
8008 ;;
8009
8010 sysv4*MP*)
8011 if test -d /usr/nec; then
8012 lt_prog_compiler_pic=-Kconform_pic
8013 fi
8014 ;;
8015
8016 *)
8017 lt_prog_compiler_pic='-fPIC'
8018 ;;
8019 esac
8020
8021 case $cc_basename in
8022 nvcc*) # Cuda Compiler Driver 2.2
8023 lt_prog_compiler_wl='-Xlinker '
8024 if test -n "$lt_prog_compiler_pic"; then
8025 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8026 fi
8027 ;;
8028 esac
8029 else
8030 # PORTME Check for flag to pass linker flags through the system compiler.
8031 case $host_os in
8032 aix*)
8033 lt_prog_compiler_wl='-Wl,'
8034 if test "$host_cpu" = ia64; then
8035 # AIX 5 now supports IA64 processor
8036 lt_prog_compiler_static='-Bstatic'
8037 else
8038 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8039 fi
8040 ;;
8041
8042 mingw* | cygwin* | pw32* | os2* | cegcc*)
8043 # This hack is so that the source file can tell whether it is being
8044 # built for inclusion in a dll (and should export symbols for example).
8045 lt_prog_compiler_pic='-DDLL_EXPORT'
8046 ;;
8047
8048 hpux9* | hpux10* | hpux11*)
8049 lt_prog_compiler_wl='-Wl,'
8050 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8051 # not for PA HP-UX.
8052 case $host_cpu in
8053 hppa*64*|ia64*)
8054 # +Z the default
8055 ;;
8056 *)
8057 lt_prog_compiler_pic='+Z'
8058 ;;
8059 esac
8060 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8061 lt_prog_compiler_static='${wl}-a ${wl}archive'
8062 ;;
8063
8064 irix5* | irix6* | nonstopux*)
8065 lt_prog_compiler_wl='-Wl,'
8066 # PIC (with -KPIC) is the default.
8067 lt_prog_compiler_static='-non_shared'
8068 ;;
8069
8070 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8071 case $cc_basename in
8072 # old Intel for x86_64 which still supported -KPIC.
8073 ecc*)
8074 lt_prog_compiler_wl='-Wl,'
8075 lt_prog_compiler_pic='-KPIC'
8076 lt_prog_compiler_static='-static'
8077 ;;
8078 # icc used to be incompatible with GCC.
8079 # ICC 10 doesn't accept -KPIC any more.
8080 icc* | ifort*)
8081 lt_prog_compiler_wl='-Wl,'
8082 lt_prog_compiler_pic='-fPIC'
8083 lt_prog_compiler_static='-static'
8084 ;;
8085 # Lahey Fortran 8.1.
8086 lf95*)
8087 lt_prog_compiler_wl='-Wl,'
8088 lt_prog_compiler_pic='--shared'
8089 lt_prog_compiler_static='--static'
8090 ;;
8091 nagfor*)
8092 # NAG Fortran compiler
8093 lt_prog_compiler_wl='-Wl,-Wl,,'
8094 lt_prog_compiler_pic='-PIC'
8095 lt_prog_compiler_static='-Bstatic'
8096 ;;
8097 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8098 # Portland Group compilers (*not* the Pentium gcc compiler,
8099 # which looks to be a dead project)
8100 lt_prog_compiler_wl='-Wl,'
8101 lt_prog_compiler_pic='-fpic'
8102 lt_prog_compiler_static='-Bstatic'
8103 ;;
8104 ccc*)
8105 lt_prog_compiler_wl='-Wl,'
8106 # All Alpha code is PIC.
8107 lt_prog_compiler_static='-non_shared'
8108 ;;
8109 xl* | bgxl* | bgf* | mpixl*)
8110 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8111 lt_prog_compiler_wl='-Wl,'
8112 lt_prog_compiler_pic='-qpic'
8113 lt_prog_compiler_static='-qstaticlink'
8114 ;;
8115 *)
8116 case `$CC -V 2>&1 | sed 5q` in
8117 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8118 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8119 lt_prog_compiler_pic='-KPIC'
8120 lt_prog_compiler_static='-Bstatic'
8121 lt_prog_compiler_wl=''
8122 ;;
8123 *Sun\ F* | *Sun*Fortran*)
8124 lt_prog_compiler_pic='-KPIC'
8125 lt_prog_compiler_static='-Bstatic'
8126 lt_prog_compiler_wl='-Qoption ld '
8127 ;;
8128 *Sun\ C*)
8129 # Sun C 5.9
8130 lt_prog_compiler_pic='-KPIC'
8131 lt_prog_compiler_static='-Bstatic'
8132 lt_prog_compiler_wl='-Wl,'
8133 ;;
8134 *Intel*\ [CF]*Compiler*)
8135 lt_prog_compiler_wl='-Wl,'
8136 lt_prog_compiler_pic='-fPIC'
8137 lt_prog_compiler_static='-static'
8138 ;;
8139 *Portland\ Group*)
8140 lt_prog_compiler_wl='-Wl,'
8141 lt_prog_compiler_pic='-fpic'
8142 lt_prog_compiler_static='-Bstatic'
8143 ;;
8144 esac
8145 ;;
8146 esac
8147 ;;
8148
8149 newsos6)
8150 lt_prog_compiler_pic='-KPIC'
8151 lt_prog_compiler_static='-Bstatic'
8152 ;;
8153
8154 *nto* | *qnx*)
8155 # QNX uses GNU C++, but need to define -shared option too, otherwise
8156 # it will coredump.
8157 lt_prog_compiler_pic='-fPIC -shared'
8158 ;;
8159
8160 osf3* | osf4* | osf5*)
8161 lt_prog_compiler_wl='-Wl,'
8162 # All OSF/1 code is PIC.
8163 lt_prog_compiler_static='-non_shared'
8164 ;;
8165
8166 rdos*)
8167 lt_prog_compiler_static='-non_shared'
8168 ;;
8169
8170 solaris*)
8171 lt_prog_compiler_pic='-KPIC'
8172 lt_prog_compiler_static='-Bstatic'
8173 case $cc_basename in
8174 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8175 lt_prog_compiler_wl='-Qoption ld ';;
8176 *)
8177 lt_prog_compiler_wl='-Wl,';;
8178 esac
8179 ;;
8180
8181 sunos4*)
8182 lt_prog_compiler_wl='-Qoption ld '
8183 lt_prog_compiler_pic='-PIC'
8184 lt_prog_compiler_static='-Bstatic'
8185 ;;
8186
8187 sysv4 | sysv4.2uw2* | sysv4.3*)
8188 lt_prog_compiler_wl='-Wl,'
8189 lt_prog_compiler_pic='-KPIC'
8190 lt_prog_compiler_static='-Bstatic'
8191 ;;
8192
8193 sysv4*MP*)
8194 if test -d /usr/nec ;then
8195 lt_prog_compiler_pic='-Kconform_pic'
8196 lt_prog_compiler_static='-Bstatic'
8197 fi
8198 ;;
8199
8200 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8201 lt_prog_compiler_wl='-Wl,'
8202 lt_prog_compiler_pic='-KPIC'
8203 lt_prog_compiler_static='-Bstatic'
8204 ;;
8205
8206 unicos*)
8207 lt_prog_compiler_wl='-Wl,'
8208 lt_prog_compiler_can_build_shared=no
8209 ;;
8210
8211 uts4*)
8212 lt_prog_compiler_pic='-pic'
8213 lt_prog_compiler_static='-Bstatic'
8214 ;;
8215
8216 *)
8217 lt_prog_compiler_can_build_shared=no
8218 ;;
8219 esac
8220 fi
8221
8222case $host_os in
8223 # For platforms which do not support PIC, -DPIC is meaningless:
8224 *djgpp*)
8225 lt_prog_compiler_pic=
8226 ;;
8227 *)
8228 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8229 ;;
8230esac
8231
8232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8233$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8234if ${lt_cv_prog_compiler_pic+:} false; then :
8235 $as_echo_n "(cached) " >&6
8236else
8237 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8238fi
8239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8240$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8241lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8242
8243#
8244# Check to make sure the PIC flag actually works.
8245#
8246if test -n "$lt_prog_compiler_pic"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8248$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8249if ${lt_cv_prog_compiler_pic_works+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251else
8252 lt_cv_prog_compiler_pic_works=no
8253 ac_outfile=conftest.$ac_objext
8254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8255 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8256 # Insert the option either (1) after the last *FLAGS variable, or
8257 # (2) before a word containing "conftest.", or (3) at the end.
8258 # Note that $ac_compile itself does not contain backslashes and begins
8259 # with a dollar sign (not a hyphen), so the echo should work correctly.
8260 # The option is referenced via a variable to avoid confusing sed.
8261 lt_compile=`echo "$ac_compile" | $SED \
8262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8264 -e 's:$: $lt_compiler_flag:'`
8265 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8266 (eval "$lt_compile" 2>conftest.err)
8267 ac_status=$?
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 if (exit $ac_status) && test -s "$ac_outfile"; then
8271 # The compiler can only warn and ignore the option if not recognized
8272 # So say no if there are warnings other than the usual output.
8273 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8275 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8276 lt_cv_prog_compiler_pic_works=yes
8277 fi
8278 fi
8279 $RM conftest*
8280
8281fi
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8283$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8284
8285if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8286 case $lt_prog_compiler_pic in
8287 "" | " "*) ;;
8288 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8289 esac
8290else
8291 lt_prog_compiler_pic=
8292 lt_prog_compiler_can_build_shared=no
8293fi
8294
8295fi
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307#
8308# Check to make sure the static flag actually works.
8309#
8310wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8312$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8313if ${lt_cv_prog_compiler_static_works+:} false; then :
8314 $as_echo_n "(cached) " >&6
8315else
8316 lt_cv_prog_compiler_static_works=no
8317 save_LDFLAGS="$LDFLAGS"
8318 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8319 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8320 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8321 # The linker can only warn and ignore the option if not recognized
8322 # So say no if there are warnings
8323 if test -s conftest.err; then
8324 # Append any errors to the config.log.
8325 cat conftest.err 1>&5
8326 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8328 if diff conftest.exp conftest.er2 >/dev/null; then
8329 lt_cv_prog_compiler_static_works=yes
8330 fi
8331 else
8332 lt_cv_prog_compiler_static_works=yes
8333 fi
8334 fi
8335 $RM -r conftest*
8336 LDFLAGS="$save_LDFLAGS"
8337
8338fi
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8340$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8341
8342if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8343 :
8344else
8345 lt_prog_compiler_static=
8346fi
8347
8348
8349
8350
8351
8352
8353
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8355$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8356if ${lt_cv_prog_compiler_c_o+:} false; then :
8357 $as_echo_n "(cached) " >&6
8358else
8359 lt_cv_prog_compiler_c_o=no
8360 $RM -r conftest 2>/dev/null
8361 mkdir conftest
8362 cd conftest
8363 mkdir out
8364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8365
8366 lt_compiler_flag="-o out/conftest2.$ac_objext"
8367 # Insert the option either (1) after the last *FLAGS variable, or
8368 # (2) before a word containing "conftest.", or (3) at the end.
8369 # Note that $ac_compile itself does not contain backslashes and begins
8370 # with a dollar sign (not a hyphen), so the echo should work correctly.
8371 lt_compile=`echo "$ac_compile" | $SED \
8372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8374 -e 's:$: $lt_compiler_flag:'`
8375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8376 (eval "$lt_compile" 2>out/conftest.err)
8377 ac_status=$?
8378 cat out/conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8381 then
8382 # The compiler can only warn and ignore the option if not recognized
8383 # So say no if there are warnings
8384 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8385 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8386 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8387 lt_cv_prog_compiler_c_o=yes
8388 fi
8389 fi
8390 chmod u+w . 2>&5
8391 $RM conftest*
8392 # SGI C++ compiler will create directory out/ii_files/ for
8393 # template instantiation
8394 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8395 $RM out/* && rmdir out
8396 cd ..
8397 $RM -r conftest
8398 $RM conftest*
8399
8400fi
8401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8402$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8403
8404
8405
8406
8407
8408
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8410$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8411if ${lt_cv_prog_compiler_c_o+:} false; then :
8412 $as_echo_n "(cached) " >&6
8413else
8414 lt_cv_prog_compiler_c_o=no
8415 $RM -r conftest 2>/dev/null
8416 mkdir conftest
8417 cd conftest
8418 mkdir out
8419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8420
8421 lt_compiler_flag="-o out/conftest2.$ac_objext"
8422 # Insert the option either (1) after the last *FLAGS variable, or
8423 # (2) before a word containing "conftest.", or (3) at the end.
8424 # Note that $ac_compile itself does not contain backslashes and begins
8425 # with a dollar sign (not a hyphen), so the echo should work correctly.
8426 lt_compile=`echo "$ac_compile" | $SED \
8427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8429 -e 's:$: $lt_compiler_flag:'`
8430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8431 (eval "$lt_compile" 2>out/conftest.err)
8432 ac_status=$?
8433 cat out/conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8436 then
8437 # The compiler can only warn and ignore the option if not recognized
8438 # So say no if there are warnings
8439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8442 lt_cv_prog_compiler_c_o=yes
8443 fi
8444 fi
8445 chmod u+w . 2>&5
8446 $RM conftest*
8447 # SGI C++ compiler will create directory out/ii_files/ for
8448 # template instantiation
8449 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8450 $RM out/* && rmdir out
8451 cd ..
8452 $RM -r conftest
8453 $RM conftest*
8454
8455fi
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8457$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8458
8459
8460
8461
8462hard_links="nottested"
8463if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8464 # do not overwrite the value of need_locks provided by the user
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8466$as_echo_n "checking if we can lock with hard links... " >&6; }
8467 hard_links=yes
8468 $RM conftest*
8469 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8470 touch conftest.a
8471 ln conftest.a conftest.b 2>&5 || hard_links=no
8472 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8474$as_echo "$hard_links" >&6; }
8475 if test "$hard_links" = no; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8477$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8478 need_locks=warn
8479 fi
8480else
8481 need_locks=no
8482fi
8483
8484
8485
8486
8487
8488
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8490$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8491
8492 runpath_var=
8493 allow_undefined_flag=
8494 always_export_symbols=no
8495 archive_cmds=
8496 archive_expsym_cmds=
8497 compiler_needs_object=no
8498 enable_shared_with_static_runtimes=no
8499 export_dynamic_flag_spec=
8500 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8501 hardcode_automatic=no
8502 hardcode_direct=no
8503 hardcode_direct_absolute=no
8504 hardcode_libdir_flag_spec=
8505 hardcode_libdir_separator=
8506 hardcode_minus_L=no
8507 hardcode_shlibpath_var=unsupported
8508 inherit_rpath=no
8509 link_all_deplibs=unknown
8510 module_cmds=
8511 module_expsym_cmds=
8512 old_archive_from_new_cmds=
8513 old_archive_from_expsyms_cmds=
8514 thread_safe_flag_spec=
8515 whole_archive_flag_spec=
8516 # include_expsyms should be a list of space-separated symbols to be *always*
8517 # included in the symbol list
8518 include_expsyms=
8519 # exclude_expsyms can be an extended regexp of symbols to exclude
8520 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8521 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8522 # as well as any symbol that contains `d'.
8523 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8524 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8525 # platforms (ab)use it in PIC code, but their linkers get confused if
8526 # the symbol is explicitly referenced. Since portable code cannot
8527 # rely on this symbol name, it's probably fine to never include it in
8528 # preloaded symbol tables.
8529 # Exclude shared library initialization/finalization symbols.
8530 extract_expsyms_cmds=
8531
8532 case $host_os in
8533 cygwin* | mingw* | pw32* | cegcc*)
8534 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8535 # When not using gcc, we currently assume that we are using
8536 # Microsoft Visual C++.
8537 if test "$GCC" != yes; then
8538 with_gnu_ld=no
8539 fi
8540 ;;
8541 interix*)
8542 # we just hope/assume this is gcc and not c89 (= MSVC++)
8543 with_gnu_ld=yes
8544 ;;
8545 openbsd*)
8546 with_gnu_ld=no
8547 ;;
8548 esac
8549
8550 ld_shlibs=yes
8551
8552 # On some targets, GNU ld is compatible enough with the native linker
8553 # that we're better off using the native interface for both.
8554 lt_use_gnu_ld_interface=no
8555 if test "$with_gnu_ld" = yes; then
8556 case $host_os in
8557 aix*)
8558 # The AIX port of GNU ld has always aspired to compatibility
8559 # with the native linker. However, as the warning in the GNU ld
8560 # block says, versions before 2.19.5* couldn't really create working
8561 # shared libraries, regardless of the interface used.
8562 case `$LD -v 2>&1` in
8563 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8564 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8565 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8566 *)
8567 lt_use_gnu_ld_interface=yes
8568 ;;
8569 esac
8570 ;;
8571 *)
8572 lt_use_gnu_ld_interface=yes
8573 ;;
8574 esac
8575 fi
8576
8577 if test "$lt_use_gnu_ld_interface" = yes; then
8578 # If archive_cmds runs LD, not CC, wlarc should be empty
8579 wlarc='${wl}'
8580
8581 # Set some defaults for GNU ld with shared library support. These
8582 # are reset later if shared libraries are not supported. Putting them
8583 # here allows them to be overridden if necessary.
8584 runpath_var=LD_RUN_PATH
8585 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8586 export_dynamic_flag_spec='${wl}--export-dynamic'
8587 # ancient GNU ld didn't support --whole-archive et. al.
8588 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8589 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8590 else
8591 whole_archive_flag_spec=
8592 fi
8593 supports_anon_versioning=no
8594 case `$LD -v 2>&1` in
8595 *GNU\ gold*) supports_anon_versioning=yes ;;
8596 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8597 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8598 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8599 *\ 2.11.*) ;; # other 2.11 versions
8600 *) supports_anon_versioning=yes ;;
8601 esac
8602
8603 # See if GNU ld supports shared libraries.
8604 case $host_os in
8605 aix[3-9]*)
8606 # On AIX/PPC, the GNU linker is very broken
8607 if test "$host_cpu" != ia64; then
8608 ld_shlibs=no
8609 cat <<_LT_EOF 1>&2
8610
8611*** Warning: the GNU linker, at least up to release 2.19, is reported
8612*** to be unable to reliably create shared libraries on AIX.
8613*** Therefore, libtool is disabling shared libraries support. If you
8614*** really care for shared libraries, you may want to install binutils
8615*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8616*** You will then need to restart the configuration process.
8617
8618_LT_EOF
8619 fi
8620 ;;
8621
8622 amigaos*)
8623 case $host_cpu in
8624 powerpc)
8625 # see comment about AmigaOS4 .so support
8626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8627 archive_expsym_cmds=''
8628 ;;
8629 m68k)
8630 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)'
8631 hardcode_libdir_flag_spec='-L$libdir'
8632 hardcode_minus_L=yes
8633 ;;
8634 esac
8635 ;;
8636
8637 beos*)
8638 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8639 allow_undefined_flag=unsupported
8640 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8641 # support --undefined. This deserves some investigation. FIXME
8642 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8643 else
8644 ld_shlibs=no
8645 fi
8646 ;;
8647
8648 cygwin* | mingw* | pw32* | cegcc*)
8649 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8650 # as there is no search path for DLLs.
8651 hardcode_libdir_flag_spec='-L$libdir'
8652 export_dynamic_flag_spec='${wl}--export-all-symbols'
8653 allow_undefined_flag=unsupported
8654 always_export_symbols=no
8655 enable_shared_with_static_runtimes=yes
8656 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'
8657 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8658
8659 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8661 # If the export-symbols file already is a .def file (1st line
8662 # is EXPORTS), use it as is; otherwise, prepend...
8663 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8664 cp $export_symbols $output_objdir/$soname.def;
8665 else
8666 echo EXPORTS > $output_objdir/$soname.def;
8667 cat $export_symbols >> $output_objdir/$soname.def;
8668 fi~
8669 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8670 else
8671 ld_shlibs=no
8672 fi
8673 ;;
8674
8675 haiku*)
8676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8677 link_all_deplibs=yes
8678 ;;
8679
8680 interix[3-9]*)
8681 hardcode_direct=no
8682 hardcode_shlibpath_var=no
8683 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8684 export_dynamic_flag_spec='${wl}-E'
8685 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8686 # Instead, shared libraries are loaded at an image base (0x10000000 by
8687 # default) and relocated if they conflict, which is a slow very memory
8688 # consuming and fragmenting process. To avoid this, we pick a random,
8689 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8690 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8691 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8692 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'
8693 ;;
8694
8695 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8696 tmp_diet=no
8697 if test "$host_os" = linux-dietlibc; then
8698 case $cc_basename in
8699 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8700 esac
8701 fi
8702 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8703 && test "$tmp_diet" = no
8704 then
8705 tmp_addflag=' $pic_flag'
8706 tmp_sharedflag='-shared'
8707 case $cc_basename,$host_cpu in
8708 pgcc*) # Portland Group C compiler
8709 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'
8710 tmp_addflag=' $pic_flag'
8711 ;;
8712 pgf77* | pgf90* | pgf95* | pgfortran*)
8713 # Portland Group f77 and f90 compilers
8714 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'
8715 tmp_addflag=' $pic_flag -Mnomain' ;;
8716 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8717 tmp_addflag=' -i_dynamic' ;;
8718 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8719 tmp_addflag=' -i_dynamic -nofor_main' ;;
8720 ifc* | ifort*) # Intel Fortran compiler
8721 tmp_addflag=' -nofor_main' ;;
8722 lf95*) # Lahey Fortran 8.1
8723 whole_archive_flag_spec=
8724 tmp_sharedflag='--shared' ;;
8725 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8726 tmp_sharedflag='-qmkshrobj'
8727 tmp_addflag= ;;
8728 nvcc*) # Cuda Compiler Driver 2.2
8729 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'
8730 compiler_needs_object=yes
8731 ;;
8732 esac
8733 case `$CC -V 2>&1 | sed 5q` in
8734 *Sun\ C*) # Sun C 5.9
8735 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'
8736 compiler_needs_object=yes
8737 tmp_sharedflag='-G' ;;
8738 *Sun\ F*) # Sun Fortran 8.3
8739 tmp_sharedflag='-G' ;;
8740 esac
8741 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8742
8743 if test "x$supports_anon_versioning" = xyes; then
8744 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8745 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8746 echo "local: *; };" >> $output_objdir/$libname.ver~
8747 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8748 fi
8749
8750 case $cc_basename in
8751 xlf* | bgf* | bgxlf* | mpixlf*)
8752 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8753 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8755 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8756 if test "x$supports_anon_versioning" = xyes; then
8757 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8758 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8759 echo "local: *; };" >> $output_objdir/$libname.ver~
8760 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8761 fi
8762 ;;
8763 esac
8764 else
8765 ld_shlibs=no
8766 fi
8767 ;;
8768
8769 netbsd*)
8770 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8771 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8772 wlarc=
8773 else
8774 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8775 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8776 fi
8777 ;;
8778
8779 solaris*)
8780 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8781 ld_shlibs=no
8782 cat <<_LT_EOF 1>&2
8783
8784*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8785*** create shared libraries on Solaris systems. Therefore, libtool
8786*** is disabling shared libraries support. We urge you to upgrade GNU
8787*** binutils to release 2.9.1 or newer. Another option is to modify
8788*** your PATH or compiler configuration so that the native linker is
8789*** used, and then restart.
8790
8791_LT_EOF
8792 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8793 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8794 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8795 else
8796 ld_shlibs=no
8797 fi
8798 ;;
8799
8800 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8801 case `$LD -v 2>&1` in
8802 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8803 ld_shlibs=no
8804 cat <<_LT_EOF 1>&2
8805
8806*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8807*** reliably create shared libraries on SCO systems. Therefore, libtool
8808*** is disabling shared libraries support. We urge you to upgrade GNU
8809*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8810*** your PATH or compiler configuration so that the native linker is
8811*** used, and then restart.
8812
8813_LT_EOF
8814 ;;
8815 *)
8816 # For security reasons, it is highly recommended that you always
8817 # use absolute paths for naming shared libraries, and exclude the
8818 # DT_RUNPATH tag from executables and libraries. But doing so
8819 # requires that you compile everything twice, which is a pain.
8820 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8823 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8824 else
8825 ld_shlibs=no
8826 fi
8827 ;;
8828 esac
8829 ;;
8830
8831 sunos4*)
8832 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8833 wlarc=
8834 hardcode_direct=yes
8835 hardcode_shlibpath_var=no
8836 ;;
8837
8838 *)
8839 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8840 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8841 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8842 else
8843 ld_shlibs=no
8844 fi
8845 ;;
8846 esac
8847
8848 if test "$ld_shlibs" = no; then
8849 runpath_var=
8850 hardcode_libdir_flag_spec=
8851 export_dynamic_flag_spec=
8852 whole_archive_flag_spec=
8853 fi
8854 else
8855 # PORTME fill in a description of your system's linker (not GNU ld)
8856 case $host_os in
8857 aix3*)
8858 allow_undefined_flag=unsupported
8859 always_export_symbols=yes
8860 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'
8861 # Note: this linker hardcodes the directories in LIBPATH if there
8862 # are no directories specified by -L.
8863 hardcode_minus_L=yes
8864 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8865 # Neither direct hardcoding nor static linking is supported with a
8866 # broken collect2.
8867 hardcode_direct=unsupported
8868 fi
8869 ;;
8870
8871 aix[4-9]*)
8872 if test "$host_cpu" = ia64; then
8873 # On IA64, the linker does run time linking by default, so we don't
8874 # have to do anything special.
8875 aix_use_runtimelinking=no
8876 exp_sym_flag='-Bexport'
8877 no_entry_flag=""
8878 else
8879 # If we're using GNU nm, then we don't want the "-C" option.
8880 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8881 # Also, AIX nm treats weak defined symbols like other global
8882 # defined symbols, whereas GNU nm marks them as "W".
8883 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8884 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'
8885 else
8886 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'
8887 fi
8888 aix_use_runtimelinking=no
8889
8890 # Test if we are trying to use run time linking or normal
8891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8892 # need to do runtime linking.
8893 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8894 for ld_flag in $LDFLAGS; do
8895 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8896 aix_use_runtimelinking=yes
8897 break
8898 fi
8899 done
8900 ;;
8901 esac
8902
8903 exp_sym_flag='-bexport'
8904 no_entry_flag='-bnoentry'
8905 fi
8906
8907 # When large executables or shared objects are built, AIX ld can
8908 # have problems creating the table of contents. If linking a library
8909 # or program results in "error TOC overflow" add -mminimal-toc to
8910 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8911 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8912
8913 archive_cmds=''
8914 hardcode_direct=yes
8915 hardcode_direct_absolute=yes
8916 hardcode_libdir_separator=':'
8917 link_all_deplibs=yes
8918 file_list_spec='${wl}-f,'
8919
8920 if test "$GCC" = yes; then
8921 case $host_os in aix4.[012]|aix4.[012].*)
8922 # We only want to do this on AIX 4.2 and lower, the check
8923 # below for broken collect2 doesn't work under 4.3+
8924 collect2name=`${CC} -print-prog-name=collect2`
8925 if test -f "$collect2name" &&
8926 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8927 then
8928 # We have reworked collect2
8929 :
8930 else
8931 # We have old collect2
8932 hardcode_direct=unsupported
8933 # It fails to find uninstalled libraries when the uninstalled
8934 # path is not listed in the libpath. Setting hardcode_minus_L
8935 # to unsupported forces relinking
8936 hardcode_minus_L=yes
8937 hardcode_libdir_flag_spec='-L$libdir'
8938 hardcode_libdir_separator=
8939 fi
8940 ;;
8941 esac
8942 shared_flag='-shared'
8943 if test "$aix_use_runtimelinking" = yes; then
8944 shared_flag="$shared_flag "'${wl}-G'
8945 fi
8946 else
8947 # not using gcc
8948 if test "$host_cpu" = ia64; then
8949 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8950 # chokes on -Wl,-G. The following line is correct:
8951 shared_flag='-G'
8952 else
8953 if test "$aix_use_runtimelinking" = yes; then
8954 shared_flag='${wl}-G'
8955 else
8956 shared_flag='${wl}-bM:SRE'
8957 fi
8958 fi
8959 fi
8960
8961 export_dynamic_flag_spec='${wl}-bexpall'
8962 # It seems that -bexpall does not export symbols beginning with
8963 # underscore (_), so it is better to generate a list of symbols to export.
8964 always_export_symbols=yes
8965 if test "$aix_use_runtimelinking" = yes; then
8966 # Warning - without using the other runtime loading flags (-brtl),
8967 # -berok will link without error, but may produce a broken library.
8968 allow_undefined_flag='-berok'
8969 # Determine the default libpath from the value encoded in an
8970 # empty executable.
8971 if test "${lt_cv_aix_libpath+set}" = set; then
8972 aix_libpath=$lt_cv_aix_libpath
8973else
8974 if ${lt_cv_aix_libpath_+:} false; then :
8975 $as_echo_n "(cached) " >&6
8976else
8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978/* end confdefs.h. */
8979
8980int
8981main ()
8982{
8983
8984 ;
8985 return 0;
8986}
8987_ACEOF
8988if ac_fn_c_try_link "$LINENO"; then :
8989
8990 lt_aix_libpath_sed='
8991 /Import File Strings/,/^$/ {
8992 /^0/ {
8993 s/^0 *\([^ ]*\) *$/\1/
8994 p
8995 }
8996 }'
8997 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8998 # Check for a 64-bit object if we didn't find anything.
8999 if test -z "$lt_cv_aix_libpath_"; then
9000 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9001 fi
9002fi
9003rm -f core conftest.err conftest.$ac_objext \
9004 conftest$ac_exeext conftest.$ac_ext
9005 if test -z "$lt_cv_aix_libpath_"; then
9006 lt_cv_aix_libpath_="/usr/lib:/lib"
9007 fi
9008
9009fi
9010
9011 aix_libpath=$lt_cv_aix_libpath_
9012fi
9013
9014 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9015 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"
9016 else
9017 if test "$host_cpu" = ia64; then
9018 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9019 allow_undefined_flag="-z nodefs"
9020 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"
9021 else
9022 # Determine the default libpath from the value encoded in an
9023 # empty executable.
9024 if test "${lt_cv_aix_libpath+set}" = set; then
9025 aix_libpath=$lt_cv_aix_libpath
9026else
9027 if ${lt_cv_aix_libpath_+:} false; then :
9028 $as_echo_n "(cached) " >&6
9029else
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031/* end confdefs.h. */
9032
9033int
9034main ()
9035{
9036
9037 ;
9038 return 0;
9039}
9040_ACEOF
9041if ac_fn_c_try_link "$LINENO"; then :
9042
9043 lt_aix_libpath_sed='
9044 /Import File Strings/,/^$/ {
9045 /^0/ {
9046 s/^0 *\([^ ]*\) *$/\1/
9047 p
9048 }
9049 }'
9050 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9051 # Check for a 64-bit object if we didn't find anything.
9052 if test -z "$lt_cv_aix_libpath_"; then
9053 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9054 fi
9055fi
9056rm -f core conftest.err conftest.$ac_objext \
9057 conftest$ac_exeext conftest.$ac_ext
9058 if test -z "$lt_cv_aix_libpath_"; then
9059 lt_cv_aix_libpath_="/usr/lib:/lib"
9060 fi
9061
9062fi
9063
9064 aix_libpath=$lt_cv_aix_libpath_
9065fi
9066
9067 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9068 # Warning - without using the other run time loading flags,
9069 # -berok will link without error, but may produce a broken library.
9070 no_undefined_flag=' ${wl}-bernotok'
9071 allow_undefined_flag=' ${wl}-berok'
9072 if test "$with_gnu_ld" = yes; then
9073 # We only use this code for GNU lds that support --whole-archive.
9074 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9075 else
9076 # Exported symbols can be pulled into shared objects from archives
9077 whole_archive_flag_spec='$convenience'
9078 fi
9079 archive_cmds_need_lc=yes
9080 # This is similar to how AIX traditionally builds its shared libraries.
9081 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'
9082 fi
9083 fi
9084 ;;
9085
9086 amigaos*)
9087 case $host_cpu in
9088 powerpc)
9089 # see comment about AmigaOS4 .so support
9090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9091 archive_expsym_cmds=''
9092 ;;
9093 m68k)
9094 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)'
9095 hardcode_libdir_flag_spec='-L$libdir'
9096 hardcode_minus_L=yes
9097 ;;
9098 esac
9099 ;;
9100
9101 bsdi[45]*)
9102 export_dynamic_flag_spec=-rdynamic
9103 ;;
9104
9105 cygwin* | mingw* | pw32* | cegcc*)
9106 # When not using gcc, we currently assume that we are using
9107 # Microsoft Visual C++.
9108 # hardcode_libdir_flag_spec is actually meaningless, as there is
9109 # no search path for DLLs.
9110 case $cc_basename in
9111 cl*)
9112 # Native MSVC
9113 hardcode_libdir_flag_spec=' '
9114 allow_undefined_flag=unsupported
9115 always_export_symbols=yes
9116 file_list_spec='@'
9117 # Tell ltmain to make .lib files, not .a files.
9118 libext=lib
9119 # Tell ltmain to make .dll files, not .so files.
9120 shrext_cmds=".dll"
9121 # FIXME: Setting linknames here is a bad hack.
9122 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9123 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9124 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9125 else
9126 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9127 fi~
9128 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9129 linknames='
9130 # The linker will not automatically build a static lib if we build a DLL.
9131 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9132 enable_shared_with_static_runtimes=yes
9133 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9134 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9135 # Don't use ranlib
9136 old_postinstall_cmds='chmod 644 $oldlib'
9137 postlink_cmds='lt_outputfile="@OUTPUT@"~
9138 lt_tool_outputfile="@TOOL_OUTPUT@"~
9139 case $lt_outputfile in
9140 *.exe|*.EXE) ;;
9141 *)
9142 lt_outputfile="$lt_outputfile.exe"
9143 lt_tool_outputfile="$lt_tool_outputfile.exe"
9144 ;;
9145 esac~
9146 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9147 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9148 $RM "$lt_outputfile.manifest";
9149 fi'
9150 ;;
9151 *)
9152 # Assume MSVC wrapper
9153 hardcode_libdir_flag_spec=' '
9154 allow_undefined_flag=unsupported
9155 # Tell ltmain to make .lib files, not .a files.
9156 libext=lib
9157 # Tell ltmain to make .dll files, not .so files.
9158 shrext_cmds=".dll"
9159 # FIXME: Setting linknames here is a bad hack.
9160 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9161 # The linker will automatically build a .lib file if we build a DLL.
9162 old_archive_from_new_cmds='true'
9163 # FIXME: Should let the user specify the lib program.
9164 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9165 enable_shared_with_static_runtimes=yes
9166 ;;
9167 esac
9168 ;;
9169
9170 darwin* | rhapsody*)
9171
9172
9173 archive_cmds_need_lc=no
9174 hardcode_direct=no
9175 hardcode_automatic=yes
9176 hardcode_shlibpath_var=unsupported
9177 if test "$lt_cv_ld_force_load" = "yes"; then
9178 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\"`'
9179
9180 else
9181 whole_archive_flag_spec=''
9182 fi
9183 link_all_deplibs=yes
9184 allow_undefined_flag="$_lt_dar_allow_undefined"
9185 case $cc_basename in
9186 ifort*) _lt_dar_can_shared=yes ;;
9187 *) _lt_dar_can_shared=$GCC ;;
9188 esac
9189 if test "$_lt_dar_can_shared" = "yes"; then
9190 output_verbose_link_cmd=func_echo_all
9191 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9192 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9193 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}"
9194 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}"
9195
9196 else
9197 ld_shlibs=no
9198 fi
9199
9200 ;;
9201
9202 dgux*)
9203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9204 hardcode_libdir_flag_spec='-L$libdir'
9205 hardcode_shlibpath_var=no
9206 ;;
9207
9208 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9209 # support. Future versions do this automatically, but an explicit c++rt0.o
9210 # does not break anything, and helps significantly (at the cost of a little
9211 # extra space).
9212 freebsd2.2*)
9213 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9214 hardcode_libdir_flag_spec='-R$libdir'
9215 hardcode_direct=yes
9216 hardcode_shlibpath_var=no
9217 ;;
9218
9219 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9220 freebsd2.*)
9221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9222 hardcode_direct=yes
9223 hardcode_minus_L=yes
9224 hardcode_shlibpath_var=no
9225 ;;
9226
9227 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9228 freebsd* | dragonfly*)
9229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9230 hardcode_libdir_flag_spec='-R$libdir'
9231 hardcode_direct=yes
9232 hardcode_shlibpath_var=no
9233 ;;
9234
9235 hpux9*)
9236 if test "$GCC" = yes; then
9237 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'
9238 else
9239 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'
9240 fi
9241 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9242 hardcode_libdir_separator=:
9243 hardcode_direct=yes
9244
9245 # hardcode_minus_L: Not really in the search PATH,
9246 # but as the default location of the library.
9247 hardcode_minus_L=yes
9248 export_dynamic_flag_spec='${wl}-E'
9249 ;;
9250
9251 hpux10*)
9252 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9253 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9254 else
9255 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9256 fi
9257 if test "$with_gnu_ld" = no; then
9258 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9259 hardcode_libdir_separator=:
9260 hardcode_direct=yes
9261 hardcode_direct_absolute=yes
9262 export_dynamic_flag_spec='${wl}-E'
9263 # hardcode_minus_L: Not really in the search PATH,
9264 # but as the default location of the library.
9265 hardcode_minus_L=yes
9266 fi
9267 ;;
9268
9269 hpux11*)
9270 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9271 case $host_cpu in
9272 hppa*64*)
9273 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9274 ;;
9275 ia64*)
9276 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9277 ;;
9278 *)
9279 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9280 ;;
9281 esac
9282 else
9283 case $host_cpu in
9284 hppa*64*)
9285 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9286 ;;
9287 ia64*)
9288 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9289 ;;
9290 *)
9291
9292 # Older versions of the 11.00 compiler do not understand -b yet
9293 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9295$as_echo_n "checking if $CC understands -b... " >&6; }
9296if ${lt_cv_prog_compiler__b+:} false; then :
9297 $as_echo_n "(cached) " >&6
9298else
9299 lt_cv_prog_compiler__b=no
9300 save_LDFLAGS="$LDFLAGS"
9301 LDFLAGS="$LDFLAGS -b"
9302 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9303 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9304 # The linker can only warn and ignore the option if not recognized
9305 # So say no if there are warnings
9306 if test -s conftest.err; then
9307 # Append any errors to the config.log.
9308 cat conftest.err 1>&5
9309 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9311 if diff conftest.exp conftest.er2 >/dev/null; then
9312 lt_cv_prog_compiler__b=yes
9313 fi
9314 else
9315 lt_cv_prog_compiler__b=yes
9316 fi
9317 fi
9318 $RM -r conftest*
9319 LDFLAGS="$save_LDFLAGS"
9320
9321fi
9322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9323$as_echo "$lt_cv_prog_compiler__b" >&6; }
9324
9325if test x"$lt_cv_prog_compiler__b" = xyes; then
9326 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9327else
9328 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9329fi
9330
9331 ;;
9332 esac
9333 fi
9334 if test "$with_gnu_ld" = no; then
9335 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9336 hardcode_libdir_separator=:
9337
9338 case $host_cpu in
9339 hppa*64*|ia64*)
9340 hardcode_direct=no
9341 hardcode_shlibpath_var=no
9342 ;;
9343 *)
9344 hardcode_direct=yes
9345 hardcode_direct_absolute=yes
9346 export_dynamic_flag_spec='${wl}-E'
9347
9348 # hardcode_minus_L: Not really in the search PATH,
9349 # but as the default location of the library.
9350 hardcode_minus_L=yes
9351 ;;
9352 esac
9353 fi
9354 ;;
9355
9356 irix5* | irix6* | nonstopux*)
9357 if test "$GCC" = yes; then
9358 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'
9359 # Try to use the -exported_symbol ld option, if it does not
9360 # work, assume that -exports_file does not work either and
9361 # implicitly export all symbols.
9362 # This should be the same for all languages, so no per-tag cache variable.
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9364$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9365if ${lt_cv_irix_exported_symbol+:} false; then :
9366 $as_echo_n "(cached) " >&6
9367else
9368 save_LDFLAGS="$LDFLAGS"
9369 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371/* end confdefs.h. */
9372int foo (void) { return 0; }
9373_ACEOF
9374if ac_fn_c_try_link "$LINENO"; then :
9375 lt_cv_irix_exported_symbol=yes
9376else
9377 lt_cv_irix_exported_symbol=no
9378fi
9379rm -f core conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
9381 LDFLAGS="$save_LDFLAGS"
9382fi
9383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9384$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9385 if test "$lt_cv_irix_exported_symbol" = yes; then
9386 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'
9387 fi
9388 else
9389 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'
9390 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'
9391 fi
9392 archive_cmds_need_lc='no'
9393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9394 hardcode_libdir_separator=:
9395 inherit_rpath=yes
9396 link_all_deplibs=yes
9397 ;;
9398
9399 netbsd*)
9400 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9402 else
9403 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9404 fi
9405 hardcode_libdir_flag_spec='-R$libdir'
9406 hardcode_direct=yes
9407 hardcode_shlibpath_var=no
9408 ;;
9409
9410 newsos6)
9411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9412 hardcode_direct=yes
9413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9414 hardcode_libdir_separator=:
9415 hardcode_shlibpath_var=no
9416 ;;
9417
9418 *nto* | *qnx*)
9419 ;;
9420
9421 openbsd*)
9422 if test -f /usr/libexec/ld.so; then
9423 hardcode_direct=yes
9424 hardcode_shlibpath_var=no
9425 hardcode_direct_absolute=yes
9426 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9427 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9428 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9429 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9430 export_dynamic_flag_spec='${wl}-E'
9431 else
9432 case $host_os in
9433 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9434 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9435 hardcode_libdir_flag_spec='-R$libdir'
9436 ;;
9437 *)
9438 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9439 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9440 ;;
9441 esac
9442 fi
9443 else
9444 ld_shlibs=no
9445 fi
9446 ;;
9447
9448 os2*)
9449 hardcode_libdir_flag_spec='-L$libdir'
9450 hardcode_minus_L=yes
9451 allow_undefined_flag=unsupported
9452 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'
9453 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9454 ;;
9455
9456 osf3*)
9457 if test "$GCC" = yes; then
9458 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9459 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'
9460 else
9461 allow_undefined_flag=' -expect_unresolved \*'
9462 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'
9463 fi
9464 archive_cmds_need_lc='no'
9465 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9466 hardcode_libdir_separator=:
9467 ;;
9468
9469 osf4* | osf5*) # as osf3* with the addition of -msym flag
9470 if test "$GCC" = yes; then
9471 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9472 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'
9473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9474 else
9475 allow_undefined_flag=' -expect_unresolved \*'
9476 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'
9477 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~
9478 $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'
9479
9480 # Both c and cxx compiler support -rpath directly
9481 hardcode_libdir_flag_spec='-rpath $libdir'
9482 fi
9483 archive_cmds_need_lc='no'
9484 hardcode_libdir_separator=:
9485 ;;
9486
9487 solaris*)
9488 no_undefined_flag=' -z defs'
9489 if test "$GCC" = yes; then
9490 wlarc='${wl}'
9491 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9492 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9493 $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'
9494 else
9495 case `$CC -V 2>&1` in
9496 *"Compilers 5.0"*)
9497 wlarc=''
9498 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9499 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9500 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9501 ;;
9502 *)
9503 wlarc='${wl}'
9504 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9505 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9506 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9507 ;;
9508 esac
9509 fi
9510 hardcode_libdir_flag_spec='-R$libdir'
9511 hardcode_shlibpath_var=no
9512 case $host_os in
9513 solaris2.[0-5] | solaris2.[0-5].*) ;;
9514 *)
9515 # The compiler driver will combine and reorder linker options,
9516 # but understands `-z linker_flag'. GCC discards it without `$wl',
9517 # but is careful enough not to reorder.
9518 # Supported since Solaris 2.6 (maybe 2.5.1?)
9519 if test "$GCC" = yes; then
9520 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9521 else
9522 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9523 fi
9524 ;;
9525 esac
9526 link_all_deplibs=yes
9527 ;;
9528
9529 sunos4*)
9530 if test "x$host_vendor" = xsequent; then
9531 # Use $CC to link under sequent, because it throws in some extra .o
9532 # files that make .init and .fini sections work.
9533 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9534 else
9535 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9536 fi
9537 hardcode_libdir_flag_spec='-L$libdir'
9538 hardcode_direct=yes
9539 hardcode_minus_L=yes
9540 hardcode_shlibpath_var=no
9541 ;;
9542
9543 sysv4)
9544 case $host_vendor in
9545 sni)
9546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9547 hardcode_direct=yes # is this really true???
9548 ;;
9549 siemens)
9550 ## LD is ld it makes a PLAMLIB
9551 ## CC just makes a GrossModule.
9552 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9553 reload_cmds='$CC -r -o $output$reload_objs'
9554 hardcode_direct=no
9555 ;;
9556 motorola)
9557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9559 ;;
9560 esac
9561 runpath_var='LD_RUN_PATH'
9562 hardcode_shlibpath_var=no
9563 ;;
9564
9565 sysv4.3*)
9566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9567 hardcode_shlibpath_var=no
9568 export_dynamic_flag_spec='-Bexport'
9569 ;;
9570
9571 sysv4*MP*)
9572 if test -d /usr/nec; then
9573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9574 hardcode_shlibpath_var=no
9575 runpath_var=LD_RUN_PATH
9576 hardcode_runpath_var=yes
9577 ld_shlibs=yes
9578 fi
9579 ;;
9580
9581 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9582 no_undefined_flag='${wl}-z,text'
9583 archive_cmds_need_lc=no
9584 hardcode_shlibpath_var=no
9585 runpath_var='LD_RUN_PATH'
9586
9587 if test "$GCC" = yes; then
9588 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9589 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9590 else
9591 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9592 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9593 fi
9594 ;;
9595
9596 sysv5* | sco3.2v5* | sco5v6*)
9597 # Note: We can NOT use -z defs as we might desire, because we do not
9598 # link with -lc, and that would cause any symbols used from libc to
9599 # always be unresolved, which means just about no library would
9600 # ever link correctly. If we're not using GNU ld we use -z text
9601 # though, which does catch some bad symbols but isn't as heavy-handed
9602 # as -z defs.
9603 no_undefined_flag='${wl}-z,text'
9604 allow_undefined_flag='${wl}-z,nodefs'
9605 archive_cmds_need_lc=no
9606 hardcode_shlibpath_var=no
9607 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9608 hardcode_libdir_separator=':'
9609 link_all_deplibs=yes
9610 export_dynamic_flag_spec='${wl}-Bexport'
9611 runpath_var='LD_RUN_PATH'
9612
9613 if test "$GCC" = yes; then
9614 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9615 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9616 else
9617 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9618 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9619 fi
9620 ;;
9621
9622 uts4*)
9623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_libdir_flag_spec='-L$libdir'
9625 hardcode_shlibpath_var=no
9626 ;;
9627
9628 *)
9629 ld_shlibs=no
9630 ;;
9631 esac
9632
9633 if test x$host_vendor = xsni; then
9634 case $host in
9635 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9636 export_dynamic_flag_spec='${wl}-Blargedynsym'
9637 ;;
9638 esac
9639 fi
9640 fi
9641
9642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9643$as_echo "$ld_shlibs" >&6; }
9644test "$ld_shlibs" = no && can_build_shared=no
9645
9646with_gnu_ld=$with_gnu_ld
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662#
9663# Do we need to explicitly link libc?
9664#
9665case "x$archive_cmds_need_lc" in
9666x|xyes)
9667 # Assume -lc should be added
9668 archive_cmds_need_lc=yes
9669
9670 if test "$enable_shared" = yes && test "$GCC" = yes; then
9671 case $archive_cmds in
9672 *'~'*)
9673 # FIXME: we may have to deal with multi-command sequences.
9674 ;;
9675 '$CC '*)
9676 # Test whether the compiler implicitly links with -lc since on some
9677 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9678 # to ld, don't add -lc before -lgcc.
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9680$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9681if ${lt_cv_archive_cmds_need_lc+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683else
9684 $RM conftest*
9685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9686
9687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9688 (eval $ac_compile) 2>&5
9689 ac_status=$?
9690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9691 test $ac_status = 0; } 2>conftest.err; then
9692 soname=conftest
9693 lib=conftest
9694 libobjs=conftest.$ac_objext
9695 deplibs=
9696 wl=$lt_prog_compiler_wl
9697 pic_flag=$lt_prog_compiler_pic
9698 compiler_flags=-v
9699 linker_flags=-v
9700 verstring=
9701 output_objdir=.
9702 libname=conftest
9703 lt_save_allow_undefined_flag=$allow_undefined_flag
9704 allow_undefined_flag=
9705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9706 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9707 ac_status=$?
9708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9709 test $ac_status = 0; }
9710 then
9711 lt_cv_archive_cmds_need_lc=no
9712 else
9713 lt_cv_archive_cmds_need_lc=yes
9714 fi
9715 allow_undefined_flag=$lt_save_allow_undefined_flag
9716 else
9717 cat conftest.err 1>&5
9718 fi
9719 $RM conftest*
9720
9721fi
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9723$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9724 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9725 ;;
9726 esac
9727 fi
9728 ;;
9729esac
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9883$as_echo_n "checking dynamic linker characteristics... " >&6; }
9884
9885if test "$GCC" = yes; then
9886 case $host_os in
9887 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9888 *) lt_awk_arg="/^libraries:/" ;;
9889 esac
9890 case $host_os in
9891 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9892 *) lt_sed_strip_eq="s,=/,/,g" ;;
9893 esac
9894 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9895 case $lt_search_path_spec in
9896 *\;*)
9897 # if the path contains ";" then we assume it to be the separator
9898 # otherwise default to the standard path separator (i.e. ":") - it is
9899 # assumed that no part of a normal pathname contains ";" but that should
9900 # okay in the real world where ";" in dirpaths is itself problematic.
9901 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9902 ;;
9903 *)
9904 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9905 ;;
9906 esac
9907 # Ok, now we have the path, separated by spaces, we can step through it
9908 # and add multilib dir if necessary.
9909 lt_tmp_lt_search_path_spec=
9910 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9911 for lt_sys_path in $lt_search_path_spec; do
9912 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9913 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9914 else
9915 test -d "$lt_sys_path" && \
9916 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9917 fi
9918 done
9919 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9920BEGIN {RS=" "; FS="/|\n";} {
9921 lt_foo="";
9922 lt_count=0;
9923 for (lt_i = NF; lt_i > 0; lt_i--) {
9924 if ($lt_i != "" && $lt_i != ".") {
9925 if ($lt_i == "..") {
9926 lt_count++;
9927 } else {
9928 if (lt_count == 0) {
9929 lt_foo="/" $lt_i lt_foo;
9930 } else {
9931 lt_count--;
9932 }
9933 }
9934 }
9935 }
9936 if (lt_foo != "") { lt_freq[lt_foo]++; }
9937 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9938}'`
9939 # AWK program above erroneously prepends '/' to C:/dos/paths
9940 # for these hosts.
9941 case $host_os in
9942 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9943 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9944 esac
9945 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9946else
9947 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9948fi
9949library_names_spec=
9950libname_spec='lib$name'
9951soname_spec=
9952shrext_cmds=".so"
9953postinstall_cmds=
9954postuninstall_cmds=
9955finish_cmds=
9956finish_eval=
9957shlibpath_var=
9958shlibpath_overrides_runpath=unknown
9959version_type=none
9960dynamic_linker="$host_os ld.so"
9961sys_lib_dlsearch_path_spec="/lib /usr/lib"
9962need_lib_prefix=unknown
9963hardcode_into_libs=no
9964
9965# when you set need_version to no, make sure it does not cause -set_version
9966# flags to be left without arguments
9967need_version=unknown
9968
9969case $host_os in
9970aix3*)
9971 version_type=linux # correct to gnu/linux during the next big refactor
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9973 shlibpath_var=LIBPATH
9974
9975 # AIX 3 has no versioning support, so we append a major version to the name.
9976 soname_spec='${libname}${release}${shared_ext}$major'
9977 ;;
9978
9979aix[4-9]*)
9980 version_type=linux # correct to gnu/linux during the next big refactor
9981 need_lib_prefix=no
9982 need_version=no
9983 hardcode_into_libs=yes
9984 if test "$host_cpu" = ia64; then
9985 # AIX 5 supports IA64
9986 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9987 shlibpath_var=LD_LIBRARY_PATH
9988 else
9989 # With GCC up to 2.95.x, collect2 would create an import file
9990 # for dependence libraries. The import file would start with
9991 # the line `#! .'. This would cause the generated library to
9992 # depend on `.', always an invalid library. This was fixed in
9993 # development snapshots of GCC prior to 3.0.
9994 case $host_os in
9995 aix4 | aix4.[01] | aix4.[01].*)
9996 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9997 echo ' yes '
9998 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9999 :
10000 else
10001 can_build_shared=no
10002 fi
10003 ;;
10004 esac
10005 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10006 # soname into executable. Probably we can add versioning support to
10007 # collect2, so additional links can be useful in future.
10008 if test "$aix_use_runtimelinking" = yes; then
10009 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10010 # instead of lib<name>.a to let people know that these are not
10011 # typical AIX shared libraries.
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013 else
10014 # We preserve .a as extension for shared libraries through AIX4.2
10015 # and later when we are not doing run time linking.
10016 library_names_spec='${libname}${release}.a $libname.a'
10017 soname_spec='${libname}${release}${shared_ext}$major'
10018 fi
10019 shlibpath_var=LIBPATH
10020 fi
10021 ;;
10022
10023amigaos*)
10024 case $host_cpu in
10025 powerpc)
10026 # Since July 2007 AmigaOS4 officially supports .so libraries.
10027 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029 ;;
10030 m68k)
10031 library_names_spec='$libname.ixlibrary $libname.a'
10032 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10033 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'
10034 ;;
10035 esac
10036 ;;
10037
10038beos*)
10039 library_names_spec='${libname}${shared_ext}'
10040 dynamic_linker="$host_os ld.so"
10041 shlibpath_var=LIBRARY_PATH
10042 ;;
10043
10044bsdi[45]*)
10045 version_type=linux # correct to gnu/linux during the next big refactor
10046 need_version=no
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048 soname_spec='${libname}${release}${shared_ext}$major'
10049 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10050 shlibpath_var=LD_LIBRARY_PATH
10051 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10052 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10053 # the default ld.so.conf also contains /usr/contrib/lib and
10054 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10055 # libtool to hard-code these into programs
10056 ;;
10057
10058cygwin* | mingw* | pw32* | cegcc*)
10059 version_type=windows
10060 shrext_cmds=".dll"
10061 need_version=no
10062 need_lib_prefix=no
10063
10064 case $GCC,$cc_basename in
10065 yes,*)
10066 # gcc
10067 library_names_spec='$libname.dll.a'
10068 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10069 postinstall_cmds='base_file=`basename \${file}`~
10070 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10071 dldir=$destdir/`dirname \$dlpath`~
10072 test -d \$dldir || mkdir -p \$dldir~
10073 $install_prog $dir/$dlname \$dldir/$dlname~
10074 chmod a+x \$dldir/$dlname~
10075 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10076 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10077 fi'
10078 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10079 dlpath=$dir/\$dldll~
10080 $RM \$dlpath'
10081 shlibpath_overrides_runpath=yes
10082
10083 case $host_os in
10084 cygwin*)
10085 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10086 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10087
10088 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10089 ;;
10090 mingw* | cegcc*)
10091 # MinGW DLLs use traditional 'lib' prefix
10092 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10093 ;;
10094 pw32*)
10095 # pw32 DLLs use 'pw' prefix rather than 'lib'
10096 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10097 ;;
10098 esac
10099 dynamic_linker='Win32 ld.exe'
10100 ;;
10101
10102 *,cl*)
10103 # Native MSVC
10104 libname_spec='$name'
10105 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10106 library_names_spec='${libname}.dll.lib'
10107
10108 case $build_os in
10109 mingw*)
10110 sys_lib_search_path_spec=
10111 lt_save_ifs=$IFS
10112 IFS=';'
10113 for lt_path in $LIB
10114 do
10115 IFS=$lt_save_ifs
10116 # Let DOS variable expansion print the short 8.3 style file name.
10117 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10118 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10119 done
10120 IFS=$lt_save_ifs
10121 # Convert to MSYS style.
10122 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10123 ;;
10124 cygwin*)
10125 # Convert to unix form, then to dos form, then back to unix form
10126 # but this time dos style (no spaces!) so that the unix form looks
10127 # like /cygdrive/c/PROGRA~1:/cygdr...
10128 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10129 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10130 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10131 ;;
10132 *)
10133 sys_lib_search_path_spec="$LIB"
10134 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10135 # It is most probably a Windows format PATH.
10136 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10137 else
10138 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10139 fi
10140 # FIXME: find the short name or the path components, as spaces are
10141 # common. (e.g. "Program Files" -> "PROGRA~1")
10142 ;;
10143 esac
10144
10145 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10146 postinstall_cmds='base_file=`basename \${file}`~
10147 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10148 dldir=$destdir/`dirname \$dlpath`~
10149 test -d \$dldir || mkdir -p \$dldir~
10150 $install_prog $dir/$dlname \$dldir/$dlname'
10151 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10152 dlpath=$dir/\$dldll~
10153 $RM \$dlpath'
10154 shlibpath_overrides_runpath=yes
10155 dynamic_linker='Win32 link.exe'
10156 ;;
10157
10158 *)
10159 # Assume MSVC wrapper
10160 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10161 dynamic_linker='Win32 ld.exe'
10162 ;;
10163 esac
10164 # FIXME: first we should search . and the directory the executable is in
10165 shlibpath_var=PATH
10166 ;;
10167
10168darwin* | rhapsody*)
10169 dynamic_linker="$host_os dyld"
10170 version_type=darwin
10171 need_lib_prefix=no
10172 need_version=no
10173 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10174 soname_spec='${libname}${release}${major}$shared_ext'
10175 shlibpath_overrides_runpath=yes
10176 shlibpath_var=DYLD_LIBRARY_PATH
10177 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10178
10179 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10180 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10181 ;;
10182
10183dgux*)
10184 version_type=linux # correct to gnu/linux during the next big refactor
10185 need_lib_prefix=no
10186 need_version=no
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 shlibpath_var=LD_LIBRARY_PATH
10190 ;;
10191
10192freebsd* | dragonfly*)
10193 # DragonFly does not have aout. When/if they implement a new
10194 # versioning mechanism, adjust this.
10195 if test -x /usr/bin/objformat; then
10196 objformat=`/usr/bin/objformat`
10197 else
10198 case $host_os in
10199 freebsd[23].*) objformat=aout ;;
10200 *) objformat=elf ;;
10201 esac
10202 fi
10203 version_type=freebsd-$objformat
10204 case $version_type in
10205 freebsd-elf*)
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10207 need_version=no
10208 need_lib_prefix=no
10209 ;;
10210 freebsd-*)
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10212 need_version=yes
10213 ;;
10214 esac
10215 shlibpath_var=LD_LIBRARY_PATH
10216 case $host_os in
10217 freebsd2.*)
10218 shlibpath_overrides_runpath=yes
10219 ;;
10220 freebsd3.[01]* | freebsdelf3.[01]*)
10221 shlibpath_overrides_runpath=yes
10222 hardcode_into_libs=yes
10223 ;;
10224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10226 shlibpath_overrides_runpath=no
10227 hardcode_into_libs=yes
10228 ;;
10229 *) # from 4.6 on, and DragonFly
10230 shlibpath_overrides_runpath=yes
10231 hardcode_into_libs=yes
10232 ;;
10233 esac
10234 ;;
10235
10236gnu*)
10237 version_type=linux # correct to gnu/linux during the next big refactor
10238 need_lib_prefix=no
10239 need_version=no
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 shlibpath_var=LD_LIBRARY_PATH
10243 shlibpath_overrides_runpath=no
10244 hardcode_into_libs=yes
10245 ;;
10246
10247haiku*)
10248 version_type=linux # correct to gnu/linux during the next big refactor
10249 need_lib_prefix=no
10250 need_version=no
10251 dynamic_linker="$host_os runtime_loader"
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10253 soname_spec='${libname}${release}${shared_ext}$major'
10254 shlibpath_var=LIBRARY_PATH
10255 shlibpath_overrides_runpath=yes
10256 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10257 hardcode_into_libs=yes
10258 ;;
10259
10260hpux9* | hpux10* | hpux11*)
10261 # Give a soname corresponding to the major version so that dld.sl refuses to
10262 # link against other versions.
10263 version_type=sunos
10264 need_lib_prefix=no
10265 need_version=no
10266 case $host_cpu in
10267 ia64*)
10268 shrext_cmds='.so'
10269 hardcode_into_libs=yes
10270 dynamic_linker="$host_os dld.so"
10271 shlibpath_var=LD_LIBRARY_PATH
10272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 if test "X$HPUX_IA64_MODE" = X32; then
10276 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10277 else
10278 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10279 fi
10280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10281 ;;
10282 hppa*64*)
10283 shrext_cmds='.sl'
10284 hardcode_into_libs=yes
10285 dynamic_linker="$host_os dld.sl"
10286 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289 soname_spec='${libname}${release}${shared_ext}$major'
10290 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10292 ;;
10293 *)
10294 shrext_cmds='.sl'
10295 dynamic_linker="$host_os dld.sl"
10296 shlibpath_var=SHLIB_PATH
10297 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 ;;
10301 esac
10302 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10303 postinstall_cmds='chmod 555 $lib'
10304 # or fails outright, so override atomically:
10305 install_override_mode=555
10306 ;;
10307
10308interix[3-9]*)
10309 version_type=linux # correct to gnu/linux during the next big refactor
10310 need_lib_prefix=no
10311 need_version=no
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10313 soname_spec='${libname}${release}${shared_ext}$major'
10314 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 shlibpath_overrides_runpath=no
10317 hardcode_into_libs=yes
10318 ;;
10319
10320irix5* | irix6* | nonstopux*)
10321 case $host_os in
10322 nonstopux*) version_type=nonstopux ;;
10323 *)
10324 if test "$lt_cv_prog_gnu_ld" = yes; then
10325 version_type=linux # correct to gnu/linux during the next big refactor
10326 else
10327 version_type=irix
10328 fi ;;
10329 esac
10330 need_lib_prefix=no
10331 need_version=no
10332 soname_spec='${libname}${release}${shared_ext}$major'
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10334 case $host_os in
10335 irix5* | nonstopux*)
10336 libsuff= shlibsuff=
10337 ;;
10338 *)
10339 case $LD in # libtool.m4 will add one of these switches to LD
10340 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10341 libsuff= shlibsuff= libmagic=32-bit;;
10342 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10343 libsuff=32 shlibsuff=N32 libmagic=N32;;
10344 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10345 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10346 *) libsuff= shlibsuff= libmagic=never-match;;
10347 esac
10348 ;;
10349 esac
10350 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10351 shlibpath_overrides_runpath=no
10352 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10353 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10354 hardcode_into_libs=yes
10355 ;;
10356
10357# No shared lib support for Linux oldld, aout, or coff.
10358linux*oldld* | linux*aout* | linux*coff*)
10359 dynamic_linker=no
10360 ;;
10361
10362# This must be glibc/ELF.
10363linux* | k*bsd*-gnu | kopensolaris*-gnu)
10364 version_type=linux # correct to gnu/linux during the next big refactor
10365 need_lib_prefix=no
10366 need_version=no
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=no
10372
10373 # Some binutils ld are patched to set DT_RUNPATH
10374 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376else
10377 lt_cv_shlibpath_overrides_runpath=no
10378 save_LDFLAGS=$LDFLAGS
10379 save_libdir=$libdir
10380 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10381 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383/* end confdefs.h. */
10384
10385int
10386main ()
10387{
10388
10389 ;
10390 return 0;
10391}
10392_ACEOF
10393if ac_fn_c_try_link "$LINENO"; then :
10394 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10395 lt_cv_shlibpath_overrides_runpath=yes
10396fi
10397fi
10398rm -f core conftest.err conftest.$ac_objext \
10399 conftest$ac_exeext conftest.$ac_ext
10400 LDFLAGS=$save_LDFLAGS
10401 libdir=$save_libdir
10402
10403fi
10404
10405 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10406
10407 # This implies no fast_install, which is unacceptable.
10408 # Some rework will be needed to allow for fast_install
10409 # before this can be enabled.
10410 hardcode_into_libs=yes
10411
10412 # Add ABI-specific directories to the system library path.
10413 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10414
10415 # Append ld.so.conf contents to the search path
10416 if test -f /etc/ld.so.conf; then
10417 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' ' '`
10418 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10419
10420 fi
10421
10422 # We used to test for /lib/ld.so.1 and disable shared libraries on
10423 # powerpc, because MkLinux only supported shared libraries with the
10424 # GNU dynamic linker. Since this was broken with cross compilers,
10425 # most powerpc-linux boxes support dynamic linking these days and
10426 # people can always --disable-shared, the test was removed, and we
10427 # assume the GNU/Linux dynamic linker is in use.
10428 dynamic_linker='GNU/Linux ld.so'
10429 ;;
10430
10431netbsd*)
10432 version_type=sunos
10433 need_lib_prefix=no
10434 need_version=no
10435 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10438 dynamic_linker='NetBSD (a.out) ld.so'
10439 else
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10441 soname_spec='${libname}${release}${shared_ext}$major'
10442 dynamic_linker='NetBSD ld.elf_so'
10443 fi
10444 shlibpath_var=LD_LIBRARY_PATH
10445 shlibpath_overrides_runpath=yes
10446 hardcode_into_libs=yes
10447 ;;
10448
10449newsos6)
10450 version_type=linux # correct to gnu/linux during the next big refactor
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452 shlibpath_var=LD_LIBRARY_PATH
10453 shlibpath_overrides_runpath=yes
10454 ;;
10455
10456*nto* | *qnx*)
10457 version_type=qnx
10458 need_lib_prefix=no
10459 need_version=no
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 soname_spec='${libname}${release}${shared_ext}$major'
10462 shlibpath_var=LD_LIBRARY_PATH
10463 shlibpath_overrides_runpath=no
10464 hardcode_into_libs=yes
10465 dynamic_linker='ldqnx.so'
10466 ;;
10467
10468openbsd*)
10469 version_type=sunos
10470 sys_lib_dlsearch_path_spec="/usr/lib"
10471 need_lib_prefix=no
10472 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10473 case $host_os in
10474 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10475 *) need_version=no ;;
10476 esac
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10479 shlibpath_var=LD_LIBRARY_PATH
10480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10481 case $host_os in
10482 openbsd2.[89] | openbsd2.[89].*)
10483 shlibpath_overrides_runpath=no
10484 ;;
10485 *)
10486 shlibpath_overrides_runpath=yes
10487 ;;
10488 esac
10489 else
10490 shlibpath_overrides_runpath=yes
10491 fi
10492 ;;
10493
10494os2*)
10495 libname_spec='$name'
10496 shrext_cmds=".dll"
10497 need_lib_prefix=no
10498 library_names_spec='$libname${shared_ext} $libname.a'
10499 dynamic_linker='OS/2 ld.exe'
10500 shlibpath_var=LIBPATH
10501 ;;
10502
10503osf3* | osf4* | osf5*)
10504 version_type=osf
10505 need_lib_prefix=no
10506 need_version=no
10507 soname_spec='${libname}${release}${shared_ext}$major'
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509 shlibpath_var=LD_LIBRARY_PATH
10510 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10511 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10512 ;;
10513
10514rdos*)
10515 dynamic_linker=no
10516 ;;
10517
10518solaris*)
10519 version_type=linux # correct to gnu/linux during the next big refactor
10520 need_lib_prefix=no
10521 need_version=no
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523 soname_spec='${libname}${release}${shared_ext}$major'
10524 shlibpath_var=LD_LIBRARY_PATH
10525 shlibpath_overrides_runpath=yes
10526 hardcode_into_libs=yes
10527 # ldd complains unless libraries are executable
10528 postinstall_cmds='chmod +x $lib'
10529 ;;
10530
10531sunos4*)
10532 version_type=sunos
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10534 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=yes
10537 if test "$with_gnu_ld" = yes; then
10538 need_lib_prefix=no
10539 fi
10540 need_version=yes
10541 ;;
10542
10543sysv4 | sysv4.3*)
10544 version_type=linux # correct to gnu/linux during the next big refactor
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546 soname_spec='${libname}${release}${shared_ext}$major'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 case $host_vendor in
10549 sni)
10550 shlibpath_overrides_runpath=no
10551 need_lib_prefix=no
10552 runpath_var=LD_RUN_PATH
10553 ;;
10554 siemens)
10555 need_lib_prefix=no
10556 ;;
10557 motorola)
10558 need_lib_prefix=no
10559 need_version=no
10560 shlibpath_overrides_runpath=no
10561 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10562 ;;
10563 esac
10564 ;;
10565
10566sysv4*MP*)
10567 if test -d /usr/nec ;then
10568 version_type=linux # correct to gnu/linux during the next big refactor
10569 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10570 soname_spec='$libname${shared_ext}.$major'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 fi
10573 ;;
10574
10575sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10576 version_type=freebsd-elf
10577 need_lib_prefix=no
10578 need_version=no
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10580 soname_spec='${libname}${release}${shared_ext}$major'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 shlibpath_overrides_runpath=yes
10583 hardcode_into_libs=yes
10584 if test "$with_gnu_ld" = yes; then
10585 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10586 else
10587 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10588 case $host_os in
10589 sco3.2v5*)
10590 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10591 ;;
10592 esac
10593 fi
10594 sys_lib_dlsearch_path_spec='/usr/lib'
10595 ;;
10596
10597tpf*)
10598 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10599 version_type=linux # correct to gnu/linux during the next big refactor
10600 need_lib_prefix=no
10601 need_version=no
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603 shlibpath_var=LD_LIBRARY_PATH
10604 shlibpath_overrides_runpath=no
10605 hardcode_into_libs=yes
10606 ;;
10607
10608uts4*)
10609 version_type=linux # correct to gnu/linux during the next big refactor
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 ;;
10614
10615*)
10616 dynamic_linker=no
10617 ;;
10618esac
10619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10620$as_echo "$dynamic_linker" >&6; }
10621test "$dynamic_linker" = no && can_build_shared=no
10622
10623variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10624if test "$GCC" = yes; then
10625 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10626fi
10627
10628if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10629 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10630fi
10631if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10632 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10633fi
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10727$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10728hardcode_action=
10729if test -n "$hardcode_libdir_flag_spec" ||
10730 test -n "$runpath_var" ||
10731 test "X$hardcode_automatic" = "Xyes" ; then
10732
10733 # We can hardcode non-existent directories.
10734 if test "$hardcode_direct" != no &&
10735 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10736 # have to relink, otherwise we might link with an installed library
10737 # when we should be linking with a yet-to-be-installed one
10738 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10739 test "$hardcode_minus_L" != no; then
10740 # Linking always hardcodes the temporary library directory.
10741 hardcode_action=relink
10742 else
10743 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10744 hardcode_action=immediate
10745 fi
10746else
10747 # We cannot hardcode anything, or else we can only hardcode existing
10748 # directories.
10749 hardcode_action=unsupported
10750fi
10751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10752$as_echo "$hardcode_action" >&6; }
10753
10754if test "$hardcode_action" = relink ||
10755 test "$inherit_rpath" = yes; then
10756 # Fast installation is not supported
10757 enable_fast_install=no
10758elif test "$shlibpath_overrides_runpath" = yes ||
10759 test "$enable_shared" = no; then
10760 # Fast installation is not necessary
10761 enable_fast_install=needless
10762fi
10763
10764
10765
10766
10767
10768
10769 if test "x$enable_dlopen" != xyes; then
10770 enable_dlopen=unknown
10771 enable_dlopen_self=unknown
10772 enable_dlopen_self_static=unknown
10773else
10774 lt_cv_dlopen=no
10775 lt_cv_dlopen_libs=
10776
10777 case $host_os in
10778 beos*)
10779 lt_cv_dlopen="load_add_on"
10780 lt_cv_dlopen_libs=
10781 lt_cv_dlopen_self=yes
10782 ;;
10783
10784 mingw* | pw32* | cegcc*)
10785 lt_cv_dlopen="LoadLibrary"
10786 lt_cv_dlopen_libs=
10787 ;;
10788
10789 cygwin*)
10790 lt_cv_dlopen="dlopen"
10791 lt_cv_dlopen_libs=
10792 ;;
10793
10794 darwin*)
10795 # if libdl is installed we need to link against it
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10797$as_echo_n "checking for dlopen in -ldl... " >&6; }
10798if ${ac_cv_lib_dl_dlopen+:} false; then :
10799 $as_echo_n "(cached) " >&6
10800else
10801 ac_check_lib_save_LIBS=$LIBS
10802LIBS="-ldl $LIBS"
10803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804/* end confdefs.h. */
10805
10806/* Override any GCC internal prototype to avoid an error.
10807 Use char because int might match the return type of a GCC
10808 builtin and then its argument prototype would still apply. */
10809#ifdef __cplusplus
10810extern "C"
10811#endif
10812char dlopen ();
10813int
10814main ()
10815{
10816return dlopen ();
10817 ;
10818 return 0;
10819}
10820_ACEOF
10821if ac_fn_c_try_link "$LINENO"; then :
10822 ac_cv_lib_dl_dlopen=yes
10823else
10824 ac_cv_lib_dl_dlopen=no
10825fi
10826rm -f core conftest.err conftest.$ac_objext \
10827 conftest$ac_exeext conftest.$ac_ext
10828LIBS=$ac_check_lib_save_LIBS
10829fi
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10831$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10832if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10833 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10834else
10835
10836 lt_cv_dlopen="dyld"
10837 lt_cv_dlopen_libs=
10838 lt_cv_dlopen_self=yes
10839
10840fi
10841
10842 ;;
10843
10844 *)
10845 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10846if test "x$ac_cv_func_shl_load" = xyes; then :
10847 lt_cv_dlopen="shl_load"
10848else
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10850$as_echo_n "checking for shl_load in -ldld... " >&6; }
10851if ${ac_cv_lib_dld_shl_load+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853else
10854 ac_check_lib_save_LIBS=$LIBS
10855LIBS="-ldld $LIBS"
10856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857/* end confdefs.h. */
10858
10859/* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10862#ifdef __cplusplus
10863extern "C"
10864#endif
10865char shl_load ();
10866int
10867main ()
10868{
10869return shl_load ();
10870 ;
10871 return 0;
10872}
10873_ACEOF
10874if ac_fn_c_try_link "$LINENO"; then :
10875 ac_cv_lib_dld_shl_load=yes
10876else
10877 ac_cv_lib_dld_shl_load=no
10878fi
10879rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881LIBS=$ac_check_lib_save_LIBS
10882fi
10883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10884$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10885if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10886 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10887else
10888 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10889if test "x$ac_cv_func_dlopen" = xyes; then :
10890 lt_cv_dlopen="dlopen"
10891else
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10893$as_echo_n "checking for dlopen in -ldl... " >&6; }
10894if ${ac_cv_lib_dl_dlopen+:} false; then :
10895 $as_echo_n "(cached) " >&6
10896else
10897 ac_check_lib_save_LIBS=$LIBS
10898LIBS="-ldl $LIBS"
10899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900/* end confdefs.h. */
10901
10902/* Override any GCC internal prototype to avoid an error.
10903 Use char because int might match the return type of a GCC
10904 builtin and then its argument prototype would still apply. */
10905#ifdef __cplusplus
10906extern "C"
10907#endif
10908char dlopen ();
10909int
10910main ()
10911{
10912return dlopen ();
10913 ;
10914 return 0;
10915}
10916_ACEOF
10917if ac_fn_c_try_link "$LINENO"; then :
10918 ac_cv_lib_dl_dlopen=yes
10919else
10920 ac_cv_lib_dl_dlopen=no
10921fi
10922rm -f core conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10924LIBS=$ac_check_lib_save_LIBS
10925fi
10926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10927$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10928if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10929 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10930else
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10932$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10933if ${ac_cv_lib_svld_dlopen+:} false; then :
10934 $as_echo_n "(cached) " >&6
10935else
10936 ac_check_lib_save_LIBS=$LIBS
10937LIBS="-lsvld $LIBS"
10938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939/* end confdefs.h. */
10940
10941/* Override any GCC internal prototype to avoid an error.
10942 Use char because int might match the return type of a GCC
10943 builtin and then its argument prototype would still apply. */
10944#ifdef __cplusplus
10945extern "C"
10946#endif
10947char dlopen ();
10948int
10949main ()
10950{
10951return dlopen ();
10952 ;
10953 return 0;
10954}
10955_ACEOF
10956if ac_fn_c_try_link "$LINENO"; then :
10957 ac_cv_lib_svld_dlopen=yes
10958else
10959 ac_cv_lib_svld_dlopen=no
10960fi
10961rm -f core conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10963LIBS=$ac_check_lib_save_LIBS
10964fi
10965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10966$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10967if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10969else
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10971$as_echo_n "checking for dld_link in -ldld... " >&6; }
10972if ${ac_cv_lib_dld_dld_link+:} false; then :
10973 $as_echo_n "(cached) " >&6
10974else
10975 ac_check_lib_save_LIBS=$LIBS
10976LIBS="-ldld $LIBS"
10977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978/* end confdefs.h. */
10979
10980/* Override any GCC internal prototype to avoid an error.
10981 Use char because int might match the return type of a GCC
10982 builtin and then its argument prototype would still apply. */
10983#ifdef __cplusplus
10984extern "C"
10985#endif
10986char dld_link ();
10987int
10988main ()
10989{
10990return dld_link ();
10991 ;
10992 return 0;
10993}
10994_ACEOF
10995if ac_fn_c_try_link "$LINENO"; then :
10996 ac_cv_lib_dld_dld_link=yes
10997else
10998 ac_cv_lib_dld_dld_link=no
10999fi
11000rm -f core conftest.err conftest.$ac_objext \
11001 conftest$ac_exeext conftest.$ac_ext
11002LIBS=$ac_check_lib_save_LIBS
11003fi
11004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11005$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11006if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11007 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11008fi
11009
11010
11011fi
11012
11013
11014fi
11015
11016
11017fi
11018
11019
11020fi
11021
11022
11023fi
11024
11025 ;;
11026 esac
11027
11028 if test "x$lt_cv_dlopen" != xno; then
11029 enable_dlopen=yes
11030 else
11031 enable_dlopen=no
11032 fi
11033
11034 case $lt_cv_dlopen in
11035 dlopen)
11036 save_CPPFLAGS="$CPPFLAGS"
11037 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11038
11039 save_LDFLAGS="$LDFLAGS"
11040 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11041
11042 save_LIBS="$LIBS"
11043 LIBS="$lt_cv_dlopen_libs $LIBS"
11044
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11046$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11047if ${lt_cv_dlopen_self+:} false; then :
11048 $as_echo_n "(cached) " >&6
11049else
11050 if test "$cross_compiling" = yes; then :
11051 lt_cv_dlopen_self=cross
11052else
11053 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11054 lt_status=$lt_dlunknown
11055 cat > conftest.$ac_ext <<_LT_EOF
11056#line $LINENO "configure"
11057#include "confdefs.h"
11058
11059#if HAVE_DLFCN_H
11060#include <dlfcn.h>
11061#endif
11062
11063#include <stdio.h>
11064
11065#ifdef RTLD_GLOBAL
11066# define LT_DLGLOBAL RTLD_GLOBAL
11067#else
11068# ifdef DL_GLOBAL
11069# define LT_DLGLOBAL DL_GLOBAL
11070# else
11071# define LT_DLGLOBAL 0
11072# endif
11073#endif
11074
11075/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11076 find out it does not work in some platform. */
11077#ifndef LT_DLLAZY_OR_NOW
11078# ifdef RTLD_LAZY
11079# define LT_DLLAZY_OR_NOW RTLD_LAZY
11080# else
11081# ifdef DL_LAZY
11082# define LT_DLLAZY_OR_NOW DL_LAZY
11083# else
11084# ifdef RTLD_NOW
11085# define LT_DLLAZY_OR_NOW RTLD_NOW
11086# else
11087# ifdef DL_NOW
11088# define LT_DLLAZY_OR_NOW DL_NOW
11089# else
11090# define LT_DLLAZY_OR_NOW 0
11091# endif
11092# endif
11093# endif
11094# endif
11095#endif
11096
11097/* When -fvisbility=hidden is used, assume the code has been annotated
11098 correspondingly for the symbols needed. */
11099#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11100int fnord () __attribute__((visibility("default")));
11101#endif
11102
11103int fnord () { return 42; }
11104int main ()
11105{
11106 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11107 int status = $lt_dlunknown;
11108
11109 if (self)
11110 {
11111 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11112 else
11113 {
11114 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11115 else puts (dlerror ());
11116 }
11117 /* dlclose (self); */
11118 }
11119 else
11120 puts (dlerror ());
11121
11122 return status;
11123}
11124_LT_EOF
11125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11126 (eval $ac_link) 2>&5
11127 ac_status=$?
11128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11129 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11130 (./conftest; exit; ) >&5 2>/dev/null
11131 lt_status=$?
11132 case x$lt_status in
11133 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11134 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11135 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11136 esac
11137 else :
11138 # compilation failed
11139 lt_cv_dlopen_self=no
11140 fi
11141fi
11142rm -fr conftest*
11143
11144
11145fi
11146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11147$as_echo "$lt_cv_dlopen_self" >&6; }
11148
11149 if test "x$lt_cv_dlopen_self" = xyes; then
11150 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11152$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11153if ${lt_cv_dlopen_self_static+:} false; then :
11154 $as_echo_n "(cached) " >&6
11155else
11156 if test "$cross_compiling" = yes; then :
11157 lt_cv_dlopen_self_static=cross
11158else
11159 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11160 lt_status=$lt_dlunknown
11161 cat > conftest.$ac_ext <<_LT_EOF
11162#line $LINENO "configure"
11163#include "confdefs.h"
11164
11165#if HAVE_DLFCN_H
11166#include <dlfcn.h>
11167#endif
11168
11169#include <stdio.h>
11170
11171#ifdef RTLD_GLOBAL
11172# define LT_DLGLOBAL RTLD_GLOBAL
11173#else
11174# ifdef DL_GLOBAL
11175# define LT_DLGLOBAL DL_GLOBAL
11176# else
11177# define LT_DLGLOBAL 0
11178# endif
11179#endif
11180
11181/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11182 find out it does not work in some platform. */
11183#ifndef LT_DLLAZY_OR_NOW
11184# ifdef RTLD_LAZY
11185# define LT_DLLAZY_OR_NOW RTLD_LAZY
11186# else
11187# ifdef DL_LAZY
11188# define LT_DLLAZY_OR_NOW DL_LAZY
11189# else
11190# ifdef RTLD_NOW
11191# define LT_DLLAZY_OR_NOW RTLD_NOW
11192# else
11193# ifdef DL_NOW
11194# define LT_DLLAZY_OR_NOW DL_NOW
11195# else
11196# define LT_DLLAZY_OR_NOW 0
11197# endif
11198# endif
11199# endif
11200# endif
11201#endif
11202
11203/* When -fvisbility=hidden is used, assume the code has been annotated
11204 correspondingly for the symbols needed. */
11205#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11206int fnord () __attribute__((visibility("default")));
11207#endif
11208
11209int fnord () { return 42; }
11210int main ()
11211{
11212 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11213 int status = $lt_dlunknown;
11214
11215 if (self)
11216 {
11217 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11218 else
11219 {
11220 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11221 else puts (dlerror ());
11222 }
11223 /* dlclose (self); */
11224 }
11225 else
11226 puts (dlerror ());
11227
11228 return status;
11229}
11230_LT_EOF
11231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11232 (eval $ac_link) 2>&5
11233 ac_status=$?
11234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11235 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11236 (./conftest; exit; ) >&5 2>/dev/null
11237 lt_status=$?
11238 case x$lt_status in
11239 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11240 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11241 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11242 esac
11243 else :
11244 # compilation failed
11245 lt_cv_dlopen_self_static=no
11246 fi
11247fi
11248rm -fr conftest*
11249
11250
11251fi
11252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11253$as_echo "$lt_cv_dlopen_self_static" >&6; }
11254 fi
11255
11256 CPPFLAGS="$save_CPPFLAGS"
11257 LDFLAGS="$save_LDFLAGS"
11258 LIBS="$save_LIBS"
11259 ;;
11260 esac
11261
11262 case $lt_cv_dlopen_self in
11263 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11264 *) enable_dlopen_self=unknown ;;
11265 esac
11266
11267 case $lt_cv_dlopen_self_static in
11268 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11269 *) enable_dlopen_self_static=unknown ;;
11270 esac
11271fi
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289striplib=
11290old_striplib=
11291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11292$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11293if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11294 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11295 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11297$as_echo "yes" >&6; }
11298else
11299# FIXME - insert some real tests, host_os isn't really good enough
11300 case $host_os in
11301 darwin*)
11302 if test -n "$STRIP" ; then
11303 striplib="$STRIP -x"
11304 old_striplib="$STRIP -S"
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11306$as_echo "yes" >&6; }
11307 else
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309$as_echo "no" >&6; }
11310 fi
11311 ;;
11312 *)
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314$as_echo "no" >&6; }
11315 ;;
11316 esac
11317fi
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330 # Report which library types will actually be built
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11332$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11334$as_echo "$can_build_shared" >&6; }
11335
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11337$as_echo_n "checking whether to build shared libraries... " >&6; }
11338 test "$can_build_shared" = "no" && enable_shared=no
11339
11340 # On AIX, shared libraries and static libraries use the same namespace, and
11341 # are all built from PIC.
11342 case $host_os in
11343 aix3*)
11344 test "$enable_shared" = yes && enable_static=no
11345 if test -n "$RANLIB"; then
11346 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11347 postinstall_cmds='$RANLIB $lib'
11348 fi
11349 ;;
11350
11351 aix[4-9]*)
11352 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11353 test "$enable_shared" = yes && enable_static=no
11354 fi
11355 ;;
11356 esac
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11358$as_echo "$enable_shared" >&6; }
11359
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11361$as_echo_n "checking whether to build static libraries... " >&6; }
11362 # Make sure either enable_shared or enable_static is yes.
11363 test "$enable_shared" = yes || enable_static=yes
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11365$as_echo "$enable_static" >&6; }
11366
11367
11368
11369
11370fi
11371ac_ext=c
11372ac_cpp='$CPP $CPPFLAGS'
11373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11375ac_compiler_gnu=$ac_cv_c_compiler_gnu
11376
11377CC="$lt_save_CC"
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393 ac_config_commands="$ac_config_commands libtool"
11394
11395
11396
11397
11398# Only expand once:
11399
11400
11401if test "x$CC" != xcc; then
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11403$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11404else
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11406$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11407fi
11408set dummy $CC; ac_cc=`$as_echo "$2" |
11409 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11410if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11411 $as_echo_n "(cached) " >&6
11412else
11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414/* end confdefs.h. */
11415
11416int
11417main ()
11418{
11419
11420 ;
11421 return 0;
11422}
11423_ACEOF
11424# Make sure it works both with $CC and with simple cc.
11425# We do the test twice because some compilers refuse to overwrite an
11426# existing .o file with -o, though they will create one.
11427ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11428rm -f conftest2.*
11429if { { case "(($ac_try" in
11430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11431 *) ac_try_echo=$ac_try;;
11432esac
11433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11434$as_echo "$ac_try_echo"; } >&5
11435 (eval "$ac_try") 2>&5
11436 ac_status=$?
11437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11438 test $ac_status = 0; } &&
11439 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11442esac
11443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11444$as_echo "$ac_try_echo"; } >&5
11445 (eval "$ac_try") 2>&5
11446 ac_status=$?
11447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11448 test $ac_status = 0; };
11449then
11450 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11451 if test "x$CC" != xcc; then
11452 # Test first that cc exists at all.
11453 if { ac_try='cc -c conftest.$ac_ext >&5'
11454 { { case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11457esac
11458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11459$as_echo "$ac_try_echo"; } >&5
11460 (eval "$ac_try") 2>&5
11461 ac_status=$?
11462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11463 test $ac_status = 0; }; }; then
11464 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11465 rm -f conftest2.*
11466 if { { case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11469esac
11470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11471$as_echo "$ac_try_echo"; } >&5
11472 (eval "$ac_try") 2>&5
11473 ac_status=$?
11474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11475 test $ac_status = 0; } &&
11476 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11479esac
11480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11481$as_echo "$ac_try_echo"; } >&5
11482 (eval "$ac_try") 2>&5
11483 ac_status=$?
11484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11485 test $ac_status = 0; };
11486 then
11487 # cc works too.
11488 :
11489 else
11490 # cc exists but doesn't like -o.
11491 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11492 fi
11493 fi
11494 fi
11495else
11496 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11497fi
11498rm -f core conftest*
11499
11500fi
11501if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11503$as_echo "yes" >&6; }
11504else
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506$as_echo "no" >&6; }
11507
11508$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11509
11510fi
11511
11512# FIXME: we rely on the cache variable name because
11513# there is no other way.
11514set dummy $CC
11515am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11516eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11517if test "$am_t" != yes; then
11518 # Losing compiler, so override with the script.
11519 # FIXME: It is wrong to rewrite CC.
11520 # But if we don't then we get into trouble of one sort or another.
11521 # A longer-term fix would be to have automake use am__CC in this case,
11522 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11523 CC="$am_aux_dir/compile $CC"
11524fi
11525
11526
11527
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11529$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11530if ${ac_cv_prog_cc_c99+:} false; then :
11531 $as_echo_n "(cached) " >&6
11532else
11533 ac_cv_prog_cc_c99=no
11534ac_save_CC=$CC
11535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536/* end confdefs.h. */
11537#include <stdarg.h>
11538#include <stdbool.h>
11539#include <stdlib.h>
11540#include <wchar.h>
11541#include <stdio.h>
11542
11543// Check varargs macros. These examples are taken from C99 6.10.3.5.
11544#define debug(...) fprintf (stderr, __VA_ARGS__)
11545#define showlist(...) puts (#__VA_ARGS__)
11546#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11547static void
11548test_varargs_macros (void)
11549{
11550 int x = 1234;
11551 int y = 5678;
11552 debug ("Flag");
11553 debug ("X = %d\n", x);
11554 showlist (The first, second, and third items.);
11555 report (x>y, "x is %d but y is %d", x, y);
11556}
11557
11558// Check long long types.
11559#define BIG64 18446744073709551615ull
11560#define BIG32 4294967295ul
11561#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11562#if !BIG_OK
11563 your preprocessor is broken;
11564#endif
11565#if BIG_OK
11566#else
11567 your preprocessor is broken;
11568#endif
11569static long long int bignum = -9223372036854775807LL;
11570static unsigned long long int ubignum = BIG64;
11571
11572struct incomplete_array
11573{
11574 int datasize;
11575 double data[];
11576};
11577
11578struct named_init {
11579 int number;
11580 const wchar_t *name;
11581 double average;
11582};
11583
11584typedef const char *ccp;
11585
11586static inline int
11587test_restrict (ccp restrict text)
11588{
11589 // See if C++-style comments work.
11590 // Iterate through items via the restricted pointer.
11591 // Also check for declarations in for loops.
11592 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11593 continue;
11594 return 0;
11595}
11596
11597// Check varargs and va_copy.
11598static void
11599test_varargs (const char *format, ...)
11600{
11601 va_list args;
11602 va_start (args, format);
11603 va_list args_copy;
11604 va_copy (args_copy, args);
11605
11606 const char *str;
11607 int number;
11608 float fnumber;
11609
11610 while (*format)
11611 {
11612 switch (*format++)
11613 {
11614 case 's': // string
11615 str = va_arg (args_copy, const char *);
11616 break;
11617 case 'd': // int
11618 number = va_arg (args_copy, int);
11619 break;
11620 case 'f': // float
11621 fnumber = va_arg (args_copy, double);
11622 break;
11623 default:
11624 break;
11625 }
11626 }
11627 va_end (args_copy);
11628 va_end (args);
11629}
11630
11631int
11632main ()
11633{
11634
11635 // Check bool.
11636 _Bool success = false;
11637
11638 // Check restrict.
11639 if (test_restrict ("String literal") == 0)
11640 success = true;
11641 char *restrict newvar = "Another string";
11642
11643 // Check varargs.
11644 test_varargs ("s, d' f .", "string", 65, 34.234);
11645 test_varargs_macros ();
11646
11647 // Check flexible array members.
11648 struct incomplete_array *ia =
11649 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11650 ia->datasize = 10;
11651 for (int i = 0; i < ia->datasize; ++i)
11652 ia->data[i] = i * 1.234;
11653
11654 // Check named initializers.
11655 struct named_init ni = {
11656 .number = 34,
11657 .name = L"Test wide string",
11658 .average = 543.34343,
11659 };
11660
11661 ni.number = 58;
11662
11663 int dynamic_array[ni.number];
11664 dynamic_array[ni.number - 1] = 543;
11665
11666 // work around unused variable warnings
11667 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11668 || dynamic_array[ni.number - 1] != 543);
11669
11670 ;
11671 return 0;
11672}
11673_ACEOF
11674for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11675do
11676 CC="$ac_save_CC $ac_arg"
11677 if ac_fn_c_try_compile "$LINENO"; then :
11678 ac_cv_prog_cc_c99=$ac_arg
11679fi
11680rm -f core conftest.err conftest.$ac_objext
11681 test "x$ac_cv_prog_cc_c99" != "xno" && break
11682done
11683rm -f conftest.$ac_ext
11684CC=$ac_save_CC
11685
11686fi
11687# AC_CACHE_VAL
11688case "x$ac_cv_prog_cc_c99" in
11689 x)
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11691$as_echo "none needed" >&6; } ;;
11692 xno)
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11694$as_echo "unsupported" >&6; } ;;
11695 *)
11696 CC="$CC $ac_cv_prog_cc_c99"
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11698$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11699esac
11700if test "x$ac_cv_prog_cc_c99" != xno; then :
11701
11702fi
11703
11704
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000011705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11706$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11707if ${ac_cv_c_const+:} false; then :
11708 $as_echo_n "(cached) " >&6
11709else
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711/* end confdefs.h. */
11712
11713int
11714main ()
11715{
11716/* FIXME: Include the comments suggested by Paul. */
11717#ifndef __cplusplus
11718 /* Ultrix mips cc rejects this. */
11719 typedef int charset[2];
11720 const charset cs;
11721 /* SunOS 4.1.1 cc rejects this. */
11722 char const *const *pcpcc;
11723 char **ppc;
11724 /* NEC SVR4.0.2 mips cc rejects this. */
11725 struct point {int x, y;};
11726 static struct point const zero = {0,0};
11727 /* AIX XL C 1.02.0.0 rejects this.
11728 It does not let you subtract one const X* pointer from another in
11729 an arm of an if-expression whose if-part is not a constant
11730 expression */
11731 const char *g = "string";
11732 pcpcc = &g + (g ? g-g : 0);
11733 /* HPUX 7.0 cc rejects these. */
11734 ++pcpcc;
11735 ppc = (char**) pcpcc;
11736 pcpcc = (char const *const *) ppc;
11737 { /* SCO 3.2v4 cc rejects this. */
11738 char *t;
11739 char const *s = 0 ? (char *) 0 : (char const *) 0;
11740
11741 *t++ = 0;
11742 if (s) return 0;
11743 }
11744 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11745 int x[] = {25, 17};
11746 const int *foo = &x[0];
11747 ++foo;
11748 }
11749 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11750 typedef const int *iptr;
11751 iptr p = 0;
11752 ++p;
11753 }
11754 { /* AIX XL C 1.02.0.0 rejects this saying
11755 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11756 struct s { int j; const int *ap[3]; };
11757 struct s *b; b->j = 5;
11758 }
11759 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11760 const int foo = 10;
11761 if (!foo) return 0;
11762 }
11763 return !cs[0] && !zero.x;
11764#endif
11765
11766 ;
11767 return 0;
11768}
11769_ACEOF
11770if ac_fn_c_try_compile "$LINENO"; then :
11771 ac_cv_c_const=yes
11772else
11773 ac_cv_c_const=no
11774fi
11775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11776fi
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11778$as_echo "$ac_cv_c_const" >&6; }
11779if test $ac_cv_c_const = no; then
11780
11781$as_echo "#define const /**/" >>confdefs.h
11782
11783fi
11784
11785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11786$as_echo_n "checking for inline... " >&6; }
11787if ${ac_cv_c_inline+:} false; then :
11788 $as_echo_n "(cached) " >&6
11789else
11790 ac_cv_c_inline=no
11791for ac_kw in inline __inline__ __inline; do
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793/* end confdefs.h. */
11794#ifndef __cplusplus
11795typedef int foo_t;
11796static $ac_kw foo_t static_foo () {return 0; }
11797$ac_kw foo_t foo () {return 0; }
11798#endif
11799
11800_ACEOF
11801if ac_fn_c_try_compile "$LINENO"; then :
11802 ac_cv_c_inline=$ac_kw
11803fi
11804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11805 test "$ac_cv_c_inline" != no && break
11806done
11807
11808fi
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11810$as_echo "$ac_cv_c_inline" >&6; }
11811
11812case $ac_cv_c_inline in
11813 inline | yes) ;;
11814 *)
11815 case $ac_cv_c_inline in
11816 no) ac_val=;;
11817 *) ac_val=$ac_cv_c_inline;;
11818 esac
11819 cat >>confdefs.h <<_ACEOF
11820#ifndef __cplusplus
11821#define inline $ac_val
11822#endif
11823_ACEOF
11824 ;;
11825esac
11826
11827
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000011828# By default we simply use the C compiler to build assembly code.
11829
11830test "${CCAS+set}" = set || CCAS=$CC
11831test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11832
11833
11834
11835depcc="$CCAS" am_compiler_list=
11836
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11838$as_echo_n "checking dependency style of $depcc... " >&6; }
11839if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
11840 $as_echo_n "(cached) " >&6
11841else
11842 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11843 # We make a subdir and do the tests there. Otherwise we can end up
11844 # making bogus files that we don't know about and never remove. For
11845 # instance it was reported that on HP-UX the gcc test will end up
11846 # making a dummy file named `D' -- because `-MD' means `put the output
11847 # in D'.
11848 rm -rf conftest.dir
11849 mkdir conftest.dir
11850 # Copy depcomp to subdir because otherwise we won't find it if we're
11851 # using a relative directory.
11852 cp "$am_depcomp" conftest.dir
11853 cd conftest.dir
11854 # We will build objects and dependencies in a subdirectory because
11855 # it helps to detect inapplicable dependency modes. For instance
11856 # both Tru64's cc and ICC support -MD to output dependencies as a
11857 # side effect of compilation, but ICC will put the dependencies in
11858 # the current directory while Tru64 will put them in the object
11859 # directory.
11860 mkdir sub
11861
11862 am_cv_CCAS_dependencies_compiler_type=none
11863 if test "$am_compiler_list" = ""; then
11864 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11865 fi
11866 am__universal=false
11867
11868
11869 for depmode in $am_compiler_list; do
11870 # Setup a source with many dependencies, because some compilers
11871 # like to wrap large dependency lists on column 80 (with \), and
11872 # we should not choose a depcomp mode which is confused by this.
11873 #
11874 # We need to recreate these files for each test, as the compiler may
11875 # overwrite some of them when testing with obscure command lines.
11876 # This happens at least with the AIX C compiler.
11877 : > sub/conftest.c
11878 for i in 1 2 3 4 5 6; do
11879 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11880 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11881 # Solaris 8's {/usr,}/bin/sh.
11882 touch sub/conftst$i.h
11883 done
11884 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11885
11886 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11887 # mode. It turns out that the SunPro C++ compiler does not properly
11888 # handle `-M -o', and we need to detect this. Also, some Intel
11889 # versions had trouble with output in subdirs
11890 am__obj=sub/conftest.${OBJEXT-o}
11891 am__minus_obj="-o $am__obj"
11892 case $depmode in
11893 gcc)
11894 # This depmode causes a compiler race in universal mode.
11895 test "$am__universal" = false || continue
11896 ;;
11897 nosideeffect)
11898 # after this tag, mechanisms are not by side-effect, so they'll
11899 # only be used when explicitly requested
11900 if test "x$enable_dependency_tracking" = xyes; then
11901 continue
11902 else
11903 break
11904 fi
11905 ;;
11906 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11907 # This compiler won't grok `-c -o', but also, the minuso test has
11908 # not run yet. These depmodes are late enough in the game, and
11909 # so weak that their functioning should not be impacted.
11910 am__obj=conftest.${OBJEXT-o}
11911 am__minus_obj=
11912 ;;
11913 none) break ;;
11914 esac
11915 if depmode=$depmode \
11916 source=sub/conftest.c object=$am__obj \
11917 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11918 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11919 >/dev/null 2>conftest.err &&
11920 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11921 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11922 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11923 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11924 # icc doesn't choke on unknown options, it will just issue warnings
11925 # or remarks (even with -Werror). So we grep stderr for any message
11926 # that says an option was ignored or not supported.
11927 # When given -MP, icc 7.0 and 7.1 complain thusly:
11928 # icc: Command line warning: ignoring option '-M'; no argument required
11929 # The diagnosis changed in icc 8.0:
11930 # icc: Command line remark: option '-MP' not supported
11931 if (grep 'ignoring option' conftest.err ||
11932 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11933 am_cv_CCAS_dependencies_compiler_type=$depmode
11934 break
11935 fi
11936 fi
11937 done
11938
11939 cd ..
11940 rm -rf conftest.dir
11941else
11942 am_cv_CCAS_dependencies_compiler_type=none
11943fi
11944
11945fi
11946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11947$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11948CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11949
11950 if
11951 test "x$enable_dependency_tracking" != xno \
11952 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11953 am__fastdepCCAS_TRUE=
11954 am__fastdepCCAS_FALSE='#'
11955else
11956 am__fastdepCCAS_TRUE='#'
11957 am__fastdepCCAS_FALSE=
11958fi
11959
11960
11961
11962
11963$as_echo "#define OPUS_BUILD /**/" >>confdefs.h
11964
11965
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000011966#Use a hacked up version of autoconf's AC_C_RESTRICT because it's not
11967#strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3)
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000011968#Note: Both this and the test for variable-size arrays below are also
11969# done by AC_PROG_CC_C99, but not thoroughly enough apparently.
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000011970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
11971$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
11972if ${ac_cv_c_restrict+:} false; then :
11973 $as_echo_n "(cached) " >&6
11974else
11975 ac_cv_c_restrict=no
11976 # The order here caters to the fact that C++ does not require restrict.
11977 for ac_kw in __restrict __restrict__ _Restrict restrict; do
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979/* end confdefs.h. */
11980typedef int * int_ptr;
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000011981 int foo (int_ptr $ac_kw ip, int * $ac_kw baz[]) {
11982 return ip[0];
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000011983 }
11984int
11985main ()
11986{
11987int s[1];
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000011988 int * $ac_kw t = s;
11989 t[0] = 0;
11990 return foo(t, (void *)0)
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000011991 ;
11992 return 0;
11993}
11994_ACEOF
11995if ac_fn_c_try_compile "$LINENO"; then :
11996 ac_cv_c_restrict=$ac_kw
11997fi
11998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999 test "$ac_cv_c_restrict" != no && break
12000 done
12001
12002fi
12003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12004$as_echo "$ac_cv_c_restrict" >&6; }
12005
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012006
12007
12008case $ac_cv_c_restrict in
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012009 restrict) ;;
12010 no) $as_echo "#define restrict /**/" >>confdefs.h
12011 ;;
12012 *) cat >>confdefs.h <<_ACEOF
12013#define restrict $ac_cv_c_restrict
12014_ACEOF
12015 ;;
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012016esac
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012017
12018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variable-size arrays" >&5
12019$as_echo_n "checking for C99 variable-size arrays... " >&6; }
12020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021/* end confdefs.h. */
12022
12023int
12024main ()
12025{
12026static int x; char a[++x]; a[sizeof a - 1] = 0; int N; return a[0];
12027 ;
12028 return 0;
12029}
12030_ACEOF
12031if ac_fn_c_try_compile "$LINENO"; then :
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012032 has_var_arrays=yes
12033 use_alloca="no (using var arrays)"
12034
12035$as_echo "#define VAR_ARRAYS 1" >>confdefs.h
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012036
12037
12038else
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012039
12040 has_var_arrays=no
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012041
12042fi
12043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_var_arrays" >&5
12045$as_echo "$has_var_arrays" >&6; }
12046
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012047if test "$has_var_arrays" = "no"; then :
12048
12049 for ac_header in alloca.h
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012050do :
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012051 ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
12052if test "x$ac_cv_header_alloca_h" = xyes; then :
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012053 cat >>confdefs.h <<_ACEOF
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012054#define HAVE_ALLOCA_H 1
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012055_ACEOF
12056
12057fi
12058
12059done
12060
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012062$as_echo_n "checking for alloca... " >&6; }
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012064/* end confdefs.h. */
12065#include <alloca.h>
12066int
12067main ()
12068{
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012069int foo=10; int *array = alloca(foo);
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012070 ;
12071 return 0;
12072}
12073_ACEOF
12074if ac_fn_c_try_compile "$LINENO"; then :
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012075 use_alloca=yes;
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012076
12077$as_echo "#define USE_ALLOCA /**/" >>confdefs.h
12078
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012079
12080else
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012081
12082 use_alloca=no
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012083
12084fi
12085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_alloca" >&5
12087$as_echo "$use_alloca" >&6; }
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012088
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012089fi
12090
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012091LIBM=
12092case $host in
12093*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
12094 # These system don't have libm, or don't need it
12095 ;;
12096*-ncr-sysv4.3*)
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
12098$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
12099if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
12100 $as_echo_n "(cached) " >&6
12101else
12102 ac_check_lib_save_LIBS=$LIBS
12103LIBS="-lmw $LIBS"
12104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105/* end confdefs.h. */
12106
12107/* Override any GCC internal prototype to avoid an error.
12108 Use char because int might match the return type of a GCC
12109 builtin and then its argument prototype would still apply. */
12110#ifdef __cplusplus
12111extern "C"
12112#endif
12113char _mwvalidcheckl ();
12114int
12115main ()
12116{
12117return _mwvalidcheckl ();
12118 ;
12119 return 0;
12120}
12121_ACEOF
12122if ac_fn_c_try_link "$LINENO"; then :
12123 ac_cv_lib_mw__mwvalidcheckl=yes
12124else
12125 ac_cv_lib_mw__mwvalidcheckl=no
12126fi
12127rm -f core conftest.err conftest.$ac_objext \
12128 conftest$ac_exeext conftest.$ac_ext
12129LIBS=$ac_check_lib_save_LIBS
12130fi
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12132$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
12133if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
12134 LIBM="-lmw"
12135fi
12136
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12138$as_echo_n "checking for cos in -lm... " >&6; }
12139if ${ac_cv_lib_m_cos+:} false; then :
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012140 $as_echo_n "(cached) " >&6
12141else
12142 ac_check_lib_save_LIBS=$LIBS
12143LIBS="-lm $LIBS"
12144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145/* end confdefs.h. */
12146
12147/* Override any GCC internal prototype to avoid an error.
12148 Use char because int might match the return type of a GCC
12149 builtin and then its argument prototype would still apply. */
12150#ifdef __cplusplus
12151extern "C"
12152#endif
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012153char cos ();
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012154int
12155main ()
12156{
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012157return cos ();
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012158 ;
12159 return 0;
12160}
12161_ACEOF
12162if ac_fn_c_try_link "$LINENO"; then :
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012163 ac_cv_lib_m_cos=yes
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012164else
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012165 ac_cv_lib_m_cos=no
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012166fi
12167rm -f core conftest.err conftest.$ac_objext \
12168 conftest$ac_exeext conftest.$ac_ext
12169LIBS=$ac_check_lib_save_LIBS
12170fi
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12172$as_echo "$ac_cv_lib_m_cos" >&6; }
12173if test "x$ac_cv_lib_m_cos" = xyes; then :
12174 LIBM="$LIBM -lm"
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012175fi
12176
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012177 ;;
12178*)
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12180$as_echo_n "checking for cos in -lm... " >&6; }
12181if ${ac_cv_lib_m_cos+:} false; then :
12182 $as_echo_n "(cached) " >&6
12183else
12184 ac_check_lib_save_LIBS=$LIBS
12185LIBS="-lm $LIBS"
12186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187/* end confdefs.h. */
12188
12189/* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
12192#ifdef __cplusplus
12193extern "C"
12194#endif
12195char cos ();
12196int
12197main ()
12198{
12199return cos ();
12200 ;
12201 return 0;
12202}
12203_ACEOF
12204if ac_fn_c_try_link "$LINENO"; then :
12205 ac_cv_lib_m_cos=yes
12206else
12207 ac_cv_lib_m_cos=no
12208fi
12209rm -f core conftest.err conftest.$ac_objext \
12210 conftest$ac_exeext conftest.$ac_ext
12211LIBS=$ac_check_lib_save_LIBS
12212fi
12213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12214$as_echo "$ac_cv_lib_m_cos" >&6; }
12215if test "x$ac_cv_lib_m_cos" = xyes; then :
12216 LIBM="-lm"
12217fi
12218
12219 ;;
12220esac
12221
12222
12223
12224# Check whether --enable-fixed-point was given.
12225if test "${enable_fixed_point+set}" = set; then :
12226 enableval=$enable_fixed_point;
12227else
12228 enable_fixed_point=no
12229fi
12230
12231
12232if test "$enable_fixed_point" = "yes"; then :
12233
12234 enable_float="no"
12235
12236$as_echo "#define FIXED_POINT 1" >>confdefs.h
12237
12238 PC_BUILD="fixed-point"
12239
12240else
12241
12242 enable_float="yes";
12243 PC_BUILD="floating-point"
12244
12245fi
12246
12247 if test "$enable_fixed_point" = "yes"; then
12248 FIXED_POINT_TRUE=
12249 FIXED_POINT_FALSE='#'
12250else
12251 FIXED_POINT_TRUE='#'
12252 FIXED_POINT_FALSE=
12253fi
12254
12255
12256# Check whether --enable-fixed-point-debug was given.
12257if test "${enable_fixed_point_debug+set}" = set; then :
12258 enableval=$enable_fixed_point_debug;
12259else
12260 enable_fixed_point_debug=no
12261fi
12262
12263
12264if test "$enable_fixed_point_debug" = "yes"; then :
12265
12266
12267$as_echo "#define FIXED_DEBUG 1" >>confdefs.h
12268
12269
12270fi
12271
12272# Check whether --enable-float_api was given.
12273if test "${enable_float_api+set}" = set; then :
12274 enableval=$enable_float_api;
12275else
12276 enable_float_api=yes
12277fi
12278
12279
12280 if test "$enable_float_api" = "no"; then
12281 DISABLE_FLOAT_API_TRUE=
12282 DISABLE_FLOAT_API_FALSE='#'
12283else
12284 DISABLE_FLOAT_API_TRUE='#'
12285 DISABLE_FLOAT_API_FALSE=
12286fi
12287
12288
12289if test "$enable_float_api" = "no"; then :
12290
12291
12292$as_echo "#define DISABLE_FLOAT_API 1" >>confdefs.h
12293
12294
12295fi
12296
12297# Check whether --enable-custom-modes was given.
12298if test "${enable_custom_modes+set}" = set; then :
12299 enableval=$enable_custom_modes;
12300else
12301 enable_custom_modes=no
12302fi
12303
12304
12305if test "$enable_custom_modes" = "yes"; then :
12306
12307
12308$as_echo "#define CUSTOM_MODES 1" >>confdefs.h
12309
12310 PC_BUILD="$PC_BUILD, custom modes"
12311
12312fi
12313
12314 if test "$enable_custom_modes" = "yes"; then
12315 CUSTOM_MODES_TRUE=
12316 CUSTOM_MODES_FALSE='#'
12317else
12318 CUSTOM_MODES_TRUE='#'
12319 CUSTOM_MODES_FALSE=
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012320fi
12321
12322
12323has_float_approx=no
12324#case "$host_cpu" in
12325#i[[3456]]86 | x86_64 | powerpc64 | powerpc32 | ia64)
12326# has_float_approx=yes
12327# ;;
12328#esac
12329
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012330# Check whether --enable-float-approx was given.
12331if test "${enable_float_approx+set}" = set; then :
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012332 enableval=$enable_float_approx; if test "$enable_float_approx" = "yes"; then
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Floating point approximations are not supported on all platforms." >&5
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012334$as_echo "$as_me: WARNING: Floating point approximations are not supported on all platforms." >&2;}
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012335 fi
12336
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012337else
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012338 enable_float_approx=$has_float_approx
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012339fi
12340
12341
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012342if test "$enable_float_approx" = "yes"; then :
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012343
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012344
12345$as_echo "#define FLOAT_APPROX 1" >>confdefs.h
12346
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012347
12348fi
12349
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012350# Check whether --enable-asm was given.
12351if test "${enable_asm+set}" = set; then :
12352 enableval=$enable_asm;
12353else
12354 enable_asm=yes
12355fi
12356
12357
12358# Check whether --enable-rtcd was given.
12359if test "${enable_rtcd+set}" = set; then :
12360 enableval=$enable_rtcd;
12361else
12362 enable_rtcd=yes
12363fi
12364
12365
12366rtcd_support=no
12367cpu_arm=no
12368
12369if test x"${enable_asm}" = x"yes"; then :
12370
12371 inline_optimization="No ASM for your platform, please send patches"
12372 case $host_cpu in
12373 arm*)
12374 if test "$enable_float" != "yes"; then :
12375
12376 cpu_arm=yes
12377
12378$as_echo "#define OPUS_ARM_ASM /**/" >>confdefs.h
12379
12380
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports gcc-style inline assembly" >&5
12382$as_echo_n "checking if compiler supports gcc-style inline assembly... " >&6; }
12383
12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385/* end confdefs.h. */
12386
12387int
12388main ()
12389{
12390
12391#ifdef __GNUC_MINOR__
12392#if (__GNUC__ * 1000 + __GNUC_MINOR__) < 3004
12393#error GCC before 3.4 has critical bugs compiling inline assembly
12394#endif
12395#endif
12396__asm__ (""::)
12397 ;
12398 return 0;
12399}
12400_ACEOF
12401if ac_fn_c_try_compile "$LINENO"; then :
12402 flag_ok=yes
12403else
12404 flag_ok=no
12405fi
12406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12407
12408 if test "X$flag_ok" = Xyes ; then
12409 inline_optimization="ARM"
12410 true
12411 else
12412 inline_optimization="disabled"
12413
12414 true
12415 fi
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
12417$as_echo "$flag_ok" >&6; }
12418
12419
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports EDSP instructions on ARM" >&5
12421$as_echo_n "checking if assembler supports EDSP instructions on ARM... " >&6; }
12422
12423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424/* end confdefs.h. */
12425
12426int
12427main ()
12428{
12429__asm__("qadd r3,r3,r3")
12430 ;
12431 return 0;
12432}
12433_ACEOF
12434if ac_fn_c_try_compile "$LINENO"; then :
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12436$as_echo "yes" >&6; }
12437 OPUS_ARM_INLINE_EDSP=1
12438else
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440$as_echo "no" >&6; }
12441 OPUS_ARM_INLINE_EDSP=0
12442fi
12443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444
12445
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports ARMv6 media instructions on ARM" >&5
12447$as_echo_n "checking if assembler supports ARMv6 media instructions on ARM... " >&6; }
12448
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450/* end confdefs.h. */
12451
12452int
12453main ()
12454{
12455__asm__("shadd8 r3,r3,r3")
12456 ;
12457 return 0;
12458}
12459_ACEOF
12460if ac_fn_c_try_compile "$LINENO"; then :
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12462$as_echo "yes" >&6; }
12463 OPUS_ARM_INLINE_MEDIA=1
12464else
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466$as_echo "no" >&6; }
12467 OPUS_ARM_INLINE_MEDIA=0
12468fi
12469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470
12471
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports NEON instructions on ARM" >&5
12473$as_echo_n "checking if assembler supports NEON instructions on ARM... " >&6; }
12474
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476/* end confdefs.h. */
12477
12478int
12479main ()
12480{
12481__asm__("vorr d0,d0,d0")
12482 ;
12483 return 0;
12484}
12485_ACEOF
12486if ac_fn_c_try_compile "$LINENO"; then :
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12488$as_echo "yes" >&6; }
12489 OPUS_ARM_INLINE_NEON=1
12490else
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492$as_echo "no" >&6; }
12493 OPUS_ARM_INLINE_NEON=0
12494fi
12495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496
12497 if test x"$inline_optimization" = x"ARM"; then :
12498
12499 if true; then
12500 OPUS_ARM_INLINE_ASM_TRUE=
12501 OPUS_ARM_INLINE_ASM_FALSE='#'
12502else
12503 OPUS_ARM_INLINE_ASM_TRUE='#'
12504 OPUS_ARM_INLINE_ASM_FALSE=
12505fi
12506
12507
12508$as_echo "#define OPUS_ARM_INLINE_ASM 1" >>confdefs.h
12509
12510 if test x"$OPUS_ARM_INLINE_EDSP" = x"1"; then :
12511
12512
12513$as_echo "#define OPUS_ARM_INLINE_EDSP 1" >>confdefs.h
12514
12515 inline_optimization="$inline_optimization (EDSP)"
12516
12517fi
12518 if test x"$OPUS_ARM_INLINE_MEDIA" = x"1"; then :
12519
12520
12521$as_echo "#define OPUS_ARM_INLINE_MEDIA 1" >>confdefs.h
12522
12523 inline_optimization="$inline_optimization (Media)"
12524
12525fi
12526 if test x"$OPUS_ARM_INLINE_NEON" = x"1"; then :
12527
12528
12529$as_echo "#define OPUS_ARM_INLINE_NEON 1" >>confdefs.h
12530
12531 inline_optimization="$inline_optimization (NEON)"
12532
12533fi
12534
12535fi
12536 # Extract the first word of "perl", so it can be a program name with args.
12537set dummy perl; ac_word=$2
12538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12539$as_echo_n "checking for $ac_word... " >&6; }
12540if ${ac_cv_prog_HAVE_PERL+:} false; then :
12541 $as_echo_n "(cached) " >&6
12542else
12543 if test -n "$HAVE_PERL"; then
12544 ac_cv_prog_HAVE_PERL="$HAVE_PERL" # Let the user override the test.
12545else
12546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12547for as_dir in $PATH
12548do
12549 IFS=$as_save_IFS
12550 test -z "$as_dir" && as_dir=.
12551 for ac_exec_ext in '' $ac_executable_extensions; do
12552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12553 ac_cv_prog_HAVE_PERL="yes"
12554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12555 break 2
12556 fi
12557done
12558 done
12559IFS=$as_save_IFS
12560
12561 test -z "$ac_cv_prog_HAVE_PERL" && ac_cv_prog_HAVE_PERL="no"
12562fi
12563fi
12564HAVE_PERL=$ac_cv_prog_HAVE_PERL
12565if test -n "$HAVE_PERL"; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PERL" >&5
12567$as_echo "$HAVE_PERL" >&6; }
12568else
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570$as_echo "no" >&6; }
12571fi
12572
12573
12574 if test x"$HAVE_PERL" = x"yes"; then :
12575
12576 if true; then
12577 OPUS_ARM_EXTERNAL_ASM_TRUE=
12578 OPUS_ARM_EXTERNAL_ASM_FALSE='#'
12579else
12580 OPUS_ARM_EXTERNAL_ASM_TRUE='#'
12581 OPUS_ARM_EXTERNAL_ASM_FALSE=
12582fi
12583
12584 asm_optimization="ARM"
12585 if test x"$OPUS_ARM_INLINE_EDSP" = x"1"; then :
12586
12587 OPUS_ARM_PRESUME_EDSP=1
12588 OPUS_ARM_MAY_HAVE_EDSP=1
12589
12590else
12591
12592 OPUS_ARM_PRESUME_EDSP=0
12593 OPUS_ARM_MAY_HAVE_EDSP=0
12594
12595fi
12596 if test x"$OPUS_ARM_INLINE_MEDIA" = x"1"; then :
12597
12598 OPUS_ARM_PRESUME_MEDIA=1
12599 OPUS_ARM_MAY_HAVE_MEDIA=1
12600
12601else
12602
12603 OPUS_ARM_PRESUME_MEDIA=0
12604 OPUS_ARM_MAY_HAVE_MEDIA=0
12605
12606fi
12607 if test x"$OPUS_ARM_INLINE_NEON" = x"1"; then :
12608
12609 OPUS_ARM_PRESUME_NEON=1
12610 OPUS_ARM_MAY_HAVE_NEON=1
12611
12612else
12613
12614 OPUS_ARM_PRESUME_NEON=0
12615 OPUS_ARM_MAY_HAVE_NEON=0
12616
12617fi
12618 if test x"$enable_rtcd" = x"yes"; then :
12619
12620 if test x"$OPUS_ARM_MAY_HAVE_EDSP" != x"1"; then :
12621
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable armv5e EDSP instructions..." >&5
12623$as_echo "$as_me: Trying to force-enable armv5e EDSP instructions..." >&6;}
12624
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports EDSP instructions on ARM" >&5
12626$as_echo_n "checking if assembler supports EDSP instructions on ARM... " >&6; }
12627
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629/* end confdefs.h. */
12630
12631int
12632main ()
12633{
12634__asm__(".arch armv5te\n.object_arch armv4t\nqadd r3,r3,r3")
12635 ;
12636 return 0;
12637}
12638_ACEOF
12639if ac_fn_c_try_compile "$LINENO"; then :
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12641$as_echo "yes" >&6; }
12642 OPUS_ARM_MAY_HAVE_EDSP=1
12643else
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645$as_echo "no" >&6; }
12646
12647fi
12648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12649
12650
12651fi
12652 if test x"$OPUS_ARM_MAY_HAVE_MEDIA" != x"1"; then :
12653
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable ARMv6 media instructions..." >&5
12655$as_echo "$as_me: Trying to force-enable ARMv6 media instructions..." >&6;}
12656
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports ARMv6 media instructions on ARM" >&5
12658$as_echo_n "checking if assembler supports ARMv6 media instructions on ARM... " >&6; }
12659
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661/* end confdefs.h. */
12662
12663int
12664main ()
12665{
12666__asm__(".arch armv6\n.object_arch armv4t\nshadd8 r3,r3,r3")
12667 ;
12668 return 0;
12669}
12670_ACEOF
12671if ac_fn_c_try_compile "$LINENO"; then :
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12673$as_echo "yes" >&6; }
12674 OPUS_ARM_MAY_HAVE_MEDIA=1
12675else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677$as_echo "no" >&6; }
12678
12679fi
12680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12681
12682
12683fi
12684 if test x"$OPUS_ARM_MAY_HAVE_NEON" != x"1"; then :
12685
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable NEON instructions..." >&5
12687$as_echo "$as_me: Trying to force-enable NEON instructions..." >&6;}
12688
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports NEON instructions on ARM" >&5
12690$as_echo_n "checking if assembler supports NEON instructions on ARM... " >&6; }
12691
12692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693/* end confdefs.h. */
12694
12695int
12696main ()
12697{
12698__asm__(".arch armv7-a\n.fpu neon\n.object_arch armv4t\nvorr d0,d0,d0")
12699 ;
12700 return 0;
12701}
12702_ACEOF
12703if ac_fn_c_try_compile "$LINENO"; then :
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12705$as_echo "yes" >&6; }
12706 OPUS_ARM_MAY_HAVE_NEON=1
12707else
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709$as_echo "no" >&6; }
12710
12711fi
12712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12713
12714
12715fi
12716
12717fi
12718 rtcd_support=
12719 if test x"$OPUS_ARM_MAY_HAVE_EDSP" = x"1"; then :
12720
12721
12722$as_echo "#define OPUS_ARM_MAY_HAVE_EDSP 1" >>confdefs.h
12723
12724 if test x"$OPUS_ARM_PRESUME_EDSP" = x"1"; then :
12725
12726
12727$as_echo "#define OPUS_ARM_PRESUME_EDSP 1" >>confdefs.h
12728
12729 asm_optimization="$asm_optimization (EDSP)"
12730
12731else
12732 rtcd_support="$rtcd_support (EDSP)"
12733
12734fi
12735
12736fi
12737
12738 if test x"$OPUS_ARM_MAY_HAVE_MEDIA" = x"1"; then :
12739
12740
12741$as_echo "#define OPUS_ARM_MAY_HAVE_MEDIA 1" >>confdefs.h
12742
12743 if test x"$OPUS_ARM_PRESUME_MEDIA" = x"1"; then :
12744
12745
12746$as_echo "#define OPUS_ARM_PRESUME_MEDIA 1" >>confdefs.h
12747
12748 asm_optimization="$asm_optimization (Media)"
12749
12750else
12751 rtcd_support="$rtcd_support (Media)"
12752
12753fi
12754
12755fi
12756
12757 if test x"$OPUS_ARM_MAY_HAVE_NEON" = x"1"; then :
12758
12759
12760$as_echo "#define OPUS_ARM_MAY_HAVE_NEON 1" >>confdefs.h
12761
12762 if test x"$OPUS_ARM_PRESUME_NEON" = x"1"; then :
12763
12764
12765$as_echo "#define OPUS_ARM_PRESUME_NEON 1" >>confdefs.h
12766
12767 asm_optimization="$asm_optimization (NEON)"
12768
12769else
12770 rtcd_support="$rtcd_support (NEON)"
12771
12772fi
12773
12774fi
12775
12776 if test x"$rtcd_support" != x""; then :
12777 rtcd_support=ARM"$rtcd_support"
12778else
12779 rtcd_support="no"
12780
12781fi
12782
12783else
12784
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ARM assembly requires perl -- disabling optimizations" >&5
12786$as_echo "$as_me: WARNING: *** ARM assembly requires perl -- disabling optimizations" >&2;}
12787 asm_optimization="(missing perl dependency for ARM)"
12788
12789fi
12790
12791fi
12792 ;;
12793 esac
12794
12795else
12796
12797 inline_optimization="disabled"
12798 asm_optimization="disabled"
12799
12800fi
12801
12802 if test "$cpu_arm" = "yes"; then
12803 CPU_ARM_TRUE=
12804 CPU_ARM_FALSE='#'
12805else
12806 CPU_ARM_TRUE='#'
12807 CPU_ARM_FALSE=
12808fi
12809
12810 if test x"${inline_optimization:0:3}" = x"ARM"; then
12811 OPUS_ARM_INLINE_ASM_TRUE=
12812 OPUS_ARM_INLINE_ASM_FALSE='#'
12813else
12814 OPUS_ARM_INLINE_ASM_TRUE='#'
12815 OPUS_ARM_INLINE_ASM_FALSE=
12816fi
12817
12818 if test x"${asm_optimization:0:3}" = x"ARM"; then
12819 OPUS_ARM_EXTERNAL_ASM_TRUE=
12820 OPUS_ARM_EXTERNAL_ASM_FALSE='#'
12821else
12822 OPUS_ARM_EXTERNAL_ASM_TRUE='#'
12823 OPUS_ARM_EXTERNAL_ASM_FALSE=
12824fi
12825
12826
12827if test x"$enable_rtcd" = x"yes"; then :
12828
12829 if test x"$rtcd_support" != x"no"; then :
12830
12831
12832$as_echo "#define OPUS_HAVE_RTCD 1" >>confdefs.h
12833
12834 OPUS_HAVE_RTCD=1
12835
12836
12837fi
12838
12839else
12840
12841 rtcd_support="disabled"
12842
12843fi
12844
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012845# Check whether --enable-assertions was given.
12846if test "${enable_assertions+set}" = set; then :
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012847 enableval=$enable_assertions;
12848else
12849 enable_assertions=no
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012850fi
12851
12852
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012853if test "$enable_assertions" = "yes"; then :
12854
12855
12856$as_echo "#define ENABLE_ASSERTIONS 1" >>confdefs.h
12857
12858
12859fi
12860
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012861# Check whether --enable-fuzzing was given.
12862if test "${enable_fuzzing+set}" = set; then :
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012863 enableval=$enable_fuzzing;
12864else
12865 enable_fuzzing=no
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012866fi
12867
12868
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012869if test "$enable_fuzzing" = "yes"; then :
12870
12871
12872$as_echo "#define FUZZING 1" >>confdefs.h
12873
12874
12875fi
12876
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012877# Check whether --enable-doc was given.
12878if test "${enable_doc+set}" = set; then :
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012879 enableval=$enable_doc;
12880else
12881 enable_doc=yes
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012882fi
12883
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012884
12885if test "$enable_doc" = "yes"; then :
12886
12887 # Extract the first word of "doxygen", so it can be a program name with args.
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012888set dummy doxygen; ac_word=$2
12889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12890$as_echo_n "checking for $ac_word... " >&6; }
12891if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
12892 $as_echo_n "(cached) " >&6
12893else
12894 if test -n "$HAVE_DOXYGEN"; then
12895 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
12896else
12897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12898for as_dir in $PATH
12899do
12900 IFS=$as_save_IFS
12901 test -z "$as_dir" && as_dir=.
12902 for ac_exec_ext in '' $ac_executable_extensions; do
12903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12904 ac_cv_prog_HAVE_DOXYGEN="yes"
12905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12906 break 2
12907 fi
12908done
12909 done
12910IFS=$as_save_IFS
12911
12912 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
12913fi
12914fi
12915HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
12916if test -n "$HAVE_DOXYGEN"; then
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
12918$as_echo "$HAVE_DOXYGEN" >&6; }
12919else
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921$as_echo "no" >&6; }
12922fi
12923
12924
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012925
12926else
12927
12928 HAVE_DOXYGEN=no
12929
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012930fi
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012931
12932 if test "$HAVE_DOXYGEN" = "yes"; then
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012933 HAVE_DOXYGEN_TRUE=
12934 HAVE_DOXYGEN_FALSE='#'
12935else
12936 HAVE_DOXYGEN_TRUE='#'
12937 HAVE_DOXYGEN_FALSE=
12938fi
12939
12940
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012941# Check whether --enable-extra-programs was given.
12942if test "${enable_extra_programs+set}" = set; then :
12943 enableval=$enable_extra_programs;
12944else
12945 enable_extra_programs=yes
12946fi
12947
12948
12949 if test "$enable_extra_programs" = "yes"; then
12950 EXTRA_PROGRAMS_TRUE=
12951 EXTRA_PROGRAMS_FALSE='#'
12952else
12953 EXTRA_PROGRAMS_TRUE='#'
12954 EXTRA_PROGRAMS_FALSE=
12955fi
12956
12957
12958
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012959saved_CFLAGS="$CFLAGS"
12960CFLAGS="$CFLAGS -fvisibility=hidden"
12961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fvisibility=hidden" >&5
12962$as_echo_n "checking if ${CC} supports -fvisibility=hidden... " >&6; }
12963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964/* end confdefs.h. */
12965char foo;
12966_ACEOF
12967if ac_fn_c_try_compile "$LINENO"; then :
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12969$as_echo "yes" >&6; }
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012970else
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012972$as_echo "no" >&6; }
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012973 CFLAGS="$saved_CFLAGS"
12974
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012975fi
12976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012977
12978CFLAGS="$CFLAGS -W"
12979
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012980warn_CFLAGS="-Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes"
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012981saved_CFLAGS="$CFLAGS"
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012982CFLAGS="$CFLAGS $warn_CFLAGS"
12983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${warn_CFLAGS}" >&5
12984$as_echo_n "checking if ${CC} supports ${warn_CFLAGS}... " >&6; }
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986/* end confdefs.h. */
12987char foo;
12988_ACEOF
12989if ac_fn_c_try_compile "$LINENO"; then :
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12991$as_echo "yes" >&6; }
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012992else
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012994$as_echo "no" >&6; }
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000012995 CFLAGS="$saved_CFLAGS"
12996
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012997fi
12998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000012999
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000013000saved_LIBS="$LIBS"
13001LIBS="$LIBS $LIBM"
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000013002for ac_func in lrintf
13003do :
13004 ac_fn_c_check_func "$LINENO" "lrintf" "ac_cv_func_lrintf"
13005if test "x$ac_cv_func_lrintf" = xyes; then :
13006 cat >>confdefs.h <<_ACEOF
13007#define HAVE_LRINTF 1
13008_ACEOF
13009
13010fi
13011done
13012
13013for ac_func in lrint
13014do :
13015 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
13016if test "x$ac_cv_func_lrint" = xyes; then :
13017 cat >>confdefs.h <<_ACEOF
13018#define HAVE_LRINT 1
13019_ACEOF
13020
13021fi
13022done
13023
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000013024LIBS="$saved_LIBS"
13025
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000013026for ac_func in __malloc_hook
13027do :
13028 ac_fn_c_check_func "$LINENO" "__malloc_hook" "ac_cv_func___malloc_hook"
13029if test "x$ac_cv_func___malloc_hook" = xyes; then :
13030 cat >>confdefs.h <<_ACEOF
13031#define HAVE___MALLOC_HOOK 1
13032_ACEOF
13033
13034fi
13035done
13036
13037
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000013038
13039
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000013040ac_config_files="$ac_config_files Makefile opus.pc opus-uninstalled.pc celt/arm/armopts.s doc/Makefile doc/Doxyfile"
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000013041
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000013042ac_config_headers="$ac_config_headers config.h"
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000013043
sergeyu@chromium.org6b6bee22013-02-28 21:17:26 +000013044
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000013045cat >confcache <<\_ACEOF
13046# This file is a shell script that caches the results of configure
13047# tests run on this system so they can be shared between configure
13048# scripts and configure runs, see configure's option --config-cache.
13049# It is not useful on other systems. If it contains results you don't
13050# want to keep, you may remove or edit it.
13051#
13052# config.status only pays attention to the cache file if you give it
13053# the --recheck option to rerun configure.
13054#
13055# `ac_cv_env_foo' variables (set or unset) will be overridden when
13056# loading this file, other *unset* `ac_cv_foo' will be assigned the
13057# following values.
13058
13059_ACEOF
13060
13061# The following way of writing the cache mishandles newlines in values,
13062# but we know of no workaround that is simple, portable, and efficient.
13063# So, we kill variables containing newlines.
13064# Ultrix sh set writes to stderr and can't be redirected directly,
13065# and sets the high bit in the cache file unless we assign to the vars.
13066(
13067 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13068 eval ac_val=\$$ac_var
13069 case $ac_val in #(
13070 *${as_nl}*)
13071 case $ac_var in #(
13072 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13073$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13074 esac
13075 case $ac_var in #(
13076 _ | IFS | as_nl) ;; #(
13077 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13078 *) { eval $ac_var=; unset $ac_var;} ;;
13079 esac ;;
13080 esac
13081 done
13082
13083 (set) 2>&1 |
13084 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13085 *${as_nl}ac_space=\ *)
13086 # `set' does not quote correctly, so add quotes: double-quote
13087 # substitution turns \\\\ into \\, and sed turns \\ into \.
13088 sed -n \
13089 "s/'/'\\\\''/g;
13090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13091 ;; #(
13092 *)
13093 # `set' quotes correctly as required by POSIX, so do not add quotes.
13094 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13095 ;;
13096 esac |
13097 sort
13098) |
13099 sed '
13100 /^ac_cv_env_/b end
13101 t clear
13102 :clear
13103 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13104 t end
13105 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13106 :end' >>confcache
13107if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13108 if test -w "$cache_file"; then
13109 if test "x$cache_file" != "x/dev/null"; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13111$as_echo "$as_me: updating cache $cache_file" >&6;}
13112 if test ! -f "$cache_file" || test -h "$cache_file"; then
13113 cat confcache >"$cache_file"
13114 else
13115 case $cache_file in #(
13116 */* | ?:*)
13117 mv -f confcache "$cache_file"$$ &&
13118 mv -f "$cache_file"$$ "$cache_file" ;; #(
13119 *)
13120 mv -f confcache "$cache_file" ;;
13121 esac
13122 fi
13123 fi
13124 else
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13126$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13127 fi
13128fi
13129rm -f confcache
13130
13131test "x$prefix" = xNONE && prefix=$ac_default_prefix
13132# Let make expand exec_prefix.
13133test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13134
13135DEFS=-DHAVE_CONFIG_H
13136
13137ac_libobjs=
13138ac_ltlibobjs=
13139U=
13140for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13141 # 1. Remove the extension, and $U if already installed.
13142 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13143 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13144 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13145 # will be set to the directory where LIBOBJS objects are built.
13146 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13147 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13148done
13149LIBOBJS=$ac_libobjs
13150
13151LTLIBOBJS=$ac_ltlibobjs
13152
13153
13154 if test -n "$EXEEXT"; then
13155 am__EXEEXT_TRUE=
13156 am__EXEEXT_FALSE='#'
13157else
13158 am__EXEEXT_TRUE='#'
13159 am__EXEEXT_FALSE=
13160fi
13161
13162if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13163 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13164Usually this means the macro was only invoked conditionally." "$LINENO" 5
13165fi
13166if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13167 as_fn_error $? "conditional \"AMDEP\" was never defined.
13168Usually this means the macro was only invoked conditionally." "$LINENO" 5
13169fi
13170if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13171 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13172Usually this means the macro was only invoked conditionally." "$LINENO" 5
13173fi
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000013174if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13175 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000013176Usually this means the macro was only invoked conditionally." "$LINENO" 5
13177fi
13178if test -z "${FIXED_POINT_TRUE}" && test -z "${FIXED_POINT_FALSE}"; then
13179 as_fn_error $? "conditional \"FIXED_POINT\" was never defined.
13180Usually this means the macro was only invoked conditionally." "$LINENO" 5
13181fi
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000013182if test -z "${DISABLE_FLOAT_API_TRUE}" && test -z "${DISABLE_FLOAT_API_FALSE}"; then
13183 as_fn_error $? "conditional \"DISABLE_FLOAT_API\" was never defined.
13184Usually this means the macro was only invoked conditionally." "$LINENO" 5
13185fi
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000013186if test -z "${CUSTOM_MODES_TRUE}" && test -z "${CUSTOM_MODES_FALSE}"; then
13187 as_fn_error $? "conditional \"CUSTOM_MODES\" was never defined.
13188Usually this means the macro was only invoked conditionally." "$LINENO" 5
13189fi
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000013190if test -z "${OPUS_ARM_INLINE_ASM_TRUE}" && test -z "${OPUS_ARM_INLINE_ASM_FALSE}"; then
13191 as_fn_error $? "conditional \"OPUS_ARM_INLINE_ASM\" was never defined.
13192Usually this means the macro was only invoked conditionally." "$LINENO" 5
13193fi
13194if test -z "${OPUS_ARM_EXTERNAL_ASM_TRUE}" && test -z "${OPUS_ARM_EXTERNAL_ASM_FALSE}"; then
13195 as_fn_error $? "conditional \"OPUS_ARM_EXTERNAL_ASM\" was never defined.
13196Usually this means the macro was only invoked conditionally." "$LINENO" 5
13197fi
13198if test -z "${CPU_ARM_TRUE}" && test -z "${CPU_ARM_FALSE}"; then
13199 as_fn_error $? "conditional \"CPU_ARM\" was never defined.
13200Usually this means the macro was only invoked conditionally." "$LINENO" 5
13201fi
13202if test -z "${OPUS_ARM_INLINE_ASM_TRUE}" && test -z "${OPUS_ARM_INLINE_ASM_FALSE}"; then
13203 as_fn_error $? "conditional \"OPUS_ARM_INLINE_ASM\" was never defined.
13204Usually this means the macro was only invoked conditionally." "$LINENO" 5
13205fi
13206if test -z "${OPUS_ARM_EXTERNAL_ASM_TRUE}" && test -z "${OPUS_ARM_EXTERNAL_ASM_FALSE}"; then
13207 as_fn_error $? "conditional \"OPUS_ARM_EXTERNAL_ASM\" was never defined.
13208Usually this means the macro was only invoked conditionally." "$LINENO" 5
13209fi
13210if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
13211 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
13212Usually this means the macro was only invoked conditionally." "$LINENO" 5
13213fi
13214if test -z "${EXTRA_PROGRAMS_TRUE}" && test -z "${EXTRA_PROGRAMS_FALSE}"; then
13215 as_fn_error $? "conditional \"EXTRA_PROGRAMS\" was never defined.
13216Usually this means the macro was only invoked conditionally." "$LINENO" 5
13217fi
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000013218
13219: "${CONFIG_STATUS=./config.status}"
13220ac_write_fail=0
13221ac_clean_files_save=$ac_clean_files
13222ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13223{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13224$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13225as_write_fail=0
13226cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13227#! $SHELL
13228# Generated by $as_me.
13229# Run this file to recreate the current configuration.
13230# Compiler output produced by configure, useful for debugging
13231# configure, is in config.log if it exists.
13232
13233debug=false
13234ac_cs_recheck=false
13235ac_cs_silent=false
13236
13237SHELL=\${CONFIG_SHELL-$SHELL}
13238export SHELL
13239_ASEOF
13240cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13241## -------------------- ##
13242## M4sh Initialization. ##
13243## -------------------- ##
13244
13245# Be more Bourne compatible
13246DUALCASE=1; export DUALCASE # for MKS sh
13247if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13248 emulate sh
13249 NULLCMD=:
13250 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13251 # is contrary to our usage. Disable this feature.
13252 alias -g '${1+"$@"}'='"$@"'
13253 setopt NO_GLOB_SUBST
13254else
13255 case `(set -o) 2>/dev/null` in #(
13256 *posix*) :
13257 set -o posix ;; #(
13258 *) :
13259 ;;
13260esac
13261fi
13262
13263
13264as_nl='
13265'
13266export as_nl
13267# Printing a long string crashes Solaris 7 /usr/bin/printf.
13268as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13269as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13270as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13271# Prefer a ksh shell builtin over an external printf program on Solaris,
13272# but without wasting forks for bash or zsh.
13273if test -z "$BASH_VERSION$ZSH_VERSION" \
13274 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13275 as_echo='print -r --'
13276 as_echo_n='print -rn --'
13277elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13278 as_echo='printf %s\n'
13279 as_echo_n='printf %s'
13280else
13281 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13282 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13283 as_echo_n='/usr/ucb/echo -n'
13284 else
13285 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13286 as_echo_n_body='eval
13287 arg=$1;
13288 case $arg in #(
13289 *"$as_nl"*)
13290 expr "X$arg" : "X\\(.*\\)$as_nl";
13291 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13292 esac;
13293 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13294 '
13295 export as_echo_n_body
13296 as_echo_n='sh -c $as_echo_n_body as_echo'
13297 fi
13298 export as_echo_body
13299 as_echo='sh -c $as_echo_body as_echo'
13300fi
13301
13302# The user is always right.
13303if test "${PATH_SEPARATOR+set}" != set; then
13304 PATH_SEPARATOR=:
13305 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13306 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13307 PATH_SEPARATOR=';'
13308 }
13309fi
13310
13311
13312# IFS
13313# We need space, tab and new line, in precisely that order. Quoting is
13314# there to prevent editors from complaining about space-tab.
13315# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13316# splitting by setting IFS to empty value.)
13317IFS=" "" $as_nl"
13318
13319# Find who we are. Look in the path if we contain no directory separator.
13320as_myself=
13321case $0 in #((
13322 *[\\/]* ) as_myself=$0 ;;
13323 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324for as_dir in $PATH
13325do
13326 IFS=$as_save_IFS
13327 test -z "$as_dir" && as_dir=.
13328 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13329 done
13330IFS=$as_save_IFS
13331
13332 ;;
13333esac
13334# We did not find ourselves, most probably we were run as `sh COMMAND'
13335# in which case we are not to be found in the path.
13336if test "x$as_myself" = x; then
13337 as_myself=$0
13338fi
13339if test ! -f "$as_myself"; then
13340 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13341 exit 1
13342fi
13343
13344# Unset variables that we do not need and which cause bugs (e.g. in
13345# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13346# suppresses any "Segmentation fault" message there. '((' could
13347# trigger a bug in pdksh 5.2.14.
13348for as_var in BASH_ENV ENV MAIL MAILPATH
13349do eval test x\${$as_var+set} = xset \
13350 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13351done
13352PS1='$ '
13353PS2='> '
13354PS4='+ '
13355
13356# NLS nuisances.
13357LC_ALL=C
13358export LC_ALL
13359LANGUAGE=C
13360export LANGUAGE
13361
13362# CDPATH.
13363(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13364
13365
13366# as_fn_error STATUS ERROR [LINENO LOG_FD]
13367# ----------------------------------------
13368# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13369# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13370# script with STATUS, using 1 if that was 0.
13371as_fn_error ()
13372{
13373 as_status=$1; test $as_status -eq 0 && as_status=1
13374 if test "$4"; then
13375 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13376 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13377 fi
13378 $as_echo "$as_me: error: $2" >&2
13379 as_fn_exit $as_status
13380} # as_fn_error
13381
13382
13383# as_fn_set_status STATUS
13384# -----------------------
13385# Set $? to STATUS, without forking.
13386as_fn_set_status ()
13387{
13388 return $1
13389} # as_fn_set_status
13390
13391# as_fn_exit STATUS
13392# -----------------
13393# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13394as_fn_exit ()
13395{
13396 set +e
13397 as_fn_set_status $1
13398 exit $1
13399} # as_fn_exit
13400
13401# as_fn_unset VAR
13402# ---------------
13403# Portably unset VAR.
13404as_fn_unset ()
13405{
13406 { eval $1=; unset $1;}
13407}
13408as_unset=as_fn_unset
13409# as_fn_append VAR VALUE
13410# ----------------------
13411# Append the text in VALUE to the end of the definition contained in VAR. Take
13412# advantage of any shell optimizations that allow amortized linear growth over
13413# repeated appends, instead of the typical quadratic growth present in naive
13414# implementations.
13415if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13416 eval 'as_fn_append ()
13417 {
13418 eval $1+=\$2
13419 }'
13420else
13421 as_fn_append ()
13422 {
13423 eval $1=\$$1\$2
13424 }
13425fi # as_fn_append
13426
13427# as_fn_arith ARG...
13428# ------------------
13429# Perform arithmetic evaluation on the ARGs, and store the result in the
13430# global $as_val. Take advantage of shells that can avoid forks. The arguments
13431# must be portable across $(()) and expr.
13432if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13433 eval 'as_fn_arith ()
13434 {
13435 as_val=$(( $* ))
13436 }'
13437else
13438 as_fn_arith ()
13439 {
13440 as_val=`expr "$@" || test $? -eq 1`
13441 }
13442fi # as_fn_arith
13443
13444
13445if expr a : '\(a\)' >/dev/null 2>&1 &&
13446 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13447 as_expr=expr
13448else
13449 as_expr=false
13450fi
13451
13452if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13453 as_basename=basename
13454else
13455 as_basename=false
13456fi
13457
13458if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13459 as_dirname=dirname
13460else
13461 as_dirname=false
13462fi
13463
13464as_me=`$as_basename -- "$0" ||
13465$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13466 X"$0" : 'X\(//\)$' \| \
13467 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13468$as_echo X/"$0" |
13469 sed '/^.*\/\([^/][^/]*\)\/*$/{
13470 s//\1/
13471 q
13472 }
13473 /^X\/\(\/\/\)$/{
13474 s//\1/
13475 q
13476 }
13477 /^X\/\(\/\).*/{
13478 s//\1/
13479 q
13480 }
13481 s/.*/./; q'`
13482
13483# Avoid depending upon Character Ranges.
13484as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13485as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13486as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13487as_cr_digits='0123456789'
13488as_cr_alnum=$as_cr_Letters$as_cr_digits
13489
13490ECHO_C= ECHO_N= ECHO_T=
13491case `echo -n x` in #(((((
13492-n*)
13493 case `echo 'xy\c'` in
13494 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13495 xy) ECHO_C='\c';;
13496 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13497 ECHO_T=' ';;
13498 esac;;
13499*)
13500 ECHO_N='-n';;
13501esac
13502
13503rm -f conf$$ conf$$.exe conf$$.file
13504if test -d conf$$.dir; then
13505 rm -f conf$$.dir/conf$$.file
13506else
13507 rm -f conf$$.dir
13508 mkdir conf$$.dir 2>/dev/null
13509fi
13510if (echo >conf$$.file) 2>/dev/null; then
13511 if ln -s conf$$.file conf$$ 2>/dev/null; then
13512 as_ln_s='ln -s'
13513 # ... but there are two gotchas:
13514 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13515 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13516 # In both cases, we have to default to `cp -p'.
13517 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13518 as_ln_s='cp -p'
13519 elif ln conf$$.file conf$$ 2>/dev/null; then
13520 as_ln_s=ln
13521 else
13522 as_ln_s='cp -p'
13523 fi
13524else
13525 as_ln_s='cp -p'
13526fi
13527rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13528rmdir conf$$.dir 2>/dev/null
13529
13530
13531# as_fn_mkdir_p
13532# -------------
13533# Create "$as_dir" as a directory, including parents if necessary.
13534as_fn_mkdir_p ()
13535{
13536
13537 case $as_dir in #(
13538 -*) as_dir=./$as_dir;;
13539 esac
13540 test -d "$as_dir" || eval $as_mkdir_p || {
13541 as_dirs=
13542 while :; do
13543 case $as_dir in #(
13544 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13545 *) as_qdir=$as_dir;;
13546 esac
13547 as_dirs="'$as_qdir' $as_dirs"
13548 as_dir=`$as_dirname -- "$as_dir" ||
13549$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13550 X"$as_dir" : 'X\(//\)[^/]' \| \
13551 X"$as_dir" : 'X\(//\)$' \| \
13552 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13553$as_echo X"$as_dir" |
13554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13555 s//\1/
13556 q
13557 }
13558 /^X\(\/\/\)[^/].*/{
13559 s//\1/
13560 q
13561 }
13562 /^X\(\/\/\)$/{
13563 s//\1/
13564 q
13565 }
13566 /^X\(\/\).*/{
13567 s//\1/
13568 q
13569 }
13570 s/.*/./; q'`
13571 test -d "$as_dir" && break
13572 done
13573 test -z "$as_dirs" || eval "mkdir $as_dirs"
13574 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13575
13576
13577} # as_fn_mkdir_p
13578if mkdir -p . 2>/dev/null; then
13579 as_mkdir_p='mkdir -p "$as_dir"'
13580else
13581 test -d ./-p && rmdir ./-p
13582 as_mkdir_p=false
13583fi
13584
13585if test -x / >/dev/null 2>&1; then
13586 as_test_x='test -x'
13587else
13588 if ls -dL / >/dev/null 2>&1; then
13589 as_ls_L_option=L
13590 else
13591 as_ls_L_option=
13592 fi
13593 as_test_x='
13594 eval sh -c '\''
13595 if test -d "$1"; then
13596 test -d "$1/.";
13597 else
13598 case $1 in #(
13599 -*)set "./$1";;
13600 esac;
13601 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13602 ???[sx]*):;;*)false;;esac;fi
13603 '\'' sh
13604 '
13605fi
13606as_executable_p=$as_test_x
13607
13608# Sed expression to map a string onto a valid CPP name.
13609as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13610
13611# Sed expression to map a string onto a valid variable name.
13612as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13613
13614
13615exec 6>&1
13616## ----------------------------------- ##
13617## Main body of $CONFIG_STATUS script. ##
13618## ----------------------------------- ##
13619_ASEOF
13620test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13621
13622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13623# Save the log message, to keep $0 and so on meaningful, and to
13624# report actual input values of CONFIG_FILES etc. instead of their
13625# values after options handling.
13626ac_log="
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000013627This file was extended by opus $as_me 1.1, which was
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000013628generated by GNU Autoconf 2.68. Invocation command line was
13629
13630 CONFIG_FILES = $CONFIG_FILES
13631 CONFIG_HEADERS = $CONFIG_HEADERS
13632 CONFIG_LINKS = $CONFIG_LINKS
13633 CONFIG_COMMANDS = $CONFIG_COMMANDS
13634 $ $0 $@
13635
13636on `(hostname || uname -n) 2>/dev/null | sed 1q`
13637"
13638
13639_ACEOF
13640
13641case $ac_config_files in *"
13642"*) set x $ac_config_files; shift; ac_config_files=$*;;
13643esac
13644
13645case $ac_config_headers in *"
13646"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13647esac
13648
13649
13650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13651# Files that config.status was made for.
13652config_files="$ac_config_files"
13653config_headers="$ac_config_headers"
13654config_commands="$ac_config_commands"
13655
13656_ACEOF
13657
13658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13659ac_cs_usage="\
13660\`$as_me' instantiates files and other configuration actions
13661from templates according to the current configuration. Unless the files
13662and actions are specified as TAGs, all are instantiated by default.
13663
13664Usage: $0 [OPTION]... [TAG]...
13665
13666 -h, --help print this help, then exit
13667 -V, --version print version number and configuration settings, then exit
13668 --config print configuration, then exit
13669 -q, --quiet, --silent
13670 do not print progress messages
13671 -d, --debug don't remove temporary files
13672 --recheck update $as_me by reconfiguring in the same conditions
13673 --file=FILE[:TEMPLATE]
13674 instantiate the configuration file FILE
13675 --header=FILE[:TEMPLATE]
13676 instantiate the configuration header FILE
13677
13678Configuration files:
13679$config_files
13680
13681Configuration headers:
13682$config_headers
13683
13684Configuration commands:
13685$config_commands
13686
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000013687Report bugs to <opus@xiph.org>."
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000013688
13689_ACEOF
13690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13691ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13692ac_cs_version="\\
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000013693opus config.status 1.1
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000013694configured by $0, generated by GNU Autoconf 2.68,
13695 with options \\"\$ac_cs_config\\"
13696
13697Copyright (C) 2010 Free Software Foundation, Inc.
13698This config.status script is free software; the Free Software Foundation
13699gives unlimited permission to copy, distribute and modify it."
13700
13701ac_pwd='$ac_pwd'
13702srcdir='$srcdir'
13703INSTALL='$INSTALL'
13704MKDIR_P='$MKDIR_P'
13705AWK='$AWK'
13706test -n "\$AWK" || AWK=awk
13707_ACEOF
13708
13709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13710# The default lists apply if the user does not specify any file.
13711ac_need_defaults=:
13712while test $# != 0
13713do
13714 case $1 in
13715 --*=?*)
13716 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13717 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13718 ac_shift=:
13719 ;;
13720 --*=)
13721 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13722 ac_optarg=
13723 ac_shift=:
13724 ;;
13725 *)
13726 ac_option=$1
13727 ac_optarg=$2
13728 ac_shift=shift
13729 ;;
13730 esac
13731
13732 case $ac_option in
13733 # Handling of the options.
13734 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13735 ac_cs_recheck=: ;;
13736 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13737 $as_echo "$ac_cs_version"; exit ;;
13738 --config | --confi | --conf | --con | --co | --c )
13739 $as_echo "$ac_cs_config"; exit ;;
13740 --debug | --debu | --deb | --de | --d | -d )
13741 debug=: ;;
13742 --file | --fil | --fi | --f )
13743 $ac_shift
13744 case $ac_optarg in
13745 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13746 '') as_fn_error $? "missing file argument" ;;
13747 esac
13748 as_fn_append CONFIG_FILES " '$ac_optarg'"
13749 ac_need_defaults=false;;
13750 --header | --heade | --head | --hea )
13751 $ac_shift
13752 case $ac_optarg in
13753 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13754 esac
13755 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13756 ac_need_defaults=false;;
13757 --he | --h)
13758 # Conflict between --help and --header
13759 as_fn_error $? "ambiguous option: \`$1'
13760Try \`$0 --help' for more information.";;
13761 --help | --hel | -h )
13762 $as_echo "$ac_cs_usage"; exit ;;
13763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13764 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13765 ac_cs_silent=: ;;
13766
13767 # This is an error.
13768 -*) as_fn_error $? "unrecognized option: \`$1'
13769Try \`$0 --help' for more information." ;;
13770
13771 *) as_fn_append ac_config_targets " $1"
13772 ac_need_defaults=false ;;
13773
13774 esac
13775 shift
13776done
13777
13778ac_configure_extra_args=
13779
13780if $ac_cs_silent; then
13781 exec 6>/dev/null
13782 ac_configure_extra_args="$ac_configure_extra_args --silent"
13783fi
13784
13785_ACEOF
13786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13787if \$ac_cs_recheck; then
13788 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13789 shift
13790 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13791 CONFIG_SHELL='$SHELL'
13792 export CONFIG_SHELL
13793 exec "\$@"
13794fi
13795
13796_ACEOF
13797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13798exec 5>>config.log
13799{
13800 echo
13801 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13802## Running $as_me. ##
13803_ASBOX
13804 $as_echo "$ac_log"
13805} >&5
13806
13807_ACEOF
13808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13809#
13810# INIT-COMMANDS
13811#
13812AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13813
13814
13815# The HP-UX ksh and POSIX shell print the target directory to stdout
13816# if CDPATH is set.
13817(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13818
13819sed_quote_subst='$sed_quote_subst'
13820double_quote_subst='$double_quote_subst'
13821delay_variable_subst='$delay_variable_subst'
13822macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13823macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13824enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13825enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13826pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13827enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13828SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13829ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13830PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13831host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13832host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13833host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13834build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13835build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13836build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13837SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13838Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13839GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13840EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13841FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13842LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13843NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13844LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13845max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13846ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13847exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13848lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13849lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13850lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13851lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13852lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13853reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13854reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13855OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13856deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13857file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13858file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13859want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13860DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13861sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13862AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13863AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13864archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13865STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13866RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13867old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13868old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13869old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13870lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13871CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13872CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13873compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13874GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13875lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13876lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13877lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13878lt_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"`'
13879nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13880lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13881objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13882MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13883lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13884lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13885lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13886lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13887lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13888need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13889MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13890DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13891NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13892LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13893OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13894OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13895libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13896shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13897extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13898archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13899enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13900export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13901whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13902compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13903old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13904old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13905archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13906archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13907module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13908module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13909with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13910allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13911no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13912hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13913hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13914hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13915hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13916hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13917hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13918hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13919inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13920link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13921always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13922export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13923exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13924include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13925prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13926postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13927file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13928variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13929need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13930need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13931version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13932runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13933shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13934shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13935libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13936library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13937soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13938install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13939postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13940postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13941finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13942finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13943hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13944sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13945sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13946hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13947enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13948enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13949enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13950old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13951striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13952
13953LTCC='$LTCC'
13954LTCFLAGS='$LTCFLAGS'
13955compiler='$compiler_DEFAULT'
13956
13957# A function that is used when there is no print builtin or printf.
13958func_fallback_echo ()
13959{
13960 eval 'cat <<_LTECHO_EOF
13961\$1
13962_LTECHO_EOF'
13963}
13964
13965# Quote evaled strings.
13966for var in SHELL \
13967ECHO \
13968PATH_SEPARATOR \
13969SED \
13970GREP \
13971EGREP \
13972FGREP \
13973LD \
13974NM \
13975LN_S \
13976lt_SP2NL \
13977lt_NL2SP \
13978reload_flag \
13979OBJDUMP \
13980deplibs_check_method \
13981file_magic_cmd \
13982file_magic_glob \
13983want_nocaseglob \
13984DLLTOOL \
13985sharedlib_from_linklib_cmd \
13986AR \
13987AR_FLAGS \
13988archiver_list_spec \
13989STRIP \
13990RANLIB \
13991CC \
13992CFLAGS \
13993compiler \
13994lt_cv_sys_global_symbol_pipe \
13995lt_cv_sys_global_symbol_to_cdecl \
13996lt_cv_sys_global_symbol_to_c_name_address \
13997lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13998nm_file_list_spec \
13999lt_prog_compiler_no_builtin_flag \
14000lt_prog_compiler_pic \
14001lt_prog_compiler_wl \
14002lt_prog_compiler_static \
14003lt_cv_prog_compiler_c_o \
14004need_locks \
14005MANIFEST_TOOL \
14006DSYMUTIL \
14007NMEDIT \
14008LIPO \
14009OTOOL \
14010OTOOL64 \
14011shrext_cmds \
14012export_dynamic_flag_spec \
14013whole_archive_flag_spec \
14014compiler_needs_object \
14015with_gnu_ld \
14016allow_undefined_flag \
14017no_undefined_flag \
14018hardcode_libdir_flag_spec \
14019hardcode_libdir_separator \
14020exclude_expsyms \
14021include_expsyms \
14022file_list_spec \
14023variables_saved_for_relink \
14024libname_spec \
14025library_names_spec \
14026soname_spec \
14027install_override_mode \
14028finish_eval \
14029old_striplib \
14030striplib; do
14031 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14032 *[\\\\\\\`\\"\\\$]*)
14033 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14034 ;;
14035 *)
14036 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14037 ;;
14038 esac
14039done
14040
14041# Double-quote double-evaled strings.
14042for var in reload_cmds \
14043old_postinstall_cmds \
14044old_postuninstall_cmds \
14045old_archive_cmds \
14046extract_expsyms_cmds \
14047old_archive_from_new_cmds \
14048old_archive_from_expsyms_cmds \
14049archive_cmds \
14050archive_expsym_cmds \
14051module_cmds \
14052module_expsym_cmds \
14053export_symbols_cmds \
14054prelink_cmds \
14055postlink_cmds \
14056postinstall_cmds \
14057postuninstall_cmds \
14058finish_cmds \
14059sys_lib_search_path_spec \
14060sys_lib_dlsearch_path_spec; do
14061 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14062 *[\\\\\\\`\\"\\\$]*)
14063 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14064 ;;
14065 *)
14066 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14067 ;;
14068 esac
14069done
14070
14071ac_aux_dir='$ac_aux_dir'
14072xsi_shell='$xsi_shell'
14073lt_shell_append='$lt_shell_append'
14074
14075# See if we are running on zsh, and set the options which allow our
14076# commands through without removal of \ escapes INIT.
14077if test -n "\${ZSH_VERSION+set}" ; then
14078 setopt NO_GLOB_SUBST
14079fi
14080
14081
14082 PACKAGE='$PACKAGE'
14083 VERSION='$VERSION'
14084 TIMESTAMP='$TIMESTAMP'
14085 RM='$RM'
14086 ofile='$ofile'
14087
14088
14089
14090
14091_ACEOF
14092
14093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14094
14095# Handling of arguments.
14096for ac_config_target in $ac_config_targets
14097do
14098 case $ac_config_target in
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000014099 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14100 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14101 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14102 "opus.pc") CONFIG_FILES="$CONFIG_FILES opus.pc" ;;
14103 "opus-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opus-uninstalled.pc" ;;
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000014104 "celt/arm/armopts.s") CONFIG_FILES="$CONFIG_FILES celt/arm/armopts.s" ;;
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000014105 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14106 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000014107 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000014108
14109 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14110 esac
14111done
14112
14113
14114# If the user did not use the arguments to specify the items to instantiate,
14115# then the envvar interface is used. Set only those that are not.
14116# We use the long form for the default assignment because of an extremely
14117# bizarre bug on SunOS 4.1.3.
14118if $ac_need_defaults; then
14119 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14120 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14121 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14122fi
14123
14124# Have a temporary directory for convenience. Make it in the build tree
14125# simply because there is no reason against having it here, and in addition,
14126# creating and moving files from /tmp can sometimes cause problems.
14127# Hook for its removal unless debugging.
14128# Note that there is a small window in which the directory will not be cleaned:
14129# after its creation but before its name has been assigned to `$tmp'.
14130$debug ||
14131{
14132 tmp= ac_tmp=
14133 trap 'exit_status=$?
14134 : "${ac_tmp:=$tmp}"
14135 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14136' 0
14137 trap 'as_fn_exit 1' 1 2 13 15
14138}
14139# Create a (secure) tmp directory for tmp files.
14140
14141{
14142 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14143 test -d "$tmp"
14144} ||
14145{
14146 tmp=./conf$$-$RANDOM
14147 (umask 077 && mkdir "$tmp")
14148} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14149ac_tmp=$tmp
14150
14151# Set up the scripts for CONFIG_FILES section.
14152# No need to generate them if there are no CONFIG_FILES.
14153# This happens for instance with `./config.status config.h'.
14154if test -n "$CONFIG_FILES"; then
14155
14156
14157ac_cr=`echo X | tr X '\015'`
14158# On cygwin, bash can eat \r inside `` if the user requested igncr.
14159# But we know of no other shell where ac_cr would be empty at this
14160# point, so we can use a bashism as a fallback.
14161if test "x$ac_cr" = x; then
14162 eval ac_cr=\$\'\\r\'
14163fi
14164ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14165if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14166 ac_cs_awk_cr='\\r'
14167else
14168 ac_cs_awk_cr=$ac_cr
14169fi
14170
14171echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14172_ACEOF
14173
14174
14175{
14176 echo "cat >conf$$subs.awk <<_ACEOF" &&
14177 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14178 echo "_ACEOF"
14179} >conf$$subs.sh ||
14180 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14181ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14182ac_delim='%!_!# '
14183for ac_last_try in false false false false false :; do
14184 . ./conf$$subs.sh ||
14185 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14186
14187 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14188 if test $ac_delim_n = $ac_delim_num; then
14189 break
14190 elif $ac_last_try; then
14191 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14192 else
14193 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14194 fi
14195done
14196rm -f conf$$subs.sh
14197
14198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14199cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14200_ACEOF
14201sed -n '
14202h
14203s/^/S["/; s/!.*/"]=/
14204p
14205g
14206s/^[^!]*!//
14207:repl
14208t repl
14209s/'"$ac_delim"'$//
14210t delim
14211:nl
14212h
14213s/\(.\{148\}\)..*/\1/
14214t more1
14215s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14216p
14217n
14218b repl
14219:more1
14220s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14221p
14222g
14223s/.\{148\}//
14224t nl
14225:delim
14226h
14227s/\(.\{148\}\)..*/\1/
14228t more2
14229s/["\\]/\\&/g; s/^/"/; s/$/"/
14230p
14231b
14232:more2
14233s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14234p
14235g
14236s/.\{148\}//
14237t delim
14238' <conf$$subs.awk | sed '
14239/^[^""]/{
14240 N
14241 s/\n//
14242}
14243' >>$CONFIG_STATUS || ac_write_fail=1
14244rm -f conf$$subs.awk
14245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14246_ACAWK
14247cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14248 for (key in S) S_is_set[key] = 1
14249 FS = ""
14250
14251}
14252{
14253 line = $ 0
14254 nfields = split(line, field, "@")
14255 substed = 0
14256 len = length(field[1])
14257 for (i = 2; i < nfields; i++) {
14258 key = field[i]
14259 keylen = length(key)
14260 if (S_is_set[key]) {
14261 value = S[key]
14262 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14263 len += length(value) + length(field[++i])
14264 substed = 1
14265 } else
14266 len += 1 + keylen
14267 }
14268
14269 print line
14270}
14271
14272_ACAWK
14273_ACEOF
14274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14275if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14276 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14277else
14278 cat
14279fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14280 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14281_ACEOF
14282
14283# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14284# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14285# trailing colons and then remove the whole line if VPATH becomes empty
14286# (actually we leave an empty line to preserve line numbers).
14287if test "x$srcdir" = x.; then
14288 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14289h
14290s///
14291s/^/:/
14292s/[ ]*$/:/
14293s/:\$(srcdir):/:/g
14294s/:\${srcdir}:/:/g
14295s/:@srcdir@:/:/g
14296s/^:*//
14297s/:*$//
14298x
14299s/\(=[ ]*\).*/\1/
14300G
14301s/\n//
14302s/^[^=]*=[ ]*$//
14303}'
14304fi
14305
14306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14307fi # test -n "$CONFIG_FILES"
14308
14309# Set up the scripts for CONFIG_HEADERS section.
14310# No need to generate them if there are no CONFIG_HEADERS.
14311# This happens for instance with `./config.status Makefile'.
14312if test -n "$CONFIG_HEADERS"; then
14313cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14314BEGIN {
14315_ACEOF
14316
14317# Transform confdefs.h into an awk script `defines.awk', embedded as
14318# here-document in config.status, that substitutes the proper values into
14319# config.h.in to produce config.h.
14320
14321# Create a delimiter string that does not exist in confdefs.h, to ease
14322# handling of long lines.
14323ac_delim='%!_!# '
14324for ac_last_try in false false :; do
14325 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14326 if test -z "$ac_tt"; then
14327 break
14328 elif $ac_last_try; then
14329 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14330 else
14331 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14332 fi
14333done
14334
14335# For the awk script, D is an array of macro values keyed by name,
14336# likewise P contains macro parameters if any. Preserve backslash
14337# newline sequences.
14338
14339ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14340sed -n '
14341s/.\{148\}/&'"$ac_delim"'/g
14342t rset
14343:rset
14344s/^[ ]*#[ ]*define[ ][ ]*/ /
14345t def
14346d
14347:def
14348s/\\$//
14349t bsnl
14350s/["\\]/\\&/g
14351s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14352D["\1"]=" \3"/p
14353s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14354d
14355:bsnl
14356s/["\\]/\\&/g
14357s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14358D["\1"]=" \3\\\\\\n"\\/p
14359t cont
14360s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14361t cont
14362d
14363:cont
14364n
14365s/.\{148\}/&'"$ac_delim"'/g
14366t clear
14367:clear
14368s/\\$//
14369t bsnlc
14370s/["\\]/\\&/g; s/^/"/; s/$/"/p
14371d
14372:bsnlc
14373s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14374b cont
14375' <confdefs.h | sed '
14376s/'"$ac_delim"'/"\\\
14377"/g' >>$CONFIG_STATUS || ac_write_fail=1
14378
14379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14380 for (key in D) D_is_set[key] = 1
14381 FS = ""
14382}
14383/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14384 line = \$ 0
14385 split(line, arg, " ")
14386 if (arg[1] == "#") {
14387 defundef = arg[2]
14388 mac1 = arg[3]
14389 } else {
14390 defundef = substr(arg[1], 2)
14391 mac1 = arg[2]
14392 }
14393 split(mac1, mac2, "(") #)
14394 macro = mac2[1]
14395 prefix = substr(line, 1, index(line, defundef) - 1)
14396 if (D_is_set[macro]) {
14397 # Preserve the white space surrounding the "#".
14398 print prefix "define", macro P[macro] D[macro]
14399 next
14400 } else {
14401 # Replace #undef with comments. This is necessary, for example,
14402 # in the case of _POSIX_SOURCE, which is predefined and required
14403 # on some systems where configure will not decide to define it.
14404 if (defundef == "undef") {
14405 print "/*", prefix defundef, macro, "*/"
14406 next
14407 }
14408 }
14409}
14410{ print }
14411_ACAWK
14412_ACEOF
14413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14414 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14415fi # test -n "$CONFIG_HEADERS"
14416
14417
14418eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14419shift
14420for ac_tag
14421do
14422 case $ac_tag in
14423 :[FHLC]) ac_mode=$ac_tag; continue;;
14424 esac
14425 case $ac_mode$ac_tag in
14426 :[FHL]*:*);;
14427 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14428 :[FH]-) ac_tag=-:-;;
14429 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14430 esac
14431 ac_save_IFS=$IFS
14432 IFS=:
14433 set x $ac_tag
14434 IFS=$ac_save_IFS
14435 shift
14436 ac_file=$1
14437 shift
14438
14439 case $ac_mode in
14440 :L) ac_source=$1;;
14441 :[FH])
14442 ac_file_inputs=
14443 for ac_f
14444 do
14445 case $ac_f in
14446 -) ac_f="$ac_tmp/stdin";;
14447 *) # Look for the file first in the build tree, then in the source tree
14448 # (if the path is not absolute). The absolute path cannot be DOS-style,
14449 # because $ac_f cannot contain `:'.
14450 test -f "$ac_f" ||
14451 case $ac_f in
14452 [\\/$]*) false;;
14453 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14454 esac ||
14455 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14456 esac
14457 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14458 as_fn_append ac_file_inputs " '$ac_f'"
14459 done
14460
14461 # Let's still pretend it is `configure' which instantiates (i.e., don't
14462 # use $as_me), people would be surprised to read:
14463 # /* config.h. Generated by config.status. */
14464 configure_input='Generated from '`
14465 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14466 `' by configure.'
14467 if test x"$ac_file" != x-; then
14468 configure_input="$ac_file. $configure_input"
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14470$as_echo "$as_me: creating $ac_file" >&6;}
14471 fi
14472 # Neutralize special characters interpreted by sed in replacement strings.
14473 case $configure_input in #(
14474 *\&* | *\|* | *\\* )
14475 ac_sed_conf_input=`$as_echo "$configure_input" |
14476 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14477 *) ac_sed_conf_input=$configure_input;;
14478 esac
14479
14480 case $ac_tag in
14481 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14482 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14483 esac
14484 ;;
14485 esac
14486
14487 ac_dir=`$as_dirname -- "$ac_file" ||
14488$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14489 X"$ac_file" : 'X\(//\)[^/]' \| \
14490 X"$ac_file" : 'X\(//\)$' \| \
14491 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14492$as_echo X"$ac_file" |
14493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14494 s//\1/
14495 q
14496 }
14497 /^X\(\/\/\)[^/].*/{
14498 s//\1/
14499 q
14500 }
14501 /^X\(\/\/\)$/{
14502 s//\1/
14503 q
14504 }
14505 /^X\(\/\).*/{
14506 s//\1/
14507 q
14508 }
14509 s/.*/./; q'`
14510 as_dir="$ac_dir"; as_fn_mkdir_p
14511 ac_builddir=.
14512
14513case "$ac_dir" in
14514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14515*)
14516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14517 # A ".." for each directory in $ac_dir_suffix.
14518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14519 case $ac_top_builddir_sub in
14520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14522 esac ;;
14523esac
14524ac_abs_top_builddir=$ac_pwd
14525ac_abs_builddir=$ac_pwd$ac_dir_suffix
14526# for backward compatibility:
14527ac_top_builddir=$ac_top_build_prefix
14528
14529case $srcdir in
14530 .) # We are building in place.
14531 ac_srcdir=.
14532 ac_top_srcdir=$ac_top_builddir_sub
14533 ac_abs_top_srcdir=$ac_pwd ;;
14534 [\\/]* | ?:[\\/]* ) # Absolute name.
14535 ac_srcdir=$srcdir$ac_dir_suffix;
14536 ac_top_srcdir=$srcdir
14537 ac_abs_top_srcdir=$srcdir ;;
14538 *) # Relative name.
14539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14540 ac_top_srcdir=$ac_top_build_prefix$srcdir
14541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14542esac
14543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14544
14545
14546 case $ac_mode in
14547 :F)
14548 #
14549 # CONFIG_FILE
14550 #
14551
14552 case $INSTALL in
14553 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14554 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14555 esac
14556 ac_MKDIR_P=$MKDIR_P
14557 case $MKDIR_P in
14558 [\\/$]* | ?:[\\/]* ) ;;
14559 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14560 esac
14561_ACEOF
14562
14563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14564# If the template does not know about datarootdir, expand it.
14565# FIXME: This hack should be removed a few years after 2.60.
14566ac_datarootdir_hack=; ac_datarootdir_seen=
14567ac_sed_dataroot='
14568/datarootdir/ {
14569 p
14570 q
14571}
14572/@datadir@/p
14573/@docdir@/p
14574/@infodir@/p
14575/@localedir@/p
14576/@mandir@/p'
14577case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14578*datarootdir*) ac_datarootdir_seen=yes;;
14579*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14581$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14582_ACEOF
14583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14584 ac_datarootdir_hack='
14585 s&@datadir@&$datadir&g
14586 s&@docdir@&$docdir&g
14587 s&@infodir@&$infodir&g
14588 s&@localedir@&$localedir&g
14589 s&@mandir@&$mandir&g
14590 s&\\\${datarootdir}&$datarootdir&g' ;;
14591esac
14592_ACEOF
14593
14594# Neutralize VPATH when `$srcdir' = `.'.
14595# Shell code in configure.ac might set extrasub.
14596# FIXME: do we really want to maintain this feature?
14597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14598ac_sed_extra="$ac_vpsub
14599$extrasub
14600_ACEOF
14601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14602:t
14603/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14604s|@configure_input@|$ac_sed_conf_input|;t t
14605s&@top_builddir@&$ac_top_builddir_sub&;t t
14606s&@top_build_prefix@&$ac_top_build_prefix&;t t
14607s&@srcdir@&$ac_srcdir&;t t
14608s&@abs_srcdir@&$ac_abs_srcdir&;t t
14609s&@top_srcdir@&$ac_top_srcdir&;t t
14610s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14611s&@builddir@&$ac_builddir&;t t
14612s&@abs_builddir@&$ac_abs_builddir&;t t
14613s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14614s&@INSTALL@&$ac_INSTALL&;t t
14615s&@MKDIR_P@&$ac_MKDIR_P&;t t
14616$ac_datarootdir_hack
14617"
14618eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14619 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14620
14621test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14622 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14623 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14624 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14626which seems to be undefined. Please make sure it is defined" >&5
14627$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14628which seems to be undefined. Please make sure it is defined" >&2;}
14629
14630 rm -f "$ac_tmp/stdin"
14631 case $ac_file in
14632 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14633 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14634 esac \
14635 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14636 ;;
14637 :H)
14638 #
14639 # CONFIG_HEADER
14640 #
14641 if test x"$ac_file" != x-; then
14642 {
14643 $as_echo "/* $configure_input */" \
14644 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14645 } >"$ac_tmp/config.h" \
14646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14647 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14649$as_echo "$as_me: $ac_file is unchanged" >&6;}
14650 else
14651 rm -f "$ac_file"
14652 mv "$ac_tmp/config.h" "$ac_file" \
14653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14654 fi
14655 else
14656 $as_echo "/* $configure_input */" \
14657 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14658 || as_fn_error $? "could not create -" "$LINENO" 5
14659 fi
14660# Compute "$ac_file"'s index in $config_headers.
14661_am_arg="$ac_file"
14662_am_stamp_count=1
14663for _am_header in $config_headers :; do
14664 case $_am_header in
14665 $_am_arg | $_am_arg:* )
14666 break ;;
14667 * )
14668 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14669 esac
14670done
14671echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14672$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14673 X"$_am_arg" : 'X\(//\)[^/]' \| \
14674 X"$_am_arg" : 'X\(//\)$' \| \
14675 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14676$as_echo X"$_am_arg" |
14677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14678 s//\1/
14679 q
14680 }
14681 /^X\(\/\/\)[^/].*/{
14682 s//\1/
14683 q
14684 }
14685 /^X\(\/\/\)$/{
14686 s//\1/
14687 q
14688 }
14689 /^X\(\/\).*/{
14690 s//\1/
14691 q
14692 }
14693 s/.*/./; q'`/stamp-h$_am_stamp_count
14694 ;;
14695
14696 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14697$as_echo "$as_me: executing $ac_file commands" >&6;}
14698 ;;
14699 esac
14700
14701
14702 case $ac_file$ac_mode in
14703 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14704 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14705 # are listed without --file. Let's play safe and only enable the eval
14706 # if we detect the quoting.
14707 case $CONFIG_FILES in
14708 *\'*) eval set x "$CONFIG_FILES" ;;
14709 *) set x $CONFIG_FILES ;;
14710 esac
14711 shift
14712 for mf
14713 do
14714 # Strip MF so we end up with the name of the file.
14715 mf=`echo "$mf" | sed -e 's/:.*$//'`
14716 # Check whether this is an Automake generated Makefile or not.
14717 # We used to match only the files named `Makefile.in', but
14718 # some people rename them; so instead we look at the file content.
14719 # Grep'ing the first line is not enough: some people post-process
14720 # each Makefile.in and add a new line on top of each file to say so.
14721 # Grep'ing the whole file is not good either: AIX grep has a line
14722 # limit of 2048, but all sed's we know have understand at least 4000.
14723 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14724 dirpart=`$as_dirname -- "$mf" ||
14725$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14726 X"$mf" : 'X\(//\)[^/]' \| \
14727 X"$mf" : 'X\(//\)$' \| \
14728 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14729$as_echo X"$mf" |
14730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14731 s//\1/
14732 q
14733 }
14734 /^X\(\/\/\)[^/].*/{
14735 s//\1/
14736 q
14737 }
14738 /^X\(\/\/\)$/{
14739 s//\1/
14740 q
14741 }
14742 /^X\(\/\).*/{
14743 s//\1/
14744 q
14745 }
14746 s/.*/./; q'`
14747 else
14748 continue
14749 fi
14750 # Extract the definition of DEPDIR, am__include, and am__quote
14751 # from the Makefile without running `make'.
14752 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14753 test -z "$DEPDIR" && continue
14754 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14755 test -z "am__include" && continue
14756 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14757 # When using ansi2knr, U may be empty or an underscore; expand it
14758 U=`sed -n 's/^U = //p' < "$mf"`
14759 # Find all dependency output files, they are included files with
14760 # $(DEPDIR) in their names. We invoke sed twice because it is the
14761 # simplest approach to changing $(DEPDIR) to its actual value in the
14762 # expansion.
14763 for file in `sed -n "
14764 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14765 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14766 # Make sure the directory exists.
14767 test -f "$dirpart/$file" && continue
14768 fdir=`$as_dirname -- "$file" ||
14769$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14770 X"$file" : 'X\(//\)[^/]' \| \
14771 X"$file" : 'X\(//\)$' \| \
14772 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14773$as_echo X"$file" |
14774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14775 s//\1/
14776 q
14777 }
14778 /^X\(\/\/\)[^/].*/{
14779 s//\1/
14780 q
14781 }
14782 /^X\(\/\/\)$/{
14783 s//\1/
14784 q
14785 }
14786 /^X\(\/\).*/{
14787 s//\1/
14788 q
14789 }
14790 s/.*/./; q'`
14791 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14792 # echo "creating $dirpart/$file"
14793 echo '# dummy' > "$dirpart/$file"
14794 done
14795 done
14796}
14797 ;;
14798 "libtool":C)
14799
14800 # See if we are running on zsh, and set the options which allow our
14801 # commands through without removal of \ escapes.
14802 if test -n "${ZSH_VERSION+set}" ; then
14803 setopt NO_GLOB_SUBST
14804 fi
14805
14806 cfgfile="${ofile}T"
14807 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14808 $RM "$cfgfile"
14809
14810 cat <<_LT_EOF >> "$cfgfile"
14811#! $SHELL
14812
14813# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14814# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14815# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14816# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14817#
14818# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14819# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14820# Foundation, Inc.
14821# Written by Gordon Matzigkeit, 1996
14822#
14823# This file is part of GNU Libtool.
14824#
14825# GNU Libtool is free software; you can redistribute it and/or
14826# modify it under the terms of the GNU General Public License as
14827# published by the Free Software Foundation; either version 2 of
14828# the License, or (at your option) any later version.
14829#
14830# As a special exception to the GNU General Public License,
14831# if you distribute this file as part of a program or library that
14832# is built using GNU Libtool, you may include this file under the
14833# same distribution terms that you use for the rest of that program.
14834#
14835# GNU Libtool is distributed in the hope that it will be useful,
14836# but WITHOUT ANY WARRANTY; without even the implied warranty of
14837# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14838# GNU General Public License for more details.
14839#
14840# You should have received a copy of the GNU General Public License
14841# along with GNU Libtool; see the file COPYING. If not, a copy
14842# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14843# obtained by writing to the Free Software Foundation, Inc.,
14844# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14845
14846
14847# The names of the tagged configurations supported by this script.
14848available_tags=""
14849
14850# ### BEGIN LIBTOOL CONFIG
14851
14852# Which release of libtool.m4 was used?
14853macro_version=$macro_version
14854macro_revision=$macro_revision
14855
14856# Whether or not to build shared libraries.
14857build_libtool_libs=$enable_shared
14858
14859# Whether or not to build static libraries.
14860build_old_libs=$enable_static
14861
14862# What type of objects to build.
14863pic_mode=$pic_mode
14864
14865# Whether or not to optimize for fast installation.
14866fast_install=$enable_fast_install
14867
14868# Shell to use when invoking shell scripts.
14869SHELL=$lt_SHELL
14870
14871# An echo program that protects backslashes.
14872ECHO=$lt_ECHO
14873
14874# The PATH separator for the build system.
14875PATH_SEPARATOR=$lt_PATH_SEPARATOR
14876
14877# The host system.
14878host_alias=$host_alias
14879host=$host
14880host_os=$host_os
14881
14882# The build system.
14883build_alias=$build_alias
14884build=$build
14885build_os=$build_os
14886
14887# A sed program that does not truncate output.
14888SED=$lt_SED
14889
14890# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14891Xsed="\$SED -e 1s/^X//"
14892
14893# A grep program that handles long lines.
14894GREP=$lt_GREP
14895
14896# An ERE matcher.
14897EGREP=$lt_EGREP
14898
14899# A literal string matcher.
14900FGREP=$lt_FGREP
14901
14902# A BSD- or MS-compatible name lister.
14903NM=$lt_NM
14904
14905# Whether we need soft or hard links.
14906LN_S=$lt_LN_S
14907
14908# What is the maximum length of a command?
14909max_cmd_len=$max_cmd_len
14910
14911# Object file suffix (normally "o").
14912objext=$ac_objext
14913
14914# Executable file suffix (normally "").
14915exeext=$exeext
14916
14917# whether the shell understands "unset".
14918lt_unset=$lt_unset
14919
14920# turn spaces into newlines.
14921SP2NL=$lt_lt_SP2NL
14922
14923# turn newlines into spaces.
14924NL2SP=$lt_lt_NL2SP
14925
14926# convert \$build file names to \$host format.
14927to_host_file_cmd=$lt_cv_to_host_file_cmd
14928
14929# convert \$build files to toolchain format.
14930to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14931
14932# An object symbol dumper.
14933OBJDUMP=$lt_OBJDUMP
14934
14935# Method to check whether dependent libraries are shared objects.
14936deplibs_check_method=$lt_deplibs_check_method
14937
14938# Command to use when deplibs_check_method = "file_magic".
14939file_magic_cmd=$lt_file_magic_cmd
14940
14941# How to find potential files when deplibs_check_method = "file_magic".
14942file_magic_glob=$lt_file_magic_glob
14943
14944# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14945want_nocaseglob=$lt_want_nocaseglob
14946
14947# DLL creation program.
14948DLLTOOL=$lt_DLLTOOL
14949
14950# Command to associate shared and link libraries.
14951sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14952
14953# The archiver.
14954AR=$lt_AR
14955
14956# Flags to create an archive.
14957AR_FLAGS=$lt_AR_FLAGS
14958
14959# How to feed a file listing to the archiver.
14960archiver_list_spec=$lt_archiver_list_spec
14961
14962# A symbol stripping program.
14963STRIP=$lt_STRIP
14964
14965# Commands used to install an old-style archive.
14966RANLIB=$lt_RANLIB
14967old_postinstall_cmds=$lt_old_postinstall_cmds
14968old_postuninstall_cmds=$lt_old_postuninstall_cmds
14969
14970# Whether to use a lock for old archive extraction.
14971lock_old_archive_extraction=$lock_old_archive_extraction
14972
14973# A C compiler.
14974LTCC=$lt_CC
14975
14976# LTCC compiler flags.
14977LTCFLAGS=$lt_CFLAGS
14978
14979# Take the output of nm and produce a listing of raw symbols and C names.
14980global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14981
14982# Transform the output of nm in a proper C declaration.
14983global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14984
14985# Transform the output of nm in a C name address pair.
14986global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14987
14988# Transform the output of nm in a C name address pair when lib prefix is needed.
14989global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14990
14991# Specify filename containing input files for \$NM.
14992nm_file_list_spec=$lt_nm_file_list_spec
14993
14994# The root where to search for dependent libraries,and in which our libraries should be installed.
14995lt_sysroot=$lt_sysroot
14996
14997# The name of the directory that contains temporary libtool files.
14998objdir=$objdir
14999
15000# Used to examine libraries when file_magic_cmd begins with "file".
15001MAGIC_CMD=$MAGIC_CMD
15002
15003# Must we lock files when doing compilation?
15004need_locks=$lt_need_locks
15005
15006# Manifest tool.
15007MANIFEST_TOOL=$lt_MANIFEST_TOOL
15008
15009# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15010DSYMUTIL=$lt_DSYMUTIL
15011
15012# Tool to change global to local symbols on Mac OS X.
15013NMEDIT=$lt_NMEDIT
15014
15015# Tool to manipulate fat objects and archives on Mac OS X.
15016LIPO=$lt_LIPO
15017
15018# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15019OTOOL=$lt_OTOOL
15020
15021# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15022OTOOL64=$lt_OTOOL64
15023
15024# Old archive suffix (normally "a").
15025libext=$libext
15026
15027# Shared library suffix (normally ".so").
15028shrext_cmds=$lt_shrext_cmds
15029
15030# The commands to extract the exported symbol list from a shared archive.
15031extract_expsyms_cmds=$lt_extract_expsyms_cmds
15032
15033# Variables whose values should be saved in libtool wrapper scripts and
15034# restored at link time.
15035variables_saved_for_relink=$lt_variables_saved_for_relink
15036
15037# Do we need the "lib" prefix for modules?
15038need_lib_prefix=$need_lib_prefix
15039
15040# Do we need a version for libraries?
15041need_version=$need_version
15042
15043# Library versioning type.
15044version_type=$version_type
15045
15046# Shared library runtime path variable.
15047runpath_var=$runpath_var
15048
15049# Shared library path variable.
15050shlibpath_var=$shlibpath_var
15051
15052# Is shlibpath searched before the hard-coded library search path?
15053shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15054
15055# Format of library name prefix.
15056libname_spec=$lt_libname_spec
15057
15058# List of archive names. First name is the real one, the rest are links.
15059# The last name is the one that the linker finds with -lNAME
15060library_names_spec=$lt_library_names_spec
15061
15062# The coded name of the library, if different from the real name.
15063soname_spec=$lt_soname_spec
15064
15065# Permission mode override for installation of shared libraries.
15066install_override_mode=$lt_install_override_mode
15067
15068# Command to use after installation of a shared archive.
15069postinstall_cmds=$lt_postinstall_cmds
15070
15071# Command to use after uninstallation of a shared archive.
15072postuninstall_cmds=$lt_postuninstall_cmds
15073
15074# Commands used to finish a libtool library installation in a directory.
15075finish_cmds=$lt_finish_cmds
15076
15077# As "finish_cmds", except a single script fragment to be evaled but
15078# not shown.
15079finish_eval=$lt_finish_eval
15080
15081# Whether we should hardcode library paths into libraries.
15082hardcode_into_libs=$hardcode_into_libs
15083
15084# Compile-time system search path for libraries.
15085sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15086
15087# Run-time system search path for libraries.
15088sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15089
15090# Whether dlopen is supported.
15091dlopen_support=$enable_dlopen
15092
15093# Whether dlopen of programs is supported.
15094dlopen_self=$enable_dlopen_self
15095
15096# Whether dlopen of statically linked programs is supported.
15097dlopen_self_static=$enable_dlopen_self_static
15098
15099# Commands to strip libraries.
15100old_striplib=$lt_old_striplib
15101striplib=$lt_striplib
15102
15103
15104# The linker used to build libraries.
15105LD=$lt_LD
15106
15107# How to create reloadable object files.
15108reload_flag=$lt_reload_flag
15109reload_cmds=$lt_reload_cmds
15110
15111# Commands used to build an old-style archive.
15112old_archive_cmds=$lt_old_archive_cmds
15113
15114# A language specific compiler.
15115CC=$lt_compiler
15116
15117# Is the compiler the GNU compiler?
15118with_gcc=$GCC
15119
15120# Compiler flag to turn off builtin functions.
15121no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15122
15123# Additional compiler flags for building library objects.
15124pic_flag=$lt_lt_prog_compiler_pic
15125
15126# How to pass a linker flag through the compiler.
15127wl=$lt_lt_prog_compiler_wl
15128
15129# Compiler flag to prevent dynamic linking.
15130link_static_flag=$lt_lt_prog_compiler_static
15131
15132# Does compiler simultaneously support -c and -o options?
15133compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15134
15135# Whether or not to add -lc for building shared libraries.
15136build_libtool_need_lc=$archive_cmds_need_lc
15137
15138# Whether or not to disallow shared libs when runtime libs are static.
15139allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15140
15141# Compiler flag to allow reflexive dlopens.
15142export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15143
15144# Compiler flag to generate shared objects directly from archives.
15145whole_archive_flag_spec=$lt_whole_archive_flag_spec
15146
15147# Whether the compiler copes with passing no objects directly.
15148compiler_needs_object=$lt_compiler_needs_object
15149
15150# Create an old-style archive from a shared archive.
15151old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15152
15153# Create a temporary old-style archive to link instead of a shared archive.
15154old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15155
15156# Commands used to build a shared archive.
15157archive_cmds=$lt_archive_cmds
15158archive_expsym_cmds=$lt_archive_expsym_cmds
15159
15160# Commands used to build a loadable module if different from building
15161# a shared archive.
15162module_cmds=$lt_module_cmds
15163module_expsym_cmds=$lt_module_expsym_cmds
15164
15165# Whether we are building with GNU ld or not.
15166with_gnu_ld=$lt_with_gnu_ld
15167
15168# Flag that allows shared libraries with undefined symbols to be built.
15169allow_undefined_flag=$lt_allow_undefined_flag
15170
15171# Flag that enforces no undefined symbols.
15172no_undefined_flag=$lt_no_undefined_flag
15173
15174# Flag to hardcode \$libdir into a binary during linking.
15175# This must work even if \$libdir does not exist
15176hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15177
15178# Whether we need a single "-rpath" flag with a separated argument.
15179hardcode_libdir_separator=$lt_hardcode_libdir_separator
15180
15181# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15182# DIR into the resulting binary.
15183hardcode_direct=$hardcode_direct
15184
15185# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15186# DIR into the resulting binary and the resulting library dependency is
15187# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15188# library is relocated.
15189hardcode_direct_absolute=$hardcode_direct_absolute
15190
15191# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15192# into the resulting binary.
15193hardcode_minus_L=$hardcode_minus_L
15194
15195# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15196# into the resulting binary.
15197hardcode_shlibpath_var=$hardcode_shlibpath_var
15198
15199# Set to "yes" if building a shared library automatically hardcodes DIR
15200# into the library and all subsequent libraries and executables linked
15201# against it.
15202hardcode_automatic=$hardcode_automatic
15203
15204# Set to yes if linker adds runtime paths of dependent libraries
15205# to runtime path list.
15206inherit_rpath=$inherit_rpath
15207
15208# Whether libtool must link a program against all its dependency libraries.
15209link_all_deplibs=$link_all_deplibs
15210
15211# Set to "yes" if exported symbols are required.
15212always_export_symbols=$always_export_symbols
15213
15214# The commands to list exported symbols.
15215export_symbols_cmds=$lt_export_symbols_cmds
15216
15217# Symbols that should not be listed in the preloaded symbols.
15218exclude_expsyms=$lt_exclude_expsyms
15219
15220# Symbols that must always be exported.
15221include_expsyms=$lt_include_expsyms
15222
15223# Commands necessary for linking programs (against libraries) with templates.
15224prelink_cmds=$lt_prelink_cmds
15225
15226# Commands necessary for finishing linking programs.
15227postlink_cmds=$lt_postlink_cmds
15228
15229# Specify filename containing input files.
15230file_list_spec=$lt_file_list_spec
15231
15232# How to hardcode a shared library path into an executable.
15233hardcode_action=$hardcode_action
15234
15235# ### END LIBTOOL CONFIG
15236
15237_LT_EOF
15238
15239 case $host_os in
15240 aix3*)
15241 cat <<\_LT_EOF >> "$cfgfile"
15242# AIX sometimes has problems with the GCC collect2 program. For some
15243# reason, if we set the COLLECT_NAMES environment variable, the problems
15244# vanish in a puff of smoke.
15245if test "X${COLLECT_NAMES+set}" != Xset; then
15246 COLLECT_NAMES=
15247 export COLLECT_NAMES
15248fi
15249_LT_EOF
15250 ;;
15251 esac
15252
15253
15254ltmain="$ac_aux_dir/ltmain.sh"
15255
15256
15257 # We use sed instead of cat because bash on DJGPP gets confused if
15258 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15259 # text mode, it properly converts lines to CR/LF. This bash problem
15260 # is reportedly fixed, but why not run on old versions too?
15261 sed '$q' "$ltmain" >> "$cfgfile" \
15262 || (rm -f "$cfgfile"; exit 1)
15263
15264 if test x"$xsi_shell" = xyes; then
15265 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15266func_dirname ()\
15267{\
15268\ case ${1} in\
15269\ */*) func_dirname_result="${1%/*}${2}" ;;\
15270\ * ) func_dirname_result="${3}" ;;\
15271\ esac\
15272} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15273 && mv -f "$cfgfile.tmp" "$cfgfile" \
15274 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15275test 0 -eq $? || _lt_function_replace_fail=:
15276
15277
15278 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15279func_basename ()\
15280{\
15281\ func_basename_result="${1##*/}"\
15282} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15283 && mv -f "$cfgfile.tmp" "$cfgfile" \
15284 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15285test 0 -eq $? || _lt_function_replace_fail=:
15286
15287
15288 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15289func_dirname_and_basename ()\
15290{\
15291\ case ${1} in\
15292\ */*) func_dirname_result="${1%/*}${2}" ;;\
15293\ * ) func_dirname_result="${3}" ;;\
15294\ esac\
15295\ func_basename_result="${1##*/}"\
15296} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15297 && mv -f "$cfgfile.tmp" "$cfgfile" \
15298 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15299test 0 -eq $? || _lt_function_replace_fail=:
15300
15301
15302 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15303func_stripname ()\
15304{\
15305\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15306\ # positional parameters, so assign one to ordinary parameter first.\
15307\ func_stripname_result=${3}\
15308\ func_stripname_result=${func_stripname_result#"${1}"}\
15309\ func_stripname_result=${func_stripname_result%"${2}"}\
15310} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15311 && mv -f "$cfgfile.tmp" "$cfgfile" \
15312 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15313test 0 -eq $? || _lt_function_replace_fail=:
15314
15315
15316 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15317func_split_long_opt ()\
15318{\
15319\ func_split_long_opt_name=${1%%=*}\
15320\ func_split_long_opt_arg=${1#*=}\
15321} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15322 && mv -f "$cfgfile.tmp" "$cfgfile" \
15323 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15324test 0 -eq $? || _lt_function_replace_fail=:
15325
15326
15327 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15328func_split_short_opt ()\
15329{\
15330\ func_split_short_opt_arg=${1#??}\
15331\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15332} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15333 && mv -f "$cfgfile.tmp" "$cfgfile" \
15334 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15335test 0 -eq $? || _lt_function_replace_fail=:
15336
15337
15338 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15339func_lo2o ()\
15340{\
15341\ case ${1} in\
15342\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15343\ *) func_lo2o_result=${1} ;;\
15344\ esac\
15345} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15346 && mv -f "$cfgfile.tmp" "$cfgfile" \
15347 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15348test 0 -eq $? || _lt_function_replace_fail=:
15349
15350
15351 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15352func_xform ()\
15353{\
15354 func_xform_result=${1%.*}.lo\
15355} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15356 && mv -f "$cfgfile.tmp" "$cfgfile" \
15357 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15358test 0 -eq $? || _lt_function_replace_fail=:
15359
15360
15361 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15362func_arith ()\
15363{\
15364 func_arith_result=$(( $* ))\
15365} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15366 && mv -f "$cfgfile.tmp" "$cfgfile" \
15367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15368test 0 -eq $? || _lt_function_replace_fail=:
15369
15370
15371 sed -e '/^func_len ()$/,/^} # func_len /c\
15372func_len ()\
15373{\
15374 func_len_result=${#1}\
15375} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15376 && mv -f "$cfgfile.tmp" "$cfgfile" \
15377 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15378test 0 -eq $? || _lt_function_replace_fail=:
15379
15380fi
15381
15382if test x"$lt_shell_append" = xyes; then
15383 sed -e '/^func_append ()$/,/^} # func_append /c\
15384func_append ()\
15385{\
15386 eval "${1}+=\\${2}"\
15387} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15388 && mv -f "$cfgfile.tmp" "$cfgfile" \
15389 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15390test 0 -eq $? || _lt_function_replace_fail=:
15391
15392
15393 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15394func_append_quoted ()\
15395{\
15396\ func_quote_for_eval "${2}"\
15397\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15398} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15399 && mv -f "$cfgfile.tmp" "$cfgfile" \
15400 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15401test 0 -eq $? || _lt_function_replace_fail=:
15402
15403
15404 # Save a `func_append' function call where possible by direct use of '+='
15405 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15406 && mv -f "$cfgfile.tmp" "$cfgfile" \
15407 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15408 test 0 -eq $? || _lt_function_replace_fail=:
15409else
15410 # Save a `func_append' function call even when '+=' is not available
15411 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15412 && mv -f "$cfgfile.tmp" "$cfgfile" \
15413 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15414 test 0 -eq $? || _lt_function_replace_fail=:
15415fi
15416
15417if test x"$_lt_function_replace_fail" = x":"; then
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15419$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15420fi
15421
15422
15423 mv -f "$cfgfile" "$ofile" ||
15424 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15425 chmod +x "$ofile"
15426
15427 ;;
15428
15429 esac
15430done # for ac_tag
15431
15432
15433as_fn_exit 0
15434_ACEOF
15435ac_clean_files=$ac_clean_files_save
15436
15437test $ac_write_fail = 0 ||
15438 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15439
15440
15441# configure is writing to config.log, and then calls config.status.
15442# config.status does its own redirection, appending to config.log.
15443# Unfortunately, on DOS this fails, as config.log is still kept open
15444# by configure, so config.status won't be able to write to it; its
15445# output is simply discarded. So we exec the FD to /dev/null,
15446# effectively closing config.log, so it can be properly (re)opened and
15447# appended to by config.status. When coming back to configure, we
15448# need to make the FD available again.
15449if test "$no_create" != yes; then
15450 ac_cs_success=:
15451 ac_config_status_args=
15452 test "$silent" = yes &&
15453 ac_config_status_args="$ac_config_status_args --quiet"
15454 exec 5>/dev/null
15455 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15456 exec 5>>config.log
15457 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15458 # would make configure fail if this is the last instruction.
15459 $ac_cs_success || as_fn_exit 1
15460fi
15461if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15463$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15464fi
15465
15466
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000015467{ $as_echo "$as_me:${as_lineno-$LINENO}:
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000015468------------------------------------------------------------------------
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000015469 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000015470
15471 Compiler support:
15472
15473 C99 var arrays: ................ ${has_var_arrays}
15474 C99 lrintf: .................... ${ac_cv_func_lrintf}
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000015475 Use alloca: .................... ${use_alloca}
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000015476
15477 General configuration:
15478
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000015479 Floating point support: ........ ${enable_float}
15480 Fast float approximations: ..... ${enable_float_approx}
15481 Fixed point debugging: ......... ${enable_fixed_point_debug}
15482 Inline Assembly Optimizations: . ${inline_optimization}
15483 External Assembly Optimizations: ${asm_optimization}
15484 Run-time CPU detection: ........ ${rtcd_support}
15485 Custom modes: .................. ${enable_custom_modes}
15486 Assertion checking: ............ ${enable_assertions}
15487 Fuzzing: ....................... ${enable_fuzzing}
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000015488
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000015489 API documentation: ............. ${enable_doc}
15490 Extra programs: ................ ${enable_extra_programs}
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000015491------------------------------------------------------------------------
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000015492
15493 Type \"make; make install\" to compile and install
15494 Type \"make check\" to run the test suite
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000015495" >&5
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000015496$as_echo "$as_me:
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000015497------------------------------------------------------------------------
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000015498 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000015499
15500 Compiler support:
15501
15502 C99 var arrays: ................ ${has_var_arrays}
15503 C99 lrintf: .................... ${ac_cv_func_lrintf}
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000015504 Use alloca: .................... ${use_alloca}
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000015505
15506 General configuration:
15507
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000015508 Floating point support: ........ ${enable_float}
15509 Fast float approximations: ..... ${enable_float_approx}
15510 Fixed point debugging: ......... ${enable_fixed_point_debug}
15511 Inline Assembly Optimizations: . ${inline_optimization}
15512 External Assembly Optimizations: ${asm_optimization}
15513 Run-time CPU detection: ........ ${rtcd_support}
15514 Custom modes: .................. ${enable_custom_modes}
15515 Assertion checking: ............ ${enable_assertions}
15516 Fuzzing: ....................... ${enable_fuzzing}
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000015517
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000015518 API documentation: ............. ${enable_doc}
15519 Extra programs: ................ ${enable_extra_programs}
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000015520------------------------------------------------------------------------
sergeyu@chromium.org885f2ff2012-10-17 22:31:52 +000015521
tlegrand@google.com3c3902f2013-12-09 08:35:25 +000015522 Type \"make; make install\" to compile and install
15523 Type \"make check\" to run the test suite
15524" >&6;}
15525