blob: 4ea7327e5c36ee04f90e8012f03ed311a94b7bc9 [file] [log] [blame]
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
flimc91ee5b2016-01-26 14:33:44 +01003# Generated by GNU Autoconf 2.69 for opus 1.1.2.
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08004#
5# Report bugs to <opus@xiph.org>.
6#
7#
flimc91ee5b2016-01-26 14:33:44 +01008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08009#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
flimc91ee5b2016-01-26 14:33:44 +0100137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -0800162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
flimc91ee5b2016-01-26 14:33:44 +0100195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -0800197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
flimc91ee5b2016-01-26 14:33:44 +0100249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -0800268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and opus@xiph.org
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
flimc91ee5b2016-01-26 14:33:44 +0100370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -0800378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
flimc91ee5b2016-01-26 14:33:44 +0100499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -0800503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
flimc91ee5b2016-01-26 14:33:44 +0100537 # In both cases, we have to default to `cp -pR'.
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -0800538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
flimc91ee5b2016-01-26 14:33:44 +0100539 as_ln_s='cp -pR'
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -0800540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
flimc91ee5b2016-01-26 14:33:44 +0100543 as_ln_s='cp -pR'
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -0800544 fi
545else
flimc91ee5b2016-01-26 14:33:44 +0100546 as_ln_s='cp -pR'
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -0800547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
flimc91ee5b2016-01-26 14:33:44 +0100558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -0800560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='opus'
592PACKAGE_TARNAME='opus'
flimc91ee5b2016-01-26 14:33:44 +0100593PACKAGE_VERSION='1.1.2'
594PACKAGE_STRING='opus 1.1.2'
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -0800595PACKAGE_BUGREPORT='opus@xiph.org'
596PACKAGE_URL=''
597
598ac_unique_file="src/opus_encoder.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639PC_BUILD
640EXTRA_PROGRAMS_FALSE
641EXTRA_PROGRAMS_TRUE
642HAVE_DOXYGEN_FALSE
643HAVE_DOXYGEN_TRUE
644HAVE_DOXYGEN
645OPUS_HAVE_RTCD
flimc91ee5b2016-01-26 14:33:44 +0100646HAVE_ARM_NE10_FALSE
647HAVE_ARM_NE10_TRUE
648OPUS_ARM_NEON_INTR_FALSE
649OPUS_ARM_NEON_INTR_TRUE
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -0800650CPU_ARM_FALSE
651CPU_ARM_TRUE
flimc91ee5b2016-01-26 14:33:44 +0100652OPUS_X86_AVX_CFLAGS
653OPUS_X86_SSE4_1_CFLAGS
654OPUS_X86_SSE2_CFLAGS
655OPUS_X86_SSE_CFLAGS
656NE10_LIBS
657NE10_CFLAGS
658HAVE_ARM_NE10
659OPUS_ARM_NEON_INTR_CFLAGS
660ARM_NEON_INTR_CFLAGS
661X86_AVX_CFLAGS
662X86_SSE4_1_CFLAGS
663X86_SSE2_CFLAGS
664X86_SSE_CFLAGS
665HAVE_AVX_FALSE
666HAVE_AVX_TRUE
667HAVE_SSE4_1_FALSE
668HAVE_SSE4_1_TRUE
669HAVE_SSE2_FALSE
670HAVE_SSE2_TRUE
671HAVE_SSE_FALSE
672HAVE_SSE_TRUE
673ARM2GNU_PARAMS
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -0800674OPUS_ARM_MAY_HAVE_NEON
675OPUS_ARM_MAY_HAVE_MEDIA
676OPUS_ARM_MAY_HAVE_EDSP
677OPUS_ARM_EXTERNAL_ASM_FALSE
678OPUS_ARM_EXTERNAL_ASM_TRUE
679HAVE_PERL
680OPUS_ARM_INLINE_ASM_FALSE
681OPUS_ARM_INLINE_ASM_TRUE
682CUSTOM_MODES_FALSE
683CUSTOM_MODES_TRUE
684DISABLE_FLOAT_API_FALSE
685DISABLE_FLOAT_API_TRUE
686FIXED_POINT_FALSE
687FIXED_POINT_TRUE
688LIBM
689am__fastdepCCAS_FALSE
690am__fastdepCCAS_TRUE
691CCASDEPMODE
692CCASFLAGS
693CCAS
694CPP
695OTOOL64
696OTOOL
697LIPO
698NMEDIT
699DSYMUTIL
700MANIFEST_TOOL
701RANLIB
702ac_ct_AR
703AR
704DLLTOOL
705OBJDUMP
706LN_S
707NM
708ac_ct_DUMPBIN
709DUMPBIN
710LD
711FGREP
712EGREP
713GREP
714SED
715am__fastdepCC_FALSE
716am__fastdepCC_TRUE
717CCDEPMODE
718am__nodep
719AMDEPBACKSLASH
720AMDEP_FALSE
721AMDEP_TRUE
722am__quote
723am__include
724DEPDIR
725OBJEXT
726EXEEXT
727ac_ct_CC
728CPPFLAGS
729LDFLAGS
730CFLAGS
731CC
732LIBTOOL
733host_os
734host_vendor
735host_cpu
736host
737build_os
738build_vendor
739build_cpu
740build
741MAINT
742MAINTAINER_MODE_FALSE
743MAINTAINER_MODE_TRUE
744am__untar
745am__tar
746AMTAR
747am__leading_dot
748SET_MAKE
749AWK
750mkdir_p
751MKDIR_P
752INSTALL_STRIP_PROGRAM
753STRIP
754install_sh
755MAKEINFO
756AUTOHEADER
757AUTOMAKE
758AUTOCONF
759ACLOCAL
760VERSION
761PACKAGE
762CYGPATH_W
763am__isrc
764INSTALL_DATA
765INSTALL_SCRIPT
766INSTALL_PROGRAM
767OPUS_LT_AGE
768OPUS_LT_REVISION
769OPUS_LT_CURRENT
770AM_BACKSLASH
771AM_DEFAULT_VERBOSITY
772AM_DEFAULT_V
773AM_V
774target_alias
775host_alias
776build_alias
777LIBS
778ECHO_T
779ECHO_N
780ECHO_C
781DEFS
782mandir
783localedir
784libdir
785psdir
786pdfdir
787dvidir
788htmldir
789infodir
790docdir
791oldincludedir
792includedir
793localstatedir
794sharedstatedir
795sysconfdir
796datadir
797datarootdir
798libexecdir
799sbindir
800bindir
801program_transform_name
802prefix
803exec_prefix
804PACKAGE_URL
805PACKAGE_BUGREPORT
806PACKAGE_STRING
807PACKAGE_VERSION
808PACKAGE_TARNAME
809PACKAGE_NAME
810PATH_SEPARATOR
811SHELL'
812ac_subst_files=''
813ac_user_opts='
814enable_option_checking
815enable_silent_rules
816enable_maintainer_mode
817enable_shared
818enable_static
819with_pic
820enable_fast_install
821enable_dependency_tracking
822with_gnu_ld
823with_sysroot
824enable_libtool_lock
825enable_fixed_point
826enable_fixed_point_debug
827enable_float_api
828enable_custom_modes
829enable_float_approx
830enable_asm
831enable_rtcd
flimc91ee5b2016-01-26 14:33:44 +0100832enable_intrinsics
833with_NE10
834with_NE10_libraries
835with_NE10_includes
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -0800836enable_assertions
837enable_fuzzing
838enable_doc
839enable_extra_programs
840'
841 ac_precious_vars='build_alias
842host_alias
843target_alias
844CC
845CFLAGS
846LDFLAGS
847LIBS
848CPPFLAGS
849CPP
850CCAS
flimc91ee5b2016-01-26 14:33:44 +0100851CCASFLAGS
852X86_SSE_CFLAGS
853X86_SSE2_CFLAGS
854X86_SSE4_1_CFLAGS
855X86_AVX_CFLAGS
856ARM_NEON_INTR_CFLAGS'
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -0800857
858
859# Initialize some variables set by options.
860ac_init_help=
861ac_init_version=false
862ac_unrecognized_opts=
863ac_unrecognized_sep=
864# The variables have the same names as the options, with
865# dashes changed to underlines.
866cache_file=/dev/null
867exec_prefix=NONE
868no_create=
869no_recursion=
870prefix=NONE
871program_prefix=NONE
872program_suffix=NONE
873program_transform_name=s,x,x,
874silent=
875site=
876srcdir=
877verbose=
878x_includes=NONE
879x_libraries=NONE
880
881# Installation directory options.
882# These are left unexpanded so users can "make install exec_prefix=/foo"
883# and all the variables that are supposed to be based on exec_prefix
884# by default will actually change.
885# Use braces instead of parens because sh, perl, etc. also accept them.
886# (The list follows the same order as the GNU Coding Standards.)
887bindir='${exec_prefix}/bin'
888sbindir='${exec_prefix}/sbin'
889libexecdir='${exec_prefix}/libexec'
890datarootdir='${prefix}/share'
891datadir='${datarootdir}'
892sysconfdir='${prefix}/etc'
893sharedstatedir='${prefix}/com'
894localstatedir='${prefix}/var'
895includedir='${prefix}/include'
896oldincludedir='/usr/include'
897docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
898infodir='${datarootdir}/info'
899htmldir='${docdir}'
900dvidir='${docdir}'
901pdfdir='${docdir}'
902psdir='${docdir}'
903libdir='${exec_prefix}/lib'
904localedir='${datarootdir}/locale'
905mandir='${datarootdir}/man'
906
907ac_prev=
908ac_dashdash=
909for ac_option
910do
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
913 eval $ac_prev=\$ac_option
914 ac_prev=
915 continue
916 fi
917
918 case $ac_option in
919 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 *=) ac_optarg= ;;
921 *) ac_optarg=yes ;;
922 esac
923
924 # Accept the important Cygnus configure options, so we can diagnose typos.
925
926 case $ac_dashdash$ac_option in
927 --)
928 ac_dashdash=yes ;;
929
930 -bindir | --bindir | --bindi | --bind | --bin | --bi)
931 ac_prev=bindir ;;
932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
933 bindir=$ac_optarg ;;
934
935 -build | --build | --buil | --bui | --bu)
936 ac_prev=build_alias ;;
937 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938 build_alias=$ac_optarg ;;
939
940 -cache-file | --cache-file | --cache-fil | --cache-fi \
941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942 ac_prev=cache_file ;;
943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945 cache_file=$ac_optarg ;;
946
947 --config-cache | -C)
948 cache_file=config.cache ;;
949
950 -datadir | --datadir | --datadi | --datad)
951 ac_prev=datadir ;;
952 -datadir=* | --datadir=* | --datadi=* | --datad=*)
953 datadir=$ac_optarg ;;
954
955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956 | --dataroo | --dataro | --datar)
957 ac_prev=datarootdir ;;
958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960 datarootdir=$ac_optarg ;;
961
962 -disable-* | --disable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971"enable_$ac_useropt"
972"*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=no ;;
977
978 -docdir | --docdir | --docdi | --doc | --do)
979 ac_prev=docdir ;;
980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981 docdir=$ac_optarg ;;
982
983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984 ac_prev=dvidir ;;
985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986 dvidir=$ac_optarg ;;
987
988 -enable-* | --enable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error $? "invalid feature name: $ac_useropt"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
996 *"
997"enable_$ac_useropt"
998"*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=\$ac_optarg ;;
1003
1004 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006 | --exec | --exe | --ex)
1007 ac_prev=exec_prefix ;;
1008 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010 | --exec=* | --exe=* | --ex=*)
1011 exec_prefix=$ac_optarg ;;
1012
1013 -gas | --gas | --ga | --g)
1014 # Obsolete; use --with-gas.
1015 with_gas=yes ;;
1016
1017 -help | --help | --hel | --he | -h)
1018 ac_init_help=long ;;
1019 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020 ac_init_help=recursive ;;
1021 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022 ac_init_help=short ;;
1023
1024 -host | --host | --hos | --ho)
1025 ac_prev=host_alias ;;
1026 -host=* | --host=* | --hos=* | --ho=*)
1027 host_alias=$ac_optarg ;;
1028
1029 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030 ac_prev=htmldir ;;
1031 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032 | --ht=*)
1033 htmldir=$ac_optarg ;;
1034
1035 -includedir | --includedir | --includedi | --included | --include \
1036 | --includ | --inclu | --incl | --inc)
1037 ac_prev=includedir ;;
1038 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039 | --includ=* | --inclu=* | --incl=* | --inc=*)
1040 includedir=$ac_optarg ;;
1041
1042 -infodir | --infodir | --infodi | --infod | --info | --inf)
1043 ac_prev=infodir ;;
1044 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1045 infodir=$ac_optarg ;;
1046
1047 -libdir | --libdir | --libdi | --libd)
1048 ac_prev=libdir ;;
1049 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1050 libdir=$ac_optarg ;;
1051
1052 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053 | --libexe | --libex | --libe)
1054 ac_prev=libexecdir ;;
1055 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056 | --libexe=* | --libex=* | --libe=*)
1057 libexecdir=$ac_optarg ;;
1058
1059 -localedir | --localedir | --localedi | --localed | --locale)
1060 ac_prev=localedir ;;
1061 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062 localedir=$ac_optarg ;;
1063
1064 -localstatedir | --localstatedir | --localstatedi | --localstated \
1065 | --localstate | --localstat | --localsta | --localst | --locals)
1066 ac_prev=localstatedir ;;
1067 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1068 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1069 localstatedir=$ac_optarg ;;
1070
1071 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072 ac_prev=mandir ;;
1073 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1074 mandir=$ac_optarg ;;
1075
1076 -nfp | --nfp | --nf)
1077 # Obsolete; use --without-fp.
1078 with_fp=no ;;
1079
1080 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1081 | --no-cr | --no-c | -n)
1082 no_create=yes ;;
1083
1084 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086 no_recursion=yes ;;
1087
1088 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090 | --oldin | --oldi | --old | --ol | --o)
1091 ac_prev=oldincludedir ;;
1092 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1095 oldincludedir=$ac_optarg ;;
1096
1097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098 ac_prev=prefix ;;
1099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1100 prefix=$ac_optarg ;;
1101
1102 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103 | --program-pre | --program-pr | --program-p)
1104 ac_prev=program_prefix ;;
1105 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1107 program_prefix=$ac_optarg ;;
1108
1109 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110 | --program-suf | --program-su | --program-s)
1111 ac_prev=program_suffix ;;
1112 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1114 program_suffix=$ac_optarg ;;
1115
1116 -program-transform-name | --program-transform-name \
1117 | --program-transform-nam | --program-transform-na \
1118 | --program-transform-n | --program-transform- \
1119 | --program-transform | --program-transfor \
1120 | --program-transfo | --program-transf \
1121 | --program-trans | --program-tran \
1122 | --progr-tra | --program-tr | --program-t)
1123 ac_prev=program_transform_name ;;
1124 -program-transform-name=* | --program-transform-name=* \
1125 | --program-transform-nam=* | --program-transform-na=* \
1126 | --program-transform-n=* | --program-transform-=* \
1127 | --program-transform=* | --program-transfor=* \
1128 | --program-transfo=* | --program-transf=* \
1129 | --program-trans=* | --program-tran=* \
1130 | --progr-tra=* | --program-tr=* | --program-t=*)
1131 program_transform_name=$ac_optarg ;;
1132
1133 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134 ac_prev=pdfdir ;;
1135 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136 pdfdir=$ac_optarg ;;
1137
1138 -psdir | --psdir | --psdi | --psd | --ps)
1139 ac_prev=psdir ;;
1140 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141 psdir=$ac_optarg ;;
1142
1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144 | -silent | --silent | --silen | --sile | --sil)
1145 silent=yes ;;
1146
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
1151 sbindir=$ac_optarg ;;
1152
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
1162 sharedstatedir=$ac_optarg ;;
1163
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
1167 site=$ac_optarg ;;
1168
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1173
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1180
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1185
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1188
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1191
1192 -with-* | --with-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201"with_$ac_useropt"
1202"*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217"with_$ac_useropt"
1218"*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
1242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243Try \`$0 --help' for more information"
1244 ;;
1245
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252 esac
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 ;;
1263
1264 esac
1265done
1266
1267if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $? "missing argument to $ac_option"
1270fi
1271
1272if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1278fi
1279
1280# Check all directory arguments for consistency.
1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1285do
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299done
1300
1301# There might be people who depend on the old broken behavior: `$host'
1302# used to hold the argument of --host etc.
1303# FIXME: To remove some day.
1304build=$build_alias
1305host=$host_alias
1306target=$target_alias
1307
1308# FIXME: To remove some day.
1309if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08001312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315fi
1316
1317ac_tool_prefix=
1318test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320test "$silent" = yes && exec 6>/dev/null
1321
1322
1323ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324ac_ls_di=`ls -di .` &&
1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331# Find the source files, if location was not specified.
1332if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340$as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362else
1363 ac_srcdir_defaulted=no
1364fi
1365if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368fi
1369ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
1389
1390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
flimc91ee5b2016-01-26 14:33:44 +01001397\`configure' configures opus 1.1.2 to adapt to many kinds of systems.
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08001398
1399Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404Defaults for the options are specified in brackets.
1405
1406Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
1427
1428For better control, use the options below.
1429
1430Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/opus]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450_ACEOF
1451
1452 cat <<\_ACEOF
1453
1454Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458
1459System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462_ACEOF
1463fi
1464
1465if test -n "$ac_init_help"; then
1466 case $ac_init_help in
flimc91ee5b2016-01-26 14:33:44 +01001467 short | recursive ) echo "Configuration of opus 1.1.2:";;
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08001468 esac
1469 cat <<\_ACEOF
1470
1471Optional Features:
1472 --disable-option-checking ignore unrecognized --enable/--with options
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
flimc91ee5b2016-01-26 14:33:44 +01001475 --enable-silent-rules less verbose build output (undo: "make V=1")
1476 --disable-silent-rules verbose build output (undo: "make V=0")
1477 --disable-maintainer-mode
1478 disable make rules and dependencies not useful (and
1479 sometimes confusing) to the casual installer
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08001480 --enable-shared[=PKGS] build shared libraries [default=yes]
1481 --enable-static[=PKGS] build static libraries [default=yes]
1482 --enable-fast-install[=PKGS]
1483 optimize for fast installation [default=yes]
flimc91ee5b2016-01-26 14:33:44 +01001484 --enable-dependency-tracking
1485 do not reject slow dependency extractors
1486 --disable-dependency-tracking
1487 speeds up one-time build
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08001488 --disable-libtool-lock avoid locking (might break parallel builds)
1489 --enable-fixed-point compile without floating point (for machines without
1490 a fast enough FPU)
1491 --enable-fixed-point-debug
1492 debug fixed-point implementation
1493 --disable-float-api compile without the floating point API (for machines
1494 with no float library)
1495 --enable-custom-modes enable non-Opus modes, e.g. 44.1 kHz & 2^n frames
1496 --enable-float-approx enable fast approximations for floating point
1497 --disable-asm Disable assembly optimizations
1498 --disable-rtcd Disable run-time CPU capabilities detection
flimc91ee5b2016-01-26 14:33:44 +01001499 --enable-intrinsics Enable intrinsics optimizations for ARM(float)
1500 X86(fixed)
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08001501 --enable-assertions enable additional software error checking
1502 --enable-fuzzing causes the encoder to make random decisions
1503 --disable-doc Do not build API documentation
1504 --disable-extra-programs
1505 Do not build extra programs (demo and tests)
1506
1507Optional Packages:
1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1510 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1511 both]
1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1513 --with-sysroot=DIR Search for dependent libraries within DIR
1514 (or the compiler's sysroot if not specified).
flimc91ee5b2016-01-26 14:33:44 +01001515 --with-NE10=PFX Prefix where libNE10 is installed (optional)
1516 --with-NE10-libraries=DIR
1517 Directory where libNE10 library is installed
1518 (optional)
1519 --with-NE10-includes=DIR
1520 Directory where libNE10 header files are installed
1521 (optional)
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08001522
1523Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
1531 CPP C preprocessor
1532 CCAS assembler compiler command (defaults to CC)
1533 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
flimc91ee5b2016-01-26 14:33:44 +01001534 X86_SSE_CFLAGS
1535 C compiler flags to compile SSE intrinsics [default=-msse]
1536 X86_SSE2_CFLAGS
1537 C compiler flags to compile SSE2 intrinsics [default=-msse2]
1538 X86_SSE4_1_CFLAGS
1539 C compiler flags to compile SSE4.1 intrinsics [default=-msse4.1]
1540 X86_AVX_CFLAGS
1541 C compiler flags to compile AVX intrinsics [default=-mavx]
1542 ARM_NEON_INTR_CFLAGS
1543 C compiler flags to compile ARM NEON intrinsics
1544 [default=-mfpu=neon / -mfpu=neon -mfloat-abi=softfp]
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08001545
1546Use these variables to override the choices made by `configure' or to help
1547it to find libraries and programs with nonstandard names/locations.
1548
1549Report bugs to <opus@xiph.org>.
1550_ACEOF
1551ac_status=$?
1552fi
1553
1554if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559 continue
1560 ac_builddir=.
1561
1562case "$ac_dir" in
1563.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564*)
1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 esac ;;
1572esac
1573ac_abs_top_builddir=$ac_pwd
1574ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575# for backward compatibility:
1576ac_top_builddir=$ac_top_build_prefix
1577
1578case $srcdir in
1579 .) # We are building in place.
1580 ac_srcdir=.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1587 *) # Relative name.
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591esac
1592ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1602 else
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604 fi || ac_status=$?
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1606 done
1607fi
1608
1609test -n "$ac_init_help" && exit $ac_status
1610if $ac_init_version; then
1611 cat <<\_ACEOF
flimc91ee5b2016-01-26 14:33:44 +01001612opus configure 1.1.2
1613generated by GNU Autoconf 2.69
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08001614
flimc91ee5b2016-01-26 14:33:44 +01001615Copyright (C) 2012 Free Software Foundation, Inc.
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08001616This configure script is free software; the Free Software Foundation
1617gives unlimited permission to copy, distribute and modify it.
1618_ACEOF
1619 exit
1620fi
1621
1622## ------------------------ ##
1623## Autoconf initialization. ##
1624## ------------------------ ##
1625
1626# ac_fn_c_try_compile LINENO
1627# --------------------------
1628# Try to compile conftest.$ac_ext, and return whether this succeeded.
1629ac_fn_c_try_compile ()
1630{
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1634case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1652 ac_retval=0
1653else
1654 $as_echo "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662} # ac_fn_c_try_compile
1663
1664# ac_fn_c_try_link LINENO
1665# -----------------------
1666# Try to link conftest.$ac_ext, and return whether this succeeded.
1667ac_fn_c_try_link ()
1668{
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext conftest$ac_exeext
1671 if { { ac_try="$ac_link"
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_link") 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; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest$ac_exeext && {
1690 test "$cross_compiling" = yes ||
flimc91ee5b2016-01-26 14:33:44 +01001691 test -x conftest$ac_exeext
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08001692 }; then :
1693 ac_retval=0
1694else
1695 $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=1
1699fi
1700 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1701 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1702 # interfere with the next link command; also delete a directory that is
1703 # left behind by Apple's compiler. We do this before executing the actions.
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708} # ac_fn_c_try_link
1709
1710# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1711# -------------------------------------------------------
1712# Tests whether HEADER exists and can be compiled using the include files in
1713# INCLUDES, setting the cache variable VAR accordingly.
1714ac_fn_c_check_header_compile ()
1715{
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718$as_echo_n "checking for $2... " >&6; }
1719if eval \${$3+:} false; then :
1720 $as_echo_n "(cached) " >&6
1721else
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723/* end confdefs.h. */
1724$4
1725#include <$2>
1726_ACEOF
1727if ac_fn_c_try_compile "$LINENO"; then :
1728 eval "$3=yes"
1729else
1730 eval "$3=no"
1731fi
1732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733fi
1734eval ac_res=\$$3
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736$as_echo "$ac_res" >&6; }
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738
1739} # ac_fn_c_check_header_compile
1740
1741# ac_fn_c_try_cpp LINENO
1742# ----------------------
1743# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1744ac_fn_c_try_cpp ()
1745{
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if { { ac_try="$ac_cpp conftest.$ac_ext"
1748case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753$as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } > conftest.i && {
1763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 }; then :
1766 ac_retval=0
1767else
1768 $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=1
1772fi
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 as_fn_set_status $ac_retval
1775
1776} # ac_fn_c_try_cpp
1777
1778# ac_fn_c_try_run LINENO
1779# ----------------------
1780# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1781# that executables *can* be run.
1782ac_fn_c_try_run ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if { { ac_try="$ac_link"
1786case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791$as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_link") 2>&5
1793 ac_status=$?
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1796 { { case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_try") 2>&5
1803 ac_status=$?
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; }; }; then :
1806 ac_retval=0
1807else
1808 $as_echo "$as_me: program exited with status $ac_status" >&5
1809 $as_echo "$as_me: failed program was:" >&5
1810sed 's/^/| /' conftest.$ac_ext >&5
1811
1812 ac_retval=$ac_status
1813fi
1814 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 as_fn_set_status $ac_retval
1817
1818} # ac_fn_c_try_run
1819
1820# ac_fn_c_check_func LINENO FUNC VAR
1821# ----------------------------------
1822# Tests whether FUNC exists, setting the cache variable VAR accordingly
1823ac_fn_c_check_func ()
1824{
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827$as_echo_n "checking for $2... " >&6; }
1828if eval \${$3+:} false; then :
1829 $as_echo_n "(cached) " >&6
1830else
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h. */
1833/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1835#define $2 innocuous_$2
1836
1837/* System header to define __stub macros and hopefully few prototypes,
1838 which can conflict with char $2 (); below.
1839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1840 <limits.h> exists even on freestanding compilers. */
1841
1842#ifdef __STDC__
1843# include <limits.h>
1844#else
1845# include <assert.h>
1846#endif
1847
1848#undef $2
1849
1850/* Override any GCC internal prototype to avoid an error.
1851 Use char because int might match the return type of a GCC
1852 builtin and then its argument prototype would still apply. */
1853#ifdef __cplusplus
1854extern "C"
1855#endif
1856char $2 ();
1857/* The GNU C library defines this for functions which it implements
1858 to always fail with ENOSYS. Some functions are actually named
1859 something starting with __ and the normal name is an alias. */
1860#if defined __stub_$2 || defined __stub___$2
1861choke me
1862#endif
1863
1864int
1865main ()
1866{
1867return $2 ();
1868 ;
1869 return 0;
1870}
1871_ACEOF
1872if ac_fn_c_try_link "$LINENO"; then :
1873 eval "$3=yes"
1874else
1875 eval "$3=no"
1876fi
1877rm -f core conftest.err conftest.$ac_objext \
1878 conftest$ac_exeext conftest.$ac_ext
1879fi
1880eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882$as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885} # ac_fn_c_check_func
1886
1887# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888# -------------------------------------------------------
1889# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890# the include files in INCLUDES and setting the cache variable VAR
1891# accordingly.
1892ac_fn_c_check_header_mongrel ()
1893{
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if eval \${$3+:} false; then :
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897$as_echo_n "checking for $2... " >&6; }
1898if eval \${$3+:} false; then :
1899 $as_echo_n "(cached) " >&6
1900fi
1901eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903$as_echo "$ac_res" >&6; }
1904else
1905 # Is the header compilable?
1906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907$as_echo_n "checking $2 usability... " >&6; }
1908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909/* end confdefs.h. */
1910$4
1911#include <$2>
1912_ACEOF
1913if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_header_compiler=yes
1915else
1916 ac_header_compiler=no
1917fi
1918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920$as_echo "$ac_header_compiler" >&6; }
1921
1922# Is the header present?
1923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924$as_echo_n "checking $2 presence... " >&6; }
1925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926/* end confdefs.h. */
1927#include <$2>
1928_ACEOF
1929if ac_fn_c_try_cpp "$LINENO"; then :
1930 ac_header_preproc=yes
1931else
1932 ac_header_preproc=no
1933fi
1934rm -f conftest.err conftest.i conftest.$ac_ext
1935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936$as_echo "$ac_header_preproc" >&6; }
1937
1938# So? What about this header?
1939case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1940 yes:no: )
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 ;;
1946 no:yes:* )
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1950$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1954$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957( $as_echo "## ---------------------------- ##
1958## Report this to opus@xiph.org ##
1959## ---------------------------- ##"
1960 ) | sed "s/^/$as_me: WARNING: /" >&2
1961 ;;
1962esac
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964$as_echo_n "checking for $2... " >&6; }
1965if eval \${$3+:} false; then :
1966 $as_echo_n "(cached) " >&6
1967else
1968 eval "$3=\$ac_header_compiler"
1969fi
1970eval ac_res=\$$3
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972$as_echo "$ac_res" >&6; }
1973fi
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976} # ac_fn_c_check_header_mongrel
1977cat >config.log <<_ACEOF
1978This file contains any messages produced by compilers while
1979running configure, to aid debugging if configure makes a mistake.
1980
flimc91ee5b2016-01-26 14:33:44 +01001981It was created by opus $as_me 1.1.2, which was
1982generated by GNU Autoconf 2.69. Invocation command line was
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08001983
1984 $ $0 $@
1985
1986_ACEOF
1987exec 5>>config.log
1988{
1989cat <<_ASUNAME
1990## --------- ##
1991## Platform. ##
1992## --------- ##
1993
1994hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1995uname -m = `(uname -m) 2>/dev/null || echo unknown`
1996uname -r = `(uname -r) 2>/dev/null || echo unknown`
1997uname -s = `(uname -s) 2>/dev/null || echo unknown`
1998uname -v = `(uname -v) 2>/dev/null || echo unknown`
1999
2000/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2001/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2002
2003/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2004/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2005/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2006/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2007/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2008/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2009/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2010
2011_ASUNAME
2012
2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014for as_dir in $PATH
2015do
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
2018 $as_echo "PATH: $as_dir"
2019 done
2020IFS=$as_save_IFS
2021
2022} >&5
2023
2024cat >&5 <<_ACEOF
2025
2026
2027## ----------- ##
2028## Core tests. ##
2029## ----------- ##
2030
2031_ACEOF
2032
2033
2034# Keep a trace of the command line.
2035# Strip out --no-create and --no-recursion so they do not pile up.
2036# Strip out --silent because we don't want to record it for future runs.
2037# Also quote any args containing shell meta-characters.
2038# Make two passes to allow for proper duplicate-argument suppression.
2039ac_configure_args=
2040ac_configure_args0=
2041ac_configure_args1=
2042ac_must_keep_next=false
2043for ac_pass in 1 2
2044do
2045 for ac_arg
2046 do
2047 case $ac_arg in
2048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2050 | -silent | --silent | --silen | --sile | --sil)
2051 continue ;;
2052 *\'*)
2053 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2054 esac
2055 case $ac_pass in
2056 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2057 2)
2058 as_fn_append ac_configure_args1 " '$ac_arg'"
2059 if test $ac_must_keep_next = true; then
2060 ac_must_keep_next=false # Got value, back to normal.
2061 else
2062 case $ac_arg in
2063 *=* | --config-cache | -C | -disable-* | --disable-* \
2064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2066 | -with-* | --with-* | -without-* | --without-* | --x)
2067 case "$ac_configure_args0 " in
2068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2069 esac
2070 ;;
2071 -* ) ac_must_keep_next=true ;;
2072 esac
2073 fi
2074 as_fn_append ac_configure_args " '$ac_arg'"
2075 ;;
2076 esac
2077 done
2078done
2079{ ac_configure_args0=; unset ac_configure_args0;}
2080{ ac_configure_args1=; unset ac_configure_args1;}
2081
2082# When interrupted or exit'd, cleanup temporary files, and complete
2083# config.log. We remove comments because anyway the quotes in there
2084# would cause problems or look ugly.
2085# WARNING: Use '\'' to represent an apostrophe within the trap.
2086# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2087trap 'exit_status=$?
2088 # Save into config.log some information that might help in debugging.
2089 {
2090 echo
2091
2092 $as_echo "## ---------------- ##
2093## Cache variables. ##
2094## ---------------- ##"
2095 echo
2096 # The following way of writing the cache mishandles newlines in values,
2097(
2098 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2099 eval ac_val=\$$ac_var
2100 case $ac_val in #(
2101 *${as_nl}*)
2102 case $ac_var in #(
2103 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2104$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2105 esac
2106 case $ac_var in #(
2107 _ | IFS | as_nl) ;; #(
2108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2109 *) { eval $ac_var=; unset $ac_var;} ;;
2110 esac ;;
2111 esac
2112 done
2113 (set) 2>&1 |
2114 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2115 *${as_nl}ac_space=\ *)
2116 sed -n \
2117 "s/'\''/'\''\\\\'\'''\''/g;
2118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2119 ;; #(
2120 *)
2121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2122 ;;
2123 esac |
2124 sort
2125)
2126 echo
2127
2128 $as_echo "## ----------------- ##
2129## Output variables. ##
2130## ----------------- ##"
2131 echo
2132 for ac_var in $ac_subst_vars
2133 do
2134 eval ac_val=\$$ac_var
2135 case $ac_val in
2136 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2137 esac
2138 $as_echo "$ac_var='\''$ac_val'\''"
2139 done | sort
2140 echo
2141
2142 if test -n "$ac_subst_files"; then
2143 $as_echo "## ------------------- ##
2144## File substitutions. ##
2145## ------------------- ##"
2146 echo
2147 for ac_var in $ac_subst_files
2148 do
2149 eval ac_val=\$$ac_var
2150 case $ac_val in
2151 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2152 esac
2153 $as_echo "$ac_var='\''$ac_val'\''"
2154 done | sort
2155 echo
2156 fi
2157
2158 if test -s confdefs.h; then
2159 $as_echo "## ----------- ##
2160## confdefs.h. ##
2161## ----------- ##"
2162 echo
2163 cat confdefs.h
2164 echo
2165 fi
2166 test "$ac_signal" != 0 &&
2167 $as_echo "$as_me: caught signal $ac_signal"
2168 $as_echo "$as_me: exit $exit_status"
2169 } >&5
2170 rm -f core *.core core.conftest.* &&
2171 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2172 exit $exit_status
2173' 0
2174for ac_signal in 1 2 13 15; do
2175 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2176done
2177ac_signal=0
2178
2179# confdefs.h avoids OS command line length limits that DEFS can exceed.
2180rm -f -r conftest* confdefs.h
2181
2182$as_echo "/* confdefs.h */" > confdefs.h
2183
2184# Predefined preprocessor variables.
2185
2186cat >>confdefs.h <<_ACEOF
2187#define PACKAGE_NAME "$PACKAGE_NAME"
2188_ACEOF
2189
2190cat >>confdefs.h <<_ACEOF
2191#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2192_ACEOF
2193
2194cat >>confdefs.h <<_ACEOF
2195#define PACKAGE_VERSION "$PACKAGE_VERSION"
2196_ACEOF
2197
2198cat >>confdefs.h <<_ACEOF
2199#define PACKAGE_STRING "$PACKAGE_STRING"
2200_ACEOF
2201
2202cat >>confdefs.h <<_ACEOF
2203#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2204_ACEOF
2205
2206cat >>confdefs.h <<_ACEOF
2207#define PACKAGE_URL "$PACKAGE_URL"
2208_ACEOF
2209
2210
2211# Let the site file select an alternate cache file if it wants to.
2212# Prefer an explicitly selected file to automatically selected ones.
2213ac_site_file1=NONE
2214ac_site_file2=NONE
2215if test -n "$CONFIG_SITE"; then
2216 # We do not want a PATH search for config.site.
2217 case $CONFIG_SITE in #((
2218 -*) ac_site_file1=./$CONFIG_SITE;;
2219 */*) ac_site_file1=$CONFIG_SITE;;
2220 *) ac_site_file1=./$CONFIG_SITE;;
2221 esac
2222elif test "x$prefix" != xNONE; then
2223 ac_site_file1=$prefix/share/config.site
2224 ac_site_file2=$prefix/etc/config.site
2225else
2226 ac_site_file1=$ac_default_prefix/share/config.site
2227 ac_site_file2=$ac_default_prefix/etc/config.site
2228fi
2229for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2230do
2231 test "x$ac_site_file" = xNONE && continue
2232 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2234$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2235 sed 's/^/| /' "$ac_site_file" >&5
2236 . "$ac_site_file" \
2237 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2239as_fn_error $? "failed to load site script $ac_site_file
2240See \`config.log' for more details" "$LINENO" 5; }
2241 fi
2242done
2243
2244if test -r "$cache_file"; then
2245 # Some versions of bash will fail to source /dev/null (special files
2246 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2247 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2249$as_echo "$as_me: loading cache $cache_file" >&6;}
2250 case $cache_file in
2251 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2252 *) . "./$cache_file";;
2253 esac
2254 fi
2255else
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2257$as_echo "$as_me: creating cache $cache_file" >&6;}
2258 >$cache_file
2259fi
2260
2261# Check that the precious variables saved in the cache have kept the same
2262# value.
2263ac_cache_corrupted=false
2264for ac_var in $ac_precious_vars; do
2265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2266 eval ac_new_set=\$ac_env_${ac_var}_set
2267 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2268 eval ac_new_val=\$ac_env_${ac_var}_value
2269 case $ac_old_set,$ac_new_set in
2270 set,)
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2272$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2273 ac_cache_corrupted=: ;;
2274 ,set)
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2276$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2277 ac_cache_corrupted=: ;;
2278 ,);;
2279 *)
2280 if test "x$ac_old_val" != "x$ac_new_val"; then
2281 # differences in whitespace do not lead to failure.
2282 ac_old_val_w=`echo x $ac_old_val`
2283 ac_new_val_w=`echo x $ac_new_val`
2284 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2286$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2287 ac_cache_corrupted=:
2288 else
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2290$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2291 eval $ac_var=\$ac_old_val
2292 fi
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2294$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2296$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2297 fi;;
2298 esac
2299 # Pass precious variables to config.status.
2300 if test "$ac_new_set" = set; then
2301 case $ac_new_val in
2302 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2303 *) ac_arg=$ac_var=$ac_new_val ;;
2304 esac
2305 case " $ac_configure_args " in
2306 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2307 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2308 esac
2309 fi
2310done
2311if $ac_cache_corrupted; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2315$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2316 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2317fi
2318## -------------------- ##
2319## Main body of script. ##
2320## -------------------- ##
2321
2322ac_ext=c
2323ac_cpp='$CPP $CPPFLAGS'
2324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2326ac_compiler_gnu=$ac_cv_c_compiler_gnu
2327
2328
2329
2330
2331
2332
2333# Check whether --enable-silent-rules was given.
2334if test "${enable_silent_rules+set}" = set; then :
2335 enableval=$enable_silent_rules;
2336fi
2337
flimc91ee5b2016-01-26 14:33:44 +01002338case $enable_silent_rules in # (((
2339 yes) AM_DEFAULT_VERBOSITY=0;;
2340 no) AM_DEFAULT_VERBOSITY=1;;
2341 *) AM_DEFAULT_VERBOSITY=0;;
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002342esac
2343am_make=${MAKE-make}
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2345$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2346if ${am_cv_make_support_nested_variables+:} false; then :
2347 $as_echo_n "(cached) " >&6
2348else
2349 if $as_echo 'TRUE=$(BAR$(V))
2350BAR0=false
2351BAR1=true
2352V=1
2353am__doit:
2354 @$(TRUE)
2355.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2356 am_cv_make_support_nested_variables=yes
2357else
2358 am_cv_make_support_nested_variables=no
2359fi
2360fi
2361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2362$as_echo "$am_cv_make_support_nested_variables" >&6; }
2363if test $am_cv_make_support_nested_variables = yes; then
2364 AM_V='$(V)'
2365 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2366else
2367 AM_V=$AM_DEFAULT_VERBOSITY
2368 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2369fi
2370AM_BACKSLASH='\'
2371
2372
2373# For libtool.
2374OPUS_LT_CURRENT=5
flimc91ee5b2016-01-26 14:33:44 +01002375OPUS_LT_REVISION=2
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002376OPUS_LT_AGE=5
2377
2378
2379
2380
2381
flimc91ee5b2016-01-26 14:33:44 +01002382am__api_version='1.15'
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002383
2384ac_aux_dir=
2385for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2386 if test -f "$ac_dir/install-sh"; then
2387 ac_aux_dir=$ac_dir
2388 ac_install_sh="$ac_aux_dir/install-sh -c"
2389 break
2390 elif test -f "$ac_dir/install.sh"; then
2391 ac_aux_dir=$ac_dir
2392 ac_install_sh="$ac_aux_dir/install.sh -c"
2393 break
2394 elif test -f "$ac_dir/shtool"; then
2395 ac_aux_dir=$ac_dir
2396 ac_install_sh="$ac_aux_dir/shtool install -c"
2397 break
2398 fi
2399done
2400if test -z "$ac_aux_dir"; then
2401 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2402fi
2403
2404# These three variables are undocumented and unsupported,
2405# and are intended to be withdrawn in a future Autoconf release.
2406# They can cause serious problems if a builder's source tree is in a directory
2407# whose full name contains unusual characters.
2408ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2409ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2410ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2411
2412
2413# Find a good install program. We prefer a C program (faster),
2414# so one script is as good as another. But avoid the broken or
2415# incompatible versions:
2416# SysV /etc/install, /usr/sbin/install
2417# SunOS /usr/etc/install
2418# IRIX /sbin/install
2419# AIX /bin/install
2420# AmigaOS /C/install, which installs bootblocks on floppy discs
2421# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2422# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2423# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2424# OS/2's system install, which has a completely different semantic
2425# ./install, which can be erroneously created by make from ./install.sh.
2426# Reject install programs that cannot install multiple files.
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2428$as_echo_n "checking for a BSD-compatible install... " >&6; }
2429if test -z "$INSTALL"; then
2430if ${ac_cv_path_install+:} false; then :
2431 $as_echo_n "(cached) " >&6
2432else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434for as_dir in $PATH
2435do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 # Account for people who put trailing slashes in PATH elements.
2439case $as_dir/ in #((
2440 ./ | .// | /[cC]/* | \
2441 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2442 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2443 /usr/ucb/* ) ;;
2444 *)
2445 # OSF1 and SCO ODT 3.0 have their own names for install.
2446 # Don't use installbsd from OSF since it installs stuff as root
2447 # by default.
2448 for ac_prog in ginstall scoinst install; do
2449 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01002450 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002451 if test $ac_prog = install &&
2452 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2453 # AIX install. It has an incompatible calling convention.
2454 :
2455 elif test $ac_prog = install &&
2456 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457 # program-specific install script used by HP pwplus--don't use.
2458 :
2459 else
2460 rm -rf conftest.one conftest.two conftest.dir
2461 echo one > conftest.one
2462 echo two > conftest.two
2463 mkdir conftest.dir
2464 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2465 test -s conftest.one && test -s conftest.two &&
2466 test -s conftest.dir/conftest.one &&
2467 test -s conftest.dir/conftest.two
2468 then
2469 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2470 break 3
2471 fi
2472 fi
2473 fi
2474 done
2475 done
2476 ;;
2477esac
2478
2479 done
2480IFS=$as_save_IFS
2481
2482rm -rf conftest.one conftest.two conftest.dir
2483
2484fi
2485 if test "${ac_cv_path_install+set}" = set; then
2486 INSTALL=$ac_cv_path_install
2487 else
2488 # As a last resort, use the slow shell script. Don't cache a
2489 # value for INSTALL within a source directory, because that will
2490 # break other packages using the cache if that directory is
2491 # removed, or if the value is a relative name.
2492 INSTALL=$ac_install_sh
2493 fi
2494fi
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2496$as_echo "$INSTALL" >&6; }
2497
2498# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2499# It thinks the first close brace ends the variable substitution.
2500test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2501
2502test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2503
2504test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2505
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2507$as_echo_n "checking whether build environment is sane... " >&6; }
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002508# Reject unsafe characters in $srcdir or the absolute working directory
2509# name. Accept space and tab only in the latter.
2510am_lf='
2511'
2512case `pwd` in
2513 *[\\\"\#\$\&\'\`$am_lf]*)
2514 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2515esac
2516case $srcdir in
2517 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
flimc91ee5b2016-01-26 14:33:44 +01002518 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002519esac
2520
flimc91ee5b2016-01-26 14:33:44 +01002521# Do 'set' in a subshell so we don't clobber the current shell's
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002522# arguments. Must try -L first in case configure is actually a
2523# symlink; some systems play weird games with the mod time of symlinks
2524# (eg FreeBSD returns the mod time of the symlink's containing
2525# directory).
2526if (
flimc91ee5b2016-01-26 14:33:44 +01002527 am_has_slept=no
2528 for am_try in 1 2; do
2529 echo "timestamp, slept: $am_has_slept" > conftest.file
2530 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2531 if test "$*" = "X"; then
2532 # -L didn't work.
2533 set X `ls -t "$srcdir/configure" conftest.file`
2534 fi
2535 if test "$*" != "X $srcdir/configure conftest.file" \
2536 && test "$*" != "X conftest.file $srcdir/configure"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002537
flimc91ee5b2016-01-26 14:33:44 +01002538 # If neither matched, then we have a broken ls. This can happen
2539 # if, for instance, CONFIG_SHELL is bash and it inherits a
2540 # broken ls alias from the environment. This has actually
2541 # happened. Such a system could not be considered "sane".
2542 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2543 alias in your environment" "$LINENO" 5
2544 fi
2545 if test "$2" = conftest.file || test $am_try -eq 2; then
2546 break
2547 fi
2548 # Just in case.
2549 sleep 1
2550 am_has_slept=yes
2551 done
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002552 test "$2" = conftest.file
2553 )
2554then
2555 # Ok.
2556 :
2557else
2558 as_fn_error $? "newly created file is older than distributed files!
2559Check your system clock" "$LINENO" 5
2560fi
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2562$as_echo "yes" >&6; }
flimc91ee5b2016-01-26 14:33:44 +01002563# If we didn't sleep, we still need to ensure time stamps of config.status and
2564# generated files are strictly newer.
2565am_sleep_pid=
2566if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2567 ( sleep 1 ) &
2568 am_sleep_pid=$!
2569fi
2570
2571rm -f conftest.file
2572
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002573test "$program_prefix" != NONE &&
2574 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2575# Use a double $ so make ignores it.
2576test "$program_suffix" != NONE &&
2577 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2578# Double any \ or $.
2579# By default was `s,x,x', remove it if useless.
2580ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2581program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2582
flimc91ee5b2016-01-26 14:33:44 +01002583# Expand $ac_aux_dir to an absolute path.
2584am_aux_dir=`cd "$ac_aux_dir" && pwd`
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002585
2586if test x"${MISSING+set}" != xset; then
2587 case $am_aux_dir in
2588 *\ * | *\ *)
2589 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2590 *)
2591 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2592 esac
2593fi
2594# Use eval to expand $SHELL
flimc91ee5b2016-01-26 14:33:44 +01002595if eval "$MISSING --is-lightweight"; then
2596 am_missing_run="$MISSING "
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002597else
2598 am_missing_run=
flimc91ee5b2016-01-26 14:33:44 +01002599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2600$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002601fi
2602
flimc91ee5b2016-01-26 14:33:44 +01002603if test x"${install_sh+set}" != xset; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002604 case $am_aux_dir in
2605 *\ * | *\ *)
2606 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2607 *)
2608 install_sh="\${SHELL} $am_aux_dir/install-sh"
2609 esac
2610fi
2611
flimc91ee5b2016-01-26 14:33:44 +01002612# Installed binaries are usually stripped using 'strip' when the user
2613# run "make install-strip". However 'strip' might not be the right
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002614# tool to use in cross-compilation environments, therefore Automake
flimc91ee5b2016-01-26 14:33:44 +01002615# will honor the 'STRIP' environment variable to overrule this program.
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002616if test "$cross_compiling" != no; then
2617 if test -n "$ac_tool_prefix"; then
2618 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2619set dummy ${ac_tool_prefix}strip; ac_word=$2
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621$as_echo_n "checking for $ac_word... " >&6; }
2622if ${ac_cv_prog_STRIP+:} false; then :
2623 $as_echo_n "(cached) " >&6
2624else
2625 if test -n "$STRIP"; then
2626 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2627else
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01002634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002635 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639done
2640 done
2641IFS=$as_save_IFS
2642
2643fi
2644fi
2645STRIP=$ac_cv_prog_STRIP
2646if test -n "$STRIP"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2648$as_echo "$STRIP" >&6; }
2649else
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651$as_echo "no" >&6; }
2652fi
2653
2654
2655fi
2656if test -z "$ac_cv_prog_STRIP"; then
2657 ac_ct_STRIP=$STRIP
2658 # Extract the first word of "strip", so it can be a program name with args.
2659set dummy strip; ac_word=$2
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661$as_echo_n "checking for $ac_word... " >&6; }
2662if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2663 $as_echo_n "(cached) " >&6
2664else
2665 if test -n "$ac_ct_STRIP"; then
2666 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2667else
2668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH
2670do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01002674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002675 ac_cv_prog_ac_ct_STRIP="strip"
2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679done
2680 done
2681IFS=$as_save_IFS
2682
2683fi
2684fi
2685ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2686if test -n "$ac_ct_STRIP"; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2688$as_echo "$ac_ct_STRIP" >&6; }
2689else
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691$as_echo "no" >&6; }
2692fi
2693
2694 if test "x$ac_ct_STRIP" = x; then
2695 STRIP=":"
2696 else
2697 case $cross_compiling:$ac_tool_warned in
2698yes:)
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2701ac_tool_warned=yes ;;
2702esac
2703 STRIP=$ac_ct_STRIP
2704 fi
2705else
2706 STRIP="$ac_cv_prog_STRIP"
2707fi
2708
2709fi
2710INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2711
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2713$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2714if test -z "$MKDIR_P"; then
2715 if ${ac_cv_path_mkdir+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717else
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2720do
2721 IFS=$as_save_IFS
2722 test -z "$as_dir" && as_dir=.
2723 for ac_prog in mkdir gmkdir; do
2724 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01002725 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002726 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2727 'mkdir (GNU coreutils) '* | \
2728 'mkdir (coreutils) '* | \
2729 'mkdir (fileutils) '4.1*)
2730 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2731 break 3;;
2732 esac
2733 done
2734 done
2735 done
2736IFS=$as_save_IFS
2737
2738fi
2739
2740 test -d ./--version && rmdir ./--version
2741 if test "${ac_cv_path_mkdir+set}" = set; then
2742 MKDIR_P="$ac_cv_path_mkdir -p"
2743 else
2744 # As a last resort, use the slow shell script. Don't cache a
2745 # value for MKDIR_P within a source directory, because that will
2746 # break other packages using the cache if that directory is
2747 # removed, or if the value is a relative name.
2748 MKDIR_P="$ac_install_sh -d"
2749 fi
2750fi
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2752$as_echo "$MKDIR_P" >&6; }
2753
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002754for ac_prog in gawk mawk nawk awk
2755do
2756 # Extract the first word of "$ac_prog", so it can be a program name with args.
2757set dummy $ac_prog; ac_word=$2
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759$as_echo_n "checking for $ac_word... " >&6; }
2760if ${ac_cv_prog_AWK+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762else
2763 if test -n "$AWK"; then
2764 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2765else
2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767for as_dir in $PATH
2768do
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01002772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002773 ac_cv_prog_AWK="$ac_prog"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 break 2
2776 fi
2777done
2778 done
2779IFS=$as_save_IFS
2780
2781fi
2782fi
2783AWK=$ac_cv_prog_AWK
2784if test -n "$AWK"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2786$as_echo "$AWK" >&6; }
2787else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789$as_echo "no" >&6; }
2790fi
2791
2792
2793 test -n "$AWK" && break
2794done
2795
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2797$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2798set x ${MAKE-make}
2799ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2800if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2801 $as_echo_n "(cached) " >&6
2802else
2803 cat >conftest.make <<\_ACEOF
2804SHELL = /bin/sh
2805all:
2806 @echo '@@@%%%=$(MAKE)=@@@%%%'
2807_ACEOF
2808# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2809case `${MAKE-make} -f conftest.make 2>/dev/null` in
2810 *@@@%%%=?*=@@@%%%*)
2811 eval ac_cv_prog_make_${ac_make}_set=yes;;
2812 *)
2813 eval ac_cv_prog_make_${ac_make}_set=no;;
2814esac
2815rm -f conftest.make
2816fi
2817if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2819$as_echo "yes" >&6; }
2820 SET_MAKE=
2821else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823$as_echo "no" >&6; }
2824 SET_MAKE="MAKE=${MAKE-make}"
2825fi
2826
2827rm -rf .tst 2>/dev/null
2828mkdir .tst 2>/dev/null
2829if test -d .tst; then
2830 am__leading_dot=.
2831else
2832 am__leading_dot=_
2833fi
2834rmdir .tst 2>/dev/null
2835
2836if test "`cd $srcdir && pwd`" != "`pwd`"; then
2837 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2838 # is not polluted with repeated "-I."
2839 am__isrc=' -I$(srcdir)'
2840 # test to see if srcdir already configured
2841 if test -f $srcdir/config.status; then
2842 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2843 fi
2844fi
2845
2846# test whether we have cygpath
2847if test -z "$CYGPATH_W"; then
2848 if (cygpath --version) >/dev/null 2>/dev/null; then
2849 CYGPATH_W='cygpath -w'
2850 else
2851 CYGPATH_W=echo
2852 fi
2853fi
2854
2855
2856# Define the identity of the package.
2857 PACKAGE='opus'
flimc91ee5b2016-01-26 14:33:44 +01002858 VERSION='1.1.2'
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002859
2860
2861# Some tools Automake needs.
2862
2863ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2864
2865
2866AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2867
2868
2869AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2870
2871
2872AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2873
2874
2875MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2876
flimc91ee5b2016-01-26 14:33:44 +01002877# For better backward compatibility. To be removed once Automake 1.9.x
2878# dies out for good. For more background, see:
2879# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2880# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2881mkdir_p='$(MKDIR_P)'
2882
2883# We need awk for the "check" target (and possibly the TAP driver). The
2884# system "awk" is bad on some platforms.
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002885# Always define AMTAR for backward compatibility. Yes, it's still used
2886# in the wild :-( We should find a proper way to deprecate it ...
2887AMTAR='$${TAR-tar}'
2888
flimc91ee5b2016-01-26 14:33:44 +01002889
2890# We'll loop over all known methods to create a tar archive until one works.
2891_am_tools='gnutar pax cpio none'
2892
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002893am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2894
2895
2896
2897
2898
2899
flimc91ee5b2016-01-26 14:33:44 +01002900# POSIX will say in a future version that running "rm -f" with no argument
2901# is OK; and we want to be able to make that assumption in our Makefile
2902# recipes. So use an aggressive probe to check that the usage we want is
2903# actually supported "in the wild" to an acceptable degree.
2904# See automake bug#10828.
2905# To make any issue more visible, cause the running configure to be aborted
2906# by default if the 'rm' program in use doesn't match our expectations; the
2907# user can still override this though.
2908if rm -f && rm -fr && rm -rf; then : OK; else
2909 cat >&2 <<'END'
2910Oops!
2911
2912Your 'rm' program seems unable to run without file operands specified
2913on the command line, even when the '-f' option is present. This is contrary
2914to the behaviour of most rm programs out there, and not conforming with
2915the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2916
2917Please tell bug-automake@gnu.org about your system, including the value
2918of your $PATH and any error possibly output before this message. This
2919can help us improve future automake versions.
2920
2921END
2922 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2923 echo 'Configuration will proceed anyway, since you have set the' >&2
2924 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2925 echo >&2
2926 else
2927 cat >&2 <<'END'
2928Aborting the configuration process, to ensure you take notice of the issue.
2929
2930You can download and install GNU coreutils to get an 'rm' implementation
2931that behaves properly: <http://www.gnu.org/software/coreutils/>.
2932
2933If you want to complete the configuration process using your problematic
2934'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2935to "yes", and re-run configure.
2936
2937END
2938 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2939 fi
2940fi
2941
2942
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08002943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2944$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2945 # Check whether --enable-maintainer-mode was given.
2946if test "${enable_maintainer_mode+set}" = set; then :
2947 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2948else
2949 USE_MAINTAINER_MODE=yes
2950fi
2951
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2953$as_echo "$USE_MAINTAINER_MODE" >&6; }
2954 if test $USE_MAINTAINER_MODE = yes; then
2955 MAINTAINER_MODE_TRUE=
2956 MAINTAINER_MODE_FALSE='#'
2957else
2958 MAINTAINER_MODE_TRUE='#'
2959 MAINTAINER_MODE_FALSE=
2960fi
2961
2962 MAINT=$MAINTAINER_MODE_TRUE
2963
2964
2965
2966# Make sure we can run config.sub.
2967$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2968 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2969
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2971$as_echo_n "checking build system type... " >&6; }
2972if ${ac_cv_build+:} false; then :
2973 $as_echo_n "(cached) " >&6
2974else
2975 ac_build_alias=$build_alias
2976test "x$ac_build_alias" = x &&
2977 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2978test "x$ac_build_alias" = x &&
2979 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2980ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2981 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2982
2983fi
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2985$as_echo "$ac_cv_build" >&6; }
2986case $ac_cv_build in
2987*-*-*) ;;
2988*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2989esac
2990build=$ac_cv_build
2991ac_save_IFS=$IFS; IFS='-'
2992set x $ac_cv_build
2993shift
2994build_cpu=$1
2995build_vendor=$2
2996shift; shift
2997# Remember, the first character of IFS is used to create $*,
2998# except with old shells:
2999build_os=$*
3000IFS=$ac_save_IFS
3001case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3002
3003
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3005$as_echo_n "checking host system type... " >&6; }
3006if ${ac_cv_host+:} false; then :
3007 $as_echo_n "(cached) " >&6
3008else
3009 if test "x$host_alias" = x; then
3010 ac_cv_host=$ac_cv_build
3011else
3012 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3013 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3014fi
3015
3016fi
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3018$as_echo "$ac_cv_host" >&6; }
3019case $ac_cv_host in
3020*-*-*) ;;
3021*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3022esac
3023host=$ac_cv_host
3024ac_save_IFS=$IFS; IFS='-'
3025set x $ac_cv_host
3026shift
3027host_cpu=$1
3028host_vendor=$2
3029shift; shift
3030# Remember, the first character of IFS is used to create $*,
3031# except with old shells:
3032host_os=$*
3033IFS=$ac_save_IFS
3034case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3035
3036
3037
3038case $host_os in
3039 *mingw32* ) MINGW32=yes;;
3040 * ) MINGW32=no;;
3041esac
3042
3043case `pwd` in
3044 *\ * | *\ *)
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3046$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3047esac
3048
3049
3050
3051macro_version='2.4.2'
3052macro_revision='1.3337'
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066ltmain="$ac_aux_dir/ltmain.sh"
3067
3068# Backslashify metacharacters that are still active within
3069# double-quoted strings.
3070sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3071
3072# Same as above, but do not quote variable references.
3073double_quote_subst='s/\(["`\\]\)/\\\1/g'
3074
3075# Sed substitution to delay expansion of an escaped shell variable in a
3076# double_quote_subst'ed string.
3077delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3078
3079# Sed substitution to delay expansion of an escaped single quote.
3080delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3081
3082# Sed substitution to avoid accidental globbing in evaled expressions
3083no_glob_subst='s/\*/\\\*/g'
3084
3085ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3086ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3087ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3088
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3090$as_echo_n "checking how to print strings... " >&6; }
3091# Test print first, because it will be a builtin if present.
3092if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3093 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3094 ECHO='print -r --'
3095elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3096 ECHO='printf %s\n'
3097else
3098 # Use this function as a fallback that always works.
3099 func_fallback_echo ()
3100 {
3101 eval 'cat <<_LTECHO_EOF
3102$1
3103_LTECHO_EOF'
3104 }
3105 ECHO='func_fallback_echo'
3106fi
3107
3108# func_echo_all arg...
3109# Invoke $ECHO with all args, space-separated.
3110func_echo_all ()
3111{
3112 $ECHO ""
3113}
3114
3115case "$ECHO" in
3116 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3117$as_echo "printf" >&6; } ;;
3118 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3119$as_echo "print -r" >&6; } ;;
3120 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3121$as_echo "cat" >&6; } ;;
3122esac
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137DEPDIR="${am__leading_dot}deps"
3138
3139ac_config_commands="$ac_config_commands depfiles"
3140
3141
3142am_make=${MAKE-make}
3143cat > confinc << 'END'
3144am__doit:
3145 @echo this is the am__doit target
3146.PHONY: am__doit
3147END
3148# If we don't find an include directive, just comment out the code.
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3150$as_echo_n "checking for style of include used by $am_make... " >&6; }
3151am__include="#"
3152am__quote=
3153_am_result=none
3154# First try GNU make style include.
3155echo "include confinc" > confmf
flimc91ee5b2016-01-26 14:33:44 +01003156# Ignore all kinds of additional output from 'make'.
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08003157case `$am_make -s -f confmf 2> /dev/null` in #(
3158*the\ am__doit\ target*)
3159 am__include=include
3160 am__quote=
3161 _am_result=GNU
3162 ;;
3163esac
3164# Now try BSD make style include.
3165if test "$am__include" = "#"; then
3166 echo '.include "confinc"' > confmf
3167 case `$am_make -s -f confmf 2> /dev/null` in #(
3168 *the\ am__doit\ target*)
3169 am__include=.include
3170 am__quote="\""
3171 _am_result=BSD
3172 ;;
3173 esac
3174fi
3175
3176
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3178$as_echo "$_am_result" >&6; }
3179rm -f confinc confmf
3180
3181# Check whether --enable-dependency-tracking was given.
3182if test "${enable_dependency_tracking+set}" = set; then :
3183 enableval=$enable_dependency_tracking;
3184fi
3185
3186if test "x$enable_dependency_tracking" != xno; then
3187 am_depcomp="$ac_aux_dir/depcomp"
3188 AMDEPBACKSLASH='\'
3189 am__nodep='_no'
3190fi
3191 if test "x$enable_dependency_tracking" != xno; then
3192 AMDEP_TRUE=
3193 AMDEP_FALSE='#'
3194else
3195 AMDEP_TRUE='#'
3196 AMDEP_FALSE=
3197fi
3198
3199
3200ac_ext=c
3201ac_cpp='$CPP $CPPFLAGS'
3202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205if test -n "$ac_tool_prefix"; then
3206 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3207set dummy ${ac_tool_prefix}gcc; ac_word=$2
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209$as_echo_n "checking for $ac_word... " >&6; }
3210if ${ac_cv_prog_CC+:} false; then :
3211 $as_echo_n "(cached) " >&6
3212else
3213 if test -n "$CC"; then
3214 ac_cv_prog_CC="$CC" # Let the user override the test.
3215else
3216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217for as_dir in $PATH
3218do
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01003222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08003223 ac_cv_prog_CC="${ac_tool_prefix}gcc"
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
3231fi
3232fi
3233CC=$ac_cv_prog_CC
3234if test -n "$CC"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3236$as_echo "$CC" >&6; }
3237else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239$as_echo "no" >&6; }
3240fi
3241
3242
3243fi
3244if test -z "$ac_cv_prog_CC"; then
3245 ac_ct_CC=$CC
3246 # Extract the first word of "gcc", so it can be a program name with args.
3247set dummy gcc; ac_word=$2
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249$as_echo_n "checking for $ac_word... " >&6; }
3250if ${ac_cv_prog_ac_ct_CC+:} false; then :
3251 $as_echo_n "(cached) " >&6
3252else
3253 if test -n "$ac_ct_CC"; then
3254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3255else
3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257for as_dir in $PATH
3258do
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01003262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08003263 ac_cv_prog_ac_ct_CC="gcc"
3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3266 fi
3267done
3268 done
3269IFS=$as_save_IFS
3270
3271fi
3272fi
3273ac_ct_CC=$ac_cv_prog_ac_ct_CC
3274if test -n "$ac_ct_CC"; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3276$as_echo "$ac_ct_CC" >&6; }
3277else
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279$as_echo "no" >&6; }
3280fi
3281
3282 if test "x$ac_ct_CC" = x; then
3283 CC=""
3284 else
3285 case $cross_compiling:$ac_tool_warned in
3286yes:)
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3289ac_tool_warned=yes ;;
3290esac
3291 CC=$ac_ct_CC
3292 fi
3293else
3294 CC="$ac_cv_prog_CC"
3295fi
3296
3297if test -z "$CC"; then
3298 if test -n "$ac_tool_prefix"; then
3299 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3300set dummy ${ac_tool_prefix}cc; ac_word=$2
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302$as_echo_n "checking for $ac_word... " >&6; }
3303if ${ac_cv_prog_CC+:} false; then :
3304 $as_echo_n "(cached) " >&6
3305else
3306 if test -n "$CC"; then
3307 ac_cv_prog_CC="$CC" # Let the user override the test.
3308else
3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310for as_dir in $PATH
3311do
3312 IFS=$as_save_IFS
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01003315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08003316 ac_cv_prog_CC="${ac_tool_prefix}cc"
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 break 2
3319 fi
3320done
3321 done
3322IFS=$as_save_IFS
3323
3324fi
3325fi
3326CC=$ac_cv_prog_CC
3327if test -n "$CC"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329$as_echo "$CC" >&6; }
3330else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332$as_echo "no" >&6; }
3333fi
3334
3335
3336 fi
3337fi
3338if test -z "$CC"; then
3339 # Extract the first word of "cc", so it can be a program name with args.
3340set dummy cc; ac_word=$2
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342$as_echo_n "checking for $ac_word... " >&6; }
3343if ${ac_cv_prog_CC+:} false; then :
3344 $as_echo_n "(cached) " >&6
3345else
3346 if test -n "$CC"; then
3347 ac_cv_prog_CC="$CC" # Let the user override the test.
3348else
3349 ac_prog_rejected=no
3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351for as_dir in $PATH
3352do
3353 IFS=$as_save_IFS
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01003356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08003357 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3358 ac_prog_rejected=yes
3359 continue
3360 fi
3361 ac_cv_prog_CC="cc"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365done
3366 done
3367IFS=$as_save_IFS
3368
3369if test $ac_prog_rejected = yes; then
3370 # We found a bogon in the path, so make sure we never use it.
3371 set dummy $ac_cv_prog_CC
3372 shift
3373 if test $# != 0; then
3374 # We chose a different compiler from the bogus one.
3375 # However, it has the same basename, so the bogon will be chosen
3376 # first if we set CC to just the basename; use the full file name.
3377 shift
3378 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3379 fi
3380fi
3381fi
3382fi
3383CC=$ac_cv_prog_CC
3384if test -n "$CC"; then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3386$as_echo "$CC" >&6; }
3387else
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389$as_echo "no" >&6; }
3390fi
3391
3392
3393fi
3394if test -z "$CC"; then
3395 if test -n "$ac_tool_prefix"; then
3396 for ac_prog in cl.exe
3397 do
3398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3399set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401$as_echo_n "checking for $ac_word... " >&6; }
3402if ${ac_cv_prog_CC+:} false; then :
3403 $as_echo_n "(cached) " >&6
3404else
3405 if test -n "$CC"; then
3406 ac_cv_prog_CC="$CC" # Let the user override the test.
3407else
3408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409for as_dir in $PATH
3410do
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01003414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08003415 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3418 fi
3419done
3420 done
3421IFS=$as_save_IFS
3422
3423fi
3424fi
3425CC=$ac_cv_prog_CC
3426if test -n "$CC"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3428$as_echo "$CC" >&6; }
3429else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431$as_echo "no" >&6; }
3432fi
3433
3434
3435 test -n "$CC" && break
3436 done
3437fi
3438if test -z "$CC"; then
3439 ac_ct_CC=$CC
3440 for ac_prog in cl.exe
3441do
3442 # Extract the first word of "$ac_prog", so it can be a program name with args.
3443set dummy $ac_prog; ac_word=$2
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445$as_echo_n "checking for $ac_word... " >&6; }
3446if ${ac_cv_prog_ac_ct_CC+:} false; then :
3447 $as_echo_n "(cached) " >&6
3448else
3449 if test -n "$ac_ct_CC"; then
3450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3451else
3452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453for as_dir in $PATH
3454do
3455 IFS=$as_save_IFS
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01003458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08003459 ac_cv_prog_ac_ct_CC="$ac_prog"
3460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3462 fi
3463done
3464 done
3465IFS=$as_save_IFS
3466
3467fi
3468fi
3469ac_ct_CC=$ac_cv_prog_ac_ct_CC
3470if test -n "$ac_ct_CC"; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3472$as_echo "$ac_ct_CC" >&6; }
3473else
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475$as_echo "no" >&6; }
3476fi
3477
3478
3479 test -n "$ac_ct_CC" && break
3480done
3481
3482 if test "x$ac_ct_CC" = x; then
3483 CC=""
3484 else
3485 case $cross_compiling:$ac_tool_warned in
3486yes:)
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3489ac_tool_warned=yes ;;
3490esac
3491 CC=$ac_ct_CC
3492 fi
3493fi
3494
3495fi
3496
3497
3498test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500as_fn_error $? "no acceptable C compiler found in \$PATH
3501See \`config.log' for more details" "$LINENO" 5; }
3502
3503# Provide some information about the compiler.
3504$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3505set X $ac_compile
3506ac_compiler=$2
3507for ac_option in --version -v -V -qversion; do
3508 { { ac_try="$ac_compiler $ac_option >&5"
3509case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512esac
3513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3514$as_echo "$ac_try_echo"; } >&5
3515 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3516 ac_status=$?
3517 if test -s conftest.err; then
3518 sed '10a\
3519... rest of stderr output deleted ...
3520 10q' conftest.err >conftest.er1
3521 cat conftest.er1 >&5
3522 fi
3523 rm -f conftest.er1 conftest.err
3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525 test $ac_status = 0; }
3526done
3527
3528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529/* end confdefs.h. */
3530
3531int
3532main ()
3533{
3534
3535 ;
3536 return 0;
3537}
3538_ACEOF
3539ac_clean_files_save=$ac_clean_files
3540ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3541# Try to create an executable without -o first, disregard a.out.
3542# It will help us diagnose broken compilers, and finding out an intuition
3543# of exeext.
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3545$as_echo_n "checking whether the C compiler works... " >&6; }
3546ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3547
3548# The possible output files:
3549ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3550
3551ac_rmfiles=
3552for ac_file in $ac_files
3553do
3554 case $ac_file in
3555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3556 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3557 esac
3558done
3559rm -f $ac_rmfiles
3560
3561if { { ac_try="$ac_link_default"
3562case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565esac
3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567$as_echo "$ac_try_echo"; } >&5
3568 (eval "$ac_link_default") 2>&5
3569 ac_status=$?
3570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571 test $ac_status = 0; }; then :
3572 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3573# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3574# in a Makefile. We should not override ac_cv_exeext if it was cached,
3575# so that the user can short-circuit this test for compilers unknown to
3576# Autoconf.
3577for ac_file in $ac_files ''
3578do
3579 test -f "$ac_file" || continue
3580 case $ac_file in
3581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3582 ;;
3583 [ab].out )
3584 # We found the default executable, but exeext='' is most
3585 # certainly right.
3586 break;;
3587 *.* )
3588 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3589 then :; else
3590 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3591 fi
3592 # We set ac_cv_exeext here because the later test for it is not
3593 # safe: cross compilers may not add the suffix if given an `-o'
3594 # argument, so we may need to know it at that point already.
3595 # Even if this section looks crufty: it has the advantage of
3596 # actually working.
3597 break;;
3598 * )
3599 break;;
3600 esac
3601done
3602test "$ac_cv_exeext" = no && ac_cv_exeext=
3603
3604else
3605 ac_file=''
3606fi
3607if test -z "$ac_file"; then :
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609$as_echo "no" >&6; }
3610$as_echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
3613{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615as_fn_error 77 "C compiler cannot create executables
3616See \`config.log' for more details" "$LINENO" 5; }
3617else
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3619$as_echo "yes" >&6; }
3620fi
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3622$as_echo_n "checking for C compiler default output file name... " >&6; }
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3624$as_echo "$ac_file" >&6; }
3625ac_exeext=$ac_cv_exeext
3626
3627rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3628ac_clean_files=$ac_clean_files_save
3629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3630$as_echo_n "checking for suffix of executables... " >&6; }
3631if { { ac_try="$ac_link"
3632case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635esac
3636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637$as_echo "$ac_try_echo"; } >&5
3638 (eval "$ac_link") 2>&5
3639 ac_status=$?
3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641 test $ac_status = 0; }; then :
3642 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3643# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3644# work properly (i.e., refer to `conftest.exe'), while it won't with
3645# `rm'.
3646for ac_file in conftest.exe conftest conftest.*; do
3647 test -f "$ac_file" || continue
3648 case $ac_file in
3649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3650 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3651 break;;
3652 * ) break;;
3653 esac
3654done
3655else
3656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3658as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3659See \`config.log' for more details" "$LINENO" 5; }
3660fi
3661rm -f conftest conftest$ac_cv_exeext
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3663$as_echo "$ac_cv_exeext" >&6; }
3664
3665rm -f conftest.$ac_ext
3666EXEEXT=$ac_cv_exeext
3667ac_exeext=$EXEEXT
3668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669/* end confdefs.h. */
3670#include <stdio.h>
3671int
3672main ()
3673{
3674FILE *f = fopen ("conftest.out", "w");
3675 return ferror (f) || fclose (f) != 0;
3676
3677 ;
3678 return 0;
3679}
3680_ACEOF
3681ac_clean_files="$ac_clean_files conftest.out"
3682# Check that the compiler produces executables we can run. If not, either
3683# the compiler is broken, or we cross compile.
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3685$as_echo_n "checking whether we are cross compiling... " >&6; }
3686if test "$cross_compiling" != yes; then
3687 { { ac_try="$ac_link"
3688case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691esac
3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693$as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_link") 2>&5
3695 ac_status=$?
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }
3698 if { ac_try='./conftest$ac_cv_exeext'
3699 { { case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702esac
3703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704$as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_try") 2>&5
3706 ac_status=$?
3707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708 test $ac_status = 0; }; }; then
3709 cross_compiling=no
3710 else
3711 if test "$cross_compiling" = maybe; then
3712 cross_compiling=yes
3713 else
3714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3716as_fn_error $? "cannot run C compiled programs.
3717If you meant to cross compile, use \`--host'.
3718See \`config.log' for more details" "$LINENO" 5; }
3719 fi
3720 fi
3721fi
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3723$as_echo "$cross_compiling" >&6; }
3724
3725rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3726ac_clean_files=$ac_clean_files_save
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3728$as_echo_n "checking for suffix of object files... " >&6; }
3729if ${ac_cv_objext+:} false; then :
3730 $as_echo_n "(cached) " >&6
3731else
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733/* end confdefs.h. */
3734
3735int
3736main ()
3737{
3738
3739 ;
3740 return 0;
3741}
3742_ACEOF
3743rm -f conftest.o conftest.obj
3744if { { ac_try="$ac_compile"
3745case "(($ac_try" in
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3748esac
3749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750$as_echo "$ac_try_echo"; } >&5
3751 (eval "$ac_compile") 2>&5
3752 ac_status=$?
3753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754 test $ac_status = 0; }; then :
3755 for ac_file in conftest.o conftest.obj conftest.*; do
3756 test -f "$ac_file" || continue;
3757 case $ac_file in
3758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3759 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3760 break;;
3761 esac
3762done
3763else
3764 $as_echo "$as_me: failed program was:" >&5
3765sed 's/^/| /' conftest.$ac_ext >&5
3766
3767{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3769as_fn_error $? "cannot compute suffix of object files: cannot compile
3770See \`config.log' for more details" "$LINENO" 5; }
3771fi
3772rm -f conftest.$ac_cv_objext conftest.$ac_ext
3773fi
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3775$as_echo "$ac_cv_objext" >&6; }
3776OBJEXT=$ac_cv_objext
3777ac_objext=$OBJEXT
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3779$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3780if ${ac_cv_c_compiler_gnu+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782else
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784/* end confdefs.h. */
3785
3786int
3787main ()
3788{
3789#ifndef __GNUC__
3790 choke me
3791#endif
3792
3793 ;
3794 return 0;
3795}
3796_ACEOF
3797if ac_fn_c_try_compile "$LINENO"; then :
3798 ac_compiler_gnu=yes
3799else
3800 ac_compiler_gnu=no
3801fi
3802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803ac_cv_c_compiler_gnu=$ac_compiler_gnu
3804
3805fi
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3807$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3808if test $ac_compiler_gnu = yes; then
3809 GCC=yes
3810else
3811 GCC=
3812fi
3813ac_test_CFLAGS=${CFLAGS+set}
3814ac_save_CFLAGS=$CFLAGS
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3816$as_echo_n "checking whether $CC accepts -g... " >&6; }
3817if ${ac_cv_prog_cc_g+:} false; then :
3818 $as_echo_n "(cached) " >&6
3819else
3820 ac_save_c_werror_flag=$ac_c_werror_flag
3821 ac_c_werror_flag=yes
3822 ac_cv_prog_cc_g=no
3823 CFLAGS="-g"
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825/* end confdefs.h. */
3826
3827int
3828main ()
3829{
3830
3831 ;
3832 return 0;
3833}
3834_ACEOF
3835if ac_fn_c_try_compile "$LINENO"; then :
3836 ac_cv_prog_cc_g=yes
3837else
3838 CFLAGS=""
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840/* end confdefs.h. */
3841
3842int
3843main ()
3844{
3845
3846 ;
3847 return 0;
3848}
3849_ACEOF
3850if ac_fn_c_try_compile "$LINENO"; then :
3851
3852else
3853 ac_c_werror_flag=$ac_save_c_werror_flag
3854 CFLAGS="-g"
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856/* end confdefs.h. */
3857
3858int
3859main ()
3860{
3861
3862 ;
3863 return 0;
3864}
3865_ACEOF
3866if ac_fn_c_try_compile "$LINENO"; then :
3867 ac_cv_prog_cc_g=yes
3868fi
3869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870fi
3871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3872fi
3873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 ac_c_werror_flag=$ac_save_c_werror_flag
3875fi
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3877$as_echo "$ac_cv_prog_cc_g" >&6; }
3878if test "$ac_test_CFLAGS" = set; then
3879 CFLAGS=$ac_save_CFLAGS
3880elif test $ac_cv_prog_cc_g = yes; then
3881 if test "$GCC" = yes; then
3882 CFLAGS="-g -O2"
3883 else
3884 CFLAGS="-g"
3885 fi
3886else
3887 if test "$GCC" = yes; then
3888 CFLAGS="-O2"
3889 else
3890 CFLAGS=
3891 fi
3892fi
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3894$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3895if ${ac_cv_prog_cc_c89+:} false; then :
3896 $as_echo_n "(cached) " >&6
3897else
3898 ac_cv_prog_cc_c89=no
3899ac_save_CC=$CC
3900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901/* end confdefs.h. */
3902#include <stdarg.h>
3903#include <stdio.h>
flimc91ee5b2016-01-26 14:33:44 +01003904struct stat;
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08003905/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3906struct buf { int x; };
3907FILE * (*rcsopen) (struct buf *, struct stat *, int);
3908static char *e (p, i)
3909 char **p;
3910 int i;
3911{
3912 return p[i];
3913}
3914static char *f (char * (*g) (char **, int), char **p, ...)
3915{
3916 char *s;
3917 va_list v;
3918 va_start (v,p);
3919 s = g (p, va_arg (v,int));
3920 va_end (v);
3921 return s;
3922}
3923
3924/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3925 function prototypes and stuff, but not '\xHH' hex character constants.
3926 These don't provoke an error unfortunately, instead are silently treated
3927 as 'x'. The following induces an error, until -std is added to get
3928 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3929 array size at least. It's necessary to write '\x00'==0 to get something
3930 that's true only with -std. */
3931int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3932
3933/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3934 inside strings and character constants. */
3935#define FOO(x) 'x'
3936int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3937
3938int test (int i, double x);
3939struct s1 {int (*f) (int a);};
3940struct s2 {int (*f) (double a);};
3941int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3942int argc;
3943char **argv;
3944int
3945main ()
3946{
3947return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3948 ;
3949 return 0;
3950}
3951_ACEOF
3952for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3953 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3954do
3955 CC="$ac_save_CC $ac_arg"
3956 if ac_fn_c_try_compile "$LINENO"; then :
3957 ac_cv_prog_cc_c89=$ac_arg
3958fi
3959rm -f core conftest.err conftest.$ac_objext
3960 test "x$ac_cv_prog_cc_c89" != "xno" && break
3961done
3962rm -f conftest.$ac_ext
3963CC=$ac_save_CC
3964
3965fi
3966# AC_CACHE_VAL
3967case "x$ac_cv_prog_cc_c89" in
3968 x)
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3970$as_echo "none needed" >&6; } ;;
3971 xno)
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3973$as_echo "unsupported" >&6; } ;;
3974 *)
3975 CC="$CC $ac_cv_prog_cc_c89"
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3977$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3978esac
3979if test "x$ac_cv_prog_cc_c89" != xno; then :
3980
3981fi
3982
3983ac_ext=c
3984ac_cpp='$CPP $CPPFLAGS'
3985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988
flimc91ee5b2016-01-26 14:33:44 +01003989ac_ext=c
3990ac_cpp='$CPP $CPPFLAGS'
3991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3995$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3996if ${am_cv_prog_cc_c_o+:} false; then :
3997 $as_echo_n "(cached) " >&6
3998else
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000/* end confdefs.h. */
4001
4002int
4003main ()
4004{
4005
4006 ;
4007 return 0;
4008}
4009_ACEOF
4010 # Make sure it works both with $CC and with simple cc.
4011 # Following AC_PROG_CC_C_O, we do the test twice because some
4012 # compilers refuse to overwrite an existing .o file with -o,
4013 # though they will create one.
4014 am_cv_prog_cc_c_o=yes
4015 for am_i in 1 2; do
4016 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4017 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } \
4021 && test -f conftest2.$ac_objext; then
4022 : OK
4023 else
4024 am_cv_prog_cc_c_o=no
4025 break
4026 fi
4027 done
4028 rm -f core conftest*
4029 unset am_i
4030fi
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4032$as_echo "$am_cv_prog_cc_c_o" >&6; }
4033if test "$am_cv_prog_cc_c_o" != yes; then
4034 # Losing compiler, so override with the script.
4035 # FIXME: It is wrong to rewrite CC.
4036 # But if we don't then we get into trouble of one sort or another.
4037 # A longer-term fix would be to have automake use am__CC in this case,
4038 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4039 CC="$am_aux_dir/compile $CC"
4040fi
4041ac_ext=c
4042ac_cpp='$CPP $CPPFLAGS'
4043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046
4047
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08004048depcc="$CC" am_compiler_list=
4049
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4051$as_echo_n "checking dependency style of $depcc... " >&6; }
4052if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054else
4055 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4056 # We make a subdir and do the tests there. Otherwise we can end up
4057 # making bogus files that we don't know about and never remove. For
4058 # instance it was reported that on HP-UX the gcc test will end up
flimc91ee5b2016-01-26 14:33:44 +01004059 # making a dummy file named 'D' -- because '-MD' means "put the output
4060 # in D".
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08004061 rm -rf conftest.dir
4062 mkdir conftest.dir
4063 # Copy depcomp to subdir because otherwise we won't find it if we're
4064 # using a relative directory.
4065 cp "$am_depcomp" conftest.dir
4066 cd conftest.dir
4067 # We will build objects and dependencies in a subdirectory because
4068 # it helps to detect inapplicable dependency modes. For instance
4069 # both Tru64's cc and ICC support -MD to output dependencies as a
4070 # side effect of compilation, but ICC will put the dependencies in
4071 # the current directory while Tru64 will put them in the object
4072 # directory.
4073 mkdir sub
4074
4075 am_cv_CC_dependencies_compiler_type=none
4076 if test "$am_compiler_list" = ""; then
4077 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4078 fi
4079 am__universal=false
4080 case " $depcc " in #(
4081 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4082 esac
4083
4084 for depmode in $am_compiler_list; do
4085 # Setup a source with many dependencies, because some compilers
4086 # like to wrap large dependency lists on column 80 (with \), and
4087 # we should not choose a depcomp mode which is confused by this.
4088 #
4089 # We need to recreate these files for each test, as the compiler may
4090 # overwrite some of them when testing with obscure command lines.
4091 # This happens at least with the AIX C compiler.
4092 : > sub/conftest.c
4093 for i in 1 2 3 4 5 6; do
4094 echo '#include "conftst'$i'.h"' >> sub/conftest.c
flimc91ee5b2016-01-26 14:33:44 +01004095 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4096 # Solaris 10 /bin/sh.
4097 echo '/* dummy */' > sub/conftst$i.h
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08004098 done
4099 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4100
flimc91ee5b2016-01-26 14:33:44 +01004101 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08004102 # mode. It turns out that the SunPro C++ compiler does not properly
flimc91ee5b2016-01-26 14:33:44 +01004103 # handle '-M -o', and we need to detect this. Also, some Intel
4104 # versions had trouble with output in subdirs.
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08004105 am__obj=sub/conftest.${OBJEXT-o}
4106 am__minus_obj="-o $am__obj"
4107 case $depmode in
4108 gcc)
4109 # This depmode causes a compiler race in universal mode.
4110 test "$am__universal" = false || continue
4111 ;;
4112 nosideeffect)
flimc91ee5b2016-01-26 14:33:44 +01004113 # After this tag, mechanisms are not by side-effect, so they'll
4114 # only be used when explicitly requested.
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08004115 if test "x$enable_dependency_tracking" = xyes; then
4116 continue
4117 else
4118 break
4119 fi
4120 ;;
4121 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
flimc91ee5b2016-01-26 14:33:44 +01004122 # This compiler won't grok '-c -o', but also, the minuso test has
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08004123 # not run yet. These depmodes are late enough in the game, and
4124 # so weak that their functioning should not be impacted.
4125 am__obj=conftest.${OBJEXT-o}
4126 am__minus_obj=
4127 ;;
4128 none) break ;;
4129 esac
4130 if depmode=$depmode \
4131 source=sub/conftest.c object=$am__obj \
4132 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4133 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4134 >/dev/null 2>conftest.err &&
4135 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4136 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4137 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4138 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4139 # icc doesn't choke on unknown options, it will just issue warnings
4140 # or remarks (even with -Werror). So we grep stderr for any message
4141 # that says an option was ignored or not supported.
4142 # When given -MP, icc 7.0 and 7.1 complain thusly:
4143 # icc: Command line warning: ignoring option '-M'; no argument required
4144 # The diagnosis changed in icc 8.0:
4145 # icc: Command line remark: option '-MP' not supported
4146 if (grep 'ignoring option' conftest.err ||
4147 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4148 am_cv_CC_dependencies_compiler_type=$depmode
4149 break
4150 fi
4151 fi
4152 done
4153
4154 cd ..
4155 rm -rf conftest.dir
4156else
4157 am_cv_CC_dependencies_compiler_type=none
4158fi
4159
4160fi
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4162$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4163CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4164
4165 if
4166 test "x$enable_dependency_tracking" != xno \
4167 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4168 am__fastdepCC_TRUE=
4169 am__fastdepCC_FALSE='#'
4170else
4171 am__fastdepCC_TRUE='#'
4172 am__fastdepCC_FALSE=
4173fi
4174
4175
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4177$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4178if ${ac_cv_path_SED+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180else
4181 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4182 for ac_i in 1 2 3 4 5 6 7; do
4183 ac_script="$ac_script$as_nl$ac_script"
4184 done
4185 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4186 { ac_script=; unset ac_script;}
4187 if test -z "$SED"; then
4188 ac_path_SED_found=false
4189 # Loop through the user's path and test for each of PROGNAME-LIST
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191for as_dir in $PATH
4192do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_prog in sed gsed; do
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
flimc91ee5b2016-01-26 14:33:44 +01004198 as_fn_executable_p "$ac_path_SED" || continue
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08004199# Check for GNU ac_path_SED and select it if it is found.
4200 # Check for GNU $ac_path_SED
4201case `"$ac_path_SED" --version 2>&1` in
4202*GNU*)
4203 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4204*)
4205 ac_count=0
4206 $as_echo_n 0123456789 >"conftest.in"
4207 while :
4208 do
4209 cat "conftest.in" "conftest.in" >"conftest.tmp"
4210 mv "conftest.tmp" "conftest.in"
4211 cp "conftest.in" "conftest.nl"
4212 $as_echo '' >> "conftest.nl"
4213 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215 as_fn_arith $ac_count + 1 && ac_count=$as_val
4216 if test $ac_count -gt ${ac_path_SED_max-0}; then
4217 # Best one so far, save it but keep looking for a better one
4218 ac_cv_path_SED="$ac_path_SED"
4219 ac_path_SED_max=$ac_count
4220 fi
4221 # 10*(2^10) chars as input seems more than enough
4222 test $ac_count -gt 10 && break
4223 done
4224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225esac
4226
4227 $ac_path_SED_found && break 3
4228 done
4229 done
4230 done
4231IFS=$as_save_IFS
4232 if test -z "$ac_cv_path_SED"; then
4233 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4234 fi
4235else
4236 ac_cv_path_SED=$SED
4237fi
4238
4239fi
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4241$as_echo "$ac_cv_path_SED" >&6; }
4242 SED="$ac_cv_path_SED"
4243 rm -f conftest.sed
4244
4245test -z "$SED" && SED=sed
4246Xsed="$SED -e 1s/^X//"
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4259$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4260if ${ac_cv_path_GREP+:} false; then :
4261 $as_echo_n "(cached) " >&6
4262else
4263 if test -z "$GREP"; then
4264 ac_path_GREP_found=false
4265 # Loop through the user's path and test for each of PROGNAME-LIST
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_prog in grep ggrep; do
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
flimc91ee5b2016-01-26 14:33:44 +01004274 as_fn_executable_p "$ac_path_GREP" || continue
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08004275# Check for GNU ac_path_GREP and select it if it is found.
4276 # Check for GNU $ac_path_GREP
4277case `"$ac_path_GREP" --version 2>&1` in
4278*GNU*)
4279 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4280*)
4281 ac_count=0
4282 $as_echo_n 0123456789 >"conftest.in"
4283 while :
4284 do
4285 cat "conftest.in" "conftest.in" >"conftest.tmp"
4286 mv "conftest.tmp" "conftest.in"
4287 cp "conftest.in" "conftest.nl"
4288 $as_echo 'GREP' >> "conftest.nl"
4289 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4291 as_fn_arith $ac_count + 1 && ac_count=$as_val
4292 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4293 # Best one so far, save it but keep looking for a better one
4294 ac_cv_path_GREP="$ac_path_GREP"
4295 ac_path_GREP_max=$ac_count
4296 fi
4297 # 10*(2^10) chars as input seems more than enough
4298 test $ac_count -gt 10 && break
4299 done
4300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4301esac
4302
4303 $ac_path_GREP_found && break 3
4304 done
4305 done
4306 done
4307IFS=$as_save_IFS
4308 if test -z "$ac_cv_path_GREP"; then
4309 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4310 fi
4311else
4312 ac_cv_path_GREP=$GREP
4313fi
4314
4315fi
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4317$as_echo "$ac_cv_path_GREP" >&6; }
4318 GREP="$ac_cv_path_GREP"
4319
4320
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4322$as_echo_n "checking for egrep... " >&6; }
4323if ${ac_cv_path_EGREP+:} false; then :
4324 $as_echo_n "(cached) " >&6
4325else
4326 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4327 then ac_cv_path_EGREP="$GREP -E"
4328 else
4329 if test -z "$EGREP"; then
4330 ac_path_EGREP_found=false
4331 # Loop through the user's path and test for each of PROGNAME-LIST
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4334do
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_prog in egrep; do
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
flimc91ee5b2016-01-26 14:33:44 +01004340 as_fn_executable_p "$ac_path_EGREP" || continue
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08004341# Check for GNU ac_path_EGREP and select it if it is found.
4342 # Check for GNU $ac_path_EGREP
4343case `"$ac_path_EGREP" --version 2>&1` in
4344*GNU*)
4345 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4346*)
4347 ac_count=0
4348 $as_echo_n 0123456789 >"conftest.in"
4349 while :
4350 do
4351 cat "conftest.in" "conftest.in" >"conftest.tmp"
4352 mv "conftest.tmp" "conftest.in"
4353 cp "conftest.in" "conftest.nl"
4354 $as_echo 'EGREP' >> "conftest.nl"
4355 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4357 as_fn_arith $ac_count + 1 && ac_count=$as_val
4358 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4359 # Best one so far, save it but keep looking for a better one
4360 ac_cv_path_EGREP="$ac_path_EGREP"
4361 ac_path_EGREP_max=$ac_count
4362 fi
4363 # 10*(2^10) chars as input seems more than enough
4364 test $ac_count -gt 10 && break
4365 done
4366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4367esac
4368
4369 $ac_path_EGREP_found && break 3
4370 done
4371 done
4372 done
4373IFS=$as_save_IFS
4374 if test -z "$ac_cv_path_EGREP"; then
4375 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4376 fi
4377else
4378 ac_cv_path_EGREP=$EGREP
4379fi
4380
4381 fi
4382fi
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4384$as_echo "$ac_cv_path_EGREP" >&6; }
4385 EGREP="$ac_cv_path_EGREP"
4386
4387
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4389$as_echo_n "checking for fgrep... " >&6; }
4390if ${ac_cv_path_FGREP+:} false; then :
4391 $as_echo_n "(cached) " >&6
4392else
4393 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4394 then ac_cv_path_FGREP="$GREP -F"
4395 else
4396 if test -z "$FGREP"; then
4397 ac_path_FGREP_found=false
4398 # Loop through the user's path and test for each of PROGNAME-LIST
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4401do
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_prog in fgrep; do
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
flimc91ee5b2016-01-26 14:33:44 +01004407 as_fn_executable_p "$ac_path_FGREP" || continue
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08004408# Check for GNU ac_path_FGREP and select it if it is found.
4409 # Check for GNU $ac_path_FGREP
4410case `"$ac_path_FGREP" --version 2>&1` in
4411*GNU*)
4412 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4413*)
4414 ac_count=0
4415 $as_echo_n 0123456789 >"conftest.in"
4416 while :
4417 do
4418 cat "conftest.in" "conftest.in" >"conftest.tmp"
4419 mv "conftest.tmp" "conftest.in"
4420 cp "conftest.in" "conftest.nl"
4421 $as_echo 'FGREP' >> "conftest.nl"
4422 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4424 as_fn_arith $ac_count + 1 && ac_count=$as_val
4425 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4426 # Best one so far, save it but keep looking for a better one
4427 ac_cv_path_FGREP="$ac_path_FGREP"
4428 ac_path_FGREP_max=$ac_count
4429 fi
4430 # 10*(2^10) chars as input seems more than enough
4431 test $ac_count -gt 10 && break
4432 done
4433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4434esac
4435
4436 $ac_path_FGREP_found && break 3
4437 done
4438 done
4439 done
4440IFS=$as_save_IFS
4441 if test -z "$ac_cv_path_FGREP"; then
4442 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4443 fi
4444else
4445 ac_cv_path_FGREP=$FGREP
4446fi
4447
4448 fi
4449fi
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4451$as_echo "$ac_cv_path_FGREP" >&6; }
4452 FGREP="$ac_cv_path_FGREP"
4453
4454
4455test -z "$GREP" && GREP=grep
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475# Check whether --with-gnu-ld was given.
4476if test "${with_gnu_ld+set}" = set; then :
4477 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4478else
4479 with_gnu_ld=no
4480fi
4481
4482ac_prog=ld
4483if test "$GCC" = yes; then
4484 # Check if gcc -print-prog-name=ld gives a path.
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4486$as_echo_n "checking for ld used by $CC... " >&6; }
4487 case $host in
4488 *-*-mingw*)
4489 # gcc leaves a trailing carriage return which upsets mingw
4490 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4491 *)
4492 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4493 esac
4494 case $ac_prog in
4495 # Accept absolute paths.
4496 [\\/]* | ?:[\\/]*)
4497 re_direlt='/[^/][^/]*/\.\./'
4498 # Canonicalize the pathname of ld
4499 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4500 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4501 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4502 done
4503 test -z "$LD" && LD="$ac_prog"
4504 ;;
4505 "")
4506 # If it fails, then pretend we aren't using GCC.
4507 ac_prog=ld
4508 ;;
4509 *)
4510 # If it is relative, then search for the first ld in PATH.
4511 with_gnu_ld=unknown
4512 ;;
4513 esac
4514elif test "$with_gnu_ld" = yes; then
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4516$as_echo_n "checking for GNU ld... " >&6; }
4517else
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4519$as_echo_n "checking for non-GNU ld... " >&6; }
4520fi
4521if ${lt_cv_path_LD+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523else
4524 if test -z "$LD"; then
4525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4526 for ac_dir in $PATH; do
4527 IFS="$lt_save_ifs"
4528 test -z "$ac_dir" && ac_dir=.
4529 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4530 lt_cv_path_LD="$ac_dir/$ac_prog"
4531 # Check to see if the program is GNU ld. I'd rather use --version,
4532 # but apparently some variants of GNU ld only accept -v.
4533 # Break only if it was the GNU/non-GNU ld that we prefer.
4534 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4535 *GNU* | *'with BFD'*)
4536 test "$with_gnu_ld" != no && break
4537 ;;
4538 *)
4539 test "$with_gnu_ld" != yes && break
4540 ;;
4541 esac
4542 fi
4543 done
4544 IFS="$lt_save_ifs"
4545else
4546 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4547fi
4548fi
4549
4550LD="$lt_cv_path_LD"
4551if test -n "$LD"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4553$as_echo "$LD" >&6; }
4554else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556$as_echo "no" >&6; }
4557fi
4558test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4560$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4561if ${lt_cv_prog_gnu_ld+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563else
4564 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4565case `$LD -v 2>&1 </dev/null` in
4566*GNU* | *'with BFD'*)
4567 lt_cv_prog_gnu_ld=yes
4568 ;;
4569*)
4570 lt_cv_prog_gnu_ld=no
4571 ;;
4572esac
4573fi
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4575$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4576with_gnu_ld=$lt_cv_prog_gnu_ld
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4587$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4588if ${lt_cv_path_NM+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590else
4591 if test -n "$NM"; then
4592 # Let the user override the test.
4593 lt_cv_path_NM="$NM"
4594else
4595 lt_nm_to_check="${ac_tool_prefix}nm"
4596 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4597 lt_nm_to_check="$lt_nm_to_check nm"
4598 fi
4599 for lt_tmp_nm in $lt_nm_to_check; do
4600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4601 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4602 IFS="$lt_save_ifs"
4603 test -z "$ac_dir" && ac_dir=.
4604 tmp_nm="$ac_dir/$lt_tmp_nm"
4605 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4606 # Check to see if the nm accepts a BSD-compat flag.
4607 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4608 # nm: unknown option "B" ignored
4609 # Tru64's nm complains that /dev/null is an invalid object file
4610 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4611 */dev/null* | *'Invalid file or object type'*)
4612 lt_cv_path_NM="$tmp_nm -B"
4613 break
4614 ;;
4615 *)
4616 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4617 */dev/null*)
4618 lt_cv_path_NM="$tmp_nm -p"
4619 break
4620 ;;
4621 *)
4622 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4623 continue # so that we can try to find one that supports BSD flags
4624 ;;
4625 esac
4626 ;;
4627 esac
4628 fi
4629 done
4630 IFS="$lt_save_ifs"
4631 done
4632 : ${lt_cv_path_NM=no}
4633fi
4634fi
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4636$as_echo "$lt_cv_path_NM" >&6; }
4637if test "$lt_cv_path_NM" != "no"; then
4638 NM="$lt_cv_path_NM"
4639else
4640 # Didn't find any BSD compatible name lister, look for dumpbin.
4641 if test -n "$DUMPBIN"; then :
4642 # Let the user override the test.
4643 else
4644 if test -n "$ac_tool_prefix"; then
4645 for ac_prog in dumpbin "link -dump"
4646 do
4647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4648set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650$as_echo_n "checking for $ac_word... " >&6; }
4651if ${ac_cv_prog_DUMPBIN+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653else
4654 if test -n "$DUMPBIN"; then
4655 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01004663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08004664 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668done
4669 done
4670IFS=$as_save_IFS
4671
4672fi
4673fi
4674DUMPBIN=$ac_cv_prog_DUMPBIN
4675if test -n "$DUMPBIN"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4677$as_echo "$DUMPBIN" >&6; }
4678else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680$as_echo "no" >&6; }
4681fi
4682
4683
4684 test -n "$DUMPBIN" && break
4685 done
4686fi
4687if test -z "$DUMPBIN"; then
4688 ac_ct_DUMPBIN=$DUMPBIN
4689 for ac_prog in dumpbin "link -dump"
4690do
4691 # Extract the first word of "$ac_prog", so it can be a program name with args.
4692set dummy $ac_prog; ac_word=$2
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694$as_echo_n "checking for $ac_word... " >&6; }
4695if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697else
4698 if test -n "$ac_ct_DUMPBIN"; then
4699 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4700else
4701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01004707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08004708 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712done
4713 done
4714IFS=$as_save_IFS
4715
4716fi
4717fi
4718ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4719if test -n "$ac_ct_DUMPBIN"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4721$as_echo "$ac_ct_DUMPBIN" >&6; }
4722else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724$as_echo "no" >&6; }
4725fi
4726
4727
4728 test -n "$ac_ct_DUMPBIN" && break
4729done
4730
4731 if test "x$ac_ct_DUMPBIN" = x; then
4732 DUMPBIN=":"
4733 else
4734 case $cross_compiling:$ac_tool_warned in
4735yes:)
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738ac_tool_warned=yes ;;
4739esac
4740 DUMPBIN=$ac_ct_DUMPBIN
4741 fi
4742fi
4743
4744 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4745 *COFF*)
4746 DUMPBIN="$DUMPBIN -symbols"
4747 ;;
4748 *)
4749 DUMPBIN=:
4750 ;;
4751 esac
4752 fi
4753
4754 if test "$DUMPBIN" != ":"; then
4755 NM="$DUMPBIN"
4756 fi
4757fi
4758test -z "$NM" && NM=nm
4759
4760
4761
4762
4763
4764
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4766$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4767if ${lt_cv_nm_interface+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769else
4770 lt_cv_nm_interface="BSD nm"
4771 echo "int some_variable = 0;" > conftest.$ac_ext
4772 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4773 (eval "$ac_compile" 2>conftest.err)
4774 cat conftest.err >&5
4775 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4776 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4777 cat conftest.err >&5
4778 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4779 cat conftest.out >&5
4780 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4781 lt_cv_nm_interface="MS dumpbin"
4782 fi
4783 rm -f conftest*
4784fi
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4786$as_echo "$lt_cv_nm_interface" >&6; }
4787
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4789$as_echo_n "checking whether ln -s works... " >&6; }
4790LN_S=$as_ln_s
4791if test "$LN_S" = "ln -s"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4793$as_echo "yes" >&6; }
4794else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4796$as_echo "no, using $LN_S" >&6; }
4797fi
4798
4799# find the maximum length of command line arguments
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4801$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4802if ${lt_cv_sys_max_cmd_len+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804else
4805 i=0
4806 teststring="ABCD"
4807
4808 case $build_os in
4809 msdosdjgpp*)
4810 # On DJGPP, this test can blow up pretty badly due to problems in libc
4811 # (any single argument exceeding 2000 bytes causes a buffer overrun
4812 # during glob expansion). Even if it were fixed, the result of this
4813 # check would be larger than it should be.
4814 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4815 ;;
4816
4817 gnu*)
4818 # Under GNU Hurd, this test is not required because there is
4819 # no limit to the length of command line arguments.
4820 # Libtool will interpret -1 as no limit whatsoever
4821 lt_cv_sys_max_cmd_len=-1;
4822 ;;
4823
4824 cygwin* | mingw* | cegcc*)
4825 # On Win9x/ME, this test blows up -- it succeeds, but takes
4826 # about 5 minutes as the teststring grows exponentially.
4827 # Worse, since 9x/ME are not pre-emptively multitasking,
4828 # you end up with a "frozen" computer, even though with patience
4829 # the test eventually succeeds (with a max line length of 256k).
4830 # Instead, let's just punt: use the minimum linelength reported by
4831 # all of the supported platforms: 8192 (on NT/2K/XP).
4832 lt_cv_sys_max_cmd_len=8192;
4833 ;;
4834
4835 mint*)
4836 # On MiNT this can take a long time and run out of memory.
4837 lt_cv_sys_max_cmd_len=8192;
4838 ;;
4839
4840 amigaos*)
4841 # On AmigaOS with pdksh, this test takes hours, literally.
4842 # So we just punt and use a minimum line length of 8192.
4843 lt_cv_sys_max_cmd_len=8192;
4844 ;;
4845
4846 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4847 # This has been around since 386BSD, at least. Likely further.
4848 if test -x /sbin/sysctl; then
4849 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4850 elif test -x /usr/sbin/sysctl; then
4851 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4852 else
4853 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4854 fi
4855 # And add a safety zone
4856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4858 ;;
4859
4860 interix*)
4861 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4862 lt_cv_sys_max_cmd_len=196608
4863 ;;
4864
4865 os2*)
4866 # The test takes a long time on OS/2.
4867 lt_cv_sys_max_cmd_len=8192
4868 ;;
4869
4870 osf*)
4871 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4872 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4873 # nice to cause kernel panics so lets avoid the loop below.
4874 # First set a reasonable default.
4875 lt_cv_sys_max_cmd_len=16384
4876 #
4877 if test -x /sbin/sysconfig; then
4878 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4879 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4880 esac
4881 fi
4882 ;;
4883 sco3.2v5*)
4884 lt_cv_sys_max_cmd_len=102400
4885 ;;
4886 sysv5* | sco5v6* | sysv4.2uw2*)
4887 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4888 if test -n "$kargmax"; then
4889 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4890 else
4891 lt_cv_sys_max_cmd_len=32768
4892 fi
4893 ;;
4894 *)
4895 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4896 if test -n "$lt_cv_sys_max_cmd_len"; then
4897 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4898 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4899 else
4900 # Make teststring a little bigger before we do anything with it.
4901 # a 1K string should be a reasonable start.
4902 for i in 1 2 3 4 5 6 7 8 ; do
4903 teststring=$teststring$teststring
4904 done
4905 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4906 # If test is not a shell built-in, we'll probably end up computing a
4907 # maximum length that is only half of the actual maximum length, but
4908 # we can't tell.
4909 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4910 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4911 test $i != 17 # 1/2 MB should be enough
4912 do
4913 i=`expr $i + 1`
4914 teststring=$teststring$teststring
4915 done
4916 # Only check the string length outside the loop.
4917 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4918 teststring=
4919 # Add a significant safety factor because C++ compilers can tack on
4920 # massive amounts of additional arguments before passing them to the
4921 # linker. It appears as though 1/2 is a usable value.
4922 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4923 fi
4924 ;;
4925 esac
4926
4927fi
4928
4929if test -n $lt_cv_sys_max_cmd_len ; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4931$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4932else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4934$as_echo "none" >&6; }
4935fi
4936max_cmd_len=$lt_cv_sys_max_cmd_len
4937
4938
4939
4940
4941
4942
4943: ${CP="cp -f"}
4944: ${MV="mv -f"}
4945: ${RM="rm -f"}
4946
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4948$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4949# Try some XSI features
4950xsi_shell=no
4951( _lt_dummy="a/b/c"
4952 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4953 = c,a/b,b/c, \
4954 && eval 'test $(( 1 + 1 )) -eq 2 \
4955 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4956 && xsi_shell=yes
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4958$as_echo "$xsi_shell" >&6; }
4959
4960
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4962$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4963lt_shell_append=no
4964( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4965 >/dev/null 2>&1 \
4966 && lt_shell_append=yes
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4968$as_echo "$lt_shell_append" >&6; }
4969
4970
4971if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4972 lt_unset=unset
4973else
4974 lt_unset=false
4975fi
4976
4977
4978
4979
4980
4981# test EBCDIC or ASCII
4982case `echo X|tr X '\101'` in
4983 A) # ASCII based system
4984 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4985 lt_SP2NL='tr \040 \012'
4986 lt_NL2SP='tr \015\012 \040\040'
4987 ;;
4988 *) # EBCDIC based system
4989 lt_SP2NL='tr \100 \n'
4990 lt_NL2SP='tr \r\n \100\100'
4991 ;;
4992esac
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5003$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5004if ${lt_cv_to_host_file_cmd+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006else
5007 case $host in
5008 *-*-mingw* )
5009 case $build in
5010 *-*-mingw* ) # actually msys
5011 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5012 ;;
5013 *-*-cygwin* )
5014 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5015 ;;
5016 * ) # otherwise, assume *nix
5017 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5018 ;;
5019 esac
5020 ;;
5021 *-*-cygwin* )
5022 case $build in
5023 *-*-mingw* ) # actually msys
5024 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5025 ;;
5026 *-*-cygwin* )
5027 lt_cv_to_host_file_cmd=func_convert_file_noop
5028 ;;
5029 * ) # otherwise, assume *nix
5030 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5031 ;;
5032 esac
5033 ;;
5034 * ) # unhandled hosts (and "normal" native builds)
5035 lt_cv_to_host_file_cmd=func_convert_file_noop
5036 ;;
5037esac
5038
5039fi
5040
5041to_host_file_cmd=$lt_cv_to_host_file_cmd
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5043$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5044
5045
5046
5047
5048
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5050$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5051if ${lt_cv_to_tool_file_cmd+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053else
5054 #assume ordinary cross tools, or native build.
5055lt_cv_to_tool_file_cmd=func_convert_file_noop
5056case $host in
5057 *-*-mingw* )
5058 case $build in
5059 *-*-mingw* ) # actually msys
5060 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5061 ;;
5062 esac
5063 ;;
5064esac
5065
5066fi
5067
5068to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5070$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5071
5072
5073
5074
5075
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5077$as_echo_n "checking for $LD option to reload object files... " >&6; }
5078if ${lt_cv_ld_reload_flag+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080else
5081 lt_cv_ld_reload_flag='-r'
5082fi
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5084$as_echo "$lt_cv_ld_reload_flag" >&6; }
5085reload_flag=$lt_cv_ld_reload_flag
5086case $reload_flag in
5087"" | " "*) ;;
5088*) reload_flag=" $reload_flag" ;;
5089esac
5090reload_cmds='$LD$reload_flag -o $output$reload_objs'
5091case $host_os in
5092 cygwin* | mingw* | pw32* | cegcc*)
5093 if test "$GCC" != yes; then
5094 reload_cmds=false
5095 fi
5096 ;;
5097 darwin*)
5098 if test "$GCC" = yes; then
5099 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5100 else
5101 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5102 fi
5103 ;;
5104esac
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114if test -n "$ac_tool_prefix"; then
5115 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5116set dummy ${ac_tool_prefix}objdump; ac_word=$2
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118$as_echo_n "checking for $ac_word... " >&6; }
5119if ${ac_cv_prog_OBJDUMP+:} false; then :
5120 $as_echo_n "(cached) " >&6
5121else
5122 if test -n "$OBJDUMP"; then
5123 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5124else
5125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126for as_dir in $PATH
5127do
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01005131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08005132 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 break 2
5135 fi
5136done
5137 done
5138IFS=$as_save_IFS
5139
5140fi
5141fi
5142OBJDUMP=$ac_cv_prog_OBJDUMP
5143if test -n "$OBJDUMP"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5145$as_echo "$OBJDUMP" >&6; }
5146else
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148$as_echo "no" >&6; }
5149fi
5150
5151
5152fi
5153if test -z "$ac_cv_prog_OBJDUMP"; then
5154 ac_ct_OBJDUMP=$OBJDUMP
5155 # Extract the first word of "objdump", so it can be a program name with args.
5156set dummy objdump; ac_word=$2
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158$as_echo_n "checking for $ac_word... " >&6; }
5159if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161else
5162 if test -n "$ac_ct_OBJDUMP"; then
5163 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5164else
5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01005171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08005172 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5175 fi
5176done
5177 done
5178IFS=$as_save_IFS
5179
5180fi
5181fi
5182ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5183if test -n "$ac_ct_OBJDUMP"; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5185$as_echo "$ac_ct_OBJDUMP" >&6; }
5186else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188$as_echo "no" >&6; }
5189fi
5190
5191 if test "x$ac_ct_OBJDUMP" = x; then
5192 OBJDUMP="false"
5193 else
5194 case $cross_compiling:$ac_tool_warned in
5195yes:)
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5198ac_tool_warned=yes ;;
5199esac
5200 OBJDUMP=$ac_ct_OBJDUMP
5201 fi
5202else
5203 OBJDUMP="$ac_cv_prog_OBJDUMP"
5204fi
5205
5206test -z "$OBJDUMP" && OBJDUMP=objdump
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5217$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5218if ${lt_cv_deplibs_check_method+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220else
5221 lt_cv_file_magic_cmd='$MAGIC_CMD'
5222lt_cv_file_magic_test_file=
5223lt_cv_deplibs_check_method='unknown'
5224# Need to set the preceding variable on all platforms that support
5225# interlibrary dependencies.
5226# 'none' -- dependencies not supported.
5227# `unknown' -- same as none, but documents that we really don't know.
5228# 'pass_all' -- all dependencies passed with no checks.
5229# 'test_compile' -- check by making test program.
5230# 'file_magic [[regex]]' -- check by looking for files in library path
5231# which responds to the $file_magic_cmd with a given extended regex.
5232# If you have `file' or equivalent on your system and you're not sure
5233# whether `pass_all' will *always* work, you probably want this one.
5234
5235case $host_os in
5236aix[4-9]*)
5237 lt_cv_deplibs_check_method=pass_all
5238 ;;
5239
5240beos*)
5241 lt_cv_deplibs_check_method=pass_all
5242 ;;
5243
5244bsdi[45]*)
5245 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5246 lt_cv_file_magic_cmd='/usr/bin/file -L'
5247 lt_cv_file_magic_test_file=/shlib/libc.so
5248 ;;
5249
5250cygwin*)
5251 # func_win32_libid is a shell function defined in ltmain.sh
5252 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5253 lt_cv_file_magic_cmd='func_win32_libid'
5254 ;;
5255
5256mingw* | pw32*)
5257 # Base MSYS/MinGW do not provide the 'file' command needed by
5258 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5259 # unless we find 'file', for example because we are cross-compiling.
5260 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5261 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5262 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5263 lt_cv_file_magic_cmd='func_win32_libid'
5264 else
5265 # Keep this pattern in sync with the one in func_win32_libid.
5266 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5267 lt_cv_file_magic_cmd='$OBJDUMP -f'
5268 fi
5269 ;;
5270
5271cegcc*)
5272 # use the weaker test based on 'objdump'. See mingw*.
5273 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5274 lt_cv_file_magic_cmd='$OBJDUMP -f'
5275 ;;
5276
5277darwin* | rhapsody*)
5278 lt_cv_deplibs_check_method=pass_all
5279 ;;
5280
5281freebsd* | dragonfly*)
5282 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5283 case $host_cpu in
5284 i*86 )
5285 # Not sure whether the presence of OpenBSD here was a mistake.
5286 # Let's accept both of them until this is cleared up.
5287 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5288 lt_cv_file_magic_cmd=/usr/bin/file
5289 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5290 ;;
5291 esac
5292 else
5293 lt_cv_deplibs_check_method=pass_all
5294 fi
5295 ;;
5296
5297gnu*)
5298 lt_cv_deplibs_check_method=pass_all
5299 ;;
5300
5301haiku*)
5302 lt_cv_deplibs_check_method=pass_all
5303 ;;
5304
5305hpux10.20* | hpux11*)
5306 lt_cv_file_magic_cmd=/usr/bin/file
5307 case $host_cpu in
5308 ia64*)
5309 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5310 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5311 ;;
5312 hppa*64*)
5313 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]'
5314 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5315 ;;
5316 *)
5317 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5318 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5319 ;;
5320 esac
5321 ;;
5322
5323interix[3-9]*)
5324 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5326 ;;
5327
5328irix5* | irix6* | nonstopux*)
5329 case $LD in
5330 *-32|*"-32 ") libmagic=32-bit;;
5331 *-n32|*"-n32 ") libmagic=N32;;
5332 *-64|*"-64 ") libmagic=64-bit;;
5333 *) libmagic=never-match;;
5334 esac
5335 lt_cv_deplibs_check_method=pass_all
5336 ;;
5337
5338# This must be glibc/ELF.
5339linux* | k*bsd*-gnu | kopensolaris*-gnu)
5340 lt_cv_deplibs_check_method=pass_all
5341 ;;
5342
5343netbsd*)
5344 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5346 else
5347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5348 fi
5349 ;;
5350
5351newos6*)
5352 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5353 lt_cv_file_magic_cmd=/usr/bin/file
5354 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5355 ;;
5356
5357*nto* | *qnx*)
5358 lt_cv_deplibs_check_method=pass_all
5359 ;;
5360
5361openbsd*)
5362 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5364 else
5365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5366 fi
5367 ;;
5368
5369osf3* | osf4* | osf5*)
5370 lt_cv_deplibs_check_method=pass_all
5371 ;;
5372
5373rdos*)
5374 lt_cv_deplibs_check_method=pass_all
5375 ;;
5376
5377solaris*)
5378 lt_cv_deplibs_check_method=pass_all
5379 ;;
5380
5381sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5382 lt_cv_deplibs_check_method=pass_all
5383 ;;
5384
5385sysv4 | sysv4.3*)
5386 case $host_vendor in
5387 motorola)
5388 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]'
5389 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5390 ;;
5391 ncr)
5392 lt_cv_deplibs_check_method=pass_all
5393 ;;
5394 sequent)
5395 lt_cv_file_magic_cmd='/bin/file'
5396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5397 ;;
5398 sni)
5399 lt_cv_file_magic_cmd='/bin/file'
5400 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5401 lt_cv_file_magic_test_file=/lib/libc.so
5402 ;;
5403 siemens)
5404 lt_cv_deplibs_check_method=pass_all
5405 ;;
5406 pc)
5407 lt_cv_deplibs_check_method=pass_all
5408 ;;
5409 esac
5410 ;;
5411
5412tpf*)
5413 lt_cv_deplibs_check_method=pass_all
5414 ;;
5415esac
5416
5417fi
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5419$as_echo "$lt_cv_deplibs_check_method" >&6; }
5420
5421file_magic_glob=
5422want_nocaseglob=no
5423if test "$build" = "$host"; then
5424 case $host_os in
5425 mingw* | pw32*)
5426 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5427 want_nocaseglob=yes
5428 else
5429 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5430 fi
5431 ;;
5432 esac
5433fi
5434
5435file_magic_cmd=$lt_cv_file_magic_cmd
5436deplibs_check_method=$lt_cv_deplibs_check_method
5437test -z "$deplibs_check_method" && deplibs_check_method=unknown
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460if test -n "$ac_tool_prefix"; then
5461 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5462set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464$as_echo_n "checking for $ac_word... " >&6; }
5465if ${ac_cv_prog_DLLTOOL+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467else
5468 if test -n "$DLLTOOL"; then
5469 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5470else
5471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472for as_dir in $PATH
5473do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01005477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08005478 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 break 2
5481 fi
5482done
5483 done
5484IFS=$as_save_IFS
5485
5486fi
5487fi
5488DLLTOOL=$ac_cv_prog_DLLTOOL
5489if test -n "$DLLTOOL"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5491$as_echo "$DLLTOOL" >&6; }
5492else
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494$as_echo "no" >&6; }
5495fi
5496
5497
5498fi
5499if test -z "$ac_cv_prog_DLLTOOL"; then
5500 ac_ct_DLLTOOL=$DLLTOOL
5501 # Extract the first word of "dlltool", so it can be a program name with args.
5502set dummy dlltool; ac_word=$2
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504$as_echo_n "checking for $ac_word... " >&6; }
5505if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507else
5508 if test -n "$ac_ct_DLLTOOL"; then
5509 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5510else
5511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512for as_dir in $PATH
5513do
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01005517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08005518 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 break 2
5521 fi
5522done
5523 done
5524IFS=$as_save_IFS
5525
5526fi
5527fi
5528ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5529if test -n "$ac_ct_DLLTOOL"; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5531$as_echo "$ac_ct_DLLTOOL" >&6; }
5532else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534$as_echo "no" >&6; }
5535fi
5536
5537 if test "x$ac_ct_DLLTOOL" = x; then
5538 DLLTOOL="false"
5539 else
5540 case $cross_compiling:$ac_tool_warned in
5541yes:)
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5544ac_tool_warned=yes ;;
5545esac
5546 DLLTOOL=$ac_ct_DLLTOOL
5547 fi
5548else
5549 DLLTOOL="$ac_cv_prog_DLLTOOL"
5550fi
5551
5552test -z "$DLLTOOL" && DLLTOOL=dlltool
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5564$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5565if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567else
5568 lt_cv_sharedlib_from_linklib_cmd='unknown'
5569
5570case $host_os in
5571cygwin* | mingw* | pw32* | cegcc*)
5572 # two different shell functions defined in ltmain.sh
5573 # decide which to use based on capabilities of $DLLTOOL
5574 case `$DLLTOOL --help 2>&1` in
5575 *--identify-strict*)
5576 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5577 ;;
5578 *)
5579 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5580 ;;
5581 esac
5582 ;;
5583*)
5584 # fallback: assume linklib IS sharedlib
5585 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5586 ;;
5587esac
5588
5589fi
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5591$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5592sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5593test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5594
5595
5596
5597
5598
5599
5600
5601
5602if test -n "$ac_tool_prefix"; then
5603 for ac_prog in ar
5604 do
5605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608$as_echo_n "checking for $ac_word... " >&6; }
5609if ${ac_cv_prog_AR+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611else
5612 if test -n "$AR"; then
5613 ac_cv_prog_AR="$AR" # Let the user override the test.
5614else
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01005621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08005622 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5625 fi
5626done
5627 done
5628IFS=$as_save_IFS
5629
5630fi
5631fi
5632AR=$ac_cv_prog_AR
5633if test -n "$AR"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5635$as_echo "$AR" >&6; }
5636else
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638$as_echo "no" >&6; }
5639fi
5640
5641
5642 test -n "$AR" && break
5643 done
5644fi
5645if test -z "$AR"; then
5646 ac_ct_AR=$AR
5647 for ac_prog in ar
5648do
5649 # Extract the first word of "$ac_prog", so it can be a program name with args.
5650set dummy $ac_prog; ac_word=$2
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652$as_echo_n "checking for $ac_word... " >&6; }
5653if ${ac_cv_prog_ac_ct_AR+:} false; then :
5654 $as_echo_n "(cached) " >&6
5655else
5656 if test -n "$ac_ct_AR"; then
5657 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5658else
5659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660for as_dir in $PATH
5661do
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01005665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08005666 ac_cv_prog_ac_ct_AR="$ac_prog"
5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 break 2
5669 fi
5670done
5671 done
5672IFS=$as_save_IFS
5673
5674fi
5675fi
5676ac_ct_AR=$ac_cv_prog_ac_ct_AR
5677if test -n "$ac_ct_AR"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5679$as_echo "$ac_ct_AR" >&6; }
5680else
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682$as_echo "no" >&6; }
5683fi
5684
5685
5686 test -n "$ac_ct_AR" && break
5687done
5688
5689 if test "x$ac_ct_AR" = x; then
5690 AR="false"
5691 else
5692 case $cross_compiling:$ac_tool_warned in
5693yes:)
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5696ac_tool_warned=yes ;;
5697esac
5698 AR=$ac_ct_AR
5699 fi
5700fi
5701
5702: ${AR=ar}
5703: ${AR_FLAGS=cru}
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5716$as_echo_n "checking for archiver @FILE support... " >&6; }
5717if ${lt_cv_ar_at_file+:} false; then :
5718 $as_echo_n "(cached) " >&6
5719else
5720 lt_cv_ar_at_file=no
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h. */
5723
5724int
5725main ()
5726{
5727
5728 ;
5729 return 0;
5730}
5731_ACEOF
5732if ac_fn_c_try_compile "$LINENO"; then :
5733 echo conftest.$ac_objext > conftest.lst
5734 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5736 (eval $lt_ar_try) 2>&5
5737 ac_status=$?
5738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5739 test $ac_status = 0; }
5740 if test "$ac_status" -eq 0; then
5741 # Ensure the archiver fails upon bogus file names.
5742 rm -f conftest.$ac_objext libconftest.a
5743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5744 (eval $lt_ar_try) 2>&5
5745 ac_status=$?
5746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5747 test $ac_status = 0; }
5748 if test "$ac_status" -ne 0; then
5749 lt_cv_ar_at_file=@
5750 fi
5751 fi
5752 rm -f conftest.* libconftest.a
5753
5754fi
5755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756
5757fi
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5759$as_echo "$lt_cv_ar_at_file" >&6; }
5760
5761if test "x$lt_cv_ar_at_file" = xno; then
5762 archiver_list_spec=
5763else
5764 archiver_list_spec=$lt_cv_ar_at_file
5765fi
5766
5767
5768
5769
5770
5771
5772
5773if test -n "$ac_tool_prefix"; then
5774 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5775set dummy ${ac_tool_prefix}strip; ac_word=$2
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777$as_echo_n "checking for $ac_word... " >&6; }
5778if ${ac_cv_prog_STRIP+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780else
5781 if test -n "$STRIP"; then
5782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5783else
5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH
5786do
5787 IFS=$as_save_IFS
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01005790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08005791 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 break 2
5794 fi
5795done
5796 done
5797IFS=$as_save_IFS
5798
5799fi
5800fi
5801STRIP=$ac_cv_prog_STRIP
5802if test -n "$STRIP"; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5804$as_echo "$STRIP" >&6; }
5805else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807$as_echo "no" >&6; }
5808fi
5809
5810
5811fi
5812if test -z "$ac_cv_prog_STRIP"; then
5813 ac_ct_STRIP=$STRIP
5814 # Extract the first word of "strip", so it can be a program name with args.
5815set dummy strip; ac_word=$2
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817$as_echo_n "checking for $ac_word... " >&6; }
5818if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5819 $as_echo_n "(cached) " >&6
5820else
5821 if test -n "$ac_ct_STRIP"; then
5822 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01005830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08005831 ac_cv_prog_ac_ct_STRIP="strip"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5834 fi
5835done
5836 done
5837IFS=$as_save_IFS
5838
5839fi
5840fi
5841ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5842if test -n "$ac_ct_STRIP"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5844$as_echo "$ac_ct_STRIP" >&6; }
5845else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847$as_echo "no" >&6; }
5848fi
5849
5850 if test "x$ac_ct_STRIP" = x; then
5851 STRIP=":"
5852 else
5853 case $cross_compiling:$ac_tool_warned in
5854yes:)
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5857ac_tool_warned=yes ;;
5858esac
5859 STRIP=$ac_ct_STRIP
5860 fi
5861else
5862 STRIP="$ac_cv_prog_STRIP"
5863fi
5864
5865test -z "$STRIP" && STRIP=:
5866
5867
5868
5869
5870
5871
5872if test -n "$ac_tool_prefix"; then
5873 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5874set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876$as_echo_n "checking for $ac_word... " >&6; }
5877if ${ac_cv_prog_RANLIB+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879else
5880 if test -n "$RANLIB"; then
5881 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5882else
5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884for as_dir in $PATH
5885do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01005889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08005890 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894done
5895 done
5896IFS=$as_save_IFS
5897
5898fi
5899fi
5900RANLIB=$ac_cv_prog_RANLIB
5901if test -n "$RANLIB"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5903$as_echo "$RANLIB" >&6; }
5904else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906$as_echo "no" >&6; }
5907fi
5908
5909
5910fi
5911if test -z "$ac_cv_prog_RANLIB"; then
5912 ac_ct_RANLIB=$RANLIB
5913 # Extract the first word of "ranlib", so it can be a program name with args.
5914set dummy ranlib; ac_word=$2
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916$as_echo_n "checking for $ac_word... " >&6; }
5917if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5918 $as_echo_n "(cached) " >&6
5919else
5920 if test -n "$ac_ct_RANLIB"; then
5921 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5922else
5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924for as_dir in $PATH
5925do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01005929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08005930 ac_cv_prog_ac_ct_RANLIB="ranlib"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5933 fi
5934done
5935 done
5936IFS=$as_save_IFS
5937
5938fi
5939fi
5940ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5941if test -n "$ac_ct_RANLIB"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5943$as_echo "$ac_ct_RANLIB" >&6; }
5944else
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946$as_echo "no" >&6; }
5947fi
5948
5949 if test "x$ac_ct_RANLIB" = x; then
5950 RANLIB=":"
5951 else
5952 case $cross_compiling:$ac_tool_warned in
5953yes:)
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5956ac_tool_warned=yes ;;
5957esac
5958 RANLIB=$ac_ct_RANLIB
5959 fi
5960else
5961 RANLIB="$ac_cv_prog_RANLIB"
5962fi
5963
5964test -z "$RANLIB" && RANLIB=:
5965
5966
5967
5968
5969
5970
5971# Determine commands to create old-style static archives.
5972old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5973old_postinstall_cmds='chmod 644 $oldlib'
5974old_postuninstall_cmds=
5975
5976if test -n "$RANLIB"; then
5977 case $host_os in
5978 openbsd*)
5979 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5980 ;;
5981 *)
5982 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5983 ;;
5984 esac
5985 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5986fi
5987
5988case $host_os in
5989 darwin*)
5990 lock_old_archive_extraction=yes ;;
5991 *)
5992 lock_old_archive_extraction=no ;;
5993esac
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033# If no C compiler was specified, use CC.
6034LTCC=${LTCC-"$CC"}
6035
6036# If no C compiler flags were specified, use CFLAGS.
6037LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6038
6039# Allow CC to be a program name with arguments.
6040compiler=$CC
6041
6042
6043# Check for command to grab the raw symbol name followed by C symbol from nm.
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6045$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6046if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6047 $as_echo_n "(cached) " >&6
6048else
6049
6050# These are sane defaults that work on at least a few old systems.
6051# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6052
6053# Character class describing NM global symbol codes.
6054symcode='[BCDEGRST]'
6055
6056# Regexp to match symbols that can be accessed directly from C.
6057sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6058
6059# Define system-specific variables.
6060case $host_os in
6061aix*)
6062 symcode='[BCDT]'
6063 ;;
6064cygwin* | mingw* | pw32* | cegcc*)
6065 symcode='[ABCDGISTW]'
6066 ;;
6067hpux*)
6068 if test "$host_cpu" = ia64; then
6069 symcode='[ABCDEGRST]'
6070 fi
6071 ;;
6072irix* | nonstopux*)
6073 symcode='[BCDEGRST]'
6074 ;;
6075osf*)
6076 symcode='[BCDEGQRST]'
6077 ;;
6078solaris*)
6079 symcode='[BDRT]'
6080 ;;
6081sco3.2v5*)
6082 symcode='[DT]'
6083 ;;
6084sysv4.2uw2*)
6085 symcode='[DT]'
6086 ;;
6087sysv5* | sco5v6* | unixware* | OpenUNIX*)
6088 symcode='[ABDT]'
6089 ;;
6090sysv4)
6091 symcode='[DFNSTU]'
6092 ;;
6093esac
6094
6095# If we're using GNU nm, then use its standard symbol codes.
6096case `$NM -V 2>&1` in
6097*GNU* | *'with BFD'*)
6098 symcode='[ABCDGIRSTW]' ;;
6099esac
6100
6101# Transform an extracted symbol line into a proper C declaration.
6102# Some systems (esp. on ia64) link data and code symbols differently,
6103# so use this general approach.
6104lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6105
6106# Transform an extracted symbol line into symbol name and symbol address
6107lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6108lt_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'"
6109
6110# Handle CRLF in mingw tool chain
6111opt_cr=
6112case $build_os in
6113mingw*)
6114 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6115 ;;
6116esac
6117
6118# Try without a prefix underscore, then with it.
6119for ac_symprfx in "" "_"; do
6120
6121 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6122 symxfrm="\\1 $ac_symprfx\\2 \\2"
6123
6124 # Write the raw and C identifiers.
6125 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6126 # Fake it for dumpbin and say T for any non-static function
6127 # and D for any global variable.
6128 # Also find C++ and __fastcall symbols from MSVC++,
6129 # which start with @ or ?.
6130 lt_cv_sys_global_symbol_pipe="$AWK '"\
6131" {last_section=section; section=\$ 3};"\
6132" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6133" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6134" \$ 0!~/External *\|/{next};"\
6135" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6136" {if(hide[section]) next};"\
6137" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6138" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6139" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6140" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6141" ' prfx=^$ac_symprfx"
6142 else
6143 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6144 fi
6145 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6146
6147 # Check to see that the pipe works correctly.
6148 pipe_works=no
6149
6150 rm -f conftest*
6151 cat > conftest.$ac_ext <<_LT_EOF
6152#ifdef __cplusplus
6153extern "C" {
6154#endif
6155char nm_test_var;
6156void nm_test_func(void);
6157void nm_test_func(void){}
6158#ifdef __cplusplus
6159}
6160#endif
6161int main(){nm_test_var='a';nm_test_func();return(0);}
6162_LT_EOF
6163
6164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6165 (eval $ac_compile) 2>&5
6166 ac_status=$?
6167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6168 test $ac_status = 0; }; then
6169 # Now try to grab the symbols.
6170 nlist=conftest.nm
6171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6172 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6173 ac_status=$?
6174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6175 test $ac_status = 0; } && test -s "$nlist"; then
6176 # Try sorting and uniquifying the output.
6177 if sort "$nlist" | uniq > "$nlist"T; then
6178 mv -f "$nlist"T "$nlist"
6179 else
6180 rm -f "$nlist"T
6181 fi
6182
6183 # Make sure that we snagged all the symbols we need.
6184 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6185 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6186 cat <<_LT_EOF > conftest.$ac_ext
6187/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6188#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6189/* DATA imports from DLLs on WIN32 con't be const, because runtime
6190 relocations are performed -- see ld's documentation on pseudo-relocs. */
6191# define LT_DLSYM_CONST
6192#elif defined(__osf__)
6193/* This system does not cope well with relocations in const data. */
6194# define LT_DLSYM_CONST
6195#else
6196# define LT_DLSYM_CONST const
6197#endif
6198
6199#ifdef __cplusplus
6200extern "C" {
6201#endif
6202
6203_LT_EOF
6204 # Now generate the symbol file.
6205 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6206
6207 cat <<_LT_EOF >> conftest.$ac_ext
6208
6209/* The mapping between symbol names and symbols. */
6210LT_DLSYM_CONST struct {
6211 const char *name;
6212 void *address;
6213}
6214lt__PROGRAM__LTX_preloaded_symbols[] =
6215{
6216 { "@PROGRAM@", (void *) 0 },
6217_LT_EOF
6218 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6219 cat <<\_LT_EOF >> conftest.$ac_ext
6220 {0, (void *) 0}
6221};
6222
6223/* This works around a problem in FreeBSD linker */
6224#ifdef FREEBSD_WORKAROUND
6225static const void *lt_preloaded_setup() {
6226 return lt__PROGRAM__LTX_preloaded_symbols;
6227}
6228#endif
6229
6230#ifdef __cplusplus
6231}
6232#endif
6233_LT_EOF
6234 # Now try linking the two files.
6235 mv conftest.$ac_objext conftstm.$ac_objext
6236 lt_globsym_save_LIBS=$LIBS
6237 lt_globsym_save_CFLAGS=$CFLAGS
6238 LIBS="conftstm.$ac_objext"
6239 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6241 (eval $ac_link) 2>&5
6242 ac_status=$?
6243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6244 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6245 pipe_works=yes
6246 fi
6247 LIBS=$lt_globsym_save_LIBS
6248 CFLAGS=$lt_globsym_save_CFLAGS
6249 else
6250 echo "cannot find nm_test_func in $nlist" >&5
6251 fi
6252 else
6253 echo "cannot find nm_test_var in $nlist" >&5
6254 fi
6255 else
6256 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6257 fi
6258 else
6259 echo "$progname: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6261 fi
6262 rm -rf conftest* conftst*
6263
6264 # Do not use the global_symbol_pipe unless it works.
6265 if test "$pipe_works" = yes; then
6266 break
6267 else
6268 lt_cv_sys_global_symbol_pipe=
6269 fi
6270done
6271
6272fi
6273
6274if test -z "$lt_cv_sys_global_symbol_pipe"; then
6275 lt_cv_sys_global_symbol_to_cdecl=
6276fi
6277if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6279$as_echo "failed" >&6; }
6280else
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6282$as_echo "ok" >&6; }
6283fi
6284
6285# Response file support.
6286if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6287 nm_file_list_spec='@'
6288elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6289 nm_file_list_spec='@'
6290fi
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6319$as_echo_n "checking for sysroot... " >&6; }
6320
6321# Check whether --with-sysroot was given.
6322if test "${with_sysroot+set}" = set; then :
6323 withval=$with_sysroot;
6324else
6325 with_sysroot=no
6326fi
6327
6328
6329lt_sysroot=
6330case ${with_sysroot} in #(
6331 yes)
6332 if test "$GCC" = yes; then
6333 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6334 fi
6335 ;; #(
6336 /*)
6337 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6338 ;; #(
6339 no|'')
6340 ;; #(
6341 *)
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6343$as_echo "${with_sysroot}" >&6; }
6344 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6345 ;;
6346esac
6347
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6349$as_echo "${lt_sysroot:-no}" >&6; }
6350
6351
6352
6353
6354
6355# Check whether --enable-libtool-lock was given.
6356if test "${enable_libtool_lock+set}" = set; then :
6357 enableval=$enable_libtool_lock;
6358fi
6359
6360test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6361
6362# Some flags need to be propagated to the compiler or linker for good
6363# libtool support.
6364case $host in
6365ia64-*-hpux*)
6366 # Find out which ABI we are using.
6367 echo 'int i;' > conftest.$ac_ext
6368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6369 (eval $ac_compile) 2>&5
6370 ac_status=$?
6371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6372 test $ac_status = 0; }; then
6373 case `/usr/bin/file conftest.$ac_objext` in
6374 *ELF-32*)
6375 HPUX_IA64_MODE="32"
6376 ;;
6377 *ELF-64*)
6378 HPUX_IA64_MODE="64"
6379 ;;
6380 esac
6381 fi
6382 rm -rf conftest*
6383 ;;
6384*-*-irix6*)
6385 # Find out which ABI we are using.
6386 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6388 (eval $ac_compile) 2>&5
6389 ac_status=$?
6390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391 test $ac_status = 0; }; then
6392 if test "$lt_cv_prog_gnu_ld" = yes; then
6393 case `/usr/bin/file conftest.$ac_objext` in
6394 *32-bit*)
6395 LD="${LD-ld} -melf32bsmip"
6396 ;;
6397 *N32*)
6398 LD="${LD-ld} -melf32bmipn32"
6399 ;;
6400 *64-bit*)
6401 LD="${LD-ld} -melf64bmip"
6402 ;;
6403 esac
6404 else
6405 case `/usr/bin/file conftest.$ac_objext` in
6406 *32-bit*)
6407 LD="${LD-ld} -32"
6408 ;;
6409 *N32*)
6410 LD="${LD-ld} -n32"
6411 ;;
6412 *64-bit*)
6413 LD="${LD-ld} -64"
6414 ;;
6415 esac
6416 fi
6417 fi
6418 rm -rf conftest*
6419 ;;
6420
flimc91ee5b2016-01-26 14:33:44 +01006421x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08006422s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6423 # Find out which ABI we are using.
6424 echo 'int i;' > conftest.$ac_ext
6425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6426 (eval $ac_compile) 2>&5
6427 ac_status=$?
6428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6429 test $ac_status = 0; }; then
6430 case `/usr/bin/file conftest.o` in
6431 *32-bit*)
6432 case $host in
6433 x86_64-*kfreebsd*-gnu)
6434 LD="${LD-ld} -m elf_i386_fbsd"
6435 ;;
6436 x86_64-*linux*)
6437 LD="${LD-ld} -m elf_i386"
6438 ;;
flimc91ee5b2016-01-26 14:33:44 +01006439 powerpc64le-*linux*)
6440 LD="${LD-ld} -m elf32lppclinux"
6441 ;;
6442 powerpc64-*linux*)
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08006443 LD="${LD-ld} -m elf32ppclinux"
6444 ;;
6445 s390x-*linux*)
6446 LD="${LD-ld} -m elf_s390"
6447 ;;
6448 sparc64-*linux*)
6449 LD="${LD-ld} -m elf32_sparc"
6450 ;;
6451 esac
6452 ;;
6453 *64-bit*)
6454 case $host in
6455 x86_64-*kfreebsd*-gnu)
6456 LD="${LD-ld} -m elf_x86_64_fbsd"
6457 ;;
6458 x86_64-*linux*)
6459 LD="${LD-ld} -m elf_x86_64"
6460 ;;
flimc91ee5b2016-01-26 14:33:44 +01006461 powerpcle-*linux*)
6462 LD="${LD-ld} -m elf64lppc"
6463 ;;
6464 powerpc-*linux*)
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08006465 LD="${LD-ld} -m elf64ppc"
6466 ;;
6467 s390*-*linux*|s390*-*tpf*)
6468 LD="${LD-ld} -m elf64_s390"
6469 ;;
6470 sparc*-*linux*)
6471 LD="${LD-ld} -m elf64_sparc"
6472 ;;
6473 esac
6474 ;;
6475 esac
6476 fi
6477 rm -rf conftest*
6478 ;;
6479
6480*-*-sco3.2v5*)
6481 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6482 SAVE_CFLAGS="$CFLAGS"
6483 CFLAGS="$CFLAGS -belf"
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6485$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6486if ${lt_cv_cc_needs_belf+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488else
6489 ac_ext=c
6490ac_cpp='$CPP $CPPFLAGS'
6491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6493ac_compiler_gnu=$ac_cv_c_compiler_gnu
6494
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496/* end confdefs.h. */
6497
6498int
6499main ()
6500{
6501
6502 ;
6503 return 0;
6504}
6505_ACEOF
6506if ac_fn_c_try_link "$LINENO"; then :
6507 lt_cv_cc_needs_belf=yes
6508else
6509 lt_cv_cc_needs_belf=no
6510fi
6511rm -f core conftest.err conftest.$ac_objext \
6512 conftest$ac_exeext conftest.$ac_ext
6513 ac_ext=c
6514ac_cpp='$CPP $CPPFLAGS'
6515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6517ac_compiler_gnu=$ac_cv_c_compiler_gnu
6518
6519fi
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6521$as_echo "$lt_cv_cc_needs_belf" >&6; }
6522 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6523 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6524 CFLAGS="$SAVE_CFLAGS"
6525 fi
6526 ;;
6527*-*solaris*)
6528 # Find out which ABI we are using.
6529 echo 'int i;' > conftest.$ac_ext
6530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6531 (eval $ac_compile) 2>&5
6532 ac_status=$?
6533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6534 test $ac_status = 0; }; then
6535 case `/usr/bin/file conftest.o` in
6536 *64-bit*)
6537 case $lt_cv_prog_gnu_ld in
6538 yes*)
6539 case $host in
6540 i?86-*-solaris*)
6541 LD="${LD-ld} -m elf_x86_64"
6542 ;;
6543 sparc*-*-solaris*)
6544 LD="${LD-ld} -m elf64_sparc"
6545 ;;
6546 esac
6547 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6548 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6549 LD="${LD-ld}_sol2"
6550 fi
6551 ;;
6552 *)
6553 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6554 LD="${LD-ld} -64"
6555 fi
6556 ;;
6557 esac
6558 ;;
6559 esac
6560 fi
6561 rm -rf conftest*
6562 ;;
6563esac
6564
6565need_locks="$enable_libtool_lock"
6566
6567if test -n "$ac_tool_prefix"; then
6568 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6569set dummy ${ac_tool_prefix}mt; ac_word=$2
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571$as_echo_n "checking for $ac_word... " >&6; }
6572if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6573 $as_echo_n "(cached) " >&6
6574else
6575 if test -n "$MANIFEST_TOOL"; then
6576 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6577else
6578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01006584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08006585 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 break 2
6588 fi
6589done
6590 done
6591IFS=$as_save_IFS
6592
6593fi
6594fi
6595MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6596if test -n "$MANIFEST_TOOL"; then
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6598$as_echo "$MANIFEST_TOOL" >&6; }
6599else
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601$as_echo "no" >&6; }
6602fi
6603
6604
6605fi
6606if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6607 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6608 # Extract the first word of "mt", so it can be a program name with args.
6609set dummy mt; ac_word=$2
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611$as_echo_n "checking for $ac_word... " >&6; }
6612if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614else
6615 if test -n "$ac_ct_MANIFEST_TOOL"; then
6616 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6617else
6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619for as_dir in $PATH
6620do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01006624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08006625 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629done
6630 done
6631IFS=$as_save_IFS
6632
6633fi
6634fi
6635ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6636if test -n "$ac_ct_MANIFEST_TOOL"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6638$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6639else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641$as_echo "no" >&6; }
6642fi
6643
6644 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6645 MANIFEST_TOOL=":"
6646 else
6647 case $cross_compiling:$ac_tool_warned in
6648yes:)
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6651ac_tool_warned=yes ;;
6652esac
6653 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6654 fi
6655else
6656 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6657fi
6658
6659test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6661$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6662if ${lt_cv_path_mainfest_tool+:} false; then :
6663 $as_echo_n "(cached) " >&6
6664else
6665 lt_cv_path_mainfest_tool=no
6666 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6667 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6668 cat conftest.err >&5
6669 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6670 lt_cv_path_mainfest_tool=yes
6671 fi
6672 rm -f conftest*
6673fi
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6675$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6676if test "x$lt_cv_path_mainfest_tool" != xyes; then
6677 MANIFEST_TOOL=:
6678fi
6679
6680
6681
6682
6683
6684
6685 case $host_os in
6686 rhapsody* | darwin*)
6687 if test -n "$ac_tool_prefix"; then
6688 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6689set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691$as_echo_n "checking for $ac_word... " >&6; }
6692if ${ac_cv_prog_DSYMUTIL+:} false; then :
6693 $as_echo_n "(cached) " >&6
6694else
6695 if test -n "$DSYMUTIL"; then
6696 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6697else
6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01006704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08006705 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6708 fi
6709done
6710 done
6711IFS=$as_save_IFS
6712
6713fi
6714fi
6715DSYMUTIL=$ac_cv_prog_DSYMUTIL
6716if test -n "$DSYMUTIL"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6718$as_echo "$DSYMUTIL" >&6; }
6719else
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721$as_echo "no" >&6; }
6722fi
6723
6724
6725fi
6726if test -z "$ac_cv_prog_DSYMUTIL"; then
6727 ac_ct_DSYMUTIL=$DSYMUTIL
6728 # Extract the first word of "dsymutil", so it can be a program name with args.
6729set dummy dsymutil; ac_word=$2
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731$as_echo_n "checking for $ac_word... " >&6; }
6732if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6733 $as_echo_n "(cached) " >&6
6734else
6735 if test -n "$ac_ct_DSYMUTIL"; then
6736 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01006744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08006745 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6748 fi
6749done
6750 done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
6755ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6756if test -n "$ac_ct_DSYMUTIL"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6758$as_echo "$ac_ct_DSYMUTIL" >&6; }
6759else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762fi
6763
6764 if test "x$ac_ct_DSYMUTIL" = x; then
6765 DSYMUTIL=":"
6766 else
6767 case $cross_compiling:$ac_tool_warned in
6768yes:)
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771ac_tool_warned=yes ;;
6772esac
6773 DSYMUTIL=$ac_ct_DSYMUTIL
6774 fi
6775else
6776 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6777fi
6778
6779 if test -n "$ac_tool_prefix"; then
6780 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6781set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783$as_echo_n "checking for $ac_word... " >&6; }
6784if ${ac_cv_prog_NMEDIT+:} false; then :
6785 $as_echo_n "(cached) " >&6
6786else
6787 if test -n "$NMEDIT"; then
6788 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6789else
6790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791for as_dir in $PATH
6792do
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01006796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08006797 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801done
6802 done
6803IFS=$as_save_IFS
6804
6805fi
6806fi
6807NMEDIT=$ac_cv_prog_NMEDIT
6808if test -n "$NMEDIT"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6810$as_echo "$NMEDIT" >&6; }
6811else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813$as_echo "no" >&6; }
6814fi
6815
6816
6817fi
6818if test -z "$ac_cv_prog_NMEDIT"; then
6819 ac_ct_NMEDIT=$NMEDIT
6820 # Extract the first word of "nmedit", so it can be a program name with args.
6821set dummy nmedit; ac_word=$2
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823$as_echo_n "checking for $ac_word... " >&6; }
6824if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6825 $as_echo_n "(cached) " >&6
6826else
6827 if test -n "$ac_ct_NMEDIT"; then
6828 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6829else
6830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831for as_dir in $PATH
6832do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01006836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08006837 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6840 fi
6841done
6842 done
6843IFS=$as_save_IFS
6844
6845fi
6846fi
6847ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6848if test -n "$ac_ct_NMEDIT"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6850$as_echo "$ac_ct_NMEDIT" >&6; }
6851else
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853$as_echo "no" >&6; }
6854fi
6855
6856 if test "x$ac_ct_NMEDIT" = x; then
6857 NMEDIT=":"
6858 else
6859 case $cross_compiling:$ac_tool_warned in
6860yes:)
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863ac_tool_warned=yes ;;
6864esac
6865 NMEDIT=$ac_ct_NMEDIT
6866 fi
6867else
6868 NMEDIT="$ac_cv_prog_NMEDIT"
6869fi
6870
6871 if test -n "$ac_tool_prefix"; then
6872 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6873set dummy ${ac_tool_prefix}lipo; ac_word=$2
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875$as_echo_n "checking for $ac_word... " >&6; }
6876if ${ac_cv_prog_LIPO+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878else
6879 if test -n "$LIPO"; then
6880 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6881else
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01006888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08006889 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893done
6894 done
6895IFS=$as_save_IFS
6896
6897fi
6898fi
6899LIPO=$ac_cv_prog_LIPO
6900if test -n "$LIPO"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6902$as_echo "$LIPO" >&6; }
6903else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905$as_echo "no" >&6; }
6906fi
6907
6908
6909fi
6910if test -z "$ac_cv_prog_LIPO"; then
6911 ac_ct_LIPO=$LIPO
6912 # Extract the first word of "lipo", so it can be a program name with args.
6913set dummy lipo; ac_word=$2
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915$as_echo_n "checking for $ac_word... " >&6; }
6916if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918else
6919 if test -n "$ac_ct_LIPO"; then
6920 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6921else
6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01006928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08006929 ac_cv_prog_ac_ct_LIPO="lipo"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933done
6934 done
6935IFS=$as_save_IFS
6936
6937fi
6938fi
6939ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6940if test -n "$ac_ct_LIPO"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6942$as_echo "$ac_ct_LIPO" >&6; }
6943else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945$as_echo "no" >&6; }
6946fi
6947
6948 if test "x$ac_ct_LIPO" = x; then
6949 LIPO=":"
6950 else
6951 case $cross_compiling:$ac_tool_warned in
6952yes:)
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6955ac_tool_warned=yes ;;
6956esac
6957 LIPO=$ac_ct_LIPO
6958 fi
6959else
6960 LIPO="$ac_cv_prog_LIPO"
6961fi
6962
6963 if test -n "$ac_tool_prefix"; then
6964 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6965set dummy ${ac_tool_prefix}otool; ac_word=$2
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967$as_echo_n "checking for $ac_word... " >&6; }
6968if ${ac_cv_prog_OTOOL+:} false; then :
6969 $as_echo_n "(cached) " >&6
6970else
6971 if test -n "$OTOOL"; then
6972 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6973else
6974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01006980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08006981 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985done
6986 done
6987IFS=$as_save_IFS
6988
6989fi
6990fi
6991OTOOL=$ac_cv_prog_OTOOL
6992if test -n "$OTOOL"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6994$as_echo "$OTOOL" >&6; }
6995else
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997$as_echo "no" >&6; }
6998fi
6999
7000
7001fi
7002if test -z "$ac_cv_prog_OTOOL"; then
7003 ac_ct_OTOOL=$OTOOL
7004 # Extract the first word of "otool", so it can be a program name with args.
7005set dummy otool; ac_word=$2
7006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007$as_echo_n "checking for $ac_word... " >&6; }
7008if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010else
7011 if test -n "$ac_ct_OTOOL"; then
7012 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7013else
7014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01007020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08007021 ac_cv_prog_ac_ct_OTOOL="otool"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7024 fi
7025done
7026 done
7027IFS=$as_save_IFS
7028
7029fi
7030fi
7031ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7032if test -n "$ac_ct_OTOOL"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7034$as_echo "$ac_ct_OTOOL" >&6; }
7035else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037$as_echo "no" >&6; }
7038fi
7039
7040 if test "x$ac_ct_OTOOL" = x; then
7041 OTOOL=":"
7042 else
7043 case $cross_compiling:$ac_tool_warned in
7044yes:)
7045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7047ac_tool_warned=yes ;;
7048esac
7049 OTOOL=$ac_ct_OTOOL
7050 fi
7051else
7052 OTOOL="$ac_cv_prog_OTOOL"
7053fi
7054
7055 if test -n "$ac_tool_prefix"; then
7056 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7057set dummy ${ac_tool_prefix}otool64; ac_word=$2
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059$as_echo_n "checking for $ac_word... " >&6; }
7060if ${ac_cv_prog_OTOOL64+:} false; then :
7061 $as_echo_n "(cached) " >&6
7062else
7063 if test -n "$OTOOL64"; then
7064 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7065else
7066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01007072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08007073 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077done
7078 done
7079IFS=$as_save_IFS
7080
7081fi
7082fi
7083OTOOL64=$ac_cv_prog_OTOOL64
7084if test -n "$OTOOL64"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7086$as_echo "$OTOOL64" >&6; }
7087else
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089$as_echo "no" >&6; }
7090fi
7091
7092
7093fi
7094if test -z "$ac_cv_prog_OTOOL64"; then
7095 ac_ct_OTOOL64=$OTOOL64
7096 # Extract the first word of "otool64", so it can be a program name with args.
7097set dummy otool64; ac_word=$2
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099$as_echo_n "checking for $ac_word... " >&6; }
7100if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7101 $as_echo_n "(cached) " >&6
7102else
7103 if test -n "$ac_ct_OTOOL64"; then
7104 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7105else
7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +01007112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -08007113 ac_cv_prog_ac_ct_OTOOL64="otool64"
7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7116 fi
7117done
7118 done
7119IFS=$as_save_IFS
7120
7121fi
7122fi
7123ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7124if test -n "$ac_ct_OTOOL64"; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7126$as_echo "$ac_ct_OTOOL64" >&6; }
7127else
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129$as_echo "no" >&6; }
7130fi
7131
7132 if test "x$ac_ct_OTOOL64" = x; then
7133 OTOOL64=":"
7134 else
7135 case $cross_compiling:$ac_tool_warned in
7136yes:)
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139ac_tool_warned=yes ;;
7140esac
7141 OTOOL64=$ac_ct_OTOOL64
7142 fi
7143else
7144 OTOOL64="$ac_cv_prog_OTOOL64"
7145fi
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7174$as_echo_n "checking for -single_module linker flag... " >&6; }
7175if ${lt_cv_apple_cc_single_mod+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177else
7178 lt_cv_apple_cc_single_mod=no
7179 if test -z "${LT_MULTI_MODULE}"; then
7180 # By default we will add the -single_module flag. You can override
7181 # by either setting the environment variable LT_MULTI_MODULE
7182 # non-empty at configure time, or by adding -multi_module to the
7183 # link flags.
7184 rm -rf libconftest.dylib*
7185 echo "int foo(void){return 1;}" > conftest.c
7186 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7187-dynamiclib -Wl,-single_module conftest.c" >&5
7188 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7189 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7190 _lt_result=$?
7191 # If there is a non-empty error log, and "single_module"
7192 # appears in it, assume the flag caused a linker warning
7193 if test -s conftest.err && $GREP single_module conftest.err; then
7194 cat conftest.err >&5
7195 # Otherwise, if the output was created with a 0 exit code from
7196 # the compiler, it worked.
7197 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7198 lt_cv_apple_cc_single_mod=yes
7199 else
7200 cat conftest.err >&5
7201 fi
7202 rm -rf libconftest.dylib*
7203 rm -f conftest.*
7204 fi
7205fi
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7207$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7208
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7210$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7211if ${lt_cv_ld_exported_symbols_list+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213else
7214 lt_cv_ld_exported_symbols_list=no
7215 save_LDFLAGS=$LDFLAGS
7216 echo "_main" > conftest.sym
7217 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219/* end confdefs.h. */
7220
7221int
7222main ()
7223{
7224
7225 ;
7226 return 0;
7227}
7228_ACEOF
7229if ac_fn_c_try_link "$LINENO"; then :
7230 lt_cv_ld_exported_symbols_list=yes
7231else
7232 lt_cv_ld_exported_symbols_list=no
7233fi
7234rm -f core conftest.err conftest.$ac_objext \
7235 conftest$ac_exeext conftest.$ac_ext
7236 LDFLAGS="$save_LDFLAGS"
7237
7238fi
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7240$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7241
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7243$as_echo_n "checking for -force_load linker flag... " >&6; }
7244if ${lt_cv_ld_force_load+:} false; then :
7245 $as_echo_n "(cached) " >&6
7246else
7247 lt_cv_ld_force_load=no
7248 cat > conftest.c << _LT_EOF
7249int forced_loaded() { return 2;}
7250_LT_EOF
7251 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7252 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7253 echo "$AR cru libconftest.a conftest.o" >&5
7254 $AR cru libconftest.a conftest.o 2>&5
7255 echo "$RANLIB libconftest.a" >&5
7256 $RANLIB libconftest.a 2>&5
7257 cat > conftest.c << _LT_EOF
7258int main() { return 0;}
7259_LT_EOF
7260 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7261 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7262 _lt_result=$?
7263 if test -s conftest.err && $GREP force_load conftest.err; then
7264 cat conftest.err >&5
7265 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7266 lt_cv_ld_force_load=yes
7267 else
7268 cat conftest.err >&5
7269 fi
7270 rm -f conftest.err libconftest.a conftest conftest.c
7271 rm -rf conftest.dSYM
7272
7273fi
7274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7275$as_echo "$lt_cv_ld_force_load" >&6; }
7276 case $host_os in
7277 rhapsody* | darwin1.[012])
7278 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7279 darwin1.*)
7280 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7281 darwin*) # darwin 5.x on
7282 # if running on 10.5 or later, the deployment target defaults
7283 # to the OS version, if on x86, and 10.4, the deployment
7284 # target defaults to 10.4. Don't you love it?
7285 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7286 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7287 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7288 10.[012]*)
7289 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7290 10.*)
7291 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7292 esac
7293 ;;
7294 esac
7295 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7296 _lt_dar_single_mod='$single_module'
7297 fi
7298 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7299 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7300 else
7301 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7302 fi
7303 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7304 _lt_dsymutil='~$DSYMUTIL $lib || :'
7305 else
7306 _lt_dsymutil=
7307 fi
7308 ;;
7309 esac
7310
7311ac_ext=c
7312ac_cpp='$CPP $CPPFLAGS'
7313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7315ac_compiler_gnu=$ac_cv_c_compiler_gnu
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7317$as_echo_n "checking how to run the C preprocessor... " >&6; }
7318# On Suns, sometimes $CPP names a directory.
7319if test -n "$CPP" && test -d "$CPP"; then
7320 CPP=
7321fi
7322if test -z "$CPP"; then
7323 if ${ac_cv_prog_CPP+:} false; then :
7324 $as_echo_n "(cached) " >&6
7325else
7326 # Double quotes because CPP needs to be expanded
7327 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7328 do
7329 ac_preproc_ok=false
7330for ac_c_preproc_warn_flag in '' yes
7331do
7332 # Use a header file that comes with gcc, so configuring glibc
7333 # with a fresh cross-compiler works.
7334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7335 # <limits.h> exists even on freestanding compilers.
7336 # On the NeXT, cc -E runs the code through the compiler's parser,
7337 # not just through cpp. "Syntax error" is here to catch this case.
7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339/* end confdefs.h. */
7340#ifdef __STDC__
7341# include <limits.h>
7342#else
7343# include <assert.h>
7344#endif
7345 Syntax error
7346_ACEOF
7347if ac_fn_c_try_cpp "$LINENO"; then :
7348
7349else
7350 # Broken: fails on valid input.
7351continue
7352fi
7353rm -f conftest.err conftest.i conftest.$ac_ext
7354
7355 # OK, works on sane cases. Now check whether nonexistent headers
7356 # can be detected and how.
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358/* end confdefs.h. */
7359#include <ac_nonexistent.h>
7360_ACEOF
7361if ac_fn_c_try_cpp "$LINENO"; then :
7362 # Broken: success on invalid input.
7363continue
7364else
7365 # Passes both tests.
7366ac_preproc_ok=:
7367break
7368fi
7369rm -f conftest.err conftest.i conftest.$ac_ext
7370
7371done
7372# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7373rm -f conftest.i conftest.err conftest.$ac_ext
7374if $ac_preproc_ok; then :
7375 break
7376fi
7377
7378 done
7379 ac_cv_prog_CPP=$CPP
7380
7381fi
7382 CPP=$ac_cv_prog_CPP
7383else
7384 ac_cv_prog_CPP=$CPP
7385fi
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7387$as_echo "$CPP" >&6; }
7388ac_preproc_ok=false
7389for ac_c_preproc_warn_flag in '' yes
7390do
7391 # Use a header file that comes with gcc, so configuring glibc
7392 # with a fresh cross-compiler works.
7393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7394 # <limits.h> exists even on freestanding compilers.
7395 # On the NeXT, cc -E runs the code through the compiler's parser,
7396 # not just through cpp. "Syntax error" is here to catch this case.
7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398/* end confdefs.h. */
7399#ifdef __STDC__
7400# include <limits.h>
7401#else
7402# include <assert.h>
7403#endif
7404 Syntax error
7405_ACEOF
7406if ac_fn_c_try_cpp "$LINENO"; then :
7407
7408else
7409 # Broken: fails on valid input.
7410continue
7411fi
7412rm -f conftest.err conftest.i conftest.$ac_ext
7413
7414 # OK, works on sane cases. Now check whether nonexistent headers
7415 # can be detected and how.
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417/* end confdefs.h. */
7418#include <ac_nonexistent.h>
7419_ACEOF
7420if ac_fn_c_try_cpp "$LINENO"; then :
7421 # Broken: success on invalid input.
7422continue
7423else
7424 # Passes both tests.
7425ac_preproc_ok=:
7426break
7427fi
7428rm -f conftest.err conftest.i conftest.$ac_ext
7429
7430done
7431# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7432rm -f conftest.i conftest.err conftest.$ac_ext
7433if $ac_preproc_ok; then :
7434
7435else
7436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7438as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7439See \`config.log' for more details" "$LINENO" 5; }
7440fi
7441
7442ac_ext=c
7443ac_cpp='$CPP $CPPFLAGS'
7444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7446ac_compiler_gnu=$ac_cv_c_compiler_gnu
7447
7448
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7450$as_echo_n "checking for ANSI C header files... " >&6; }
7451if ${ac_cv_header_stdc+:} false; then :
7452 $as_echo_n "(cached) " >&6
7453else
7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455/* end confdefs.h. */
7456#include <stdlib.h>
7457#include <stdarg.h>
7458#include <string.h>
7459#include <float.h>
7460
7461int
7462main ()
7463{
7464
7465 ;
7466 return 0;
7467}
7468_ACEOF
7469if ac_fn_c_try_compile "$LINENO"; then :
7470 ac_cv_header_stdc=yes
7471else
7472 ac_cv_header_stdc=no
7473fi
7474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475
7476if test $ac_cv_header_stdc = yes; then
7477 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479/* end confdefs.h. */
7480#include <string.h>
7481
7482_ACEOF
7483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7484 $EGREP "memchr" >/dev/null 2>&1; then :
7485
7486else
7487 ac_cv_header_stdc=no
7488fi
7489rm -f conftest*
7490
7491fi
7492
7493if test $ac_cv_header_stdc = yes; then
7494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496/* end confdefs.h. */
7497#include <stdlib.h>
7498
7499_ACEOF
7500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7501 $EGREP "free" >/dev/null 2>&1; then :
7502
7503else
7504 ac_cv_header_stdc=no
7505fi
7506rm -f conftest*
7507
7508fi
7509
7510if test $ac_cv_header_stdc = yes; then
7511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7512 if test "$cross_compiling" = yes; then :
7513 :
7514else
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516/* end confdefs.h. */
7517#include <ctype.h>
7518#include <stdlib.h>
7519#if ((' ' & 0x0FF) == 0x020)
7520# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7521# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7522#else
7523# define ISLOWER(c) \
7524 (('a' <= (c) && (c) <= 'i') \
7525 || ('j' <= (c) && (c) <= 'r') \
7526 || ('s' <= (c) && (c) <= 'z'))
7527# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7528#endif
7529
7530#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7531int
7532main ()
7533{
7534 int i;
7535 for (i = 0; i < 256; i++)
7536 if (XOR (islower (i), ISLOWER (i))
7537 || toupper (i) != TOUPPER (i))
7538 return 2;
7539 return 0;
7540}
7541_ACEOF
7542if ac_fn_c_try_run "$LINENO"; then :
7543
7544else
7545 ac_cv_header_stdc=no
7546fi
7547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7548 conftest.$ac_objext conftest.beam conftest.$ac_ext
7549fi
7550
7551fi
7552fi
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7554$as_echo "$ac_cv_header_stdc" >&6; }
7555if test $ac_cv_header_stdc = yes; then
7556
7557$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7558
7559fi
7560
7561# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7562for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7563 inttypes.h stdint.h unistd.h
7564do :
7565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7566ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7567"
7568if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7569 cat >>confdefs.h <<_ACEOF
7570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7571_ACEOF
7572
7573fi
7574
7575done
7576
7577
7578for ac_header in dlfcn.h
7579do :
7580 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7581"
7582if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7583 cat >>confdefs.h <<_ACEOF
7584#define HAVE_DLFCN_H 1
7585_ACEOF
7586
7587fi
7588
7589done
7590
7591
7592
7593
7594
7595# Set options
7596
7597
7598
7599 enable_dlopen=no
7600
7601
7602 enable_win32_dll=no
7603
7604
7605 # Check whether --enable-shared was given.
7606if test "${enable_shared+set}" = set; then :
7607 enableval=$enable_shared; p=${PACKAGE-default}
7608 case $enableval in
7609 yes) enable_shared=yes ;;
7610 no) enable_shared=no ;;
7611 *)
7612 enable_shared=no
7613 # Look at the argument we got. We use all the common list separators.
7614 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7615 for pkg in $enableval; do
7616 IFS="$lt_save_ifs"
7617 if test "X$pkg" = "X$p"; then
7618 enable_shared=yes
7619 fi
7620 done
7621 IFS="$lt_save_ifs"
7622 ;;
7623 esac
7624else
7625 enable_shared=yes
7626fi
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636 # Check whether --enable-static was given.
7637if test "${enable_static+set}" = set; then :
7638 enableval=$enable_static; p=${PACKAGE-default}
7639 case $enableval in
7640 yes) enable_static=yes ;;
7641 no) enable_static=no ;;
7642 *)
7643 enable_static=no
7644 # Look at the argument we got. We use all the common list separators.
7645 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7646 for pkg in $enableval; do
7647 IFS="$lt_save_ifs"
7648 if test "X$pkg" = "X$p"; then
7649 enable_static=yes
7650 fi
7651 done
7652 IFS="$lt_save_ifs"
7653 ;;
7654 esac
7655else
7656 enable_static=yes
7657fi
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668# Check whether --with-pic was given.
7669if test "${with_pic+set}" = set; then :
7670 withval=$with_pic; lt_p=${PACKAGE-default}
7671 case $withval in
7672 yes|no) pic_mode=$withval ;;
7673 *)
7674 pic_mode=default
7675 # Look at the argument we got. We use all the common list separators.
7676 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7677 for lt_pkg in $withval; do
7678 IFS="$lt_save_ifs"
7679 if test "X$lt_pkg" = "X$lt_p"; then
7680 pic_mode=yes
7681 fi
7682 done
7683 IFS="$lt_save_ifs"
7684 ;;
7685 esac
7686else
7687 pic_mode=default
7688fi
7689
7690
7691test -z "$pic_mode" && pic_mode=default
7692
7693
7694
7695
7696
7697
7698
7699 # Check whether --enable-fast-install was given.
7700if test "${enable_fast_install+set}" = set; then :
7701 enableval=$enable_fast_install; p=${PACKAGE-default}
7702 case $enableval in
7703 yes) enable_fast_install=yes ;;
7704 no) enable_fast_install=no ;;
7705 *)
7706 enable_fast_install=no
7707 # Look at the argument we got. We use all the common list separators.
7708 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7709 for pkg in $enableval; do
7710 IFS="$lt_save_ifs"
7711 if test "X$pkg" = "X$p"; then
7712 enable_fast_install=yes
7713 fi
7714 done
7715 IFS="$lt_save_ifs"
7716 ;;
7717 esac
7718else
7719 enable_fast_install=yes
7720fi
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732# This can be used to rebuild libtool when needed
7733LIBTOOL_DEPS="$ltmain"
7734
7735# Always use our own libtool.
7736LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767test -z "$LN_S" && LN_S="ln -s"
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782if test -n "${ZSH_VERSION+set}" ; then
7783 setopt NO_GLOB_SUBST
7784fi
7785
7786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7787$as_echo_n "checking for objdir... " >&6; }
7788if ${lt_cv_objdir+:} false; then :
7789 $as_echo_n "(cached) " >&6
7790else
7791 rm -f .libs 2>/dev/null
7792mkdir .libs 2>/dev/null
7793if test -d .libs; then
7794 lt_cv_objdir=.libs
7795else
7796 # MS-DOS does not allow filenames that begin with a dot.
7797 lt_cv_objdir=_libs
7798fi
7799rmdir .libs 2>/dev/null
7800fi
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7802$as_echo "$lt_cv_objdir" >&6; }
7803objdir=$lt_cv_objdir
7804
7805
7806
7807
7808
7809cat >>confdefs.h <<_ACEOF
7810#define LT_OBJDIR "$lt_cv_objdir/"
7811_ACEOF
7812
7813
7814
7815
7816case $host_os in
7817aix3*)
7818 # AIX sometimes has problems with the GCC collect2 program. For some
7819 # reason, if we set the COLLECT_NAMES environment variable, the problems
7820 # vanish in a puff of smoke.
7821 if test "X${COLLECT_NAMES+set}" != Xset; then
7822 COLLECT_NAMES=
7823 export COLLECT_NAMES
7824 fi
7825 ;;
7826esac
7827
7828# Global variables:
7829ofile=libtool
7830can_build_shared=yes
7831
7832# All known linkers require a `.a' archive for static linking (except MSVC,
7833# which needs '.lib').
7834libext=a
7835
7836with_gnu_ld="$lt_cv_prog_gnu_ld"
7837
7838old_CC="$CC"
7839old_CFLAGS="$CFLAGS"
7840
7841# Set sane defaults for various variables
7842test -z "$CC" && CC=cc
7843test -z "$LTCC" && LTCC=$CC
7844test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7845test -z "$LD" && LD=ld
7846test -z "$ac_objext" && ac_objext=o
7847
7848for cc_temp in $compiler""; do
7849 case $cc_temp in
7850 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7851 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7852 \-*) ;;
7853 *) break;;
7854 esac
7855done
7856cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7857
7858
7859# Only perform the check for file, if the check method requires it
7860test -z "$MAGIC_CMD" && MAGIC_CMD=file
7861case $deplibs_check_method in
7862file_magic*)
7863 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7865$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7866if ${lt_cv_path_MAGIC_CMD+:} false; then :
7867 $as_echo_n "(cached) " >&6
7868else
7869 case $MAGIC_CMD in
7870[\\/*] | ?:[\\/]*)
7871 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7872 ;;
7873*)
7874 lt_save_MAGIC_CMD="$MAGIC_CMD"
7875 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7876 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7877 for ac_dir in $ac_dummy; do
7878 IFS="$lt_save_ifs"
7879 test -z "$ac_dir" && ac_dir=.
7880 if test -f $ac_dir/${ac_tool_prefix}file; then
7881 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7882 if test -n "$file_magic_test_file"; then
7883 case $deplibs_check_method in
7884 "file_magic "*)
7885 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7886 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7887 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7888 $EGREP "$file_magic_regex" > /dev/null; then
7889 :
7890 else
7891 cat <<_LT_EOF 1>&2
7892
7893*** Warning: the command libtool uses to detect shared libraries,
7894*** $file_magic_cmd, produces output that libtool cannot recognize.
7895*** The result is that libtool may fail to recognize shared libraries
7896*** as such. This will affect the creation of libtool libraries that
7897*** depend on shared libraries, but programs linked with such libtool
7898*** libraries will work regardless of this problem. Nevertheless, you
7899*** may want to report the problem to your system manager and/or to
7900*** bug-libtool@gnu.org
7901
7902_LT_EOF
7903 fi ;;
7904 esac
7905 fi
7906 break
7907 fi
7908 done
7909 IFS="$lt_save_ifs"
7910 MAGIC_CMD="$lt_save_MAGIC_CMD"
7911 ;;
7912esac
7913fi
7914
7915MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7916if test -n "$MAGIC_CMD"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7918$as_echo "$MAGIC_CMD" >&6; }
7919else
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921$as_echo "no" >&6; }
7922fi
7923
7924
7925
7926
7927
7928if test -z "$lt_cv_path_MAGIC_CMD"; then
7929 if test -n "$ac_tool_prefix"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7931$as_echo_n "checking for file... " >&6; }
7932if ${lt_cv_path_MAGIC_CMD+:} false; then :
7933 $as_echo_n "(cached) " >&6
7934else
7935 case $MAGIC_CMD in
7936[\\/*] | ?:[\\/]*)
7937 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7938 ;;
7939*)
7940 lt_save_MAGIC_CMD="$MAGIC_CMD"
7941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7942 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7943 for ac_dir in $ac_dummy; do
7944 IFS="$lt_save_ifs"
7945 test -z "$ac_dir" && ac_dir=.
7946 if test -f $ac_dir/file; then
7947 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7948 if test -n "$file_magic_test_file"; then
7949 case $deplibs_check_method in
7950 "file_magic "*)
7951 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7952 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7953 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7954 $EGREP "$file_magic_regex" > /dev/null; then
7955 :
7956 else
7957 cat <<_LT_EOF 1>&2
7958
7959*** Warning: the command libtool uses to detect shared libraries,
7960*** $file_magic_cmd, produces output that libtool cannot recognize.
7961*** The result is that libtool may fail to recognize shared libraries
7962*** as such. This will affect the creation of libtool libraries that
7963*** depend on shared libraries, but programs linked with such libtool
7964*** libraries will work regardless of this problem. Nevertheless, you
7965*** may want to report the problem to your system manager and/or to
7966*** bug-libtool@gnu.org
7967
7968_LT_EOF
7969 fi ;;
7970 esac
7971 fi
7972 break
7973 fi
7974 done
7975 IFS="$lt_save_ifs"
7976 MAGIC_CMD="$lt_save_MAGIC_CMD"
7977 ;;
7978esac
7979fi
7980
7981MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7982if test -n "$MAGIC_CMD"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7984$as_echo "$MAGIC_CMD" >&6; }
7985else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987$as_echo "no" >&6; }
7988fi
7989
7990
7991 else
7992 MAGIC_CMD=:
7993 fi
7994fi
7995
7996 fi
7997 ;;
7998esac
7999
8000# Use C for the default configuration in the libtool script
8001
8002lt_save_CC="$CC"
8003ac_ext=c
8004ac_cpp='$CPP $CPPFLAGS'
8005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8007ac_compiler_gnu=$ac_cv_c_compiler_gnu
8008
8009
8010# Source file extension for C test sources.
8011ac_ext=c
8012
8013# Object file extension for compiled C test sources.
8014objext=o
8015objext=$objext
8016
8017# Code to be used in simple compile tests
8018lt_simple_compile_test_code="int some_variable = 0;"
8019
8020# Code to be used in simple link tests
8021lt_simple_link_test_code='int main(){return(0);}'
8022
8023
8024
8025
8026
8027
8028
8029# If no C compiler was specified, use CC.
8030LTCC=${LTCC-"$CC"}
8031
8032# If no C compiler flags were specified, use CFLAGS.
8033LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8034
8035# Allow CC to be a program name with arguments.
8036compiler=$CC
8037
8038# Save the default compiler, since it gets overwritten when the other
8039# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8040compiler_DEFAULT=$CC
8041
8042# save warnings/boilerplate of simple test code
8043ac_outfile=conftest.$ac_objext
8044echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8045eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8046_lt_compiler_boilerplate=`cat conftest.err`
8047$RM conftest*
8048
8049ac_outfile=conftest.$ac_objext
8050echo "$lt_simple_link_test_code" >conftest.$ac_ext
8051eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8052_lt_linker_boilerplate=`cat conftest.err`
8053$RM -r conftest*
8054
8055
8056## CAVEAT EMPTOR:
8057## There is no encapsulation within the following macros, do not change
8058## the running order or otherwise move them around unless you know exactly
8059## what you are doing...
8060if test -n "$compiler"; then
8061
8062lt_prog_compiler_no_builtin_flag=
8063
8064if test "$GCC" = yes; then
8065 case $cc_basename in
8066 nvcc*)
8067 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8068 *)
8069 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8070 esac
8071
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8073$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8074if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8075 $as_echo_n "(cached) " >&6
8076else
8077 lt_cv_prog_compiler_rtti_exceptions=no
8078 ac_outfile=conftest.$ac_objext
8079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8080 lt_compiler_flag="-fno-rtti -fno-exceptions"
8081 # Insert the option either (1) after the last *FLAGS variable, or
8082 # (2) before a word containing "conftest.", or (3) at the end.
8083 # Note that $ac_compile itself does not contain backslashes and begins
8084 # with a dollar sign (not a hyphen), so the echo should work correctly.
8085 # The option is referenced via a variable to avoid confusing sed.
8086 lt_compile=`echo "$ac_compile" | $SED \
8087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8089 -e 's:$: $lt_compiler_flag:'`
8090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8091 (eval "$lt_compile" 2>conftest.err)
8092 ac_status=$?
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 if (exit $ac_status) && test -s "$ac_outfile"; then
8096 # The compiler can only warn and ignore the option if not recognized
8097 # So say no if there are warnings other than the usual output.
8098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8100 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8101 lt_cv_prog_compiler_rtti_exceptions=yes
8102 fi
8103 fi
8104 $RM conftest*
8105
8106fi
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8108$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8109
8110if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8111 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8112else
8113 :
8114fi
8115
8116fi
8117
8118
8119
8120
8121
8122
8123 lt_prog_compiler_wl=
8124lt_prog_compiler_pic=
8125lt_prog_compiler_static=
8126
8127
8128 if test "$GCC" = yes; then
8129 lt_prog_compiler_wl='-Wl,'
8130 lt_prog_compiler_static='-static'
8131
8132 case $host_os in
8133 aix*)
8134 # All AIX code is PIC.
8135 if test "$host_cpu" = ia64; then
8136 # AIX 5 now supports IA64 processor
8137 lt_prog_compiler_static='-Bstatic'
8138 fi
8139 ;;
8140
8141 amigaos*)
8142 case $host_cpu in
8143 powerpc)
8144 # see comment about AmigaOS4 .so support
8145 lt_prog_compiler_pic='-fPIC'
8146 ;;
8147 m68k)
8148 # FIXME: we need at least 68020 code to build shared libraries, but
8149 # adding the `-m68020' flag to GCC prevents building anything better,
8150 # like `-m68040'.
8151 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8152 ;;
8153 esac
8154 ;;
8155
8156 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8157 # PIC is the default for these OSes.
8158 ;;
8159
8160 mingw* | cygwin* | pw32* | os2* | cegcc*)
8161 # This hack is so that the source file can tell whether it is being
8162 # built for inclusion in a dll (and should export symbols for example).
8163 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8164 # (--disable-auto-import) libraries
8165 lt_prog_compiler_pic='-DDLL_EXPORT'
8166 ;;
8167
8168 darwin* | rhapsody*)
8169 # PIC is the default on this platform
8170 # Common symbols not allowed in MH_DYLIB files
8171 lt_prog_compiler_pic='-fno-common'
8172 ;;
8173
8174 haiku*)
8175 # PIC is the default for Haiku.
8176 # The "-static" flag exists, but is broken.
8177 lt_prog_compiler_static=
8178 ;;
8179
8180 hpux*)
8181 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8182 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8183 # sets the default TLS model and affects inlining.
8184 case $host_cpu in
8185 hppa*64*)
8186 # +Z the default
8187 ;;
8188 *)
8189 lt_prog_compiler_pic='-fPIC'
8190 ;;
8191 esac
8192 ;;
8193
8194 interix[3-9]*)
8195 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8196 # Instead, we relocate shared libraries at runtime.
8197 ;;
8198
8199 msdosdjgpp*)
8200 # Just because we use GCC doesn't mean we suddenly get shared libraries
8201 # on systems that don't support them.
8202 lt_prog_compiler_can_build_shared=no
8203 enable_shared=no
8204 ;;
8205
8206 *nto* | *qnx*)
8207 # QNX uses GNU C++, but need to define -shared option too, otherwise
8208 # it will coredump.
8209 lt_prog_compiler_pic='-fPIC -shared'
8210 ;;
8211
8212 sysv4*MP*)
8213 if test -d /usr/nec; then
8214 lt_prog_compiler_pic=-Kconform_pic
8215 fi
8216 ;;
8217
8218 *)
8219 lt_prog_compiler_pic='-fPIC'
8220 ;;
8221 esac
8222
8223 case $cc_basename in
8224 nvcc*) # Cuda Compiler Driver 2.2
8225 lt_prog_compiler_wl='-Xlinker '
8226 if test -n "$lt_prog_compiler_pic"; then
8227 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8228 fi
8229 ;;
8230 esac
8231 else
8232 # PORTME Check for flag to pass linker flags through the system compiler.
8233 case $host_os in
8234 aix*)
8235 lt_prog_compiler_wl='-Wl,'
8236 if test "$host_cpu" = ia64; then
8237 # AIX 5 now supports IA64 processor
8238 lt_prog_compiler_static='-Bstatic'
8239 else
8240 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8241 fi
8242 ;;
8243
8244 mingw* | cygwin* | pw32* | os2* | cegcc*)
8245 # This hack is so that the source file can tell whether it is being
8246 # built for inclusion in a dll (and should export symbols for example).
8247 lt_prog_compiler_pic='-DDLL_EXPORT'
8248 ;;
8249
8250 hpux9* | hpux10* | hpux11*)
8251 lt_prog_compiler_wl='-Wl,'
8252 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8253 # not for PA HP-UX.
8254 case $host_cpu in
8255 hppa*64*|ia64*)
8256 # +Z the default
8257 ;;
8258 *)
8259 lt_prog_compiler_pic='+Z'
8260 ;;
8261 esac
8262 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8263 lt_prog_compiler_static='${wl}-a ${wl}archive'
8264 ;;
8265
8266 irix5* | irix6* | nonstopux*)
8267 lt_prog_compiler_wl='-Wl,'
8268 # PIC (with -KPIC) is the default.
8269 lt_prog_compiler_static='-non_shared'
8270 ;;
8271
8272 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8273 case $cc_basename in
8274 # old Intel for x86_64 which still supported -KPIC.
8275 ecc*)
8276 lt_prog_compiler_wl='-Wl,'
8277 lt_prog_compiler_pic='-KPIC'
8278 lt_prog_compiler_static='-static'
8279 ;;
8280 # icc used to be incompatible with GCC.
8281 # ICC 10 doesn't accept -KPIC any more.
8282 icc* | ifort*)
8283 lt_prog_compiler_wl='-Wl,'
8284 lt_prog_compiler_pic='-fPIC'
8285 lt_prog_compiler_static='-static'
8286 ;;
8287 # Lahey Fortran 8.1.
8288 lf95*)
8289 lt_prog_compiler_wl='-Wl,'
8290 lt_prog_compiler_pic='--shared'
8291 lt_prog_compiler_static='--static'
8292 ;;
8293 nagfor*)
8294 # NAG Fortran compiler
8295 lt_prog_compiler_wl='-Wl,-Wl,,'
8296 lt_prog_compiler_pic='-PIC'
8297 lt_prog_compiler_static='-Bstatic'
8298 ;;
8299 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8300 # Portland Group compilers (*not* the Pentium gcc compiler,
8301 # which looks to be a dead project)
8302 lt_prog_compiler_wl='-Wl,'
8303 lt_prog_compiler_pic='-fpic'
8304 lt_prog_compiler_static='-Bstatic'
8305 ;;
8306 ccc*)
8307 lt_prog_compiler_wl='-Wl,'
8308 # All Alpha code is PIC.
8309 lt_prog_compiler_static='-non_shared'
8310 ;;
8311 xl* | bgxl* | bgf* | mpixl*)
8312 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8313 lt_prog_compiler_wl='-Wl,'
8314 lt_prog_compiler_pic='-qpic'
8315 lt_prog_compiler_static='-qstaticlink'
8316 ;;
8317 *)
8318 case `$CC -V 2>&1 | sed 5q` in
8319 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8320 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8321 lt_prog_compiler_pic='-KPIC'
8322 lt_prog_compiler_static='-Bstatic'
8323 lt_prog_compiler_wl=''
8324 ;;
8325 *Sun\ F* | *Sun*Fortran*)
8326 lt_prog_compiler_pic='-KPIC'
8327 lt_prog_compiler_static='-Bstatic'
8328 lt_prog_compiler_wl='-Qoption ld '
8329 ;;
8330 *Sun\ C*)
8331 # Sun C 5.9
8332 lt_prog_compiler_pic='-KPIC'
8333 lt_prog_compiler_static='-Bstatic'
8334 lt_prog_compiler_wl='-Wl,'
8335 ;;
8336 *Intel*\ [CF]*Compiler*)
8337 lt_prog_compiler_wl='-Wl,'
8338 lt_prog_compiler_pic='-fPIC'
8339 lt_prog_compiler_static='-static'
8340 ;;
8341 *Portland\ Group*)
8342 lt_prog_compiler_wl='-Wl,'
8343 lt_prog_compiler_pic='-fpic'
8344 lt_prog_compiler_static='-Bstatic'
8345 ;;
8346 esac
8347 ;;
8348 esac
8349 ;;
8350
8351 newsos6)
8352 lt_prog_compiler_pic='-KPIC'
8353 lt_prog_compiler_static='-Bstatic'
8354 ;;
8355
8356 *nto* | *qnx*)
8357 # QNX uses GNU C++, but need to define -shared option too, otherwise
8358 # it will coredump.
8359 lt_prog_compiler_pic='-fPIC -shared'
8360 ;;
8361
8362 osf3* | osf4* | osf5*)
8363 lt_prog_compiler_wl='-Wl,'
8364 # All OSF/1 code is PIC.
8365 lt_prog_compiler_static='-non_shared'
8366 ;;
8367
8368 rdos*)
8369 lt_prog_compiler_static='-non_shared'
8370 ;;
8371
8372 solaris*)
8373 lt_prog_compiler_pic='-KPIC'
8374 lt_prog_compiler_static='-Bstatic'
8375 case $cc_basename in
8376 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8377 lt_prog_compiler_wl='-Qoption ld ';;
8378 *)
8379 lt_prog_compiler_wl='-Wl,';;
8380 esac
8381 ;;
8382
8383 sunos4*)
8384 lt_prog_compiler_wl='-Qoption ld '
8385 lt_prog_compiler_pic='-PIC'
8386 lt_prog_compiler_static='-Bstatic'
8387 ;;
8388
8389 sysv4 | sysv4.2uw2* | sysv4.3*)
8390 lt_prog_compiler_wl='-Wl,'
8391 lt_prog_compiler_pic='-KPIC'
8392 lt_prog_compiler_static='-Bstatic'
8393 ;;
8394
8395 sysv4*MP*)
8396 if test -d /usr/nec ;then
8397 lt_prog_compiler_pic='-Kconform_pic'
8398 lt_prog_compiler_static='-Bstatic'
8399 fi
8400 ;;
8401
8402 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8403 lt_prog_compiler_wl='-Wl,'
8404 lt_prog_compiler_pic='-KPIC'
8405 lt_prog_compiler_static='-Bstatic'
8406 ;;
8407
8408 unicos*)
8409 lt_prog_compiler_wl='-Wl,'
8410 lt_prog_compiler_can_build_shared=no
8411 ;;
8412
8413 uts4*)
8414 lt_prog_compiler_pic='-pic'
8415 lt_prog_compiler_static='-Bstatic'
8416 ;;
8417
8418 *)
8419 lt_prog_compiler_can_build_shared=no
8420 ;;
8421 esac
8422 fi
8423
8424case $host_os in
8425 # For platforms which do not support PIC, -DPIC is meaningless:
8426 *djgpp*)
8427 lt_prog_compiler_pic=
8428 ;;
8429 *)
8430 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8431 ;;
8432esac
8433
8434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8435$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8436if ${lt_cv_prog_compiler_pic+:} false; then :
8437 $as_echo_n "(cached) " >&6
8438else
8439 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8440fi
8441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8442$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8443lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8444
8445#
8446# Check to make sure the PIC flag actually works.
8447#
8448if test -n "$lt_prog_compiler_pic"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8450$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8451if ${lt_cv_prog_compiler_pic_works+:} false; then :
8452 $as_echo_n "(cached) " >&6
8453else
8454 lt_cv_prog_compiler_pic_works=no
8455 ac_outfile=conftest.$ac_objext
8456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8457 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8458 # Insert the option either (1) after the last *FLAGS variable, or
8459 # (2) before a word containing "conftest.", or (3) at the end.
8460 # Note that $ac_compile itself does not contain backslashes and begins
8461 # with a dollar sign (not a hyphen), so the echo should work correctly.
8462 # The option is referenced via a variable to avoid confusing sed.
8463 lt_compile=`echo "$ac_compile" | $SED \
8464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8466 -e 's:$: $lt_compiler_flag:'`
8467 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8468 (eval "$lt_compile" 2>conftest.err)
8469 ac_status=$?
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 if (exit $ac_status) && test -s "$ac_outfile"; then
8473 # The compiler can only warn and ignore the option if not recognized
8474 # So say no if there are warnings other than the usual output.
8475 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8477 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8478 lt_cv_prog_compiler_pic_works=yes
8479 fi
8480 fi
8481 $RM conftest*
8482
8483fi
8484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8485$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8486
8487if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8488 case $lt_prog_compiler_pic in
8489 "" | " "*) ;;
8490 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8491 esac
8492else
8493 lt_prog_compiler_pic=
8494 lt_prog_compiler_can_build_shared=no
8495fi
8496
8497fi
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509#
8510# Check to make sure the static flag actually works.
8511#
8512wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8514$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8515if ${lt_cv_prog_compiler_static_works+:} false; then :
8516 $as_echo_n "(cached) " >&6
8517else
8518 lt_cv_prog_compiler_static_works=no
8519 save_LDFLAGS="$LDFLAGS"
8520 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8521 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8522 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8523 # The linker can only warn and ignore the option if not recognized
8524 # So say no if there are warnings
8525 if test -s conftest.err; then
8526 # Append any errors to the config.log.
8527 cat conftest.err 1>&5
8528 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8530 if diff conftest.exp conftest.er2 >/dev/null; then
8531 lt_cv_prog_compiler_static_works=yes
8532 fi
8533 else
8534 lt_cv_prog_compiler_static_works=yes
8535 fi
8536 fi
8537 $RM -r conftest*
8538 LDFLAGS="$save_LDFLAGS"
8539
8540fi
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8542$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8543
8544if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8545 :
8546else
8547 lt_prog_compiler_static=
8548fi
8549
8550
8551
8552
8553
8554
8555
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8557$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8558if ${lt_cv_prog_compiler_c_o+:} false; then :
8559 $as_echo_n "(cached) " >&6
8560else
8561 lt_cv_prog_compiler_c_o=no
8562 $RM -r conftest 2>/dev/null
8563 mkdir conftest
8564 cd conftest
8565 mkdir out
8566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8567
8568 lt_compiler_flag="-o out/conftest2.$ac_objext"
8569 # Insert the option either (1) after the last *FLAGS variable, or
8570 # (2) before a word containing "conftest.", or (3) at the end.
8571 # Note that $ac_compile itself does not contain backslashes and begins
8572 # with a dollar sign (not a hyphen), so the echo should work correctly.
8573 lt_compile=`echo "$ac_compile" | $SED \
8574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8576 -e 's:$: $lt_compiler_flag:'`
8577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8578 (eval "$lt_compile" 2>out/conftest.err)
8579 ac_status=$?
8580 cat out/conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8583 then
8584 # The compiler can only warn and ignore the option if not recognized
8585 # So say no if there are warnings
8586 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8589 lt_cv_prog_compiler_c_o=yes
8590 fi
8591 fi
8592 chmod u+w . 2>&5
8593 $RM conftest*
8594 # SGI C++ compiler will create directory out/ii_files/ for
8595 # template instantiation
8596 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8597 $RM out/* && rmdir out
8598 cd ..
8599 $RM -r conftest
8600 $RM conftest*
8601
8602fi
8603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8604$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8605
8606
8607
8608
8609
8610
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8612$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8613if ${lt_cv_prog_compiler_c_o+:} false; then :
8614 $as_echo_n "(cached) " >&6
8615else
8616 lt_cv_prog_compiler_c_o=no
8617 $RM -r conftest 2>/dev/null
8618 mkdir conftest
8619 cd conftest
8620 mkdir out
8621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8622
8623 lt_compiler_flag="-o out/conftest2.$ac_objext"
8624 # Insert the option either (1) after the last *FLAGS variable, or
8625 # (2) before a word containing "conftest.", or (3) at the end.
8626 # Note that $ac_compile itself does not contain backslashes and begins
8627 # with a dollar sign (not a hyphen), so the echo should work correctly.
8628 lt_compile=`echo "$ac_compile" | $SED \
8629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8631 -e 's:$: $lt_compiler_flag:'`
8632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8633 (eval "$lt_compile" 2>out/conftest.err)
8634 ac_status=$?
8635 cat out/conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8638 then
8639 # The compiler can only warn and ignore the option if not recognized
8640 # So say no if there are warnings
8641 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8642 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8643 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8644 lt_cv_prog_compiler_c_o=yes
8645 fi
8646 fi
8647 chmod u+w . 2>&5
8648 $RM conftest*
8649 # SGI C++ compiler will create directory out/ii_files/ for
8650 # template instantiation
8651 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8652 $RM out/* && rmdir out
8653 cd ..
8654 $RM -r conftest
8655 $RM conftest*
8656
8657fi
8658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8659$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8660
8661
8662
8663
8664hard_links="nottested"
8665if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8666 # do not overwrite the value of need_locks provided by the user
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8668$as_echo_n "checking if we can lock with hard links... " >&6; }
8669 hard_links=yes
8670 $RM conftest*
8671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8672 touch conftest.a
8673 ln conftest.a conftest.b 2>&5 || hard_links=no
8674 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8676$as_echo "$hard_links" >&6; }
8677 if test "$hard_links" = no; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8679$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8680 need_locks=warn
8681 fi
8682else
8683 need_locks=no
8684fi
8685
8686
8687
8688
8689
8690
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8692$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8693
8694 runpath_var=
8695 allow_undefined_flag=
8696 always_export_symbols=no
8697 archive_cmds=
8698 archive_expsym_cmds=
8699 compiler_needs_object=no
8700 enable_shared_with_static_runtimes=no
8701 export_dynamic_flag_spec=
8702 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8703 hardcode_automatic=no
8704 hardcode_direct=no
8705 hardcode_direct_absolute=no
8706 hardcode_libdir_flag_spec=
8707 hardcode_libdir_separator=
8708 hardcode_minus_L=no
8709 hardcode_shlibpath_var=unsupported
8710 inherit_rpath=no
8711 link_all_deplibs=unknown
8712 module_cmds=
8713 module_expsym_cmds=
8714 old_archive_from_new_cmds=
8715 old_archive_from_expsyms_cmds=
8716 thread_safe_flag_spec=
8717 whole_archive_flag_spec=
8718 # include_expsyms should be a list of space-separated symbols to be *always*
8719 # included in the symbol list
8720 include_expsyms=
8721 # exclude_expsyms can be an extended regexp of symbols to exclude
8722 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8723 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8724 # as well as any symbol that contains `d'.
8725 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8726 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8727 # platforms (ab)use it in PIC code, but their linkers get confused if
8728 # the symbol is explicitly referenced. Since portable code cannot
8729 # rely on this symbol name, it's probably fine to never include it in
8730 # preloaded symbol tables.
8731 # Exclude shared library initialization/finalization symbols.
8732 extract_expsyms_cmds=
8733
8734 case $host_os in
8735 cygwin* | mingw* | pw32* | cegcc*)
8736 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8737 # When not using gcc, we currently assume that we are using
8738 # Microsoft Visual C++.
8739 if test "$GCC" != yes; then
8740 with_gnu_ld=no
8741 fi
8742 ;;
8743 interix*)
8744 # we just hope/assume this is gcc and not c89 (= MSVC++)
8745 with_gnu_ld=yes
8746 ;;
8747 openbsd*)
8748 with_gnu_ld=no
8749 ;;
8750 esac
8751
8752 ld_shlibs=yes
8753
8754 # On some targets, GNU ld is compatible enough with the native linker
8755 # that we're better off using the native interface for both.
8756 lt_use_gnu_ld_interface=no
8757 if test "$with_gnu_ld" = yes; then
8758 case $host_os in
8759 aix*)
8760 # The AIX port of GNU ld has always aspired to compatibility
8761 # with the native linker. However, as the warning in the GNU ld
8762 # block says, versions before 2.19.5* couldn't really create working
8763 # shared libraries, regardless of the interface used.
8764 case `$LD -v 2>&1` in
8765 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8766 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8767 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8768 *)
8769 lt_use_gnu_ld_interface=yes
8770 ;;
8771 esac
8772 ;;
8773 *)
8774 lt_use_gnu_ld_interface=yes
8775 ;;
8776 esac
8777 fi
8778
8779 if test "$lt_use_gnu_ld_interface" = yes; then
8780 # If archive_cmds runs LD, not CC, wlarc should be empty
8781 wlarc='${wl}'
8782
8783 # Set some defaults for GNU ld with shared library support. These
8784 # are reset later if shared libraries are not supported. Putting them
8785 # here allows them to be overridden if necessary.
8786 runpath_var=LD_RUN_PATH
8787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8788 export_dynamic_flag_spec='${wl}--export-dynamic'
8789 # ancient GNU ld didn't support --whole-archive et. al.
8790 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8791 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8792 else
8793 whole_archive_flag_spec=
8794 fi
8795 supports_anon_versioning=no
8796 case `$LD -v 2>&1` in
8797 *GNU\ gold*) supports_anon_versioning=yes ;;
8798 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8799 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8800 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8801 *\ 2.11.*) ;; # other 2.11 versions
8802 *) supports_anon_versioning=yes ;;
8803 esac
8804
8805 # See if GNU ld supports shared libraries.
8806 case $host_os in
8807 aix[3-9]*)
8808 # On AIX/PPC, the GNU linker is very broken
8809 if test "$host_cpu" != ia64; then
8810 ld_shlibs=no
8811 cat <<_LT_EOF 1>&2
8812
8813*** Warning: the GNU linker, at least up to release 2.19, is reported
8814*** to be unable to reliably create shared libraries on AIX.
8815*** Therefore, libtool is disabling shared libraries support. If you
8816*** really care for shared libraries, you may want to install binutils
8817*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8818*** You will then need to restart the configuration process.
8819
8820_LT_EOF
8821 fi
8822 ;;
8823
8824 amigaos*)
8825 case $host_cpu in
8826 powerpc)
8827 # see comment about AmigaOS4 .so support
8828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8829 archive_expsym_cmds=''
8830 ;;
8831 m68k)
8832 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)'
8833 hardcode_libdir_flag_spec='-L$libdir'
8834 hardcode_minus_L=yes
8835 ;;
8836 esac
8837 ;;
8838
8839 beos*)
8840 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8841 allow_undefined_flag=unsupported
8842 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8843 # support --undefined. This deserves some investigation. FIXME
8844 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8845 else
8846 ld_shlibs=no
8847 fi
8848 ;;
8849
8850 cygwin* | mingw* | pw32* | cegcc*)
8851 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8852 # as there is no search path for DLLs.
8853 hardcode_libdir_flag_spec='-L$libdir'
8854 export_dynamic_flag_spec='${wl}--export-all-symbols'
8855 allow_undefined_flag=unsupported
8856 always_export_symbols=no
8857 enable_shared_with_static_runtimes=yes
8858 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'
8859 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8860
8861 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8863 # If the export-symbols file already is a .def file (1st line
8864 # is EXPORTS), use it as is; otherwise, prepend...
8865 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8866 cp $export_symbols $output_objdir/$soname.def;
8867 else
8868 echo EXPORTS > $output_objdir/$soname.def;
8869 cat $export_symbols >> $output_objdir/$soname.def;
8870 fi~
8871 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8872 else
8873 ld_shlibs=no
8874 fi
8875 ;;
8876
8877 haiku*)
8878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8879 link_all_deplibs=yes
8880 ;;
8881
8882 interix[3-9]*)
8883 hardcode_direct=no
8884 hardcode_shlibpath_var=no
8885 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8886 export_dynamic_flag_spec='${wl}-E'
8887 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8888 # Instead, shared libraries are loaded at an image base (0x10000000 by
8889 # default) and relocated if they conflict, which is a slow very memory
8890 # consuming and fragmenting process. To avoid this, we pick a random,
8891 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8892 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8893 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8894 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'
8895 ;;
8896
8897 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8898 tmp_diet=no
8899 if test "$host_os" = linux-dietlibc; then
8900 case $cc_basename in
8901 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8902 esac
8903 fi
8904 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8905 && test "$tmp_diet" = no
8906 then
8907 tmp_addflag=' $pic_flag'
8908 tmp_sharedflag='-shared'
8909 case $cc_basename,$host_cpu in
8910 pgcc*) # Portland Group C compiler
8911 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'
8912 tmp_addflag=' $pic_flag'
8913 ;;
8914 pgf77* | pgf90* | pgf95* | pgfortran*)
8915 # Portland Group f77 and f90 compilers
8916 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'
8917 tmp_addflag=' $pic_flag -Mnomain' ;;
8918 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8919 tmp_addflag=' -i_dynamic' ;;
8920 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8921 tmp_addflag=' -i_dynamic -nofor_main' ;;
8922 ifc* | ifort*) # Intel Fortran compiler
8923 tmp_addflag=' -nofor_main' ;;
8924 lf95*) # Lahey Fortran 8.1
8925 whole_archive_flag_spec=
8926 tmp_sharedflag='--shared' ;;
8927 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8928 tmp_sharedflag='-qmkshrobj'
8929 tmp_addflag= ;;
8930 nvcc*) # Cuda Compiler Driver 2.2
8931 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'
8932 compiler_needs_object=yes
8933 ;;
8934 esac
8935 case `$CC -V 2>&1 | sed 5q` in
8936 *Sun\ C*) # Sun C 5.9
8937 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'
8938 compiler_needs_object=yes
8939 tmp_sharedflag='-G' ;;
8940 *Sun\ F*) # Sun Fortran 8.3
8941 tmp_sharedflag='-G' ;;
8942 esac
8943 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8944
8945 if test "x$supports_anon_versioning" = xyes; then
8946 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8947 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8948 echo "local: *; };" >> $output_objdir/$libname.ver~
8949 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8950 fi
8951
8952 case $cc_basename in
8953 xlf* | bgf* | bgxlf* | mpixlf*)
8954 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8955 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8957 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8958 if test "x$supports_anon_versioning" = xyes; then
8959 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8960 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8961 echo "local: *; };" >> $output_objdir/$libname.ver~
8962 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8963 fi
8964 ;;
8965 esac
8966 else
8967 ld_shlibs=no
8968 fi
8969 ;;
8970
8971 netbsd*)
8972 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8973 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8974 wlarc=
8975 else
8976 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8977 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8978 fi
8979 ;;
8980
8981 solaris*)
8982 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8983 ld_shlibs=no
8984 cat <<_LT_EOF 1>&2
8985
8986*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8987*** create shared libraries on Solaris systems. Therefore, libtool
8988*** is disabling shared libraries support. We urge you to upgrade GNU
8989*** binutils to release 2.9.1 or newer. Another option is to modify
8990*** your PATH or compiler configuration so that the native linker is
8991*** used, and then restart.
8992
8993_LT_EOF
8994 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8995 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8996 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8997 else
8998 ld_shlibs=no
8999 fi
9000 ;;
9001
9002 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9003 case `$LD -v 2>&1` in
9004 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9005 ld_shlibs=no
9006 cat <<_LT_EOF 1>&2
9007
9008*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9009*** reliably create shared libraries on SCO systems. Therefore, libtool
9010*** is disabling shared libraries support. We urge you to upgrade GNU
9011*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9012*** your PATH or compiler configuration so that the native linker is
9013*** used, and then restart.
9014
9015_LT_EOF
9016 ;;
9017 *)
9018 # For security reasons, it is highly recommended that you always
9019 # use absolute paths for naming shared libraries, and exclude the
9020 # DT_RUNPATH tag from executables and libraries. But doing so
9021 # requires that you compile everything twice, which is a pain.
9022 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9025 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9026 else
9027 ld_shlibs=no
9028 fi
9029 ;;
9030 esac
9031 ;;
9032
9033 sunos4*)
9034 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9035 wlarc=
9036 hardcode_direct=yes
9037 hardcode_shlibpath_var=no
9038 ;;
9039
9040 *)
9041 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9042 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9043 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9044 else
9045 ld_shlibs=no
9046 fi
9047 ;;
9048 esac
9049
9050 if test "$ld_shlibs" = no; then
9051 runpath_var=
9052 hardcode_libdir_flag_spec=
9053 export_dynamic_flag_spec=
9054 whole_archive_flag_spec=
9055 fi
9056 else
9057 # PORTME fill in a description of your system's linker (not GNU ld)
9058 case $host_os in
9059 aix3*)
9060 allow_undefined_flag=unsupported
9061 always_export_symbols=yes
9062 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'
9063 # Note: this linker hardcodes the directories in LIBPATH if there
9064 # are no directories specified by -L.
9065 hardcode_minus_L=yes
9066 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9067 # Neither direct hardcoding nor static linking is supported with a
9068 # broken collect2.
9069 hardcode_direct=unsupported
9070 fi
9071 ;;
9072
9073 aix[4-9]*)
9074 if test "$host_cpu" = ia64; then
9075 # On IA64, the linker does run time linking by default, so we don't
9076 # have to do anything special.
9077 aix_use_runtimelinking=no
9078 exp_sym_flag='-Bexport'
9079 no_entry_flag=""
9080 else
9081 # If we're using GNU nm, then we don't want the "-C" option.
9082 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9083 # Also, AIX nm treats weak defined symbols like other global
9084 # defined symbols, whereas GNU nm marks them as "W".
9085 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9086 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'
9087 else
9088 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'
9089 fi
9090 aix_use_runtimelinking=no
9091
9092 # Test if we are trying to use run time linking or normal
9093 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9094 # need to do runtime linking.
9095 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9096 for ld_flag in $LDFLAGS; do
9097 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9098 aix_use_runtimelinking=yes
9099 break
9100 fi
9101 done
9102 ;;
9103 esac
9104
9105 exp_sym_flag='-bexport'
9106 no_entry_flag='-bnoentry'
9107 fi
9108
9109 # When large executables or shared objects are built, AIX ld can
9110 # have problems creating the table of contents. If linking a library
9111 # or program results in "error TOC overflow" add -mminimal-toc to
9112 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9113 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9114
9115 archive_cmds=''
9116 hardcode_direct=yes
9117 hardcode_direct_absolute=yes
9118 hardcode_libdir_separator=':'
9119 link_all_deplibs=yes
9120 file_list_spec='${wl}-f,'
9121
9122 if test "$GCC" = yes; then
9123 case $host_os in aix4.[012]|aix4.[012].*)
9124 # We only want to do this on AIX 4.2 and lower, the check
9125 # below for broken collect2 doesn't work under 4.3+
9126 collect2name=`${CC} -print-prog-name=collect2`
9127 if test -f "$collect2name" &&
9128 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9129 then
9130 # We have reworked collect2
9131 :
9132 else
9133 # We have old collect2
9134 hardcode_direct=unsupported
9135 # It fails to find uninstalled libraries when the uninstalled
9136 # path is not listed in the libpath. Setting hardcode_minus_L
9137 # to unsupported forces relinking
9138 hardcode_minus_L=yes
9139 hardcode_libdir_flag_spec='-L$libdir'
9140 hardcode_libdir_separator=
9141 fi
9142 ;;
9143 esac
9144 shared_flag='-shared'
9145 if test "$aix_use_runtimelinking" = yes; then
9146 shared_flag="$shared_flag "'${wl}-G'
9147 fi
9148 else
9149 # not using gcc
9150 if test "$host_cpu" = ia64; then
9151 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9152 # chokes on -Wl,-G. The following line is correct:
9153 shared_flag='-G'
9154 else
9155 if test "$aix_use_runtimelinking" = yes; then
9156 shared_flag='${wl}-G'
9157 else
9158 shared_flag='${wl}-bM:SRE'
9159 fi
9160 fi
9161 fi
9162
9163 export_dynamic_flag_spec='${wl}-bexpall'
9164 # It seems that -bexpall does not export symbols beginning with
9165 # underscore (_), so it is better to generate a list of symbols to export.
9166 always_export_symbols=yes
9167 if test "$aix_use_runtimelinking" = yes; then
9168 # Warning - without using the other runtime loading flags (-brtl),
9169 # -berok will link without error, but may produce a broken library.
9170 allow_undefined_flag='-berok'
9171 # Determine the default libpath from the value encoded in an
9172 # empty executable.
9173 if test "${lt_cv_aix_libpath+set}" = set; then
9174 aix_libpath=$lt_cv_aix_libpath
9175else
9176 if ${lt_cv_aix_libpath_+:} false; then :
9177 $as_echo_n "(cached) " >&6
9178else
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180/* end confdefs.h. */
9181
9182int
9183main ()
9184{
9185
9186 ;
9187 return 0;
9188}
9189_ACEOF
9190if ac_fn_c_try_link "$LINENO"; then :
9191
9192 lt_aix_libpath_sed='
9193 /Import File Strings/,/^$/ {
9194 /^0/ {
9195 s/^0 *\([^ ]*\) *$/\1/
9196 p
9197 }
9198 }'
9199 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9200 # Check for a 64-bit object if we didn't find anything.
9201 if test -z "$lt_cv_aix_libpath_"; then
9202 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9203 fi
9204fi
9205rm -f core conftest.err conftest.$ac_objext \
9206 conftest$ac_exeext conftest.$ac_ext
9207 if test -z "$lt_cv_aix_libpath_"; then
9208 lt_cv_aix_libpath_="/usr/lib:/lib"
9209 fi
9210
9211fi
9212
9213 aix_libpath=$lt_cv_aix_libpath_
9214fi
9215
9216 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9217 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"
9218 else
9219 if test "$host_cpu" = ia64; then
9220 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9221 allow_undefined_flag="-z nodefs"
9222 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"
9223 else
9224 # Determine the default libpath from the value encoded in an
9225 # empty executable.
9226 if test "${lt_cv_aix_libpath+set}" = set; then
9227 aix_libpath=$lt_cv_aix_libpath
9228else
9229 if ${lt_cv_aix_libpath_+:} false; then :
9230 $as_echo_n "(cached) " >&6
9231else
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233/* end confdefs.h. */
9234
9235int
9236main ()
9237{
9238
9239 ;
9240 return 0;
9241}
9242_ACEOF
9243if ac_fn_c_try_link "$LINENO"; then :
9244
9245 lt_aix_libpath_sed='
9246 /Import File Strings/,/^$/ {
9247 /^0/ {
9248 s/^0 *\([^ ]*\) *$/\1/
9249 p
9250 }
9251 }'
9252 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9253 # Check for a 64-bit object if we didn't find anything.
9254 if test -z "$lt_cv_aix_libpath_"; then
9255 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9256 fi
9257fi
9258rm -f core conftest.err conftest.$ac_objext \
9259 conftest$ac_exeext conftest.$ac_ext
9260 if test -z "$lt_cv_aix_libpath_"; then
9261 lt_cv_aix_libpath_="/usr/lib:/lib"
9262 fi
9263
9264fi
9265
9266 aix_libpath=$lt_cv_aix_libpath_
9267fi
9268
9269 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9270 # Warning - without using the other run time loading flags,
9271 # -berok will link without error, but may produce a broken library.
9272 no_undefined_flag=' ${wl}-bernotok'
9273 allow_undefined_flag=' ${wl}-berok'
9274 if test "$with_gnu_ld" = yes; then
9275 # We only use this code for GNU lds that support --whole-archive.
9276 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9277 else
9278 # Exported symbols can be pulled into shared objects from archives
9279 whole_archive_flag_spec='$convenience'
9280 fi
9281 archive_cmds_need_lc=yes
9282 # This is similar to how AIX traditionally builds its shared libraries.
9283 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'
9284 fi
9285 fi
9286 ;;
9287
9288 amigaos*)
9289 case $host_cpu in
9290 powerpc)
9291 # see comment about AmigaOS4 .so support
9292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9293 archive_expsym_cmds=''
9294 ;;
9295 m68k)
9296 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)'
9297 hardcode_libdir_flag_spec='-L$libdir'
9298 hardcode_minus_L=yes
9299 ;;
9300 esac
9301 ;;
9302
9303 bsdi[45]*)
9304 export_dynamic_flag_spec=-rdynamic
9305 ;;
9306
9307 cygwin* | mingw* | pw32* | cegcc*)
9308 # When not using gcc, we currently assume that we are using
9309 # Microsoft Visual C++.
9310 # hardcode_libdir_flag_spec is actually meaningless, as there is
9311 # no search path for DLLs.
9312 case $cc_basename in
9313 cl*)
9314 # Native MSVC
9315 hardcode_libdir_flag_spec=' '
9316 allow_undefined_flag=unsupported
9317 always_export_symbols=yes
9318 file_list_spec='@'
9319 # Tell ltmain to make .lib files, not .a files.
9320 libext=lib
9321 # Tell ltmain to make .dll files, not .so files.
9322 shrext_cmds=".dll"
9323 # FIXME: Setting linknames here is a bad hack.
9324 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9325 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9326 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9327 else
9328 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9329 fi~
9330 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9331 linknames='
9332 # The linker will not automatically build a static lib if we build a DLL.
9333 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9334 enable_shared_with_static_runtimes=yes
9335 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9336 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9337 # Don't use ranlib
9338 old_postinstall_cmds='chmod 644 $oldlib'
9339 postlink_cmds='lt_outputfile="@OUTPUT@"~
9340 lt_tool_outputfile="@TOOL_OUTPUT@"~
9341 case $lt_outputfile in
9342 *.exe|*.EXE) ;;
9343 *)
9344 lt_outputfile="$lt_outputfile.exe"
9345 lt_tool_outputfile="$lt_tool_outputfile.exe"
9346 ;;
9347 esac~
9348 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9349 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9350 $RM "$lt_outputfile.manifest";
9351 fi'
9352 ;;
9353 *)
9354 # Assume MSVC wrapper
9355 hardcode_libdir_flag_spec=' '
9356 allow_undefined_flag=unsupported
9357 # Tell ltmain to make .lib files, not .a files.
9358 libext=lib
9359 # Tell ltmain to make .dll files, not .so files.
9360 shrext_cmds=".dll"
9361 # FIXME: Setting linknames here is a bad hack.
9362 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9363 # The linker will automatically build a .lib file if we build a DLL.
9364 old_archive_from_new_cmds='true'
9365 # FIXME: Should let the user specify the lib program.
9366 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9367 enable_shared_with_static_runtimes=yes
9368 ;;
9369 esac
9370 ;;
9371
9372 darwin* | rhapsody*)
9373
9374
9375 archive_cmds_need_lc=no
9376 hardcode_direct=no
9377 hardcode_automatic=yes
9378 hardcode_shlibpath_var=unsupported
9379 if test "$lt_cv_ld_force_load" = "yes"; then
9380 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\"`'
9381
9382 else
9383 whole_archive_flag_spec=''
9384 fi
9385 link_all_deplibs=yes
9386 allow_undefined_flag="$_lt_dar_allow_undefined"
9387 case $cc_basename in
9388 ifort*) _lt_dar_can_shared=yes ;;
9389 *) _lt_dar_can_shared=$GCC ;;
9390 esac
9391 if test "$_lt_dar_can_shared" = "yes"; then
9392 output_verbose_link_cmd=func_echo_all
9393 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9394 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9395 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}"
9396 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}"
9397
9398 else
9399 ld_shlibs=no
9400 fi
9401
9402 ;;
9403
9404 dgux*)
9405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9406 hardcode_libdir_flag_spec='-L$libdir'
9407 hardcode_shlibpath_var=no
9408 ;;
9409
9410 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9411 # support. Future versions do this automatically, but an explicit c++rt0.o
9412 # does not break anything, and helps significantly (at the cost of a little
9413 # extra space).
9414 freebsd2.2*)
9415 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9416 hardcode_libdir_flag_spec='-R$libdir'
9417 hardcode_direct=yes
9418 hardcode_shlibpath_var=no
9419 ;;
9420
9421 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9422 freebsd2.*)
9423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9424 hardcode_direct=yes
9425 hardcode_minus_L=yes
9426 hardcode_shlibpath_var=no
9427 ;;
9428
9429 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9430 freebsd* | dragonfly*)
9431 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9432 hardcode_libdir_flag_spec='-R$libdir'
9433 hardcode_direct=yes
9434 hardcode_shlibpath_var=no
9435 ;;
9436
9437 hpux9*)
9438 if test "$GCC" = yes; then
9439 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'
9440 else
9441 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'
9442 fi
9443 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9444 hardcode_libdir_separator=:
9445 hardcode_direct=yes
9446
9447 # hardcode_minus_L: Not really in the search PATH,
9448 # but as the default location of the library.
9449 hardcode_minus_L=yes
9450 export_dynamic_flag_spec='${wl}-E'
9451 ;;
9452
9453 hpux10*)
9454 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9455 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9456 else
9457 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9458 fi
9459 if test "$with_gnu_ld" = no; then
9460 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9461 hardcode_libdir_separator=:
9462 hardcode_direct=yes
9463 hardcode_direct_absolute=yes
9464 export_dynamic_flag_spec='${wl}-E'
9465 # hardcode_minus_L: Not really in the search PATH,
9466 # but as the default location of the library.
9467 hardcode_minus_L=yes
9468 fi
9469 ;;
9470
9471 hpux11*)
9472 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9473 case $host_cpu in
9474 hppa*64*)
9475 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9476 ;;
9477 ia64*)
9478 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9479 ;;
9480 *)
9481 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9482 ;;
9483 esac
9484 else
9485 case $host_cpu in
9486 hppa*64*)
9487 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9488 ;;
9489 ia64*)
9490 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9491 ;;
9492 *)
9493
9494 # Older versions of the 11.00 compiler do not understand -b yet
9495 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9497$as_echo_n "checking if $CC understands -b... " >&6; }
9498if ${lt_cv_prog_compiler__b+:} false; then :
9499 $as_echo_n "(cached) " >&6
9500else
9501 lt_cv_prog_compiler__b=no
9502 save_LDFLAGS="$LDFLAGS"
9503 LDFLAGS="$LDFLAGS -b"
9504 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9505 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9506 # The linker can only warn and ignore the option if not recognized
9507 # So say no if there are warnings
9508 if test -s conftest.err; then
9509 # Append any errors to the config.log.
9510 cat conftest.err 1>&5
9511 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9513 if diff conftest.exp conftest.er2 >/dev/null; then
9514 lt_cv_prog_compiler__b=yes
9515 fi
9516 else
9517 lt_cv_prog_compiler__b=yes
9518 fi
9519 fi
9520 $RM -r conftest*
9521 LDFLAGS="$save_LDFLAGS"
9522
9523fi
9524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9525$as_echo "$lt_cv_prog_compiler__b" >&6; }
9526
9527if test x"$lt_cv_prog_compiler__b" = xyes; then
9528 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9529else
9530 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9531fi
9532
9533 ;;
9534 esac
9535 fi
9536 if test "$with_gnu_ld" = no; then
9537 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9538 hardcode_libdir_separator=:
9539
9540 case $host_cpu in
9541 hppa*64*|ia64*)
9542 hardcode_direct=no
9543 hardcode_shlibpath_var=no
9544 ;;
9545 *)
9546 hardcode_direct=yes
9547 hardcode_direct_absolute=yes
9548 export_dynamic_flag_spec='${wl}-E'
9549
9550 # hardcode_minus_L: Not really in the search PATH,
9551 # but as the default location of the library.
9552 hardcode_minus_L=yes
9553 ;;
9554 esac
9555 fi
9556 ;;
9557
9558 irix5* | irix6* | nonstopux*)
9559 if test "$GCC" = yes; then
9560 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'
9561 # Try to use the -exported_symbol ld option, if it does not
9562 # work, assume that -exports_file does not work either and
9563 # implicitly export all symbols.
9564 # This should be the same for all languages, so no per-tag cache variable.
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9566$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9567if ${lt_cv_irix_exported_symbol+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569else
9570 save_LDFLAGS="$LDFLAGS"
9571 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573/* end confdefs.h. */
9574int foo (void) { return 0; }
9575_ACEOF
9576if ac_fn_c_try_link "$LINENO"; then :
9577 lt_cv_irix_exported_symbol=yes
9578else
9579 lt_cv_irix_exported_symbol=no
9580fi
9581rm -f core conftest.err conftest.$ac_objext \
9582 conftest$ac_exeext conftest.$ac_ext
9583 LDFLAGS="$save_LDFLAGS"
9584fi
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9586$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9587 if test "$lt_cv_irix_exported_symbol" = yes; then
9588 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'
9589 fi
9590 else
9591 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'
9592 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'
9593 fi
9594 archive_cmds_need_lc='no'
9595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9596 hardcode_libdir_separator=:
9597 inherit_rpath=yes
9598 link_all_deplibs=yes
9599 ;;
9600
9601 netbsd*)
9602 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9604 else
9605 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9606 fi
9607 hardcode_libdir_flag_spec='-R$libdir'
9608 hardcode_direct=yes
9609 hardcode_shlibpath_var=no
9610 ;;
9611
9612 newsos6)
9613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9614 hardcode_direct=yes
9615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9616 hardcode_libdir_separator=:
9617 hardcode_shlibpath_var=no
9618 ;;
9619
9620 *nto* | *qnx*)
9621 ;;
9622
9623 openbsd*)
9624 if test -f /usr/libexec/ld.so; then
9625 hardcode_direct=yes
9626 hardcode_shlibpath_var=no
9627 hardcode_direct_absolute=yes
9628 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9629 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9630 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9631 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9632 export_dynamic_flag_spec='${wl}-E'
9633 else
9634 case $host_os in
9635 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9637 hardcode_libdir_flag_spec='-R$libdir'
9638 ;;
9639 *)
9640 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9641 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9642 ;;
9643 esac
9644 fi
9645 else
9646 ld_shlibs=no
9647 fi
9648 ;;
9649
9650 os2*)
9651 hardcode_libdir_flag_spec='-L$libdir'
9652 hardcode_minus_L=yes
9653 allow_undefined_flag=unsupported
9654 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'
9655 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9656 ;;
9657
9658 osf3*)
9659 if test "$GCC" = yes; then
9660 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9661 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'
9662 else
9663 allow_undefined_flag=' -expect_unresolved \*'
9664 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'
9665 fi
9666 archive_cmds_need_lc='no'
9667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9668 hardcode_libdir_separator=:
9669 ;;
9670
9671 osf4* | osf5*) # as osf3* with the addition of -msym flag
9672 if test "$GCC" = yes; then
9673 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9674 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'
9675 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9676 else
9677 allow_undefined_flag=' -expect_unresolved \*'
9678 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'
9679 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~
9680 $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'
9681
9682 # Both c and cxx compiler support -rpath directly
9683 hardcode_libdir_flag_spec='-rpath $libdir'
9684 fi
9685 archive_cmds_need_lc='no'
9686 hardcode_libdir_separator=:
9687 ;;
9688
9689 solaris*)
9690 no_undefined_flag=' -z defs'
9691 if test "$GCC" = yes; then
9692 wlarc='${wl}'
9693 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9695 $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'
9696 else
9697 case `$CC -V 2>&1` in
9698 *"Compilers 5.0"*)
9699 wlarc=''
9700 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9702 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9703 ;;
9704 *)
9705 wlarc='${wl}'
9706 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9707 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9708 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9709 ;;
9710 esac
9711 fi
9712 hardcode_libdir_flag_spec='-R$libdir'
9713 hardcode_shlibpath_var=no
9714 case $host_os in
9715 solaris2.[0-5] | solaris2.[0-5].*) ;;
9716 *)
9717 # The compiler driver will combine and reorder linker options,
9718 # but understands `-z linker_flag'. GCC discards it without `$wl',
9719 # but is careful enough not to reorder.
9720 # Supported since Solaris 2.6 (maybe 2.5.1?)
9721 if test "$GCC" = yes; then
9722 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9723 else
9724 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9725 fi
9726 ;;
9727 esac
9728 link_all_deplibs=yes
9729 ;;
9730
9731 sunos4*)
9732 if test "x$host_vendor" = xsequent; then
9733 # Use $CC to link under sequent, because it throws in some extra .o
9734 # files that make .init and .fini sections work.
9735 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9736 else
9737 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9738 fi
9739 hardcode_libdir_flag_spec='-L$libdir'
9740 hardcode_direct=yes
9741 hardcode_minus_L=yes
9742 hardcode_shlibpath_var=no
9743 ;;
9744
9745 sysv4)
9746 case $host_vendor in
9747 sni)
9748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9749 hardcode_direct=yes # is this really true???
9750 ;;
9751 siemens)
9752 ## LD is ld it makes a PLAMLIB
9753 ## CC just makes a GrossModule.
9754 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9755 reload_cmds='$CC -r -o $output$reload_objs'
9756 hardcode_direct=no
9757 ;;
9758 motorola)
9759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9761 ;;
9762 esac
9763 runpath_var='LD_RUN_PATH'
9764 hardcode_shlibpath_var=no
9765 ;;
9766
9767 sysv4.3*)
9768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769 hardcode_shlibpath_var=no
9770 export_dynamic_flag_spec='-Bexport'
9771 ;;
9772
9773 sysv4*MP*)
9774 if test -d /usr/nec; then
9775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776 hardcode_shlibpath_var=no
9777 runpath_var=LD_RUN_PATH
9778 hardcode_runpath_var=yes
9779 ld_shlibs=yes
9780 fi
9781 ;;
9782
9783 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9784 no_undefined_flag='${wl}-z,text'
9785 archive_cmds_need_lc=no
9786 hardcode_shlibpath_var=no
9787 runpath_var='LD_RUN_PATH'
9788
9789 if test "$GCC" = yes; then
9790 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9791 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9792 else
9793 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9794 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9795 fi
9796 ;;
9797
9798 sysv5* | sco3.2v5* | sco5v6*)
9799 # Note: We can NOT use -z defs as we might desire, because we do not
9800 # link with -lc, and that would cause any symbols used from libc to
9801 # always be unresolved, which means just about no library would
9802 # ever link correctly. If we're not using GNU ld we use -z text
9803 # though, which does catch some bad symbols but isn't as heavy-handed
9804 # as -z defs.
9805 no_undefined_flag='${wl}-z,text'
9806 allow_undefined_flag='${wl}-z,nodefs'
9807 archive_cmds_need_lc=no
9808 hardcode_shlibpath_var=no
9809 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9810 hardcode_libdir_separator=':'
9811 link_all_deplibs=yes
9812 export_dynamic_flag_spec='${wl}-Bexport'
9813 runpath_var='LD_RUN_PATH'
9814
9815 if test "$GCC" = yes; then
9816 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9817 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9818 else
9819 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9820 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9821 fi
9822 ;;
9823
9824 uts4*)
9825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9826 hardcode_libdir_flag_spec='-L$libdir'
9827 hardcode_shlibpath_var=no
9828 ;;
9829
9830 *)
9831 ld_shlibs=no
9832 ;;
9833 esac
9834
9835 if test x$host_vendor = xsni; then
9836 case $host in
9837 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9838 export_dynamic_flag_spec='${wl}-Blargedynsym'
9839 ;;
9840 esac
9841 fi
9842 fi
9843
9844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9845$as_echo "$ld_shlibs" >&6; }
9846test "$ld_shlibs" = no && can_build_shared=no
9847
9848with_gnu_ld=$with_gnu_ld
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864#
9865# Do we need to explicitly link libc?
9866#
9867case "x$archive_cmds_need_lc" in
9868x|xyes)
9869 # Assume -lc should be added
9870 archive_cmds_need_lc=yes
9871
9872 if test "$enable_shared" = yes && test "$GCC" = yes; then
9873 case $archive_cmds in
9874 *'~'*)
9875 # FIXME: we may have to deal with multi-command sequences.
9876 ;;
9877 '$CC '*)
9878 # Test whether the compiler implicitly links with -lc since on some
9879 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9880 # to ld, don't add -lc before -lgcc.
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9882$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9883if ${lt_cv_archive_cmds_need_lc+:} false; then :
9884 $as_echo_n "(cached) " >&6
9885else
9886 $RM conftest*
9887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9888
9889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9890 (eval $ac_compile) 2>&5
9891 ac_status=$?
9892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9893 test $ac_status = 0; } 2>conftest.err; then
9894 soname=conftest
9895 lib=conftest
9896 libobjs=conftest.$ac_objext
9897 deplibs=
9898 wl=$lt_prog_compiler_wl
9899 pic_flag=$lt_prog_compiler_pic
9900 compiler_flags=-v
9901 linker_flags=-v
9902 verstring=
9903 output_objdir=.
9904 libname=conftest
9905 lt_save_allow_undefined_flag=$allow_undefined_flag
9906 allow_undefined_flag=
9907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9908 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9909 ac_status=$?
9910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9911 test $ac_status = 0; }
9912 then
9913 lt_cv_archive_cmds_need_lc=no
9914 else
9915 lt_cv_archive_cmds_need_lc=yes
9916 fi
9917 allow_undefined_flag=$lt_save_allow_undefined_flag
9918 else
9919 cat conftest.err 1>&5
9920 fi
9921 $RM conftest*
9922
9923fi
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9925$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9926 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9927 ;;
9928 esac
9929 fi
9930 ;;
9931esac
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10085$as_echo_n "checking dynamic linker characteristics... " >&6; }
10086
10087if test "$GCC" = yes; then
10088 case $host_os in
10089 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10090 *) lt_awk_arg="/^libraries:/" ;;
10091 esac
10092 case $host_os in
10093 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10094 *) lt_sed_strip_eq="s,=/,/,g" ;;
10095 esac
10096 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10097 case $lt_search_path_spec in
10098 *\;*)
10099 # if the path contains ";" then we assume it to be the separator
10100 # otherwise default to the standard path separator (i.e. ":") - it is
10101 # assumed that no part of a normal pathname contains ";" but that should
10102 # okay in the real world where ";" in dirpaths is itself problematic.
10103 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10104 ;;
10105 *)
10106 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10107 ;;
10108 esac
10109 # Ok, now we have the path, separated by spaces, we can step through it
10110 # and add multilib dir if necessary.
10111 lt_tmp_lt_search_path_spec=
10112 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10113 for lt_sys_path in $lt_search_path_spec; do
10114 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10115 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10116 else
10117 test -d "$lt_sys_path" && \
10118 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10119 fi
10120 done
10121 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10122BEGIN {RS=" "; FS="/|\n";} {
10123 lt_foo="";
10124 lt_count=0;
10125 for (lt_i = NF; lt_i > 0; lt_i--) {
10126 if ($lt_i != "" && $lt_i != ".") {
10127 if ($lt_i == "..") {
10128 lt_count++;
10129 } else {
10130 if (lt_count == 0) {
10131 lt_foo="/" $lt_i lt_foo;
10132 } else {
10133 lt_count--;
10134 }
10135 }
10136 }
10137 }
10138 if (lt_foo != "") { lt_freq[lt_foo]++; }
10139 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10140}'`
10141 # AWK program above erroneously prepends '/' to C:/dos/paths
10142 # for these hosts.
10143 case $host_os in
10144 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10145 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10146 esac
10147 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10148else
10149 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10150fi
10151library_names_spec=
10152libname_spec='lib$name'
10153soname_spec=
10154shrext_cmds=".so"
10155postinstall_cmds=
10156postuninstall_cmds=
10157finish_cmds=
10158finish_eval=
10159shlibpath_var=
10160shlibpath_overrides_runpath=unknown
10161version_type=none
10162dynamic_linker="$host_os ld.so"
10163sys_lib_dlsearch_path_spec="/lib /usr/lib"
10164need_lib_prefix=unknown
10165hardcode_into_libs=no
10166
10167# when you set need_version to no, make sure it does not cause -set_version
10168# flags to be left without arguments
10169need_version=unknown
10170
10171case $host_os in
10172aix3*)
10173 version_type=linux # correct to gnu/linux during the next big refactor
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10175 shlibpath_var=LIBPATH
10176
10177 # AIX 3 has no versioning support, so we append a major version to the name.
10178 soname_spec='${libname}${release}${shared_ext}$major'
10179 ;;
10180
10181aix[4-9]*)
10182 version_type=linux # correct to gnu/linux during the next big refactor
10183 need_lib_prefix=no
10184 need_version=no
10185 hardcode_into_libs=yes
10186 if test "$host_cpu" = ia64; then
10187 # AIX 5 supports IA64
10188 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10189 shlibpath_var=LD_LIBRARY_PATH
10190 else
10191 # With GCC up to 2.95.x, collect2 would create an import file
10192 # for dependence libraries. The import file would start with
10193 # the line `#! .'. This would cause the generated library to
10194 # depend on `.', always an invalid library. This was fixed in
10195 # development snapshots of GCC prior to 3.0.
10196 case $host_os in
10197 aix4 | aix4.[01] | aix4.[01].*)
10198 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10199 echo ' yes '
10200 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10201 :
10202 else
10203 can_build_shared=no
10204 fi
10205 ;;
10206 esac
10207 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10208 # soname into executable. Probably we can add versioning support to
10209 # collect2, so additional links can be useful in future.
10210 if test "$aix_use_runtimelinking" = yes; then
10211 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10212 # instead of lib<name>.a to let people know that these are not
10213 # typical AIX shared libraries.
10214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215 else
10216 # We preserve .a as extension for shared libraries through AIX4.2
10217 # and later when we are not doing run time linking.
10218 library_names_spec='${libname}${release}.a $libname.a'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 fi
10221 shlibpath_var=LIBPATH
10222 fi
10223 ;;
10224
10225amigaos*)
10226 case $host_cpu in
10227 powerpc)
10228 # Since July 2007 AmigaOS4 officially supports .so libraries.
10229 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10231 ;;
10232 m68k)
10233 library_names_spec='$libname.ixlibrary $libname.a'
10234 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10235 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'
10236 ;;
10237 esac
10238 ;;
10239
10240beos*)
10241 library_names_spec='${libname}${shared_ext}'
10242 dynamic_linker="$host_os ld.so"
10243 shlibpath_var=LIBRARY_PATH
10244 ;;
10245
10246bsdi[45]*)
10247 version_type=linux # correct to gnu/linux during the next big refactor
10248 need_version=no
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10254 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10255 # the default ld.so.conf also contains /usr/contrib/lib and
10256 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10257 # libtool to hard-code these into programs
10258 ;;
10259
10260cygwin* | mingw* | pw32* | cegcc*)
10261 version_type=windows
10262 shrext_cmds=".dll"
10263 need_version=no
10264 need_lib_prefix=no
10265
10266 case $GCC,$cc_basename in
10267 yes,*)
10268 # gcc
10269 library_names_spec='$libname.dll.a'
10270 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10271 postinstall_cmds='base_file=`basename \${file}`~
10272 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10273 dldir=$destdir/`dirname \$dlpath`~
10274 test -d \$dldir || mkdir -p \$dldir~
10275 $install_prog $dir/$dlname \$dldir/$dlname~
10276 chmod a+x \$dldir/$dlname~
10277 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10278 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10279 fi'
10280 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10281 dlpath=$dir/\$dldll~
10282 $RM \$dlpath'
10283 shlibpath_overrides_runpath=yes
10284
10285 case $host_os in
10286 cygwin*)
10287 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10288 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10289
10290 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10291 ;;
10292 mingw* | cegcc*)
10293 # MinGW DLLs use traditional 'lib' prefix
10294 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10295 ;;
10296 pw32*)
10297 # pw32 DLLs use 'pw' prefix rather than 'lib'
10298 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10299 ;;
10300 esac
10301 dynamic_linker='Win32 ld.exe'
10302 ;;
10303
10304 *,cl*)
10305 # Native MSVC
10306 libname_spec='$name'
10307 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10308 library_names_spec='${libname}.dll.lib'
10309
10310 case $build_os in
10311 mingw*)
10312 sys_lib_search_path_spec=
10313 lt_save_ifs=$IFS
10314 IFS=';'
10315 for lt_path in $LIB
10316 do
10317 IFS=$lt_save_ifs
10318 # Let DOS variable expansion print the short 8.3 style file name.
10319 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10320 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10321 done
10322 IFS=$lt_save_ifs
10323 # Convert to MSYS style.
10324 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10325 ;;
10326 cygwin*)
10327 # Convert to unix form, then to dos form, then back to unix form
10328 # but this time dos style (no spaces!) so that the unix form looks
10329 # like /cygdrive/c/PROGRA~1:/cygdr...
10330 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10331 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10332 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10333 ;;
10334 *)
10335 sys_lib_search_path_spec="$LIB"
10336 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10337 # It is most probably a Windows format PATH.
10338 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10339 else
10340 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10341 fi
10342 # FIXME: find the short name or the path components, as spaces are
10343 # common. (e.g. "Program Files" -> "PROGRA~1")
10344 ;;
10345 esac
10346
10347 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10348 postinstall_cmds='base_file=`basename \${file}`~
10349 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10350 dldir=$destdir/`dirname \$dlpath`~
10351 test -d \$dldir || mkdir -p \$dldir~
10352 $install_prog $dir/$dlname \$dldir/$dlname'
10353 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10354 dlpath=$dir/\$dldll~
10355 $RM \$dlpath'
10356 shlibpath_overrides_runpath=yes
10357 dynamic_linker='Win32 link.exe'
10358 ;;
10359
10360 *)
10361 # Assume MSVC wrapper
10362 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10363 dynamic_linker='Win32 ld.exe'
10364 ;;
10365 esac
10366 # FIXME: first we should search . and the directory the executable is in
10367 shlibpath_var=PATH
10368 ;;
10369
10370darwin* | rhapsody*)
10371 dynamic_linker="$host_os dyld"
10372 version_type=darwin
10373 need_lib_prefix=no
10374 need_version=no
10375 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10376 soname_spec='${libname}${release}${major}$shared_ext'
10377 shlibpath_overrides_runpath=yes
10378 shlibpath_var=DYLD_LIBRARY_PATH
10379 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10380
10381 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10382 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10383 ;;
10384
10385dgux*)
10386 version_type=linux # correct to gnu/linux during the next big refactor
10387 need_lib_prefix=no
10388 need_version=no
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 ;;
10393
10394freebsd* | dragonfly*)
10395 # DragonFly does not have aout. When/if they implement a new
10396 # versioning mechanism, adjust this.
10397 if test -x /usr/bin/objformat; then
10398 objformat=`/usr/bin/objformat`
10399 else
10400 case $host_os in
10401 freebsd[23].*) objformat=aout ;;
10402 *) objformat=elf ;;
10403 esac
10404 fi
10405 version_type=freebsd-$objformat
10406 case $version_type in
10407 freebsd-elf*)
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10409 need_version=no
10410 need_lib_prefix=no
10411 ;;
10412 freebsd-*)
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10414 need_version=yes
10415 ;;
10416 esac
10417 shlibpath_var=LD_LIBRARY_PATH
10418 case $host_os in
10419 freebsd2.*)
10420 shlibpath_overrides_runpath=yes
10421 ;;
10422 freebsd3.[01]* | freebsdelf3.[01]*)
10423 shlibpath_overrides_runpath=yes
10424 hardcode_into_libs=yes
10425 ;;
10426 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10427 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10428 shlibpath_overrides_runpath=no
10429 hardcode_into_libs=yes
10430 ;;
10431 *) # from 4.6 on, and DragonFly
10432 shlibpath_overrides_runpath=yes
10433 hardcode_into_libs=yes
10434 ;;
10435 esac
10436 ;;
10437
10438gnu*)
10439 version_type=linux # correct to gnu/linux during the next big refactor
10440 need_lib_prefix=no
10441 need_version=no
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10443 soname_spec='${libname}${release}${shared_ext}$major'
10444 shlibpath_var=LD_LIBRARY_PATH
10445 shlibpath_overrides_runpath=no
10446 hardcode_into_libs=yes
10447 ;;
10448
10449haiku*)
10450 version_type=linux # correct to gnu/linux during the next big refactor
10451 need_lib_prefix=no
10452 need_version=no
10453 dynamic_linker="$host_os runtime_loader"
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 shlibpath_var=LIBRARY_PATH
10457 shlibpath_overrides_runpath=yes
10458 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10459 hardcode_into_libs=yes
10460 ;;
10461
10462hpux9* | hpux10* | hpux11*)
10463 # Give a soname corresponding to the major version so that dld.sl refuses to
10464 # link against other versions.
10465 version_type=sunos
10466 need_lib_prefix=no
10467 need_version=no
10468 case $host_cpu in
10469 ia64*)
10470 shrext_cmds='.so'
10471 hardcode_into_libs=yes
10472 dynamic_linker="$host_os dld.so"
10473 shlibpath_var=LD_LIBRARY_PATH
10474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476 soname_spec='${libname}${release}${shared_ext}$major'
10477 if test "X$HPUX_IA64_MODE" = X32; then
10478 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10479 else
10480 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10481 fi
10482 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10483 ;;
10484 hppa*64*)
10485 shrext_cmds='.sl'
10486 hardcode_into_libs=yes
10487 dynamic_linker="$host_os dld.sl"
10488 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10489 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10491 soname_spec='${libname}${release}${shared_ext}$major'
10492 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10493 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10494 ;;
10495 *)
10496 shrext_cmds='.sl'
10497 dynamic_linker="$host_os dld.sl"
10498 shlibpath_var=SHLIB_PATH
10499 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501 soname_spec='${libname}${release}${shared_ext}$major'
10502 ;;
10503 esac
10504 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10505 postinstall_cmds='chmod 555 $lib'
10506 # or fails outright, so override atomically:
10507 install_override_mode=555
10508 ;;
10509
10510interix[3-9]*)
10511 version_type=linux # correct to gnu/linux during the next big refactor
10512 need_lib_prefix=no
10513 need_version=no
10514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10515 soname_spec='${libname}${release}${shared_ext}$major'
10516 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10517 shlibpath_var=LD_LIBRARY_PATH
10518 shlibpath_overrides_runpath=no
10519 hardcode_into_libs=yes
10520 ;;
10521
10522irix5* | irix6* | nonstopux*)
10523 case $host_os in
10524 nonstopux*) version_type=nonstopux ;;
10525 *)
10526 if test "$lt_cv_prog_gnu_ld" = yes; then
10527 version_type=linux # correct to gnu/linux during the next big refactor
10528 else
10529 version_type=irix
10530 fi ;;
10531 esac
10532 need_lib_prefix=no
10533 need_version=no
10534 soname_spec='${libname}${release}${shared_ext}$major'
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10536 case $host_os in
10537 irix5* | nonstopux*)
10538 libsuff= shlibsuff=
10539 ;;
10540 *)
10541 case $LD in # libtool.m4 will add one of these switches to LD
10542 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10543 libsuff= shlibsuff= libmagic=32-bit;;
10544 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10545 libsuff=32 shlibsuff=N32 libmagic=N32;;
10546 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10547 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10548 *) libsuff= shlibsuff= libmagic=never-match;;
10549 esac
10550 ;;
10551 esac
10552 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10553 shlibpath_overrides_runpath=no
10554 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10555 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10556 hardcode_into_libs=yes
10557 ;;
10558
10559# No shared lib support for Linux oldld, aout, or coff.
10560linux*oldld* | linux*aout* | linux*coff*)
10561 dynamic_linker=no
10562 ;;
10563
10564# This must be glibc/ELF.
10565linux* | k*bsd*-gnu | kopensolaris*-gnu)
10566 version_type=linux # correct to gnu/linux during the next big refactor
10567 need_lib_prefix=no
10568 need_version=no
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10570 soname_spec='${libname}${release}${shared_ext}$major'
10571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10572 shlibpath_var=LD_LIBRARY_PATH
10573 shlibpath_overrides_runpath=no
10574
10575 # Some binutils ld are patched to set DT_RUNPATH
10576 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10577 $as_echo_n "(cached) " >&6
10578else
10579 lt_cv_shlibpath_overrides_runpath=no
10580 save_LDFLAGS=$LDFLAGS
10581 save_libdir=$libdir
10582 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10583 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585/* end confdefs.h. */
10586
10587int
10588main ()
10589{
10590
10591 ;
10592 return 0;
10593}
10594_ACEOF
10595if ac_fn_c_try_link "$LINENO"; then :
10596 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10597 lt_cv_shlibpath_overrides_runpath=yes
10598fi
10599fi
10600rm -f core conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
10602 LDFLAGS=$save_LDFLAGS
10603 libdir=$save_libdir
10604
10605fi
10606
10607 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10608
10609 # This implies no fast_install, which is unacceptable.
10610 # Some rework will be needed to allow for fast_install
10611 # before this can be enabled.
10612 hardcode_into_libs=yes
10613
10614 # Add ABI-specific directories to the system library path.
10615 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10616
10617 # Append ld.so.conf contents to the search path
10618 if test -f /etc/ld.so.conf; then
10619 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' ' '`
10620 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10621
10622 fi
10623
10624 # We used to test for /lib/ld.so.1 and disable shared libraries on
10625 # powerpc, because MkLinux only supported shared libraries with the
10626 # GNU dynamic linker. Since this was broken with cross compilers,
10627 # most powerpc-linux boxes support dynamic linking these days and
10628 # people can always --disable-shared, the test was removed, and we
10629 # assume the GNU/Linux dynamic linker is in use.
10630 dynamic_linker='GNU/Linux ld.so'
10631 ;;
10632
10633netbsd*)
10634 version_type=sunos
10635 need_lib_prefix=no
10636 need_version=no
10637 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10640 dynamic_linker='NetBSD (a.out) ld.so'
10641 else
10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10643 soname_spec='${libname}${release}${shared_ext}$major'
10644 dynamic_linker='NetBSD ld.elf_so'
10645 fi
10646 shlibpath_var=LD_LIBRARY_PATH
10647 shlibpath_overrides_runpath=yes
10648 hardcode_into_libs=yes
10649 ;;
10650
10651newsos6)
10652 version_type=linux # correct to gnu/linux during the next big refactor
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 shlibpath_overrides_runpath=yes
10656 ;;
10657
10658*nto* | *qnx*)
10659 version_type=qnx
10660 need_lib_prefix=no
10661 need_version=no
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 shlibpath_overrides_runpath=no
10666 hardcode_into_libs=yes
10667 dynamic_linker='ldqnx.so'
10668 ;;
10669
10670openbsd*)
10671 version_type=sunos
10672 sys_lib_dlsearch_path_spec="/usr/lib"
10673 need_lib_prefix=no
10674 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10675 case $host_os in
10676 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10677 *) need_version=no ;;
10678 esac
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10681 shlibpath_var=LD_LIBRARY_PATH
10682 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10683 case $host_os in
10684 openbsd2.[89] | openbsd2.[89].*)
10685 shlibpath_overrides_runpath=no
10686 ;;
10687 *)
10688 shlibpath_overrides_runpath=yes
10689 ;;
10690 esac
10691 else
10692 shlibpath_overrides_runpath=yes
10693 fi
10694 ;;
10695
10696os2*)
10697 libname_spec='$name'
10698 shrext_cmds=".dll"
10699 need_lib_prefix=no
10700 library_names_spec='$libname${shared_ext} $libname.a'
10701 dynamic_linker='OS/2 ld.exe'
10702 shlibpath_var=LIBPATH
10703 ;;
10704
10705osf3* | osf4* | osf5*)
10706 version_type=osf
10707 need_lib_prefix=no
10708 need_version=no
10709 soname_spec='${libname}${release}${shared_ext}$major'
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711 shlibpath_var=LD_LIBRARY_PATH
10712 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10713 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10714 ;;
10715
10716rdos*)
10717 dynamic_linker=no
10718 ;;
10719
10720solaris*)
10721 version_type=linux # correct to gnu/linux during the next big refactor
10722 need_lib_prefix=no
10723 need_version=no
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10725 soname_spec='${libname}${release}${shared_ext}$major'
10726 shlibpath_var=LD_LIBRARY_PATH
10727 shlibpath_overrides_runpath=yes
10728 hardcode_into_libs=yes
10729 # ldd complains unless libraries are executable
10730 postinstall_cmds='chmod +x $lib'
10731 ;;
10732
10733sunos4*)
10734 version_type=sunos
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10736 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10737 shlibpath_var=LD_LIBRARY_PATH
10738 shlibpath_overrides_runpath=yes
10739 if test "$with_gnu_ld" = yes; then
10740 need_lib_prefix=no
10741 fi
10742 need_version=yes
10743 ;;
10744
10745sysv4 | sysv4.3*)
10746 version_type=linux # correct to gnu/linux during the next big refactor
10747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10748 soname_spec='${libname}${release}${shared_ext}$major'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 case $host_vendor in
10751 sni)
10752 shlibpath_overrides_runpath=no
10753 need_lib_prefix=no
10754 runpath_var=LD_RUN_PATH
10755 ;;
10756 siemens)
10757 need_lib_prefix=no
10758 ;;
10759 motorola)
10760 need_lib_prefix=no
10761 need_version=no
10762 shlibpath_overrides_runpath=no
10763 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10764 ;;
10765 esac
10766 ;;
10767
10768sysv4*MP*)
10769 if test -d /usr/nec ;then
10770 version_type=linux # correct to gnu/linux during the next big refactor
10771 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10772 soname_spec='$libname${shared_ext}.$major'
10773 shlibpath_var=LD_LIBRARY_PATH
10774 fi
10775 ;;
10776
10777sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10778 version_type=freebsd-elf
10779 need_lib_prefix=no
10780 need_version=no
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 shlibpath_var=LD_LIBRARY_PATH
10784 shlibpath_overrides_runpath=yes
10785 hardcode_into_libs=yes
10786 if test "$with_gnu_ld" = yes; then
10787 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10788 else
10789 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10790 case $host_os in
10791 sco3.2v5*)
10792 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10793 ;;
10794 esac
10795 fi
10796 sys_lib_dlsearch_path_spec='/usr/lib'
10797 ;;
10798
10799tpf*)
10800 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10801 version_type=linux # correct to gnu/linux during the next big refactor
10802 need_lib_prefix=no
10803 need_version=no
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10805 shlibpath_var=LD_LIBRARY_PATH
10806 shlibpath_overrides_runpath=no
10807 hardcode_into_libs=yes
10808 ;;
10809
10810uts4*)
10811 version_type=linux # correct to gnu/linux during the next big refactor
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813 soname_spec='${libname}${release}${shared_ext}$major'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 ;;
10816
10817*)
10818 dynamic_linker=no
10819 ;;
10820esac
10821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10822$as_echo "$dynamic_linker" >&6; }
10823test "$dynamic_linker" = no && can_build_shared=no
10824
10825variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10826if test "$GCC" = yes; then
10827 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10828fi
10829
10830if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10831 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10832fi
10833if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10834 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10835fi
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10929$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10930hardcode_action=
10931if test -n "$hardcode_libdir_flag_spec" ||
10932 test -n "$runpath_var" ||
10933 test "X$hardcode_automatic" = "Xyes" ; then
10934
10935 # We can hardcode non-existent directories.
10936 if test "$hardcode_direct" != no &&
10937 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10938 # have to relink, otherwise we might link with an installed library
10939 # when we should be linking with a yet-to-be-installed one
10940 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10941 test "$hardcode_minus_L" != no; then
10942 # Linking always hardcodes the temporary library directory.
10943 hardcode_action=relink
10944 else
10945 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10946 hardcode_action=immediate
10947 fi
10948else
10949 # We cannot hardcode anything, or else we can only hardcode existing
10950 # directories.
10951 hardcode_action=unsupported
10952fi
10953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10954$as_echo "$hardcode_action" >&6; }
10955
10956if test "$hardcode_action" = relink ||
10957 test "$inherit_rpath" = yes; then
10958 # Fast installation is not supported
10959 enable_fast_install=no
10960elif test "$shlibpath_overrides_runpath" = yes ||
10961 test "$enable_shared" = no; then
10962 # Fast installation is not necessary
10963 enable_fast_install=needless
10964fi
10965
10966
10967
10968
10969
10970
10971 if test "x$enable_dlopen" != xyes; then
10972 enable_dlopen=unknown
10973 enable_dlopen_self=unknown
10974 enable_dlopen_self_static=unknown
10975else
10976 lt_cv_dlopen=no
10977 lt_cv_dlopen_libs=
10978
10979 case $host_os in
10980 beos*)
10981 lt_cv_dlopen="load_add_on"
10982 lt_cv_dlopen_libs=
10983 lt_cv_dlopen_self=yes
10984 ;;
10985
10986 mingw* | pw32* | cegcc*)
10987 lt_cv_dlopen="LoadLibrary"
10988 lt_cv_dlopen_libs=
10989 ;;
10990
10991 cygwin*)
10992 lt_cv_dlopen="dlopen"
10993 lt_cv_dlopen_libs=
10994 ;;
10995
10996 darwin*)
10997 # if libdl is installed we need to link against it
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10999$as_echo_n "checking for dlopen in -ldl... " >&6; }
11000if ${ac_cv_lib_dl_dlopen+:} false; then :
11001 $as_echo_n "(cached) " >&6
11002else
11003 ac_check_lib_save_LIBS=$LIBS
11004LIBS="-ldl $LIBS"
11005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006/* end confdefs.h. */
11007
11008/* Override any GCC internal prototype to avoid an error.
11009 Use char because int might match the return type of a GCC
11010 builtin and then its argument prototype would still apply. */
11011#ifdef __cplusplus
11012extern "C"
11013#endif
11014char dlopen ();
11015int
11016main ()
11017{
11018return dlopen ();
11019 ;
11020 return 0;
11021}
11022_ACEOF
11023if ac_fn_c_try_link "$LINENO"; then :
11024 ac_cv_lib_dl_dlopen=yes
11025else
11026 ac_cv_lib_dl_dlopen=no
11027fi
11028rm -f core conftest.err conftest.$ac_objext \
11029 conftest$ac_exeext conftest.$ac_ext
11030LIBS=$ac_check_lib_save_LIBS
11031fi
11032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11033$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11034if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11035 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11036else
11037
11038 lt_cv_dlopen="dyld"
11039 lt_cv_dlopen_libs=
11040 lt_cv_dlopen_self=yes
11041
11042fi
11043
11044 ;;
11045
11046 *)
11047 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11048if test "x$ac_cv_func_shl_load" = xyes; then :
11049 lt_cv_dlopen="shl_load"
11050else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11052$as_echo_n "checking for shl_load in -ldld... " >&6; }
11053if ${ac_cv_lib_dld_shl_load+:} false; then :
11054 $as_echo_n "(cached) " >&6
11055else
11056 ac_check_lib_save_LIBS=$LIBS
11057LIBS="-ldld $LIBS"
11058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059/* end confdefs.h. */
11060
11061/* Override any GCC internal prototype to avoid an error.
11062 Use char because int might match the return type of a GCC
11063 builtin and then its argument prototype would still apply. */
11064#ifdef __cplusplus
11065extern "C"
11066#endif
11067char shl_load ();
11068int
11069main ()
11070{
11071return shl_load ();
11072 ;
11073 return 0;
11074}
11075_ACEOF
11076if ac_fn_c_try_link "$LINENO"; then :
11077 ac_cv_lib_dld_shl_load=yes
11078else
11079 ac_cv_lib_dld_shl_load=no
11080fi
11081rm -f core conftest.err conftest.$ac_objext \
11082 conftest$ac_exeext conftest.$ac_ext
11083LIBS=$ac_check_lib_save_LIBS
11084fi
11085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11086$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11087if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11088 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11089else
11090 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11091if test "x$ac_cv_func_dlopen" = xyes; then :
11092 lt_cv_dlopen="dlopen"
11093else
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11095$as_echo_n "checking for dlopen in -ldl... " >&6; }
11096if ${ac_cv_lib_dl_dlopen+:} false; then :
11097 $as_echo_n "(cached) " >&6
11098else
11099 ac_check_lib_save_LIBS=$LIBS
11100LIBS="-ldl $LIBS"
11101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102/* end confdefs.h. */
11103
11104/* Override any GCC internal prototype to avoid an error.
11105 Use char because int might match the return type of a GCC
11106 builtin and then its argument prototype would still apply. */
11107#ifdef __cplusplus
11108extern "C"
11109#endif
11110char dlopen ();
11111int
11112main ()
11113{
11114return dlopen ();
11115 ;
11116 return 0;
11117}
11118_ACEOF
11119if ac_fn_c_try_link "$LINENO"; then :
11120 ac_cv_lib_dl_dlopen=yes
11121else
11122 ac_cv_lib_dl_dlopen=no
11123fi
11124rm -f core conftest.err conftest.$ac_objext \
11125 conftest$ac_exeext conftest.$ac_ext
11126LIBS=$ac_check_lib_save_LIBS
11127fi
11128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11129$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11130if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11132else
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11134$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11135if ${ac_cv_lib_svld_dlopen+:} false; then :
11136 $as_echo_n "(cached) " >&6
11137else
11138 ac_check_lib_save_LIBS=$LIBS
11139LIBS="-lsvld $LIBS"
11140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141/* end confdefs.h. */
11142
11143/* Override any GCC internal prototype to avoid an error.
11144 Use char because int might match the return type of a GCC
11145 builtin and then its argument prototype would still apply. */
11146#ifdef __cplusplus
11147extern "C"
11148#endif
11149char dlopen ();
11150int
11151main ()
11152{
11153return dlopen ();
11154 ;
11155 return 0;
11156}
11157_ACEOF
11158if ac_fn_c_try_link "$LINENO"; then :
11159 ac_cv_lib_svld_dlopen=yes
11160else
11161 ac_cv_lib_svld_dlopen=no
11162fi
11163rm -f core conftest.err conftest.$ac_objext \
11164 conftest$ac_exeext conftest.$ac_ext
11165LIBS=$ac_check_lib_save_LIBS
11166fi
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11168$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11169if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11170 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11171else
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11173$as_echo_n "checking for dld_link in -ldld... " >&6; }
11174if ${ac_cv_lib_dld_dld_link+:} false; then :
11175 $as_echo_n "(cached) " >&6
11176else
11177 ac_check_lib_save_LIBS=$LIBS
11178LIBS="-ldld $LIBS"
11179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180/* end confdefs.h. */
11181
11182/* Override any GCC internal prototype to avoid an error.
11183 Use char because int might match the return type of a GCC
11184 builtin and then its argument prototype would still apply. */
11185#ifdef __cplusplus
11186extern "C"
11187#endif
11188char dld_link ();
11189int
11190main ()
11191{
11192return dld_link ();
11193 ;
11194 return 0;
11195}
11196_ACEOF
11197if ac_fn_c_try_link "$LINENO"; then :
11198 ac_cv_lib_dld_dld_link=yes
11199else
11200 ac_cv_lib_dld_dld_link=no
11201fi
11202rm -f core conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext conftest.$ac_ext
11204LIBS=$ac_check_lib_save_LIBS
11205fi
11206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11207$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11208if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11209 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11210fi
11211
11212
11213fi
11214
11215
11216fi
11217
11218
11219fi
11220
11221
11222fi
11223
11224
11225fi
11226
11227 ;;
11228 esac
11229
11230 if test "x$lt_cv_dlopen" != xno; then
11231 enable_dlopen=yes
11232 else
11233 enable_dlopen=no
11234 fi
11235
11236 case $lt_cv_dlopen in
11237 dlopen)
11238 save_CPPFLAGS="$CPPFLAGS"
11239 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11240
11241 save_LDFLAGS="$LDFLAGS"
11242 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11243
11244 save_LIBS="$LIBS"
11245 LIBS="$lt_cv_dlopen_libs $LIBS"
11246
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11248$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11249if ${lt_cv_dlopen_self+:} false; then :
11250 $as_echo_n "(cached) " >&6
11251else
11252 if test "$cross_compiling" = yes; then :
11253 lt_cv_dlopen_self=cross
11254else
11255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11256 lt_status=$lt_dlunknown
11257 cat > conftest.$ac_ext <<_LT_EOF
11258#line $LINENO "configure"
11259#include "confdefs.h"
11260
11261#if HAVE_DLFCN_H
11262#include <dlfcn.h>
11263#endif
11264
11265#include <stdio.h>
11266
11267#ifdef RTLD_GLOBAL
11268# define LT_DLGLOBAL RTLD_GLOBAL
11269#else
11270# ifdef DL_GLOBAL
11271# define LT_DLGLOBAL DL_GLOBAL
11272# else
11273# define LT_DLGLOBAL 0
11274# endif
11275#endif
11276
11277/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11278 find out it does not work in some platform. */
11279#ifndef LT_DLLAZY_OR_NOW
11280# ifdef RTLD_LAZY
11281# define LT_DLLAZY_OR_NOW RTLD_LAZY
11282# else
11283# ifdef DL_LAZY
11284# define LT_DLLAZY_OR_NOW DL_LAZY
11285# else
11286# ifdef RTLD_NOW
11287# define LT_DLLAZY_OR_NOW RTLD_NOW
11288# else
11289# ifdef DL_NOW
11290# define LT_DLLAZY_OR_NOW DL_NOW
11291# else
11292# define LT_DLLAZY_OR_NOW 0
11293# endif
11294# endif
11295# endif
11296# endif
11297#endif
11298
11299/* When -fvisbility=hidden is used, assume the code has been annotated
11300 correspondingly for the symbols needed. */
11301#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11302int fnord () __attribute__((visibility("default")));
11303#endif
11304
11305int fnord () { return 42; }
11306int main ()
11307{
11308 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11309 int status = $lt_dlunknown;
11310
11311 if (self)
11312 {
11313 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11314 else
11315 {
11316 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11317 else puts (dlerror ());
11318 }
11319 /* dlclose (self); */
11320 }
11321 else
11322 puts (dlerror ());
11323
11324 return status;
11325}
11326_LT_EOF
11327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11328 (eval $ac_link) 2>&5
11329 ac_status=$?
11330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11331 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11332 (./conftest; exit; ) >&5 2>/dev/null
11333 lt_status=$?
11334 case x$lt_status in
11335 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11336 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11337 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11338 esac
11339 else :
11340 # compilation failed
11341 lt_cv_dlopen_self=no
11342 fi
11343fi
11344rm -fr conftest*
11345
11346
11347fi
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11349$as_echo "$lt_cv_dlopen_self" >&6; }
11350
11351 if test "x$lt_cv_dlopen_self" = xyes; then
11352 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11354$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11355if ${lt_cv_dlopen_self_static+:} false; then :
11356 $as_echo_n "(cached) " >&6
11357else
11358 if test "$cross_compiling" = yes; then :
11359 lt_cv_dlopen_self_static=cross
11360else
11361 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11362 lt_status=$lt_dlunknown
11363 cat > conftest.$ac_ext <<_LT_EOF
11364#line $LINENO "configure"
11365#include "confdefs.h"
11366
11367#if HAVE_DLFCN_H
11368#include <dlfcn.h>
11369#endif
11370
11371#include <stdio.h>
11372
11373#ifdef RTLD_GLOBAL
11374# define LT_DLGLOBAL RTLD_GLOBAL
11375#else
11376# ifdef DL_GLOBAL
11377# define LT_DLGLOBAL DL_GLOBAL
11378# else
11379# define LT_DLGLOBAL 0
11380# endif
11381#endif
11382
11383/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11384 find out it does not work in some platform. */
11385#ifndef LT_DLLAZY_OR_NOW
11386# ifdef RTLD_LAZY
11387# define LT_DLLAZY_OR_NOW RTLD_LAZY
11388# else
11389# ifdef DL_LAZY
11390# define LT_DLLAZY_OR_NOW DL_LAZY
11391# else
11392# ifdef RTLD_NOW
11393# define LT_DLLAZY_OR_NOW RTLD_NOW
11394# else
11395# ifdef DL_NOW
11396# define LT_DLLAZY_OR_NOW DL_NOW
11397# else
11398# define LT_DLLAZY_OR_NOW 0
11399# endif
11400# endif
11401# endif
11402# endif
11403#endif
11404
11405/* When -fvisbility=hidden is used, assume the code has been annotated
11406 correspondingly for the symbols needed. */
11407#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11408int fnord () __attribute__((visibility("default")));
11409#endif
11410
11411int fnord () { return 42; }
11412int main ()
11413{
11414 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11415 int status = $lt_dlunknown;
11416
11417 if (self)
11418 {
11419 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11420 else
11421 {
11422 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11423 else puts (dlerror ());
11424 }
11425 /* dlclose (self); */
11426 }
11427 else
11428 puts (dlerror ());
11429
11430 return status;
11431}
11432_LT_EOF
11433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11434 (eval $ac_link) 2>&5
11435 ac_status=$?
11436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11437 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11438 (./conftest; exit; ) >&5 2>/dev/null
11439 lt_status=$?
11440 case x$lt_status in
11441 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11442 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11443 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11444 esac
11445 else :
11446 # compilation failed
11447 lt_cv_dlopen_self_static=no
11448 fi
11449fi
11450rm -fr conftest*
11451
11452
11453fi
11454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11455$as_echo "$lt_cv_dlopen_self_static" >&6; }
11456 fi
11457
11458 CPPFLAGS="$save_CPPFLAGS"
11459 LDFLAGS="$save_LDFLAGS"
11460 LIBS="$save_LIBS"
11461 ;;
11462 esac
11463
11464 case $lt_cv_dlopen_self in
11465 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11466 *) enable_dlopen_self=unknown ;;
11467 esac
11468
11469 case $lt_cv_dlopen_self_static in
11470 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11471 *) enable_dlopen_self_static=unknown ;;
11472 esac
11473fi
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491striplib=
11492old_striplib=
11493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11494$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11495if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11496 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11497 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11499$as_echo "yes" >&6; }
11500else
11501# FIXME - insert some real tests, host_os isn't really good enough
11502 case $host_os in
11503 darwin*)
11504 if test -n "$STRIP" ; then
11505 striplib="$STRIP -x"
11506 old_striplib="$STRIP -S"
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11508$as_echo "yes" >&6; }
11509 else
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11511$as_echo "no" >&6; }
11512 fi
11513 ;;
11514 *)
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11516$as_echo "no" >&6; }
11517 ;;
11518 esac
11519fi
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532 # Report which library types will actually be built
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11534$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11536$as_echo "$can_build_shared" >&6; }
11537
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11539$as_echo_n "checking whether to build shared libraries... " >&6; }
11540 test "$can_build_shared" = "no" && enable_shared=no
11541
11542 # On AIX, shared libraries and static libraries use the same namespace, and
11543 # are all built from PIC.
11544 case $host_os in
11545 aix3*)
11546 test "$enable_shared" = yes && enable_static=no
11547 if test -n "$RANLIB"; then
11548 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11549 postinstall_cmds='$RANLIB $lib'
11550 fi
11551 ;;
11552
11553 aix[4-9]*)
11554 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11555 test "$enable_shared" = yes && enable_static=no
11556 fi
11557 ;;
11558 esac
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11560$as_echo "$enable_shared" >&6; }
11561
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11563$as_echo_n "checking whether to build static libraries... " >&6; }
11564 # Make sure either enable_shared or enable_static is yes.
11565 test "$enable_shared" = yes || enable_static=yes
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11567$as_echo "$enable_static" >&6; }
11568
11569
11570
11571
11572fi
11573ac_ext=c
11574ac_cpp='$CPP $CPPFLAGS'
11575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11577ac_compiler_gnu=$ac_cv_c_compiler_gnu
11578
11579CC="$lt_save_CC"
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595 ac_config_commands="$ac_config_commands libtool"
11596
11597
11598
11599
11600# Only expand once:
11601
11602
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080011603
11604
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11606$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11607if ${ac_cv_prog_cc_c99+:} false; then :
11608 $as_echo_n "(cached) " >&6
11609else
11610 ac_cv_prog_cc_c99=no
11611ac_save_CC=$CC
11612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613/* end confdefs.h. */
11614#include <stdarg.h>
11615#include <stdbool.h>
11616#include <stdlib.h>
11617#include <wchar.h>
11618#include <stdio.h>
11619
11620// Check varargs macros. These examples are taken from C99 6.10.3.5.
11621#define debug(...) fprintf (stderr, __VA_ARGS__)
11622#define showlist(...) puts (#__VA_ARGS__)
11623#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11624static void
11625test_varargs_macros (void)
11626{
11627 int x = 1234;
11628 int y = 5678;
11629 debug ("Flag");
11630 debug ("X = %d\n", x);
11631 showlist (The first, second, and third items.);
11632 report (x>y, "x is %d but y is %d", x, y);
11633}
11634
11635// Check long long types.
11636#define BIG64 18446744073709551615ull
11637#define BIG32 4294967295ul
11638#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11639#if !BIG_OK
11640 your preprocessor is broken;
11641#endif
11642#if BIG_OK
11643#else
11644 your preprocessor is broken;
11645#endif
11646static long long int bignum = -9223372036854775807LL;
11647static unsigned long long int ubignum = BIG64;
11648
11649struct incomplete_array
11650{
11651 int datasize;
11652 double data[];
11653};
11654
11655struct named_init {
11656 int number;
11657 const wchar_t *name;
11658 double average;
11659};
11660
11661typedef const char *ccp;
11662
11663static inline int
11664test_restrict (ccp restrict text)
11665{
11666 // See if C++-style comments work.
11667 // Iterate through items via the restricted pointer.
11668 // Also check for declarations in for loops.
11669 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11670 continue;
11671 return 0;
11672}
11673
11674// Check varargs and va_copy.
11675static void
11676test_varargs (const char *format, ...)
11677{
11678 va_list args;
11679 va_start (args, format);
11680 va_list args_copy;
11681 va_copy (args_copy, args);
11682
11683 const char *str;
11684 int number;
11685 float fnumber;
11686
11687 while (*format)
11688 {
11689 switch (*format++)
11690 {
11691 case 's': // string
11692 str = va_arg (args_copy, const char *);
11693 break;
11694 case 'd': // int
11695 number = va_arg (args_copy, int);
11696 break;
11697 case 'f': // float
11698 fnumber = va_arg (args_copy, double);
11699 break;
11700 default:
11701 break;
11702 }
11703 }
11704 va_end (args_copy);
11705 va_end (args);
11706}
11707
11708int
11709main ()
11710{
11711
11712 // Check bool.
11713 _Bool success = false;
11714
11715 // Check restrict.
11716 if (test_restrict ("String literal") == 0)
11717 success = true;
11718 char *restrict newvar = "Another string";
11719
11720 // Check varargs.
11721 test_varargs ("s, d' f .", "string", 65, 34.234);
11722 test_varargs_macros ();
11723
11724 // Check flexible array members.
11725 struct incomplete_array *ia =
11726 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11727 ia->datasize = 10;
11728 for (int i = 0; i < ia->datasize; ++i)
11729 ia->data[i] = i * 1.234;
11730
11731 // Check named initializers.
11732 struct named_init ni = {
11733 .number = 34,
11734 .name = L"Test wide string",
11735 .average = 543.34343,
11736 };
11737
11738 ni.number = 58;
11739
11740 int dynamic_array[ni.number];
11741 dynamic_array[ni.number - 1] = 543;
11742
11743 // work around unused variable warnings
11744 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11745 || dynamic_array[ni.number - 1] != 543);
11746
11747 ;
11748 return 0;
11749}
11750_ACEOF
flimc91ee5b2016-01-26 14:33:44 +010011751for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080011752do
11753 CC="$ac_save_CC $ac_arg"
11754 if ac_fn_c_try_compile "$LINENO"; then :
11755 ac_cv_prog_cc_c99=$ac_arg
11756fi
11757rm -f core conftest.err conftest.$ac_objext
11758 test "x$ac_cv_prog_cc_c99" != "xno" && break
11759done
11760rm -f conftest.$ac_ext
11761CC=$ac_save_CC
11762
11763fi
11764# AC_CACHE_VAL
11765case "x$ac_cv_prog_cc_c99" in
11766 x)
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11768$as_echo "none needed" >&6; } ;;
11769 xno)
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11771$as_echo "unsupported" >&6; } ;;
11772 *)
11773 CC="$CC $ac_cv_prog_cc_c99"
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11775$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11776esac
11777if test "x$ac_cv_prog_cc_c99" != xno; then :
11778
11779fi
11780
11781
11782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11783$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11784if ${ac_cv_c_const+:} false; then :
11785 $as_echo_n "(cached) " >&6
11786else
11787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788/* end confdefs.h. */
11789
11790int
11791main ()
11792{
flimc91ee5b2016-01-26 14:33:44 +010011793
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080011794#ifndef __cplusplus
flimc91ee5b2016-01-26 14:33:44 +010011795 /* Ultrix mips cc rejects this sort of thing. */
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080011796 typedef int charset[2];
flimc91ee5b2016-01-26 14:33:44 +010011797 const charset cs = { 0, 0 };
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080011798 /* SunOS 4.1.1 cc rejects this. */
11799 char const *const *pcpcc;
11800 char **ppc;
11801 /* NEC SVR4.0.2 mips cc rejects this. */
11802 struct point {int x, y;};
11803 static struct point const zero = {0,0};
11804 /* AIX XL C 1.02.0.0 rejects this.
11805 It does not let you subtract one const X* pointer from another in
11806 an arm of an if-expression whose if-part is not a constant
11807 expression */
11808 const char *g = "string";
11809 pcpcc = &g + (g ? g-g : 0);
11810 /* HPUX 7.0 cc rejects these. */
11811 ++pcpcc;
11812 ppc = (char**) pcpcc;
11813 pcpcc = (char const *const *) ppc;
flimc91ee5b2016-01-26 14:33:44 +010011814 { /* SCO 3.2v4 cc rejects this sort of thing. */
11815 char tx;
11816 char *t = &tx;
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080011817 char const *s = 0 ? (char *) 0 : (char const *) 0;
11818
11819 *t++ = 0;
11820 if (s) return 0;
11821 }
11822 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11823 int x[] = {25, 17};
11824 const int *foo = &x[0];
11825 ++foo;
11826 }
11827 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11828 typedef const int *iptr;
11829 iptr p = 0;
11830 ++p;
11831 }
flimc91ee5b2016-01-26 14:33:44 +010011832 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080011833 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
flimc91ee5b2016-01-26 14:33:44 +010011834 struct s { int j; const int *ap[3]; } bx;
11835 struct s *b = &bx; b->j = 5;
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080011836 }
11837 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11838 const int foo = 10;
11839 if (!foo) return 0;
11840 }
11841 return !cs[0] && !zero.x;
11842#endif
11843
11844 ;
11845 return 0;
11846}
11847_ACEOF
11848if ac_fn_c_try_compile "$LINENO"; then :
11849 ac_cv_c_const=yes
11850else
11851 ac_cv_c_const=no
11852fi
11853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854fi
11855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11856$as_echo "$ac_cv_c_const" >&6; }
11857if test $ac_cv_c_const = no; then
11858
11859$as_echo "#define const /**/" >>confdefs.h
11860
11861fi
11862
11863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11864$as_echo_n "checking for inline... " >&6; }
11865if ${ac_cv_c_inline+:} false; then :
11866 $as_echo_n "(cached) " >&6
11867else
11868 ac_cv_c_inline=no
11869for ac_kw in inline __inline__ __inline; do
11870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11871/* end confdefs.h. */
11872#ifndef __cplusplus
11873typedef int foo_t;
11874static $ac_kw foo_t static_foo () {return 0; }
11875$ac_kw foo_t foo () {return 0; }
11876#endif
11877
11878_ACEOF
11879if ac_fn_c_try_compile "$LINENO"; then :
11880 ac_cv_c_inline=$ac_kw
11881fi
11882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 test "$ac_cv_c_inline" != no && break
11884done
11885
11886fi
11887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11888$as_echo "$ac_cv_c_inline" >&6; }
11889
11890case $ac_cv_c_inline in
11891 inline | yes) ;;
11892 *)
11893 case $ac_cv_c_inline in
11894 no) ac_val=;;
11895 *) ac_val=$ac_cv_c_inline;;
11896 esac
11897 cat >>confdefs.h <<_ACEOF
11898#ifndef __cplusplus
11899#define inline $ac_val
11900#endif
11901_ACEOF
11902 ;;
11903esac
11904
11905
11906# By default we simply use the C compiler to build assembly code.
11907
11908test "${CCAS+set}" = set || CCAS=$CC
11909test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11910
11911
11912
11913depcc="$CCAS" am_compiler_list=
11914
11915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11916$as_echo_n "checking dependency style of $depcc... " >&6; }
11917if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
11918 $as_echo_n "(cached) " >&6
11919else
11920 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11921 # We make a subdir and do the tests there. Otherwise we can end up
11922 # making bogus files that we don't know about and never remove. For
11923 # instance it was reported that on HP-UX the gcc test will end up
flimc91ee5b2016-01-26 14:33:44 +010011924 # making a dummy file named 'D' -- because '-MD' means "put the output
11925 # in D".
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080011926 rm -rf conftest.dir
11927 mkdir conftest.dir
11928 # Copy depcomp to subdir because otherwise we won't find it if we're
11929 # using a relative directory.
11930 cp "$am_depcomp" conftest.dir
11931 cd conftest.dir
11932 # We will build objects and dependencies in a subdirectory because
11933 # it helps to detect inapplicable dependency modes. For instance
11934 # both Tru64's cc and ICC support -MD to output dependencies as a
11935 # side effect of compilation, but ICC will put the dependencies in
11936 # the current directory while Tru64 will put them in the object
11937 # directory.
11938 mkdir sub
11939
11940 am_cv_CCAS_dependencies_compiler_type=none
11941 if test "$am_compiler_list" = ""; then
11942 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11943 fi
11944 am__universal=false
11945
11946
11947 for depmode in $am_compiler_list; do
11948 # Setup a source with many dependencies, because some compilers
11949 # like to wrap large dependency lists on column 80 (with \), and
11950 # we should not choose a depcomp mode which is confused by this.
11951 #
11952 # We need to recreate these files for each test, as the compiler may
11953 # overwrite some of them when testing with obscure command lines.
11954 # This happens at least with the AIX C compiler.
11955 : > sub/conftest.c
11956 for i in 1 2 3 4 5 6; do
11957 echo '#include "conftst'$i'.h"' >> sub/conftest.c
flimc91ee5b2016-01-26 14:33:44 +010011958 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11959 # Solaris 10 /bin/sh.
11960 echo '/* dummy */' > sub/conftst$i.h
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080011961 done
11962 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11963
flimc91ee5b2016-01-26 14:33:44 +010011964 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080011965 # mode. It turns out that the SunPro C++ compiler does not properly
flimc91ee5b2016-01-26 14:33:44 +010011966 # handle '-M -o', and we need to detect this. Also, some Intel
11967 # versions had trouble with output in subdirs.
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080011968 am__obj=sub/conftest.${OBJEXT-o}
11969 am__minus_obj="-o $am__obj"
11970 case $depmode in
11971 gcc)
11972 # This depmode causes a compiler race in universal mode.
11973 test "$am__universal" = false || continue
11974 ;;
11975 nosideeffect)
flimc91ee5b2016-01-26 14:33:44 +010011976 # After this tag, mechanisms are not by side-effect, so they'll
11977 # only be used when explicitly requested.
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080011978 if test "x$enable_dependency_tracking" = xyes; then
11979 continue
11980 else
11981 break
11982 fi
11983 ;;
11984 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
flimc91ee5b2016-01-26 14:33:44 +010011985 # This compiler won't grok '-c -o', but also, the minuso test has
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080011986 # not run yet. These depmodes are late enough in the game, and
11987 # so weak that their functioning should not be impacted.
11988 am__obj=conftest.${OBJEXT-o}
11989 am__minus_obj=
11990 ;;
11991 none) break ;;
11992 esac
11993 if depmode=$depmode \
11994 source=sub/conftest.c object=$am__obj \
11995 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11996 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11997 >/dev/null 2>conftest.err &&
11998 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11999 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12000 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12001 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12002 # icc doesn't choke on unknown options, it will just issue warnings
12003 # or remarks (even with -Werror). So we grep stderr for any message
12004 # that says an option was ignored or not supported.
12005 # When given -MP, icc 7.0 and 7.1 complain thusly:
12006 # icc: Command line warning: ignoring option '-M'; no argument required
12007 # The diagnosis changed in icc 8.0:
12008 # icc: Command line remark: option '-MP' not supported
12009 if (grep 'ignoring option' conftest.err ||
12010 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12011 am_cv_CCAS_dependencies_compiler_type=$depmode
12012 break
12013 fi
12014 fi
12015 done
12016
12017 cd ..
12018 rm -rf conftest.dir
12019else
12020 am_cv_CCAS_dependencies_compiler_type=none
12021fi
12022
12023fi
12024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12025$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12026CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
12027
12028 if
12029 test "x$enable_dependency_tracking" != xno \
12030 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
12031 am__fastdepCCAS_TRUE=
12032 am__fastdepCCAS_FALSE='#'
12033else
12034 am__fastdepCCAS_TRUE='#'
12035 am__fastdepCCAS_FALSE=
12036fi
12037
12038
12039
12040
12041$as_echo "#define OPUS_BUILD /**/" >>confdefs.h
12042
12043
12044#Use a hacked up version of autoconf's AC_C_RESTRICT because it's not
12045#strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3)
12046#Note: Both this and the test for variable-size arrays below are also
12047# done by AC_PROG_CC_C99, but not thoroughly enough apparently.
12048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12049$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12050if ${ac_cv_c_restrict+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052else
12053 ac_cv_c_restrict=no
12054 # The order here caters to the fact that C++ does not require restrict.
12055 for ac_kw in __restrict __restrict__ _Restrict restrict; do
12056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057/* end confdefs.h. */
12058typedef int * int_ptr;
12059 int foo (int_ptr $ac_kw ip, int * $ac_kw baz[]) {
12060 return ip[0];
12061 }
12062int
12063main ()
12064{
12065int s[1];
12066 int * $ac_kw t = s;
12067 t[0] = 0;
12068 return foo(t, (void *)0)
12069 ;
12070 return 0;
12071}
12072_ACEOF
12073if ac_fn_c_try_compile "$LINENO"; then :
12074 ac_cv_c_restrict=$ac_kw
12075fi
12076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12077 test "$ac_cv_c_restrict" != no && break
12078 done
12079
12080fi
12081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12082$as_echo "$ac_cv_c_restrict" >&6; }
12083
12084
12085
12086case $ac_cv_c_restrict in
12087 restrict) ;;
12088 no) $as_echo "#define restrict /**/" >>confdefs.h
12089 ;;
12090 *) cat >>confdefs.h <<_ACEOF
12091#define restrict $ac_cv_c_restrict
12092_ACEOF
12093 ;;
12094esac
12095
12096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variable-size arrays" >&5
12097$as_echo_n "checking for C99 variable-size arrays... " >&6; }
12098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099/* end confdefs.h. */
12100
12101int
12102main ()
12103{
12104static int x; char a[++x]; a[sizeof a - 1] = 0; int N; return a[0];
12105 ;
12106 return 0;
12107}
12108_ACEOF
12109if ac_fn_c_try_compile "$LINENO"; then :
12110 has_var_arrays=yes
12111 use_alloca="no (using var arrays)"
12112
12113$as_echo "#define VAR_ARRAYS 1" >>confdefs.h
12114
12115
12116else
12117
12118 has_var_arrays=no
12119
12120fi
12121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_var_arrays" >&5
12123$as_echo "$has_var_arrays" >&6; }
12124
12125if test "$has_var_arrays" = "no"; then :
12126
12127 for ac_header in alloca.h
12128do :
12129 ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
12130if test "x$ac_cv_header_alloca_h" = xyes; then :
12131 cat >>confdefs.h <<_ACEOF
12132#define HAVE_ALLOCA_H 1
12133_ACEOF
12134
12135fi
12136
12137done
12138
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12140$as_echo_n "checking for alloca... " >&6; }
12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142/* end confdefs.h. */
12143#include <alloca.h>
12144int
12145main ()
12146{
12147int foo=10; int *array = alloca(foo);
12148 ;
12149 return 0;
12150}
12151_ACEOF
12152if ac_fn_c_try_compile "$LINENO"; then :
12153 use_alloca=yes;
12154
12155$as_echo "#define USE_ALLOCA /**/" >>confdefs.h
12156
12157
12158else
12159
12160 use_alloca=no
12161
12162fi
12163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_alloca" >&5
12165$as_echo "$use_alloca" >&6; }
12166
12167fi
12168
12169LIBM=
12170case $host in
12171*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
12172 # These system don't have libm, or don't need it
12173 ;;
12174*-ncr-sysv4.3*)
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
12176$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
12177if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
12178 $as_echo_n "(cached) " >&6
12179else
12180 ac_check_lib_save_LIBS=$LIBS
12181LIBS="-lmw $LIBS"
12182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183/* end confdefs.h. */
12184
12185/* Override any GCC internal prototype to avoid an error.
12186 Use char because int might match the return type of a GCC
12187 builtin and then its argument prototype would still apply. */
12188#ifdef __cplusplus
12189extern "C"
12190#endif
12191char _mwvalidcheckl ();
12192int
12193main ()
12194{
12195return _mwvalidcheckl ();
12196 ;
12197 return 0;
12198}
12199_ACEOF
12200if ac_fn_c_try_link "$LINENO"; then :
12201 ac_cv_lib_mw__mwvalidcheckl=yes
12202else
12203 ac_cv_lib_mw__mwvalidcheckl=no
12204fi
12205rm -f core conftest.err conftest.$ac_objext \
12206 conftest$ac_exeext conftest.$ac_ext
12207LIBS=$ac_check_lib_save_LIBS
12208fi
12209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12210$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
12211if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
12212 LIBM="-lmw"
12213fi
12214
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12216$as_echo_n "checking for cos in -lm... " >&6; }
12217if ${ac_cv_lib_m_cos+:} false; then :
12218 $as_echo_n "(cached) " >&6
12219else
12220 ac_check_lib_save_LIBS=$LIBS
12221LIBS="-lm $LIBS"
12222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223/* end confdefs.h. */
12224
12225/* Override any GCC internal prototype to avoid an error.
12226 Use char because int might match the return type of a GCC
12227 builtin and then its argument prototype would still apply. */
12228#ifdef __cplusplus
12229extern "C"
12230#endif
12231char cos ();
12232int
12233main ()
12234{
12235return cos ();
12236 ;
12237 return 0;
12238}
12239_ACEOF
12240if ac_fn_c_try_link "$LINENO"; then :
12241 ac_cv_lib_m_cos=yes
12242else
12243 ac_cv_lib_m_cos=no
12244fi
12245rm -f core conftest.err conftest.$ac_objext \
12246 conftest$ac_exeext conftest.$ac_ext
12247LIBS=$ac_check_lib_save_LIBS
12248fi
12249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12250$as_echo "$ac_cv_lib_m_cos" >&6; }
12251if test "x$ac_cv_lib_m_cos" = xyes; then :
12252 LIBM="$LIBM -lm"
12253fi
12254
12255 ;;
12256*)
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12258$as_echo_n "checking for cos in -lm... " >&6; }
12259if ${ac_cv_lib_m_cos+:} false; then :
12260 $as_echo_n "(cached) " >&6
12261else
12262 ac_check_lib_save_LIBS=$LIBS
12263LIBS="-lm $LIBS"
12264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265/* end confdefs.h. */
12266
12267/* Override any GCC internal prototype to avoid an error.
12268 Use char because int might match the return type of a GCC
12269 builtin and then its argument prototype would still apply. */
12270#ifdef __cplusplus
12271extern "C"
12272#endif
12273char cos ();
12274int
12275main ()
12276{
12277return cos ();
12278 ;
12279 return 0;
12280}
12281_ACEOF
12282if ac_fn_c_try_link "$LINENO"; then :
12283 ac_cv_lib_m_cos=yes
12284else
12285 ac_cv_lib_m_cos=no
12286fi
12287rm -f core conftest.err conftest.$ac_objext \
12288 conftest$ac_exeext conftest.$ac_ext
12289LIBS=$ac_check_lib_save_LIBS
12290fi
12291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12292$as_echo "$ac_cv_lib_m_cos" >&6; }
12293if test "x$ac_cv_lib_m_cos" = xyes; then :
12294 LIBM="-lm"
12295fi
12296
12297 ;;
12298esac
12299
12300
12301
12302# Check whether --enable-fixed-point was given.
12303if test "${enable_fixed_point+set}" = set; then :
12304 enableval=$enable_fixed_point;
12305else
12306 enable_fixed_point=no
12307fi
12308
12309
12310if test "$enable_fixed_point" = "yes"; then :
12311
12312 enable_float="no"
12313
12314$as_echo "#define FIXED_POINT 1" >>confdefs.h
12315
12316 PC_BUILD="fixed-point"
12317
12318else
12319
12320 enable_float="yes";
12321 PC_BUILD="floating-point"
12322
12323fi
12324
12325 if test "$enable_fixed_point" = "yes"; then
12326 FIXED_POINT_TRUE=
12327 FIXED_POINT_FALSE='#'
12328else
12329 FIXED_POINT_TRUE='#'
12330 FIXED_POINT_FALSE=
12331fi
12332
12333
12334# Check whether --enable-fixed-point-debug was given.
12335if test "${enable_fixed_point_debug+set}" = set; then :
12336 enableval=$enable_fixed_point_debug;
12337else
12338 enable_fixed_point_debug=no
12339fi
12340
12341
12342if test "$enable_fixed_point_debug" = "yes"; then :
12343
12344
12345$as_echo "#define FIXED_DEBUG 1" >>confdefs.h
12346
12347
12348fi
12349
12350# Check whether --enable-float_api was given.
12351if test "${enable_float_api+set}" = set; then :
12352 enableval=$enable_float_api;
12353else
12354 enable_float_api=yes
12355fi
12356
12357
12358 if test "$enable_float_api" = "no"; then
12359 DISABLE_FLOAT_API_TRUE=
12360 DISABLE_FLOAT_API_FALSE='#'
12361else
12362 DISABLE_FLOAT_API_TRUE='#'
12363 DISABLE_FLOAT_API_FALSE=
12364fi
12365
12366
12367if test "$enable_float_api" = "no"; then :
12368
12369
12370$as_echo "#define DISABLE_FLOAT_API 1" >>confdefs.h
12371
12372
12373fi
12374
12375# Check whether --enable-custom-modes was given.
12376if test "${enable_custom_modes+set}" = set; then :
12377 enableval=$enable_custom_modes;
12378else
12379 enable_custom_modes=no
12380fi
12381
12382
12383if test "$enable_custom_modes" = "yes"; then :
12384
12385
12386$as_echo "#define CUSTOM_MODES 1" >>confdefs.h
12387
12388 PC_BUILD="$PC_BUILD, custom modes"
12389
12390fi
12391
12392 if test "$enable_custom_modes" = "yes"; then
12393 CUSTOM_MODES_TRUE=
12394 CUSTOM_MODES_FALSE='#'
12395else
12396 CUSTOM_MODES_TRUE='#'
12397 CUSTOM_MODES_FALSE=
12398fi
12399
12400
12401has_float_approx=no
12402#case "$host_cpu" in
12403#i[[3456]]86 | x86_64 | powerpc64 | powerpc32 | ia64)
12404# has_float_approx=yes
12405# ;;
12406#esac
12407
12408# Check whether --enable-float-approx was given.
12409if test "${enable_float_approx+set}" = set; then :
12410 enableval=$enable_float_approx; if test "$enable_float_approx" = "yes"; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Floating point approximations are not supported on all platforms." >&5
12412$as_echo "$as_me: WARNING: Floating point approximations are not supported on all platforms." >&2;}
12413 fi
12414
12415else
12416 enable_float_approx=$has_float_approx
12417fi
12418
12419
12420if test "$enable_float_approx" = "yes"; then :
12421
12422
12423$as_echo "#define FLOAT_APPROX 1" >>confdefs.h
12424
12425
12426fi
12427
12428# Check whether --enable-asm was given.
12429if test "${enable_asm+set}" = set; then :
12430 enableval=$enable_asm;
12431else
12432 enable_asm=yes
12433fi
12434
12435
12436# Check whether --enable-rtcd was given.
12437if test "${enable_rtcd+set}" = set; then :
12438 enableval=$enable_rtcd;
12439else
12440 enable_rtcd=yes
12441fi
12442
12443
flimc91ee5b2016-01-26 14:33:44 +010012444# Check whether --enable-intrinsics was given.
12445if test "${enable_intrinsics+set}" = set; then :
12446 enableval=$enable_intrinsics;
12447else
12448 enable_intrinsics=no
12449fi
12450
12451
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080012452rtcd_support=no
12453cpu_arm=no
12454
12455if test x"${enable_asm}" = x"yes"; then :
12456
flimc91ee5b2016-01-26 14:33:44 +010012457 inline_optimization="No inline ASM for your platform, please send patches"
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080012458 case $host_cpu in
12459 arm*)
12460 if test "$enable_float" != "yes"; then :
12461
12462 cpu_arm=yes
12463
12464$as_echo "#define OPUS_ARM_ASM /**/" >>confdefs.h
12465
12466
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports gcc-style inline assembly" >&5
12468$as_echo_n "checking if compiler supports gcc-style inline assembly... " >&6; }
12469
12470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12471/* end confdefs.h. */
12472
12473int
12474main ()
12475{
12476
12477#ifdef __GNUC_MINOR__
12478#if (__GNUC__ * 1000 + __GNUC_MINOR__) < 3004
12479#error GCC before 3.4 has critical bugs compiling inline assembly
12480#endif
12481#endif
12482__asm__ (""::)
12483 ;
12484 return 0;
12485}
12486_ACEOF
12487if ac_fn_c_try_compile "$LINENO"; then :
12488 flag_ok=yes
12489else
12490 flag_ok=no
12491fi
12492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12493
12494 if test "X$flag_ok" = Xyes ; then
12495 inline_optimization="ARM"
12496 true
12497 else
12498 inline_optimization="disabled"
12499
12500 true
12501 fi
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
12503$as_echo "$flag_ok" >&6; }
12504
12505
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports EDSP instructions on ARM" >&5
12507$as_echo_n "checking if assembler supports EDSP instructions on ARM... " >&6; }
12508
12509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510/* end confdefs.h. */
12511
12512int
12513main ()
12514{
12515__asm__("qadd r3,r3,r3")
12516 ;
12517 return 0;
12518}
12519_ACEOF
12520if ac_fn_c_try_compile "$LINENO"; then :
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12522$as_echo "yes" >&6; }
12523 OPUS_ARM_INLINE_EDSP=1
12524else
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526$as_echo "no" >&6; }
12527 OPUS_ARM_INLINE_EDSP=0
12528fi
12529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12530
12531
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports ARMv6 media instructions on ARM" >&5
12533$as_echo_n "checking if assembler supports ARMv6 media instructions on ARM... " >&6; }
12534
12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536/* end confdefs.h. */
12537
12538int
12539main ()
12540{
12541__asm__("shadd8 r3,r3,r3")
12542 ;
12543 return 0;
12544}
12545_ACEOF
12546if ac_fn_c_try_compile "$LINENO"; then :
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12548$as_echo "yes" >&6; }
12549 OPUS_ARM_INLINE_MEDIA=1
12550else
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552$as_echo "no" >&6; }
12553 OPUS_ARM_INLINE_MEDIA=0
12554fi
12555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12556
12557
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports NEON instructions on ARM" >&5
12559$as_echo_n "checking if assembler supports NEON instructions on ARM... " >&6; }
12560
12561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562/* end confdefs.h. */
12563
12564int
12565main ()
12566{
12567__asm__("vorr d0,d0,d0")
12568 ;
12569 return 0;
12570}
12571_ACEOF
12572if ac_fn_c_try_compile "$LINENO"; then :
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12574$as_echo "yes" >&6; }
12575 OPUS_ARM_INLINE_NEON=1
12576else
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578$as_echo "no" >&6; }
12579 OPUS_ARM_INLINE_NEON=0
12580fi
12581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12582
12583 if test x"$inline_optimization" = x"ARM"; then :
12584
12585 if true; then
12586 OPUS_ARM_INLINE_ASM_TRUE=
12587 OPUS_ARM_INLINE_ASM_FALSE='#'
12588else
12589 OPUS_ARM_INLINE_ASM_TRUE='#'
12590 OPUS_ARM_INLINE_ASM_FALSE=
12591fi
12592
12593
12594$as_echo "#define OPUS_ARM_INLINE_ASM 1" >>confdefs.h
12595
12596 if test x"$OPUS_ARM_INLINE_EDSP" = x"1"; then :
12597
12598
12599$as_echo "#define OPUS_ARM_INLINE_EDSP 1" >>confdefs.h
12600
12601 inline_optimization="$inline_optimization (EDSP)"
12602
12603fi
12604 if test x"$OPUS_ARM_INLINE_MEDIA" = x"1"; then :
12605
12606
12607$as_echo "#define OPUS_ARM_INLINE_MEDIA 1" >>confdefs.h
12608
12609 inline_optimization="$inline_optimization (Media)"
12610
12611fi
12612 if test x"$OPUS_ARM_INLINE_NEON" = x"1"; then :
12613
12614
12615$as_echo "#define OPUS_ARM_INLINE_NEON 1" >>confdefs.h
12616
12617 inline_optimization="$inline_optimization (NEON)"
12618
12619fi
12620
12621fi
12622 # Extract the first word of "perl", so it can be a program name with args.
12623set dummy perl; ac_word=$2
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12625$as_echo_n "checking for $ac_word... " >&6; }
12626if ${ac_cv_prog_HAVE_PERL+:} false; then :
12627 $as_echo_n "(cached) " >&6
12628else
12629 if test -n "$HAVE_PERL"; then
12630 ac_cv_prog_HAVE_PERL="$HAVE_PERL" # Let the user override the test.
12631else
12632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12633for as_dir in $PATH
12634do
12635 IFS=$as_save_IFS
12636 test -z "$as_dir" && as_dir=.
12637 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +010012638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080012639 ac_cv_prog_HAVE_PERL="yes"
12640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12641 break 2
12642 fi
12643done
12644 done
12645IFS=$as_save_IFS
12646
12647 test -z "$ac_cv_prog_HAVE_PERL" && ac_cv_prog_HAVE_PERL="no"
12648fi
12649fi
12650HAVE_PERL=$ac_cv_prog_HAVE_PERL
12651if test -n "$HAVE_PERL"; then
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PERL" >&5
12653$as_echo "$HAVE_PERL" >&6; }
12654else
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656$as_echo "no" >&6; }
12657fi
12658
12659
12660 if test x"$HAVE_PERL" = x"yes"; then :
12661
12662 if true; then
12663 OPUS_ARM_EXTERNAL_ASM_TRUE=
12664 OPUS_ARM_EXTERNAL_ASM_FALSE='#'
12665else
12666 OPUS_ARM_EXTERNAL_ASM_TRUE='#'
12667 OPUS_ARM_EXTERNAL_ASM_FALSE=
12668fi
12669
12670 asm_optimization="ARM"
12671 if test x"$OPUS_ARM_INLINE_EDSP" = x"1"; then :
12672
12673 OPUS_ARM_PRESUME_EDSP=1
12674 OPUS_ARM_MAY_HAVE_EDSP=1
12675
12676else
12677
12678 OPUS_ARM_PRESUME_EDSP=0
12679 OPUS_ARM_MAY_HAVE_EDSP=0
12680
12681fi
12682 if test x"$OPUS_ARM_INLINE_MEDIA" = x"1"; then :
12683
12684 OPUS_ARM_PRESUME_MEDIA=1
12685 OPUS_ARM_MAY_HAVE_MEDIA=1
12686
12687else
12688
12689 OPUS_ARM_PRESUME_MEDIA=0
12690 OPUS_ARM_MAY_HAVE_MEDIA=0
12691
12692fi
12693 if test x"$OPUS_ARM_INLINE_NEON" = x"1"; then :
12694
12695 OPUS_ARM_PRESUME_NEON=1
12696 OPUS_ARM_MAY_HAVE_NEON=1
12697
12698else
12699
12700 OPUS_ARM_PRESUME_NEON=0
12701 OPUS_ARM_MAY_HAVE_NEON=0
12702
12703fi
12704 if test x"$enable_rtcd" = x"yes"; then :
12705
12706 if test x"$OPUS_ARM_MAY_HAVE_EDSP" != x"1"; then :
12707
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable armv5e EDSP instructions..." >&5
12709$as_echo "$as_me: Trying to force-enable armv5e EDSP instructions..." >&6;}
12710
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports EDSP instructions on ARM" >&5
12712$as_echo_n "checking if assembler supports EDSP instructions on ARM... " >&6; }
12713
12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715/* end confdefs.h. */
12716
12717int
12718main ()
12719{
12720__asm__(".arch armv5te\n.object_arch armv4t\nqadd r3,r3,r3")
12721 ;
12722 return 0;
12723}
12724_ACEOF
12725if ac_fn_c_try_compile "$LINENO"; then :
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12727$as_echo "yes" >&6; }
12728 OPUS_ARM_MAY_HAVE_EDSP=1
12729else
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12731$as_echo "no" >&6; }
12732
12733fi
12734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12735
12736
12737fi
12738 if test x"$OPUS_ARM_MAY_HAVE_MEDIA" != x"1"; then :
12739
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable ARMv6 media instructions..." >&5
12741$as_echo "$as_me: Trying to force-enable ARMv6 media instructions..." >&6;}
12742
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports ARMv6 media instructions on ARM" >&5
12744$as_echo_n "checking if assembler supports ARMv6 media instructions on ARM... " >&6; }
12745
12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747/* end confdefs.h. */
12748
12749int
12750main ()
12751{
12752__asm__(".arch armv6\n.object_arch armv4t\nshadd8 r3,r3,r3")
12753 ;
12754 return 0;
12755}
12756_ACEOF
12757if ac_fn_c_try_compile "$LINENO"; then :
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12759$as_echo "yes" >&6; }
12760 OPUS_ARM_MAY_HAVE_MEDIA=1
12761else
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763$as_echo "no" >&6; }
12764
12765fi
12766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12767
12768
12769fi
12770 if test x"$OPUS_ARM_MAY_HAVE_NEON" != x"1"; then :
12771
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable NEON instructions..." >&5
12773$as_echo "$as_me: Trying to force-enable NEON instructions..." >&6;}
12774
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports NEON instructions on ARM" >&5
12776$as_echo_n "checking if assembler supports NEON instructions on ARM... " >&6; }
12777
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779/* end confdefs.h. */
12780
12781int
12782main ()
12783{
12784__asm__(".arch armv7-a\n.fpu neon\n.object_arch armv4t\nvorr d0,d0,d0")
12785 ;
12786 return 0;
12787}
12788_ACEOF
12789if ac_fn_c_try_compile "$LINENO"; then :
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12791$as_echo "yes" >&6; }
12792 OPUS_ARM_MAY_HAVE_NEON=1
12793else
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795$as_echo "no" >&6; }
12796
12797fi
12798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12799
12800
12801fi
12802
12803fi
12804 rtcd_support=
12805 if test x"$OPUS_ARM_MAY_HAVE_EDSP" = x"1"; then :
12806
12807
12808$as_echo "#define OPUS_ARM_MAY_HAVE_EDSP 1" >>confdefs.h
12809
12810 if test x"$OPUS_ARM_PRESUME_EDSP" = x"1"; then :
12811
12812
12813$as_echo "#define OPUS_ARM_PRESUME_EDSP 1" >>confdefs.h
12814
12815 asm_optimization="$asm_optimization (EDSP)"
12816
12817else
12818 rtcd_support="$rtcd_support (EDSP)"
12819
12820fi
12821
12822fi
12823
12824 if test x"$OPUS_ARM_MAY_HAVE_MEDIA" = x"1"; then :
12825
12826
12827$as_echo "#define OPUS_ARM_MAY_HAVE_MEDIA 1" >>confdefs.h
12828
12829 if test x"$OPUS_ARM_PRESUME_MEDIA" = x"1"; then :
12830
12831
12832$as_echo "#define OPUS_ARM_PRESUME_MEDIA 1" >>confdefs.h
12833
12834 asm_optimization="$asm_optimization (Media)"
12835
12836else
12837 rtcd_support="$rtcd_support (Media)"
12838
12839fi
12840
12841fi
12842
12843 if test x"$OPUS_ARM_MAY_HAVE_NEON" = x"1"; then :
12844
12845
12846$as_echo "#define OPUS_ARM_MAY_HAVE_NEON 1" >>confdefs.h
12847
12848 if test x"$OPUS_ARM_PRESUME_NEON" = x"1"; then :
12849
12850
12851$as_echo "#define OPUS_ARM_PRESUME_NEON 1" >>confdefs.h
12852
12853 asm_optimization="$asm_optimization (NEON)"
12854
12855else
12856 rtcd_support="$rtcd_support (NEON)"
12857
12858fi
12859
12860fi
12861
12862 if test x"$rtcd_support" != x""; then :
12863 rtcd_support=ARM"$rtcd_support"
12864else
12865 rtcd_support="no"
12866
12867fi
flimc91ee5b2016-01-26 14:33:44 +010012868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apple style tools" >&5
12869$as_echo_n "checking for apple style tools... " >&6; }
12870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12871/* end confdefs.h. */
12872
12873#ifndef __APPLE__
12874#error 1
12875#endif
12876int
12877main ()
12878{
12879
12880 ;
12881 return 0;
12882}
12883_ACEOF
12884if ac_fn_c_try_cpp "$LINENO"; then :
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12886$as_echo "yes" >&6; }; ARM2GNU_PARAMS="--apple"
12887else
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889$as_echo "no" >&6; }; ARM2GNU_PARAMS=""
12890fi
12891rm -f conftest.err conftest.i conftest.$ac_ext
12892
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080012893
12894else
12895
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ARM assembly requires perl -- disabling optimizations" >&5
12897$as_echo "$as_me: WARNING: *** ARM assembly requires perl -- disabling optimizations" >&2;}
12898 asm_optimization="(missing perl dependency for ARM)"
12899
12900fi
12901
12902fi
12903 ;;
12904 esac
12905
12906else
12907
12908 inline_optimization="disabled"
12909 asm_optimization="disabled"
12910
12911fi
12912
flimc91ee5b2016-01-26 14:33:44 +010012913 if test x"${inline_optimization%% *}" = x"ARM"; then
12914 OPUS_ARM_INLINE_ASM_TRUE=
12915 OPUS_ARM_INLINE_ASM_FALSE='#'
12916else
12917 OPUS_ARM_INLINE_ASM_TRUE='#'
12918 OPUS_ARM_INLINE_ASM_FALSE=
12919fi
12920
12921 if test x"${asm_optimization%% *}" = x"ARM"; then
12922 OPUS_ARM_EXTERNAL_ASM_TRUE=
12923 OPUS_ARM_EXTERNAL_ASM_FALSE='#'
12924else
12925 OPUS_ARM_EXTERNAL_ASM_TRUE='#'
12926 OPUS_ARM_EXTERNAL_ASM_FALSE=
12927fi
12928
12929
12930 if false; then
12931 HAVE_SSE_TRUE=
12932 HAVE_SSE_FALSE='#'
12933else
12934 HAVE_SSE_TRUE='#'
12935 HAVE_SSE_FALSE=
12936fi
12937
12938 if false; then
12939 HAVE_SSE2_TRUE=
12940 HAVE_SSE2_FALSE='#'
12941else
12942 HAVE_SSE2_TRUE='#'
12943 HAVE_SSE2_FALSE=
12944fi
12945
12946 if false; then
12947 HAVE_SSE4_1_TRUE=
12948 HAVE_SSE4_1_FALSE='#'
12949else
12950 HAVE_SSE4_1_TRUE='#'
12951 HAVE_SSE4_1_FALSE=
12952fi
12953
12954 if false; then
12955 HAVE_AVX_TRUE=
12956 HAVE_AVX_FALSE='#'
12957else
12958 HAVE_AVX_TRUE='#'
12959 HAVE_AVX_FALSE=
12960fi
12961
12962
12963
12964
12965
12966
12967
12968# With GCC on ARM32 softfp architectures (e.g. Android, or older Ubuntu) you need to specify
12969# -mfloat-abi=softfp for -mfpu=neon to work. However, on ARM32 hardfp architectures (e.g. newer Ubuntu),
12970# this option will break things.
12971
12972# As a heuristic, if host matches arm*eabi* but not arm*hf*, it's probably soft-float.
12973
12974
12975case $host in #(
12976 arm*hf*) :
12977 RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon" ;; #(
12978 arm*eabi*) :
12979 RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon -mfloat-abi=softfp" ;; #(
12980 *) :
12981 RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon" ;;
12982esac
12983
12984
12985
12986
12987
12988
12989
12990if ${X86_SSE_CFLAGS+:} false; then :
12991
12992else
12993 X86_SSE_CFLAGS="-msse"
12994fi
12995if ${X86_SSE2_CFLAGS+:} false; then :
12996
12997else
12998 X86_SSE2_CFLAGS="-msse2"
12999fi
13000if ${X86_SSE4_1_CFLAGS+:} false; then :
13001
13002else
13003 X86_SSE4_1_CFLAGS="-msse4.1"
13004fi
13005if ${X86_AVX_CFLAGS+:} false; then :
13006
13007else
13008 X86_AVX_CFLAGS="-mavx"
13009fi
13010if ${ARM_NEON_INTR_CFLAGS+:} false; then :
13011
13012else
13013 ARM_NEON_INTR_CFLAGS="$RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS"
13014fi
13015
13016
13017
13018if test x"$enable_intrinsics" = x"yes"; then :
13019
13020 intrinsics_support=""
13021 case $host_cpu in #(
13022 arm*) :
13023
13024 cpu_arm=yes
13025
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ARM Neon intrinsics" >&5
13027$as_echo_n "checking if compiler supports ARM Neon intrinsics... " >&6; }
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029/* end confdefs.h. */
13030#include <arm_neon.h>
13031
13032int
13033main ()
13034{
13035
13036 static float32x4_t A0, A1, SUMM;
13037 SUMM = vmlaq_f32(SUMM, A0, A1);
13038
13039
13040 ;
13041 return 0;
13042}
13043_ACEOF
13044if ac_fn_c_try_link "$LINENO"; then :
13045
13046 OPUS_ARM_MAY_HAVE_NEON_INTR=1
13047 OPUS_ARM_PRESUME_NEON_INTR=1
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13049$as_echo "yes" >&6; }
13050
13051else
13052
13053 OPUS_ARM_PRESUME_NEON_INTR=0
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055$as_echo "no" >&6; }
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ARM Neon intrinsics with $ARM_NEON_INTR_CFLAGS" >&5
13057$as_echo_n "checking if compiler supports ARM Neon intrinsics with $ARM_NEON_INTR_CFLAGS... " >&6; }
13058 save_CFLAGS="$CFLAGS"; CFLAGS="$ARM_NEON_INTR_CFLAGS $CFLAGS"
13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060/* end confdefs.h. */
13061#include <arm_neon.h>
13062
13063int
13064main ()
13065{
13066
13067 static float32x4_t A0, A1, SUMM;
13068 SUMM = vmlaq_f32(SUMM, A0, A1);
13069
13070
13071 ;
13072 return 0;
13073}
13074_ACEOF
13075if ac_fn_c_try_link "$LINENO"; then :
13076
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13078$as_echo "yes" >&6; }
13079 OPUS_ARM_MAY_HAVE_NEON_INTR=1
13080
13081else
13082
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084$as_echo "no" >&6; }
13085 OPUS_ARM_MAY_HAVE_NEON_INTR=0
13086
13087fi
13088rm -f core conftest.err conftest.$ac_objext \
13089 conftest$ac_exeext conftest.$ac_ext
13090 CFLAGS="$save_CFLAGS"
13091
13092fi
13093rm -f core conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext conftest.$ac_ext
13095
13096 if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1" && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
13097
13098 OPUS_ARM_NEON_INTR_CFLAGS="$ARM_NEON_INTR_CFLAGS"
13099
13100
13101
13102fi
13103
13104 if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1"; then :
13105
13106
13107$as_echo "#define OPUS_ARM_MAY_HAVE_NEON_INTR 1" >>confdefs.h
13108
13109 intrinsics_support="$intrinsics_support (Neon_Intrinsics)"
13110
13111 if test x"enable_rtcd" != x"" && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
13112 rtcd_support="$rtcd_support (ARMv7_Neon_Intrinsics)"
13113fi
13114
13115 if test x"$OPUS_ARM_PRESUME_NEON_INTR" = x"1"; then :
13116
13117$as_echo "#define OPUS_ARM_PRESUME_NEON_INTR 1" >>confdefs.h
13118
13119fi
13120
13121
13122
13123# Check whether --with-NE10 was given.
13124if test "${with_NE10+set}" = set; then :
13125 withval=$with_NE10; NE10_prefix="$withval"
13126else
13127 NE10_prefix=""
13128fi
13129
13130
13131# Check whether --with-NE10-libraries was given.
13132if test "${with_NE10_libraries+set}" = set; then :
13133 withval=$with_NE10_libraries; NE10_libraries="$withval"
13134else
13135 NE10_libraries=""
13136fi
13137
13138
13139# Check whether --with-NE10-includes was given.
13140if test "${with_NE10_includes+set}" = set; then :
13141 withval=$with_NE10_includes; NE10_includes="$withval"
13142else
13143 NE10_includes=""
13144fi
13145
13146
13147 if test "x$NE10_libraries" != "x" ; then
13148 NE10_LIBS="-L$NE10_libraries"
13149 elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then
13150 NE10_LIBS=""
13151 elif test "x$NE10_prefix" != "x" ; then
13152 NE10_LIBS="-L$NE10_prefix/lib"
13153 elif test "x$prefix" != "xNONE" ; then
13154 NE10_LIBS="-L$prefix/lib"
13155 fi
13156
13157 if test "x$NE10_prefix" != "xno" ; then
13158 NE10_LIBS="$NE10_LIBS -lNE10"
13159 fi
13160
13161 if test "x$NE10_includes" != "x" ; then
13162 NE10_CFLAGS="-I$NE10_includes"
13163 elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then
13164 NE10_CFLAGS=""
13165 elif test "x$ogg_prefix" != "x" ; then
13166 NE10_CFLAGS="-I$NE10_prefix/include"
13167 elif test "x$prefix" != "xNONE"; then
13168 NE10_CFLAGS="-I$prefix/include"
13169 fi
13170
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NE10" >&5
13172$as_echo_n "checking for NE10... " >&6; }
13173 save_CFLAGS="$CFLAGS"; CFLAGS="$NE10_CFLAGS"
13174 save_LIBS="$LIBS"; LIBS="$NE10_LIBS $LIBM"
13175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176/* end confdefs.h. */
13177
13178 #include <NE10_init.h>
13179
13180int
13181main ()
13182{
13183
13184 ne10_fft_cfg_float32_t cfg;
13185 cfg = ne10_fft_alloc_c2c_float32_neon(480);
13186
13187
13188 ;
13189 return 0;
13190}
13191
13192_ACEOF
13193if ac_fn_c_try_link "$LINENO"; then :
13194
13195 HAVE_ARM_NE10=1
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13197$as_echo "yes" >&6; }
13198
13199else
13200
13201 HAVE_ARM_NE10=0
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203$as_echo "no" >&6; }
13204 NE10_CFLAGS=""
13205 NE10_LIBS=""
13206
13207
13208fi
13209rm -f core conftest.err conftest.$ac_objext \
13210 conftest$ac_exeext conftest.$ac_ext
13211 CFLAGS="$save_CFLAGS"; LIBS="$save_LIBS"
13212 #Now we know if libNE10 is installed or not
13213 if test x"$HAVE_ARM_NE10" = x"1"; then :
13214
13215
13216$as_echo "#define HAVE_ARM_NE10 1" >>confdefs.h
13217
13218
13219
13220
13221
13222
13223fi
13224
13225
13226 if test x"$NE10_LIBS" != x""; then :
13227
13228 intrinsics_support="$intrinsics_support (NE10)"
13229 if test x"enable_rtcd" != x"" \
13230 && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
13231 rtcd_support="$rtcd_support (NE10)"
13232fi
13233
13234fi
13235
13236 if test x"$rtcd_support" = x""; then :
13237 rtcd_support=no
13238fi
13239
13240 if test x"$intrinsics_support" = x""; then :
13241 intrinsics_support=no
13242else
13243 intrinsics_support="arm$intrinsics_support"
13244fi
13245
13246else
13247
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support ARM intrinsics" >&5
13249$as_echo "$as_me: WARNING: Compiler does not support ARM intrinsics" >&2;}
13250 intrinsics_support=no
13251
13252fi
13253 ;; #(
13254 i?86|x86_64) :
13255
13256
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE intrinsics" >&5
13258$as_echo_n "checking if compiler supports SSE intrinsics... " >&6; }
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260/* end confdefs.h. */
13261#include <xmmintrin.h>
13262
13263int
13264main ()
13265{
13266
13267 static __m128 mtest;
13268 mtest = _mm_setzero_ps();
13269
13270
13271 ;
13272 return 0;
13273}
13274_ACEOF
13275if ac_fn_c_try_link "$LINENO"; then :
13276
13277 OPUS_X86_MAY_HAVE_SSE=1
13278 OPUS_X86_PRESUME_SSE=1
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13280$as_echo "yes" >&6; }
13281
13282else
13283
13284 OPUS_X86_PRESUME_SSE=0
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286$as_echo "no" >&6; }
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE intrinsics with $X86_SSE_CFLAGS" >&5
13288$as_echo_n "checking if compiler supports SSE intrinsics with $X86_SSE_CFLAGS... " >&6; }
13289 save_CFLAGS="$CFLAGS"; CFLAGS="$X86_SSE_CFLAGS $CFLAGS"
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291/* end confdefs.h. */
13292#include <xmmintrin.h>
13293
13294int
13295main ()
13296{
13297
13298 static __m128 mtest;
13299 mtest = _mm_setzero_ps();
13300
13301
13302 ;
13303 return 0;
13304}
13305_ACEOF
13306if ac_fn_c_try_link "$LINENO"; then :
13307
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13309$as_echo "yes" >&6; }
13310 OPUS_X86_MAY_HAVE_SSE=1
13311
13312else
13313
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315$as_echo "no" >&6; }
13316 OPUS_X86_MAY_HAVE_SSE=0
13317
13318fi
13319rm -f core conftest.err conftest.$ac_objext \
13320 conftest$ac_exeext conftest.$ac_ext
13321 CFLAGS="$save_CFLAGS"
13322
13323fi
13324rm -f core conftest.err conftest.$ac_objext \
13325 conftest$ac_exeext conftest.$ac_ext
13326
13327 if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1" && test x"$OPUS_X86_PRESUME_SSE" != x"1"; then :
13328
13329 OPUS_X86_SSE_CFLAGS="$X86_SSE_CFLAGS"
13330
13331
13332
13333fi
13334
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE2 intrinsics" >&5
13336$as_echo_n "checking if compiler supports SSE2 intrinsics... " >&6; }
13337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338/* end confdefs.h. */
13339#include <emmintrin.h>
13340
13341int
13342main ()
13343{
13344
13345 static __m128i mtest;
13346 mtest = _mm_setzero_si128();
13347
13348
13349 ;
13350 return 0;
13351}
13352_ACEOF
13353if ac_fn_c_try_link "$LINENO"; then :
13354
13355 OPUS_X86_MAY_HAVE_SSE2=1
13356 OPUS_X86_PRESUME_SSE2=1
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13358$as_echo "yes" >&6; }
13359
13360else
13361
13362 OPUS_X86_PRESUME_SSE2=0
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364$as_echo "no" >&6; }
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE2 intrinsics with $X86_SSE2_CFLAGS" >&5
13366$as_echo_n "checking if compiler supports SSE2 intrinsics with $X86_SSE2_CFLAGS... " >&6; }
13367 save_CFLAGS="$CFLAGS"; CFLAGS="$X86_SSE2_CFLAGS $CFLAGS"
13368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369/* end confdefs.h. */
13370#include <emmintrin.h>
13371
13372int
13373main ()
13374{
13375
13376 static __m128i mtest;
13377 mtest = _mm_setzero_si128();
13378
13379
13380 ;
13381 return 0;
13382}
13383_ACEOF
13384if ac_fn_c_try_link "$LINENO"; then :
13385
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13387$as_echo "yes" >&6; }
13388 OPUS_X86_MAY_HAVE_SSE2=1
13389
13390else
13391
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393$as_echo "no" >&6; }
13394 OPUS_X86_MAY_HAVE_SSE2=0
13395
13396fi
13397rm -f core conftest.err conftest.$ac_objext \
13398 conftest$ac_exeext conftest.$ac_ext
13399 CFLAGS="$save_CFLAGS"
13400
13401fi
13402rm -f core conftest.err conftest.$ac_objext \
13403 conftest$ac_exeext conftest.$ac_ext
13404
13405 if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1" && test x"$OPUS_X86_PRESUME_SSE2" != x"1"; then :
13406
13407 OPUS_X86_SSE2_CFLAGS="$X86_SSE2_CFLAGS"
13408
13409
13410
13411fi
13412
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE4.1 intrinsics" >&5
13414$as_echo_n "checking if compiler supports SSE4.1 intrinsics... " >&6; }
13415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13416/* end confdefs.h. */
13417#include <smmintrin.h>
13418
13419int
13420main ()
13421{
13422
13423 static __m128i mtest;
13424 mtest = _mm_setzero_si128();
13425 mtest = _mm_cmpeq_epi64(mtest, mtest);
13426
13427
13428 ;
13429 return 0;
13430}
13431_ACEOF
13432if ac_fn_c_try_link "$LINENO"; then :
13433
13434 OPUS_X86_MAY_HAVE_SSE4_1=1
13435 OPUS_X86_PRESUME_SSE4_1=1
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13437$as_echo "yes" >&6; }
13438
13439else
13440
13441 OPUS_X86_PRESUME_SSE4_1=0
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443$as_echo "no" >&6; }
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE4.1 intrinsics with $X86_SSE4_1_CFLAGS" >&5
13445$as_echo_n "checking if compiler supports SSE4.1 intrinsics with $X86_SSE4_1_CFLAGS... " >&6; }
13446 save_CFLAGS="$CFLAGS"; CFLAGS="$X86_SSE4_1_CFLAGS $CFLAGS"
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448/* end confdefs.h. */
13449#include <smmintrin.h>
13450
13451int
13452main ()
13453{
13454
13455 static __m128i mtest;
13456 mtest = _mm_setzero_si128();
13457 mtest = _mm_cmpeq_epi64(mtest, mtest);
13458
13459
13460 ;
13461 return 0;
13462}
13463_ACEOF
13464if ac_fn_c_try_link "$LINENO"; then :
13465
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13467$as_echo "yes" >&6; }
13468 OPUS_X86_MAY_HAVE_SSE4_1=1
13469
13470else
13471
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473$as_echo "no" >&6; }
13474 OPUS_X86_MAY_HAVE_SSE4_1=0
13475
13476fi
13477rm -f core conftest.err conftest.$ac_objext \
13478 conftest$ac_exeext conftest.$ac_ext
13479 CFLAGS="$save_CFLAGS"
13480
13481fi
13482rm -f core conftest.err conftest.$ac_objext \
13483 conftest$ac_exeext conftest.$ac_ext
13484
13485 if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1" && test x"$OPUS_X86_PRESUME_SSE4_1" != x"1"; then :
13486
13487 OPUS_X86_SSE4_1_CFLAGS="$X86_SSE4_1_CFLAGS"
13488
13489
13490
13491fi
13492
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports AVX intrinsics" >&5
13494$as_echo_n "checking if compiler supports AVX intrinsics... " >&6; }
13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496/* end confdefs.h. */
13497#include <immintrin.h>
13498
13499int
13500main ()
13501{
13502
13503 static __m256 mtest;
13504 mtest = _mm256_setzero_ps();
13505
13506
13507 ;
13508 return 0;
13509}
13510_ACEOF
13511if ac_fn_c_try_link "$LINENO"; then :
13512
13513 OPUS_X86_MAY_HAVE_AVX=1
13514 OPUS_X86_PRESUME_AVX=1
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13516$as_echo "yes" >&6; }
13517
13518else
13519
13520 OPUS_X86_PRESUME_AVX=0
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13522$as_echo "no" >&6; }
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports AVX intrinsics with $X86_AVX_CFLAGS" >&5
13524$as_echo_n "checking if compiler supports AVX intrinsics with $X86_AVX_CFLAGS... " >&6; }
13525 save_CFLAGS="$CFLAGS"; CFLAGS="$X86_AVX_CFLAGS $CFLAGS"
13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527/* end confdefs.h. */
13528#include <immintrin.h>
13529
13530int
13531main ()
13532{
13533
13534 static __m256 mtest;
13535 mtest = _mm256_setzero_ps();
13536
13537
13538 ;
13539 return 0;
13540}
13541_ACEOF
13542if ac_fn_c_try_link "$LINENO"; then :
13543
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13545$as_echo "yes" >&6; }
13546 OPUS_X86_MAY_HAVE_AVX=1
13547
13548else
13549
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551$as_echo "no" >&6; }
13552 OPUS_X86_MAY_HAVE_AVX=0
13553
13554fi
13555rm -f core conftest.err conftest.$ac_objext \
13556 conftest$ac_exeext conftest.$ac_ext
13557 CFLAGS="$save_CFLAGS"
13558
13559fi
13560rm -f core conftest.err conftest.$ac_objext \
13561 conftest$ac_exeext conftest.$ac_ext
13562
13563 if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1" && test x"$OPUS_X86_PRESUME_AVX" != x"1"; then :
13564
13565 OPUS_X86_AVX_CFLAGS="$X86_AVX_CFLAGS"
13566
13567
13568
13569fi
13570 if test x"$rtcd_support" = x"no"; then :
13571 rtcd_support=""
13572fi
13573 if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1"; then :
13574
13575
13576$as_echo "#define OPUS_X86_MAY_HAVE_SSE 1" >>confdefs.h
13577
13578 intrinsics_support="$intrinsics_support SSE"
13579
13580 if test x"$OPUS_X86_PRESUME_SSE" = x"1"; then :
13581
13582$as_echo "#define OPUS_X86_PRESUME_SSE 1" >>confdefs.h
13583
13584else
13585 rtcd_support="$rtcd_support SSE"
13586fi
13587
13588else
13589
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE intrinsics" >&5
13591$as_echo "$as_me: WARNING: Compiler does not support SSE intrinsics" >&2;}
13592
13593fi
13594
13595 if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1"; then :
13596
13597
13598$as_echo "#define OPUS_X86_MAY_HAVE_SSE2 1" >>confdefs.h
13599
13600 intrinsics_support="$intrinsics_support SSE2"
13601
13602 if test x"$OPUS_X86_PRESUME_SSE2" = x"1"; then :
13603
13604$as_echo "#define OPUS_X86_PRESUME_SSE2 1" >>confdefs.h
13605
13606else
13607 rtcd_support="$rtcd_support SSE2"
13608fi
13609
13610else
13611
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE2 intrinsics" >&5
13613$as_echo "$as_me: WARNING: Compiler does not support SSE2 intrinsics" >&2;}
13614
13615fi
13616
13617 if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1"; then :
13618
13619
13620$as_echo "#define OPUS_X86_MAY_HAVE_SSE4_1 1" >>confdefs.h
13621
13622 intrinsics_support="$intrinsics_support SSE4.1"
13623
13624 if test x"$OPUS_X86_PRESUME_SSE4_1" = x"1"; then :
13625
13626$as_echo "#define OPUS_X86_PRESUME_SSE4_1 1" >>confdefs.h
13627
13628else
13629 rtcd_support="$rtcd_support SSE4.1"
13630fi
13631
13632else
13633
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE4.1 intrinsics" >&5
13635$as_echo "$as_me: WARNING: Compiler does not support SSE4.1 intrinsics" >&2;}
13636
13637fi
13638 if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1"; then :
13639
13640
13641$as_echo "#define OPUS_X86_MAY_HAVE_AVX 1" >>confdefs.h
13642
13643 intrinsics_support="$intrinsics_support AVX"
13644
13645 if test x"$OPUS_X86_PRESUME_AVX" = x"1"; then :
13646
13647$as_echo "#define OPUS_X86_PRESUME_AVX 1" >>confdefs.h
13648
13649else
13650 rtcd_support="$rtcd_support AVX"
13651fi
13652
13653else
13654
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support AVX intrinsics" >&5
13656$as_echo "$as_me: WARNING: Compiler does not support AVX intrinsics" >&2;}
13657
13658fi
13659
13660 if test x"$intrinsics_support" = x""; then :
13661 intrinsics_support=no
13662else
13663 intrinsics_support="x86$intrinsics_support"
13664
13665fi
13666 if test x"$rtcd_support" = x""; then :
13667 rtcd_support=no
13668elif rtcd_support="x86$rtcd_support"; then :
13669
13670fi
13671
13672 if test x"$enable_rtcd" = x"yes" && test x"$rtcd_support" != x""; then :
13673
13674 get_cpuid_by_asm="no"
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking How to get X86 CPU Info" >&5
13676$as_echo_n "checking How to get X86 CPU Info... " >&6; }
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678/* end confdefs.h. */
13679
13680 #include <stdio.h>
13681
13682int
13683main ()
13684{
13685
13686 unsigned int CPUInfo0;
13687 unsigned int CPUInfo1;
13688 unsigned int CPUInfo2;
13689 unsigned int CPUInfo3;
13690 unsigned int InfoType;
13691 __asm__ __volatile__ (
13692 "cpuid":
13693 "=a" (CPUInfo0),
13694 "=b" (CPUInfo1),
13695 "=c" (CPUInfo2),
13696 "=d" (CPUInfo3) :
13697 "a" (InfoType), "c" (0)
13698 );
13699
13700 ;
13701 return 0;
13702}
13703_ACEOF
13704if ac_fn_c_try_link "$LINENO"; then :
13705 get_cpuid_by_asm="yes"
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Inline Assembly" >&5
13707$as_echo "Inline Assembly" >&6; }
13708
13709$as_echo "#define CPU_INFO_BY_ASM 1" >>confdefs.h
13710
13711else
13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713/* end confdefs.h. */
13714
13715 #include <cpuid.h>
13716
13717int
13718main ()
13719{
13720
13721 unsigned int CPUInfo0;
13722 unsigned int CPUInfo1;
13723 unsigned int CPUInfo2;
13724 unsigned int CPUInfo3;
13725 unsigned int InfoType;
13726 __get_cpuid(InfoType, &CPUInfo0, &CPUInfo1, &CPUInfo2, &CPUInfo3);
13727
13728 ;
13729 return 0;
13730}
13731_ACEOF
13732if ac_fn_c_try_link "$LINENO"; then :
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: C method" >&5
13734$as_echo "C method" >&6; }
13735
13736$as_echo "#define CPU_INFO_BY_C 1" >>confdefs.h
13737
13738else
13739 as_fn_error $? "no supported Get CPU Info method, please disable intrinsics" "$LINENO" 5
13740fi
13741rm -f core conftest.err conftest.$ac_objext \
13742 conftest$ac_exeext conftest.$ac_ext
13743fi
13744rm -f core conftest.err conftest.$ac_objext \
13745 conftest$ac_exeext conftest.$ac_ext
13746fi
13747 ;; #(
13748 *) :
13749
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No intrinsics support for your architecture" >&5
13751$as_echo "$as_me: WARNING: No intrinsics support for your architecture" >&2;}
13752 intrinsics_support="no"
13753 ;;
13754esac
13755
13756else
13757
13758 intrinsics_support="no"
13759
13760fi
13761
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080013762 if test "$cpu_arm" = "yes"; then
13763 CPU_ARM_TRUE=
13764 CPU_ARM_FALSE='#'
13765else
13766 CPU_ARM_TRUE='#'
13767 CPU_ARM_FALSE=
13768fi
13769
flimc91ee5b2016-01-26 14:33:44 +010013770 if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1"; then
13771 OPUS_ARM_NEON_INTR_TRUE=
13772 OPUS_ARM_NEON_INTR_FALSE='#'
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080013773else
flimc91ee5b2016-01-26 14:33:44 +010013774 OPUS_ARM_NEON_INTR_TRUE='#'
13775 OPUS_ARM_NEON_INTR_FALSE=
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080013776fi
13777
flimc91ee5b2016-01-26 14:33:44 +010013778 if test x"$HAVE_ARM_NE10" = x"1"; then
13779 HAVE_ARM_NE10_TRUE=
13780 HAVE_ARM_NE10_FALSE='#'
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080013781else
flimc91ee5b2016-01-26 14:33:44 +010013782 HAVE_ARM_NE10_TRUE='#'
13783 HAVE_ARM_NE10_FALSE=
13784fi
13785
13786 if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1"; then
13787 HAVE_SSE_TRUE=
13788 HAVE_SSE_FALSE='#'
13789else
13790 HAVE_SSE_TRUE='#'
13791 HAVE_SSE_FALSE=
13792fi
13793
13794 if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1"; then
13795 HAVE_SSE2_TRUE=
13796 HAVE_SSE2_FALSE='#'
13797else
13798 HAVE_SSE2_TRUE='#'
13799 HAVE_SSE2_FALSE=
13800fi
13801
13802 if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1"; then
13803 HAVE_SSE4_1_TRUE=
13804 HAVE_SSE4_1_FALSE='#'
13805else
13806 HAVE_SSE4_1_TRUE='#'
13807 HAVE_SSE4_1_FALSE=
13808fi
13809
13810 if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1"; then
13811 HAVE_AVX_TRUE=
13812 HAVE_AVX_FALSE='#'
13813else
13814 HAVE_AVX_TRUE='#'
13815 HAVE_AVX_FALSE=
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080013816fi
13817
13818
13819if test x"$enable_rtcd" = x"yes"; then :
13820
13821 if test x"$rtcd_support" != x"no"; then :
13822
13823
13824$as_echo "#define OPUS_HAVE_RTCD 1" >>confdefs.h
13825
13826 OPUS_HAVE_RTCD=1
13827
13828
13829fi
13830
13831else
13832
13833 rtcd_support="disabled"
13834
13835fi
13836
13837# Check whether --enable-assertions was given.
13838if test "${enable_assertions+set}" = set; then :
13839 enableval=$enable_assertions;
13840else
13841 enable_assertions=no
13842fi
13843
13844
13845if test "$enable_assertions" = "yes"; then :
13846
13847
13848$as_echo "#define ENABLE_ASSERTIONS 1" >>confdefs.h
13849
13850
13851fi
13852
13853# Check whether --enable-fuzzing was given.
13854if test "${enable_fuzzing+set}" = set; then :
13855 enableval=$enable_fuzzing;
13856else
13857 enable_fuzzing=no
13858fi
13859
13860
13861if test "$enable_fuzzing" = "yes"; then :
13862
13863
13864$as_echo "#define FUZZING 1" >>confdefs.h
13865
13866
13867fi
13868
13869# Check whether --enable-doc was given.
13870if test "${enable_doc+set}" = set; then :
13871 enableval=$enable_doc;
13872else
13873 enable_doc=yes
13874fi
13875
13876
13877if test "$enable_doc" = "yes"; then :
13878
13879 # Extract the first word of "doxygen", so it can be a program name with args.
13880set dummy doxygen; ac_word=$2
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882$as_echo_n "checking for $ac_word... " >&6; }
13883if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
13884 $as_echo_n "(cached) " >&6
13885else
13886 if test -n "$HAVE_DOXYGEN"; then
13887 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
13888else
13889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13890for as_dir in $PATH
13891do
13892 IFS=$as_save_IFS
13893 test -z "$as_dir" && as_dir=.
13894 for ac_exec_ext in '' $ac_executable_extensions; do
flimc91ee5b2016-01-26 14:33:44 +010013895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080013896 ac_cv_prog_HAVE_DOXYGEN="yes"
13897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13898 break 2
13899 fi
13900done
13901 done
13902IFS=$as_save_IFS
13903
13904 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
13905fi
13906fi
13907HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
13908if test -n "$HAVE_DOXYGEN"; then
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
13910$as_echo "$HAVE_DOXYGEN" >&6; }
13911else
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13913$as_echo "no" >&6; }
13914fi
13915
13916
13917
13918else
13919
13920 HAVE_DOXYGEN=no
13921
13922fi
13923
13924 if test "$HAVE_DOXYGEN" = "yes"; then
13925 HAVE_DOXYGEN_TRUE=
13926 HAVE_DOXYGEN_FALSE='#'
13927else
13928 HAVE_DOXYGEN_TRUE='#'
13929 HAVE_DOXYGEN_FALSE=
13930fi
13931
13932
13933# Check whether --enable-extra-programs was given.
13934if test "${enable_extra_programs+set}" = set; then :
13935 enableval=$enable_extra_programs;
13936else
13937 enable_extra_programs=yes
13938fi
13939
13940
13941 if test "$enable_extra_programs" = "yes"; then
13942 EXTRA_PROGRAMS_TRUE=
13943 EXTRA_PROGRAMS_FALSE='#'
13944else
13945 EXTRA_PROGRAMS_TRUE='#'
13946 EXTRA_PROGRAMS_FALSE=
13947fi
13948
13949
13950
13951saved_CFLAGS="$CFLAGS"
13952CFLAGS="$CFLAGS -fvisibility=hidden"
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fvisibility=hidden" >&5
13954$as_echo_n "checking if ${CC} supports -fvisibility=hidden... " >&6; }
13955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956/* end confdefs.h. */
13957char foo;
13958_ACEOF
13959if ac_fn_c_try_compile "$LINENO"; then :
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13961$as_echo "yes" >&6; }
13962else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964$as_echo "no" >&6; }
13965 CFLAGS="$saved_CFLAGS"
13966
13967fi
13968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13969
13970CFLAGS="$CFLAGS -W"
13971
13972warn_CFLAGS="-Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes"
13973saved_CFLAGS="$CFLAGS"
13974CFLAGS="$CFLAGS $warn_CFLAGS"
13975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${warn_CFLAGS}" >&5
13976$as_echo_n "checking if ${CC} supports ${warn_CFLAGS}... " >&6; }
13977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978/* end confdefs.h. */
13979char foo;
13980_ACEOF
13981if ac_fn_c_try_compile "$LINENO"; then :
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13983$as_echo "yes" >&6; }
13984else
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13986$as_echo "no" >&6; }
13987 CFLAGS="$saved_CFLAGS"
13988
13989fi
13990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13991
13992saved_LIBS="$LIBS"
13993LIBS="$LIBS $LIBM"
13994for ac_func in lrintf
13995do :
13996 ac_fn_c_check_func "$LINENO" "lrintf" "ac_cv_func_lrintf"
13997if test "x$ac_cv_func_lrintf" = xyes; then :
13998 cat >>confdefs.h <<_ACEOF
13999#define HAVE_LRINTF 1
14000_ACEOF
14001
14002fi
14003done
14004
14005for ac_func in lrint
14006do :
14007 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
14008if test "x$ac_cv_func_lrint" = xyes; then :
14009 cat >>confdefs.h <<_ACEOF
14010#define HAVE_LRINT 1
14011_ACEOF
14012
14013fi
14014done
14015
14016LIBS="$saved_LIBS"
14017
14018for ac_func in __malloc_hook
14019do :
14020 ac_fn_c_check_func "$LINENO" "__malloc_hook" "ac_cv_func___malloc_hook"
14021if test "x$ac_cv_func___malloc_hook" = xyes; then :
14022 cat >>confdefs.h <<_ACEOF
14023#define HAVE___MALLOC_HOOK 1
14024_ACEOF
14025
14026fi
14027done
14028
14029
14030
14031
14032ac_config_files="$ac_config_files Makefile opus.pc opus-uninstalled.pc celt/arm/armopts.s doc/Makefile doc/Doxyfile"
14033
14034ac_config_headers="$ac_config_headers config.h"
14035
14036
14037cat >confcache <<\_ACEOF
14038# This file is a shell script that caches the results of configure
14039# tests run on this system so they can be shared between configure
14040# scripts and configure runs, see configure's option --config-cache.
14041# It is not useful on other systems. If it contains results you don't
14042# want to keep, you may remove or edit it.
14043#
14044# config.status only pays attention to the cache file if you give it
14045# the --recheck option to rerun configure.
14046#
14047# `ac_cv_env_foo' variables (set or unset) will be overridden when
14048# loading this file, other *unset* `ac_cv_foo' will be assigned the
14049# following values.
14050
14051_ACEOF
14052
14053# The following way of writing the cache mishandles newlines in values,
14054# but we know of no workaround that is simple, portable, and efficient.
14055# So, we kill variables containing newlines.
14056# Ultrix sh set writes to stderr and can't be redirected directly,
14057# and sets the high bit in the cache file unless we assign to the vars.
14058(
14059 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14060 eval ac_val=\$$ac_var
14061 case $ac_val in #(
14062 *${as_nl}*)
14063 case $ac_var in #(
14064 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14065$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14066 esac
14067 case $ac_var in #(
14068 _ | IFS | as_nl) ;; #(
14069 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14070 *) { eval $ac_var=; unset $ac_var;} ;;
14071 esac ;;
14072 esac
14073 done
14074
14075 (set) 2>&1 |
14076 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14077 *${as_nl}ac_space=\ *)
14078 # `set' does not quote correctly, so add quotes: double-quote
14079 # substitution turns \\\\ into \\, and sed turns \\ into \.
14080 sed -n \
14081 "s/'/'\\\\''/g;
14082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14083 ;; #(
14084 *)
14085 # `set' quotes correctly as required by POSIX, so do not add quotes.
14086 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14087 ;;
14088 esac |
14089 sort
14090) |
14091 sed '
14092 /^ac_cv_env_/b end
14093 t clear
14094 :clear
14095 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14096 t end
14097 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14098 :end' >>confcache
14099if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14100 if test -w "$cache_file"; then
14101 if test "x$cache_file" != "x/dev/null"; then
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14103$as_echo "$as_me: updating cache $cache_file" >&6;}
14104 if test ! -f "$cache_file" || test -h "$cache_file"; then
14105 cat confcache >"$cache_file"
14106 else
14107 case $cache_file in #(
14108 */* | ?:*)
14109 mv -f confcache "$cache_file"$$ &&
14110 mv -f "$cache_file"$$ "$cache_file" ;; #(
14111 *)
14112 mv -f confcache "$cache_file" ;;
14113 esac
14114 fi
14115 fi
14116 else
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14118$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14119 fi
14120fi
14121rm -f confcache
14122
14123test "x$prefix" = xNONE && prefix=$ac_default_prefix
14124# Let make expand exec_prefix.
14125test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14126
14127DEFS=-DHAVE_CONFIG_H
14128
14129ac_libobjs=
14130ac_ltlibobjs=
14131U=
14132for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14133 # 1. Remove the extension, and $U if already installed.
14134 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14135 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14136 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14137 # will be set to the directory where LIBOBJS objects are built.
14138 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14139 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14140done
14141LIBOBJS=$ac_libobjs
14142
14143LTLIBOBJS=$ac_ltlibobjs
14144
14145
flimc91ee5b2016-01-26 14:33:44 +010014146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14147$as_echo_n "checking that generated files are newer than configure... " >&6; }
14148 if test -n "$am_sleep_pid"; then
14149 # Hide warnings about reused PIDs.
14150 wait $am_sleep_pid 2>/dev/null
14151 fi
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14153$as_echo "done" >&6; }
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080014154 if test -n "$EXEEXT"; then
14155 am__EXEEXT_TRUE=
14156 am__EXEEXT_FALSE='#'
14157else
14158 am__EXEEXT_TRUE='#'
14159 am__EXEEXT_FALSE=
14160fi
14161
14162if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14163 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14164Usually this means the macro was only invoked conditionally." "$LINENO" 5
14165fi
14166if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14167 as_fn_error $? "conditional \"AMDEP\" was never defined.
14168Usually this means the macro was only invoked conditionally." "$LINENO" 5
14169fi
14170if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14171 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14172Usually this means the macro was only invoked conditionally." "$LINENO" 5
14173fi
14174if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14175 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14176Usually this means the macro was only invoked conditionally." "$LINENO" 5
14177fi
14178if test -z "${FIXED_POINT_TRUE}" && test -z "${FIXED_POINT_FALSE}"; then
14179 as_fn_error $? "conditional \"FIXED_POINT\" was never defined.
14180Usually this means the macro was only invoked conditionally." "$LINENO" 5
14181fi
14182if test -z "${DISABLE_FLOAT_API_TRUE}" && test -z "${DISABLE_FLOAT_API_FALSE}"; then
14183 as_fn_error $? "conditional \"DISABLE_FLOAT_API\" was never defined.
14184Usually this means the macro was only invoked conditionally." "$LINENO" 5
14185fi
14186if test -z "${CUSTOM_MODES_TRUE}" && test -z "${CUSTOM_MODES_FALSE}"; then
14187 as_fn_error $? "conditional \"CUSTOM_MODES\" was never defined.
14188Usually this means the macro was only invoked conditionally." "$LINENO" 5
14189fi
14190if test -z "${OPUS_ARM_INLINE_ASM_TRUE}" && test -z "${OPUS_ARM_INLINE_ASM_FALSE}"; then
14191 as_fn_error $? "conditional \"OPUS_ARM_INLINE_ASM\" was never defined.
14192Usually this means the macro was only invoked conditionally." "$LINENO" 5
14193fi
14194if test -z "${OPUS_ARM_EXTERNAL_ASM_TRUE}" && test -z "${OPUS_ARM_EXTERNAL_ASM_FALSE}"; then
14195 as_fn_error $? "conditional \"OPUS_ARM_EXTERNAL_ASM\" was never defined.
14196Usually this means the macro was only invoked conditionally." "$LINENO" 5
14197fi
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080014198if test -z "${OPUS_ARM_INLINE_ASM_TRUE}" && test -z "${OPUS_ARM_INLINE_ASM_FALSE}"; then
14199 as_fn_error $? "conditional \"OPUS_ARM_INLINE_ASM\" was never defined.
14200Usually this means the macro was only invoked conditionally." "$LINENO" 5
14201fi
14202if test -z "${OPUS_ARM_EXTERNAL_ASM_TRUE}" && test -z "${OPUS_ARM_EXTERNAL_ASM_FALSE}"; then
14203 as_fn_error $? "conditional \"OPUS_ARM_EXTERNAL_ASM\" was never defined.
14204Usually this means the macro was only invoked conditionally." "$LINENO" 5
14205fi
flimc91ee5b2016-01-26 14:33:44 +010014206if test -z "${HAVE_SSE_TRUE}" && test -z "${HAVE_SSE_FALSE}"; then
14207 as_fn_error $? "conditional \"HAVE_SSE\" was never defined.
14208Usually this means the macro was only invoked conditionally." "$LINENO" 5
14209fi
14210if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
14211 as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
14212Usually this means the macro was only invoked conditionally." "$LINENO" 5
14213fi
14214if test -z "${HAVE_SSE4_1_TRUE}" && test -z "${HAVE_SSE4_1_FALSE}"; then
14215 as_fn_error $? "conditional \"HAVE_SSE4_1\" was never defined.
14216Usually this means the macro was only invoked conditionally." "$LINENO" 5
14217fi
14218if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
14219 as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
14220Usually this means the macro was only invoked conditionally." "$LINENO" 5
14221fi
14222if test -z "${CPU_ARM_TRUE}" && test -z "${CPU_ARM_FALSE}"; then
14223 as_fn_error $? "conditional \"CPU_ARM\" was never defined.
14224Usually this means the macro was only invoked conditionally." "$LINENO" 5
14225fi
14226if test -z "${OPUS_ARM_NEON_INTR_TRUE}" && test -z "${OPUS_ARM_NEON_INTR_FALSE}"; then
14227 as_fn_error $? "conditional \"OPUS_ARM_NEON_INTR\" was never defined.
14228Usually this means the macro was only invoked conditionally." "$LINENO" 5
14229fi
14230if test -z "${HAVE_ARM_NE10_TRUE}" && test -z "${HAVE_ARM_NE10_FALSE}"; then
14231 as_fn_error $? "conditional \"HAVE_ARM_NE10\" was never defined.
14232Usually this means the macro was only invoked conditionally." "$LINENO" 5
14233fi
14234if test -z "${HAVE_SSE_TRUE}" && test -z "${HAVE_SSE_FALSE}"; then
14235 as_fn_error $? "conditional \"HAVE_SSE\" was never defined.
14236Usually this means the macro was only invoked conditionally." "$LINENO" 5
14237fi
14238if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
14239 as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
14240Usually this means the macro was only invoked conditionally." "$LINENO" 5
14241fi
14242if test -z "${HAVE_SSE4_1_TRUE}" && test -z "${HAVE_SSE4_1_FALSE}"; then
14243 as_fn_error $? "conditional \"HAVE_SSE4_1\" was never defined.
14244Usually this means the macro was only invoked conditionally." "$LINENO" 5
14245fi
14246if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
14247 as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
14248Usually this means the macro was only invoked conditionally." "$LINENO" 5
14249fi
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080014250if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
14251 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
14252Usually this means the macro was only invoked conditionally." "$LINENO" 5
14253fi
14254if test -z "${EXTRA_PROGRAMS_TRUE}" && test -z "${EXTRA_PROGRAMS_FALSE}"; then
14255 as_fn_error $? "conditional \"EXTRA_PROGRAMS\" was never defined.
14256Usually this means the macro was only invoked conditionally." "$LINENO" 5
14257fi
14258
14259: "${CONFIG_STATUS=./config.status}"
14260ac_write_fail=0
14261ac_clean_files_save=$ac_clean_files
14262ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14263{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14264$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14265as_write_fail=0
14266cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14267#! $SHELL
14268# Generated by $as_me.
14269# Run this file to recreate the current configuration.
14270# Compiler output produced by configure, useful for debugging
14271# configure, is in config.log if it exists.
14272
14273debug=false
14274ac_cs_recheck=false
14275ac_cs_silent=false
14276
14277SHELL=\${CONFIG_SHELL-$SHELL}
14278export SHELL
14279_ASEOF
14280cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14281## -------------------- ##
14282## M4sh Initialization. ##
14283## -------------------- ##
14284
14285# Be more Bourne compatible
14286DUALCASE=1; export DUALCASE # for MKS sh
14287if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14288 emulate sh
14289 NULLCMD=:
14290 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14291 # is contrary to our usage. Disable this feature.
14292 alias -g '${1+"$@"}'='"$@"'
14293 setopt NO_GLOB_SUBST
14294else
14295 case `(set -o) 2>/dev/null` in #(
14296 *posix*) :
14297 set -o posix ;; #(
14298 *) :
14299 ;;
14300esac
14301fi
14302
14303
14304as_nl='
14305'
14306export as_nl
14307# Printing a long string crashes Solaris 7 /usr/bin/printf.
14308as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14309as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14310as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14311# Prefer a ksh shell builtin over an external printf program on Solaris,
14312# but without wasting forks for bash or zsh.
14313if test -z "$BASH_VERSION$ZSH_VERSION" \
14314 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14315 as_echo='print -r --'
14316 as_echo_n='print -rn --'
14317elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14318 as_echo='printf %s\n'
14319 as_echo_n='printf %s'
14320else
14321 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14322 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14323 as_echo_n='/usr/ucb/echo -n'
14324 else
14325 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14326 as_echo_n_body='eval
14327 arg=$1;
14328 case $arg in #(
14329 *"$as_nl"*)
14330 expr "X$arg" : "X\\(.*\\)$as_nl";
14331 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14332 esac;
14333 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14334 '
14335 export as_echo_n_body
14336 as_echo_n='sh -c $as_echo_n_body as_echo'
14337 fi
14338 export as_echo_body
14339 as_echo='sh -c $as_echo_body as_echo'
14340fi
14341
14342# The user is always right.
14343if test "${PATH_SEPARATOR+set}" != set; then
14344 PATH_SEPARATOR=:
14345 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14346 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14347 PATH_SEPARATOR=';'
14348 }
14349fi
14350
14351
14352# IFS
14353# We need space, tab and new line, in precisely that order. Quoting is
14354# there to prevent editors from complaining about space-tab.
14355# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14356# splitting by setting IFS to empty value.)
14357IFS=" "" $as_nl"
14358
14359# Find who we are. Look in the path if we contain no directory separator.
14360as_myself=
14361case $0 in #((
14362 *[\\/]* ) as_myself=$0 ;;
14363 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14364for as_dir in $PATH
14365do
14366 IFS=$as_save_IFS
14367 test -z "$as_dir" && as_dir=.
14368 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14369 done
14370IFS=$as_save_IFS
14371
14372 ;;
14373esac
14374# We did not find ourselves, most probably we were run as `sh COMMAND'
14375# in which case we are not to be found in the path.
14376if test "x$as_myself" = x; then
14377 as_myself=$0
14378fi
14379if test ! -f "$as_myself"; then
14380 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14381 exit 1
14382fi
14383
14384# Unset variables that we do not need and which cause bugs (e.g. in
14385# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14386# suppresses any "Segmentation fault" message there. '((' could
14387# trigger a bug in pdksh 5.2.14.
14388for as_var in BASH_ENV ENV MAIL MAILPATH
14389do eval test x\${$as_var+set} = xset \
14390 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14391done
14392PS1='$ '
14393PS2='> '
14394PS4='+ '
14395
14396# NLS nuisances.
14397LC_ALL=C
14398export LC_ALL
14399LANGUAGE=C
14400export LANGUAGE
14401
14402# CDPATH.
14403(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14404
14405
14406# as_fn_error STATUS ERROR [LINENO LOG_FD]
14407# ----------------------------------------
14408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14410# script with STATUS, using 1 if that was 0.
14411as_fn_error ()
14412{
14413 as_status=$1; test $as_status -eq 0 && as_status=1
14414 if test "$4"; then
14415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14417 fi
14418 $as_echo "$as_me: error: $2" >&2
14419 as_fn_exit $as_status
14420} # as_fn_error
14421
14422
14423# as_fn_set_status STATUS
14424# -----------------------
14425# Set $? to STATUS, without forking.
14426as_fn_set_status ()
14427{
14428 return $1
14429} # as_fn_set_status
14430
14431# as_fn_exit STATUS
14432# -----------------
14433# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14434as_fn_exit ()
14435{
14436 set +e
14437 as_fn_set_status $1
14438 exit $1
14439} # as_fn_exit
14440
14441# as_fn_unset VAR
14442# ---------------
14443# Portably unset VAR.
14444as_fn_unset ()
14445{
14446 { eval $1=; unset $1;}
14447}
14448as_unset=as_fn_unset
14449# as_fn_append VAR VALUE
14450# ----------------------
14451# Append the text in VALUE to the end of the definition contained in VAR. Take
14452# advantage of any shell optimizations that allow amortized linear growth over
14453# repeated appends, instead of the typical quadratic growth present in naive
14454# implementations.
14455if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14456 eval 'as_fn_append ()
14457 {
14458 eval $1+=\$2
14459 }'
14460else
14461 as_fn_append ()
14462 {
14463 eval $1=\$$1\$2
14464 }
14465fi # as_fn_append
14466
14467# as_fn_arith ARG...
14468# ------------------
14469# Perform arithmetic evaluation on the ARGs, and store the result in the
14470# global $as_val. Take advantage of shells that can avoid forks. The arguments
14471# must be portable across $(()) and expr.
14472if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14473 eval 'as_fn_arith ()
14474 {
14475 as_val=$(( $* ))
14476 }'
14477else
14478 as_fn_arith ()
14479 {
14480 as_val=`expr "$@" || test $? -eq 1`
14481 }
14482fi # as_fn_arith
14483
14484
14485if expr a : '\(a\)' >/dev/null 2>&1 &&
14486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14487 as_expr=expr
14488else
14489 as_expr=false
14490fi
14491
14492if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14493 as_basename=basename
14494else
14495 as_basename=false
14496fi
14497
14498if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14499 as_dirname=dirname
14500else
14501 as_dirname=false
14502fi
14503
14504as_me=`$as_basename -- "$0" ||
14505$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14506 X"$0" : 'X\(//\)$' \| \
14507 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14508$as_echo X/"$0" |
14509 sed '/^.*\/\([^/][^/]*\)\/*$/{
14510 s//\1/
14511 q
14512 }
14513 /^X\/\(\/\/\)$/{
14514 s//\1/
14515 q
14516 }
14517 /^X\/\(\/\).*/{
14518 s//\1/
14519 q
14520 }
14521 s/.*/./; q'`
14522
14523# Avoid depending upon Character Ranges.
14524as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14525as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14526as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14527as_cr_digits='0123456789'
14528as_cr_alnum=$as_cr_Letters$as_cr_digits
14529
14530ECHO_C= ECHO_N= ECHO_T=
14531case `echo -n x` in #(((((
14532-n*)
14533 case `echo 'xy\c'` in
14534 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14535 xy) ECHO_C='\c';;
14536 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14537 ECHO_T=' ';;
14538 esac;;
14539*)
14540 ECHO_N='-n';;
14541esac
14542
14543rm -f conf$$ conf$$.exe conf$$.file
14544if test -d conf$$.dir; then
14545 rm -f conf$$.dir/conf$$.file
14546else
14547 rm -f conf$$.dir
14548 mkdir conf$$.dir 2>/dev/null
14549fi
14550if (echo >conf$$.file) 2>/dev/null; then
14551 if ln -s conf$$.file conf$$ 2>/dev/null; then
14552 as_ln_s='ln -s'
14553 # ... but there are two gotchas:
14554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
flimc91ee5b2016-01-26 14:33:44 +010014556 # In both cases, we have to default to `cp -pR'.
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080014557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
flimc91ee5b2016-01-26 14:33:44 +010014558 as_ln_s='cp -pR'
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080014559 elif ln conf$$.file conf$$ 2>/dev/null; then
14560 as_ln_s=ln
14561 else
flimc91ee5b2016-01-26 14:33:44 +010014562 as_ln_s='cp -pR'
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080014563 fi
14564else
flimc91ee5b2016-01-26 14:33:44 +010014565 as_ln_s='cp -pR'
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080014566fi
14567rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14568rmdir conf$$.dir 2>/dev/null
14569
14570
14571# as_fn_mkdir_p
14572# -------------
14573# Create "$as_dir" as a directory, including parents if necessary.
14574as_fn_mkdir_p ()
14575{
14576
14577 case $as_dir in #(
14578 -*) as_dir=./$as_dir;;
14579 esac
14580 test -d "$as_dir" || eval $as_mkdir_p || {
14581 as_dirs=
14582 while :; do
14583 case $as_dir in #(
14584 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14585 *) as_qdir=$as_dir;;
14586 esac
14587 as_dirs="'$as_qdir' $as_dirs"
14588 as_dir=`$as_dirname -- "$as_dir" ||
14589$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14590 X"$as_dir" : 'X\(//\)[^/]' \| \
14591 X"$as_dir" : 'X\(//\)$' \| \
14592 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14593$as_echo X"$as_dir" |
14594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14595 s//\1/
14596 q
14597 }
14598 /^X\(\/\/\)[^/].*/{
14599 s//\1/
14600 q
14601 }
14602 /^X\(\/\/\)$/{
14603 s//\1/
14604 q
14605 }
14606 /^X\(\/\).*/{
14607 s//\1/
14608 q
14609 }
14610 s/.*/./; q'`
14611 test -d "$as_dir" && break
14612 done
14613 test -z "$as_dirs" || eval "mkdir $as_dirs"
14614 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14615
14616
14617} # as_fn_mkdir_p
14618if mkdir -p . 2>/dev/null; then
14619 as_mkdir_p='mkdir -p "$as_dir"'
14620else
14621 test -d ./-p && rmdir ./-p
14622 as_mkdir_p=false
14623fi
14624
flimc91ee5b2016-01-26 14:33:44 +010014625
14626# as_fn_executable_p FILE
14627# -----------------------
14628# Test if FILE is an executable regular file.
14629as_fn_executable_p ()
14630{
14631 test -f "$1" && test -x "$1"
14632} # as_fn_executable_p
14633as_test_x='test -x'
14634as_executable_p=as_fn_executable_p
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080014635
14636# Sed expression to map a string onto a valid CPP name.
14637as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14638
14639# Sed expression to map a string onto a valid variable name.
14640as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14641
14642
14643exec 6>&1
14644## ----------------------------------- ##
14645## Main body of $CONFIG_STATUS script. ##
14646## ----------------------------------- ##
14647_ASEOF
14648test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14649
14650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14651# Save the log message, to keep $0 and so on meaningful, and to
14652# report actual input values of CONFIG_FILES etc. instead of their
14653# values after options handling.
14654ac_log="
flimc91ee5b2016-01-26 14:33:44 +010014655This file was extended by opus $as_me 1.1.2, which was
14656generated by GNU Autoconf 2.69. Invocation command line was
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080014657
14658 CONFIG_FILES = $CONFIG_FILES
14659 CONFIG_HEADERS = $CONFIG_HEADERS
14660 CONFIG_LINKS = $CONFIG_LINKS
14661 CONFIG_COMMANDS = $CONFIG_COMMANDS
14662 $ $0 $@
14663
14664on `(hostname || uname -n) 2>/dev/null | sed 1q`
14665"
14666
14667_ACEOF
14668
14669case $ac_config_files in *"
14670"*) set x $ac_config_files; shift; ac_config_files=$*;;
14671esac
14672
14673case $ac_config_headers in *"
14674"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14675esac
14676
14677
14678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14679# Files that config.status was made for.
14680config_files="$ac_config_files"
14681config_headers="$ac_config_headers"
14682config_commands="$ac_config_commands"
14683
14684_ACEOF
14685
14686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14687ac_cs_usage="\
14688\`$as_me' instantiates files and other configuration actions
14689from templates according to the current configuration. Unless the files
14690and actions are specified as TAGs, all are instantiated by default.
14691
14692Usage: $0 [OPTION]... [TAG]...
14693
14694 -h, --help print this help, then exit
14695 -V, --version print version number and configuration settings, then exit
14696 --config print configuration, then exit
14697 -q, --quiet, --silent
14698 do not print progress messages
14699 -d, --debug don't remove temporary files
14700 --recheck update $as_me by reconfiguring in the same conditions
14701 --file=FILE[:TEMPLATE]
14702 instantiate the configuration file FILE
14703 --header=FILE[:TEMPLATE]
14704 instantiate the configuration header FILE
14705
14706Configuration files:
14707$config_files
14708
14709Configuration headers:
14710$config_headers
14711
14712Configuration commands:
14713$config_commands
14714
14715Report bugs to <opus@xiph.org>."
14716
14717_ACEOF
14718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14719ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14720ac_cs_version="\\
flimc91ee5b2016-01-26 14:33:44 +010014721opus config.status 1.1.2
14722configured by $0, generated by GNU Autoconf 2.69,
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080014723 with options \\"\$ac_cs_config\\"
14724
flimc91ee5b2016-01-26 14:33:44 +010014725Copyright (C) 2012 Free Software Foundation, Inc.
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080014726This config.status script is free software; the Free Software Foundation
14727gives unlimited permission to copy, distribute and modify it."
14728
14729ac_pwd='$ac_pwd'
14730srcdir='$srcdir'
14731INSTALL='$INSTALL'
14732MKDIR_P='$MKDIR_P'
14733AWK='$AWK'
14734test -n "\$AWK" || AWK=awk
14735_ACEOF
14736
14737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14738# The default lists apply if the user does not specify any file.
14739ac_need_defaults=:
14740while test $# != 0
14741do
14742 case $1 in
14743 --*=?*)
14744 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14745 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14746 ac_shift=:
14747 ;;
14748 --*=)
14749 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14750 ac_optarg=
14751 ac_shift=:
14752 ;;
14753 *)
14754 ac_option=$1
14755 ac_optarg=$2
14756 ac_shift=shift
14757 ;;
14758 esac
14759
14760 case $ac_option in
14761 # Handling of the options.
14762 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14763 ac_cs_recheck=: ;;
14764 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14765 $as_echo "$ac_cs_version"; exit ;;
14766 --config | --confi | --conf | --con | --co | --c )
14767 $as_echo "$ac_cs_config"; exit ;;
14768 --debug | --debu | --deb | --de | --d | -d )
14769 debug=: ;;
14770 --file | --fil | --fi | --f )
14771 $ac_shift
14772 case $ac_optarg in
14773 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14774 '') as_fn_error $? "missing file argument" ;;
14775 esac
14776 as_fn_append CONFIG_FILES " '$ac_optarg'"
14777 ac_need_defaults=false;;
14778 --header | --heade | --head | --hea )
14779 $ac_shift
14780 case $ac_optarg in
14781 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14782 esac
14783 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14784 ac_need_defaults=false;;
14785 --he | --h)
14786 # Conflict between --help and --header
14787 as_fn_error $? "ambiguous option: \`$1'
14788Try \`$0 --help' for more information.";;
14789 --help | --hel | -h )
14790 $as_echo "$ac_cs_usage"; exit ;;
14791 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14792 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14793 ac_cs_silent=: ;;
14794
14795 # This is an error.
14796 -*) as_fn_error $? "unrecognized option: \`$1'
14797Try \`$0 --help' for more information." ;;
14798
14799 *) as_fn_append ac_config_targets " $1"
14800 ac_need_defaults=false ;;
14801
14802 esac
14803 shift
14804done
14805
14806ac_configure_extra_args=
14807
14808if $ac_cs_silent; then
14809 exec 6>/dev/null
14810 ac_configure_extra_args="$ac_configure_extra_args --silent"
14811fi
14812
14813_ACEOF
14814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14815if \$ac_cs_recheck; then
flimc91ee5b2016-01-26 14:33:44 +010014816 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080014817 shift
14818 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14819 CONFIG_SHELL='$SHELL'
14820 export CONFIG_SHELL
14821 exec "\$@"
14822fi
14823
14824_ACEOF
14825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14826exec 5>>config.log
14827{
14828 echo
14829 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14830## Running $as_me. ##
14831_ASBOX
14832 $as_echo "$ac_log"
14833} >&5
14834
14835_ACEOF
14836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14837#
14838# INIT-COMMANDS
14839#
14840AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14841
14842
14843# The HP-UX ksh and POSIX shell print the target directory to stdout
14844# if CDPATH is set.
14845(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14846
14847sed_quote_subst='$sed_quote_subst'
14848double_quote_subst='$double_quote_subst'
14849delay_variable_subst='$delay_variable_subst'
14850macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14851macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14852enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14853enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14854pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14855enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14856SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14857ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14858PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14859host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14860host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14861host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14862build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14863build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14864build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14865SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14866Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14867GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14868EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14869FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14870LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14871NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14872LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14873max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14874ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14875exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14876lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14877lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14878lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14879lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14880lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14881reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14882reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14883OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14884deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14885file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14886file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14887want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14888DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14889sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14890AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14891AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14892archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14893STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14894RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14895old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14896old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14897old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14898lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14899CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14900CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14901compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14902GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14903lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14904lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14905lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14906lt_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"`'
14907nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14908lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14909objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14910MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14911lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14912lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14913lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14914lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14915lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14916need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14917MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14918DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14919NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14920LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14921OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14922OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14923libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14924shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14925extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14926archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14927enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14928export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14929whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14930compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14931old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14932old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14933archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14934archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14935module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14936module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14937with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14938allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14939no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14940hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14941hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14942hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14943hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14944hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14945hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14946hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14947inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14948link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14949always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14950export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14951exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14952include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14953prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14954postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14955file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14956variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14957need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14958need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14959version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14960runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14961shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14962shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14963libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14964library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14965soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14966install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14967postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14968postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14969finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14970finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14971hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14972sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14973sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14974hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14975enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14976enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14977enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14978old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14979striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14980
14981LTCC='$LTCC'
14982LTCFLAGS='$LTCFLAGS'
14983compiler='$compiler_DEFAULT'
14984
14985# A function that is used when there is no print builtin or printf.
14986func_fallback_echo ()
14987{
14988 eval 'cat <<_LTECHO_EOF
14989\$1
14990_LTECHO_EOF'
14991}
14992
14993# Quote evaled strings.
14994for var in SHELL \
14995ECHO \
14996PATH_SEPARATOR \
14997SED \
14998GREP \
14999EGREP \
15000FGREP \
15001LD \
15002NM \
15003LN_S \
15004lt_SP2NL \
15005lt_NL2SP \
15006reload_flag \
15007OBJDUMP \
15008deplibs_check_method \
15009file_magic_cmd \
15010file_magic_glob \
15011want_nocaseglob \
15012DLLTOOL \
15013sharedlib_from_linklib_cmd \
15014AR \
15015AR_FLAGS \
15016archiver_list_spec \
15017STRIP \
15018RANLIB \
15019CC \
15020CFLAGS \
15021compiler \
15022lt_cv_sys_global_symbol_pipe \
15023lt_cv_sys_global_symbol_to_cdecl \
15024lt_cv_sys_global_symbol_to_c_name_address \
15025lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15026nm_file_list_spec \
15027lt_prog_compiler_no_builtin_flag \
15028lt_prog_compiler_pic \
15029lt_prog_compiler_wl \
15030lt_prog_compiler_static \
15031lt_cv_prog_compiler_c_o \
15032need_locks \
15033MANIFEST_TOOL \
15034DSYMUTIL \
15035NMEDIT \
15036LIPO \
15037OTOOL \
15038OTOOL64 \
15039shrext_cmds \
15040export_dynamic_flag_spec \
15041whole_archive_flag_spec \
15042compiler_needs_object \
15043with_gnu_ld \
15044allow_undefined_flag \
15045no_undefined_flag \
15046hardcode_libdir_flag_spec \
15047hardcode_libdir_separator \
15048exclude_expsyms \
15049include_expsyms \
15050file_list_spec \
15051variables_saved_for_relink \
15052libname_spec \
15053library_names_spec \
15054soname_spec \
15055install_override_mode \
15056finish_eval \
15057old_striplib \
15058striplib; do
15059 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15060 *[\\\\\\\`\\"\\\$]*)
15061 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15062 ;;
15063 *)
15064 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15065 ;;
15066 esac
15067done
15068
15069# Double-quote double-evaled strings.
15070for var in reload_cmds \
15071old_postinstall_cmds \
15072old_postuninstall_cmds \
15073old_archive_cmds \
15074extract_expsyms_cmds \
15075old_archive_from_new_cmds \
15076old_archive_from_expsyms_cmds \
15077archive_cmds \
15078archive_expsym_cmds \
15079module_cmds \
15080module_expsym_cmds \
15081export_symbols_cmds \
15082prelink_cmds \
15083postlink_cmds \
15084postinstall_cmds \
15085postuninstall_cmds \
15086finish_cmds \
15087sys_lib_search_path_spec \
15088sys_lib_dlsearch_path_spec; do
15089 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15090 *[\\\\\\\`\\"\\\$]*)
15091 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15092 ;;
15093 *)
15094 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15095 ;;
15096 esac
15097done
15098
15099ac_aux_dir='$ac_aux_dir'
15100xsi_shell='$xsi_shell'
15101lt_shell_append='$lt_shell_append'
15102
15103# See if we are running on zsh, and set the options which allow our
15104# commands through without removal of \ escapes INIT.
15105if test -n "\${ZSH_VERSION+set}" ; then
15106 setopt NO_GLOB_SUBST
15107fi
15108
15109
15110 PACKAGE='$PACKAGE'
15111 VERSION='$VERSION'
15112 TIMESTAMP='$TIMESTAMP'
15113 RM='$RM'
15114 ofile='$ofile'
15115
15116
15117
15118
15119_ACEOF
15120
15121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15122
15123# Handling of arguments.
15124for ac_config_target in $ac_config_targets
15125do
15126 case $ac_config_target in
15127 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15128 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15129 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15130 "opus.pc") CONFIG_FILES="$CONFIG_FILES opus.pc" ;;
15131 "opus-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opus-uninstalled.pc" ;;
15132 "celt/arm/armopts.s") CONFIG_FILES="$CONFIG_FILES celt/arm/armopts.s" ;;
15133 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15134 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
15135 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15136
15137 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15138 esac
15139done
15140
15141
15142# If the user did not use the arguments to specify the items to instantiate,
15143# then the envvar interface is used. Set only those that are not.
15144# We use the long form for the default assignment because of an extremely
15145# bizarre bug on SunOS 4.1.3.
15146if $ac_need_defaults; then
15147 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15148 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15149 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15150fi
15151
15152# Have a temporary directory for convenience. Make it in the build tree
15153# simply because there is no reason against having it here, and in addition,
15154# creating and moving files from /tmp can sometimes cause problems.
15155# Hook for its removal unless debugging.
15156# Note that there is a small window in which the directory will not be cleaned:
15157# after its creation but before its name has been assigned to `$tmp'.
15158$debug ||
15159{
15160 tmp= ac_tmp=
15161 trap 'exit_status=$?
15162 : "${ac_tmp:=$tmp}"
15163 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15164' 0
15165 trap 'as_fn_exit 1' 1 2 13 15
15166}
15167# Create a (secure) tmp directory for tmp files.
15168
15169{
15170 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15171 test -d "$tmp"
15172} ||
15173{
15174 tmp=./conf$$-$RANDOM
15175 (umask 077 && mkdir "$tmp")
15176} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15177ac_tmp=$tmp
15178
15179# Set up the scripts for CONFIG_FILES section.
15180# No need to generate them if there are no CONFIG_FILES.
15181# This happens for instance with `./config.status config.h'.
15182if test -n "$CONFIG_FILES"; then
15183
15184
15185ac_cr=`echo X | tr X '\015'`
15186# On cygwin, bash can eat \r inside `` if the user requested igncr.
15187# But we know of no other shell where ac_cr would be empty at this
15188# point, so we can use a bashism as a fallback.
15189if test "x$ac_cr" = x; then
15190 eval ac_cr=\$\'\\r\'
15191fi
15192ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15193if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15194 ac_cs_awk_cr='\\r'
15195else
15196 ac_cs_awk_cr=$ac_cr
15197fi
15198
15199echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15200_ACEOF
15201
15202
15203{
15204 echo "cat >conf$$subs.awk <<_ACEOF" &&
15205 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15206 echo "_ACEOF"
15207} >conf$$subs.sh ||
15208 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15209ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15210ac_delim='%!_!# '
15211for ac_last_try in false false false false false :; do
15212 . ./conf$$subs.sh ||
15213 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15214
15215 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15216 if test $ac_delim_n = $ac_delim_num; then
15217 break
15218 elif $ac_last_try; then
15219 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15220 else
15221 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15222 fi
15223done
15224rm -f conf$$subs.sh
15225
15226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15227cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15228_ACEOF
15229sed -n '
15230h
15231s/^/S["/; s/!.*/"]=/
15232p
15233g
15234s/^[^!]*!//
15235:repl
15236t repl
15237s/'"$ac_delim"'$//
15238t delim
15239:nl
15240h
15241s/\(.\{148\}\)..*/\1/
15242t more1
15243s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15244p
15245n
15246b repl
15247:more1
15248s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15249p
15250g
15251s/.\{148\}//
15252t nl
15253:delim
15254h
15255s/\(.\{148\}\)..*/\1/
15256t more2
15257s/["\\]/\\&/g; s/^/"/; s/$/"/
15258p
15259b
15260:more2
15261s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15262p
15263g
15264s/.\{148\}//
15265t delim
15266' <conf$$subs.awk | sed '
15267/^[^""]/{
15268 N
15269 s/\n//
15270}
15271' >>$CONFIG_STATUS || ac_write_fail=1
15272rm -f conf$$subs.awk
15273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15274_ACAWK
15275cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15276 for (key in S) S_is_set[key] = 1
15277 FS = ""
15278
15279}
15280{
15281 line = $ 0
15282 nfields = split(line, field, "@")
15283 substed = 0
15284 len = length(field[1])
15285 for (i = 2; i < nfields; i++) {
15286 key = field[i]
15287 keylen = length(key)
15288 if (S_is_set[key]) {
15289 value = S[key]
15290 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15291 len += length(value) + length(field[++i])
15292 substed = 1
15293 } else
15294 len += 1 + keylen
15295 }
15296
15297 print line
15298}
15299
15300_ACAWK
15301_ACEOF
15302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15303if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15304 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15305else
15306 cat
15307fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15308 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15309_ACEOF
15310
15311# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15312# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15313# trailing colons and then remove the whole line if VPATH becomes empty
15314# (actually we leave an empty line to preserve line numbers).
15315if test "x$srcdir" = x.; then
15316 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15317h
15318s///
15319s/^/:/
15320s/[ ]*$/:/
15321s/:\$(srcdir):/:/g
15322s/:\${srcdir}:/:/g
15323s/:@srcdir@:/:/g
15324s/^:*//
15325s/:*$//
15326x
15327s/\(=[ ]*\).*/\1/
15328G
15329s/\n//
15330s/^[^=]*=[ ]*$//
15331}'
15332fi
15333
15334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15335fi # test -n "$CONFIG_FILES"
15336
15337# Set up the scripts for CONFIG_HEADERS section.
15338# No need to generate them if there are no CONFIG_HEADERS.
15339# This happens for instance with `./config.status Makefile'.
15340if test -n "$CONFIG_HEADERS"; then
15341cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15342BEGIN {
15343_ACEOF
15344
15345# Transform confdefs.h into an awk script `defines.awk', embedded as
15346# here-document in config.status, that substitutes the proper values into
15347# config.h.in to produce config.h.
15348
15349# Create a delimiter string that does not exist in confdefs.h, to ease
15350# handling of long lines.
15351ac_delim='%!_!# '
15352for ac_last_try in false false :; do
15353 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15354 if test -z "$ac_tt"; then
15355 break
15356 elif $ac_last_try; then
15357 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15358 else
15359 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15360 fi
15361done
15362
15363# For the awk script, D is an array of macro values keyed by name,
15364# likewise P contains macro parameters if any. Preserve backslash
15365# newline sequences.
15366
15367ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15368sed -n '
15369s/.\{148\}/&'"$ac_delim"'/g
15370t rset
15371:rset
15372s/^[ ]*#[ ]*define[ ][ ]*/ /
15373t def
15374d
15375:def
15376s/\\$//
15377t bsnl
15378s/["\\]/\\&/g
15379s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15380D["\1"]=" \3"/p
15381s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15382d
15383:bsnl
15384s/["\\]/\\&/g
15385s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15386D["\1"]=" \3\\\\\\n"\\/p
15387t cont
15388s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15389t cont
15390d
15391:cont
15392n
15393s/.\{148\}/&'"$ac_delim"'/g
15394t clear
15395:clear
15396s/\\$//
15397t bsnlc
15398s/["\\]/\\&/g; s/^/"/; s/$/"/p
15399d
15400:bsnlc
15401s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15402b cont
15403' <confdefs.h | sed '
15404s/'"$ac_delim"'/"\\\
15405"/g' >>$CONFIG_STATUS || ac_write_fail=1
15406
15407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15408 for (key in D) D_is_set[key] = 1
15409 FS = ""
15410}
15411/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15412 line = \$ 0
15413 split(line, arg, " ")
15414 if (arg[1] == "#") {
15415 defundef = arg[2]
15416 mac1 = arg[3]
15417 } else {
15418 defundef = substr(arg[1], 2)
15419 mac1 = arg[2]
15420 }
15421 split(mac1, mac2, "(") #)
15422 macro = mac2[1]
15423 prefix = substr(line, 1, index(line, defundef) - 1)
15424 if (D_is_set[macro]) {
15425 # Preserve the white space surrounding the "#".
15426 print prefix "define", macro P[macro] D[macro]
15427 next
15428 } else {
15429 # Replace #undef with comments. This is necessary, for example,
15430 # in the case of _POSIX_SOURCE, which is predefined and required
15431 # on some systems where configure will not decide to define it.
15432 if (defundef == "undef") {
15433 print "/*", prefix defundef, macro, "*/"
15434 next
15435 }
15436 }
15437}
15438{ print }
15439_ACAWK
15440_ACEOF
15441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15442 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15443fi # test -n "$CONFIG_HEADERS"
15444
15445
15446eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15447shift
15448for ac_tag
15449do
15450 case $ac_tag in
15451 :[FHLC]) ac_mode=$ac_tag; continue;;
15452 esac
15453 case $ac_mode$ac_tag in
15454 :[FHL]*:*);;
15455 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15456 :[FH]-) ac_tag=-:-;;
15457 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15458 esac
15459 ac_save_IFS=$IFS
15460 IFS=:
15461 set x $ac_tag
15462 IFS=$ac_save_IFS
15463 shift
15464 ac_file=$1
15465 shift
15466
15467 case $ac_mode in
15468 :L) ac_source=$1;;
15469 :[FH])
15470 ac_file_inputs=
15471 for ac_f
15472 do
15473 case $ac_f in
15474 -) ac_f="$ac_tmp/stdin";;
15475 *) # Look for the file first in the build tree, then in the source tree
15476 # (if the path is not absolute). The absolute path cannot be DOS-style,
15477 # because $ac_f cannot contain `:'.
15478 test -f "$ac_f" ||
15479 case $ac_f in
15480 [\\/$]*) false;;
15481 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15482 esac ||
15483 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15484 esac
15485 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15486 as_fn_append ac_file_inputs " '$ac_f'"
15487 done
15488
15489 # Let's still pretend it is `configure' which instantiates (i.e., don't
15490 # use $as_me), people would be surprised to read:
15491 # /* config.h. Generated by config.status. */
15492 configure_input='Generated from '`
15493 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15494 `' by configure.'
15495 if test x"$ac_file" != x-; then
15496 configure_input="$ac_file. $configure_input"
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15498$as_echo "$as_me: creating $ac_file" >&6;}
15499 fi
15500 # Neutralize special characters interpreted by sed in replacement strings.
15501 case $configure_input in #(
15502 *\&* | *\|* | *\\* )
15503 ac_sed_conf_input=`$as_echo "$configure_input" |
15504 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15505 *) ac_sed_conf_input=$configure_input;;
15506 esac
15507
15508 case $ac_tag in
15509 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15510 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15511 esac
15512 ;;
15513 esac
15514
15515 ac_dir=`$as_dirname -- "$ac_file" ||
15516$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15517 X"$ac_file" : 'X\(//\)[^/]' \| \
15518 X"$ac_file" : 'X\(//\)$' \| \
15519 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15520$as_echo X"$ac_file" |
15521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15522 s//\1/
15523 q
15524 }
15525 /^X\(\/\/\)[^/].*/{
15526 s//\1/
15527 q
15528 }
15529 /^X\(\/\/\)$/{
15530 s//\1/
15531 q
15532 }
15533 /^X\(\/\).*/{
15534 s//\1/
15535 q
15536 }
15537 s/.*/./; q'`
15538 as_dir="$ac_dir"; as_fn_mkdir_p
15539 ac_builddir=.
15540
15541case "$ac_dir" in
15542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15543*)
15544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15545 # A ".." for each directory in $ac_dir_suffix.
15546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15547 case $ac_top_builddir_sub in
15548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15550 esac ;;
15551esac
15552ac_abs_top_builddir=$ac_pwd
15553ac_abs_builddir=$ac_pwd$ac_dir_suffix
15554# for backward compatibility:
15555ac_top_builddir=$ac_top_build_prefix
15556
15557case $srcdir in
15558 .) # We are building in place.
15559 ac_srcdir=.
15560 ac_top_srcdir=$ac_top_builddir_sub
15561 ac_abs_top_srcdir=$ac_pwd ;;
15562 [\\/]* | ?:[\\/]* ) # Absolute name.
15563 ac_srcdir=$srcdir$ac_dir_suffix;
15564 ac_top_srcdir=$srcdir
15565 ac_abs_top_srcdir=$srcdir ;;
15566 *) # Relative name.
15567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15568 ac_top_srcdir=$ac_top_build_prefix$srcdir
15569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15570esac
15571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15572
15573
15574 case $ac_mode in
15575 :F)
15576 #
15577 # CONFIG_FILE
15578 #
15579
15580 case $INSTALL in
15581 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15582 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15583 esac
15584 ac_MKDIR_P=$MKDIR_P
15585 case $MKDIR_P in
15586 [\\/$]* | ?:[\\/]* ) ;;
15587 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15588 esac
15589_ACEOF
15590
15591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15592# If the template does not know about datarootdir, expand it.
15593# FIXME: This hack should be removed a few years after 2.60.
15594ac_datarootdir_hack=; ac_datarootdir_seen=
15595ac_sed_dataroot='
15596/datarootdir/ {
15597 p
15598 q
15599}
15600/@datadir@/p
15601/@docdir@/p
15602/@infodir@/p
15603/@localedir@/p
15604/@mandir@/p'
15605case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15606*datarootdir*) ac_datarootdir_seen=yes;;
15607*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15609$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15610_ACEOF
15611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15612 ac_datarootdir_hack='
15613 s&@datadir@&$datadir&g
15614 s&@docdir@&$docdir&g
15615 s&@infodir@&$infodir&g
15616 s&@localedir@&$localedir&g
15617 s&@mandir@&$mandir&g
15618 s&\\\${datarootdir}&$datarootdir&g' ;;
15619esac
15620_ACEOF
15621
15622# Neutralize VPATH when `$srcdir' = `.'.
15623# Shell code in configure.ac might set extrasub.
15624# FIXME: do we really want to maintain this feature?
15625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15626ac_sed_extra="$ac_vpsub
15627$extrasub
15628_ACEOF
15629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15630:t
15631/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15632s|@configure_input@|$ac_sed_conf_input|;t t
15633s&@top_builddir@&$ac_top_builddir_sub&;t t
15634s&@top_build_prefix@&$ac_top_build_prefix&;t t
15635s&@srcdir@&$ac_srcdir&;t t
15636s&@abs_srcdir@&$ac_abs_srcdir&;t t
15637s&@top_srcdir@&$ac_top_srcdir&;t t
15638s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15639s&@builddir@&$ac_builddir&;t t
15640s&@abs_builddir@&$ac_abs_builddir&;t t
15641s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15642s&@INSTALL@&$ac_INSTALL&;t t
15643s&@MKDIR_P@&$ac_MKDIR_P&;t t
15644$ac_datarootdir_hack
15645"
15646eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15647 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15648
15649test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15650 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15651 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15652 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15654which seems to be undefined. Please make sure it is defined" >&5
15655$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15656which seems to be undefined. Please make sure it is defined" >&2;}
15657
15658 rm -f "$ac_tmp/stdin"
15659 case $ac_file in
15660 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15661 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15662 esac \
15663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15664 ;;
15665 :H)
15666 #
15667 # CONFIG_HEADER
15668 #
15669 if test x"$ac_file" != x-; then
15670 {
15671 $as_echo "/* $configure_input */" \
15672 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15673 } >"$ac_tmp/config.h" \
15674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15675 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15677$as_echo "$as_me: $ac_file is unchanged" >&6;}
15678 else
15679 rm -f "$ac_file"
15680 mv "$ac_tmp/config.h" "$ac_file" \
15681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15682 fi
15683 else
15684 $as_echo "/* $configure_input */" \
15685 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15686 || as_fn_error $? "could not create -" "$LINENO" 5
15687 fi
15688# Compute "$ac_file"'s index in $config_headers.
15689_am_arg="$ac_file"
15690_am_stamp_count=1
15691for _am_header in $config_headers :; do
15692 case $_am_header in
15693 $_am_arg | $_am_arg:* )
15694 break ;;
15695 * )
15696 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15697 esac
15698done
15699echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15700$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15701 X"$_am_arg" : 'X\(//\)[^/]' \| \
15702 X"$_am_arg" : 'X\(//\)$' \| \
15703 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15704$as_echo X"$_am_arg" |
15705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15706 s//\1/
15707 q
15708 }
15709 /^X\(\/\/\)[^/].*/{
15710 s//\1/
15711 q
15712 }
15713 /^X\(\/\/\)$/{
15714 s//\1/
15715 q
15716 }
15717 /^X\(\/\).*/{
15718 s//\1/
15719 q
15720 }
15721 s/.*/./; q'`/stamp-h$_am_stamp_count
15722 ;;
15723
15724 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15725$as_echo "$as_me: executing $ac_file commands" >&6;}
15726 ;;
15727 esac
15728
15729
15730 case $ac_file$ac_mode in
15731 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
flimc91ee5b2016-01-26 14:33:44 +010015732 # Older Autoconf quotes --file arguments for eval, but not when files
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080015733 # are listed without --file. Let's play safe and only enable the eval
15734 # if we detect the quoting.
15735 case $CONFIG_FILES in
15736 *\'*) eval set x "$CONFIG_FILES" ;;
15737 *) set x $CONFIG_FILES ;;
15738 esac
15739 shift
15740 for mf
15741 do
15742 # Strip MF so we end up with the name of the file.
15743 mf=`echo "$mf" | sed -e 's/:.*$//'`
15744 # Check whether this is an Automake generated Makefile or not.
flimc91ee5b2016-01-26 14:33:44 +010015745 # We used to match only the files named 'Makefile.in', but
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080015746 # some people rename them; so instead we look at the file content.
15747 # Grep'ing the first line is not enough: some people post-process
15748 # each Makefile.in and add a new line on top of each file to say so.
15749 # Grep'ing the whole file is not good either: AIX grep has a line
15750 # limit of 2048, but all sed's we know have understand at least 4000.
15751 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15752 dirpart=`$as_dirname -- "$mf" ||
15753$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15754 X"$mf" : 'X\(//\)[^/]' \| \
15755 X"$mf" : 'X\(//\)$' \| \
15756 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15757$as_echo X"$mf" |
15758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15759 s//\1/
15760 q
15761 }
15762 /^X\(\/\/\)[^/].*/{
15763 s//\1/
15764 q
15765 }
15766 /^X\(\/\/\)$/{
15767 s//\1/
15768 q
15769 }
15770 /^X\(\/\).*/{
15771 s//\1/
15772 q
15773 }
15774 s/.*/./; q'`
15775 else
15776 continue
15777 fi
15778 # Extract the definition of DEPDIR, am__include, and am__quote
flimc91ee5b2016-01-26 14:33:44 +010015779 # from the Makefile without running 'make'.
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080015780 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15781 test -z "$DEPDIR" && continue
15782 am__include=`sed -n 's/^am__include = //p' < "$mf"`
flimc91ee5b2016-01-26 14:33:44 +010015783 test -z "$am__include" && continue
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080015784 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080015785 # Find all dependency output files, they are included files with
15786 # $(DEPDIR) in their names. We invoke sed twice because it is the
15787 # simplest approach to changing $(DEPDIR) to its actual value in the
15788 # expansion.
15789 for file in `sed -n "
15790 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
flimc91ee5b2016-01-26 14:33:44 +010015791 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080015792 # Make sure the directory exists.
15793 test -f "$dirpart/$file" && continue
15794 fdir=`$as_dirname -- "$file" ||
15795$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15796 X"$file" : 'X\(//\)[^/]' \| \
15797 X"$file" : 'X\(//\)$' \| \
15798 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15799$as_echo X"$file" |
15800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15801 s//\1/
15802 q
15803 }
15804 /^X\(\/\/\)[^/].*/{
15805 s//\1/
15806 q
15807 }
15808 /^X\(\/\/\)$/{
15809 s//\1/
15810 q
15811 }
15812 /^X\(\/\).*/{
15813 s//\1/
15814 q
15815 }
15816 s/.*/./; q'`
15817 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15818 # echo "creating $dirpart/$file"
15819 echo '# dummy' > "$dirpart/$file"
15820 done
15821 done
15822}
15823 ;;
15824 "libtool":C)
15825
15826 # See if we are running on zsh, and set the options which allow our
15827 # commands through without removal of \ escapes.
15828 if test -n "${ZSH_VERSION+set}" ; then
15829 setopt NO_GLOB_SUBST
15830 fi
15831
15832 cfgfile="${ofile}T"
15833 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15834 $RM "$cfgfile"
15835
15836 cat <<_LT_EOF >> "$cfgfile"
15837#! $SHELL
15838
15839# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15840# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15841# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15842# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15843#
15844# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15845# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15846# Foundation, Inc.
15847# Written by Gordon Matzigkeit, 1996
15848#
15849# This file is part of GNU Libtool.
15850#
15851# GNU Libtool is free software; you can redistribute it and/or
15852# modify it under the terms of the GNU General Public License as
15853# published by the Free Software Foundation; either version 2 of
15854# the License, or (at your option) any later version.
15855#
15856# As a special exception to the GNU General Public License,
15857# if you distribute this file as part of a program or library that
15858# is built using GNU Libtool, you may include this file under the
15859# same distribution terms that you use for the rest of that program.
15860#
15861# GNU Libtool is distributed in the hope that it will be useful,
15862# but WITHOUT ANY WARRANTY; without even the implied warranty of
15863# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15864# GNU General Public License for more details.
15865#
15866# You should have received a copy of the GNU General Public License
15867# along with GNU Libtool; see the file COPYING. If not, a copy
15868# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15869# obtained by writing to the Free Software Foundation, Inc.,
15870# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15871
15872
15873# The names of the tagged configurations supported by this script.
15874available_tags=""
15875
15876# ### BEGIN LIBTOOL CONFIG
15877
15878# Which release of libtool.m4 was used?
15879macro_version=$macro_version
15880macro_revision=$macro_revision
15881
15882# Whether or not to build shared libraries.
15883build_libtool_libs=$enable_shared
15884
15885# Whether or not to build static libraries.
15886build_old_libs=$enable_static
15887
15888# What type of objects to build.
15889pic_mode=$pic_mode
15890
15891# Whether or not to optimize for fast installation.
15892fast_install=$enable_fast_install
15893
15894# Shell to use when invoking shell scripts.
15895SHELL=$lt_SHELL
15896
15897# An echo program that protects backslashes.
15898ECHO=$lt_ECHO
15899
15900# The PATH separator for the build system.
15901PATH_SEPARATOR=$lt_PATH_SEPARATOR
15902
15903# The host system.
15904host_alias=$host_alias
15905host=$host
15906host_os=$host_os
15907
15908# The build system.
15909build_alias=$build_alias
15910build=$build
15911build_os=$build_os
15912
15913# A sed program that does not truncate output.
15914SED=$lt_SED
15915
15916# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15917Xsed="\$SED -e 1s/^X//"
15918
15919# A grep program that handles long lines.
15920GREP=$lt_GREP
15921
15922# An ERE matcher.
15923EGREP=$lt_EGREP
15924
15925# A literal string matcher.
15926FGREP=$lt_FGREP
15927
15928# A BSD- or MS-compatible name lister.
15929NM=$lt_NM
15930
15931# Whether we need soft or hard links.
15932LN_S=$lt_LN_S
15933
15934# What is the maximum length of a command?
15935max_cmd_len=$max_cmd_len
15936
15937# Object file suffix (normally "o").
15938objext=$ac_objext
15939
15940# Executable file suffix (normally "").
15941exeext=$exeext
15942
15943# whether the shell understands "unset".
15944lt_unset=$lt_unset
15945
15946# turn spaces into newlines.
15947SP2NL=$lt_lt_SP2NL
15948
15949# turn newlines into spaces.
15950NL2SP=$lt_lt_NL2SP
15951
15952# convert \$build file names to \$host format.
15953to_host_file_cmd=$lt_cv_to_host_file_cmd
15954
15955# convert \$build files to toolchain format.
15956to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15957
15958# An object symbol dumper.
15959OBJDUMP=$lt_OBJDUMP
15960
15961# Method to check whether dependent libraries are shared objects.
15962deplibs_check_method=$lt_deplibs_check_method
15963
15964# Command to use when deplibs_check_method = "file_magic".
15965file_magic_cmd=$lt_file_magic_cmd
15966
15967# How to find potential files when deplibs_check_method = "file_magic".
15968file_magic_glob=$lt_file_magic_glob
15969
15970# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15971want_nocaseglob=$lt_want_nocaseglob
15972
15973# DLL creation program.
15974DLLTOOL=$lt_DLLTOOL
15975
15976# Command to associate shared and link libraries.
15977sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15978
15979# The archiver.
15980AR=$lt_AR
15981
15982# Flags to create an archive.
15983AR_FLAGS=$lt_AR_FLAGS
15984
15985# How to feed a file listing to the archiver.
15986archiver_list_spec=$lt_archiver_list_spec
15987
15988# A symbol stripping program.
15989STRIP=$lt_STRIP
15990
15991# Commands used to install an old-style archive.
15992RANLIB=$lt_RANLIB
15993old_postinstall_cmds=$lt_old_postinstall_cmds
15994old_postuninstall_cmds=$lt_old_postuninstall_cmds
15995
15996# Whether to use a lock for old archive extraction.
15997lock_old_archive_extraction=$lock_old_archive_extraction
15998
15999# A C compiler.
16000LTCC=$lt_CC
16001
16002# LTCC compiler flags.
16003LTCFLAGS=$lt_CFLAGS
16004
16005# Take the output of nm and produce a listing of raw symbols and C names.
16006global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16007
16008# Transform the output of nm in a proper C declaration.
16009global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16010
16011# Transform the output of nm in a C name address pair.
16012global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16013
16014# Transform the output of nm in a C name address pair when lib prefix is needed.
16015global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16016
16017# Specify filename containing input files for \$NM.
16018nm_file_list_spec=$lt_nm_file_list_spec
16019
16020# The root where to search for dependent libraries,and in which our libraries should be installed.
16021lt_sysroot=$lt_sysroot
16022
16023# The name of the directory that contains temporary libtool files.
16024objdir=$objdir
16025
16026# Used to examine libraries when file_magic_cmd begins with "file".
16027MAGIC_CMD=$MAGIC_CMD
16028
16029# Must we lock files when doing compilation?
16030need_locks=$lt_need_locks
16031
16032# Manifest tool.
16033MANIFEST_TOOL=$lt_MANIFEST_TOOL
16034
16035# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16036DSYMUTIL=$lt_DSYMUTIL
16037
16038# Tool to change global to local symbols on Mac OS X.
16039NMEDIT=$lt_NMEDIT
16040
16041# Tool to manipulate fat objects and archives on Mac OS X.
16042LIPO=$lt_LIPO
16043
16044# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16045OTOOL=$lt_OTOOL
16046
16047# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16048OTOOL64=$lt_OTOOL64
16049
16050# Old archive suffix (normally "a").
16051libext=$libext
16052
16053# Shared library suffix (normally ".so").
16054shrext_cmds=$lt_shrext_cmds
16055
16056# The commands to extract the exported symbol list from a shared archive.
16057extract_expsyms_cmds=$lt_extract_expsyms_cmds
16058
16059# Variables whose values should be saved in libtool wrapper scripts and
16060# restored at link time.
16061variables_saved_for_relink=$lt_variables_saved_for_relink
16062
16063# Do we need the "lib" prefix for modules?
16064need_lib_prefix=$need_lib_prefix
16065
16066# Do we need a version for libraries?
16067need_version=$need_version
16068
16069# Library versioning type.
16070version_type=$version_type
16071
16072# Shared library runtime path variable.
16073runpath_var=$runpath_var
16074
16075# Shared library path variable.
16076shlibpath_var=$shlibpath_var
16077
16078# Is shlibpath searched before the hard-coded library search path?
16079shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16080
16081# Format of library name prefix.
16082libname_spec=$lt_libname_spec
16083
16084# List of archive names. First name is the real one, the rest are links.
16085# The last name is the one that the linker finds with -lNAME
16086library_names_spec=$lt_library_names_spec
16087
16088# The coded name of the library, if different from the real name.
16089soname_spec=$lt_soname_spec
16090
16091# Permission mode override for installation of shared libraries.
16092install_override_mode=$lt_install_override_mode
16093
16094# Command to use after installation of a shared archive.
16095postinstall_cmds=$lt_postinstall_cmds
16096
16097# Command to use after uninstallation of a shared archive.
16098postuninstall_cmds=$lt_postuninstall_cmds
16099
16100# Commands used to finish a libtool library installation in a directory.
16101finish_cmds=$lt_finish_cmds
16102
16103# As "finish_cmds", except a single script fragment to be evaled but
16104# not shown.
16105finish_eval=$lt_finish_eval
16106
16107# Whether we should hardcode library paths into libraries.
16108hardcode_into_libs=$hardcode_into_libs
16109
16110# Compile-time system search path for libraries.
16111sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16112
16113# Run-time system search path for libraries.
16114sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16115
16116# Whether dlopen is supported.
16117dlopen_support=$enable_dlopen
16118
16119# Whether dlopen of programs is supported.
16120dlopen_self=$enable_dlopen_self
16121
16122# Whether dlopen of statically linked programs is supported.
16123dlopen_self_static=$enable_dlopen_self_static
16124
16125# Commands to strip libraries.
16126old_striplib=$lt_old_striplib
16127striplib=$lt_striplib
16128
16129
16130# The linker used to build libraries.
16131LD=$lt_LD
16132
16133# How to create reloadable object files.
16134reload_flag=$lt_reload_flag
16135reload_cmds=$lt_reload_cmds
16136
16137# Commands used to build an old-style archive.
16138old_archive_cmds=$lt_old_archive_cmds
16139
16140# A language specific compiler.
16141CC=$lt_compiler
16142
16143# Is the compiler the GNU compiler?
16144with_gcc=$GCC
16145
16146# Compiler flag to turn off builtin functions.
16147no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16148
16149# Additional compiler flags for building library objects.
16150pic_flag=$lt_lt_prog_compiler_pic
16151
16152# How to pass a linker flag through the compiler.
16153wl=$lt_lt_prog_compiler_wl
16154
16155# Compiler flag to prevent dynamic linking.
16156link_static_flag=$lt_lt_prog_compiler_static
16157
16158# Does compiler simultaneously support -c and -o options?
16159compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16160
16161# Whether or not to add -lc for building shared libraries.
16162build_libtool_need_lc=$archive_cmds_need_lc
16163
16164# Whether or not to disallow shared libs when runtime libs are static.
16165allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16166
16167# Compiler flag to allow reflexive dlopens.
16168export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16169
16170# Compiler flag to generate shared objects directly from archives.
16171whole_archive_flag_spec=$lt_whole_archive_flag_spec
16172
16173# Whether the compiler copes with passing no objects directly.
16174compiler_needs_object=$lt_compiler_needs_object
16175
16176# Create an old-style archive from a shared archive.
16177old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16178
16179# Create a temporary old-style archive to link instead of a shared archive.
16180old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16181
16182# Commands used to build a shared archive.
16183archive_cmds=$lt_archive_cmds
16184archive_expsym_cmds=$lt_archive_expsym_cmds
16185
16186# Commands used to build a loadable module if different from building
16187# a shared archive.
16188module_cmds=$lt_module_cmds
16189module_expsym_cmds=$lt_module_expsym_cmds
16190
16191# Whether we are building with GNU ld or not.
16192with_gnu_ld=$lt_with_gnu_ld
16193
16194# Flag that allows shared libraries with undefined symbols to be built.
16195allow_undefined_flag=$lt_allow_undefined_flag
16196
16197# Flag that enforces no undefined symbols.
16198no_undefined_flag=$lt_no_undefined_flag
16199
16200# Flag to hardcode \$libdir into a binary during linking.
16201# This must work even if \$libdir does not exist
16202hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16203
16204# Whether we need a single "-rpath" flag with a separated argument.
16205hardcode_libdir_separator=$lt_hardcode_libdir_separator
16206
16207# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16208# DIR into the resulting binary.
16209hardcode_direct=$hardcode_direct
16210
16211# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16212# DIR into the resulting binary and the resulting library dependency is
16213# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16214# library is relocated.
16215hardcode_direct_absolute=$hardcode_direct_absolute
16216
16217# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16218# into the resulting binary.
16219hardcode_minus_L=$hardcode_minus_L
16220
16221# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16222# into the resulting binary.
16223hardcode_shlibpath_var=$hardcode_shlibpath_var
16224
16225# Set to "yes" if building a shared library automatically hardcodes DIR
16226# into the library and all subsequent libraries and executables linked
16227# against it.
16228hardcode_automatic=$hardcode_automatic
16229
16230# Set to yes if linker adds runtime paths of dependent libraries
16231# to runtime path list.
16232inherit_rpath=$inherit_rpath
16233
16234# Whether libtool must link a program against all its dependency libraries.
16235link_all_deplibs=$link_all_deplibs
16236
16237# Set to "yes" if exported symbols are required.
16238always_export_symbols=$always_export_symbols
16239
16240# The commands to list exported symbols.
16241export_symbols_cmds=$lt_export_symbols_cmds
16242
16243# Symbols that should not be listed in the preloaded symbols.
16244exclude_expsyms=$lt_exclude_expsyms
16245
16246# Symbols that must always be exported.
16247include_expsyms=$lt_include_expsyms
16248
16249# Commands necessary for linking programs (against libraries) with templates.
16250prelink_cmds=$lt_prelink_cmds
16251
16252# Commands necessary for finishing linking programs.
16253postlink_cmds=$lt_postlink_cmds
16254
16255# Specify filename containing input files.
16256file_list_spec=$lt_file_list_spec
16257
16258# How to hardcode a shared library path into an executable.
16259hardcode_action=$hardcode_action
16260
16261# ### END LIBTOOL CONFIG
16262
16263_LT_EOF
16264
16265 case $host_os in
16266 aix3*)
16267 cat <<\_LT_EOF >> "$cfgfile"
16268# AIX sometimes has problems with the GCC collect2 program. For some
16269# reason, if we set the COLLECT_NAMES environment variable, the problems
16270# vanish in a puff of smoke.
16271if test "X${COLLECT_NAMES+set}" != Xset; then
16272 COLLECT_NAMES=
16273 export COLLECT_NAMES
16274fi
16275_LT_EOF
16276 ;;
16277 esac
16278
16279
16280ltmain="$ac_aux_dir/ltmain.sh"
16281
16282
16283 # We use sed instead of cat because bash on DJGPP gets confused if
16284 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16285 # text mode, it properly converts lines to CR/LF. This bash problem
16286 # is reportedly fixed, but why not run on old versions too?
16287 sed '$q' "$ltmain" >> "$cfgfile" \
16288 || (rm -f "$cfgfile"; exit 1)
16289
16290 if test x"$xsi_shell" = xyes; then
16291 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16292func_dirname ()\
16293{\
16294\ case ${1} in\
16295\ */*) func_dirname_result="${1%/*}${2}" ;;\
16296\ * ) func_dirname_result="${3}" ;;\
16297\ esac\
16298} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16299 && mv -f "$cfgfile.tmp" "$cfgfile" \
16300 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16301test 0 -eq $? || _lt_function_replace_fail=:
16302
16303
16304 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16305func_basename ()\
16306{\
16307\ func_basename_result="${1##*/}"\
16308} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16309 && mv -f "$cfgfile.tmp" "$cfgfile" \
16310 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16311test 0 -eq $? || _lt_function_replace_fail=:
16312
16313
16314 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16315func_dirname_and_basename ()\
16316{\
16317\ case ${1} in\
16318\ */*) func_dirname_result="${1%/*}${2}" ;;\
16319\ * ) func_dirname_result="${3}" ;;\
16320\ esac\
16321\ func_basename_result="${1##*/}"\
16322} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16323 && mv -f "$cfgfile.tmp" "$cfgfile" \
16324 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16325test 0 -eq $? || _lt_function_replace_fail=:
16326
16327
16328 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16329func_stripname ()\
16330{\
16331\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16332\ # positional parameters, so assign one to ordinary parameter first.\
16333\ func_stripname_result=${3}\
16334\ func_stripname_result=${func_stripname_result#"${1}"}\
16335\ func_stripname_result=${func_stripname_result%"${2}"}\
16336} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16337 && mv -f "$cfgfile.tmp" "$cfgfile" \
16338 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16339test 0 -eq $? || _lt_function_replace_fail=:
16340
16341
16342 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16343func_split_long_opt ()\
16344{\
16345\ func_split_long_opt_name=${1%%=*}\
16346\ func_split_long_opt_arg=${1#*=}\
16347} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16348 && mv -f "$cfgfile.tmp" "$cfgfile" \
16349 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16350test 0 -eq $? || _lt_function_replace_fail=:
16351
16352
16353 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16354func_split_short_opt ()\
16355{\
16356\ func_split_short_opt_arg=${1#??}\
16357\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16358} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16359 && mv -f "$cfgfile.tmp" "$cfgfile" \
16360 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16361test 0 -eq $? || _lt_function_replace_fail=:
16362
16363
16364 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16365func_lo2o ()\
16366{\
16367\ case ${1} in\
16368\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16369\ *) func_lo2o_result=${1} ;;\
16370\ esac\
16371} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16372 && mv -f "$cfgfile.tmp" "$cfgfile" \
16373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16374test 0 -eq $? || _lt_function_replace_fail=:
16375
16376
16377 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16378func_xform ()\
16379{\
16380 func_xform_result=${1%.*}.lo\
16381} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16382 && mv -f "$cfgfile.tmp" "$cfgfile" \
16383 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16384test 0 -eq $? || _lt_function_replace_fail=:
16385
16386
16387 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16388func_arith ()\
16389{\
16390 func_arith_result=$(( $* ))\
16391} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16392 && mv -f "$cfgfile.tmp" "$cfgfile" \
16393 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16394test 0 -eq $? || _lt_function_replace_fail=:
16395
16396
16397 sed -e '/^func_len ()$/,/^} # func_len /c\
16398func_len ()\
16399{\
16400 func_len_result=${#1}\
16401} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16402 && mv -f "$cfgfile.tmp" "$cfgfile" \
16403 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16404test 0 -eq $? || _lt_function_replace_fail=:
16405
16406fi
16407
16408if test x"$lt_shell_append" = xyes; then
16409 sed -e '/^func_append ()$/,/^} # func_append /c\
16410func_append ()\
16411{\
16412 eval "${1}+=\\${2}"\
16413} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16414 && mv -f "$cfgfile.tmp" "$cfgfile" \
16415 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16416test 0 -eq $? || _lt_function_replace_fail=:
16417
16418
16419 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16420func_append_quoted ()\
16421{\
16422\ func_quote_for_eval "${2}"\
16423\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16424} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16425 && mv -f "$cfgfile.tmp" "$cfgfile" \
16426 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16427test 0 -eq $? || _lt_function_replace_fail=:
16428
16429
16430 # Save a `func_append' function call where possible by direct use of '+='
16431 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16432 && mv -f "$cfgfile.tmp" "$cfgfile" \
16433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16434 test 0 -eq $? || _lt_function_replace_fail=:
16435else
16436 # Save a `func_append' function call even when '+=' is not available
16437 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16438 && mv -f "$cfgfile.tmp" "$cfgfile" \
16439 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16440 test 0 -eq $? || _lt_function_replace_fail=:
16441fi
16442
16443if test x"$_lt_function_replace_fail" = x":"; then
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16445$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16446fi
16447
16448
16449 mv -f "$cfgfile" "$ofile" ||
16450 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16451 chmod +x "$ofile"
16452
16453 ;;
16454
16455 esac
16456done # for ac_tag
16457
16458
16459as_fn_exit 0
16460_ACEOF
16461ac_clean_files=$ac_clean_files_save
16462
16463test $ac_write_fail = 0 ||
16464 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16465
16466
16467# configure is writing to config.log, and then calls config.status.
16468# config.status does its own redirection, appending to config.log.
16469# Unfortunately, on DOS this fails, as config.log is still kept open
16470# by configure, so config.status won't be able to write to it; its
16471# output is simply discarded. So we exec the FD to /dev/null,
16472# effectively closing config.log, so it can be properly (re)opened and
16473# appended to by config.status. When coming back to configure, we
16474# need to make the FD available again.
16475if test "$no_create" != yes; then
16476 ac_cs_success=:
16477 ac_config_status_args=
16478 test "$silent" = yes &&
16479 ac_config_status_args="$ac_config_status_args --quiet"
16480 exec 5>/dev/null
16481 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16482 exec 5>>config.log
16483 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16484 # would make configure fail if this is the last instruction.
16485 $ac_cs_success || as_fn_exit 1
16486fi
16487if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16489$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16490fi
16491
16492
16493{ $as_echo "$as_me:${as_lineno-$LINENO}:
16494------------------------------------------------------------------------
16495 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
16496
16497 Compiler support:
16498
16499 C99 var arrays: ................ ${has_var_arrays}
16500 C99 lrintf: .................... ${ac_cv_func_lrintf}
16501 Use alloca: .................... ${use_alloca}
16502
16503 General configuration:
16504
16505 Floating point support: ........ ${enable_float}
16506 Fast float approximations: ..... ${enable_float_approx}
16507 Fixed point debugging: ......... ${enable_fixed_point_debug}
16508 Inline Assembly Optimizations: . ${inline_optimization}
16509 External Assembly Optimizations: ${asm_optimization}
flimc91ee5b2016-01-26 14:33:44 +010016510 Intrinsics Optimizations.......: ${intrinsics_support}
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080016511 Run-time CPU detection: ........ ${rtcd_support}
16512 Custom modes: .................. ${enable_custom_modes}
16513 Assertion checking: ............ ${enable_assertions}
16514 Fuzzing: ....................... ${enable_fuzzing}
16515
16516 API documentation: ............. ${enable_doc}
16517 Extra programs: ................ ${enable_extra_programs}
16518------------------------------------------------------------------------
16519
16520 Type \"make; make install\" to compile and install
16521 Type \"make check\" to run the test suite
16522" >&5
16523$as_echo "$as_me:
16524------------------------------------------------------------------------
16525 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
16526
16527 Compiler support:
16528
16529 C99 var arrays: ................ ${has_var_arrays}
16530 C99 lrintf: .................... ${ac_cv_func_lrintf}
16531 Use alloca: .................... ${use_alloca}
16532
16533 General configuration:
16534
16535 Floating point support: ........ ${enable_float}
16536 Fast float approximations: ..... ${enable_float_approx}
16537 Fixed point debugging: ......... ${enable_fixed_point_debug}
16538 Inline Assembly Optimizations: . ${inline_optimization}
16539 External Assembly Optimizations: ${asm_optimization}
flimc91ee5b2016-01-26 14:33:44 +010016540 Intrinsics Optimizations.......: ${intrinsics_support}
Vignesh Venkatasubramanian2bd8b542014-02-20 10:50:35 -080016541 Run-time CPU detection: ........ ${rtcd_support}
16542 Custom modes: .................. ${enable_custom_modes}
16543 Assertion checking: ............ ${enable_assertions}
16544 Fuzzing: ....................... ${enable_fuzzing}
16545
16546 API documentation: ............. ${enable_doc}
16547 Extra programs: ................ ${enable_extra_programs}
16548------------------------------------------------------------------------
16549
16550 Type \"make; make install\" to compile and install
16551 Type \"make check\" to run the test suite
16552" >&6;}
16553