comparison src/opus-1.3/configure @ 69:7aeed7906520

Add Opus sources and macOS builds
author Chris Cannam
date Wed, 23 Jan 2019 13:48:08 +0000
parents
children
comparison
equal deleted inserted replaced
68:85d5306e114e 69:7aeed7906520
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for opus 1.3.
4 #
5 # Report bugs to <opus@xiph.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if 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
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if 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 --'
49 elif (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'
52 else
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'
72 fi
73
74 # The user is always right.
75 if 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 }
81 fi
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.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
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
102 IFS=$as_save_IFS
103
104 ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
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.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $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
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if 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
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
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
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
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
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
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
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $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
267 exit 255
268 fi
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
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_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.
316 as_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.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (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 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # 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.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # 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.
419 as_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
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_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.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `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';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_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.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 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.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='opus'
592 PACKAGE_TARNAME='opus'
593 PACKAGE_VERSION='1.3'
594 PACKAGE_STRING='opus 1.3'
595 PACKAGE_BUGREPORT='opus@xiph.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/opus_encoder.c"
599 # Factoring default headers for most tests.
600 ac_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
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 PC_BUILD
640 EXTRA_PROGRAMS_FALSE
641 EXTRA_PROGRAMS_TRUE
642 HAVE_DOXYGEN_FALSE
643 HAVE_DOXYGEN_TRUE
644 HAVE_DOT
645 HAVE_DOXYGEN
646 OPUS_HAVE_RTCD
647 HAVE_ARM_NE10_FALSE
648 HAVE_ARM_NE10_TRUE
649 HAVE_ARM_NEON_INTR_FALSE
650 HAVE_ARM_NEON_INTR_TRUE
651 CPU_ARM_FALSE
652 CPU_ARM_TRUE
653 OPUS_X86_AVX_CFLAGS
654 OPUS_X86_SSE4_1_CFLAGS
655 OPUS_X86_SSE2_CFLAGS
656 OPUS_X86_SSE_CFLAGS
657 NE10_LIBS
658 NE10_CFLAGS
659 HAVE_ARM_NE10
660 OPUS_ARM_NEON_INTR_CFLAGS
661 ARM_NEON_INTR_CFLAGS
662 X86_AVX_CFLAGS
663 X86_SSE4_1_CFLAGS
664 X86_SSE2_CFLAGS
665 X86_SSE_CFLAGS
666 HAVE_AVX_FALSE
667 HAVE_AVX_TRUE
668 HAVE_SSE4_1_FALSE
669 HAVE_SSE4_1_TRUE
670 HAVE_SSE2_FALSE
671 HAVE_SSE2_TRUE
672 HAVE_SSE_FALSE
673 HAVE_SSE_TRUE
674 ARM2GNU_PARAMS
675 OPUS_ARM_MAY_HAVE_NEON
676 OPUS_ARM_MAY_HAVE_MEDIA
677 OPUS_ARM_MAY_HAVE_EDSP
678 OPUS_ARM_EXTERNAL_ASM_FALSE
679 OPUS_ARM_EXTERNAL_ASM_TRUE
680 HAVE_PERL
681 OPUS_ARM_INLINE_ASM_FALSE
682 OPUS_ARM_INLINE_ASM_TRUE
683 CUSTOM_MODES_FALSE
684 CUSTOM_MODES_TRUE
685 DISABLE_FLOAT_API_FALSE
686 DISABLE_FLOAT_API_TRUE
687 FIXED_POINT_FALSE
688 FIXED_POINT_TRUE
689 LIBM
690 am__fastdepCCAS_FALSE
691 am__fastdepCCAS_TRUE
692 CCASDEPMODE
693 CCASFLAGS
694 CCAS
695 CPP
696 LT_SYS_LIBRARY_PATH
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 MANIFEST_TOOL
703 RANLIB
704 ac_ct_AR
705 AR
706 DLLTOOL
707 OBJDUMP
708 LN_S
709 NM
710 ac_ct_DUMPBIN
711 DUMPBIN
712 LD
713 FGREP
714 EGREP
715 GREP
716 SED
717 am__fastdepCC_FALSE
718 am__fastdepCC_TRUE
719 CCDEPMODE
720 am__nodep
721 AMDEPBACKSLASH
722 AMDEP_FALSE
723 AMDEP_TRUE
724 am__quote
725 am__include
726 DEPDIR
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 LIBTOOL
735 host_os
736 host_vendor
737 host_cpu
738 host
739 build_os
740 build_vendor
741 build_cpu
742 build
743 MAINT
744 MAINTAINER_MODE_FALSE
745 MAINTAINER_MODE_TRUE
746 am__untar
747 am__tar
748 AMTAR
749 am__leading_dot
750 SET_MAKE
751 AWK
752 mkdir_p
753 MKDIR_P
754 INSTALL_STRIP_PROGRAM
755 STRIP
756 install_sh
757 MAKEINFO
758 AUTOHEADER
759 AUTOMAKE
760 AUTOCONF
761 ACLOCAL
762 VERSION
763 PACKAGE
764 CYGPATH_W
765 am__isrc
766 INSTALL_DATA
767 INSTALL_SCRIPT
768 INSTALL_PROGRAM
769 OPUS_LT_AGE
770 OPUS_LT_REVISION
771 OPUS_LT_CURRENT
772 AM_BACKSLASH
773 AM_DEFAULT_VERBOSITY
774 AM_DEFAULT_V
775 AM_V
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_URL
807 PACKAGE_BUGREPORT
808 PACKAGE_STRING
809 PACKAGE_VERSION
810 PACKAGE_TARNAME
811 PACKAGE_NAME
812 PATH_SEPARATOR
813 SHELL'
814 ac_subst_files=''
815 ac_user_opts='
816 enable_option_checking
817 enable_silent_rules
818 enable_maintainer_mode
819 enable_shared
820 enable_static
821 with_pic
822 enable_fast_install
823 with_aix_soname
824 enable_dependency_tracking
825 with_gnu_ld
826 with_sysroot
827 enable_libtool_lock
828 enable_fixed_point
829 enable_fixed_point_debug
830 enable_float_api
831 enable_custom_modes
832 enable_float_approx
833 enable_asm
834 enable_rtcd
835 enable_intrinsics
836 with_NE10
837 with_NE10_libraries
838 with_NE10_includes
839 enable_assertions
840 enable_hardening
841 enable_fuzzing
842 enable_check_asm
843 enable_doc
844 enable_extra_programs
845 enable_rfc8251
846 enable_stack_protector
847 '
848 ac_precious_vars='build_alias
849 host_alias
850 target_alias
851 CC
852 CFLAGS
853 LDFLAGS
854 LIBS
855 CPPFLAGS
856 LT_SYS_LIBRARY_PATH
857 CPP
858 CCAS
859 CCASFLAGS
860 X86_SSE_CFLAGS
861 X86_SSE2_CFLAGS
862 X86_SSE4_1_CFLAGS
863 X86_AVX_CFLAGS
864 ARM_NEON_INTR_CFLAGS'
865
866
867 # Initialize some variables set by options.
868 ac_init_help=
869 ac_init_version=false
870 ac_unrecognized_opts=
871 ac_unrecognized_sep=
872 # The variables have the same names as the options, with
873 # dashes changed to underlines.
874 cache_file=/dev/null
875 exec_prefix=NONE
876 no_create=
877 no_recursion=
878 prefix=NONE
879 program_prefix=NONE
880 program_suffix=NONE
881 program_transform_name=s,x,x,
882 silent=
883 site=
884 srcdir=
885 verbose=
886 x_includes=NONE
887 x_libraries=NONE
888
889 # Installation directory options.
890 # These are left unexpanded so users can "make install exec_prefix=/foo"
891 # and all the variables that are supposed to be based on exec_prefix
892 # by default will actually change.
893 # Use braces instead of parens because sh, perl, etc. also accept them.
894 # (The list follows the same order as the GNU Coding Standards.)
895 bindir='${exec_prefix}/bin'
896 sbindir='${exec_prefix}/sbin'
897 libexecdir='${exec_prefix}/libexec'
898 datarootdir='${prefix}/share'
899 datadir='${datarootdir}'
900 sysconfdir='${prefix}/etc'
901 sharedstatedir='${prefix}/com'
902 localstatedir='${prefix}/var'
903 includedir='${prefix}/include'
904 oldincludedir='/usr/include'
905 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906 infodir='${datarootdir}/info'
907 htmldir='${docdir}'
908 dvidir='${docdir}'
909 pdfdir='${docdir}'
910 psdir='${docdir}'
911 libdir='${exec_prefix}/lib'
912 localedir='${datarootdir}/locale'
913 mandir='${datarootdir}/man'
914
915 ac_prev=
916 ac_dashdash=
917 for ac_option
918 do
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
921 eval $ac_prev=\$ac_option
922 ac_prev=
923 continue
924 fi
925
926 case $ac_option in
927 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 *=) ac_optarg= ;;
929 *) ac_optarg=yes ;;
930 esac
931
932 # Accept the important Cygnus configure options, so we can diagnose typos.
933
934 case $ac_dashdash$ac_option in
935 --)
936 ac_dashdash=yes ;;
937
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 bindir=$ac_optarg ;;
942
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
947
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
954
955 --config-cache | -C)
956 cache_file=config.cache ;;
957
958 -datadir | --datadir | --datadi | --datad)
959 ac_prev=datadir ;;
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
962
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
969
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
985
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
990
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
995
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error $? "invalid feature name: $ac_useropt"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1020
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1024
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1031
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1036
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1042
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1049
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1054
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1059
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1066
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1071
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1078
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1083
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1087
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1090 no_create=yes ;;
1091
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1095
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1104
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1109
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1116
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1123
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 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1140
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1145
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1150
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1154
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 ac_prev=sbindir ;;
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 | --sbi=* | --sb=*)
1159 sbindir=$ac_optarg ;;
1160
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1164 | --sha | --sh)
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 | --sha=* | --sh=*)
1170 sharedstatedir=$ac_optarg ;;
1171
1172 -site | --site | --sit)
1173 ac_prev=site ;;
1174 -site=* | --site=* | --sit=*)
1175 site=$ac_optarg ;;
1176
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 ac_prev=srcdir ;;
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1181
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1188
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1193
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 verbose=yes ;;
1196
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1199
1200 -with-* | --with-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error $? "invalid package name: $ac_useropt"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=\$ac_optarg ;;
1215
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
1231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1249
1250 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1251 Try \`$0 --help' for more information"
1252 ;;
1253
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 case $ac_envvar in #(
1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
1259 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1260 esac
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1263
1264 *)
1265 # FIXME: should be removed in autoconf 3.0.
1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1270 ;;
1271
1272 esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 as_fn_error $? "missing argument to $ac_option"
1278 fi
1279
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 esac
1286 fi
1287
1288 # Check all directory arguments for consistency.
1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
1293 do
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1296 case $ac_val in
1297 */ )
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1300 esac
1301 # Be sure to have absolute directory names.
1302 case $ac_val in
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 esac
1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1307 done
1308
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1315
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1322 fi
1323 fi
1324
1325 ac_tool_prefix=
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328 test "$silent" = yes && exec 6>/dev/null
1329
1330
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 as_fn_error $? "working directory cannot be determined"
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 as_fn_error $? "pwd does not report name of working directory"
1337
1338
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$as_myself" ||
1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$as_myself" : 'X\(//\)[^/]' \| \
1346 X"$as_myself" : 'X\(//\)$' \| \
1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348 $as_echo X"$as_myself" |
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)[^/].*/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\).*/{
1362 s//\1/
1363 q
1364 }
1365 s/.*/./; q'`
1366 srcdir=$ac_confdir
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 srcdir=..
1369 fi
1370 else
1371 ac_srcdir_defaulted=no
1372 fi
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1376 fi
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1380 pwd)`
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 srcdir=.
1384 fi
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1388 case $srcdir in
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 esac
1391 for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 done
1397
1398 #
1399 # Report the --help message.
1400 #
1401 if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1404 cat <<_ACEOF
1405 \`configure' configures opus 1.3 to adapt to many kinds of systems.
1406
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE. See below for descriptions of some of the useful variables.
1411
1412 Defaults for the options are specified in brackets.
1413
1414 Configuration:
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print \`checking ...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424
1425 Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 [PREFIX]
1430
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1435
1436 For better control, use the options below.
1437
1438 Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --libdir=DIR object code libraries [EPREFIX/lib]
1446 --includedir=DIR C header files [PREFIX/include]
1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --infodir=DIR info documentation [DATAROOTDIR/info]
1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452 --mandir=DIR man documentation [DATAROOTDIR/man]
1453 --docdir=DIR documentation root [DATAROOTDIR/doc/opus]
1454 --htmldir=DIR html documentation [DOCDIR]
1455 --dvidir=DIR dvi documentation [DOCDIR]
1456 --pdfdir=DIR pdf documentation [DOCDIR]
1457 --psdir=DIR ps documentation [DOCDIR]
1458 _ACEOF
1459
1460 cat <<\_ACEOF
1461
1462 Program names:
1463 --program-prefix=PREFIX prepend PREFIX to installed program names
1464 --program-suffix=SUFFIX append SUFFIX to installed program names
1465 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1466
1467 System types:
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470 _ACEOF
1471 fi
1472
1473 if test -n "$ac_init_help"; then
1474 case $ac_init_help in
1475 short | recursive ) echo "Configuration of opus 1.3:";;
1476 esac
1477 cat <<\_ACEOF
1478
1479 Optional Features:
1480 --disable-option-checking ignore unrecognized --enable/--with options
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --enable-silent-rules less verbose build output (undo: "make V=1")
1484 --disable-silent-rules verbose build output (undo: "make V=0")
1485 --disable-maintainer-mode
1486 disable make rules and dependencies not useful (and
1487 sometimes confusing) to the casual installer
1488 --enable-shared[=PKGS] build shared libraries [default=yes]
1489 --enable-static[=PKGS] build static libraries [default=yes]
1490 --enable-fast-install[=PKGS]
1491 optimize for fast installation [default=yes]
1492 --enable-dependency-tracking
1493 do not reject slow dependency extractors
1494 --disable-dependency-tracking
1495 speeds up one-time build
1496 --disable-libtool-lock avoid locking (might break parallel builds)
1497 --enable-fixed-point compile without floating point (for machines without
1498 a fast enough FPU)
1499 --enable-fixed-point-debug
1500 debug fixed-point implementation
1501 --disable-float-api compile without the floating point API (for machines
1502 with no float library)
1503 --enable-custom-modes enable non-Opus modes, e.g. 44.1 kHz & 2^n frames
1504 --enable-float-approx enable fast approximations for floating point
1505 --disable-asm Disable assembly optimizations
1506 --disable-rtcd Disable run-time CPU capabilities detection
1507 --disable-intrinsics Disable intrinsics optimizations
1508 --enable-assertions enable additional software error checking
1509 --disable-hardening disable run-time checks that are cheap and safe for
1510 use in production
1511 --enable-fuzzing causes the encoder to make random decisions (do not
1512 use in production)
1513 --enable-check-asm enable bit-exactness checks between optimized and c
1514 implementations
1515 --disable-doc Do not build API documentation
1516 --disable-extra-programs
1517 Do not build extra programs (demo and tests)
1518 --disable-rfc8251 Disable bitstream fixes from RFC 8251
1519 --disable-stack-protector
1520 Disable compiler stack hardening
1521
1522 Optional Packages:
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1526 both]
1527 --with-aix-soname=aix|svr4|both
1528 shared library versioning (aka "SONAME") variant to
1529 provide on AIX, [default=aix].
1530 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1531 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1532 compiler's sysroot if not specified).
1533 --with-NE10=PFX Prefix where libNE10 is installed (optional)
1534 --with-NE10-libraries=DIR
1535 Directory where libNE10 library is installed
1536 (optional)
1537 --with-NE10-includes=DIR
1538 Directory where libNE10 header files are installed
1539 (optional)
1540
1541 Some influential environment variables:
1542 CC C compiler command
1543 CFLAGS C compiler flags
1544 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1545 nonstandard directory <lib dir>
1546 LIBS libraries to pass to the linker, e.g. -l<library>
1547 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1548 you have headers in a nonstandard directory <include dir>
1549 LT_SYS_LIBRARY_PATH
1550 User-defined run-time library search path.
1551 CPP C preprocessor
1552 CCAS assembler compiler command (defaults to CC)
1553 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1554 X86_SSE_CFLAGS
1555 C compiler flags to compile SSE intrinsics [default=-msse]
1556 X86_SSE2_CFLAGS
1557 C compiler flags to compile SSE2 intrinsics [default=-msse2]
1558 X86_SSE4_1_CFLAGS
1559 C compiler flags to compile SSE4.1 intrinsics [default=-msse4.1]
1560 X86_AVX_CFLAGS
1561 C compiler flags to compile AVX intrinsics [default=-mavx]
1562 ARM_NEON_INTR_CFLAGS
1563 C compiler flags to compile ARM NEON intrinsics
1564 [default=-mfpu=neon / -mfpu=neon -mfloat-abi=softfp]
1565
1566 Use these variables to override the choices made by `configure' or to help
1567 it to find libraries and programs with nonstandard names/locations.
1568
1569 Report bugs to <opus@xiph.org>.
1570 _ACEOF
1571 ac_status=$?
1572 fi
1573
1574 if test "$ac_init_help" = "recursive"; then
1575 # If there are subdirs, report their specific --help.
1576 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577 test -d "$ac_dir" ||
1578 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579 continue
1580 ac_builddir=.
1581
1582 case "$ac_dir" in
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *)
1585 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1586 # A ".." for each directory in $ac_dir_suffix.
1587 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588 case $ac_top_builddir_sub in
1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591 esac ;;
1592 esac
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1597
1598 case $srcdir in
1599 .) # We are building in place.
1600 ac_srcdir=.
1601 ac_top_srcdir=$ac_top_builddir_sub
1602 ac_abs_top_srcdir=$ac_pwd ;;
1603 [\\/]* | ?:[\\/]* ) # Absolute name.
1604 ac_srcdir=$srcdir$ac_dir_suffix;
1605 ac_top_srcdir=$srcdir
1606 ac_abs_top_srcdir=$srcdir ;;
1607 *) # Relative name.
1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609 ac_top_srcdir=$ac_top_build_prefix$srcdir
1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 esac
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614 cd "$ac_dir" || { ac_status=$?; continue; }
1615 # Check for guested configure.
1616 if test -f "$ac_srcdir/configure.gnu"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619 elif test -f "$ac_srcdir/configure"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure" --help=recursive
1622 else
1623 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 fi || ac_status=$?
1625 cd "$ac_pwd" || { ac_status=$?; break; }
1626 done
1627 fi
1628
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1631 cat <<\_ACEOF
1632 opus configure 1.3
1633 generated by GNU Autoconf 2.69
1634
1635 Copyright (C) 2012 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1638 _ACEOF
1639 exit
1640 fi
1641
1642 ## ------------------------ ##
1643 ## Autoconf initialization. ##
1644 ## ------------------------ ##
1645
1646 # ac_fn_c_try_compile LINENO
1647 # --------------------------
1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_compile ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext
1653 if { { ac_try="$ac_compile"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_compile") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest.$ac_objext; then :
1672 ac_retval=0
1673 else
1674 $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677 ac_retval=1
1678 fi
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_compile
1683
1684 # ac_fn_c_try_link LINENO
1685 # -----------------------
1686 # Try to link conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_link ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 rm -f conftest.$ac_objext conftest$ac_exeext
1691 if { { ac_try="$ac_link"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_link") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && {
1707 test -z "$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 } && test -s conftest$ac_exeext && {
1710 test "$cross_compiling" = yes ||
1711 test -x conftest$ac_exeext
1712 }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719 fi
1720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1722 # interfere with the next link command; also delete a directory that is
1723 # left behind by Apple's compiler. We do this before executing the actions.
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_link
1729
1730 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1731 # -------------------------------------------------------
1732 # Tests whether HEADER exists and can be compiled using the include files in
1733 # INCLUDES, setting the cache variable VAR accordingly.
1734 ac_fn_c_check_header_compile ()
1735 {
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740 $as_echo_n "(cached) " >&6
1741 else
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1744 $4
1745 #include <$2>
1746 _ACEOF
1747 if ac_fn_c_try_compile "$LINENO"; then :
1748 eval "$3=yes"
1749 else
1750 eval "$3=no"
1751 fi
1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753 fi
1754 eval ac_res=\$$3
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758
1759 } # ac_fn_c_check_header_compile
1760
1761 # ac_fn_c_try_cpp LINENO
1762 # ----------------------
1763 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_c_try_cpp ()
1765 {
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 if { { ac_try="$ac_cpp conftest.$ac_ext"
1768 case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1775 ac_status=$?
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1780 fi
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } > conftest.i && {
1783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1785 }; then :
1786 ac_retval=0
1787 else
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791 ac_retval=1
1792 fi
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
1795
1796 } # ac_fn_c_try_cpp
1797
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801 # that executables *can* be run.
1802 ac_fn_c_try_run ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: program exited with status $ac_status" >&5
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=$ac_status
1833 fi
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_run
1839
1840 # ac_fn_c_check_func LINENO FUNC VAR
1841 # ----------------------------------
1842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1843 ac_fn_c_check_func ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1850 else
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1855 #define $2 innocuous_$2
1856
1857 /* System header to define __stub macros and hopefully few prototypes,
1858 which can conflict with char $2 (); below.
1859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1860 <limits.h> exists even on freestanding compilers. */
1861
1862 #ifdef __STDC__
1863 # include <limits.h>
1864 #else
1865 # include <assert.h>
1866 #endif
1867
1868 #undef $2
1869
1870 /* Override any GCC internal prototype to avoid an error.
1871 Use char because int might match the return type of a GCC
1872 builtin and then its argument prototype would still apply. */
1873 #ifdef __cplusplus
1874 extern "C"
1875 #endif
1876 char $2 ();
1877 /* The GNU C library defines this for functions which it implements
1878 to always fail with ENOSYS. Some functions are actually named
1879 something starting with __ and the normal name is an alias. */
1880 #if defined __stub_$2 || defined __stub___$2
1881 choke me
1882 #endif
1883
1884 int
1885 main ()
1886 {
1887 return $2 ();
1888 ;
1889 return 0;
1890 }
1891 _ACEOF
1892 if ac_fn_c_try_link "$LINENO"; then :
1893 eval "$3=yes"
1894 else
1895 eval "$3=no"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext \
1898 conftest$ac_exeext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905 } # ac_fn_c_check_func
1906
1907 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1908 # -------------------------------------------------------
1909 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1910 # the include files in INCLUDES and setting the cache variable VAR
1911 # accordingly.
1912 ac_fn_c_check_header_mongrel ()
1913 {
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 if eval \${$3+:} false; then :
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919 $as_echo_n "(cached) " >&6
1920 fi
1921 eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 else
1925 # Is the header compilable?
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1927 $as_echo_n "checking $2 usability... " >&6; }
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 $4
1931 #include <$2>
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 ac_header_compiler=yes
1935 else
1936 ac_header_compiler=no
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1940 $as_echo "$ac_header_compiler" >&6; }
1941
1942 # Is the header present?
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1944 $as_echo_n "checking $2 presence... " >&6; }
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 #include <$2>
1948 _ACEOF
1949 if ac_fn_c_try_cpp "$LINENO"; then :
1950 ac_header_preproc=yes
1951 else
1952 ac_header_preproc=no
1953 fi
1954 rm -f conftest.err conftest.i conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1956 $as_echo "$ac_header_preproc" >&6; }
1957
1958 # So? What about this header?
1959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1960 yes:no: )
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1962 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1964 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965 ;;
1966 no:yes:* )
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1968 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1970 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1972 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1974 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977 ( $as_echo "## ---------------------------- ##
1978 ## Report this to opus@xiph.org ##
1979 ## ---------------------------- ##"
1980 ) | sed "s/^/$as_me: WARNING: /" >&2
1981 ;;
1982 esac
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986 $as_echo_n "(cached) " >&6
1987 else
1988 eval "$3=\$ac_header_compiler"
1989 fi
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 fi
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996 } # ac_fn_c_check_header_mongrel
1997 cat >config.log <<_ACEOF
1998 This file contains any messages produced by compilers while
1999 running configure, to aid debugging if configure makes a mistake.
2000
2001 It was created by opus $as_me 1.3, which was
2002 generated by GNU Autoconf 2.69. Invocation command line was
2003
2004 $ $0 $@
2005
2006 _ACEOF
2007 exec 5>>config.log
2008 {
2009 cat <<_ASUNAME
2010 ## --------- ##
2011 ## Platform. ##
2012 ## --------- ##
2013
2014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2019
2020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2022
2023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2026 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2030
2031 _ASUNAME
2032
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2035 do
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 $as_echo "PATH: $as_dir"
2039 done
2040 IFS=$as_save_IFS
2041
2042 } >&5
2043
2044 cat >&5 <<_ACEOF
2045
2046
2047 ## ----------- ##
2048 ## Core tests. ##
2049 ## ----------- ##
2050
2051 _ACEOF
2052
2053
2054 # Keep a trace of the command line.
2055 # Strip out --no-create and --no-recursion so they do not pile up.
2056 # Strip out --silent because we don't want to record it for future runs.
2057 # Also quote any args containing shell meta-characters.
2058 # Make two passes to allow for proper duplicate-argument suppression.
2059 ac_configure_args=
2060 ac_configure_args0=
2061 ac_configure_args1=
2062 ac_must_keep_next=false
2063 for ac_pass in 1 2
2064 do
2065 for ac_arg
2066 do
2067 case $ac_arg in
2068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2070 | -silent | --silent | --silen | --sile | --sil)
2071 continue ;;
2072 *\'*)
2073 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2074 esac
2075 case $ac_pass in
2076 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2077 2)
2078 as_fn_append ac_configure_args1 " '$ac_arg'"
2079 if test $ac_must_keep_next = true; then
2080 ac_must_keep_next=false # Got value, back to normal.
2081 else
2082 case $ac_arg in
2083 *=* | --config-cache | -C | -disable-* | --disable-* \
2084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2086 | -with-* | --with-* | -without-* | --without-* | --x)
2087 case "$ac_configure_args0 " in
2088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2089 esac
2090 ;;
2091 -* ) ac_must_keep_next=true ;;
2092 esac
2093 fi
2094 as_fn_append ac_configure_args " '$ac_arg'"
2095 ;;
2096 esac
2097 done
2098 done
2099 { ac_configure_args0=; unset ac_configure_args0;}
2100 { ac_configure_args1=; unset ac_configure_args1;}
2101
2102 # When interrupted or exit'd, cleanup temporary files, and complete
2103 # config.log. We remove comments because anyway the quotes in there
2104 # would cause problems or look ugly.
2105 # WARNING: Use '\'' to represent an apostrophe within the trap.
2106 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2107 trap 'exit_status=$?
2108 # Save into config.log some information that might help in debugging.
2109 {
2110 echo
2111
2112 $as_echo "## ---------------- ##
2113 ## Cache variables. ##
2114 ## ---------------- ##"
2115 echo
2116 # The following way of writing the cache mishandles newlines in values,
2117 (
2118 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2119 eval ac_val=\$$ac_var
2120 case $ac_val in #(
2121 *${as_nl}*)
2122 case $ac_var in #(
2123 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2125 esac
2126 case $ac_var in #(
2127 _ | IFS | as_nl) ;; #(
2128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2129 *) { eval $ac_var=; unset $ac_var;} ;;
2130 esac ;;
2131 esac
2132 done
2133 (set) 2>&1 |
2134 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2135 *${as_nl}ac_space=\ *)
2136 sed -n \
2137 "s/'\''/'\''\\\\'\'''\''/g;
2138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2139 ;; #(
2140 *)
2141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2142 ;;
2143 esac |
2144 sort
2145 )
2146 echo
2147
2148 $as_echo "## ----------------- ##
2149 ## Output variables. ##
2150 ## ----------------- ##"
2151 echo
2152 for ac_var in $ac_subst_vars
2153 do
2154 eval ac_val=\$$ac_var
2155 case $ac_val in
2156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 esac
2158 $as_echo "$ac_var='\''$ac_val'\''"
2159 done | sort
2160 echo
2161
2162 if test -n "$ac_subst_files"; then
2163 $as_echo "## ------------------- ##
2164 ## File substitutions. ##
2165 ## ------------------- ##"
2166 echo
2167 for ac_var in $ac_subst_files
2168 do
2169 eval ac_val=\$$ac_var
2170 case $ac_val in
2171 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 esac
2173 $as_echo "$ac_var='\''$ac_val'\''"
2174 done | sort
2175 echo
2176 fi
2177
2178 if test -s confdefs.h; then
2179 $as_echo "## ----------- ##
2180 ## confdefs.h. ##
2181 ## ----------- ##"
2182 echo
2183 cat confdefs.h
2184 echo
2185 fi
2186 test "$ac_signal" != 0 &&
2187 $as_echo "$as_me: caught signal $ac_signal"
2188 $as_echo "$as_me: exit $exit_status"
2189 } >&5
2190 rm -f core *.core core.conftest.* &&
2191 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2192 exit $exit_status
2193 ' 0
2194 for ac_signal in 1 2 13 15; do
2195 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2196 done
2197 ac_signal=0
2198
2199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2200 rm -f -r conftest* confdefs.h
2201
2202 $as_echo "/* confdefs.h */" > confdefs.h
2203
2204 # Predefined preprocessor variables.
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_NAME "$PACKAGE_NAME"
2208 _ACEOF
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2212 _ACEOF
2213
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2216 _ACEOF
2217
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_STRING "$PACKAGE_STRING"
2220 _ACEOF
2221
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2224 _ACEOF
2225
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_URL "$PACKAGE_URL"
2228 _ACEOF
2229
2230
2231 # Let the site file select an alternate cache file if it wants to.
2232 # Prefer an explicitly selected file to automatically selected ones.
2233 ac_site_file1=NONE
2234 ac_site_file2=NONE
2235 if test -n "$CONFIG_SITE"; then
2236 # We do not want a PATH search for config.site.
2237 case $CONFIG_SITE in #((
2238 -*) ac_site_file1=./$CONFIG_SITE;;
2239 */*) ac_site_file1=$CONFIG_SITE;;
2240 *) ac_site_file1=./$CONFIG_SITE;;
2241 esac
2242 elif test "x$prefix" != xNONE; then
2243 ac_site_file1=$prefix/share/config.site
2244 ac_site_file2=$prefix/etc/config.site
2245 else
2246 ac_site_file1=$ac_default_prefix/share/config.site
2247 ac_site_file2=$ac_default_prefix/etc/config.site
2248 fi
2249 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2250 do
2251 test "x$ac_site_file" = xNONE && continue
2252 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2254 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2255 sed 's/^/| /' "$ac_site_file" >&5
2256 . "$ac_site_file" \
2257 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259 as_fn_error $? "failed to load site script $ac_site_file
2260 See \`config.log' for more details" "$LINENO" 5; }
2261 fi
2262 done
2263
2264 if test -r "$cache_file"; then
2265 # Some versions of bash will fail to source /dev/null (special files
2266 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2267 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2269 $as_echo "$as_me: loading cache $cache_file" >&6;}
2270 case $cache_file in
2271 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2272 *) . "./$cache_file";;
2273 esac
2274 fi
2275 else
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2277 $as_echo "$as_me: creating cache $cache_file" >&6;}
2278 >$cache_file
2279 fi
2280
2281 # Check that the precious variables saved in the cache have kept the same
2282 # value.
2283 ac_cache_corrupted=false
2284 for ac_var in $ac_precious_vars; do
2285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2286 eval ac_new_set=\$ac_env_${ac_var}_set
2287 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2288 eval ac_new_val=\$ac_env_${ac_var}_value
2289 case $ac_old_set,$ac_new_set in
2290 set,)
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2292 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2293 ac_cache_corrupted=: ;;
2294 ,set)
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2296 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2297 ac_cache_corrupted=: ;;
2298 ,);;
2299 *)
2300 if test "x$ac_old_val" != "x$ac_new_val"; then
2301 # differences in whitespace do not lead to failure.
2302 ac_old_val_w=`echo x $ac_old_val`
2303 ac_new_val_w=`echo x $ac_new_val`
2304 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2306 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2307 ac_cache_corrupted=:
2308 else
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2310 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2311 eval $ac_var=\$ac_old_val
2312 fi
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2314 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2316 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2317 fi;;
2318 esac
2319 # Pass precious variables to config.status.
2320 if test "$ac_new_set" = set; then
2321 case $ac_new_val in
2322 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2323 *) ac_arg=$ac_var=$ac_new_val ;;
2324 esac
2325 case " $ac_configure_args " in
2326 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2327 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2328 esac
2329 fi
2330 done
2331 if $ac_cache_corrupted; then
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2335 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2336 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2337 fi
2338 ## -------------------- ##
2339 ## Main body of script. ##
2340 ## -------------------- ##
2341
2342 ac_ext=c
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347
2348
2349
2350
2351
2352
2353 # Check whether --enable-silent-rules was given.
2354 if test "${enable_silent_rules+set}" = set; then :
2355 enableval=$enable_silent_rules;
2356 fi
2357
2358 case $enable_silent_rules in # (((
2359 yes) AM_DEFAULT_VERBOSITY=0;;
2360 no) AM_DEFAULT_VERBOSITY=1;;
2361 *) AM_DEFAULT_VERBOSITY=0;;
2362 esac
2363 am_make=${MAKE-make}
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2365 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2366 if ${am_cv_make_support_nested_variables+:} false; then :
2367 $as_echo_n "(cached) " >&6
2368 else
2369 if $as_echo 'TRUE=$(BAR$(V))
2370 BAR0=false
2371 BAR1=true
2372 V=1
2373 am__doit:
2374 @$(TRUE)
2375 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2376 am_cv_make_support_nested_variables=yes
2377 else
2378 am_cv_make_support_nested_variables=no
2379 fi
2380 fi
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2382 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2383 if test $am_cv_make_support_nested_variables = yes; then
2384 AM_V='$(V)'
2385 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2386 else
2387 AM_V=$AM_DEFAULT_VERBOSITY
2388 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2389 fi
2390 AM_BACKSLASH='\'
2391
2392
2393 # For libtool.
2394 OPUS_LT_CURRENT=7
2395 OPUS_LT_REVISION=0
2396 OPUS_LT_AGE=7
2397
2398
2399
2400
2401
2402 am__api_version='1.15'
2403
2404 ac_aux_dir=
2405 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2406 if test -f "$ac_dir/install-sh"; then
2407 ac_aux_dir=$ac_dir
2408 ac_install_sh="$ac_aux_dir/install-sh -c"
2409 break
2410 elif test -f "$ac_dir/install.sh"; then
2411 ac_aux_dir=$ac_dir
2412 ac_install_sh="$ac_aux_dir/install.sh -c"
2413 break
2414 elif test -f "$ac_dir/shtool"; then
2415 ac_aux_dir=$ac_dir
2416 ac_install_sh="$ac_aux_dir/shtool install -c"
2417 break
2418 fi
2419 done
2420 if test -z "$ac_aux_dir"; then
2421 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2422 fi
2423
2424 # These three variables are undocumented and unsupported,
2425 # and are intended to be withdrawn in a future Autoconf release.
2426 # They can cause serious problems if a builder's source tree is in a directory
2427 # whose full name contains unusual characters.
2428 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2429 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2430 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2431
2432
2433 # Find a good install program. We prefer a C program (faster),
2434 # so one script is as good as another. But avoid the broken or
2435 # incompatible versions:
2436 # SysV /etc/install, /usr/sbin/install
2437 # SunOS /usr/etc/install
2438 # IRIX /sbin/install
2439 # AIX /bin/install
2440 # AmigaOS /C/install, which installs bootblocks on floppy discs
2441 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2442 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2443 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2444 # OS/2's system install, which has a completely different semantic
2445 # ./install, which can be erroneously created by make from ./install.sh.
2446 # Reject install programs that cannot install multiple files.
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2448 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2449 if test -z "$INSTALL"; then
2450 if ${ac_cv_path_install+:} false; then :
2451 $as_echo_n "(cached) " >&6
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 # Account for people who put trailing slashes in PATH elements.
2459 case $as_dir/ in #((
2460 ./ | .// | /[cC]/* | \
2461 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2462 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2463 /usr/ucb/* ) ;;
2464 *)
2465 # OSF1 and SCO ODT 3.0 have their own names for install.
2466 # Don't use installbsd from OSF since it installs stuff as root
2467 # by default.
2468 for ac_prog in ginstall scoinst install; do
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2471 if test $ac_prog = install &&
2472 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2473 # AIX install. It has an incompatible calling convention.
2474 :
2475 elif test $ac_prog = install &&
2476 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2477 # program-specific install script used by HP pwplus--don't use.
2478 :
2479 else
2480 rm -rf conftest.one conftest.two conftest.dir
2481 echo one > conftest.one
2482 echo two > conftest.two
2483 mkdir conftest.dir
2484 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2485 test -s conftest.one && test -s conftest.two &&
2486 test -s conftest.dir/conftest.one &&
2487 test -s conftest.dir/conftest.two
2488 then
2489 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2490 break 3
2491 fi
2492 fi
2493 fi
2494 done
2495 done
2496 ;;
2497 esac
2498
2499 done
2500 IFS=$as_save_IFS
2501
2502 rm -rf conftest.one conftest.two conftest.dir
2503
2504 fi
2505 if test "${ac_cv_path_install+set}" = set; then
2506 INSTALL=$ac_cv_path_install
2507 else
2508 # As a last resort, use the slow shell script. Don't cache a
2509 # value for INSTALL within a source directory, because that will
2510 # break other packages using the cache if that directory is
2511 # removed, or if the value is a relative name.
2512 INSTALL=$ac_install_sh
2513 fi
2514 fi
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2516 $as_echo "$INSTALL" >&6; }
2517
2518 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2519 # It thinks the first close brace ends the variable substitution.
2520 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2521
2522 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2523
2524 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2525
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2527 $as_echo_n "checking whether build environment is sane... " >&6; }
2528 # Reject unsafe characters in $srcdir or the absolute working directory
2529 # name. Accept space and tab only in the latter.
2530 am_lf='
2531 '
2532 case `pwd` in
2533 *[\\\"\#\$\&\'\`$am_lf]*)
2534 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2535 esac
2536 case $srcdir in
2537 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2538 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2539 esac
2540
2541 # Do 'set' in a subshell so we don't clobber the current shell's
2542 # arguments. Must try -L first in case configure is actually a
2543 # symlink; some systems play weird games with the mod time of symlinks
2544 # (eg FreeBSD returns the mod time of the symlink's containing
2545 # directory).
2546 if (
2547 am_has_slept=no
2548 for am_try in 1 2; do
2549 echo "timestamp, slept: $am_has_slept" > conftest.file
2550 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2551 if test "$*" = "X"; then
2552 # -L didn't work.
2553 set X `ls -t "$srcdir/configure" conftest.file`
2554 fi
2555 if test "$*" != "X $srcdir/configure conftest.file" \
2556 && test "$*" != "X conftest.file $srcdir/configure"; then
2557
2558 # If neither matched, then we have a broken ls. This can happen
2559 # if, for instance, CONFIG_SHELL is bash and it inherits a
2560 # broken ls alias from the environment. This has actually
2561 # happened. Such a system could not be considered "sane".
2562 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2563 alias in your environment" "$LINENO" 5
2564 fi
2565 if test "$2" = conftest.file || test $am_try -eq 2; then
2566 break
2567 fi
2568 # Just in case.
2569 sleep 1
2570 am_has_slept=yes
2571 done
2572 test "$2" = conftest.file
2573 )
2574 then
2575 # Ok.
2576 :
2577 else
2578 as_fn_error $? "newly created file is older than distributed files!
2579 Check your system clock" "$LINENO" 5
2580 fi
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2582 $as_echo "yes" >&6; }
2583 # If we didn't sleep, we still need to ensure time stamps of config.status and
2584 # generated files are strictly newer.
2585 am_sleep_pid=
2586 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2587 ( sleep 1 ) &
2588 am_sleep_pid=$!
2589 fi
2590
2591 rm -f conftest.file
2592
2593 test "$program_prefix" != NONE &&
2594 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2595 # Use a double $ so make ignores it.
2596 test "$program_suffix" != NONE &&
2597 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2598 # Double any \ or $.
2599 # By default was `s,x,x', remove it if useless.
2600 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2601 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2602
2603 # Expand $ac_aux_dir to an absolute path.
2604 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2605
2606 if test x"${MISSING+set}" != xset; then
2607 case $am_aux_dir in
2608 *\ * | *\ *)
2609 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2610 *)
2611 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2612 esac
2613 fi
2614 # Use eval to expand $SHELL
2615 if eval "$MISSING --is-lightweight"; then
2616 am_missing_run="$MISSING "
2617 else
2618 am_missing_run=
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2620 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2621 fi
2622
2623 if test x"${install_sh+set}" != xset; then
2624 case $am_aux_dir in
2625 *\ * | *\ *)
2626 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2627 *)
2628 install_sh="\${SHELL} $am_aux_dir/install-sh"
2629 esac
2630 fi
2631
2632 # Installed binaries are usually stripped using 'strip' when the user
2633 # run "make install-strip". However 'strip' might not be the right
2634 # tool to use in cross-compilation environments, therefore Automake
2635 # will honor the 'STRIP' environment variable to overrule this program.
2636 if test "$cross_compiling" != no; then
2637 if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2639 set dummy ${ac_tool_prefix}strip; ac_word=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if ${ac_cv_prog_STRIP+:} false; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 if test -n "$STRIP"; then
2646 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2658 fi
2659 done
2660 done
2661 IFS=$as_save_IFS
2662
2663 fi
2664 fi
2665 STRIP=$ac_cv_prog_STRIP
2666 if test -n "$STRIP"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2668 $as_echo "$STRIP" >&6; }
2669 else
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2672 fi
2673
2674
2675 fi
2676 if test -z "$ac_cv_prog_STRIP"; then
2677 ac_ct_STRIP=$STRIP
2678 # Extract the first word of "strip", so it can be a program name with args.
2679 set dummy strip; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test -n "$ac_ct_STRIP"; then
2686 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_ac_ct_STRIP="strip"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699 done
2700 done
2701 IFS=$as_save_IFS
2702
2703 fi
2704 fi
2705 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2706 if test -n "$ac_ct_STRIP"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2708 $as_echo "$ac_ct_STRIP" >&6; }
2709 else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2712 fi
2713
2714 if test "x$ac_ct_STRIP" = x; then
2715 STRIP=":"
2716 else
2717 case $cross_compiling:$ac_tool_warned in
2718 yes:)
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2721 ac_tool_warned=yes ;;
2722 esac
2723 STRIP=$ac_ct_STRIP
2724 fi
2725 else
2726 STRIP="$ac_cv_prog_STRIP"
2727 fi
2728
2729 fi
2730 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2731
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2733 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2734 if test -z "$MKDIR_P"; then
2735 if ${ac_cv_path_mkdir+:} false; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2740 do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_prog in mkdir gmkdir; do
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2746 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2747 'mkdir (GNU coreutils) '* | \
2748 'mkdir (coreutils) '* | \
2749 'mkdir (fileutils) '4.1*)
2750 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2751 break 3;;
2752 esac
2753 done
2754 done
2755 done
2756 IFS=$as_save_IFS
2757
2758 fi
2759
2760 test -d ./--version && rmdir ./--version
2761 if test "${ac_cv_path_mkdir+set}" = set; then
2762 MKDIR_P="$ac_cv_path_mkdir -p"
2763 else
2764 # As a last resort, use the slow shell script. Don't cache a
2765 # value for MKDIR_P within a source directory, because that will
2766 # break other packages using the cache if that directory is
2767 # removed, or if the value is a relative name.
2768 MKDIR_P="$ac_install_sh -d"
2769 fi
2770 fi
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2772 $as_echo "$MKDIR_P" >&6; }
2773
2774 for ac_prog in gawk mawk nawk awk
2775 do
2776 # Extract the first word of "$ac_prog", so it can be a program name with args.
2777 set dummy $ac_prog; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if ${ac_cv_prog_AWK+:} false; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 if test -n "$AWK"; then
2784 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793 ac_cv_prog_AWK="$ac_prog"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797 done
2798 done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 AWK=$ac_cv_prog_AWK
2804 if test -n "$AWK"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2806 $as_echo "$AWK" >&6; }
2807 else
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2810 fi
2811
2812
2813 test -n "$AWK" && break
2814 done
2815
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2817 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2818 set x ${MAKE-make}
2819 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2820 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 cat >conftest.make <<\_ACEOF
2824 SHELL = /bin/sh
2825 all:
2826 @echo '@@@%%%=$(MAKE)=@@@%%%'
2827 _ACEOF
2828 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2829 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2830 *@@@%%%=?*=@@@%%%*)
2831 eval ac_cv_prog_make_${ac_make}_set=yes;;
2832 *)
2833 eval ac_cv_prog_make_${ac_make}_set=no;;
2834 esac
2835 rm -f conftest.make
2836 fi
2837 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2839 $as_echo "yes" >&6; }
2840 SET_MAKE=
2841 else
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2844 SET_MAKE="MAKE=${MAKE-make}"
2845 fi
2846
2847 rm -rf .tst 2>/dev/null
2848 mkdir .tst 2>/dev/null
2849 if test -d .tst; then
2850 am__leading_dot=.
2851 else
2852 am__leading_dot=_
2853 fi
2854 rmdir .tst 2>/dev/null
2855
2856 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2857 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2858 # is not polluted with repeated "-I."
2859 am__isrc=' -I$(srcdir)'
2860 # test to see if srcdir already configured
2861 if test -f $srcdir/config.status; then
2862 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2863 fi
2864 fi
2865
2866 # test whether we have cygpath
2867 if test -z "$CYGPATH_W"; then
2868 if (cygpath --version) >/dev/null 2>/dev/null; then
2869 CYGPATH_W='cygpath -w'
2870 else
2871 CYGPATH_W=echo
2872 fi
2873 fi
2874
2875
2876 # Define the identity of the package.
2877 PACKAGE='opus'
2878 VERSION='1.3'
2879
2880
2881 # Some tools Automake needs.
2882
2883 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2884
2885
2886 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2887
2888
2889 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2890
2891
2892 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2893
2894
2895 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2896
2897 # For better backward compatibility. To be removed once Automake 1.9.x
2898 # dies out for good. For more background, see:
2899 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2900 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2901 mkdir_p='$(MKDIR_P)'
2902
2903 # We need awk for the "check" target (and possibly the TAP driver). The
2904 # system "awk" is bad on some platforms.
2905 # Always define AMTAR for backward compatibility. Yes, it's still used
2906 # in the wild :-( We should find a proper way to deprecate it ...
2907 AMTAR='$${TAR-tar}'
2908
2909
2910 # We'll loop over all known methods to create a tar archive until one works.
2911 _am_tools='gnutar pax cpio none'
2912
2913 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2914
2915
2916
2917
2918
2919
2920 # POSIX will say in a future version that running "rm -f" with no argument
2921 # is OK; and we want to be able to make that assumption in our Makefile
2922 # recipes. So use an aggressive probe to check that the usage we want is
2923 # actually supported "in the wild" to an acceptable degree.
2924 # See automake bug#10828.
2925 # To make any issue more visible, cause the running configure to be aborted
2926 # by default if the 'rm' program in use doesn't match our expectations; the
2927 # user can still override this though.
2928 if rm -f && rm -fr && rm -rf; then : OK; else
2929 cat >&2 <<'END'
2930 Oops!
2931
2932 Your 'rm' program seems unable to run without file operands specified
2933 on the command line, even when the '-f' option is present. This is contrary
2934 to the behaviour of most rm programs out there, and not conforming with
2935 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2936
2937 Please tell bug-automake@gnu.org about your system, including the value
2938 of your $PATH and any error possibly output before this message. This
2939 can help us improve future automake versions.
2940
2941 END
2942 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2943 echo 'Configuration will proceed anyway, since you have set the' >&2
2944 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2945 echo >&2
2946 else
2947 cat >&2 <<'END'
2948 Aborting the configuration process, to ensure you take notice of the issue.
2949
2950 You can download and install GNU coreutils to get an 'rm' implementation
2951 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2952
2953 If you want to complete the configuration process using your problematic
2954 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2955 to "yes", and re-run configure.
2956
2957 END
2958 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2959 fi
2960 fi
2961
2962
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2964 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2965 # Check whether --enable-maintainer-mode was given.
2966 if test "${enable_maintainer_mode+set}" = set; then :
2967 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2968 else
2969 USE_MAINTAINER_MODE=yes
2970 fi
2971
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2973 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2974 if test $USE_MAINTAINER_MODE = yes; then
2975 MAINTAINER_MODE_TRUE=
2976 MAINTAINER_MODE_FALSE='#'
2977 else
2978 MAINTAINER_MODE_TRUE='#'
2979 MAINTAINER_MODE_FALSE=
2980 fi
2981
2982 MAINT=$MAINTAINER_MODE_TRUE
2983
2984
2985
2986 # Make sure we can run config.sub.
2987 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2988 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2989
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2991 $as_echo_n "checking build system type... " >&6; }
2992 if ${ac_cv_build+:} false; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 ac_build_alias=$build_alias
2996 test "x$ac_build_alias" = x &&
2997 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2998 test "x$ac_build_alias" = x &&
2999 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3000 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3001 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3002
3003 fi
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3005 $as_echo "$ac_cv_build" >&6; }
3006 case $ac_cv_build in
3007 *-*-*) ;;
3008 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3009 esac
3010 build=$ac_cv_build
3011 ac_save_IFS=$IFS; IFS='-'
3012 set x $ac_cv_build
3013 shift
3014 build_cpu=$1
3015 build_vendor=$2
3016 shift; shift
3017 # Remember, the first character of IFS is used to create $*,
3018 # except with old shells:
3019 build_os=$*
3020 IFS=$ac_save_IFS
3021 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3022
3023
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3025 $as_echo_n "checking host system type... " >&6; }
3026 if ${ac_cv_host+:} false; then :
3027 $as_echo_n "(cached) " >&6
3028 else
3029 if test "x$host_alias" = x; then
3030 ac_cv_host=$ac_cv_build
3031 else
3032 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3033 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3034 fi
3035
3036 fi
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3038 $as_echo "$ac_cv_host" >&6; }
3039 case $ac_cv_host in
3040 *-*-*) ;;
3041 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3042 esac
3043 host=$ac_cv_host
3044 ac_save_IFS=$IFS; IFS='-'
3045 set x $ac_cv_host
3046 shift
3047 host_cpu=$1
3048 host_vendor=$2
3049 shift; shift
3050 # Remember, the first character of IFS is used to create $*,
3051 # except with old shells:
3052 host_os=$*
3053 IFS=$ac_save_IFS
3054 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3055
3056
3057
3058 case $host_os in
3059 *mingw32* ) MINGW32=yes;;
3060 * ) MINGW32=no;;
3061 esac
3062
3063 case `pwd` in
3064 *\ * | *\ *)
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3066 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3067 esac
3068
3069
3070
3071 macro_version='2.4.6'
3072 macro_revision='2.4.6'
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086 ltmain=$ac_aux_dir/ltmain.sh
3087
3088 # Backslashify metacharacters that are still active within
3089 # double-quoted strings.
3090 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3091
3092 # Same as above, but do not quote variable references.
3093 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3094
3095 # Sed substitution to delay expansion of an escaped shell variable in a
3096 # double_quote_subst'ed string.
3097 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3098
3099 # Sed substitution to delay expansion of an escaped single quote.
3100 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3101
3102 # Sed substitution to avoid accidental globbing in evaled expressions
3103 no_glob_subst='s/\*/\\\*/g'
3104
3105 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3106 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3107 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3108
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3110 $as_echo_n "checking how to print strings... " >&6; }
3111 # Test print first, because it will be a builtin if present.
3112 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3113 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3114 ECHO='print -r --'
3115 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3116 ECHO='printf %s\n'
3117 else
3118 # Use this function as a fallback that always works.
3119 func_fallback_echo ()
3120 {
3121 eval 'cat <<_LTECHO_EOF
3122 $1
3123 _LTECHO_EOF'
3124 }
3125 ECHO='func_fallback_echo'
3126 fi
3127
3128 # func_echo_all arg...
3129 # Invoke $ECHO with all args, space-separated.
3130 func_echo_all ()
3131 {
3132 $ECHO ""
3133 }
3134
3135 case $ECHO in
3136 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3137 $as_echo "printf" >&6; } ;;
3138 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3139 $as_echo "print -r" >&6; } ;;
3140 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3141 $as_echo "cat" >&6; } ;;
3142 esac
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157 DEPDIR="${am__leading_dot}deps"
3158
3159 ac_config_commands="$ac_config_commands depfiles"
3160
3161
3162 am_make=${MAKE-make}
3163 cat > confinc << 'END'
3164 am__doit:
3165 @echo this is the am__doit target
3166 .PHONY: am__doit
3167 END
3168 # If we don't find an include directive, just comment out the code.
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3170 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3171 am__include="#"
3172 am__quote=
3173 _am_result=none
3174 # First try GNU make style include.
3175 echo "include confinc" > confmf
3176 # Ignore all kinds of additional output from 'make'.
3177 case `$am_make -s -f confmf 2> /dev/null` in #(
3178 *the\ am__doit\ target*)
3179 am__include=include
3180 am__quote=
3181 _am_result=GNU
3182 ;;
3183 esac
3184 # Now try BSD make style include.
3185 if test "$am__include" = "#"; then
3186 echo '.include "confinc"' > confmf
3187 case `$am_make -s -f confmf 2> /dev/null` in #(
3188 *the\ am__doit\ target*)
3189 am__include=.include
3190 am__quote="\""
3191 _am_result=BSD
3192 ;;
3193 esac
3194 fi
3195
3196
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3198 $as_echo "$_am_result" >&6; }
3199 rm -f confinc confmf
3200
3201 # Check whether --enable-dependency-tracking was given.
3202 if test "${enable_dependency_tracking+set}" = set; then :
3203 enableval=$enable_dependency_tracking;
3204 fi
3205
3206 if test "x$enable_dependency_tracking" != xno; then
3207 am_depcomp="$ac_aux_dir/depcomp"
3208 AMDEPBACKSLASH='\'
3209 am__nodep='_no'
3210 fi
3211 if test "x$enable_dependency_tracking" != xno; then
3212 AMDEP_TRUE=
3213 AMDEP_FALSE='#'
3214 else
3215 AMDEP_TRUE='#'
3216 AMDEP_FALSE=
3217 fi
3218
3219
3220 ac_ext=c
3221 ac_cpp='$CPP $CPPFLAGS'
3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225 if test -n "$ac_tool_prefix"; then
3226 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3227 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_CC+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3238 do
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3246 fi
3247 done
3248 done
3249 IFS=$as_save_IFS
3250
3251 fi
3252 fi
3253 CC=$ac_cv_prog_CC
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3260 fi
3261
3262
3263 fi
3264 if test -z "$ac_cv_prog_CC"; then
3265 ac_ct_CC=$CC
3266 # Extract the first word of "gcc", so it can be a program name with args.
3267 set dummy gcc; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 if test -n "$ac_ct_CC"; then
3274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_prog_ac_ct_CC="gcc"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3286 fi
3287 done
3288 done
3289 IFS=$as_save_IFS
3290
3291 fi
3292 fi
3293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3294 if test -n "$ac_ct_CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3296 $as_echo "$ac_ct_CC" >&6; }
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 fi
3301
3302 if test "x$ac_ct_CC" = x; then
3303 CC=""
3304 else
3305 case $cross_compiling:$ac_tool_warned in
3306 yes:)
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309 ac_tool_warned=yes ;;
3310 esac
3311 CC=$ac_ct_CC
3312 fi
3313 else
3314 CC="$ac_cv_prog_CC"
3315 fi
3316
3317 if test -z "$CC"; then
3318 if test -n "$ac_tool_prefix"; then
3319 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3320 set dummy ${ac_tool_prefix}cc; ac_word=$2
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322 $as_echo_n "checking for $ac_word... " >&6; }
3323 if ${ac_cv_prog_CC+:} false; then :
3324 $as_echo_n "(cached) " >&6
3325 else
3326 if test -n "$CC"; then
3327 ac_cv_prog_CC="$CC" # Let the user override the test.
3328 else
3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 for as_dir in $PATH
3331 do
3332 IFS=$as_save_IFS
3333 test -z "$as_dir" && as_dir=.
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3336 ac_cv_prog_CC="${ac_tool_prefix}cc"
3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 break 2
3339 fi
3340 done
3341 done
3342 IFS=$as_save_IFS
3343
3344 fi
3345 fi
3346 CC=$ac_cv_prog_CC
3347 if test -n "$CC"; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349 $as_echo "$CC" >&6; }
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3353 fi
3354
3355
3356 fi
3357 fi
3358 if test -z "$CC"; then
3359 # Extract the first word of "cc", so it can be a program name with args.
3360 set dummy cc; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if ${ac_cv_prog_CC+:} false; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC="$CC" # Let the user override the test.
3368 else
3369 ac_prog_rejected=no
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3378 ac_prog_rejected=yes
3379 continue
3380 fi
3381 ac_cv_prog_CC="cc"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3384 fi
3385 done
3386 done
3387 IFS=$as_save_IFS
3388
3389 if test $ac_prog_rejected = yes; then
3390 # We found a bogon in the path, so make sure we never use it.
3391 set dummy $ac_cv_prog_CC
3392 shift
3393 if test $# != 0; then
3394 # We chose a different compiler from the bogus one.
3395 # However, it has the same basename, so the bogon will be chosen
3396 # first if we set CC to just the basename; use the full file name.
3397 shift
3398 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3399 fi
3400 fi
3401 fi
3402 fi
3403 CC=$ac_cv_prog_CC
3404 if test -n "$CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 $as_echo "$CC" >&6; }
3407 else
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3410 fi
3411
3412
3413 fi
3414 if test -z "$CC"; then
3415 if test -n "$ac_tool_prefix"; then
3416 for ac_prog in cl.exe
3417 do
3418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if ${ac_cv_prog_CC+:} false; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 if test -n "$CC"; then
3426 ac_cv_prog_CC="$CC" # Let the user override the test.
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3435 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 break 2
3438 fi
3439 done
3440 done
3441 IFS=$as_save_IFS
3442
3443 fi
3444 fi
3445 CC=$ac_cv_prog_CC
3446 if test -n "$CC"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448 $as_echo "$CC" >&6; }
3449 else
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3452 fi
3453
3454
3455 test -n "$CC" && break
3456 done
3457 fi
3458 if test -z "$CC"; then
3459 ac_ct_CC=$CC
3460 for ac_prog in cl.exe
3461 do
3462 # Extract the first word of "$ac_prog", so it can be a program name with args.
3463 set dummy $ac_prog; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 if test -n "$ac_ct_CC"; then
3470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_prog_ac_ct_CC="$ac_prog"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3482 fi
3483 done
3484 done
3485 IFS=$as_save_IFS
3486
3487 fi
3488 fi
3489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3490 if test -n "$ac_ct_CC"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3492 $as_echo "$ac_ct_CC" >&6; }
3493 else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3496 fi
3497
3498
3499 test -n "$ac_ct_CC" && break
3500 done
3501
3502 if test "x$ac_ct_CC" = x; then
3503 CC=""
3504 else
3505 case $cross_compiling:$ac_tool_warned in
3506 yes:)
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3509 ac_tool_warned=yes ;;
3510 esac
3511 CC=$ac_ct_CC
3512 fi
3513 fi
3514
3515 fi
3516
3517
3518 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 as_fn_error $? "no acceptable C compiler found in \$PATH
3521 See \`config.log' for more details" "$LINENO" 5; }
3522
3523 # Provide some information about the compiler.
3524 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3525 set X $ac_compile
3526 ac_compiler=$2
3527 for ac_option in --version -v -V -qversion; do
3528 { { ac_try="$ac_compiler $ac_option >&5"
3529 case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532 esac
3533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534 $as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3536 ac_status=$?
3537 if test -s conftest.err; then
3538 sed '10a\
3539 ... rest of stderr output deleted ...
3540 10q' conftest.err >conftest.er1
3541 cat conftest.er1 >&5
3542 fi
3543 rm -f conftest.er1 conftest.err
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }
3546 done
3547
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550
3551 int
3552 main ()
3553 {
3554
3555 ;
3556 return 0;
3557 }
3558 _ACEOF
3559 ac_clean_files_save=$ac_clean_files
3560 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3561 # Try to create an executable without -o first, disregard a.out.
3562 # It will help us diagnose broken compilers, and finding out an intuition
3563 # of exeext.
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3565 $as_echo_n "checking whether the C compiler works... " >&6; }
3566 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3567
3568 # The possible output files:
3569 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3570
3571 ac_rmfiles=
3572 for ac_file in $ac_files
3573 do
3574 case $ac_file in
3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3576 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3577 esac
3578 done
3579 rm -f $ac_rmfiles
3580
3581 if { { ac_try="$ac_link_default"
3582 case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585 esac
3586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587 $as_echo "$ac_try_echo"; } >&5
3588 (eval "$ac_link_default") 2>&5
3589 ac_status=$?
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }; then :
3592 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3593 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3594 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3595 # so that the user can short-circuit this test for compilers unknown to
3596 # Autoconf.
3597 for ac_file in $ac_files ''
3598 do
3599 test -f "$ac_file" || continue
3600 case $ac_file in
3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3602 ;;
3603 [ab].out )
3604 # We found the default executable, but exeext='' is most
3605 # certainly right.
3606 break;;
3607 *.* )
3608 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3609 then :; else
3610 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3611 fi
3612 # We set ac_cv_exeext here because the later test for it is not
3613 # safe: cross compilers may not add the suffix if given an `-o'
3614 # argument, so we may need to know it at that point already.
3615 # Even if this section looks crufty: it has the advantage of
3616 # actually working.
3617 break;;
3618 * )
3619 break;;
3620 esac
3621 done
3622 test "$ac_cv_exeext" = no && ac_cv_exeext=
3623
3624 else
3625 ac_file=''
3626 fi
3627 if test -z "$ac_file"; then :
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3630 $as_echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635 as_fn_error 77 "C compiler cannot create executables
3636 See \`config.log' for more details" "$LINENO" 5; }
3637 else
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3639 $as_echo "yes" >&6; }
3640 fi
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3642 $as_echo_n "checking for C compiler default output file name... " >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3644 $as_echo "$ac_file" >&6; }
3645 ac_exeext=$ac_cv_exeext
3646
3647 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3648 ac_clean_files=$ac_clean_files_save
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3650 $as_echo_n "checking for suffix of executables... " >&6; }
3651 if { { ac_try="$ac_link"
3652 case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655 esac
3656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657 $as_echo "$ac_try_echo"; } >&5
3658 (eval "$ac_link") 2>&5
3659 ac_status=$?
3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661 test $ac_status = 0; }; then :
3662 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3663 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3664 # work properly (i.e., refer to `conftest.exe'), while it won't with
3665 # `rm'.
3666 for ac_file in conftest.exe conftest conftest.*; do
3667 test -f "$ac_file" || continue
3668 case $ac_file in
3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3671 break;;
3672 * ) break;;
3673 esac
3674 done
3675 else
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3679 See \`config.log' for more details" "$LINENO" 5; }
3680 fi
3681 rm -f conftest conftest$ac_cv_exeext
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3683 $as_echo "$ac_cv_exeext" >&6; }
3684
3685 rm -f conftest.$ac_ext
3686 EXEEXT=$ac_cv_exeext
3687 ac_exeext=$EXEEXT
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3690 #include <stdio.h>
3691 int
3692 main ()
3693 {
3694 FILE *f = fopen ("conftest.out", "w");
3695 return ferror (f) || fclose (f) != 0;
3696
3697 ;
3698 return 0;
3699 }
3700 _ACEOF
3701 ac_clean_files="$ac_clean_files conftest.out"
3702 # Check that the compiler produces executables we can run. If not, either
3703 # the compiler is broken, or we cross compile.
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3705 $as_echo_n "checking whether we are cross compiling... " >&6; }
3706 if test "$cross_compiling" != yes; then
3707 { { ac_try="$ac_link"
3708 case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_link") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }
3718 if { ac_try='./conftest$ac_cv_exeext'
3719 { { case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722 esac
3723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724 $as_echo "$ac_try_echo"; } >&5
3725 (eval "$ac_try") 2>&5
3726 ac_status=$?
3727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728 test $ac_status = 0; }; }; then
3729 cross_compiling=no
3730 else
3731 if test "$cross_compiling" = maybe; then
3732 cross_compiling=yes
3733 else
3734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736 as_fn_error $? "cannot run C compiled programs.
3737 If you meant to cross compile, use \`--host'.
3738 See \`config.log' for more details" "$LINENO" 5; }
3739 fi
3740 fi
3741 fi
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3743 $as_echo "$cross_compiling" >&6; }
3744
3745 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3746 ac_clean_files=$ac_clean_files_save
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3748 $as_echo_n "checking for suffix of object files... " >&6; }
3749 if ${ac_cv_objext+:} false; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754
3755 int
3756 main ()
3757 {
3758
3759 ;
3760 return 0;
3761 }
3762 _ACEOF
3763 rm -f conftest.o conftest.obj
3764 if { { ac_try="$ac_compile"
3765 case "(($ac_try" in
3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3768 esac
3769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3770 $as_echo "$ac_try_echo"; } >&5
3771 (eval "$ac_compile") 2>&5
3772 ac_status=$?
3773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3774 test $ac_status = 0; }; then :
3775 for ac_file in conftest.o conftest.obj conftest.*; do
3776 test -f "$ac_file" || continue;
3777 case $ac_file in
3778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3779 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3780 break;;
3781 esac
3782 done
3783 else
3784 $as_echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3786
3787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error $? "cannot compute suffix of object files: cannot compile
3790 See \`config.log' for more details" "$LINENO" 5; }
3791 fi
3792 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3793 fi
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3795 $as_echo "$ac_cv_objext" >&6; }
3796 OBJEXT=$ac_cv_objext
3797 ac_objext=$OBJEXT
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3799 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3800 if ${ac_cv_c_compiler_gnu+:} false; then :
3801 $as_echo_n "(cached) " >&6
3802 else
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3805
3806 int
3807 main ()
3808 {
3809 #ifndef __GNUC__
3810 choke me
3811 #endif
3812
3813 ;
3814 return 0;
3815 }
3816 _ACEOF
3817 if ac_fn_c_try_compile "$LINENO"; then :
3818 ac_compiler_gnu=yes
3819 else
3820 ac_compiler_gnu=no
3821 fi
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3824
3825 fi
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3827 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3828 if test $ac_compiler_gnu = yes; then
3829 GCC=yes
3830 else
3831 GCC=
3832 fi
3833 ac_test_CFLAGS=${CFLAGS+set}
3834 ac_save_CFLAGS=$CFLAGS
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3836 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3837 if ${ac_cv_prog_cc_g+:} false; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 ac_save_c_werror_flag=$ac_c_werror_flag
3841 ac_c_werror_flag=yes
3842 ac_cv_prog_cc_g=no
3843 CFLAGS="-g"
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3846
3847 int
3848 main ()
3849 {
3850
3851 ;
3852 return 0;
3853 }
3854 _ACEOF
3855 if ac_fn_c_try_compile "$LINENO"; then :
3856 ac_cv_prog_cc_g=yes
3857 else
3858 CFLAGS=""
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3861
3862 int
3863 main ()
3864 {
3865
3866 ;
3867 return 0;
3868 }
3869 _ACEOF
3870 if ac_fn_c_try_compile "$LINENO"; then :
3871
3872 else
3873 ac_c_werror_flag=$ac_save_c_werror_flag
3874 CFLAGS="-g"
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3877
3878 int
3879 main ()
3880 {
3881
3882 ;
3883 return 0;
3884 }
3885 _ACEOF
3886 if ac_fn_c_try_compile "$LINENO"; then :
3887 ac_cv_prog_cc_g=yes
3888 fi
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 fi
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 fi
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 ac_c_werror_flag=$ac_save_c_werror_flag
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3897 $as_echo "$ac_cv_prog_cc_g" >&6; }
3898 if test "$ac_test_CFLAGS" = set; then
3899 CFLAGS=$ac_save_CFLAGS
3900 elif test $ac_cv_prog_cc_g = yes; then
3901 if test "$GCC" = yes; then
3902 CFLAGS="-g -O2"
3903 else
3904 CFLAGS="-g"
3905 fi
3906 else
3907 if test "$GCC" = yes; then
3908 CFLAGS="-O2"
3909 else
3910 CFLAGS=
3911 fi
3912 fi
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3914 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3915 if ${ac_cv_prog_cc_c89+:} false; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 ac_cv_prog_cc_c89=no
3919 ac_save_CC=$CC
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3922 #include <stdarg.h>
3923 #include <stdio.h>
3924 struct stat;
3925 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3926 struct buf { int x; };
3927 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3928 static char *e (p, i)
3929 char **p;
3930 int i;
3931 {
3932 return p[i];
3933 }
3934 static char *f (char * (*g) (char **, int), char **p, ...)
3935 {
3936 char *s;
3937 va_list v;
3938 va_start (v,p);
3939 s = g (p, va_arg (v,int));
3940 va_end (v);
3941 return s;
3942 }
3943
3944 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3945 function prototypes and stuff, but not '\xHH' hex character constants.
3946 These don't provoke an error unfortunately, instead are silently treated
3947 as 'x'. The following induces an error, until -std is added to get
3948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3949 array size at least. It's necessary to write '\x00'==0 to get something
3950 that's true only with -std. */
3951 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3952
3953 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3954 inside strings and character constants. */
3955 #define FOO(x) 'x'
3956 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3957
3958 int test (int i, double x);
3959 struct s1 {int (*f) (int a);};
3960 struct s2 {int (*f) (double a);};
3961 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3962 int argc;
3963 char **argv;
3964 int
3965 main ()
3966 {
3967 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3968 ;
3969 return 0;
3970 }
3971 _ACEOF
3972 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3974 do
3975 CC="$ac_save_CC $ac_arg"
3976 if ac_fn_c_try_compile "$LINENO"; then :
3977 ac_cv_prog_cc_c89=$ac_arg
3978 fi
3979 rm -f core conftest.err conftest.$ac_objext
3980 test "x$ac_cv_prog_cc_c89" != "xno" && break
3981 done
3982 rm -f conftest.$ac_ext
3983 CC=$ac_save_CC
3984
3985 fi
3986 # AC_CACHE_VAL
3987 case "x$ac_cv_prog_cc_c89" in
3988 x)
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3990 $as_echo "none needed" >&6; } ;;
3991 xno)
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3993 $as_echo "unsupported" >&6; } ;;
3994 *)
3995 CC="$CC $ac_cv_prog_cc_c89"
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3997 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3998 esac
3999 if test "x$ac_cv_prog_cc_c89" != xno; then :
4000
4001 fi
4002
4003 ac_ext=c
4004 ac_cpp='$CPP $CPPFLAGS'
4005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008
4009 ac_ext=c
4010 ac_cpp='$CPP $CPPFLAGS'
4011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4015 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4016 if ${am_cv_prog_cc_c_o+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4021
4022 int
4023 main ()
4024 {
4025
4026 ;
4027 return 0;
4028 }
4029 _ACEOF
4030 # Make sure it works both with $CC and with simple cc.
4031 # Following AC_PROG_CC_C_O, we do the test twice because some
4032 # compilers refuse to overwrite an existing .o file with -o,
4033 # though they will create one.
4034 am_cv_prog_cc_c_o=yes
4035 for am_i in 1 2; do
4036 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4037 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } \
4041 && test -f conftest2.$ac_objext; then
4042 : OK
4043 else
4044 am_cv_prog_cc_c_o=no
4045 break
4046 fi
4047 done
4048 rm -f core conftest*
4049 unset am_i
4050 fi
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4052 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4053 if test "$am_cv_prog_cc_c_o" != yes; then
4054 # Losing compiler, so override with the script.
4055 # FIXME: It is wrong to rewrite CC.
4056 # But if we don't then we get into trouble of one sort or another.
4057 # A longer-term fix would be to have automake use am__CC in this case,
4058 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4059 CC="$am_aux_dir/compile $CC"
4060 fi
4061 ac_ext=c
4062 ac_cpp='$CPP $CPPFLAGS'
4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066
4067
4068 depcc="$CC" am_compiler_list=
4069
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4071 $as_echo_n "checking dependency style of $depcc... " >&6; }
4072 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4073 $as_echo_n "(cached) " >&6
4074 else
4075 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4076 # We make a subdir and do the tests there. Otherwise we can end up
4077 # making bogus files that we don't know about and never remove. For
4078 # instance it was reported that on HP-UX the gcc test will end up
4079 # making a dummy file named 'D' -- because '-MD' means "put the output
4080 # in D".
4081 rm -rf conftest.dir
4082 mkdir conftest.dir
4083 # Copy depcomp to subdir because otherwise we won't find it if we're
4084 # using a relative directory.
4085 cp "$am_depcomp" conftest.dir
4086 cd conftest.dir
4087 # We will build objects and dependencies in a subdirectory because
4088 # it helps to detect inapplicable dependency modes. For instance
4089 # both Tru64's cc and ICC support -MD to output dependencies as a
4090 # side effect of compilation, but ICC will put the dependencies in
4091 # the current directory while Tru64 will put them in the object
4092 # directory.
4093 mkdir sub
4094
4095 am_cv_CC_dependencies_compiler_type=none
4096 if test "$am_compiler_list" = ""; then
4097 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4098 fi
4099 am__universal=false
4100 case " $depcc " in #(
4101 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4102 esac
4103
4104 for depmode in $am_compiler_list; do
4105 # Setup a source with many dependencies, because some compilers
4106 # like to wrap large dependency lists on column 80 (with \), and
4107 # we should not choose a depcomp mode which is confused by this.
4108 #
4109 # We need to recreate these files for each test, as the compiler may
4110 # overwrite some of them when testing with obscure command lines.
4111 # This happens at least with the AIX C compiler.
4112 : > sub/conftest.c
4113 for i in 1 2 3 4 5 6; do
4114 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4115 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4116 # Solaris 10 /bin/sh.
4117 echo '/* dummy */' > sub/conftst$i.h
4118 done
4119 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4120
4121 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4122 # mode. It turns out that the SunPro C++ compiler does not properly
4123 # handle '-M -o', and we need to detect this. Also, some Intel
4124 # versions had trouble with output in subdirs.
4125 am__obj=sub/conftest.${OBJEXT-o}
4126 am__minus_obj="-o $am__obj"
4127 case $depmode in
4128 gcc)
4129 # This depmode causes a compiler race in universal mode.
4130 test "$am__universal" = false || continue
4131 ;;
4132 nosideeffect)
4133 # After this tag, mechanisms are not by side-effect, so they'll
4134 # only be used when explicitly requested.
4135 if test "x$enable_dependency_tracking" = xyes; then
4136 continue
4137 else
4138 break
4139 fi
4140 ;;
4141 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4142 # This compiler won't grok '-c -o', but also, the minuso test has
4143 # not run yet. These depmodes are late enough in the game, and
4144 # so weak that their functioning should not be impacted.
4145 am__obj=conftest.${OBJEXT-o}
4146 am__minus_obj=
4147 ;;
4148 none) break ;;
4149 esac
4150 if depmode=$depmode \
4151 source=sub/conftest.c object=$am__obj \
4152 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4153 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4154 >/dev/null 2>conftest.err &&
4155 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4156 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4157 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4158 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4159 # icc doesn't choke on unknown options, it will just issue warnings
4160 # or remarks (even with -Werror). So we grep stderr for any message
4161 # that says an option was ignored or not supported.
4162 # When given -MP, icc 7.0 and 7.1 complain thusly:
4163 # icc: Command line warning: ignoring option '-M'; no argument required
4164 # The diagnosis changed in icc 8.0:
4165 # icc: Command line remark: option '-MP' not supported
4166 if (grep 'ignoring option' conftest.err ||
4167 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4168 am_cv_CC_dependencies_compiler_type=$depmode
4169 break
4170 fi
4171 fi
4172 done
4173
4174 cd ..
4175 rm -rf conftest.dir
4176 else
4177 am_cv_CC_dependencies_compiler_type=none
4178 fi
4179
4180 fi
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4182 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4183 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4184
4185 if
4186 test "x$enable_dependency_tracking" != xno \
4187 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4188 am__fastdepCC_TRUE=
4189 am__fastdepCC_FALSE='#'
4190 else
4191 am__fastdepCC_TRUE='#'
4192 am__fastdepCC_FALSE=
4193 fi
4194
4195
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4197 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4198 if ${ac_cv_path_SED+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4202 for ac_i in 1 2 3 4 5 6 7; do
4203 ac_script="$ac_script$as_nl$ac_script"
4204 done
4205 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4206 { ac_script=; unset ac_script;}
4207 if test -z "$SED"; then
4208 ac_path_SED_found=false
4209 # Loop through the user's path and test for each of PROGNAME-LIST
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4212 do
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_prog in sed gsed; do
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4218 as_fn_executable_p "$ac_path_SED" || continue
4219 # Check for GNU ac_path_SED and select it if it is found.
4220 # Check for GNU $ac_path_SED
4221 case `"$ac_path_SED" --version 2>&1` in
4222 *GNU*)
4223 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4224 *)
4225 ac_count=0
4226 $as_echo_n 0123456789 >"conftest.in"
4227 while :
4228 do
4229 cat "conftest.in" "conftest.in" >"conftest.tmp"
4230 mv "conftest.tmp" "conftest.in"
4231 cp "conftest.in" "conftest.nl"
4232 $as_echo '' >> "conftest.nl"
4233 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4235 as_fn_arith $ac_count + 1 && ac_count=$as_val
4236 if test $ac_count -gt ${ac_path_SED_max-0}; then
4237 # Best one so far, save it but keep looking for a better one
4238 ac_cv_path_SED="$ac_path_SED"
4239 ac_path_SED_max=$ac_count
4240 fi
4241 # 10*(2^10) chars as input seems more than enough
4242 test $ac_count -gt 10 && break
4243 done
4244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4245 esac
4246
4247 $ac_path_SED_found && break 3
4248 done
4249 done
4250 done
4251 IFS=$as_save_IFS
4252 if test -z "$ac_cv_path_SED"; then
4253 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4254 fi
4255 else
4256 ac_cv_path_SED=$SED
4257 fi
4258
4259 fi
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4261 $as_echo "$ac_cv_path_SED" >&6; }
4262 SED="$ac_cv_path_SED"
4263 rm -f conftest.sed
4264
4265 test -z "$SED" && SED=sed
4266 Xsed="$SED -e 1s/^X//"
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4279 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4280 if ${ac_cv_path_GREP+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 if test -z "$GREP"; then
4284 ac_path_GREP_found=false
4285 # Loop through the user's path and test for each of PROGNAME-LIST
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4288 do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_prog in grep ggrep; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4294 as_fn_executable_p "$ac_path_GREP" || continue
4295 # Check for GNU ac_path_GREP and select it if it is found.
4296 # Check for GNU $ac_path_GREP
4297 case `"$ac_path_GREP" --version 2>&1` in
4298 *GNU*)
4299 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4300 *)
4301 ac_count=0
4302 $as_echo_n 0123456789 >"conftest.in"
4303 while :
4304 do
4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
4306 mv "conftest.tmp" "conftest.in"
4307 cp "conftest.in" "conftest.nl"
4308 $as_echo 'GREP' >> "conftest.nl"
4309 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311 as_fn_arith $ac_count + 1 && ac_count=$as_val
4312 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4313 # Best one so far, save it but keep looking for a better one
4314 ac_cv_path_GREP="$ac_path_GREP"
4315 ac_path_GREP_max=$ac_count
4316 fi
4317 # 10*(2^10) chars as input seems more than enough
4318 test $ac_count -gt 10 && break
4319 done
4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321 esac
4322
4323 $ac_path_GREP_found && break 3
4324 done
4325 done
4326 done
4327 IFS=$as_save_IFS
4328 if test -z "$ac_cv_path_GREP"; then
4329 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4330 fi
4331 else
4332 ac_cv_path_GREP=$GREP
4333 fi
4334
4335 fi
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4337 $as_echo "$ac_cv_path_GREP" >&6; }
4338 GREP="$ac_cv_path_GREP"
4339
4340
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4342 $as_echo_n "checking for egrep... " >&6; }
4343 if ${ac_cv_path_EGREP+:} false; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4347 then ac_cv_path_EGREP="$GREP -E"
4348 else
4349 if test -z "$EGREP"; then
4350 ac_path_EGREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4354 do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_prog in egrep; do
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4360 as_fn_executable_p "$ac_path_EGREP" || continue
4361 # Check for GNU ac_path_EGREP and select it if it is found.
4362 # Check for GNU $ac_path_EGREP
4363 case `"$ac_path_EGREP" --version 2>&1` in
4364 *GNU*)
4365 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4366 *)
4367 ac_count=0
4368 $as_echo_n 0123456789 >"conftest.in"
4369 while :
4370 do
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'EGREP' >> "conftest.nl"
4375 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377 as_fn_arith $ac_count + 1 && ac_count=$as_val
4378 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_EGREP="$ac_path_EGREP"
4381 ac_path_EGREP_max=$ac_count
4382 fi
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4385 done
4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387 esac
4388
4389 $ac_path_EGREP_found && break 3
4390 done
4391 done
4392 done
4393 IFS=$as_save_IFS
4394 if test -z "$ac_cv_path_EGREP"; then
4395 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4396 fi
4397 else
4398 ac_cv_path_EGREP=$EGREP
4399 fi
4400
4401 fi
4402 fi
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4404 $as_echo "$ac_cv_path_EGREP" >&6; }
4405 EGREP="$ac_cv_path_EGREP"
4406
4407
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4409 $as_echo_n "checking for fgrep... " >&6; }
4410 if ${ac_cv_path_FGREP+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4414 then ac_cv_path_FGREP="$GREP -F"
4415 else
4416 if test -z "$FGREP"; then
4417 ac_path_FGREP_found=false
4418 # Loop through the user's path and test for each of PROGNAME-LIST
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4421 do
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_prog in fgrep; do
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4427 as_fn_executable_p "$ac_path_FGREP" || continue
4428 # Check for GNU ac_path_FGREP and select it if it is found.
4429 # Check for GNU $ac_path_FGREP
4430 case `"$ac_path_FGREP" --version 2>&1` in
4431 *GNU*)
4432 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4433 *)
4434 ac_count=0
4435 $as_echo_n 0123456789 >"conftest.in"
4436 while :
4437 do
4438 cat "conftest.in" "conftest.in" >"conftest.tmp"
4439 mv "conftest.tmp" "conftest.in"
4440 cp "conftest.in" "conftest.nl"
4441 $as_echo 'FGREP' >> "conftest.nl"
4442 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4443 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4444 as_fn_arith $ac_count + 1 && ac_count=$as_val
4445 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4446 # Best one so far, save it but keep looking for a better one
4447 ac_cv_path_FGREP="$ac_path_FGREP"
4448 ac_path_FGREP_max=$ac_count
4449 fi
4450 # 10*(2^10) chars as input seems more than enough
4451 test $ac_count -gt 10 && break
4452 done
4453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454 esac
4455
4456 $ac_path_FGREP_found && break 3
4457 done
4458 done
4459 done
4460 IFS=$as_save_IFS
4461 if test -z "$ac_cv_path_FGREP"; then
4462 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4463 fi
4464 else
4465 ac_cv_path_FGREP=$FGREP
4466 fi
4467
4468 fi
4469 fi
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4471 $as_echo "$ac_cv_path_FGREP" >&6; }
4472 FGREP="$ac_cv_path_FGREP"
4473
4474
4475 test -z "$GREP" && GREP=grep
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495 # Check whether --with-gnu-ld was given.
4496 if test "${with_gnu_ld+set}" = set; then :
4497 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4498 else
4499 with_gnu_ld=no
4500 fi
4501
4502 ac_prog=ld
4503 if test yes = "$GCC"; then
4504 # Check if gcc -print-prog-name=ld gives a path.
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4506 $as_echo_n "checking for ld used by $CC... " >&6; }
4507 case $host in
4508 *-*-mingw*)
4509 # gcc leaves a trailing carriage return, which upsets mingw
4510 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4511 *)
4512 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4513 esac
4514 case $ac_prog in
4515 # Accept absolute paths.
4516 [\\/]* | ?:[\\/]*)
4517 re_direlt='/[^/][^/]*/\.\./'
4518 # Canonicalize the pathname of ld
4519 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4520 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4521 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4522 done
4523 test -z "$LD" && LD=$ac_prog
4524 ;;
4525 "")
4526 # If it fails, then pretend we aren't using GCC.
4527 ac_prog=ld
4528 ;;
4529 *)
4530 # If it is relative, then search for the first ld in PATH.
4531 with_gnu_ld=unknown
4532 ;;
4533 esac
4534 elif test yes = "$with_gnu_ld"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4536 $as_echo_n "checking for GNU ld... " >&6; }
4537 else
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4539 $as_echo_n "checking for non-GNU ld... " >&6; }
4540 fi
4541 if ${lt_cv_path_LD+:} false; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 if test -z "$LD"; then
4545 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4546 for ac_dir in $PATH; do
4547 IFS=$lt_save_ifs
4548 test -z "$ac_dir" && ac_dir=.
4549 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4550 lt_cv_path_LD=$ac_dir/$ac_prog
4551 # Check to see if the program is GNU ld. I'd rather use --version,
4552 # but apparently some variants of GNU ld only accept -v.
4553 # Break only if it was the GNU/non-GNU ld that we prefer.
4554 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4555 *GNU* | *'with BFD'*)
4556 test no != "$with_gnu_ld" && break
4557 ;;
4558 *)
4559 test yes != "$with_gnu_ld" && break
4560 ;;
4561 esac
4562 fi
4563 done
4564 IFS=$lt_save_ifs
4565 else
4566 lt_cv_path_LD=$LD # Let the user override the test with a path.
4567 fi
4568 fi
4569
4570 LD=$lt_cv_path_LD
4571 if test -n "$LD"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4573 $as_echo "$LD" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4577 fi
4578 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4580 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4581 if ${lt_cv_prog_gnu_ld+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4585 case `$LD -v 2>&1 </dev/null` in
4586 *GNU* | *'with BFD'*)
4587 lt_cv_prog_gnu_ld=yes
4588 ;;
4589 *)
4590 lt_cv_prog_gnu_ld=no
4591 ;;
4592 esac
4593 fi
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4595 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4596 with_gnu_ld=$lt_cv_prog_gnu_ld
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4607 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4608 if ${lt_cv_path_NM+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test -n "$NM"; then
4612 # Let the user override the test.
4613 lt_cv_path_NM=$NM
4614 else
4615 lt_nm_to_check=${ac_tool_prefix}nm
4616 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4617 lt_nm_to_check="$lt_nm_to_check nm"
4618 fi
4619 for lt_tmp_nm in $lt_nm_to_check; do
4620 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4621 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4622 IFS=$lt_save_ifs
4623 test -z "$ac_dir" && ac_dir=.
4624 tmp_nm=$ac_dir/$lt_tmp_nm
4625 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4626 # Check to see if the nm accepts a BSD-compat flag.
4627 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4628 # nm: unknown option "B" ignored
4629 # Tru64's nm complains that /dev/null is an invalid object file
4630 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4631 case $build_os in
4632 mingw*) lt_bad_file=conftest.nm/nofile ;;
4633 *) lt_bad_file=/dev/null ;;
4634 esac
4635 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4636 *$lt_bad_file* | *'Invalid file or object type'*)
4637 lt_cv_path_NM="$tmp_nm -B"
4638 break 2
4639 ;;
4640 *)
4641 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4642 */dev/null*)
4643 lt_cv_path_NM="$tmp_nm -p"
4644 break 2
4645 ;;
4646 *)
4647 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4648 continue # so that we can try to find one that supports BSD flags
4649 ;;
4650 esac
4651 ;;
4652 esac
4653 fi
4654 done
4655 IFS=$lt_save_ifs
4656 done
4657 : ${lt_cv_path_NM=no}
4658 fi
4659 fi
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4661 $as_echo "$lt_cv_path_NM" >&6; }
4662 if test no != "$lt_cv_path_NM"; then
4663 NM=$lt_cv_path_NM
4664 else
4665 # Didn't find any BSD compatible name lister, look for dumpbin.
4666 if test -n "$DUMPBIN"; then :
4667 # Let the user override the test.
4668 else
4669 if test -n "$ac_tool_prefix"; then
4670 for ac_prog in dumpbin "link -dump"
4671 do
4672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if ${ac_cv_prog_DUMPBIN+:} false; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 if test -n "$DUMPBIN"; then
4680 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693 done
4694 done
4695 IFS=$as_save_IFS
4696
4697 fi
4698 fi
4699 DUMPBIN=$ac_cv_prog_DUMPBIN
4700 if test -n "$DUMPBIN"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4702 $as_echo "$DUMPBIN" >&6; }
4703 else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4706 fi
4707
4708
4709 test -n "$DUMPBIN" && break
4710 done
4711 fi
4712 if test -z "$DUMPBIN"; then
4713 ac_ct_DUMPBIN=$DUMPBIN
4714 for ac_prog in dumpbin "link -dump"
4715 do
4716 # Extract the first word of "$ac_prog", so it can be a program name with args.
4717 set dummy $ac_prog; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$ac_ct_DUMPBIN"; then
4724 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737 done
4738 done
4739 IFS=$as_save_IFS
4740
4741 fi
4742 fi
4743 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4744 if test -n "$ac_ct_DUMPBIN"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4746 $as_echo "$ac_ct_DUMPBIN" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4750 fi
4751
4752
4753 test -n "$ac_ct_DUMPBIN" && break
4754 done
4755
4756 if test "x$ac_ct_DUMPBIN" = x; then
4757 DUMPBIN=":"
4758 else
4759 case $cross_compiling:$ac_tool_warned in
4760 yes:)
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763 ac_tool_warned=yes ;;
4764 esac
4765 DUMPBIN=$ac_ct_DUMPBIN
4766 fi
4767 fi
4768
4769 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4770 *COFF*)
4771 DUMPBIN="$DUMPBIN -symbols -headers"
4772 ;;
4773 *)
4774 DUMPBIN=:
4775 ;;
4776 esac
4777 fi
4778
4779 if test : != "$DUMPBIN"; then
4780 NM=$DUMPBIN
4781 fi
4782 fi
4783 test -z "$NM" && NM=nm
4784
4785
4786
4787
4788
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4791 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4792 if ${lt_cv_nm_interface+:} false; then :
4793 $as_echo_n "(cached) " >&6
4794 else
4795 lt_cv_nm_interface="BSD nm"
4796 echo "int some_variable = 0;" > conftest.$ac_ext
4797 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4798 (eval "$ac_compile" 2>conftest.err)
4799 cat conftest.err >&5
4800 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4801 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4802 cat conftest.err >&5
4803 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4804 cat conftest.out >&5
4805 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4806 lt_cv_nm_interface="MS dumpbin"
4807 fi
4808 rm -f conftest*
4809 fi
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4811 $as_echo "$lt_cv_nm_interface" >&6; }
4812
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4814 $as_echo_n "checking whether ln -s works... " >&6; }
4815 LN_S=$as_ln_s
4816 if test "$LN_S" = "ln -s"; then
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4818 $as_echo "yes" >&6; }
4819 else
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4821 $as_echo "no, using $LN_S" >&6; }
4822 fi
4823
4824 # find the maximum length of command line arguments
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4826 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4827 if ${lt_cv_sys_max_cmd_len+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 i=0
4831 teststring=ABCD
4832
4833 case $build_os in
4834 msdosdjgpp*)
4835 # On DJGPP, this test can blow up pretty badly due to problems in libc
4836 # (any single argument exceeding 2000 bytes causes a buffer overrun
4837 # during glob expansion). Even if it were fixed, the result of this
4838 # check would be larger than it should be.
4839 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4840 ;;
4841
4842 gnu*)
4843 # Under GNU Hurd, this test is not required because there is
4844 # no limit to the length of command line arguments.
4845 # Libtool will interpret -1 as no limit whatsoever
4846 lt_cv_sys_max_cmd_len=-1;
4847 ;;
4848
4849 cygwin* | mingw* | cegcc*)
4850 # On Win9x/ME, this test blows up -- it succeeds, but takes
4851 # about 5 minutes as the teststring grows exponentially.
4852 # Worse, since 9x/ME are not pre-emptively multitasking,
4853 # you end up with a "frozen" computer, even though with patience
4854 # the test eventually succeeds (with a max line length of 256k).
4855 # Instead, let's just punt: use the minimum linelength reported by
4856 # all of the supported platforms: 8192 (on NT/2K/XP).
4857 lt_cv_sys_max_cmd_len=8192;
4858 ;;
4859
4860 mint*)
4861 # On MiNT this can take a long time and run out of memory.
4862 lt_cv_sys_max_cmd_len=8192;
4863 ;;
4864
4865 amigaos*)
4866 # On AmigaOS with pdksh, this test takes hours, literally.
4867 # So we just punt and use a minimum line length of 8192.
4868 lt_cv_sys_max_cmd_len=8192;
4869 ;;
4870
4871 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4872 # This has been around since 386BSD, at least. Likely further.
4873 if test -x /sbin/sysctl; then
4874 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4875 elif test -x /usr/sbin/sysctl; then
4876 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4877 else
4878 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4879 fi
4880 # And add a safety zone
4881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4883 ;;
4884
4885 interix*)
4886 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4887 lt_cv_sys_max_cmd_len=196608
4888 ;;
4889
4890 os2*)
4891 # The test takes a long time on OS/2.
4892 lt_cv_sys_max_cmd_len=8192
4893 ;;
4894
4895 osf*)
4896 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4897 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4898 # nice to cause kernel panics so lets avoid the loop below.
4899 # First set a reasonable default.
4900 lt_cv_sys_max_cmd_len=16384
4901 #
4902 if test -x /sbin/sysconfig; then
4903 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4904 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4905 esac
4906 fi
4907 ;;
4908 sco3.2v5*)
4909 lt_cv_sys_max_cmd_len=102400
4910 ;;
4911 sysv5* | sco5v6* | sysv4.2uw2*)
4912 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4913 if test -n "$kargmax"; then
4914 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4915 else
4916 lt_cv_sys_max_cmd_len=32768
4917 fi
4918 ;;
4919 *)
4920 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4921 if test -n "$lt_cv_sys_max_cmd_len" && \
4922 test undefined != "$lt_cv_sys_max_cmd_len"; then
4923 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4924 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4925 else
4926 # Make teststring a little bigger before we do anything with it.
4927 # a 1K string should be a reasonable start.
4928 for i in 1 2 3 4 5 6 7 8; do
4929 teststring=$teststring$teststring
4930 done
4931 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4932 # If test is not a shell built-in, we'll probably end up computing a
4933 # maximum length that is only half of the actual maximum length, but
4934 # we can't tell.
4935 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4936 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4937 test 17 != "$i" # 1/2 MB should be enough
4938 do
4939 i=`expr $i + 1`
4940 teststring=$teststring$teststring
4941 done
4942 # Only check the string length outside the loop.
4943 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4944 teststring=
4945 # Add a significant safety factor because C++ compilers can tack on
4946 # massive amounts of additional arguments before passing them to the
4947 # linker. It appears as though 1/2 is a usable value.
4948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4949 fi
4950 ;;
4951 esac
4952
4953 fi
4954
4955 if test -n "$lt_cv_sys_max_cmd_len"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4957 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4958 else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4960 $as_echo "none" >&6; }
4961 fi
4962 max_cmd_len=$lt_cv_sys_max_cmd_len
4963
4964
4965
4966
4967
4968
4969 : ${CP="cp -f"}
4970 : ${MV="mv -f"}
4971 : ${RM="rm -f"}
4972
4973 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4974 lt_unset=unset
4975 else
4976 lt_unset=false
4977 fi
4978
4979
4980
4981
4982
4983 # test EBCDIC or ASCII
4984 case `echo X|tr X '\101'` in
4985 A) # ASCII based system
4986 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4987 lt_SP2NL='tr \040 \012'
4988 lt_NL2SP='tr \015\012 \040\040'
4989 ;;
4990 *) # EBCDIC based system
4991 lt_SP2NL='tr \100 \n'
4992 lt_NL2SP='tr \r\n \100\100'
4993 ;;
4994 esac
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5005 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5006 if ${lt_cv_to_host_file_cmd+:} false; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 case $host in
5010 *-*-mingw* )
5011 case $build in
5012 *-*-mingw* ) # actually msys
5013 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5014 ;;
5015 *-*-cygwin* )
5016 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5017 ;;
5018 * ) # otherwise, assume *nix
5019 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5020 ;;
5021 esac
5022 ;;
5023 *-*-cygwin* )
5024 case $build in
5025 *-*-mingw* ) # actually msys
5026 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5027 ;;
5028 *-*-cygwin* )
5029 lt_cv_to_host_file_cmd=func_convert_file_noop
5030 ;;
5031 * ) # otherwise, assume *nix
5032 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5033 ;;
5034 esac
5035 ;;
5036 * ) # unhandled hosts (and "normal" native builds)
5037 lt_cv_to_host_file_cmd=func_convert_file_noop
5038 ;;
5039 esac
5040
5041 fi
5042
5043 to_host_file_cmd=$lt_cv_to_host_file_cmd
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5045 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5046
5047
5048
5049
5050
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5052 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5053 if ${lt_cv_to_tool_file_cmd+:} false; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 #assume ordinary cross tools, or native build.
5057 lt_cv_to_tool_file_cmd=func_convert_file_noop
5058 case $host in
5059 *-*-mingw* )
5060 case $build in
5061 *-*-mingw* ) # actually msys
5062 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5063 ;;
5064 esac
5065 ;;
5066 esac
5067
5068 fi
5069
5070 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5072 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5073
5074
5075
5076
5077
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5079 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5080 if ${lt_cv_ld_reload_flag+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 lt_cv_ld_reload_flag='-r'
5084 fi
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5086 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5087 reload_flag=$lt_cv_ld_reload_flag
5088 case $reload_flag in
5089 "" | " "*) ;;
5090 *) reload_flag=" $reload_flag" ;;
5091 esac
5092 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5093 case $host_os in
5094 cygwin* | mingw* | pw32* | cegcc*)
5095 if test yes != "$GCC"; then
5096 reload_cmds=false
5097 fi
5098 ;;
5099 darwin*)
5100 if test yes = "$GCC"; then
5101 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5102 else
5103 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5104 fi
5105 ;;
5106 esac
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116 if test -n "$ac_tool_prefix"; then
5117 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5118 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if ${ac_cv_prog_OBJDUMP+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 if test -n "$OBJDUMP"; then
5125 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5129 do
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5134 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5137 fi
5138 done
5139 done
5140 IFS=$as_save_IFS
5141
5142 fi
5143 fi
5144 OBJDUMP=$ac_cv_prog_OBJDUMP
5145 if test -n "$OBJDUMP"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5147 $as_echo "$OBJDUMP" >&6; }
5148 else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5151 fi
5152
5153
5154 fi
5155 if test -z "$ac_cv_prog_OBJDUMP"; then
5156 ac_ct_OBJDUMP=$OBJDUMP
5157 # Extract the first word of "objdump", so it can be a program name with args.
5158 set dummy objdump; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 if test -n "$ac_ct_OBJDUMP"; then
5165 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5177 fi
5178 done
5179 done
5180 IFS=$as_save_IFS
5181
5182 fi
5183 fi
5184 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5185 if test -n "$ac_ct_OBJDUMP"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5187 $as_echo "$ac_ct_OBJDUMP" >&6; }
5188 else
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5191 fi
5192
5193 if test "x$ac_ct_OBJDUMP" = x; then
5194 OBJDUMP="false"
5195 else
5196 case $cross_compiling:$ac_tool_warned in
5197 yes:)
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5200 ac_tool_warned=yes ;;
5201 esac
5202 OBJDUMP=$ac_ct_OBJDUMP
5203 fi
5204 else
5205 OBJDUMP="$ac_cv_prog_OBJDUMP"
5206 fi
5207
5208 test -z "$OBJDUMP" && OBJDUMP=objdump
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5219 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5220 if ${lt_cv_deplibs_check_method+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 lt_cv_file_magic_cmd='$MAGIC_CMD'
5224 lt_cv_file_magic_test_file=
5225 lt_cv_deplibs_check_method='unknown'
5226 # Need to set the preceding variable on all platforms that support
5227 # interlibrary dependencies.
5228 # 'none' -- dependencies not supported.
5229 # 'unknown' -- same as none, but documents that we really don't know.
5230 # 'pass_all' -- all dependencies passed with no checks.
5231 # 'test_compile' -- check by making test program.
5232 # 'file_magic [[regex]]' -- check by looking for files in library path
5233 # that responds to the $file_magic_cmd with a given extended regex.
5234 # If you have 'file' or equivalent on your system and you're not sure
5235 # whether 'pass_all' will *always* work, you probably want this one.
5236
5237 case $host_os in
5238 aix[4-9]*)
5239 lt_cv_deplibs_check_method=pass_all
5240 ;;
5241
5242 beos*)
5243 lt_cv_deplibs_check_method=pass_all
5244 ;;
5245
5246 bsdi[45]*)
5247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5248 lt_cv_file_magic_cmd='/usr/bin/file -L'
5249 lt_cv_file_magic_test_file=/shlib/libc.so
5250 ;;
5251
5252 cygwin*)
5253 # func_win32_libid is a shell function defined in ltmain.sh
5254 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5255 lt_cv_file_magic_cmd='func_win32_libid'
5256 ;;
5257
5258 mingw* | pw32*)
5259 # Base MSYS/MinGW do not provide the 'file' command needed by
5260 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5261 # unless we find 'file', for example because we are cross-compiling.
5262 if ( file / ) >/dev/null 2>&1; then
5263 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5264 lt_cv_file_magic_cmd='func_win32_libid'
5265 else
5266 # Keep this pattern in sync with the one in func_win32_libid.
5267 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5268 lt_cv_file_magic_cmd='$OBJDUMP -f'
5269 fi
5270 ;;
5271
5272 cegcc*)
5273 # use the weaker test based on 'objdump'. See mingw*.
5274 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5275 lt_cv_file_magic_cmd='$OBJDUMP -f'
5276 ;;
5277
5278 darwin* | rhapsody*)
5279 lt_cv_deplibs_check_method=pass_all
5280 ;;
5281
5282 freebsd* | dragonfly*)
5283 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5284 case $host_cpu in
5285 i*86 )
5286 # Not sure whether the presence of OpenBSD here was a mistake.
5287 # Let's accept both of them until this is cleared up.
5288 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5289 lt_cv_file_magic_cmd=/usr/bin/file
5290 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5291 ;;
5292 esac
5293 else
5294 lt_cv_deplibs_check_method=pass_all
5295 fi
5296 ;;
5297
5298 haiku*)
5299 lt_cv_deplibs_check_method=pass_all
5300 ;;
5301
5302 hpux10.20* | hpux11*)
5303 lt_cv_file_magic_cmd=/usr/bin/file
5304 case $host_cpu in
5305 ia64*)
5306 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5307 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5308 ;;
5309 hppa*64*)
5310 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]'
5311 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5312 ;;
5313 *)
5314 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5315 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5316 ;;
5317 esac
5318 ;;
5319
5320 interix[3-9]*)
5321 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5323 ;;
5324
5325 irix5* | irix6* | nonstopux*)
5326 case $LD in
5327 *-32|*"-32 ") libmagic=32-bit;;
5328 *-n32|*"-n32 ") libmagic=N32;;
5329 *-64|*"-64 ") libmagic=64-bit;;
5330 *) libmagic=never-match;;
5331 esac
5332 lt_cv_deplibs_check_method=pass_all
5333 ;;
5334
5335 # This must be glibc/ELF.
5336 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5337 lt_cv_deplibs_check_method=pass_all
5338 ;;
5339
5340 netbsd*)
5341 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5343 else
5344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5345 fi
5346 ;;
5347
5348 newos6*)
5349 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5350 lt_cv_file_magic_cmd=/usr/bin/file
5351 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5352 ;;
5353
5354 *nto* | *qnx*)
5355 lt_cv_deplibs_check_method=pass_all
5356 ;;
5357
5358 openbsd* | bitrig*)
5359 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5361 else
5362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5363 fi
5364 ;;
5365
5366 osf3* | osf4* | osf5*)
5367 lt_cv_deplibs_check_method=pass_all
5368 ;;
5369
5370 rdos*)
5371 lt_cv_deplibs_check_method=pass_all
5372 ;;
5373
5374 solaris*)
5375 lt_cv_deplibs_check_method=pass_all
5376 ;;
5377
5378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5379 lt_cv_deplibs_check_method=pass_all
5380 ;;
5381
5382 sysv4 | sysv4.3*)
5383 case $host_vendor in
5384 motorola)
5385 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]'
5386 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5387 ;;
5388 ncr)
5389 lt_cv_deplibs_check_method=pass_all
5390 ;;
5391 sequent)
5392 lt_cv_file_magic_cmd='/bin/file'
5393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5394 ;;
5395 sni)
5396 lt_cv_file_magic_cmd='/bin/file'
5397 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5398 lt_cv_file_magic_test_file=/lib/libc.so
5399 ;;
5400 siemens)
5401 lt_cv_deplibs_check_method=pass_all
5402 ;;
5403 pc)
5404 lt_cv_deplibs_check_method=pass_all
5405 ;;
5406 esac
5407 ;;
5408
5409 tpf*)
5410 lt_cv_deplibs_check_method=pass_all
5411 ;;
5412 os2*)
5413 lt_cv_deplibs_check_method=pass_all
5414 ;;
5415 esac
5416
5417 fi
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
5421 file_magic_glob=
5422 want_nocaseglob=no
5423 if 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
5433 fi
5434
5435 file_magic_cmd=$lt_cv_file_magic_cmd
5436 deplibs_check_method=$lt_cv_deplibs_check_method
5437 test -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
5460 if 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.
5462 set 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; }
5465 if ${ac_cv_prog_DLLTOOL+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 if test -n "$DLLTOOL"; then
5469 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5470 else
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH
5473 do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478 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
5482 done
5483 done
5484 IFS=$as_save_IFS
5485
5486 fi
5487 fi
5488 DLLTOOL=$ac_cv_prog_DLLTOOL
5489 if test -n "$DLLTOOL"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5491 $as_echo "$DLLTOOL" >&6; }
5492 else
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5495 fi
5496
5497
5498 fi
5499 if 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.
5502 set 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; }
5505 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 if test -n "$ac_ct_DLLTOOL"; then
5509 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5510 else
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5513 do
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518 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
5522 done
5523 done
5524 IFS=$as_save_IFS
5525
5526 fi
5527 fi
5528 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5529 if 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; }
5532 else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5535 fi
5536
5537 if test "x$ac_ct_DLLTOOL" = x; then
5538 DLLTOOL="false"
5539 else
5540 case $cross_compiling:$ac_tool_warned in
5541 yes:)
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;}
5544 ac_tool_warned=yes ;;
5545 esac
5546 DLLTOOL=$ac_ct_DLLTOOL
5547 fi
5548 else
5549 DLLTOOL="$ac_cv_prog_DLLTOOL"
5550 fi
5551
5552 test -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; }
5565 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 lt_cv_sharedlib_from_linklib_cmd='unknown'
5569
5570 case $host_os in
5571 cygwin* | mingw* | pw32* | cegcc*)
5572 # two different shell functions defined in ltmain.sh;
5573 # decide which one 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 ;;
5587 esac
5588
5589 fi
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; }
5592 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5593 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5594
5595
5596
5597
5598
5599
5600
5601
5602 if 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.
5606 set 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; }
5609 if ${ac_cv_prog_AR+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 if test -n "$AR"; then
5613 ac_cv_prog_AR="$AR" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 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
5626 done
5627 done
5628 IFS=$as_save_IFS
5629
5630 fi
5631 fi
5632 AR=$ac_cv_prog_AR
5633 if test -n "$AR"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5635 $as_echo "$AR" >&6; }
5636 else
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5639 fi
5640
5641
5642 test -n "$AR" && break
5643 done
5644 fi
5645 if test -z "$AR"; then
5646 ac_ct_AR=$AR
5647 for ac_prog in ar
5648 do
5649 # Extract the first word of "$ac_prog", so it can be a program name with args.
5650 set 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; }
5653 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5654 $as_echo_n "(cached) " >&6
5655 else
5656 if test -n "$ac_ct_AR"; then
5657 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5661 do
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5666 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
5670 done
5671 done
5672 IFS=$as_save_IFS
5673
5674 fi
5675 fi
5676 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5677 if 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; }
5680 else
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5683 fi
5684
5685
5686 test -n "$ac_ct_AR" && break
5687 done
5688
5689 if test "x$ac_ct_AR" = x; then
5690 AR="false"
5691 else
5692 case $cross_compiling:$ac_tool_warned in
5693 yes:)
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;}
5696 ac_tool_warned=yes ;;
5697 esac
5698 AR=$ac_ct_AR
5699 fi
5700 fi
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; }
5717 if ${lt_cv_ar_at_file+:} false; then :
5718 $as_echo_n "(cached) " >&6
5719 else
5720 lt_cv_ar_at_file=no
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723
5724 int
5725 main ()
5726 {
5727
5728 ;
5729 return 0;
5730 }
5731 _ACEOF
5732 if 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 0 -eq "$ac_status"; 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 0 -ne "$ac_status"; then
5749 lt_cv_ar_at_file=@
5750 fi
5751 fi
5752 rm -f conftest.* libconftest.a
5753
5754 fi
5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756
5757 fi
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
5761 if test no = "$lt_cv_ar_at_file"; then
5762 archiver_list_spec=
5763 else
5764 archiver_list_spec=$lt_cv_ar_at_file
5765 fi
5766
5767
5768
5769
5770
5771
5772
5773 if 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.
5775 set 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; }
5778 if ${ac_cv_prog_STRIP+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 if test -n "$STRIP"; then
5782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787 IFS=$as_save_IFS
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791 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
5795 done
5796 done
5797 IFS=$as_save_IFS
5798
5799 fi
5800 fi
5801 STRIP=$ac_cv_prog_STRIP
5802 if test -n "$STRIP"; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5804 $as_echo "$STRIP" >&6; }
5805 else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5808 fi
5809
5810
5811 fi
5812 if 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.
5815 set 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; }
5818 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 if test -n "$ac_ct_STRIP"; then
5822 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5826 do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831 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
5835 done
5836 done
5837 IFS=$as_save_IFS
5838
5839 fi
5840 fi
5841 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5842 if 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; }
5845 else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5848 fi
5849
5850 if test "x$ac_ct_STRIP" = x; then
5851 STRIP=":"
5852 else
5853 case $cross_compiling:$ac_tool_warned in
5854 yes:)
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;}
5857 ac_tool_warned=yes ;;
5858 esac
5859 STRIP=$ac_ct_STRIP
5860 fi
5861 else
5862 STRIP="$ac_cv_prog_STRIP"
5863 fi
5864
5865 test -z "$STRIP" && STRIP=:
5866
5867
5868
5869
5870
5871
5872 if 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.
5874 set 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; }
5877 if ${ac_cv_prog_RANLIB+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 if test -n "$RANLIB"; then
5881 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890 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
5894 done
5895 done
5896 IFS=$as_save_IFS
5897
5898 fi
5899 fi
5900 RANLIB=$ac_cv_prog_RANLIB
5901 if test -n "$RANLIB"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5903 $as_echo "$RANLIB" >&6; }
5904 else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908
5909
5910 fi
5911 if 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.
5914 set 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; }
5917 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5918 $as_echo_n "(cached) " >&6
5919 else
5920 if test -n "$ac_ct_RANLIB"; then
5921 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930 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
5934 done
5935 done
5936 IFS=$as_save_IFS
5937
5938 fi
5939 fi
5940 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5941 if 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; }
5944 else
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5947 fi
5948
5949 if test "x$ac_ct_RANLIB" = x; then
5950 RANLIB=":"
5951 else
5952 case $cross_compiling:$ac_tool_warned in
5953 yes:)
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;}
5956 ac_tool_warned=yes ;;
5957 esac
5958 RANLIB=$ac_ct_RANLIB
5959 fi
5960 else
5961 RANLIB="$ac_cv_prog_RANLIB"
5962 fi
5963
5964 test -z "$RANLIB" && RANLIB=:
5965
5966
5967
5968
5969
5970
5971 # Determine commands to create old-style static archives.
5972 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5973 old_postinstall_cmds='chmod 644 $oldlib'
5974 old_postuninstall_cmds=
5975
5976 if test -n "$RANLIB"; then
5977 case $host_os in
5978 bitrig* | 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"
5986 fi
5987
5988 case $host_os in
5989 darwin*)
5990 lock_old_archive_extraction=yes ;;
5991 *)
5992 lock_old_archive_extraction=no ;;
5993 esac
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.
6034 LTCC=${LTCC-"$CC"}
6035
6036 # If no C compiler flags were specified, use CFLAGS.
6037 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6038
6039 # Allow CC to be a program name with arguments.
6040 compiler=$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; }
6046 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6047 $as_echo_n "(cached) " >&6
6048 else
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.
6054 symcode='[BCDEGRST]'
6055
6056 # Regexp to match symbols that can be accessed directly from C.
6057 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6058
6059 # Define system-specific variables.
6060 case $host_os in
6061 aix*)
6062 symcode='[BCDT]'
6063 ;;
6064 cygwin* | mingw* | pw32* | cegcc*)
6065 symcode='[ABCDGISTW]'
6066 ;;
6067 hpux*)
6068 if test ia64 = "$host_cpu"; then
6069 symcode='[ABCDEGRST]'
6070 fi
6071 ;;
6072 irix* | nonstopux*)
6073 symcode='[BCDEGRST]'
6074 ;;
6075 osf*)
6076 symcode='[BCDEGQRST]'
6077 ;;
6078 solaris*)
6079 symcode='[BDRT]'
6080 ;;
6081 sco3.2v5*)
6082 symcode='[DT]'
6083 ;;
6084 sysv4.2uw2*)
6085 symcode='[DT]'
6086 ;;
6087 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6088 symcode='[ABDT]'
6089 ;;
6090 sysv4)
6091 symcode='[DFNSTU]'
6092 ;;
6093 esac
6094
6095 # If we're using GNU nm, then use its standard symbol codes.
6096 case `$NM -V 2>&1` in
6097 *GNU* | *'with BFD'*)
6098 symcode='[ABCDGIRSTW]' ;;
6099 esac
6100
6101 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6102 # Gets list of data symbols to import.
6103 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6104 # Adjust the below global symbol transforms to fixup imported variables.
6105 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6106 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6107 lt_c_name_lib_hook="\
6108 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6109 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6110 else
6111 # Disable hooks by default.
6112 lt_cv_sys_global_symbol_to_import=
6113 lt_cdecl_hook=
6114 lt_c_name_hook=
6115 lt_c_name_lib_hook=
6116 fi
6117
6118 # Transform an extracted symbol line into a proper C declaration.
6119 # Some systems (esp. on ia64) link data and code symbols differently,
6120 # so use this general approach.
6121 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6122 $lt_cdecl_hook\
6123 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6124 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6125
6126 # Transform an extracted symbol line into symbol name and symbol address
6127 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6128 $lt_c_name_hook\
6129 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6130 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6131
6132 # Transform an extracted symbol line into symbol name with lib prefix and
6133 # symbol address.
6134 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6135 $lt_c_name_lib_hook\
6136 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6137 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6138 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6139
6140 # Handle CRLF in mingw tool chain
6141 opt_cr=
6142 case $build_os in
6143 mingw*)
6144 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6145 ;;
6146 esac
6147
6148 # Try without a prefix underscore, then with it.
6149 for ac_symprfx in "" "_"; do
6150
6151 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6152 symxfrm="\\1 $ac_symprfx\\2 \\2"
6153
6154 # Write the raw and C identifiers.
6155 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6156 # Fake it for dumpbin and say T for any non-static function,
6157 # D for any global variable and I for any imported variable.
6158 # Also find C++ and __fastcall symbols from MSVC++,
6159 # which start with @ or ?.
6160 lt_cv_sys_global_symbol_pipe="$AWK '"\
6161 " {last_section=section; section=\$ 3};"\
6162 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6163 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6164 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6165 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6166 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6167 " \$ 0!~/External *\|/{next};"\
6168 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6169 " {if(hide[section]) next};"\
6170 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6171 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6172 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6173 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6174 " ' prfx=^$ac_symprfx"
6175 else
6176 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6177 fi
6178 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6179
6180 # Check to see that the pipe works correctly.
6181 pipe_works=no
6182
6183 rm -f conftest*
6184 cat > conftest.$ac_ext <<_LT_EOF
6185 #ifdef __cplusplus
6186 extern "C" {
6187 #endif
6188 char nm_test_var;
6189 void nm_test_func(void);
6190 void nm_test_func(void){}
6191 #ifdef __cplusplus
6192 }
6193 #endif
6194 int main(){nm_test_var='a';nm_test_func();return(0);}
6195 _LT_EOF
6196
6197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6198 (eval $ac_compile) 2>&5
6199 ac_status=$?
6200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201 test $ac_status = 0; }; then
6202 # Now try to grab the symbols.
6203 nlist=conftest.nm
6204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6205 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6206 ac_status=$?
6207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208 test $ac_status = 0; } && test -s "$nlist"; then
6209 # Try sorting and uniquifying the output.
6210 if sort "$nlist" | uniq > "$nlist"T; then
6211 mv -f "$nlist"T "$nlist"
6212 else
6213 rm -f "$nlist"T
6214 fi
6215
6216 # Make sure that we snagged all the symbols we need.
6217 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6218 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6219 cat <<_LT_EOF > conftest.$ac_ext
6220 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6221 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6222 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6223 relocations are performed -- see ld's documentation on pseudo-relocs. */
6224 # define LT_DLSYM_CONST
6225 #elif defined __osf__
6226 /* This system does not cope well with relocations in const data. */
6227 # define LT_DLSYM_CONST
6228 #else
6229 # define LT_DLSYM_CONST const
6230 #endif
6231
6232 #ifdef __cplusplus
6233 extern "C" {
6234 #endif
6235
6236 _LT_EOF
6237 # Now generate the symbol file.
6238 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6239
6240 cat <<_LT_EOF >> conftest.$ac_ext
6241
6242 /* The mapping between symbol names and symbols. */
6243 LT_DLSYM_CONST struct {
6244 const char *name;
6245 void *address;
6246 }
6247 lt__PROGRAM__LTX_preloaded_symbols[] =
6248 {
6249 { "@PROGRAM@", (void *) 0 },
6250 _LT_EOF
6251 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6252 cat <<\_LT_EOF >> conftest.$ac_ext
6253 {0, (void *) 0}
6254 };
6255
6256 /* This works around a problem in FreeBSD linker */
6257 #ifdef FREEBSD_WORKAROUND
6258 static const void *lt_preloaded_setup() {
6259 return lt__PROGRAM__LTX_preloaded_symbols;
6260 }
6261 #endif
6262
6263 #ifdef __cplusplus
6264 }
6265 #endif
6266 _LT_EOF
6267 # Now try linking the two files.
6268 mv conftest.$ac_objext conftstm.$ac_objext
6269 lt_globsym_save_LIBS=$LIBS
6270 lt_globsym_save_CFLAGS=$CFLAGS
6271 LIBS=conftstm.$ac_objext
6272 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6274 (eval $ac_link) 2>&5
6275 ac_status=$?
6276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6277 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6278 pipe_works=yes
6279 fi
6280 LIBS=$lt_globsym_save_LIBS
6281 CFLAGS=$lt_globsym_save_CFLAGS
6282 else
6283 echo "cannot find nm_test_func in $nlist" >&5
6284 fi
6285 else
6286 echo "cannot find nm_test_var in $nlist" >&5
6287 fi
6288 else
6289 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6290 fi
6291 else
6292 echo "$progname: failed program was:" >&5
6293 cat conftest.$ac_ext >&5
6294 fi
6295 rm -rf conftest* conftst*
6296
6297 # Do not use the global_symbol_pipe unless it works.
6298 if test yes = "$pipe_works"; then
6299 break
6300 else
6301 lt_cv_sys_global_symbol_pipe=
6302 fi
6303 done
6304
6305 fi
6306
6307 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6308 lt_cv_sys_global_symbol_to_cdecl=
6309 fi
6310 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6312 $as_echo "failed" >&6; }
6313 else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6315 $as_echo "ok" >&6; }
6316 fi
6317
6318 # Response file support.
6319 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6320 nm_file_list_spec='@'
6321 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6322 nm_file_list_spec='@'
6323 fi
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6362 $as_echo_n "checking for sysroot... " >&6; }
6363
6364 # Check whether --with-sysroot was given.
6365 if test "${with_sysroot+set}" = set; then :
6366 withval=$with_sysroot;
6367 else
6368 with_sysroot=no
6369 fi
6370
6371
6372 lt_sysroot=
6373 case $with_sysroot in #(
6374 yes)
6375 if test yes = "$GCC"; then
6376 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6377 fi
6378 ;; #(
6379 /*)
6380 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6381 ;; #(
6382 no|'')
6383 ;; #(
6384 *)
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6386 $as_echo "$with_sysroot" >&6; }
6387 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6388 ;;
6389 esac
6390
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6392 $as_echo "${lt_sysroot:-no}" >&6; }
6393
6394
6395
6396
6397
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6399 $as_echo_n "checking for a working dd... " >&6; }
6400 if ${ac_cv_path_lt_DD+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 printf 0123456789abcdef0123456789abcdef >conftest.i
6404 cat conftest.i conftest.i >conftest2.i
6405 : ${lt_DD:=$DD}
6406 if test -z "$lt_DD"; then
6407 ac_path_lt_DD_found=false
6408 # Loop through the user's path and test for each of PROGNAME-LIST
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6411 do
6412 IFS=$as_save_IFS
6413 test -z "$as_dir" && as_dir=.
6414 for ac_prog in dd; do
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6417 as_fn_executable_p "$ac_path_lt_DD" || continue
6418 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6419 cmp -s conftest.i conftest.out \
6420 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6421 fi
6422 $ac_path_lt_DD_found && break 3
6423 done
6424 done
6425 done
6426 IFS=$as_save_IFS
6427 if test -z "$ac_cv_path_lt_DD"; then
6428 :
6429 fi
6430 else
6431 ac_cv_path_lt_DD=$lt_DD
6432 fi
6433
6434 rm -f conftest.i conftest2.i conftest.out
6435 fi
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6437 $as_echo "$ac_cv_path_lt_DD" >&6; }
6438
6439
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6441 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6442 if ${lt_cv_truncate_bin+:} false; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 printf 0123456789abcdef0123456789abcdef >conftest.i
6446 cat conftest.i conftest.i >conftest2.i
6447 lt_cv_truncate_bin=
6448 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6449 cmp -s conftest.i conftest.out \
6450 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6451 fi
6452 rm -f conftest.i conftest2.i conftest.out
6453 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6454 fi
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6456 $as_echo "$lt_cv_truncate_bin" >&6; }
6457
6458
6459
6460
6461
6462
6463
6464 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6465 func_cc_basename ()
6466 {
6467 for cc_temp in $*""; do
6468 case $cc_temp in
6469 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6470 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6471 \-*) ;;
6472 *) break;;
6473 esac
6474 done
6475 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6476 }
6477
6478 # Check whether --enable-libtool-lock was given.
6479 if test "${enable_libtool_lock+set}" = set; then :
6480 enableval=$enable_libtool_lock;
6481 fi
6482
6483 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6484
6485 # Some flags need to be propagated to the compiler or linker for good
6486 # libtool support.
6487 case $host in
6488 ia64-*-hpux*)
6489 # Find out what ABI is being produced by ac_compile, and set mode
6490 # options accordingly.
6491 echo 'int i;' > conftest.$ac_ext
6492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6493 (eval $ac_compile) 2>&5
6494 ac_status=$?
6495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6496 test $ac_status = 0; }; then
6497 case `/usr/bin/file conftest.$ac_objext` in
6498 *ELF-32*)
6499 HPUX_IA64_MODE=32
6500 ;;
6501 *ELF-64*)
6502 HPUX_IA64_MODE=64
6503 ;;
6504 esac
6505 fi
6506 rm -rf conftest*
6507 ;;
6508 *-*-irix6*)
6509 # Find out what ABI is being produced by ac_compile, and set linker
6510 # options accordingly.
6511 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6513 (eval $ac_compile) 2>&5
6514 ac_status=$?
6515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6516 test $ac_status = 0; }; then
6517 if test yes = "$lt_cv_prog_gnu_ld"; then
6518 case `/usr/bin/file conftest.$ac_objext` in
6519 *32-bit*)
6520 LD="${LD-ld} -melf32bsmip"
6521 ;;
6522 *N32*)
6523 LD="${LD-ld} -melf32bmipn32"
6524 ;;
6525 *64-bit*)
6526 LD="${LD-ld} -melf64bmip"
6527 ;;
6528 esac
6529 else
6530 case `/usr/bin/file conftest.$ac_objext` in
6531 *32-bit*)
6532 LD="${LD-ld} -32"
6533 ;;
6534 *N32*)
6535 LD="${LD-ld} -n32"
6536 ;;
6537 *64-bit*)
6538 LD="${LD-ld} -64"
6539 ;;
6540 esac
6541 fi
6542 fi
6543 rm -rf conftest*
6544 ;;
6545
6546 mips64*-*linux*)
6547 # Find out what ABI is being produced by ac_compile, and set linker
6548 # options accordingly.
6549 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6551 (eval $ac_compile) 2>&5
6552 ac_status=$?
6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6554 test $ac_status = 0; }; then
6555 emul=elf
6556 case `/usr/bin/file conftest.$ac_objext` in
6557 *32-bit*)
6558 emul="${emul}32"
6559 ;;
6560 *64-bit*)
6561 emul="${emul}64"
6562 ;;
6563 esac
6564 case `/usr/bin/file conftest.$ac_objext` in
6565 *MSB*)
6566 emul="${emul}btsmip"
6567 ;;
6568 *LSB*)
6569 emul="${emul}ltsmip"
6570 ;;
6571 esac
6572 case `/usr/bin/file conftest.$ac_objext` in
6573 *N32*)
6574 emul="${emul}n32"
6575 ;;
6576 esac
6577 LD="${LD-ld} -m $emul"
6578 fi
6579 rm -rf conftest*
6580 ;;
6581
6582 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6583 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6584 # Find out what ABI is being produced by ac_compile, and set linker
6585 # options accordingly. Note that the listed cases only cover the
6586 # situations where additional linker options are needed (such as when
6587 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6588 # vice versa); the common cases where no linker options are needed do
6589 # not appear in the list.
6590 echo 'int i;' > conftest.$ac_ext
6591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6592 (eval $ac_compile) 2>&5
6593 ac_status=$?
6594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6595 test $ac_status = 0; }; then
6596 case `/usr/bin/file conftest.o` in
6597 *32-bit*)
6598 case $host in
6599 x86_64-*kfreebsd*-gnu)
6600 LD="${LD-ld} -m elf_i386_fbsd"
6601 ;;
6602 x86_64-*linux*)
6603 case `/usr/bin/file conftest.o` in
6604 *x86-64*)
6605 LD="${LD-ld} -m elf32_x86_64"
6606 ;;
6607 *)
6608 LD="${LD-ld} -m elf_i386"
6609 ;;
6610 esac
6611 ;;
6612 powerpc64le-*linux*)
6613 LD="${LD-ld} -m elf32lppclinux"
6614 ;;
6615 powerpc64-*linux*)
6616 LD="${LD-ld} -m elf32ppclinux"
6617 ;;
6618 s390x-*linux*)
6619 LD="${LD-ld} -m elf_s390"
6620 ;;
6621 sparc64-*linux*)
6622 LD="${LD-ld} -m elf32_sparc"
6623 ;;
6624 esac
6625 ;;
6626 *64-bit*)
6627 case $host in
6628 x86_64-*kfreebsd*-gnu)
6629 LD="${LD-ld} -m elf_x86_64_fbsd"
6630 ;;
6631 x86_64-*linux*)
6632 LD="${LD-ld} -m elf_x86_64"
6633 ;;
6634 powerpcle-*linux*)
6635 LD="${LD-ld} -m elf64lppc"
6636 ;;
6637 powerpc-*linux*)
6638 LD="${LD-ld} -m elf64ppc"
6639 ;;
6640 s390*-*linux*|s390*-*tpf*)
6641 LD="${LD-ld} -m elf64_s390"
6642 ;;
6643 sparc*-*linux*)
6644 LD="${LD-ld} -m elf64_sparc"
6645 ;;
6646 esac
6647 ;;
6648 esac
6649 fi
6650 rm -rf conftest*
6651 ;;
6652
6653 *-*-sco3.2v5*)
6654 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6655 SAVE_CFLAGS=$CFLAGS
6656 CFLAGS="$CFLAGS -belf"
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6658 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6659 if ${lt_cv_cc_needs_belf+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661 else
6662 ac_ext=c
6663 ac_cpp='$CPP $CPPFLAGS'
6664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6667
6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6670
6671 int
6672 main ()
6673 {
6674
6675 ;
6676 return 0;
6677 }
6678 _ACEOF
6679 if ac_fn_c_try_link "$LINENO"; then :
6680 lt_cv_cc_needs_belf=yes
6681 else
6682 lt_cv_cc_needs_belf=no
6683 fi
6684 rm -f core conftest.err conftest.$ac_objext \
6685 conftest$ac_exeext conftest.$ac_ext
6686 ac_ext=c
6687 ac_cpp='$CPP $CPPFLAGS'
6688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6691
6692 fi
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6694 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6695 if test yes != "$lt_cv_cc_needs_belf"; then
6696 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6697 CFLAGS=$SAVE_CFLAGS
6698 fi
6699 ;;
6700 *-*solaris*)
6701 # Find out what ABI is being produced by ac_compile, and set linker
6702 # options accordingly.
6703 echo 'int i;' > conftest.$ac_ext
6704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6705 (eval $ac_compile) 2>&5
6706 ac_status=$?
6707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708 test $ac_status = 0; }; then
6709 case `/usr/bin/file conftest.o` in
6710 *64-bit*)
6711 case $lt_cv_prog_gnu_ld in
6712 yes*)
6713 case $host in
6714 i?86-*-solaris*|x86_64-*-solaris*)
6715 LD="${LD-ld} -m elf_x86_64"
6716 ;;
6717 sparc*-*-solaris*)
6718 LD="${LD-ld} -m elf64_sparc"
6719 ;;
6720 esac
6721 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6722 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6723 LD=${LD-ld}_sol2
6724 fi
6725 ;;
6726 *)
6727 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6728 LD="${LD-ld} -64"
6729 fi
6730 ;;
6731 esac
6732 ;;
6733 esac
6734 fi
6735 rm -rf conftest*
6736 ;;
6737 esac
6738
6739 need_locks=$enable_libtool_lock
6740
6741 if test -n "$ac_tool_prefix"; then
6742 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6743 set dummy ${ac_tool_prefix}mt; ac_word=$2
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745 $as_echo_n "checking for $ac_word... " >&6; }
6746 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 if test -n "$MANIFEST_TOOL"; then
6750 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6751 else
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6762 fi
6763 done
6764 done
6765 IFS=$as_save_IFS
6766
6767 fi
6768 fi
6769 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6770 if test -n "$MANIFEST_TOOL"; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6772 $as_echo "$MANIFEST_TOOL" >&6; }
6773 else
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 $as_echo "no" >&6; }
6776 fi
6777
6778
6779 fi
6780 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6781 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6782 # Extract the first word of "mt", so it can be a program name with args.
6783 set dummy mt; ac_word=$2
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785 $as_echo_n "checking for $ac_word... " >&6; }
6786 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 if test -n "$ac_ct_MANIFEST_TOOL"; then
6790 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6791 else
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6794 do
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6799 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 break 2
6802 fi
6803 done
6804 done
6805 IFS=$as_save_IFS
6806
6807 fi
6808 fi
6809 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6810 if test -n "$ac_ct_MANIFEST_TOOL"; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6812 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6813 else
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815 $as_echo "no" >&6; }
6816 fi
6817
6818 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6819 MANIFEST_TOOL=":"
6820 else
6821 case $cross_compiling:$ac_tool_warned in
6822 yes:)
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6825 ac_tool_warned=yes ;;
6826 esac
6827 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6828 fi
6829 else
6830 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6831 fi
6832
6833 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6835 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6836 if ${lt_cv_path_mainfest_tool+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 lt_cv_path_mainfest_tool=no
6840 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6841 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6842 cat conftest.err >&5
6843 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6844 lt_cv_path_mainfest_tool=yes
6845 fi
6846 rm -f conftest*
6847 fi
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6849 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6850 if test yes != "$lt_cv_path_mainfest_tool"; then
6851 MANIFEST_TOOL=:
6852 fi
6853
6854
6855
6856
6857
6858
6859 case $host_os in
6860 rhapsody* | darwin*)
6861 if test -n "$ac_tool_prefix"; then
6862 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6863 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 if test -n "$DSYMUTIL"; then
6870 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6879 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6882 fi
6883 done
6884 done
6885 IFS=$as_save_IFS
6886
6887 fi
6888 fi
6889 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6890 if test -n "$DSYMUTIL"; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6892 $as_echo "$DSYMUTIL" >&6; }
6893 else
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6896 fi
6897
6898
6899 fi
6900 if test -z "$ac_cv_prog_DSYMUTIL"; then
6901 ac_ct_DSYMUTIL=$DSYMUTIL
6902 # Extract the first word of "dsymutil", so it can be a program name with args.
6903 set dummy dsymutil; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 if test -n "$ac_ct_DSYMUTIL"; then
6910 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6919 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923 done
6924 done
6925 IFS=$as_save_IFS
6926
6927 fi
6928 fi
6929 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6930 if test -n "$ac_ct_DSYMUTIL"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6932 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6933 else
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6936 fi
6937
6938 if test "x$ac_ct_DSYMUTIL" = x; then
6939 DSYMUTIL=":"
6940 else
6941 case $cross_compiling:$ac_tool_warned in
6942 yes:)
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6945 ac_tool_warned=yes ;;
6946 esac
6947 DSYMUTIL=$ac_ct_DSYMUTIL
6948 fi
6949 else
6950 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6951 fi
6952
6953 if test -n "$ac_tool_prefix"; then
6954 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6955 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957 $as_echo_n "checking for $ac_word... " >&6; }
6958 if ${ac_cv_prog_NMEDIT+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 if test -n "$NMEDIT"; then
6962 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6963 else
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6966 do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6971 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6974 fi
6975 done
6976 done
6977 IFS=$as_save_IFS
6978
6979 fi
6980 fi
6981 NMEDIT=$ac_cv_prog_NMEDIT
6982 if test -n "$NMEDIT"; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6984 $as_echo "$NMEDIT" >&6; }
6985 else
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987 $as_echo "no" >&6; }
6988 fi
6989
6990
6991 fi
6992 if test -z "$ac_cv_prog_NMEDIT"; then
6993 ac_ct_NMEDIT=$NMEDIT
6994 # Extract the first word of "nmedit", so it can be a program name with args.
6995 set dummy nmedit; ac_word=$2
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997 $as_echo_n "checking for $ac_word... " >&6; }
6998 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 if test -n "$ac_ct_NMEDIT"; then
7002 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7003 else
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7006 do
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7011 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 break 2
7014 fi
7015 done
7016 done
7017 IFS=$as_save_IFS
7018
7019 fi
7020 fi
7021 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7022 if test -n "$ac_ct_NMEDIT"; then
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7024 $as_echo "$ac_ct_NMEDIT" >&6; }
7025 else
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 $as_echo "no" >&6; }
7028 fi
7029
7030 if test "x$ac_ct_NMEDIT" = x; then
7031 NMEDIT=":"
7032 else
7033 case $cross_compiling:$ac_tool_warned in
7034 yes:)
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7037 ac_tool_warned=yes ;;
7038 esac
7039 NMEDIT=$ac_ct_NMEDIT
7040 fi
7041 else
7042 NMEDIT="$ac_cv_prog_NMEDIT"
7043 fi
7044
7045 if test -n "$ac_tool_prefix"; then
7046 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7047 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if ${ac_cv_prog_LIPO+:} false; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 if test -n "$LIPO"; then
7054 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7063 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067 done
7068 done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 LIPO=$ac_cv_prog_LIPO
7074 if test -n "$LIPO"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7076 $as_echo "$LIPO" >&6; }
7077 else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7080 fi
7081
7082
7083 fi
7084 if test -z "$ac_cv_prog_LIPO"; then
7085 ac_ct_LIPO=$LIPO
7086 # Extract the first word of "lipo", so it can be a program name with args.
7087 set dummy lipo; ac_word=$2
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089 $as_echo_n "checking for $ac_word... " >&6; }
7090 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 if test -n "$ac_ct_LIPO"; then
7094 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7095 else
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7103 ac_cv_prog_ac_ct_LIPO="lipo"
7104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 break 2
7106 fi
7107 done
7108 done
7109 IFS=$as_save_IFS
7110
7111 fi
7112 fi
7113 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7114 if test -n "$ac_ct_LIPO"; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7116 $as_echo "$ac_ct_LIPO" >&6; }
7117 else
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7120 fi
7121
7122 if test "x$ac_ct_LIPO" = x; then
7123 LIPO=":"
7124 else
7125 case $cross_compiling:$ac_tool_warned in
7126 yes:)
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7129 ac_tool_warned=yes ;;
7130 esac
7131 LIPO=$ac_ct_LIPO
7132 fi
7133 else
7134 LIPO="$ac_cv_prog_LIPO"
7135 fi
7136
7137 if test -n "$ac_tool_prefix"; then
7138 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7139 set dummy ${ac_tool_prefix}otool; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if ${ac_cv_prog_OTOOL+:} false; then :
7143 $as_echo_n "(cached) " >&6
7144 else
7145 if test -n "$OTOOL"; then
7146 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7155 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7158 fi
7159 done
7160 done
7161 IFS=$as_save_IFS
7162
7163 fi
7164 fi
7165 OTOOL=$ac_cv_prog_OTOOL
7166 if test -n "$OTOOL"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7168 $as_echo "$OTOOL" >&6; }
7169 else
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7172 fi
7173
7174
7175 fi
7176 if test -z "$ac_cv_prog_OTOOL"; then
7177 ac_ct_OTOOL=$OTOOL
7178 # Extract the first word of "otool", so it can be a program name with args.
7179 set dummy otool; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 if test -n "$ac_ct_OTOOL"; then
7186 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195 ac_cv_prog_ac_ct_OTOOL="otool"
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202
7203 fi
7204 fi
7205 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7206 if test -n "$ac_ct_OTOOL"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7208 $as_echo "$ac_ct_OTOOL" >&6; }
7209 else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 fi
7213
7214 if test "x$ac_ct_OTOOL" = x; then
7215 OTOOL=":"
7216 else
7217 case $cross_compiling:$ac_tool_warned in
7218 yes:)
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7221 ac_tool_warned=yes ;;
7222 esac
7223 OTOOL=$ac_ct_OTOOL
7224 fi
7225 else
7226 OTOOL="$ac_cv_prog_OTOOL"
7227 fi
7228
7229 if test -n "$ac_tool_prefix"; then
7230 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7231 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233 $as_echo_n "checking for $ac_word... " >&6; }
7234 if ${ac_cv_prog_OTOOL64+:} false; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 if test -n "$OTOOL64"; then
7238 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7239 else
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7242 do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7247 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7250 fi
7251 done
7252 done
7253 IFS=$as_save_IFS
7254
7255 fi
7256 fi
7257 OTOOL64=$ac_cv_prog_OTOOL64
7258 if test -n "$OTOOL64"; then
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7260 $as_echo "$OTOOL64" >&6; }
7261 else
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263 $as_echo "no" >&6; }
7264 fi
7265
7266
7267 fi
7268 if test -z "$ac_cv_prog_OTOOL64"; then
7269 ac_ct_OTOOL64=$OTOOL64
7270 # Extract the first word of "otool64", so it can be a program name with args.
7271 set dummy otool64; ac_word=$2
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273 $as_echo_n "checking for $ac_word... " >&6; }
7274 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 if test -n "$ac_ct_OTOOL64"; then
7278 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7279 else
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7282 do
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7287 ac_cv_prog_ac_ct_OTOOL64="otool64"
7288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 break 2
7290 fi
7291 done
7292 done
7293 IFS=$as_save_IFS
7294
7295 fi
7296 fi
7297 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7298 if test -n "$ac_ct_OTOOL64"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7300 $as_echo "$ac_ct_OTOOL64" >&6; }
7301 else
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7304 fi
7305
7306 if test "x$ac_ct_OTOOL64" = x; then
7307 OTOOL64=":"
7308 else
7309 case $cross_compiling:$ac_tool_warned in
7310 yes:)
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7313 ac_tool_warned=yes ;;
7314 esac
7315 OTOOL64=$ac_ct_OTOOL64
7316 fi
7317 else
7318 OTOOL64="$ac_cv_prog_OTOOL64"
7319 fi
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7348 $as_echo_n "checking for -single_module linker flag... " >&6; }
7349 if ${lt_cv_apple_cc_single_mod+:} false; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 lt_cv_apple_cc_single_mod=no
7353 if test -z "$LT_MULTI_MODULE"; then
7354 # By default we will add the -single_module flag. You can override
7355 # by either setting the environment variable LT_MULTI_MODULE
7356 # non-empty at configure time, or by adding -multi_module to the
7357 # link flags.
7358 rm -rf libconftest.dylib*
7359 echo "int foo(void){return 1;}" > conftest.c
7360 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7361 -dynamiclib -Wl,-single_module conftest.c" >&5
7362 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7363 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7364 _lt_result=$?
7365 # If there is a non-empty error log, and "single_module"
7366 # appears in it, assume the flag caused a linker warning
7367 if test -s conftest.err && $GREP single_module conftest.err; then
7368 cat conftest.err >&5
7369 # Otherwise, if the output was created with a 0 exit code from
7370 # the compiler, it worked.
7371 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7372 lt_cv_apple_cc_single_mod=yes
7373 else
7374 cat conftest.err >&5
7375 fi
7376 rm -rf libconftest.dylib*
7377 rm -f conftest.*
7378 fi
7379 fi
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7381 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7382
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7384 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7385 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7388 lt_cv_ld_exported_symbols_list=no
7389 save_LDFLAGS=$LDFLAGS
7390 echo "_main" > conftest.sym
7391 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7394
7395 int
7396 main ()
7397 {
7398
7399 ;
7400 return 0;
7401 }
7402 _ACEOF
7403 if ac_fn_c_try_link "$LINENO"; then :
7404 lt_cv_ld_exported_symbols_list=yes
7405 else
7406 lt_cv_ld_exported_symbols_list=no
7407 fi
7408 rm -f core conftest.err conftest.$ac_objext \
7409 conftest$ac_exeext conftest.$ac_ext
7410 LDFLAGS=$save_LDFLAGS
7411
7412 fi
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7414 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7415
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7417 $as_echo_n "checking for -force_load linker flag... " >&6; }
7418 if ${lt_cv_ld_force_load+:} false; then :
7419 $as_echo_n "(cached) " >&6
7420 else
7421 lt_cv_ld_force_load=no
7422 cat > conftest.c << _LT_EOF
7423 int forced_loaded() { return 2;}
7424 _LT_EOF
7425 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7426 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7427 echo "$AR cru libconftest.a conftest.o" >&5
7428 $AR cru libconftest.a conftest.o 2>&5
7429 echo "$RANLIB libconftest.a" >&5
7430 $RANLIB libconftest.a 2>&5
7431 cat > conftest.c << _LT_EOF
7432 int main() { return 0;}
7433 _LT_EOF
7434 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7435 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7436 _lt_result=$?
7437 if test -s conftest.err && $GREP force_load conftest.err; then
7438 cat conftest.err >&5
7439 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7440 lt_cv_ld_force_load=yes
7441 else
7442 cat conftest.err >&5
7443 fi
7444 rm -f conftest.err libconftest.a conftest conftest.c
7445 rm -rf conftest.dSYM
7446
7447 fi
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7449 $as_echo "$lt_cv_ld_force_load" >&6; }
7450 case $host_os in
7451 rhapsody* | darwin1.[012])
7452 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7453 darwin1.*)
7454 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7455 darwin*) # darwin 5.x on
7456 # if running on 10.5 or later, the deployment target defaults
7457 # to the OS version, if on x86, and 10.4, the deployment
7458 # target defaults to 10.4. Don't you love it?
7459 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7460 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7461 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7462 10.[012][,.]*)
7463 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7464 10.*)
7465 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7466 esac
7467 ;;
7468 esac
7469 if test yes = "$lt_cv_apple_cc_single_mod"; then
7470 _lt_dar_single_mod='$single_module'
7471 fi
7472 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7473 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7474 else
7475 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7476 fi
7477 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7478 _lt_dsymutil='~$DSYMUTIL $lib || :'
7479 else
7480 _lt_dsymutil=
7481 fi
7482 ;;
7483 esac
7484
7485 # func_munge_path_list VARIABLE PATH
7486 # -----------------------------------
7487 # VARIABLE is name of variable containing _space_ separated list of
7488 # directories to be munged by the contents of PATH, which is string
7489 # having a format:
7490 # "DIR[:DIR]:"
7491 # string "DIR[ DIR]" will be prepended to VARIABLE
7492 # ":DIR[:DIR]"
7493 # string "DIR[ DIR]" will be appended to VARIABLE
7494 # "DIRP[:DIRP]::[DIRA:]DIRA"
7495 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7496 # "DIRA[ DIRA]" will be appended to VARIABLE
7497 # "DIR[:DIR]"
7498 # VARIABLE will be replaced by "DIR[ DIR]"
7499 func_munge_path_list ()
7500 {
7501 case x$2 in
7502 x)
7503 ;;
7504 *:)
7505 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7506 ;;
7507 x:*)
7508 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7509 ;;
7510 *::*)
7511 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7512 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7513 ;;
7514 *)
7515 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7516 ;;
7517 esac
7518 }
7519
7520 ac_ext=c
7521 ac_cpp='$CPP $CPPFLAGS'
7522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7526 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7527 # On Suns, sometimes $CPP names a directory.
7528 if test -n "$CPP" && test -d "$CPP"; then
7529 CPP=
7530 fi
7531 if test -z "$CPP"; then
7532 if ${ac_cv_prog_CPP+:} false; then :
7533 $as_echo_n "(cached) " >&6
7534 else
7535 # Double quotes because CPP needs to be expanded
7536 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7537 do
7538 ac_preproc_ok=false
7539 for ac_c_preproc_warn_flag in '' yes
7540 do
7541 # Use a header file that comes with gcc, so configuring glibc
7542 # with a fresh cross-compiler works.
7543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7544 # <limits.h> exists even on freestanding compilers.
7545 # On the NeXT, cc -E runs the code through the compiler's parser,
7546 # not just through cpp. "Syntax error" is here to catch this case.
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7549 #ifdef __STDC__
7550 # include <limits.h>
7551 #else
7552 # include <assert.h>
7553 #endif
7554 Syntax error
7555 _ACEOF
7556 if ac_fn_c_try_cpp "$LINENO"; then :
7557
7558 else
7559 # Broken: fails on valid input.
7560 continue
7561 fi
7562 rm -f conftest.err conftest.i conftest.$ac_ext
7563
7564 # OK, works on sane cases. Now check whether nonexistent headers
7565 # can be detected and how.
7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7568 #include <ac_nonexistent.h>
7569 _ACEOF
7570 if ac_fn_c_try_cpp "$LINENO"; then :
7571 # Broken: success on invalid input.
7572 continue
7573 else
7574 # Passes both tests.
7575 ac_preproc_ok=:
7576 break
7577 fi
7578 rm -f conftest.err conftest.i conftest.$ac_ext
7579
7580 done
7581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7582 rm -f conftest.i conftest.err conftest.$ac_ext
7583 if $ac_preproc_ok; then :
7584 break
7585 fi
7586
7587 done
7588 ac_cv_prog_CPP=$CPP
7589
7590 fi
7591 CPP=$ac_cv_prog_CPP
7592 else
7593 ac_cv_prog_CPP=$CPP
7594 fi
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7596 $as_echo "$CPP" >&6; }
7597 ac_preproc_ok=false
7598 for ac_c_preproc_warn_flag in '' yes
7599 do
7600 # Use a header file that comes with gcc, so configuring glibc
7601 # with a fresh cross-compiler works.
7602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7603 # <limits.h> exists even on freestanding compilers.
7604 # On the NeXT, cc -E runs the code through the compiler's parser,
7605 # not just through cpp. "Syntax error" is here to catch this case.
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7608 #ifdef __STDC__
7609 # include <limits.h>
7610 #else
7611 # include <assert.h>
7612 #endif
7613 Syntax error
7614 _ACEOF
7615 if ac_fn_c_try_cpp "$LINENO"; then :
7616
7617 else
7618 # Broken: fails on valid input.
7619 continue
7620 fi
7621 rm -f conftest.err conftest.i conftest.$ac_ext
7622
7623 # OK, works on sane cases. Now check whether nonexistent headers
7624 # can be detected and how.
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7627 #include <ac_nonexistent.h>
7628 _ACEOF
7629 if ac_fn_c_try_cpp "$LINENO"; then :
7630 # Broken: success on invalid input.
7631 continue
7632 else
7633 # Passes both tests.
7634 ac_preproc_ok=:
7635 break
7636 fi
7637 rm -f conftest.err conftest.i conftest.$ac_ext
7638
7639 done
7640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7641 rm -f conftest.i conftest.err conftest.$ac_ext
7642 if $ac_preproc_ok; then :
7643
7644 else
7645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7647 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7648 See \`config.log' for more details" "$LINENO" 5; }
7649 fi
7650
7651 ac_ext=c
7652 ac_cpp='$CPP $CPPFLAGS'
7653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7656
7657
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7659 $as_echo_n "checking for ANSI C header files... " >&6; }
7660 if ${ac_cv_header_stdc+:} false; then :
7661 $as_echo_n "(cached) " >&6
7662 else
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7665 #include <stdlib.h>
7666 #include <stdarg.h>
7667 #include <string.h>
7668 #include <float.h>
7669
7670 int
7671 main ()
7672 {
7673
7674 ;
7675 return 0;
7676 }
7677 _ACEOF
7678 if ac_fn_c_try_compile "$LINENO"; then :
7679 ac_cv_header_stdc=yes
7680 else
7681 ac_cv_header_stdc=no
7682 fi
7683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7684
7685 if test $ac_cv_header_stdc = yes; then
7686 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h. */
7689 #include <string.h>
7690
7691 _ACEOF
7692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7693 $EGREP "memchr" >/dev/null 2>&1; then :
7694
7695 else
7696 ac_cv_header_stdc=no
7697 fi
7698 rm -f conftest*
7699
7700 fi
7701
7702 if test $ac_cv_header_stdc = yes; then
7703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705 /* end confdefs.h. */
7706 #include <stdlib.h>
7707
7708 _ACEOF
7709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7710 $EGREP "free" >/dev/null 2>&1; then :
7711
7712 else
7713 ac_cv_header_stdc=no
7714 fi
7715 rm -f conftest*
7716
7717 fi
7718
7719 if test $ac_cv_header_stdc = yes; then
7720 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7721 if test "$cross_compiling" = yes; then :
7722 :
7723 else
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7726 #include <ctype.h>
7727 #include <stdlib.h>
7728 #if ((' ' & 0x0FF) == 0x020)
7729 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7730 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7731 #else
7732 # define ISLOWER(c) \
7733 (('a' <= (c) && (c) <= 'i') \
7734 || ('j' <= (c) && (c) <= 'r') \
7735 || ('s' <= (c) && (c) <= 'z'))
7736 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7737 #endif
7738
7739 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7740 int
7741 main ()
7742 {
7743 int i;
7744 for (i = 0; i < 256; i++)
7745 if (XOR (islower (i), ISLOWER (i))
7746 || toupper (i) != TOUPPER (i))
7747 return 2;
7748 return 0;
7749 }
7750 _ACEOF
7751 if ac_fn_c_try_run "$LINENO"; then :
7752
7753 else
7754 ac_cv_header_stdc=no
7755 fi
7756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7757 conftest.$ac_objext conftest.beam conftest.$ac_ext
7758 fi
7759
7760 fi
7761 fi
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7763 $as_echo "$ac_cv_header_stdc" >&6; }
7764 if test $ac_cv_header_stdc = yes; then
7765
7766 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7767
7768 fi
7769
7770 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7771 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7772 inttypes.h stdint.h unistd.h
7773 do :
7774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7775 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7776 "
7777 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7778 cat >>confdefs.h <<_ACEOF
7779 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7780 _ACEOF
7781
7782 fi
7783
7784 done
7785
7786
7787 for ac_header in dlfcn.h
7788 do :
7789 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7790 "
7791 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7792 cat >>confdefs.h <<_ACEOF
7793 #define HAVE_DLFCN_H 1
7794 _ACEOF
7795
7796 fi
7797
7798 done
7799
7800
7801
7802
7803
7804 # Set options
7805
7806
7807
7808 enable_dlopen=no
7809
7810
7811 enable_win32_dll=no
7812
7813
7814 # Check whether --enable-shared was given.
7815 if test "${enable_shared+set}" = set; then :
7816 enableval=$enable_shared; p=${PACKAGE-default}
7817 case $enableval in
7818 yes) enable_shared=yes ;;
7819 no) enable_shared=no ;;
7820 *)
7821 enable_shared=no
7822 # Look at the argument we got. We use all the common list separators.
7823 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7824 for pkg in $enableval; do
7825 IFS=$lt_save_ifs
7826 if test "X$pkg" = "X$p"; then
7827 enable_shared=yes
7828 fi
7829 done
7830 IFS=$lt_save_ifs
7831 ;;
7832 esac
7833 else
7834 enable_shared=yes
7835 fi
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845 # Check whether --enable-static was given.
7846 if test "${enable_static+set}" = set; then :
7847 enableval=$enable_static; p=${PACKAGE-default}
7848 case $enableval in
7849 yes) enable_static=yes ;;
7850 no) enable_static=no ;;
7851 *)
7852 enable_static=no
7853 # Look at the argument we got. We use all the common list separators.
7854 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7855 for pkg in $enableval; do
7856 IFS=$lt_save_ifs
7857 if test "X$pkg" = "X$p"; then
7858 enable_static=yes
7859 fi
7860 done
7861 IFS=$lt_save_ifs
7862 ;;
7863 esac
7864 else
7865 enable_static=yes
7866 fi
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877 # Check whether --with-pic was given.
7878 if test "${with_pic+set}" = set; then :
7879 withval=$with_pic; lt_p=${PACKAGE-default}
7880 case $withval in
7881 yes|no) pic_mode=$withval ;;
7882 *)
7883 pic_mode=default
7884 # Look at the argument we got. We use all the common list separators.
7885 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7886 for lt_pkg in $withval; do
7887 IFS=$lt_save_ifs
7888 if test "X$lt_pkg" = "X$lt_p"; then
7889 pic_mode=yes
7890 fi
7891 done
7892 IFS=$lt_save_ifs
7893 ;;
7894 esac
7895 else
7896 pic_mode=default
7897 fi
7898
7899
7900
7901
7902
7903
7904
7905
7906 # Check whether --enable-fast-install was given.
7907 if test "${enable_fast_install+set}" = set; then :
7908 enableval=$enable_fast_install; p=${PACKAGE-default}
7909 case $enableval in
7910 yes) enable_fast_install=yes ;;
7911 no) enable_fast_install=no ;;
7912 *)
7913 enable_fast_install=no
7914 # Look at the argument we got. We use all the common list separators.
7915 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7916 for pkg in $enableval; do
7917 IFS=$lt_save_ifs
7918 if test "X$pkg" = "X$p"; then
7919 enable_fast_install=yes
7920 fi
7921 done
7922 IFS=$lt_save_ifs
7923 ;;
7924 esac
7925 else
7926 enable_fast_install=yes
7927 fi
7928
7929
7930
7931
7932
7933
7934
7935
7936 shared_archive_member_spec=
7937 case $host,$enable_shared in
7938 power*-*-aix[5-9]*,yes)
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7940 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7941
7942 # Check whether --with-aix-soname was given.
7943 if test "${with_aix_soname+set}" = set; then :
7944 withval=$with_aix_soname; case $withval in
7945 aix|svr4|both)
7946 ;;
7947 *)
7948 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7949 ;;
7950 esac
7951 lt_cv_with_aix_soname=$with_aix_soname
7952 else
7953 if ${lt_cv_with_aix_soname+:} false; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 lt_cv_with_aix_soname=aix
7957 fi
7958
7959 with_aix_soname=$lt_cv_with_aix_soname
7960 fi
7961
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7963 $as_echo "$with_aix_soname" >&6; }
7964 if test aix != "$with_aix_soname"; then
7965 # For the AIX way of multilib, we name the shared archive member
7966 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7967 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7968 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7969 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7970 if test 64 = "${OBJECT_MODE-32}"; then
7971 shared_archive_member_spec=shr_64
7972 else
7973 shared_archive_member_spec=shr
7974 fi
7975 fi
7976 ;;
7977 *)
7978 with_aix_soname=aix
7979 ;;
7980 esac
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991 # This can be used to rebuild libtool when needed
7992 LIBTOOL_DEPS=$ltmain
7993
7994 # Always use our own libtool.
7995 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026 test -z "$LN_S" && LN_S="ln -s"
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041 if test -n "${ZSH_VERSION+set}"; then
8042 setopt NO_GLOB_SUBST
8043 fi
8044
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8046 $as_echo_n "checking for objdir... " >&6; }
8047 if ${lt_cv_objdir+:} false; then :
8048 $as_echo_n "(cached) " >&6
8049 else
8050 rm -f .libs 2>/dev/null
8051 mkdir .libs 2>/dev/null
8052 if test -d .libs; then
8053 lt_cv_objdir=.libs
8054 else
8055 # MS-DOS does not allow filenames that begin with a dot.
8056 lt_cv_objdir=_libs
8057 fi
8058 rmdir .libs 2>/dev/null
8059 fi
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8061 $as_echo "$lt_cv_objdir" >&6; }
8062 objdir=$lt_cv_objdir
8063
8064
8065
8066
8067
8068 cat >>confdefs.h <<_ACEOF
8069 #define LT_OBJDIR "$lt_cv_objdir/"
8070 _ACEOF
8071
8072
8073
8074
8075 case $host_os in
8076 aix3*)
8077 # AIX sometimes has problems with the GCC collect2 program. For some
8078 # reason, if we set the COLLECT_NAMES environment variable, the problems
8079 # vanish in a puff of smoke.
8080 if test set != "${COLLECT_NAMES+set}"; then
8081 COLLECT_NAMES=
8082 export COLLECT_NAMES
8083 fi
8084 ;;
8085 esac
8086
8087 # Global variables:
8088 ofile=libtool
8089 can_build_shared=yes
8090
8091 # All known linkers require a '.a' archive for static linking (except MSVC,
8092 # which needs '.lib').
8093 libext=a
8094
8095 with_gnu_ld=$lt_cv_prog_gnu_ld
8096
8097 old_CC=$CC
8098 old_CFLAGS=$CFLAGS
8099
8100 # Set sane defaults for various variables
8101 test -z "$CC" && CC=cc
8102 test -z "$LTCC" && LTCC=$CC
8103 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8104 test -z "$LD" && LD=ld
8105 test -z "$ac_objext" && ac_objext=o
8106
8107 func_cc_basename $compiler
8108 cc_basename=$func_cc_basename_result
8109
8110
8111 # Only perform the check for file, if the check method requires it
8112 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8113 case $deplibs_check_method in
8114 file_magic*)
8115 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8117 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8118 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 case $MAGIC_CMD in
8122 [\\/*] | ?:[\\/]*)
8123 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8124 ;;
8125 *)
8126 lt_save_MAGIC_CMD=$MAGIC_CMD
8127 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8128 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8129 for ac_dir in $ac_dummy; do
8130 IFS=$lt_save_ifs
8131 test -z "$ac_dir" && ac_dir=.
8132 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8133 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8134 if test -n "$file_magic_test_file"; then
8135 case $deplibs_check_method in
8136 "file_magic "*)
8137 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8138 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8139 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8140 $EGREP "$file_magic_regex" > /dev/null; then
8141 :
8142 else
8143 cat <<_LT_EOF 1>&2
8144
8145 *** Warning: the command libtool uses to detect shared libraries,
8146 *** $file_magic_cmd, produces output that libtool cannot recognize.
8147 *** The result is that libtool may fail to recognize shared libraries
8148 *** as such. This will affect the creation of libtool libraries that
8149 *** depend on shared libraries, but programs linked with such libtool
8150 *** libraries will work regardless of this problem. Nevertheless, you
8151 *** may want to report the problem to your system manager and/or to
8152 *** bug-libtool@gnu.org
8153
8154 _LT_EOF
8155 fi ;;
8156 esac
8157 fi
8158 break
8159 fi
8160 done
8161 IFS=$lt_save_ifs
8162 MAGIC_CMD=$lt_save_MAGIC_CMD
8163 ;;
8164 esac
8165 fi
8166
8167 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8168 if test -n "$MAGIC_CMD"; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8170 $as_echo "$MAGIC_CMD" >&6; }
8171 else
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8174 fi
8175
8176
8177
8178
8179
8180 if test -z "$lt_cv_path_MAGIC_CMD"; then
8181 if test -n "$ac_tool_prefix"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8183 $as_echo_n "checking for file... " >&6; }
8184 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 case $MAGIC_CMD in
8188 [\\/*] | ?:[\\/]*)
8189 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8190 ;;
8191 *)
8192 lt_save_MAGIC_CMD=$MAGIC_CMD
8193 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8194 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8195 for ac_dir in $ac_dummy; do
8196 IFS=$lt_save_ifs
8197 test -z "$ac_dir" && ac_dir=.
8198 if test -f "$ac_dir/file"; then
8199 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8200 if test -n "$file_magic_test_file"; then
8201 case $deplibs_check_method in
8202 "file_magic "*)
8203 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8204 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8205 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8206 $EGREP "$file_magic_regex" > /dev/null; then
8207 :
8208 else
8209 cat <<_LT_EOF 1>&2
8210
8211 *** Warning: the command libtool uses to detect shared libraries,
8212 *** $file_magic_cmd, produces output that libtool cannot recognize.
8213 *** The result is that libtool may fail to recognize shared libraries
8214 *** as such. This will affect the creation of libtool libraries that
8215 *** depend on shared libraries, but programs linked with such libtool
8216 *** libraries will work regardless of this problem. Nevertheless, you
8217 *** may want to report the problem to your system manager and/or to
8218 *** bug-libtool@gnu.org
8219
8220 _LT_EOF
8221 fi ;;
8222 esac
8223 fi
8224 break
8225 fi
8226 done
8227 IFS=$lt_save_ifs
8228 MAGIC_CMD=$lt_save_MAGIC_CMD
8229 ;;
8230 esac
8231 fi
8232
8233 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8234 if test -n "$MAGIC_CMD"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8236 $as_echo "$MAGIC_CMD" >&6; }
8237 else
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8240 fi
8241
8242
8243 else
8244 MAGIC_CMD=:
8245 fi
8246 fi
8247
8248 fi
8249 ;;
8250 esac
8251
8252 # Use C for the default configuration in the libtool script
8253
8254 lt_save_CC=$CC
8255 ac_ext=c
8256 ac_cpp='$CPP $CPPFLAGS'
8257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8260
8261
8262 # Source file extension for C test sources.
8263 ac_ext=c
8264
8265 # Object file extension for compiled C test sources.
8266 objext=o
8267 objext=$objext
8268
8269 # Code to be used in simple compile tests
8270 lt_simple_compile_test_code="int some_variable = 0;"
8271
8272 # Code to be used in simple link tests
8273 lt_simple_link_test_code='int main(){return(0);}'
8274
8275
8276
8277
8278
8279
8280
8281 # If no C compiler was specified, use CC.
8282 LTCC=${LTCC-"$CC"}
8283
8284 # If no C compiler flags were specified, use CFLAGS.
8285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8286
8287 # Allow CC to be a program name with arguments.
8288 compiler=$CC
8289
8290 # Save the default compiler, since it gets overwritten when the other
8291 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8292 compiler_DEFAULT=$CC
8293
8294 # save warnings/boilerplate of simple test code
8295 ac_outfile=conftest.$ac_objext
8296 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8297 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8298 _lt_compiler_boilerplate=`cat conftest.err`
8299 $RM conftest*
8300
8301 ac_outfile=conftest.$ac_objext
8302 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8303 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8304 _lt_linker_boilerplate=`cat conftest.err`
8305 $RM -r conftest*
8306
8307
8308 ## CAVEAT EMPTOR:
8309 ## There is no encapsulation within the following macros, do not change
8310 ## the running order or otherwise move them around unless you know exactly
8311 ## what you are doing...
8312 if test -n "$compiler"; then
8313
8314 lt_prog_compiler_no_builtin_flag=
8315
8316 if test yes = "$GCC"; then
8317 case $cc_basename in
8318 nvcc*)
8319 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8320 *)
8321 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8322 esac
8323
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8325 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8326 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8327 $as_echo_n "(cached) " >&6
8328 else
8329 lt_cv_prog_compiler_rtti_exceptions=no
8330 ac_outfile=conftest.$ac_objext
8331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8332 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8333 # Insert the option either (1) after the last *FLAGS variable, or
8334 # (2) before a word containing "conftest.", or (3) at the end.
8335 # Note that $ac_compile itself does not contain backslashes and begins
8336 # with a dollar sign (not a hyphen), so the echo should work correctly.
8337 # The option is referenced via a variable to avoid confusing sed.
8338 lt_compile=`echo "$ac_compile" | $SED \
8339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8341 -e 's:$: $lt_compiler_flag:'`
8342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8343 (eval "$lt_compile" 2>conftest.err)
8344 ac_status=$?
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 if (exit $ac_status) && test -s "$ac_outfile"; then
8348 # The compiler can only warn and ignore the option if not recognized
8349 # So say no if there are warnings other than the usual output.
8350 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8352 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8353 lt_cv_prog_compiler_rtti_exceptions=yes
8354 fi
8355 fi
8356 $RM conftest*
8357
8358 fi
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8360 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8361
8362 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8363 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8364 else
8365 :
8366 fi
8367
8368 fi
8369
8370
8371
8372
8373
8374
8375 lt_prog_compiler_wl=
8376 lt_prog_compiler_pic=
8377 lt_prog_compiler_static=
8378
8379
8380 if test yes = "$GCC"; then
8381 lt_prog_compiler_wl='-Wl,'
8382 lt_prog_compiler_static='-static'
8383
8384 case $host_os in
8385 aix*)
8386 # All AIX code is PIC.
8387 if test ia64 = "$host_cpu"; then
8388 # AIX 5 now supports IA64 processor
8389 lt_prog_compiler_static='-Bstatic'
8390 fi
8391 lt_prog_compiler_pic='-fPIC'
8392 ;;
8393
8394 amigaos*)
8395 case $host_cpu in
8396 powerpc)
8397 # see comment about AmigaOS4 .so support
8398 lt_prog_compiler_pic='-fPIC'
8399 ;;
8400 m68k)
8401 # FIXME: we need at least 68020 code to build shared libraries, but
8402 # adding the '-m68020' flag to GCC prevents building anything better,
8403 # like '-m68040'.
8404 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8405 ;;
8406 esac
8407 ;;
8408
8409 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8410 # PIC is the default for these OSes.
8411 ;;
8412
8413 mingw* | cygwin* | pw32* | os2* | cegcc*)
8414 # This hack is so that the source file can tell whether it is being
8415 # built for inclusion in a dll (and should export symbols for example).
8416 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8417 # (--disable-auto-import) libraries
8418 lt_prog_compiler_pic='-DDLL_EXPORT'
8419 case $host_os in
8420 os2*)
8421 lt_prog_compiler_static='$wl-static'
8422 ;;
8423 esac
8424 ;;
8425
8426 darwin* | rhapsody*)
8427 # PIC is the default on this platform
8428 # Common symbols not allowed in MH_DYLIB files
8429 lt_prog_compiler_pic='-fno-common'
8430 ;;
8431
8432 haiku*)
8433 # PIC is the default for Haiku.
8434 # The "-static" flag exists, but is broken.
8435 lt_prog_compiler_static=
8436 ;;
8437
8438 hpux*)
8439 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8440 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8441 # sets the default TLS model and affects inlining.
8442 case $host_cpu in
8443 hppa*64*)
8444 # +Z the default
8445 ;;
8446 *)
8447 lt_prog_compiler_pic='-fPIC'
8448 ;;
8449 esac
8450 ;;
8451
8452 interix[3-9]*)
8453 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8454 # Instead, we relocate shared libraries at runtime.
8455 ;;
8456
8457 msdosdjgpp*)
8458 # Just because we use GCC doesn't mean we suddenly get shared libraries
8459 # on systems that don't support them.
8460 lt_prog_compiler_can_build_shared=no
8461 enable_shared=no
8462 ;;
8463
8464 *nto* | *qnx*)
8465 # QNX uses GNU C++, but need to define -shared option too, otherwise
8466 # it will coredump.
8467 lt_prog_compiler_pic='-fPIC -shared'
8468 ;;
8469
8470 sysv4*MP*)
8471 if test -d /usr/nec; then
8472 lt_prog_compiler_pic=-Kconform_pic
8473 fi
8474 ;;
8475
8476 *)
8477 lt_prog_compiler_pic='-fPIC'
8478 ;;
8479 esac
8480
8481 case $cc_basename in
8482 nvcc*) # Cuda Compiler Driver 2.2
8483 lt_prog_compiler_wl='-Xlinker '
8484 if test -n "$lt_prog_compiler_pic"; then
8485 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8486 fi
8487 ;;
8488 esac
8489 else
8490 # PORTME Check for flag to pass linker flags through the system compiler.
8491 case $host_os in
8492 aix*)
8493 lt_prog_compiler_wl='-Wl,'
8494 if test ia64 = "$host_cpu"; then
8495 # AIX 5 now supports IA64 processor
8496 lt_prog_compiler_static='-Bstatic'
8497 else
8498 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8499 fi
8500 ;;
8501
8502 darwin* | rhapsody*)
8503 # PIC is the default on this platform
8504 # Common symbols not allowed in MH_DYLIB files
8505 lt_prog_compiler_pic='-fno-common'
8506 case $cc_basename in
8507 nagfor*)
8508 # NAG Fortran compiler
8509 lt_prog_compiler_wl='-Wl,-Wl,,'
8510 lt_prog_compiler_pic='-PIC'
8511 lt_prog_compiler_static='-Bstatic'
8512 ;;
8513 esac
8514 ;;
8515
8516 mingw* | cygwin* | pw32* | os2* | cegcc*)
8517 # This hack is so that the source file can tell whether it is being
8518 # built for inclusion in a dll (and should export symbols for example).
8519 lt_prog_compiler_pic='-DDLL_EXPORT'
8520 case $host_os in
8521 os2*)
8522 lt_prog_compiler_static='$wl-static'
8523 ;;
8524 esac
8525 ;;
8526
8527 hpux9* | hpux10* | hpux11*)
8528 lt_prog_compiler_wl='-Wl,'
8529 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8530 # not for PA HP-UX.
8531 case $host_cpu in
8532 hppa*64*|ia64*)
8533 # +Z the default
8534 ;;
8535 *)
8536 lt_prog_compiler_pic='+Z'
8537 ;;
8538 esac
8539 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8540 lt_prog_compiler_static='$wl-a ${wl}archive'
8541 ;;
8542
8543 irix5* | irix6* | nonstopux*)
8544 lt_prog_compiler_wl='-Wl,'
8545 # PIC (with -KPIC) is the default.
8546 lt_prog_compiler_static='-non_shared'
8547 ;;
8548
8549 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8550 case $cc_basename in
8551 # old Intel for x86_64, which still supported -KPIC.
8552 ecc*)
8553 lt_prog_compiler_wl='-Wl,'
8554 lt_prog_compiler_pic='-KPIC'
8555 lt_prog_compiler_static='-static'
8556 ;;
8557 # icc used to be incompatible with GCC.
8558 # ICC 10 doesn't accept -KPIC any more.
8559 icc* | ifort*)
8560 lt_prog_compiler_wl='-Wl,'
8561 lt_prog_compiler_pic='-fPIC'
8562 lt_prog_compiler_static='-static'
8563 ;;
8564 # Lahey Fortran 8.1.
8565 lf95*)
8566 lt_prog_compiler_wl='-Wl,'
8567 lt_prog_compiler_pic='--shared'
8568 lt_prog_compiler_static='--static'
8569 ;;
8570 nagfor*)
8571 # NAG Fortran compiler
8572 lt_prog_compiler_wl='-Wl,-Wl,,'
8573 lt_prog_compiler_pic='-PIC'
8574 lt_prog_compiler_static='-Bstatic'
8575 ;;
8576 tcc*)
8577 # Fabrice Bellard et al's Tiny C Compiler
8578 lt_prog_compiler_wl='-Wl,'
8579 lt_prog_compiler_pic='-fPIC'
8580 lt_prog_compiler_static='-static'
8581 ;;
8582 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8583 # Portland Group compilers (*not* the Pentium gcc compiler,
8584 # which looks to be a dead project)
8585 lt_prog_compiler_wl='-Wl,'
8586 lt_prog_compiler_pic='-fpic'
8587 lt_prog_compiler_static='-Bstatic'
8588 ;;
8589 ccc*)
8590 lt_prog_compiler_wl='-Wl,'
8591 # All Alpha code is PIC.
8592 lt_prog_compiler_static='-non_shared'
8593 ;;
8594 xl* | bgxl* | bgf* | mpixl*)
8595 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8596 lt_prog_compiler_wl='-Wl,'
8597 lt_prog_compiler_pic='-qpic'
8598 lt_prog_compiler_static='-qstaticlink'
8599 ;;
8600 *)
8601 case `$CC -V 2>&1 | sed 5q` in
8602 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8603 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8604 lt_prog_compiler_pic='-KPIC'
8605 lt_prog_compiler_static='-Bstatic'
8606 lt_prog_compiler_wl=''
8607 ;;
8608 *Sun\ F* | *Sun*Fortran*)
8609 lt_prog_compiler_pic='-KPIC'
8610 lt_prog_compiler_static='-Bstatic'
8611 lt_prog_compiler_wl='-Qoption ld '
8612 ;;
8613 *Sun\ C*)
8614 # Sun C 5.9
8615 lt_prog_compiler_pic='-KPIC'
8616 lt_prog_compiler_static='-Bstatic'
8617 lt_prog_compiler_wl='-Wl,'
8618 ;;
8619 *Intel*\ [CF]*Compiler*)
8620 lt_prog_compiler_wl='-Wl,'
8621 lt_prog_compiler_pic='-fPIC'
8622 lt_prog_compiler_static='-static'
8623 ;;
8624 *Portland\ Group*)
8625 lt_prog_compiler_wl='-Wl,'
8626 lt_prog_compiler_pic='-fpic'
8627 lt_prog_compiler_static='-Bstatic'
8628 ;;
8629 esac
8630 ;;
8631 esac
8632 ;;
8633
8634 newsos6)
8635 lt_prog_compiler_pic='-KPIC'
8636 lt_prog_compiler_static='-Bstatic'
8637 ;;
8638
8639 *nto* | *qnx*)
8640 # QNX uses GNU C++, but need to define -shared option too, otherwise
8641 # it will coredump.
8642 lt_prog_compiler_pic='-fPIC -shared'
8643 ;;
8644
8645 osf3* | osf4* | osf5*)
8646 lt_prog_compiler_wl='-Wl,'
8647 # All OSF/1 code is PIC.
8648 lt_prog_compiler_static='-non_shared'
8649 ;;
8650
8651 rdos*)
8652 lt_prog_compiler_static='-non_shared'
8653 ;;
8654
8655 solaris*)
8656 lt_prog_compiler_pic='-KPIC'
8657 lt_prog_compiler_static='-Bstatic'
8658 case $cc_basename in
8659 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8660 lt_prog_compiler_wl='-Qoption ld ';;
8661 *)
8662 lt_prog_compiler_wl='-Wl,';;
8663 esac
8664 ;;
8665
8666 sunos4*)
8667 lt_prog_compiler_wl='-Qoption ld '
8668 lt_prog_compiler_pic='-PIC'
8669 lt_prog_compiler_static='-Bstatic'
8670 ;;
8671
8672 sysv4 | sysv4.2uw2* | sysv4.3*)
8673 lt_prog_compiler_wl='-Wl,'
8674 lt_prog_compiler_pic='-KPIC'
8675 lt_prog_compiler_static='-Bstatic'
8676 ;;
8677
8678 sysv4*MP*)
8679 if test -d /usr/nec; then
8680 lt_prog_compiler_pic='-Kconform_pic'
8681 lt_prog_compiler_static='-Bstatic'
8682 fi
8683 ;;
8684
8685 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8686 lt_prog_compiler_wl='-Wl,'
8687 lt_prog_compiler_pic='-KPIC'
8688 lt_prog_compiler_static='-Bstatic'
8689 ;;
8690
8691 unicos*)
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_can_build_shared=no
8694 ;;
8695
8696 uts4*)
8697 lt_prog_compiler_pic='-pic'
8698 lt_prog_compiler_static='-Bstatic'
8699 ;;
8700
8701 *)
8702 lt_prog_compiler_can_build_shared=no
8703 ;;
8704 esac
8705 fi
8706
8707 case $host_os in
8708 # For platforms that do not support PIC, -DPIC is meaningless:
8709 *djgpp*)
8710 lt_prog_compiler_pic=
8711 ;;
8712 *)
8713 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8714 ;;
8715 esac
8716
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8718 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8719 if ${lt_cv_prog_compiler_pic+:} false; then :
8720 $as_echo_n "(cached) " >&6
8721 else
8722 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8723 fi
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8725 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8726 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8727
8728 #
8729 # Check to make sure the PIC flag actually works.
8730 #
8731 if test -n "$lt_prog_compiler_pic"; then
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8733 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8734 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 lt_cv_prog_compiler_pic_works=no
8738 ac_outfile=conftest.$ac_objext
8739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8740 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8741 # Insert the option either (1) after the last *FLAGS variable, or
8742 # (2) before a word containing "conftest.", or (3) at the end.
8743 # Note that $ac_compile itself does not contain backslashes and begins
8744 # with a dollar sign (not a hyphen), so the echo should work correctly.
8745 # The option is referenced via a variable to avoid confusing sed.
8746 lt_compile=`echo "$ac_compile" | $SED \
8747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8749 -e 's:$: $lt_compiler_flag:'`
8750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8751 (eval "$lt_compile" 2>conftest.err)
8752 ac_status=$?
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 if (exit $ac_status) && test -s "$ac_outfile"; then
8756 # The compiler can only warn and ignore the option if not recognized
8757 # So say no if there are warnings other than the usual output.
8758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8760 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8761 lt_cv_prog_compiler_pic_works=yes
8762 fi
8763 fi
8764 $RM conftest*
8765
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8768 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8769
8770 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8771 case $lt_prog_compiler_pic in
8772 "" | " "*) ;;
8773 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8774 esac
8775 else
8776 lt_prog_compiler_pic=
8777 lt_prog_compiler_can_build_shared=no
8778 fi
8779
8780 fi
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792 #
8793 # Check to make sure the static flag actually works.
8794 #
8795 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8797 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8798 if ${lt_cv_prog_compiler_static_works+:} false; then :
8799 $as_echo_n "(cached) " >&6
8800 else
8801 lt_cv_prog_compiler_static_works=no
8802 save_LDFLAGS=$LDFLAGS
8803 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8804 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8805 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8806 # The linker can only warn and ignore the option if not recognized
8807 # So say no if there are warnings
8808 if test -s conftest.err; then
8809 # Append any errors to the config.log.
8810 cat conftest.err 1>&5
8811 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8813 if diff conftest.exp conftest.er2 >/dev/null; then
8814 lt_cv_prog_compiler_static_works=yes
8815 fi
8816 else
8817 lt_cv_prog_compiler_static_works=yes
8818 fi
8819 fi
8820 $RM -r conftest*
8821 LDFLAGS=$save_LDFLAGS
8822
8823 fi
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8825 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8826
8827 if test yes = "$lt_cv_prog_compiler_static_works"; then
8828 :
8829 else
8830 lt_prog_compiler_static=
8831 fi
8832
8833
8834
8835
8836
8837
8838
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8840 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8841 if ${lt_cv_prog_compiler_c_o+:} false; then :
8842 $as_echo_n "(cached) " >&6
8843 else
8844 lt_cv_prog_compiler_c_o=no
8845 $RM -r conftest 2>/dev/null
8846 mkdir conftest
8847 cd conftest
8848 mkdir out
8849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8850
8851 lt_compiler_flag="-o out/conftest2.$ac_objext"
8852 # Insert the option either (1) after the last *FLAGS variable, or
8853 # (2) before a word containing "conftest.", or (3) at the end.
8854 # Note that $ac_compile itself does not contain backslashes and begins
8855 # with a dollar sign (not a hyphen), so the echo should work correctly.
8856 lt_compile=`echo "$ac_compile" | $SED \
8857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8859 -e 's:$: $lt_compiler_flag:'`
8860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8861 (eval "$lt_compile" 2>out/conftest.err)
8862 ac_status=$?
8863 cat out/conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8866 then
8867 # The compiler can only warn and ignore the option if not recognized
8868 # So say no if there are warnings
8869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8872 lt_cv_prog_compiler_c_o=yes
8873 fi
8874 fi
8875 chmod u+w . 2>&5
8876 $RM conftest*
8877 # SGI C++ compiler will create directory out/ii_files/ for
8878 # template instantiation
8879 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8880 $RM out/* && rmdir out
8881 cd ..
8882 $RM -r conftest
8883 $RM conftest*
8884
8885 fi
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8887 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8888
8889
8890
8891
8892
8893
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8895 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8896 if ${lt_cv_prog_compiler_c_o+:} false; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 lt_cv_prog_compiler_c_o=no
8900 $RM -r conftest 2>/dev/null
8901 mkdir conftest
8902 cd conftest
8903 mkdir out
8904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8905
8906 lt_compiler_flag="-o out/conftest2.$ac_objext"
8907 # Insert the option either (1) after the last *FLAGS variable, or
8908 # (2) before a word containing "conftest.", or (3) at the end.
8909 # Note that $ac_compile itself does not contain backslashes and begins
8910 # with a dollar sign (not a hyphen), so the echo should work correctly.
8911 lt_compile=`echo "$ac_compile" | $SED \
8912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8914 -e 's:$: $lt_compiler_flag:'`
8915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8916 (eval "$lt_compile" 2>out/conftest.err)
8917 ac_status=$?
8918 cat out/conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8921 then
8922 # The compiler can only warn and ignore the option if not recognized
8923 # So say no if there are warnings
8924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8925 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8926 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8927 lt_cv_prog_compiler_c_o=yes
8928 fi
8929 fi
8930 chmod u+w . 2>&5
8931 $RM conftest*
8932 # SGI C++ compiler will create directory out/ii_files/ for
8933 # template instantiation
8934 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8935 $RM out/* && rmdir out
8936 cd ..
8937 $RM -r conftest
8938 $RM conftest*
8939
8940 fi
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8942 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8943
8944
8945
8946
8947 hard_links=nottested
8948 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8949 # do not overwrite the value of need_locks provided by the user
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8951 $as_echo_n "checking if we can lock with hard links... " >&6; }
8952 hard_links=yes
8953 $RM conftest*
8954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8955 touch conftest.a
8956 ln conftest.a conftest.b 2>&5 || hard_links=no
8957 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8959 $as_echo "$hard_links" >&6; }
8960 if test no = "$hard_links"; then
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8962 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8963 need_locks=warn
8964 fi
8965 else
8966 need_locks=no
8967 fi
8968
8969
8970
8971
8972
8973
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8975 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8976
8977 runpath_var=
8978 allow_undefined_flag=
8979 always_export_symbols=no
8980 archive_cmds=
8981 archive_expsym_cmds=
8982 compiler_needs_object=no
8983 enable_shared_with_static_runtimes=no
8984 export_dynamic_flag_spec=
8985 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8986 hardcode_automatic=no
8987 hardcode_direct=no
8988 hardcode_direct_absolute=no
8989 hardcode_libdir_flag_spec=
8990 hardcode_libdir_separator=
8991 hardcode_minus_L=no
8992 hardcode_shlibpath_var=unsupported
8993 inherit_rpath=no
8994 link_all_deplibs=unknown
8995 module_cmds=
8996 module_expsym_cmds=
8997 old_archive_from_new_cmds=
8998 old_archive_from_expsyms_cmds=
8999 thread_safe_flag_spec=
9000 whole_archive_flag_spec=
9001 # include_expsyms should be a list of space-separated symbols to be *always*
9002 # included in the symbol list
9003 include_expsyms=
9004 # exclude_expsyms can be an extended regexp of symbols to exclude
9005 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9006 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9007 # as well as any symbol that contains 'd'.
9008 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9009 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9010 # platforms (ab)use it in PIC code, but their linkers get confused if
9011 # the symbol is explicitly referenced. Since portable code cannot
9012 # rely on this symbol name, it's probably fine to never include it in
9013 # preloaded symbol tables.
9014 # Exclude shared library initialization/finalization symbols.
9015 extract_expsyms_cmds=
9016
9017 case $host_os in
9018 cygwin* | mingw* | pw32* | cegcc*)
9019 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9020 # When not using gcc, we currently assume that we are using
9021 # Microsoft Visual C++.
9022 if test yes != "$GCC"; then
9023 with_gnu_ld=no
9024 fi
9025 ;;
9026 interix*)
9027 # we just hope/assume this is gcc and not c89 (= MSVC++)
9028 with_gnu_ld=yes
9029 ;;
9030 openbsd* | bitrig*)
9031 with_gnu_ld=no
9032 ;;
9033 esac
9034
9035 ld_shlibs=yes
9036
9037 # On some targets, GNU ld is compatible enough with the native linker
9038 # that we're better off using the native interface for both.
9039 lt_use_gnu_ld_interface=no
9040 if test yes = "$with_gnu_ld"; then
9041 case $host_os in
9042 aix*)
9043 # The AIX port of GNU ld has always aspired to compatibility
9044 # with the native linker. However, as the warning in the GNU ld
9045 # block says, versions before 2.19.5* couldn't really create working
9046 # shared libraries, regardless of the interface used.
9047 case `$LD -v 2>&1` in
9048 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9049 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9050 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9051 *)
9052 lt_use_gnu_ld_interface=yes
9053 ;;
9054 esac
9055 ;;
9056 *)
9057 lt_use_gnu_ld_interface=yes
9058 ;;
9059 esac
9060 fi
9061
9062 if test yes = "$lt_use_gnu_ld_interface"; then
9063 # If archive_cmds runs LD, not CC, wlarc should be empty
9064 wlarc='$wl'
9065
9066 # Set some defaults for GNU ld with shared library support. These
9067 # are reset later if shared libraries are not supported. Putting them
9068 # here allows them to be overridden if necessary.
9069 runpath_var=LD_RUN_PATH
9070 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9071 export_dynamic_flag_spec='$wl--export-dynamic'
9072 # ancient GNU ld didn't support --whole-archive et. al.
9073 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9074 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9075 else
9076 whole_archive_flag_spec=
9077 fi
9078 supports_anon_versioning=no
9079 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9080 *GNU\ gold*) supports_anon_versioning=yes ;;
9081 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9082 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9083 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9084 *\ 2.11.*) ;; # other 2.11 versions
9085 *) supports_anon_versioning=yes ;;
9086 esac
9087
9088 # See if GNU ld supports shared libraries.
9089 case $host_os in
9090 aix[3-9]*)
9091 # On AIX/PPC, the GNU linker is very broken
9092 if test ia64 != "$host_cpu"; then
9093 ld_shlibs=no
9094 cat <<_LT_EOF 1>&2
9095
9096 *** Warning: the GNU linker, at least up to release 2.19, is reported
9097 *** to be unable to reliably create shared libraries on AIX.
9098 *** Therefore, libtool is disabling shared libraries support. If you
9099 *** really care for shared libraries, you may want to install binutils
9100 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9101 *** You will then need to restart the configuration process.
9102
9103 _LT_EOF
9104 fi
9105 ;;
9106
9107 amigaos*)
9108 case $host_cpu in
9109 powerpc)
9110 # see comment about AmigaOS4 .so support
9111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9112 archive_expsym_cmds=''
9113 ;;
9114 m68k)
9115 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)'
9116 hardcode_libdir_flag_spec='-L$libdir'
9117 hardcode_minus_L=yes
9118 ;;
9119 esac
9120 ;;
9121
9122 beos*)
9123 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9124 allow_undefined_flag=unsupported
9125 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9126 # support --undefined. This deserves some investigation. FIXME
9127 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9128 else
9129 ld_shlibs=no
9130 fi
9131 ;;
9132
9133 cygwin* | mingw* | pw32* | cegcc*)
9134 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9135 # as there is no search path for DLLs.
9136 hardcode_libdir_flag_spec='-L$libdir'
9137 export_dynamic_flag_spec='$wl--export-all-symbols'
9138 allow_undefined_flag=unsupported
9139 always_export_symbols=no
9140 enable_shared_with_static_runtimes=yes
9141 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'
9142 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9143
9144 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9146 # If the export-symbols file already is a .def file, use it as
9147 # is; otherwise, prepend EXPORTS...
9148 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9149 cp $export_symbols $output_objdir/$soname.def;
9150 else
9151 echo EXPORTS > $output_objdir/$soname.def;
9152 cat $export_symbols >> $output_objdir/$soname.def;
9153 fi~
9154 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9155 else
9156 ld_shlibs=no
9157 fi
9158 ;;
9159
9160 haiku*)
9161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9162 link_all_deplibs=yes
9163 ;;
9164
9165 os2*)
9166 hardcode_libdir_flag_spec='-L$libdir'
9167 hardcode_minus_L=yes
9168 allow_undefined_flag=unsupported
9169 shrext_cmds=.dll
9170 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9171 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9172 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9173 $ECHO EXPORTS >> $output_objdir/$libname.def~
9174 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9175 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9176 emximp -o $lib $output_objdir/$libname.def'
9177 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9178 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9179 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9180 $ECHO EXPORTS >> $output_objdir/$libname.def~
9181 prefix_cmds="$SED"~
9182 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9183 prefix_cmds="$prefix_cmds -e 1d";
9184 fi~
9185 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9186 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9187 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9188 emximp -o $lib $output_objdir/$libname.def'
9189 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9190 enable_shared_with_static_runtimes=yes
9191 ;;
9192
9193 interix[3-9]*)
9194 hardcode_direct=no
9195 hardcode_shlibpath_var=no
9196 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9197 export_dynamic_flag_spec='$wl-E'
9198 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9199 # Instead, shared libraries are loaded at an image base (0x10000000 by
9200 # default) and relocated if they conflict, which is a slow very memory
9201 # consuming and fragmenting process. To avoid this, we pick a random,
9202 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9203 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9204 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9205 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'
9206 ;;
9207
9208 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9209 tmp_diet=no
9210 if test linux-dietlibc = "$host_os"; then
9211 case $cc_basename in
9212 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9213 esac
9214 fi
9215 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9216 && test no = "$tmp_diet"
9217 then
9218 tmp_addflag=' $pic_flag'
9219 tmp_sharedflag='-shared'
9220 case $cc_basename,$host_cpu in
9221 pgcc*) # Portland Group C compiler
9222 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'
9223 tmp_addflag=' $pic_flag'
9224 ;;
9225 pgf77* | pgf90* | pgf95* | pgfortran*)
9226 # Portland Group f77 and f90 compilers
9227 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'
9228 tmp_addflag=' $pic_flag -Mnomain' ;;
9229 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9230 tmp_addflag=' -i_dynamic' ;;
9231 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9232 tmp_addflag=' -i_dynamic -nofor_main' ;;
9233 ifc* | ifort*) # Intel Fortran compiler
9234 tmp_addflag=' -nofor_main' ;;
9235 lf95*) # Lahey Fortran 8.1
9236 whole_archive_flag_spec=
9237 tmp_sharedflag='--shared' ;;
9238 nagfor*) # NAGFOR 5.3
9239 tmp_sharedflag='-Wl,-shared' ;;
9240 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9241 tmp_sharedflag='-qmkshrobj'
9242 tmp_addflag= ;;
9243 nvcc*) # Cuda Compiler Driver 2.2
9244 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'
9245 compiler_needs_object=yes
9246 ;;
9247 esac
9248 case `$CC -V 2>&1 | sed 5q` in
9249 *Sun\ C*) # Sun C 5.9
9250 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'
9251 compiler_needs_object=yes
9252 tmp_sharedflag='-G' ;;
9253 *Sun\ F*) # Sun Fortran 8.3
9254 tmp_sharedflag='-G' ;;
9255 esac
9256 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9257
9258 if test yes = "$supports_anon_versioning"; then
9259 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9261 echo "local: *; };" >> $output_objdir/$libname.ver~
9262 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9263 fi
9264
9265 case $cc_basename in
9266 tcc*)
9267 export_dynamic_flag_spec='-rdynamic'
9268 ;;
9269 xlf* | bgf* | bgxlf* | mpixlf*)
9270 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9271 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9272 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9273 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9274 if test yes = "$supports_anon_versioning"; then
9275 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9277 echo "local: *; };" >> $output_objdir/$libname.ver~
9278 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9279 fi
9280 ;;
9281 esac
9282 else
9283 ld_shlibs=no
9284 fi
9285 ;;
9286
9287 netbsd*)
9288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9289 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9290 wlarc=
9291 else
9292 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9293 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9294 fi
9295 ;;
9296
9297 solaris*)
9298 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9299 ld_shlibs=no
9300 cat <<_LT_EOF 1>&2
9301
9302 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9303 *** create shared libraries on Solaris systems. Therefore, libtool
9304 *** is disabling shared libraries support. We urge you to upgrade GNU
9305 *** binutils to release 2.9.1 or newer. Another option is to modify
9306 *** your PATH or compiler configuration so that the native linker is
9307 *** used, and then restart.
9308
9309 _LT_EOF
9310 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9311 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9312 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9313 else
9314 ld_shlibs=no
9315 fi
9316 ;;
9317
9318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9319 case `$LD -v 2>&1` in
9320 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9321 ld_shlibs=no
9322 cat <<_LT_EOF 1>&2
9323
9324 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9325 *** reliably create shared libraries on SCO systems. Therefore, libtool
9326 *** is disabling shared libraries support. We urge you to upgrade GNU
9327 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9328 *** your PATH or compiler configuration so that the native linker is
9329 *** used, and then restart.
9330
9331 _LT_EOF
9332 ;;
9333 *)
9334 # For security reasons, it is highly recommended that you always
9335 # use absolute paths for naming shared libraries, and exclude the
9336 # DT_RUNPATH tag from executables and libraries. But doing so
9337 # requires that you compile everything twice, which is a pain.
9338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9339 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9341 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9342 else
9343 ld_shlibs=no
9344 fi
9345 ;;
9346 esac
9347 ;;
9348
9349 sunos4*)
9350 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9351 wlarc=
9352 hardcode_direct=yes
9353 hardcode_shlibpath_var=no
9354 ;;
9355
9356 *)
9357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9358 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9359 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9360 else
9361 ld_shlibs=no
9362 fi
9363 ;;
9364 esac
9365
9366 if test no = "$ld_shlibs"; then
9367 runpath_var=
9368 hardcode_libdir_flag_spec=
9369 export_dynamic_flag_spec=
9370 whole_archive_flag_spec=
9371 fi
9372 else
9373 # PORTME fill in a description of your system's linker (not GNU ld)
9374 case $host_os in
9375 aix3*)
9376 allow_undefined_flag=unsupported
9377 always_export_symbols=yes
9378 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'
9379 # Note: this linker hardcodes the directories in LIBPATH if there
9380 # are no directories specified by -L.
9381 hardcode_minus_L=yes
9382 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9383 # Neither direct hardcoding nor static linking is supported with a
9384 # broken collect2.
9385 hardcode_direct=unsupported
9386 fi
9387 ;;
9388
9389 aix[4-9]*)
9390 if test ia64 = "$host_cpu"; then
9391 # On IA64, the linker does run time linking by default, so we don't
9392 # have to do anything special.
9393 aix_use_runtimelinking=no
9394 exp_sym_flag='-Bexport'
9395 no_entry_flag=
9396 else
9397 # If we're using GNU nm, then we don't want the "-C" option.
9398 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9399 # Without the "-l" option, or with the "-B" option, AIX nm treats
9400 # weak defined symbols like other global defined symbols, whereas
9401 # GNU nm marks them as "W".
9402 # While the 'weak' keyword is ignored in the Export File, we need
9403 # it in the Import File for the 'aix-soname' feature, so we have
9404 # to replace the "-B" option with "-P" for AIX nm.
9405 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9406 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9407 else
9408 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9409 fi
9410 aix_use_runtimelinking=no
9411
9412 # Test if we are trying to use run time linking or normal
9413 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9414 # have runtime linking enabled, and use it for executables.
9415 # For shared libraries, we enable/disable runtime linking
9416 # depending on the kind of the shared library created -
9417 # when "with_aix_soname,aix_use_runtimelinking" is:
9418 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9419 # "aix,yes" lib.so shared, rtl:yes, for executables
9420 # lib.a static archive
9421 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9422 # lib.a(lib.so.V) shared, rtl:no, for executables
9423 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9424 # lib.a(lib.so.V) shared, rtl:no
9425 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9426 # lib.a static archive
9427 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9428 for ld_flag in $LDFLAGS; do
9429 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9430 aix_use_runtimelinking=yes
9431 break
9432 fi
9433 done
9434 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9435 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9436 # so we don't have lib.a shared libs to link our executables.
9437 # We have to force runtime linking in this case.
9438 aix_use_runtimelinking=yes
9439 LDFLAGS="$LDFLAGS -Wl,-brtl"
9440 fi
9441 ;;
9442 esac
9443
9444 exp_sym_flag='-bexport'
9445 no_entry_flag='-bnoentry'
9446 fi
9447
9448 # When large executables or shared objects are built, AIX ld can
9449 # have problems creating the table of contents. If linking a library
9450 # or program results in "error TOC overflow" add -mminimal-toc to
9451 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9452 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9453
9454 archive_cmds=''
9455 hardcode_direct=yes
9456 hardcode_direct_absolute=yes
9457 hardcode_libdir_separator=':'
9458 link_all_deplibs=yes
9459 file_list_spec='$wl-f,'
9460 case $with_aix_soname,$aix_use_runtimelinking in
9461 aix,*) ;; # traditional, no import file
9462 svr4,* | *,yes) # use import file
9463 # The Import File defines what to hardcode.
9464 hardcode_direct=no
9465 hardcode_direct_absolute=no
9466 ;;
9467 esac
9468
9469 if test yes = "$GCC"; then
9470 case $host_os in aix4.[012]|aix4.[012].*)
9471 # We only want to do this on AIX 4.2 and lower, the check
9472 # below for broken collect2 doesn't work under 4.3+
9473 collect2name=`$CC -print-prog-name=collect2`
9474 if test -f "$collect2name" &&
9475 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9476 then
9477 # We have reworked collect2
9478 :
9479 else
9480 # We have old collect2
9481 hardcode_direct=unsupported
9482 # It fails to find uninstalled libraries when the uninstalled
9483 # path is not listed in the libpath. Setting hardcode_minus_L
9484 # to unsupported forces relinking
9485 hardcode_minus_L=yes
9486 hardcode_libdir_flag_spec='-L$libdir'
9487 hardcode_libdir_separator=
9488 fi
9489 ;;
9490 esac
9491 shared_flag='-shared'
9492 if test yes = "$aix_use_runtimelinking"; then
9493 shared_flag="$shared_flag "'$wl-G'
9494 fi
9495 # Need to ensure runtime linking is disabled for the traditional
9496 # shared library, or the linker may eventually find shared libraries
9497 # /with/ Import File - we do not want to mix them.
9498 shared_flag_aix='-shared'
9499 shared_flag_svr4='-shared $wl-G'
9500 else
9501 # not using gcc
9502 if test ia64 = "$host_cpu"; then
9503 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9504 # chokes on -Wl,-G. The following line is correct:
9505 shared_flag='-G'
9506 else
9507 if test yes = "$aix_use_runtimelinking"; then
9508 shared_flag='$wl-G'
9509 else
9510 shared_flag='$wl-bM:SRE'
9511 fi
9512 shared_flag_aix='$wl-bM:SRE'
9513 shared_flag_svr4='$wl-G'
9514 fi
9515 fi
9516
9517 export_dynamic_flag_spec='$wl-bexpall'
9518 # It seems that -bexpall does not export symbols beginning with
9519 # underscore (_), so it is better to generate a list of symbols to export.
9520 always_export_symbols=yes
9521 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9522 # Warning - without using the other runtime loading flags (-brtl),
9523 # -berok will link without error, but may produce a broken library.
9524 allow_undefined_flag='-berok'
9525 # Determine the default libpath from the value encoded in an
9526 # empty executable.
9527 if test set = "${lt_cv_aix_libpath+set}"; then
9528 aix_libpath=$lt_cv_aix_libpath
9529 else
9530 if ${lt_cv_aix_libpath_+:} false; then :
9531 $as_echo_n "(cached) " >&6
9532 else
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9535
9536 int
9537 main ()
9538 {
9539
9540 ;
9541 return 0;
9542 }
9543 _ACEOF
9544 if ac_fn_c_try_link "$LINENO"; then :
9545
9546 lt_aix_libpath_sed='
9547 /Import File Strings/,/^$/ {
9548 /^0/ {
9549 s/^0 *\([^ ]*\) *$/\1/
9550 p
9551 }
9552 }'
9553 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9554 # Check for a 64-bit object if we didn't find anything.
9555 if test -z "$lt_cv_aix_libpath_"; then
9556 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9557 fi
9558 fi
9559 rm -f core conftest.err conftest.$ac_objext \
9560 conftest$ac_exeext conftest.$ac_ext
9561 if test -z "$lt_cv_aix_libpath_"; then
9562 lt_cv_aix_libpath_=/usr/lib:/lib
9563 fi
9564
9565 fi
9566
9567 aix_libpath=$lt_cv_aix_libpath_
9568 fi
9569
9570 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9571 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9572 else
9573 if test ia64 = "$host_cpu"; then
9574 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9575 allow_undefined_flag="-z nodefs"
9576 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"
9577 else
9578 # Determine the default libpath from the value encoded in an
9579 # empty executable.
9580 if test set = "${lt_cv_aix_libpath+set}"; then
9581 aix_libpath=$lt_cv_aix_libpath
9582 else
9583 if ${lt_cv_aix_libpath_+:} false; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9588
9589 int
9590 main ()
9591 {
9592
9593 ;
9594 return 0;
9595 }
9596 _ACEOF
9597 if ac_fn_c_try_link "$LINENO"; then :
9598
9599 lt_aix_libpath_sed='
9600 /Import File Strings/,/^$/ {
9601 /^0/ {
9602 s/^0 *\([^ ]*\) *$/\1/
9603 p
9604 }
9605 }'
9606 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9607 # Check for a 64-bit object if we didn't find anything.
9608 if test -z "$lt_cv_aix_libpath_"; then
9609 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9610 fi
9611 fi
9612 rm -f core conftest.err conftest.$ac_objext \
9613 conftest$ac_exeext conftest.$ac_ext
9614 if test -z "$lt_cv_aix_libpath_"; then
9615 lt_cv_aix_libpath_=/usr/lib:/lib
9616 fi
9617
9618 fi
9619
9620 aix_libpath=$lt_cv_aix_libpath_
9621 fi
9622
9623 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9624 # Warning - without using the other run time loading flags,
9625 # -berok will link without error, but may produce a broken library.
9626 no_undefined_flag=' $wl-bernotok'
9627 allow_undefined_flag=' $wl-berok'
9628 if test yes = "$with_gnu_ld"; then
9629 # We only use this code for GNU lds that support --whole-archive.
9630 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9631 else
9632 # Exported symbols can be pulled into shared objects from archives
9633 whole_archive_flag_spec='$convenience'
9634 fi
9635 archive_cmds_need_lc=yes
9636 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9637 # -brtl affects multiple linker settings, -berok does not and is overridden later
9638 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9639 if test svr4 != "$with_aix_soname"; then
9640 # This is similar to how AIX traditionally builds its shared libraries.
9641 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9642 fi
9643 if test aix != "$with_aix_soname"; then
9644 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9645 else
9646 # used by -dlpreopen to get the symbols
9647 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9648 fi
9649 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9650 fi
9651 fi
9652 ;;
9653
9654 amigaos*)
9655 case $host_cpu in
9656 powerpc)
9657 # see comment about AmigaOS4 .so support
9658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9659 archive_expsym_cmds=''
9660 ;;
9661 m68k)
9662 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)'
9663 hardcode_libdir_flag_spec='-L$libdir'
9664 hardcode_minus_L=yes
9665 ;;
9666 esac
9667 ;;
9668
9669 bsdi[45]*)
9670 export_dynamic_flag_spec=-rdynamic
9671 ;;
9672
9673 cygwin* | mingw* | pw32* | cegcc*)
9674 # When not using gcc, we currently assume that we are using
9675 # Microsoft Visual C++.
9676 # hardcode_libdir_flag_spec is actually meaningless, as there is
9677 # no search path for DLLs.
9678 case $cc_basename in
9679 cl*)
9680 # Native MSVC
9681 hardcode_libdir_flag_spec=' '
9682 allow_undefined_flag=unsupported
9683 always_export_symbols=yes
9684 file_list_spec='@'
9685 # Tell ltmain to make .lib files, not .a files.
9686 libext=lib
9687 # Tell ltmain to make .dll files, not .so files.
9688 shrext_cmds=.dll
9689 # FIXME: Setting linknames here is a bad hack.
9690 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9691 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9692 cp "$export_symbols" "$output_objdir/$soname.def";
9693 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9694 else
9695 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9696 fi~
9697 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9698 linknames='
9699 # The linker will not automatically build a static lib if we build a DLL.
9700 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9701 enable_shared_with_static_runtimes=yes
9702 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9703 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9704 # Don't use ranlib
9705 old_postinstall_cmds='chmod 644 $oldlib'
9706 postlink_cmds='lt_outputfile="@OUTPUT@"~
9707 lt_tool_outputfile="@TOOL_OUTPUT@"~
9708 case $lt_outputfile in
9709 *.exe|*.EXE) ;;
9710 *)
9711 lt_outputfile=$lt_outputfile.exe
9712 lt_tool_outputfile=$lt_tool_outputfile.exe
9713 ;;
9714 esac~
9715 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9716 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9717 $RM "$lt_outputfile.manifest";
9718 fi'
9719 ;;
9720 *)
9721 # Assume MSVC wrapper
9722 hardcode_libdir_flag_spec=' '
9723 allow_undefined_flag=unsupported
9724 # Tell ltmain to make .lib files, not .a files.
9725 libext=lib
9726 # Tell ltmain to make .dll files, not .so files.
9727 shrext_cmds=.dll
9728 # FIXME: Setting linknames here is a bad hack.
9729 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9730 # The linker will automatically build a .lib file if we build a DLL.
9731 old_archive_from_new_cmds='true'
9732 # FIXME: Should let the user specify the lib program.
9733 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9734 enable_shared_with_static_runtimes=yes
9735 ;;
9736 esac
9737 ;;
9738
9739 darwin* | rhapsody*)
9740
9741
9742 archive_cmds_need_lc=no
9743 hardcode_direct=no
9744 hardcode_automatic=yes
9745 hardcode_shlibpath_var=unsupported
9746 if test yes = "$lt_cv_ld_force_load"; then
9747 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\"`'
9748
9749 else
9750 whole_archive_flag_spec=''
9751 fi
9752 link_all_deplibs=yes
9753 allow_undefined_flag=$_lt_dar_allow_undefined
9754 case $cc_basename in
9755 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9756 *) _lt_dar_can_shared=$GCC ;;
9757 esac
9758 if test yes = "$_lt_dar_can_shared"; then
9759 output_verbose_link_cmd=func_echo_all
9760 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9761 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9762 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"
9763 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"
9764
9765 else
9766 ld_shlibs=no
9767 fi
9768
9769 ;;
9770
9771 dgux*)
9772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9773 hardcode_libdir_flag_spec='-L$libdir'
9774 hardcode_shlibpath_var=no
9775 ;;
9776
9777 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9778 # support. Future versions do this automatically, but an explicit c++rt0.o
9779 # does not break anything, and helps significantly (at the cost of a little
9780 # extra space).
9781 freebsd2.2*)
9782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9783 hardcode_libdir_flag_spec='-R$libdir'
9784 hardcode_direct=yes
9785 hardcode_shlibpath_var=no
9786 ;;
9787
9788 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9789 freebsd2.*)
9790 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9791 hardcode_direct=yes
9792 hardcode_minus_L=yes
9793 hardcode_shlibpath_var=no
9794 ;;
9795
9796 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9797 freebsd* | dragonfly*)
9798 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9799 hardcode_libdir_flag_spec='-R$libdir'
9800 hardcode_direct=yes
9801 hardcode_shlibpath_var=no
9802 ;;
9803
9804 hpux9*)
9805 if test yes = "$GCC"; then
9806 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9807 else
9808 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9809 fi
9810 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9811 hardcode_libdir_separator=:
9812 hardcode_direct=yes
9813
9814 # hardcode_minus_L: Not really in the search PATH,
9815 # but as the default location of the library.
9816 hardcode_minus_L=yes
9817 export_dynamic_flag_spec='$wl-E'
9818 ;;
9819
9820 hpux10*)
9821 if test yes,no = "$GCC,$with_gnu_ld"; then
9822 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9823 else
9824 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9825 fi
9826 if test no = "$with_gnu_ld"; then
9827 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9828 hardcode_libdir_separator=:
9829 hardcode_direct=yes
9830 hardcode_direct_absolute=yes
9831 export_dynamic_flag_spec='$wl-E'
9832 # hardcode_minus_L: Not really in the search PATH,
9833 # but as the default location of the library.
9834 hardcode_minus_L=yes
9835 fi
9836 ;;
9837
9838 hpux11*)
9839 if test yes,no = "$GCC,$with_gnu_ld"; then
9840 case $host_cpu in
9841 hppa*64*)
9842 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9843 ;;
9844 ia64*)
9845 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9846 ;;
9847 *)
9848 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9849 ;;
9850 esac
9851 else
9852 case $host_cpu in
9853 hppa*64*)
9854 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9855 ;;
9856 ia64*)
9857 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9858 ;;
9859 *)
9860
9861 # Older versions of the 11.00 compiler do not understand -b yet
9862 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9864 $as_echo_n "checking if $CC understands -b... " >&6; }
9865 if ${lt_cv_prog_compiler__b+:} false; then :
9866 $as_echo_n "(cached) " >&6
9867 else
9868 lt_cv_prog_compiler__b=no
9869 save_LDFLAGS=$LDFLAGS
9870 LDFLAGS="$LDFLAGS -b"
9871 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9872 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9873 # The linker can only warn and ignore the option if not recognized
9874 # So say no if there are warnings
9875 if test -s conftest.err; then
9876 # Append any errors to the config.log.
9877 cat conftest.err 1>&5
9878 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9880 if diff conftest.exp conftest.er2 >/dev/null; then
9881 lt_cv_prog_compiler__b=yes
9882 fi
9883 else
9884 lt_cv_prog_compiler__b=yes
9885 fi
9886 fi
9887 $RM -r conftest*
9888 LDFLAGS=$save_LDFLAGS
9889
9890 fi
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9892 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9893
9894 if test yes = "$lt_cv_prog_compiler__b"; then
9895 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9896 else
9897 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9898 fi
9899
9900 ;;
9901 esac
9902 fi
9903 if test no = "$with_gnu_ld"; then
9904 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9905 hardcode_libdir_separator=:
9906
9907 case $host_cpu in
9908 hppa*64*|ia64*)
9909 hardcode_direct=no
9910 hardcode_shlibpath_var=no
9911 ;;
9912 *)
9913 hardcode_direct=yes
9914 hardcode_direct_absolute=yes
9915 export_dynamic_flag_spec='$wl-E'
9916
9917 # hardcode_minus_L: Not really in the search PATH,
9918 # but as the default location of the library.
9919 hardcode_minus_L=yes
9920 ;;
9921 esac
9922 fi
9923 ;;
9924
9925 irix5* | irix6* | nonstopux*)
9926 if test yes = "$GCC"; then
9927 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'
9928 # Try to use the -exported_symbol ld option, if it does not
9929 # work, assume that -exports_file does not work either and
9930 # implicitly export all symbols.
9931 # This should be the same for all languages, so no per-tag cache variable.
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9933 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9934 if ${lt_cv_irix_exported_symbol+:} false; then :
9935 $as_echo_n "(cached) " >&6
9936 else
9937 save_LDFLAGS=$LDFLAGS
9938 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940 /* end confdefs.h. */
9941 int foo (void) { return 0; }
9942 _ACEOF
9943 if ac_fn_c_try_link "$LINENO"; then :
9944 lt_cv_irix_exported_symbol=yes
9945 else
9946 lt_cv_irix_exported_symbol=no
9947 fi
9948 rm -f core conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9950 LDFLAGS=$save_LDFLAGS
9951 fi
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9953 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9954 if test yes = "$lt_cv_irix_exported_symbol"; then
9955 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'
9956 fi
9957 else
9958 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'
9959 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'
9960 fi
9961 archive_cmds_need_lc='no'
9962 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9963 hardcode_libdir_separator=:
9964 inherit_rpath=yes
9965 link_all_deplibs=yes
9966 ;;
9967
9968 linux*)
9969 case $cc_basename in
9970 tcc*)
9971 # Fabrice Bellard et al's Tiny C Compiler
9972 ld_shlibs=yes
9973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9974 ;;
9975 esac
9976 ;;
9977
9978 netbsd*)
9979 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9981 else
9982 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9983 fi
9984 hardcode_libdir_flag_spec='-R$libdir'
9985 hardcode_direct=yes
9986 hardcode_shlibpath_var=no
9987 ;;
9988
9989 newsos6)
9990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991 hardcode_direct=yes
9992 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9993 hardcode_libdir_separator=:
9994 hardcode_shlibpath_var=no
9995 ;;
9996
9997 *nto* | *qnx*)
9998 ;;
9999
10000 openbsd* | bitrig*)
10001 if test -f /usr/libexec/ld.so; then
10002 hardcode_direct=yes
10003 hardcode_shlibpath_var=no
10004 hardcode_direct_absolute=yes
10005 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10006 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10007 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10008 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10009 export_dynamic_flag_spec='$wl-E'
10010 else
10011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10012 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10013 fi
10014 else
10015 ld_shlibs=no
10016 fi
10017 ;;
10018
10019 os2*)
10020 hardcode_libdir_flag_spec='-L$libdir'
10021 hardcode_minus_L=yes
10022 allow_undefined_flag=unsupported
10023 shrext_cmds=.dll
10024 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10025 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10026 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10027 $ECHO EXPORTS >> $output_objdir/$libname.def~
10028 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10029 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10030 emximp -o $lib $output_objdir/$libname.def'
10031 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10032 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10033 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10034 $ECHO EXPORTS >> $output_objdir/$libname.def~
10035 prefix_cmds="$SED"~
10036 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10037 prefix_cmds="$prefix_cmds -e 1d";
10038 fi~
10039 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10040 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10041 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10042 emximp -o $lib $output_objdir/$libname.def'
10043 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10044 enable_shared_with_static_runtimes=yes
10045 ;;
10046
10047 osf3*)
10048 if test yes = "$GCC"; then
10049 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10050 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'
10051 else
10052 allow_undefined_flag=' -expect_unresolved \*'
10053 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'
10054 fi
10055 archive_cmds_need_lc='no'
10056 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10057 hardcode_libdir_separator=:
10058 ;;
10059
10060 osf4* | osf5*) # as osf3* with the addition of -msym flag
10061 if test yes = "$GCC"; then
10062 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10063 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'
10064 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10065 else
10066 allow_undefined_flag=' -expect_unresolved \*'
10067 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'
10068 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~
10069 $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'
10070
10071 # Both c and cxx compiler support -rpath directly
10072 hardcode_libdir_flag_spec='-rpath $libdir'
10073 fi
10074 archive_cmds_need_lc='no'
10075 hardcode_libdir_separator=:
10076 ;;
10077
10078 solaris*)
10079 no_undefined_flag=' -z defs'
10080 if test yes = "$GCC"; then
10081 wlarc='$wl'
10082 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10083 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10084 $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'
10085 else
10086 case `$CC -V 2>&1` in
10087 *"Compilers 5.0"*)
10088 wlarc=''
10089 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10090 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10091 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10092 ;;
10093 *)
10094 wlarc='$wl'
10095 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10096 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10097 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10098 ;;
10099 esac
10100 fi
10101 hardcode_libdir_flag_spec='-R$libdir'
10102 hardcode_shlibpath_var=no
10103 case $host_os in
10104 solaris2.[0-5] | solaris2.[0-5].*) ;;
10105 *)
10106 # The compiler driver will combine and reorder linker options,
10107 # but understands '-z linker_flag'. GCC discards it without '$wl',
10108 # but is careful enough not to reorder.
10109 # Supported since Solaris 2.6 (maybe 2.5.1?)
10110 if test yes = "$GCC"; then
10111 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10112 else
10113 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10114 fi
10115 ;;
10116 esac
10117 link_all_deplibs=yes
10118 ;;
10119
10120 sunos4*)
10121 if test sequent = "$host_vendor"; then
10122 # Use $CC to link under sequent, because it throws in some extra .o
10123 # files that make .init and .fini sections work.
10124 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10125 else
10126 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10127 fi
10128 hardcode_libdir_flag_spec='-L$libdir'
10129 hardcode_direct=yes
10130 hardcode_minus_L=yes
10131 hardcode_shlibpath_var=no
10132 ;;
10133
10134 sysv4)
10135 case $host_vendor in
10136 sni)
10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138 hardcode_direct=yes # is this really true???
10139 ;;
10140 siemens)
10141 ## LD is ld it makes a PLAMLIB
10142 ## CC just makes a GrossModule.
10143 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10144 reload_cmds='$CC -r -o $output$reload_objs'
10145 hardcode_direct=no
10146 ;;
10147 motorola)
10148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10150 ;;
10151 esac
10152 runpath_var='LD_RUN_PATH'
10153 hardcode_shlibpath_var=no
10154 ;;
10155
10156 sysv4.3*)
10157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10158 hardcode_shlibpath_var=no
10159 export_dynamic_flag_spec='-Bexport'
10160 ;;
10161
10162 sysv4*MP*)
10163 if test -d /usr/nec; then
10164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10165 hardcode_shlibpath_var=no
10166 runpath_var=LD_RUN_PATH
10167 hardcode_runpath_var=yes
10168 ld_shlibs=yes
10169 fi
10170 ;;
10171
10172 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10173 no_undefined_flag='$wl-z,text'
10174 archive_cmds_need_lc=no
10175 hardcode_shlibpath_var=no
10176 runpath_var='LD_RUN_PATH'
10177
10178 if test yes = "$GCC"; then
10179 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 else
10182 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10183 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184 fi
10185 ;;
10186
10187 sysv5* | sco3.2v5* | sco5v6*)
10188 # Note: We CANNOT use -z defs as we might desire, because we do not
10189 # link with -lc, and that would cause any symbols used from libc to
10190 # always be unresolved, which means just about no library would
10191 # ever link correctly. If we're not using GNU ld we use -z text
10192 # though, which does catch some bad symbols but isn't as heavy-handed
10193 # as -z defs.
10194 no_undefined_flag='$wl-z,text'
10195 allow_undefined_flag='$wl-z,nodefs'
10196 archive_cmds_need_lc=no
10197 hardcode_shlibpath_var=no
10198 hardcode_libdir_flag_spec='$wl-R,$libdir'
10199 hardcode_libdir_separator=':'
10200 link_all_deplibs=yes
10201 export_dynamic_flag_spec='$wl-Bexport'
10202 runpath_var='LD_RUN_PATH'
10203
10204 if test yes = "$GCC"; then
10205 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10206 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10207 else
10208 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10209 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10210 fi
10211 ;;
10212
10213 uts4*)
10214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_libdir_flag_spec='-L$libdir'
10216 hardcode_shlibpath_var=no
10217 ;;
10218
10219 *)
10220 ld_shlibs=no
10221 ;;
10222 esac
10223
10224 if test sni = "$host_vendor"; then
10225 case $host in
10226 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10227 export_dynamic_flag_spec='$wl-Blargedynsym'
10228 ;;
10229 esac
10230 fi
10231 fi
10232
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10234 $as_echo "$ld_shlibs" >&6; }
10235 test no = "$ld_shlibs" && can_build_shared=no
10236
10237 with_gnu_ld=$with_gnu_ld
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253 #
10254 # Do we need to explicitly link libc?
10255 #
10256 case "x$archive_cmds_need_lc" in
10257 x|xyes)
10258 # Assume -lc should be added
10259 archive_cmds_need_lc=yes
10260
10261 if test yes,yes = "$GCC,$enable_shared"; then
10262 case $archive_cmds in
10263 *'~'*)
10264 # FIXME: we may have to deal with multi-command sequences.
10265 ;;
10266 '$CC '*)
10267 # Test whether the compiler implicitly links with -lc since on some
10268 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10269 # to ld, don't add -lc before -lgcc.
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10271 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10272 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10273 $as_echo_n "(cached) " >&6
10274 else
10275 $RM conftest*
10276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10277
10278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10279 (eval $ac_compile) 2>&5
10280 ac_status=$?
10281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10282 test $ac_status = 0; } 2>conftest.err; then
10283 soname=conftest
10284 lib=conftest
10285 libobjs=conftest.$ac_objext
10286 deplibs=
10287 wl=$lt_prog_compiler_wl
10288 pic_flag=$lt_prog_compiler_pic
10289 compiler_flags=-v
10290 linker_flags=-v
10291 verstring=
10292 output_objdir=.
10293 libname=conftest
10294 lt_save_allow_undefined_flag=$allow_undefined_flag
10295 allow_undefined_flag=
10296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10297 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10298 ac_status=$?
10299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10300 test $ac_status = 0; }
10301 then
10302 lt_cv_archive_cmds_need_lc=no
10303 else
10304 lt_cv_archive_cmds_need_lc=yes
10305 fi
10306 allow_undefined_flag=$lt_save_allow_undefined_flag
10307 else
10308 cat conftest.err 1>&5
10309 fi
10310 $RM conftest*
10311
10312 fi
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10314 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10315 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10316 ;;
10317 esac
10318 fi
10319 ;;
10320 esac
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10474 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10475
10476 if test yes = "$GCC"; then
10477 case $host_os in
10478 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10479 *) lt_awk_arg='/^libraries:/' ;;
10480 esac
10481 case $host_os in
10482 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10483 *) lt_sed_strip_eq='s|=/|/|g' ;;
10484 esac
10485 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10486 case $lt_search_path_spec in
10487 *\;*)
10488 # if the path contains ";" then we assume it to be the separator
10489 # otherwise default to the standard path separator (i.e. ":") - it is
10490 # assumed that no part of a normal pathname contains ";" but that should
10491 # okay in the real world where ";" in dirpaths is itself problematic.
10492 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10493 ;;
10494 *)
10495 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10496 ;;
10497 esac
10498 # Ok, now we have the path, separated by spaces, we can step through it
10499 # and add multilib dir if necessary...
10500 lt_tmp_lt_search_path_spec=
10501 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10502 # ...but if some path component already ends with the multilib dir we assume
10503 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10504 case "$lt_multi_os_dir; $lt_search_path_spec " in
10505 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10506 lt_multi_os_dir=
10507 ;;
10508 esac
10509 for lt_sys_path in $lt_search_path_spec; do
10510 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10511 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10512 elif test -n "$lt_multi_os_dir"; then
10513 test -d "$lt_sys_path" && \
10514 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10515 fi
10516 done
10517 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10518 BEGIN {RS = " "; FS = "/|\n";} {
10519 lt_foo = "";
10520 lt_count = 0;
10521 for (lt_i = NF; lt_i > 0; lt_i--) {
10522 if ($lt_i != "" && $lt_i != ".") {
10523 if ($lt_i == "..") {
10524 lt_count++;
10525 } else {
10526 if (lt_count == 0) {
10527 lt_foo = "/" $lt_i lt_foo;
10528 } else {
10529 lt_count--;
10530 }
10531 }
10532 }
10533 }
10534 if (lt_foo != "") { lt_freq[lt_foo]++; }
10535 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10536 }'`
10537 # AWK program above erroneously prepends '/' to C:/dos/paths
10538 # for these hosts.
10539 case $host_os in
10540 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10541 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10542 esac
10543 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10544 else
10545 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10546 fi
10547 library_names_spec=
10548 libname_spec='lib$name'
10549 soname_spec=
10550 shrext_cmds=.so
10551 postinstall_cmds=
10552 postuninstall_cmds=
10553 finish_cmds=
10554 finish_eval=
10555 shlibpath_var=
10556 shlibpath_overrides_runpath=unknown
10557 version_type=none
10558 dynamic_linker="$host_os ld.so"
10559 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10560 need_lib_prefix=unknown
10561 hardcode_into_libs=no
10562
10563 # when you set need_version to no, make sure it does not cause -set_version
10564 # flags to be left without arguments
10565 need_version=unknown
10566
10567
10568
10569 case $host_os in
10570 aix3*)
10571 version_type=linux # correct to gnu/linux during the next big refactor
10572 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10573 shlibpath_var=LIBPATH
10574
10575 # AIX 3 has no versioning support, so we append a major version to the name.
10576 soname_spec='$libname$release$shared_ext$major'
10577 ;;
10578
10579 aix[4-9]*)
10580 version_type=linux # correct to gnu/linux during the next big refactor
10581 need_lib_prefix=no
10582 need_version=no
10583 hardcode_into_libs=yes
10584 if test ia64 = "$host_cpu"; then
10585 # AIX 5 supports IA64
10586 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10587 shlibpath_var=LD_LIBRARY_PATH
10588 else
10589 # With GCC up to 2.95.x, collect2 would create an import file
10590 # for dependence libraries. The import file would start with
10591 # the line '#! .'. This would cause the generated library to
10592 # depend on '.', always an invalid library. This was fixed in
10593 # development snapshots of GCC prior to 3.0.
10594 case $host_os in
10595 aix4 | aix4.[01] | aix4.[01].*)
10596 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10597 echo ' yes '
10598 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10599 :
10600 else
10601 can_build_shared=no
10602 fi
10603 ;;
10604 esac
10605 # Using Import Files as archive members, it is possible to support
10606 # filename-based versioning of shared library archives on AIX. While
10607 # this would work for both with and without runtime linking, it will
10608 # prevent static linking of such archives. So we do filename-based
10609 # shared library versioning with .so extension only, which is used
10610 # when both runtime linking and shared linking is enabled.
10611 # Unfortunately, runtime linking may impact performance, so we do
10612 # not want this to be the default eventually. Also, we use the
10613 # versioned .so libs for executables only if there is the -brtl
10614 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10615 # To allow for filename-based versioning support, we need to create
10616 # libNAME.so.V as an archive file, containing:
10617 # *) an Import File, referring to the versioned filename of the
10618 # archive as well as the shared archive member, telling the
10619 # bitwidth (32 or 64) of that shared object, and providing the
10620 # list of exported symbols of that shared object, eventually
10621 # decorated with the 'weak' keyword
10622 # *) the shared object with the F_LOADONLY flag set, to really avoid
10623 # it being seen by the linker.
10624 # At run time we better use the real file rather than another symlink,
10625 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10626
10627 case $with_aix_soname,$aix_use_runtimelinking in
10628 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10629 # soname into executable. Probably we can add versioning support to
10630 # collect2, so additional links can be useful in future.
10631 aix,yes) # traditional libtool
10632 dynamic_linker='AIX unversionable lib.so'
10633 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10634 # instead of lib<name>.a to let people know that these are not
10635 # typical AIX shared libraries.
10636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10637 ;;
10638 aix,no) # traditional AIX only
10639 dynamic_linker='AIX lib.a(lib.so.V)'
10640 # We preserve .a as extension for shared libraries through AIX4.2
10641 # and later when we are not doing run time linking.
10642 library_names_spec='$libname$release.a $libname.a'
10643 soname_spec='$libname$release$shared_ext$major'
10644 ;;
10645 svr4,*) # full svr4 only
10646 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10647 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10648 # We do not specify a path in Import Files, so LIBPATH fires.
10649 shlibpath_overrides_runpath=yes
10650 ;;
10651 *,yes) # both, prefer svr4
10652 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10653 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10654 # unpreferred sharedlib libNAME.a needs extra handling
10655 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10656 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10657 # We do not specify a path in Import Files, so LIBPATH fires.
10658 shlibpath_overrides_runpath=yes
10659 ;;
10660 *,no) # both, prefer aix
10661 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10662 library_names_spec='$libname$release.a $libname.a'
10663 soname_spec='$libname$release$shared_ext$major'
10664 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10665 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10666 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10667 ;;
10668 esac
10669 shlibpath_var=LIBPATH
10670 fi
10671 ;;
10672
10673 amigaos*)
10674 case $host_cpu in
10675 powerpc)
10676 # Since July 2007 AmigaOS4 officially supports .so libraries.
10677 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10679 ;;
10680 m68k)
10681 library_names_spec='$libname.ixlibrary $libname.a'
10682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10683 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10684 ;;
10685 esac
10686 ;;
10687
10688 beos*)
10689 library_names_spec='$libname$shared_ext'
10690 dynamic_linker="$host_os ld.so"
10691 shlibpath_var=LIBRARY_PATH
10692 ;;
10693
10694 bsdi[45]*)
10695 version_type=linux # correct to gnu/linux during the next big refactor
10696 need_version=no
10697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10698 soname_spec='$libname$release$shared_ext$major'
10699 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10702 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10703 # the default ld.so.conf also contains /usr/contrib/lib and
10704 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10705 # libtool to hard-code these into programs
10706 ;;
10707
10708 cygwin* | mingw* | pw32* | cegcc*)
10709 version_type=windows
10710 shrext_cmds=.dll
10711 need_version=no
10712 need_lib_prefix=no
10713
10714 case $GCC,$cc_basename in
10715 yes,*)
10716 # gcc
10717 library_names_spec='$libname.dll.a'
10718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10719 postinstall_cmds='base_file=`basename \$file`~
10720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10721 dldir=$destdir/`dirname \$dlpath`~
10722 test -d \$dldir || mkdir -p \$dldir~
10723 $install_prog $dir/$dlname \$dldir/$dlname~
10724 chmod a+x \$dldir/$dlname~
10725 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10726 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10727 fi'
10728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10729 dlpath=$dir/\$dldll~
10730 $RM \$dlpath'
10731 shlibpath_overrides_runpath=yes
10732
10733 case $host_os in
10734 cygwin*)
10735 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10736 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10737
10738 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10739 ;;
10740 mingw* | cegcc*)
10741 # MinGW DLLs use traditional 'lib' prefix
10742 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10743 ;;
10744 pw32*)
10745 # pw32 DLLs use 'pw' prefix rather than 'lib'
10746 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10747 ;;
10748 esac
10749 dynamic_linker='Win32 ld.exe'
10750 ;;
10751
10752 *,cl*)
10753 # Native MSVC
10754 libname_spec='$name'
10755 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10756 library_names_spec='$libname.dll.lib'
10757
10758 case $build_os in
10759 mingw*)
10760 sys_lib_search_path_spec=
10761 lt_save_ifs=$IFS
10762 IFS=';'
10763 for lt_path in $LIB
10764 do
10765 IFS=$lt_save_ifs
10766 # Let DOS variable expansion print the short 8.3 style file name.
10767 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10768 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10769 done
10770 IFS=$lt_save_ifs
10771 # Convert to MSYS style.
10772 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10773 ;;
10774 cygwin*)
10775 # Convert to unix form, then to dos form, then back to unix form
10776 # but this time dos style (no spaces!) so that the unix form looks
10777 # like /cygdrive/c/PROGRA~1:/cygdr...
10778 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10779 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10780 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10781 ;;
10782 *)
10783 sys_lib_search_path_spec=$LIB
10784 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10785 # It is most probably a Windows format PATH.
10786 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10787 else
10788 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10789 fi
10790 # FIXME: find the short name or the path components, as spaces are
10791 # common. (e.g. "Program Files" -> "PROGRA~1")
10792 ;;
10793 esac
10794
10795 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10796 postinstall_cmds='base_file=`basename \$file`~
10797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10798 dldir=$destdir/`dirname \$dlpath`~
10799 test -d \$dldir || mkdir -p \$dldir~
10800 $install_prog $dir/$dlname \$dldir/$dlname'
10801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10802 dlpath=$dir/\$dldll~
10803 $RM \$dlpath'
10804 shlibpath_overrides_runpath=yes
10805 dynamic_linker='Win32 link.exe'
10806 ;;
10807
10808 *)
10809 # Assume MSVC wrapper
10810 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10811 dynamic_linker='Win32 ld.exe'
10812 ;;
10813 esac
10814 # FIXME: first we should search . and the directory the executable is in
10815 shlibpath_var=PATH
10816 ;;
10817
10818 darwin* | rhapsody*)
10819 dynamic_linker="$host_os dyld"
10820 version_type=darwin
10821 need_lib_prefix=no
10822 need_version=no
10823 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10824 soname_spec='$libname$release$major$shared_ext'
10825 shlibpath_overrides_runpath=yes
10826 shlibpath_var=DYLD_LIBRARY_PATH
10827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10828
10829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10831 ;;
10832
10833 dgux*)
10834 version_type=linux # correct to gnu/linux during the next big refactor
10835 need_lib_prefix=no
10836 need_version=no
10837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10838 soname_spec='$libname$release$shared_ext$major'
10839 shlibpath_var=LD_LIBRARY_PATH
10840 ;;
10841
10842 freebsd* | dragonfly*)
10843 # DragonFly does not have aout. When/if they implement a new
10844 # versioning mechanism, adjust this.
10845 if test -x /usr/bin/objformat; then
10846 objformat=`/usr/bin/objformat`
10847 else
10848 case $host_os in
10849 freebsd[23].*) objformat=aout ;;
10850 *) objformat=elf ;;
10851 esac
10852 fi
10853 version_type=freebsd-$objformat
10854 case $version_type in
10855 freebsd-elf*)
10856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10857 soname_spec='$libname$release$shared_ext$major'
10858 need_version=no
10859 need_lib_prefix=no
10860 ;;
10861 freebsd-*)
10862 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10863 need_version=yes
10864 ;;
10865 esac
10866 shlibpath_var=LD_LIBRARY_PATH
10867 case $host_os in
10868 freebsd2.*)
10869 shlibpath_overrides_runpath=yes
10870 ;;
10871 freebsd3.[01]* | freebsdelf3.[01]*)
10872 shlibpath_overrides_runpath=yes
10873 hardcode_into_libs=yes
10874 ;;
10875 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10876 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10877 shlibpath_overrides_runpath=no
10878 hardcode_into_libs=yes
10879 ;;
10880 *) # from 4.6 on, and DragonFly
10881 shlibpath_overrides_runpath=yes
10882 hardcode_into_libs=yes
10883 ;;
10884 esac
10885 ;;
10886
10887 haiku*)
10888 version_type=linux # correct to gnu/linux during the next big refactor
10889 need_lib_prefix=no
10890 need_version=no
10891 dynamic_linker="$host_os runtime_loader"
10892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10893 soname_spec='$libname$release$shared_ext$major'
10894 shlibpath_var=LIBRARY_PATH
10895 shlibpath_overrides_runpath=no
10896 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10897 hardcode_into_libs=yes
10898 ;;
10899
10900 hpux9* | hpux10* | hpux11*)
10901 # Give a soname corresponding to the major version so that dld.sl refuses to
10902 # link against other versions.
10903 version_type=sunos
10904 need_lib_prefix=no
10905 need_version=no
10906 case $host_cpu in
10907 ia64*)
10908 shrext_cmds='.so'
10909 hardcode_into_libs=yes
10910 dynamic_linker="$host_os dld.so"
10911 shlibpath_var=LD_LIBRARY_PATH
10912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10914 soname_spec='$libname$release$shared_ext$major'
10915 if test 32 = "$HPUX_IA64_MODE"; then
10916 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10917 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10918 else
10919 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10920 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10921 fi
10922 ;;
10923 hppa*64*)
10924 shrext_cmds='.sl'
10925 hardcode_into_libs=yes
10926 dynamic_linker="$host_os dld.sl"
10927 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10930 soname_spec='$libname$release$shared_ext$major'
10931 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10933 ;;
10934 *)
10935 shrext_cmds='.sl'
10936 dynamic_linker="$host_os dld.sl"
10937 shlibpath_var=SHLIB_PATH
10938 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10940 soname_spec='$libname$release$shared_ext$major'
10941 ;;
10942 esac
10943 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10944 postinstall_cmds='chmod 555 $lib'
10945 # or fails outright, so override atomically:
10946 install_override_mode=555
10947 ;;
10948
10949 interix[3-9]*)
10950 version_type=linux # correct to gnu/linux during the next big refactor
10951 need_lib_prefix=no
10952 need_version=no
10953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10954 soname_spec='$libname$release$shared_ext$major'
10955 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10956 shlibpath_var=LD_LIBRARY_PATH
10957 shlibpath_overrides_runpath=no
10958 hardcode_into_libs=yes
10959 ;;
10960
10961 irix5* | irix6* | nonstopux*)
10962 case $host_os in
10963 nonstopux*) version_type=nonstopux ;;
10964 *)
10965 if test yes = "$lt_cv_prog_gnu_ld"; then
10966 version_type=linux # correct to gnu/linux during the next big refactor
10967 else
10968 version_type=irix
10969 fi ;;
10970 esac
10971 need_lib_prefix=no
10972 need_version=no
10973 soname_spec='$libname$release$shared_ext$major'
10974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10975 case $host_os in
10976 irix5* | nonstopux*)
10977 libsuff= shlibsuff=
10978 ;;
10979 *)
10980 case $LD in # libtool.m4 will add one of these switches to LD
10981 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10982 libsuff= shlibsuff= libmagic=32-bit;;
10983 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10984 libsuff=32 shlibsuff=N32 libmagic=N32;;
10985 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10986 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10987 *) libsuff= shlibsuff= libmagic=never-match;;
10988 esac
10989 ;;
10990 esac
10991 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10992 shlibpath_overrides_runpath=no
10993 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10994 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10995 hardcode_into_libs=yes
10996 ;;
10997
10998 # No shared lib support for Linux oldld, aout, or coff.
10999 linux*oldld* | linux*aout* | linux*coff*)
11000 dynamic_linker=no
11001 ;;
11002
11003 linux*android*)
11004 version_type=none # Android doesn't support versioned libraries.
11005 need_lib_prefix=no
11006 need_version=no
11007 library_names_spec='$libname$release$shared_ext'
11008 soname_spec='$libname$release$shared_ext'
11009 finish_cmds=
11010 shlibpath_var=LD_LIBRARY_PATH
11011 shlibpath_overrides_runpath=yes
11012
11013 # This implies no fast_install, which is unacceptable.
11014 # Some rework will be needed to allow for fast_install
11015 # before this can be enabled.
11016 hardcode_into_libs=yes
11017
11018 dynamic_linker='Android linker'
11019 # Don't embed -rpath directories since the linker doesn't support them.
11020 hardcode_libdir_flag_spec='-L$libdir'
11021 ;;
11022
11023 # This must be glibc/ELF.
11024 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11025 version_type=linux # correct to gnu/linux during the next big refactor
11026 need_lib_prefix=no
11027 need_version=no
11028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11029 soname_spec='$libname$release$shared_ext$major'
11030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11031 shlibpath_var=LD_LIBRARY_PATH
11032 shlibpath_overrides_runpath=no
11033
11034 # Some binutils ld are patched to set DT_RUNPATH
11035 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 lt_cv_shlibpath_overrides_runpath=no
11039 save_LDFLAGS=$LDFLAGS
11040 save_libdir=$libdir
11041 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11042 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11045
11046 int
11047 main ()
11048 {
11049
11050 ;
11051 return 0;
11052 }
11053 _ACEOF
11054 if ac_fn_c_try_link "$LINENO"; then :
11055 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11056 lt_cv_shlibpath_overrides_runpath=yes
11057 fi
11058 fi
11059 rm -f core conftest.err conftest.$ac_objext \
11060 conftest$ac_exeext conftest.$ac_ext
11061 LDFLAGS=$save_LDFLAGS
11062 libdir=$save_libdir
11063
11064 fi
11065
11066 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11067
11068 # This implies no fast_install, which is unacceptable.
11069 # Some rework will be needed to allow for fast_install
11070 # before this can be enabled.
11071 hardcode_into_libs=yes
11072
11073 # Add ABI-specific directories to the system library path.
11074 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11075
11076 # Ideally, we could use ldconfig to report *all* directores which are
11077 # searched for libraries, however this is still not possible. Aside from not
11078 # being certain /sbin/ldconfig is available, command
11079 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11080 # even though it is searched at run-time. Try to do the best guess by
11081 # appending ld.so.conf contents (and includes) to the search path.
11082 if test -f /etc/ld.so.conf; then
11083 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' ' '`
11084 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11085 fi
11086
11087 # We used to test for /lib/ld.so.1 and disable shared libraries on
11088 # powerpc, because MkLinux only supported shared libraries with the
11089 # GNU dynamic linker. Since this was broken with cross compilers,
11090 # most powerpc-linux boxes support dynamic linking these days and
11091 # people can always --disable-shared, the test was removed, and we
11092 # assume the GNU/Linux dynamic linker is in use.
11093 dynamic_linker='GNU/Linux ld.so'
11094 ;;
11095
11096 netbsd*)
11097 version_type=sunos
11098 need_lib_prefix=no
11099 need_version=no
11100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11101 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11103 dynamic_linker='NetBSD (a.out) ld.so'
11104 else
11105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11106 soname_spec='$libname$release$shared_ext$major'
11107 dynamic_linker='NetBSD ld.elf_so'
11108 fi
11109 shlibpath_var=LD_LIBRARY_PATH
11110 shlibpath_overrides_runpath=yes
11111 hardcode_into_libs=yes
11112 ;;
11113
11114 newsos6)
11115 version_type=linux # correct to gnu/linux during the next big refactor
11116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 shlibpath_overrides_runpath=yes
11119 ;;
11120
11121 *nto* | *qnx*)
11122 version_type=qnx
11123 need_lib_prefix=no
11124 need_version=no
11125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11126 soname_spec='$libname$release$shared_ext$major'
11127 shlibpath_var=LD_LIBRARY_PATH
11128 shlibpath_overrides_runpath=no
11129 hardcode_into_libs=yes
11130 dynamic_linker='ldqnx.so'
11131 ;;
11132
11133 openbsd* | bitrig*)
11134 version_type=sunos
11135 sys_lib_dlsearch_path_spec=/usr/lib
11136 need_lib_prefix=no
11137 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11138 need_version=no
11139 else
11140 need_version=yes
11141 fi
11142 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 shlibpath_overrides_runpath=yes
11146 ;;
11147
11148 os2*)
11149 libname_spec='$name'
11150 version_type=windows
11151 shrext_cmds=.dll
11152 need_version=no
11153 need_lib_prefix=no
11154 # OS/2 can only load a DLL with a base name of 8 characters or less.
11155 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11156 v=$($ECHO $release$versuffix | tr -d .-);
11157 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11158 $ECHO $n$v`$shared_ext'
11159 library_names_spec='${libname}_dll.$libext'
11160 dynamic_linker='OS/2 ld.exe'
11161 shlibpath_var=BEGINLIBPATH
11162 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11164 postinstall_cmds='base_file=`basename \$file`~
11165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11166 dldir=$destdir/`dirname \$dlpath`~
11167 test -d \$dldir || mkdir -p \$dldir~
11168 $install_prog $dir/$dlname \$dldir/$dlname~
11169 chmod a+x \$dldir/$dlname~
11170 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11171 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11172 fi'
11173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11174 dlpath=$dir/\$dldll~
11175 $RM \$dlpath'
11176 ;;
11177
11178 osf3* | osf4* | osf5*)
11179 version_type=osf
11180 need_lib_prefix=no
11181 need_version=no
11182 soname_spec='$libname$release$shared_ext$major'
11183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11184 shlibpath_var=LD_LIBRARY_PATH
11185 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11187 ;;
11188
11189 rdos*)
11190 dynamic_linker=no
11191 ;;
11192
11193 solaris*)
11194 version_type=linux # correct to gnu/linux during the next big refactor
11195 need_lib_prefix=no
11196 need_version=no
11197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11198 soname_spec='$libname$release$shared_ext$major'
11199 shlibpath_var=LD_LIBRARY_PATH
11200 shlibpath_overrides_runpath=yes
11201 hardcode_into_libs=yes
11202 # ldd complains unless libraries are executable
11203 postinstall_cmds='chmod +x $lib'
11204 ;;
11205
11206 sunos4*)
11207 version_type=sunos
11208 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11209 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 shlibpath_overrides_runpath=yes
11212 if test yes = "$with_gnu_ld"; then
11213 need_lib_prefix=no
11214 fi
11215 need_version=yes
11216 ;;
11217
11218 sysv4 | sysv4.3*)
11219 version_type=linux # correct to gnu/linux during the next big refactor
11220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11221 soname_spec='$libname$release$shared_ext$major'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 case $host_vendor in
11224 sni)
11225 shlibpath_overrides_runpath=no
11226 need_lib_prefix=no
11227 runpath_var=LD_RUN_PATH
11228 ;;
11229 siemens)
11230 need_lib_prefix=no
11231 ;;
11232 motorola)
11233 need_lib_prefix=no
11234 need_version=no
11235 shlibpath_overrides_runpath=no
11236 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11237 ;;
11238 esac
11239 ;;
11240
11241 sysv4*MP*)
11242 if test -d /usr/nec; then
11243 version_type=linux # correct to gnu/linux during the next big refactor
11244 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11245 soname_spec='$libname$shared_ext.$major'
11246 shlibpath_var=LD_LIBRARY_PATH
11247 fi
11248 ;;
11249
11250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11251 version_type=sco
11252 need_lib_prefix=no
11253 need_version=no
11254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11255 soname_spec='$libname$release$shared_ext$major'
11256 shlibpath_var=LD_LIBRARY_PATH
11257 shlibpath_overrides_runpath=yes
11258 hardcode_into_libs=yes
11259 if test yes = "$with_gnu_ld"; then
11260 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11261 else
11262 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11263 case $host_os in
11264 sco3.2v5*)
11265 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11266 ;;
11267 esac
11268 fi
11269 sys_lib_dlsearch_path_spec='/usr/lib'
11270 ;;
11271
11272 tpf*)
11273 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11274 version_type=linux # correct to gnu/linux during the next big refactor
11275 need_lib_prefix=no
11276 need_version=no
11277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11278 shlibpath_var=LD_LIBRARY_PATH
11279 shlibpath_overrides_runpath=no
11280 hardcode_into_libs=yes
11281 ;;
11282
11283 uts4*)
11284 version_type=linux # correct to gnu/linux during the next big refactor
11285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11286 soname_spec='$libname$release$shared_ext$major'
11287 shlibpath_var=LD_LIBRARY_PATH
11288 ;;
11289
11290 *)
11291 dynamic_linker=no
11292 ;;
11293 esac
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11295 $as_echo "$dynamic_linker" >&6; }
11296 test no = "$dynamic_linker" && can_build_shared=no
11297
11298 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11299 if test yes = "$GCC"; then
11300 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11301 fi
11302
11303 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11304 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11305 fi
11306
11307 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11308 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11309 fi
11310
11311 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11312 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11313
11314 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11315 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11316
11317 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11318 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11417 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11418 hardcode_action=
11419 if test -n "$hardcode_libdir_flag_spec" ||
11420 test -n "$runpath_var" ||
11421 test yes = "$hardcode_automatic"; then
11422
11423 # We can hardcode non-existent directories.
11424 if test no != "$hardcode_direct" &&
11425 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11426 # have to relink, otherwise we might link with an installed library
11427 # when we should be linking with a yet-to-be-installed one
11428 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11429 test no != "$hardcode_minus_L"; then
11430 # Linking always hardcodes the temporary library directory.
11431 hardcode_action=relink
11432 else
11433 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11434 hardcode_action=immediate
11435 fi
11436 else
11437 # We cannot hardcode anything, or else we can only hardcode existing
11438 # directories.
11439 hardcode_action=unsupported
11440 fi
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11442 $as_echo "$hardcode_action" >&6; }
11443
11444 if test relink = "$hardcode_action" ||
11445 test yes = "$inherit_rpath"; then
11446 # Fast installation is not supported
11447 enable_fast_install=no
11448 elif test yes = "$shlibpath_overrides_runpath" ||
11449 test no = "$enable_shared"; then
11450 # Fast installation is not necessary
11451 enable_fast_install=needless
11452 fi
11453
11454
11455
11456
11457
11458
11459 if test yes != "$enable_dlopen"; then
11460 enable_dlopen=unknown
11461 enable_dlopen_self=unknown
11462 enable_dlopen_self_static=unknown
11463 else
11464 lt_cv_dlopen=no
11465 lt_cv_dlopen_libs=
11466
11467 case $host_os in
11468 beos*)
11469 lt_cv_dlopen=load_add_on
11470 lt_cv_dlopen_libs=
11471 lt_cv_dlopen_self=yes
11472 ;;
11473
11474 mingw* | pw32* | cegcc*)
11475 lt_cv_dlopen=LoadLibrary
11476 lt_cv_dlopen_libs=
11477 ;;
11478
11479 cygwin*)
11480 lt_cv_dlopen=dlopen
11481 lt_cv_dlopen_libs=
11482 ;;
11483
11484 darwin*)
11485 # if libdl is installed we need to link against it
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11487 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11488 if ${ac_cv_lib_dl_dlopen+:} false; then :
11489 $as_echo_n "(cached) " >&6
11490 else
11491 ac_check_lib_save_LIBS=$LIBS
11492 LIBS="-ldl $LIBS"
11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11494 /* end confdefs.h. */
11495
11496 /* Override any GCC internal prototype to avoid an error.
11497 Use char because int might match the return type of a GCC
11498 builtin and then its argument prototype would still apply. */
11499 #ifdef __cplusplus
11500 extern "C"
11501 #endif
11502 char dlopen ();
11503 int
11504 main ()
11505 {
11506 return dlopen ();
11507 ;
11508 return 0;
11509 }
11510 _ACEOF
11511 if ac_fn_c_try_link "$LINENO"; then :
11512 ac_cv_lib_dl_dlopen=yes
11513 else
11514 ac_cv_lib_dl_dlopen=no
11515 fi
11516 rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518 LIBS=$ac_check_lib_save_LIBS
11519 fi
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11521 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11522 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11523 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11524 else
11525
11526 lt_cv_dlopen=dyld
11527 lt_cv_dlopen_libs=
11528 lt_cv_dlopen_self=yes
11529
11530 fi
11531
11532 ;;
11533
11534 tpf*)
11535 # Don't try to run any link tests for TPF. We know it's impossible
11536 # because TPF is a cross-compiler, and we know how we open DSOs.
11537 lt_cv_dlopen=dlopen
11538 lt_cv_dlopen_libs=
11539 lt_cv_dlopen_self=no
11540 ;;
11541
11542 *)
11543 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11544 if test "x$ac_cv_func_shl_load" = xyes; then :
11545 lt_cv_dlopen=shl_load
11546 else
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11548 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11549 if ${ac_cv_lib_dld_shl_load+:} false; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 ac_check_lib_save_LIBS=$LIBS
11553 LIBS="-ldld $LIBS"
11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11556
11557 /* Override any GCC internal prototype to avoid an error.
11558 Use char because int might match the return type of a GCC
11559 builtin and then its argument prototype would still apply. */
11560 #ifdef __cplusplus
11561 extern "C"
11562 #endif
11563 char shl_load ();
11564 int
11565 main ()
11566 {
11567 return shl_load ();
11568 ;
11569 return 0;
11570 }
11571 _ACEOF
11572 if ac_fn_c_try_link "$LINENO"; then :
11573 ac_cv_lib_dld_shl_load=yes
11574 else
11575 ac_cv_lib_dld_shl_load=no
11576 fi
11577 rm -f core conftest.err conftest.$ac_objext \
11578 conftest$ac_exeext conftest.$ac_ext
11579 LIBS=$ac_check_lib_save_LIBS
11580 fi
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11582 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11583 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11584 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11585 else
11586 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11587 if test "x$ac_cv_func_dlopen" = xyes; then :
11588 lt_cv_dlopen=dlopen
11589 else
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11591 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11592 if ${ac_cv_lib_dl_dlopen+:} false; then :
11593 $as_echo_n "(cached) " >&6
11594 else
11595 ac_check_lib_save_LIBS=$LIBS
11596 LIBS="-ldl $LIBS"
11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h. */
11599
11600 /* Override any GCC internal prototype to avoid an error.
11601 Use char because int might match the return type of a GCC
11602 builtin and then its argument prototype would still apply. */
11603 #ifdef __cplusplus
11604 extern "C"
11605 #endif
11606 char dlopen ();
11607 int
11608 main ()
11609 {
11610 return dlopen ();
11611 ;
11612 return 0;
11613 }
11614 _ACEOF
11615 if ac_fn_c_try_link "$LINENO"; then :
11616 ac_cv_lib_dl_dlopen=yes
11617 else
11618 ac_cv_lib_dl_dlopen=no
11619 fi
11620 rm -f core conftest.err conftest.$ac_objext \
11621 conftest$ac_exeext conftest.$ac_ext
11622 LIBS=$ac_check_lib_save_LIBS
11623 fi
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11625 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11626 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11627 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11628 else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11630 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11631 if ${ac_cv_lib_svld_dlopen+:} false; then :
11632 $as_echo_n "(cached) " >&6
11633 else
11634 ac_check_lib_save_LIBS=$LIBS
11635 LIBS="-lsvld $LIBS"
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h. */
11638
11639 /* Override any GCC internal prototype to avoid an error.
11640 Use char because int might match the return type of a GCC
11641 builtin and then its argument prototype would still apply. */
11642 #ifdef __cplusplus
11643 extern "C"
11644 #endif
11645 char dlopen ();
11646 int
11647 main ()
11648 {
11649 return dlopen ();
11650 ;
11651 return 0;
11652 }
11653 _ACEOF
11654 if ac_fn_c_try_link "$LINENO"; then :
11655 ac_cv_lib_svld_dlopen=yes
11656 else
11657 ac_cv_lib_svld_dlopen=no
11658 fi
11659 rm -f core conftest.err conftest.$ac_objext \
11660 conftest$ac_exeext conftest.$ac_ext
11661 LIBS=$ac_check_lib_save_LIBS
11662 fi
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11664 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11665 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11666 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11667 else
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11669 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11670 if ${ac_cv_lib_dld_dld_link+:} false; then :
11671 $as_echo_n "(cached) " >&6
11672 else
11673 ac_check_lib_save_LIBS=$LIBS
11674 LIBS="-ldld $LIBS"
11675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676 /* end confdefs.h. */
11677
11678 /* Override any GCC internal prototype to avoid an error.
11679 Use char because int might match the return type of a GCC
11680 builtin and then its argument prototype would still apply. */
11681 #ifdef __cplusplus
11682 extern "C"
11683 #endif
11684 char dld_link ();
11685 int
11686 main ()
11687 {
11688 return dld_link ();
11689 ;
11690 return 0;
11691 }
11692 _ACEOF
11693 if ac_fn_c_try_link "$LINENO"; then :
11694 ac_cv_lib_dld_dld_link=yes
11695 else
11696 ac_cv_lib_dld_dld_link=no
11697 fi
11698 rm -f core conftest.err conftest.$ac_objext \
11699 conftest$ac_exeext conftest.$ac_ext
11700 LIBS=$ac_check_lib_save_LIBS
11701 fi
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11703 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11704 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11705 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11706 fi
11707
11708
11709 fi
11710
11711
11712 fi
11713
11714
11715 fi
11716
11717
11718 fi
11719
11720
11721 fi
11722
11723 ;;
11724 esac
11725
11726 if test no = "$lt_cv_dlopen"; then
11727 enable_dlopen=no
11728 else
11729 enable_dlopen=yes
11730 fi
11731
11732 case $lt_cv_dlopen in
11733 dlopen)
11734 save_CPPFLAGS=$CPPFLAGS
11735 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11736
11737 save_LDFLAGS=$LDFLAGS
11738 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11739
11740 save_LIBS=$LIBS
11741 LIBS="$lt_cv_dlopen_libs $LIBS"
11742
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11744 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11745 if ${lt_cv_dlopen_self+:} false; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 if test yes = "$cross_compiling"; then :
11749 lt_cv_dlopen_self=cross
11750 else
11751 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11752 lt_status=$lt_dlunknown
11753 cat > conftest.$ac_ext <<_LT_EOF
11754 #line $LINENO "configure"
11755 #include "confdefs.h"
11756
11757 #if HAVE_DLFCN_H
11758 #include <dlfcn.h>
11759 #endif
11760
11761 #include <stdio.h>
11762
11763 #ifdef RTLD_GLOBAL
11764 # define LT_DLGLOBAL RTLD_GLOBAL
11765 #else
11766 # ifdef DL_GLOBAL
11767 # define LT_DLGLOBAL DL_GLOBAL
11768 # else
11769 # define LT_DLGLOBAL 0
11770 # endif
11771 #endif
11772
11773 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11774 find out it does not work in some platform. */
11775 #ifndef LT_DLLAZY_OR_NOW
11776 # ifdef RTLD_LAZY
11777 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11778 # else
11779 # ifdef DL_LAZY
11780 # define LT_DLLAZY_OR_NOW DL_LAZY
11781 # else
11782 # ifdef RTLD_NOW
11783 # define LT_DLLAZY_OR_NOW RTLD_NOW
11784 # else
11785 # ifdef DL_NOW
11786 # define LT_DLLAZY_OR_NOW DL_NOW
11787 # else
11788 # define LT_DLLAZY_OR_NOW 0
11789 # endif
11790 # endif
11791 # endif
11792 # endif
11793 #endif
11794
11795 /* When -fvisibility=hidden is used, assume the code has been annotated
11796 correspondingly for the symbols needed. */
11797 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11798 int fnord () __attribute__((visibility("default")));
11799 #endif
11800
11801 int fnord () { return 42; }
11802 int main ()
11803 {
11804 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11805 int status = $lt_dlunknown;
11806
11807 if (self)
11808 {
11809 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11810 else
11811 {
11812 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11813 else puts (dlerror ());
11814 }
11815 /* dlclose (self); */
11816 }
11817 else
11818 puts (dlerror ());
11819
11820 return status;
11821 }
11822 _LT_EOF
11823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11824 (eval $ac_link) 2>&5
11825 ac_status=$?
11826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11827 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11828 (./conftest; exit; ) >&5 2>/dev/null
11829 lt_status=$?
11830 case x$lt_status in
11831 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11832 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11833 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11834 esac
11835 else :
11836 # compilation failed
11837 lt_cv_dlopen_self=no
11838 fi
11839 fi
11840 rm -fr conftest*
11841
11842
11843 fi
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11845 $as_echo "$lt_cv_dlopen_self" >&6; }
11846
11847 if test yes = "$lt_cv_dlopen_self"; then
11848 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11850 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11851 if ${lt_cv_dlopen_self_static+:} false; then :
11852 $as_echo_n "(cached) " >&6
11853 else
11854 if test yes = "$cross_compiling"; then :
11855 lt_cv_dlopen_self_static=cross
11856 else
11857 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11858 lt_status=$lt_dlunknown
11859 cat > conftest.$ac_ext <<_LT_EOF
11860 #line $LINENO "configure"
11861 #include "confdefs.h"
11862
11863 #if HAVE_DLFCN_H
11864 #include <dlfcn.h>
11865 #endif
11866
11867 #include <stdio.h>
11868
11869 #ifdef RTLD_GLOBAL
11870 # define LT_DLGLOBAL RTLD_GLOBAL
11871 #else
11872 # ifdef DL_GLOBAL
11873 # define LT_DLGLOBAL DL_GLOBAL
11874 # else
11875 # define LT_DLGLOBAL 0
11876 # endif
11877 #endif
11878
11879 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11880 find out it does not work in some platform. */
11881 #ifndef LT_DLLAZY_OR_NOW
11882 # ifdef RTLD_LAZY
11883 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11884 # else
11885 # ifdef DL_LAZY
11886 # define LT_DLLAZY_OR_NOW DL_LAZY
11887 # else
11888 # ifdef RTLD_NOW
11889 # define LT_DLLAZY_OR_NOW RTLD_NOW
11890 # else
11891 # ifdef DL_NOW
11892 # define LT_DLLAZY_OR_NOW DL_NOW
11893 # else
11894 # define LT_DLLAZY_OR_NOW 0
11895 # endif
11896 # endif
11897 # endif
11898 # endif
11899 #endif
11900
11901 /* When -fvisibility=hidden is used, assume the code has been annotated
11902 correspondingly for the symbols needed. */
11903 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11904 int fnord () __attribute__((visibility("default")));
11905 #endif
11906
11907 int fnord () { return 42; }
11908 int main ()
11909 {
11910 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11911 int status = $lt_dlunknown;
11912
11913 if (self)
11914 {
11915 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11916 else
11917 {
11918 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11919 else puts (dlerror ());
11920 }
11921 /* dlclose (self); */
11922 }
11923 else
11924 puts (dlerror ());
11925
11926 return status;
11927 }
11928 _LT_EOF
11929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11930 (eval $ac_link) 2>&5
11931 ac_status=$?
11932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11933 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11934 (./conftest; exit; ) >&5 2>/dev/null
11935 lt_status=$?
11936 case x$lt_status in
11937 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11938 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11939 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11940 esac
11941 else :
11942 # compilation failed
11943 lt_cv_dlopen_self_static=no
11944 fi
11945 fi
11946 rm -fr conftest*
11947
11948
11949 fi
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11951 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11952 fi
11953
11954 CPPFLAGS=$save_CPPFLAGS
11955 LDFLAGS=$save_LDFLAGS
11956 LIBS=$save_LIBS
11957 ;;
11958 esac
11959
11960 case $lt_cv_dlopen_self in
11961 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11962 *) enable_dlopen_self=unknown ;;
11963 esac
11964
11965 case $lt_cv_dlopen_self_static in
11966 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11967 *) enable_dlopen_self_static=unknown ;;
11968 esac
11969 fi
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987 striplib=
11988 old_striplib=
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11990 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11991 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11992 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11993 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11995 $as_echo "yes" >&6; }
11996 else
11997 # FIXME - insert some real tests, host_os isn't really good enough
11998 case $host_os in
11999 darwin*)
12000 if test -n "$STRIP"; then
12001 striplib="$STRIP -x"
12002 old_striplib="$STRIP -S"
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12004 $as_echo "yes" >&6; }
12005 else
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007 $as_echo "no" >&6; }
12008 fi
12009 ;;
12010 *)
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012 $as_echo "no" >&6; }
12013 ;;
12014 esac
12015 fi
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028 # Report what library types will actually be built
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12030 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12032 $as_echo "$can_build_shared" >&6; }
12033
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12035 $as_echo_n "checking whether to build shared libraries... " >&6; }
12036 test no = "$can_build_shared" && enable_shared=no
12037
12038 # On AIX, shared libraries and static libraries use the same namespace, and
12039 # are all built from PIC.
12040 case $host_os in
12041 aix3*)
12042 test yes = "$enable_shared" && enable_static=no
12043 if test -n "$RANLIB"; then
12044 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12045 postinstall_cmds='$RANLIB $lib'
12046 fi
12047 ;;
12048
12049 aix[4-9]*)
12050 if test ia64 != "$host_cpu"; then
12051 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12052 yes,aix,yes) ;; # shared object as lib.so file only
12053 yes,svr4,*) ;; # shared object as lib.so archive member only
12054 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12055 esac
12056 fi
12057 ;;
12058 esac
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12060 $as_echo "$enable_shared" >&6; }
12061
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12063 $as_echo_n "checking whether to build static libraries... " >&6; }
12064 # Make sure either enable_shared or enable_static is yes.
12065 test yes = "$enable_shared" || enable_static=yes
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12067 $as_echo "$enable_static" >&6; }
12068
12069
12070
12071
12072 fi
12073 ac_ext=c
12074 ac_cpp='$CPP $CPPFLAGS'
12075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12078
12079 CC=$lt_save_CC
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095 ac_config_commands="$ac_config_commands libtool"
12096
12097
12098
12099
12100 # Only expand once:
12101
12102
12103
12104
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12106 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12107 if ${ac_cv_prog_cc_c99+:} false; then :
12108 $as_echo_n "(cached) " >&6
12109 else
12110 ac_cv_prog_cc_c99=no
12111 ac_save_CC=$CC
12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12114 #include <stdarg.h>
12115 #include <stdbool.h>
12116 #include <stdlib.h>
12117 #include <wchar.h>
12118 #include <stdio.h>
12119
12120 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12121 #define debug(...) fprintf (stderr, __VA_ARGS__)
12122 #define showlist(...) puts (#__VA_ARGS__)
12123 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12124 static void
12125 test_varargs_macros (void)
12126 {
12127 int x = 1234;
12128 int y = 5678;
12129 debug ("Flag");
12130 debug ("X = %d\n", x);
12131 showlist (The first, second, and third items.);
12132 report (x>y, "x is %d but y is %d", x, y);
12133 }
12134
12135 // Check long long types.
12136 #define BIG64 18446744073709551615ull
12137 #define BIG32 4294967295ul
12138 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12139 #if !BIG_OK
12140 your preprocessor is broken;
12141 #endif
12142 #if BIG_OK
12143 #else
12144 your preprocessor is broken;
12145 #endif
12146 static long long int bignum = -9223372036854775807LL;
12147 static unsigned long long int ubignum = BIG64;
12148
12149 struct incomplete_array
12150 {
12151 int datasize;
12152 double data[];
12153 };
12154
12155 struct named_init {
12156 int number;
12157 const wchar_t *name;
12158 double average;
12159 };
12160
12161 typedef const char *ccp;
12162
12163 static inline int
12164 test_restrict (ccp restrict text)
12165 {
12166 // See if C++-style comments work.
12167 // Iterate through items via the restricted pointer.
12168 // Also check for declarations in for loops.
12169 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12170 continue;
12171 return 0;
12172 }
12173
12174 // Check varargs and va_copy.
12175 static void
12176 test_varargs (const char *format, ...)
12177 {
12178 va_list args;
12179 va_start (args, format);
12180 va_list args_copy;
12181 va_copy (args_copy, args);
12182
12183 const char *str;
12184 int number;
12185 float fnumber;
12186
12187 while (*format)
12188 {
12189 switch (*format++)
12190 {
12191 case 's': // string
12192 str = va_arg (args_copy, const char *);
12193 break;
12194 case 'd': // int
12195 number = va_arg (args_copy, int);
12196 break;
12197 case 'f': // float
12198 fnumber = va_arg (args_copy, double);
12199 break;
12200 default:
12201 break;
12202 }
12203 }
12204 va_end (args_copy);
12205 va_end (args);
12206 }
12207
12208 int
12209 main ()
12210 {
12211
12212 // Check bool.
12213 _Bool success = false;
12214
12215 // Check restrict.
12216 if (test_restrict ("String literal") == 0)
12217 success = true;
12218 char *restrict newvar = "Another string";
12219
12220 // Check varargs.
12221 test_varargs ("s, d' f .", "string", 65, 34.234);
12222 test_varargs_macros ();
12223
12224 // Check flexible array members.
12225 struct incomplete_array *ia =
12226 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12227 ia->datasize = 10;
12228 for (int i = 0; i < ia->datasize; ++i)
12229 ia->data[i] = i * 1.234;
12230
12231 // Check named initializers.
12232 struct named_init ni = {
12233 .number = 34,
12234 .name = L"Test wide string",
12235 .average = 543.34343,
12236 };
12237
12238 ni.number = 58;
12239
12240 int dynamic_array[ni.number];
12241 dynamic_array[ni.number - 1] = 543;
12242
12243 // work around unused variable warnings
12244 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12245 || dynamic_array[ni.number - 1] != 543);
12246
12247 ;
12248 return 0;
12249 }
12250 _ACEOF
12251 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12252 do
12253 CC="$ac_save_CC $ac_arg"
12254 if ac_fn_c_try_compile "$LINENO"; then :
12255 ac_cv_prog_cc_c99=$ac_arg
12256 fi
12257 rm -f core conftest.err conftest.$ac_objext
12258 test "x$ac_cv_prog_cc_c99" != "xno" && break
12259 done
12260 rm -f conftest.$ac_ext
12261 CC=$ac_save_CC
12262
12263 fi
12264 # AC_CACHE_VAL
12265 case "x$ac_cv_prog_cc_c99" in
12266 x)
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12268 $as_echo "none needed" >&6; } ;;
12269 xno)
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12271 $as_echo "unsupported" >&6; } ;;
12272 *)
12273 CC="$CC $ac_cv_prog_cc_c99"
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12275 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12276 esac
12277 if test "x$ac_cv_prog_cc_c99" != xno; then :
12278
12279 fi
12280
12281
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12283 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12284 if ${ac_cv_c_const+:} false; then :
12285 $as_echo_n "(cached) " >&6
12286 else
12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12289
12290 int
12291 main ()
12292 {
12293
12294 #ifndef __cplusplus
12295 /* Ultrix mips cc rejects this sort of thing. */
12296 typedef int charset[2];
12297 const charset cs = { 0, 0 };
12298 /* SunOS 4.1.1 cc rejects this. */
12299 char const *const *pcpcc;
12300 char **ppc;
12301 /* NEC SVR4.0.2 mips cc rejects this. */
12302 struct point {int x, y;};
12303 static struct point const zero = {0,0};
12304 /* AIX XL C 1.02.0.0 rejects this.
12305 It does not let you subtract one const X* pointer from another in
12306 an arm of an if-expression whose if-part is not a constant
12307 expression */
12308 const char *g = "string";
12309 pcpcc = &g + (g ? g-g : 0);
12310 /* HPUX 7.0 cc rejects these. */
12311 ++pcpcc;
12312 ppc = (char**) pcpcc;
12313 pcpcc = (char const *const *) ppc;
12314 { /* SCO 3.2v4 cc rejects this sort of thing. */
12315 char tx;
12316 char *t = &tx;
12317 char const *s = 0 ? (char *) 0 : (char const *) 0;
12318
12319 *t++ = 0;
12320 if (s) return 0;
12321 }
12322 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12323 int x[] = {25, 17};
12324 const int *foo = &x[0];
12325 ++foo;
12326 }
12327 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12328 typedef const int *iptr;
12329 iptr p = 0;
12330 ++p;
12331 }
12332 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12333 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12334 struct s { int j; const int *ap[3]; } bx;
12335 struct s *b = &bx; b->j = 5;
12336 }
12337 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12338 const int foo = 10;
12339 if (!foo) return 0;
12340 }
12341 return !cs[0] && !zero.x;
12342 #endif
12343
12344 ;
12345 return 0;
12346 }
12347 _ACEOF
12348 if ac_fn_c_try_compile "$LINENO"; then :
12349 ac_cv_c_const=yes
12350 else
12351 ac_cv_c_const=no
12352 fi
12353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12354 fi
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12356 $as_echo "$ac_cv_c_const" >&6; }
12357 if test $ac_cv_c_const = no; then
12358
12359 $as_echo "#define const /**/" >>confdefs.h
12360
12361 fi
12362
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12364 $as_echo_n "checking for inline... " >&6; }
12365 if ${ac_cv_c_inline+:} false; then :
12366 $as_echo_n "(cached) " >&6
12367 else
12368 ac_cv_c_inline=no
12369 for ac_kw in inline __inline__ __inline; do
12370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h. */
12372 #ifndef __cplusplus
12373 typedef int foo_t;
12374 static $ac_kw foo_t static_foo () {return 0; }
12375 $ac_kw foo_t foo () {return 0; }
12376 #endif
12377
12378 _ACEOF
12379 if ac_fn_c_try_compile "$LINENO"; then :
12380 ac_cv_c_inline=$ac_kw
12381 fi
12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383 test "$ac_cv_c_inline" != no && break
12384 done
12385
12386 fi
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12388 $as_echo "$ac_cv_c_inline" >&6; }
12389
12390 case $ac_cv_c_inline in
12391 inline | yes) ;;
12392 *)
12393 case $ac_cv_c_inline in
12394 no) ac_val=;;
12395 *) ac_val=$ac_cv_c_inline;;
12396 esac
12397 cat >>confdefs.h <<_ACEOF
12398 #ifndef __cplusplus
12399 #define inline $ac_val
12400 #endif
12401 _ACEOF
12402 ;;
12403 esac
12404
12405
12406 # By default we simply use the C compiler to build assembly code.
12407
12408 test "${CCAS+set}" = set || CCAS=$CC
12409 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
12410
12411
12412
12413 depcc="$CCAS" am_compiler_list=
12414
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12416 $as_echo_n "checking dependency style of $depcc... " >&6; }
12417 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12421 # We make a subdir and do the tests there. Otherwise we can end up
12422 # making bogus files that we don't know about and never remove. For
12423 # instance it was reported that on HP-UX the gcc test will end up
12424 # making a dummy file named 'D' -- because '-MD' means "put the output
12425 # in D".
12426 rm -rf conftest.dir
12427 mkdir conftest.dir
12428 # Copy depcomp to subdir because otherwise we won't find it if we're
12429 # using a relative directory.
12430 cp "$am_depcomp" conftest.dir
12431 cd conftest.dir
12432 # We will build objects and dependencies in a subdirectory because
12433 # it helps to detect inapplicable dependency modes. For instance
12434 # both Tru64's cc and ICC support -MD to output dependencies as a
12435 # side effect of compilation, but ICC will put the dependencies in
12436 # the current directory while Tru64 will put them in the object
12437 # directory.
12438 mkdir sub
12439
12440 am_cv_CCAS_dependencies_compiler_type=none
12441 if test "$am_compiler_list" = ""; then
12442 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12443 fi
12444 am__universal=false
12445
12446
12447 for depmode in $am_compiler_list; do
12448 # Setup a source with many dependencies, because some compilers
12449 # like to wrap large dependency lists on column 80 (with \), and
12450 # we should not choose a depcomp mode which is confused by this.
12451 #
12452 # We need to recreate these files for each test, as the compiler may
12453 # overwrite some of them when testing with obscure command lines.
12454 # This happens at least with the AIX C compiler.
12455 : > sub/conftest.c
12456 for i in 1 2 3 4 5 6; do
12457 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12458 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12459 # Solaris 10 /bin/sh.
12460 echo '/* dummy */' > sub/conftst$i.h
12461 done
12462 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12463
12464 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12465 # mode. It turns out that the SunPro C++ compiler does not properly
12466 # handle '-M -o', and we need to detect this. Also, some Intel
12467 # versions had trouble with output in subdirs.
12468 am__obj=sub/conftest.${OBJEXT-o}
12469 am__minus_obj="-o $am__obj"
12470 case $depmode in
12471 gcc)
12472 # This depmode causes a compiler race in universal mode.
12473 test "$am__universal" = false || continue
12474 ;;
12475 nosideeffect)
12476 # After this tag, mechanisms are not by side-effect, so they'll
12477 # only be used when explicitly requested.
12478 if test "x$enable_dependency_tracking" = xyes; then
12479 continue
12480 else
12481 break
12482 fi
12483 ;;
12484 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12485 # This compiler won't grok '-c -o', but also, the minuso test has
12486 # not run yet. These depmodes are late enough in the game, and
12487 # so weak that their functioning should not be impacted.
12488 am__obj=conftest.${OBJEXT-o}
12489 am__minus_obj=
12490 ;;
12491 none) break ;;
12492 esac
12493 if depmode=$depmode \
12494 source=sub/conftest.c object=$am__obj \
12495 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12496 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12497 >/dev/null 2>conftest.err &&
12498 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12499 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12500 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12501 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12502 # icc doesn't choke on unknown options, it will just issue warnings
12503 # or remarks (even with -Werror). So we grep stderr for any message
12504 # that says an option was ignored or not supported.
12505 # When given -MP, icc 7.0 and 7.1 complain thusly:
12506 # icc: Command line warning: ignoring option '-M'; no argument required
12507 # The diagnosis changed in icc 8.0:
12508 # icc: Command line remark: option '-MP' not supported
12509 if (grep 'ignoring option' conftest.err ||
12510 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12511 am_cv_CCAS_dependencies_compiler_type=$depmode
12512 break
12513 fi
12514 fi
12515 done
12516
12517 cd ..
12518 rm -rf conftest.dir
12519 else
12520 am_cv_CCAS_dependencies_compiler_type=none
12521 fi
12522
12523 fi
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12525 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12526 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
12527
12528 if
12529 test "x$enable_dependency_tracking" != xno \
12530 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
12531 am__fastdepCCAS_TRUE=
12532 am__fastdepCCAS_FALSE='#'
12533 else
12534 am__fastdepCCAS_TRUE='#'
12535 am__fastdepCCAS_FALSE=
12536 fi
12537
12538
12539
12540
12541 $as_echo "#define OPUS_BUILD /**/" >>confdefs.h
12542
12543
12544 #Use a hacked up version of autoconf's AC_C_RESTRICT because it's not
12545 #strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3)
12546 #Note: Both this and the test for variable-size arrays below are also
12547 # done by AC_PROG_CC_C99, but not thoroughly enough apparently.
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12549 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12550 if ${ac_cv_c_restrict+:} false; then :
12551 $as_echo_n "(cached) " >&6
12552 else
12553 ac_cv_c_restrict=no
12554 # The order here caters to the fact that C++ does not require restrict.
12555 for ac_kw in __restrict __restrict__ _Restrict restrict; do
12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12558 typedef int * int_ptr;
12559 int foo (int_ptr $ac_kw ip, int * $ac_kw baz[]) {
12560 return ip[0];
12561 }
12562 int
12563 main ()
12564 {
12565 int s[1];
12566 int * $ac_kw t = s;
12567 t[0] = 0;
12568 return foo(t, (void *)0)
12569 ;
12570 return 0;
12571 }
12572 _ACEOF
12573 if ac_fn_c_try_compile "$LINENO"; then :
12574 ac_cv_c_restrict=$ac_kw
12575 fi
12576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12577 test "$ac_cv_c_restrict" != no && break
12578 done
12579
12580 fi
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12582 $as_echo "$ac_cv_c_restrict" >&6; }
12583
12584
12585
12586 case $ac_cv_c_restrict in
12587 restrict) ;;
12588 no) $as_echo "#define restrict /**/" >>confdefs.h
12589 ;;
12590 *) cat >>confdefs.h <<_ACEOF
12591 #define restrict $ac_cv_c_restrict
12592 _ACEOF
12593 ;;
12594 esac
12595
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variable-size arrays" >&5
12597 $as_echo_n "checking for C99 variable-size arrays... " >&6; }
12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h. */
12600
12601 int
12602 main ()
12603 {
12604 static int x; char a[++x]; a[sizeof a - 1] = 0; int N; return a[0];
12605 ;
12606 return 0;
12607 }
12608 _ACEOF
12609 if ac_fn_c_try_compile "$LINENO"; then :
12610 has_var_arrays=yes
12611 use_alloca="no (using var arrays)"
12612
12613 $as_echo "#define VAR_ARRAYS 1" >>confdefs.h
12614
12615
12616 else
12617
12618 has_var_arrays=no
12619
12620 fi
12621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_var_arrays" >&5
12623 $as_echo "$has_var_arrays" >&6; }
12624
12625 if test "$has_var_arrays" = "no"; then :
12626
12627 for ac_header in alloca.h
12628 do :
12629 ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
12630 if test "x$ac_cv_header_alloca_h" = xyes; then :
12631 cat >>confdefs.h <<_ACEOF
12632 #define HAVE_ALLOCA_H 1
12633 _ACEOF
12634
12635 fi
12636
12637 done
12638
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12640 $as_echo_n "checking for alloca... " >&6; }
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12643 #include <alloca.h>
12644 int
12645 main ()
12646 {
12647 int foo=10; int *array = alloca(foo);
12648 ;
12649 return 0;
12650 }
12651 _ACEOF
12652 if ac_fn_c_try_compile "$LINENO"; then :
12653 use_alloca=yes;
12654
12655 $as_echo "#define USE_ALLOCA /**/" >>confdefs.h
12656
12657
12658 else
12659
12660 use_alloca=no
12661
12662 fi
12663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_alloca" >&5
12665 $as_echo "$use_alloca" >&6; }
12666
12667 fi
12668
12669 LIBM=
12670 case $host in
12671 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
12672 # These system don't have libm, or don't need it
12673 ;;
12674 *-ncr-sysv4.3*)
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
12676 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
12677 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
12678 $as_echo_n "(cached) " >&6
12679 else
12680 ac_check_lib_save_LIBS=$LIBS
12681 LIBS="-lmw $LIBS"
12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h. */
12684
12685 /* Override any GCC internal prototype to avoid an error.
12686 Use char because int might match the return type of a GCC
12687 builtin and then its argument prototype would still apply. */
12688 #ifdef __cplusplus
12689 extern "C"
12690 #endif
12691 char _mwvalidcheckl ();
12692 int
12693 main ()
12694 {
12695 return _mwvalidcheckl ();
12696 ;
12697 return 0;
12698 }
12699 _ACEOF
12700 if ac_fn_c_try_link "$LINENO"; then :
12701 ac_cv_lib_mw__mwvalidcheckl=yes
12702 else
12703 ac_cv_lib_mw__mwvalidcheckl=no
12704 fi
12705 rm -f core conftest.err conftest.$ac_objext \
12706 conftest$ac_exeext conftest.$ac_ext
12707 LIBS=$ac_check_lib_save_LIBS
12708 fi
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12710 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
12711 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
12712 LIBM=-lmw
12713 fi
12714
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12716 $as_echo_n "checking for cos in -lm... " >&6; }
12717 if ${ac_cv_lib_m_cos+:} false; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 ac_check_lib_save_LIBS=$LIBS
12721 LIBS="-lm $LIBS"
12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12723 /* end confdefs.h. */
12724
12725 /* Override any GCC internal prototype to avoid an error.
12726 Use char because int might match the return type of a GCC
12727 builtin and then its argument prototype would still apply. */
12728 #ifdef __cplusplus
12729 extern "C"
12730 #endif
12731 char cos ();
12732 int
12733 main ()
12734 {
12735 return cos ();
12736 ;
12737 return 0;
12738 }
12739 _ACEOF
12740 if ac_fn_c_try_link "$LINENO"; then :
12741 ac_cv_lib_m_cos=yes
12742 else
12743 ac_cv_lib_m_cos=no
12744 fi
12745 rm -f core conftest.err conftest.$ac_objext \
12746 conftest$ac_exeext conftest.$ac_ext
12747 LIBS=$ac_check_lib_save_LIBS
12748 fi
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12750 $as_echo "$ac_cv_lib_m_cos" >&6; }
12751 if test "x$ac_cv_lib_m_cos" = xyes; then :
12752 LIBM="$LIBM -lm"
12753 fi
12754
12755 ;;
12756 *)
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12758 $as_echo_n "checking for cos in -lm... " >&6; }
12759 if ${ac_cv_lib_m_cos+:} false; then :
12760 $as_echo_n "(cached) " >&6
12761 else
12762 ac_check_lib_save_LIBS=$LIBS
12763 LIBS="-lm $LIBS"
12764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h. */
12766
12767 /* Override any GCC internal prototype to avoid an error.
12768 Use char because int might match the return type of a GCC
12769 builtin and then its argument prototype would still apply. */
12770 #ifdef __cplusplus
12771 extern "C"
12772 #endif
12773 char cos ();
12774 int
12775 main ()
12776 {
12777 return cos ();
12778 ;
12779 return 0;
12780 }
12781 _ACEOF
12782 if ac_fn_c_try_link "$LINENO"; then :
12783 ac_cv_lib_m_cos=yes
12784 else
12785 ac_cv_lib_m_cos=no
12786 fi
12787 rm -f core conftest.err conftest.$ac_objext \
12788 conftest$ac_exeext conftest.$ac_ext
12789 LIBS=$ac_check_lib_save_LIBS
12790 fi
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12792 $as_echo "$ac_cv_lib_m_cos" >&6; }
12793 if test "x$ac_cv_lib_m_cos" = xyes; then :
12794 LIBM=-lm
12795 fi
12796
12797 ;;
12798 esac
12799
12800
12801
12802 # Check whether --enable-fixed-point was given.
12803 if test "${enable_fixed_point+set}" = set; then :
12804 enableval=$enable_fixed_point;
12805 else
12806 enable_fixed_point=no
12807 fi
12808
12809
12810 if test "$enable_fixed_point" = "yes"; then :
12811
12812 enable_float="no"
12813
12814 $as_echo "#define FIXED_POINT 1" >>confdefs.h
12815
12816 PC_BUILD="fixed-point"
12817
12818 else
12819
12820 enable_float="yes";
12821 PC_BUILD="floating-point"
12822
12823 fi
12824
12825 if test "$enable_fixed_point" = "yes"; then
12826 FIXED_POINT_TRUE=
12827 FIXED_POINT_FALSE='#'
12828 else
12829 FIXED_POINT_TRUE='#'
12830 FIXED_POINT_FALSE=
12831 fi
12832
12833
12834 # Check whether --enable-fixed-point-debug was given.
12835 if test "${enable_fixed_point_debug+set}" = set; then :
12836 enableval=$enable_fixed_point_debug;
12837 else
12838 enable_fixed_point_debug=no
12839 fi
12840
12841
12842 if test "$enable_fixed_point_debug" = "yes"; then :
12843
12844
12845 $as_echo "#define FIXED_DEBUG 1" >>confdefs.h
12846
12847
12848 fi
12849
12850 # Check whether --enable-float_api was given.
12851 if test "${enable_float_api+set}" = set; then :
12852 enableval=$enable_float_api;
12853 else
12854 enable_float_api=yes
12855 fi
12856
12857
12858 if test "$enable_float_api" = "no"; then
12859 DISABLE_FLOAT_API_TRUE=
12860 DISABLE_FLOAT_API_FALSE='#'
12861 else
12862 DISABLE_FLOAT_API_TRUE='#'
12863 DISABLE_FLOAT_API_FALSE=
12864 fi
12865
12866
12867 if test "$enable_float_api" = "no"; then :
12868
12869
12870 $as_echo "#define DISABLE_FLOAT_API 1" >>confdefs.h
12871
12872
12873 fi
12874
12875 # Check whether --enable-custom-modes was given.
12876 if test "${enable_custom_modes+set}" = set; then :
12877 enableval=$enable_custom_modes;
12878 else
12879 enable_custom_modes=no
12880 fi
12881
12882
12883 if test "$enable_custom_modes" = "yes"; then :
12884
12885
12886 $as_echo "#define CUSTOM_MODES 1" >>confdefs.h
12887
12888 PC_BUILD="$PC_BUILD, custom modes"
12889
12890 fi
12891
12892 if test "$enable_custom_modes" = "yes"; then
12893 CUSTOM_MODES_TRUE=
12894 CUSTOM_MODES_FALSE='#'
12895 else
12896 CUSTOM_MODES_TRUE='#'
12897 CUSTOM_MODES_FALSE=
12898 fi
12899
12900
12901 has_float_approx=no
12902 #case "$host_cpu" in
12903 #i[[3456]]86 | x86_64 | powerpc64 | powerpc32 | ia64)
12904 # has_float_approx=yes
12905 # ;;
12906 #esac
12907
12908 # Check whether --enable-float-approx was given.
12909 if test "${enable_float_approx+set}" = set; then :
12910 enableval=$enable_float_approx; if test "$enable_float_approx" = "yes"; then
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Floating point approximations are not supported on all platforms." >&5
12912 $as_echo "$as_me: WARNING: Floating point approximations are not supported on all platforms." >&2;}
12913 fi
12914
12915 else
12916 enable_float_approx=$has_float_approx
12917 fi
12918
12919
12920 if test "$enable_float_approx" = "yes"; then :
12921
12922
12923 $as_echo "#define FLOAT_APPROX 1" >>confdefs.h
12924
12925
12926 fi
12927
12928 # Check whether --enable-asm was given.
12929 if test "${enable_asm+set}" = set; then :
12930 enableval=$enable_asm;
12931 else
12932 enable_asm=yes
12933 fi
12934
12935
12936 # Check whether --enable-rtcd was given.
12937 if test "${enable_rtcd+set}" = set; then :
12938 enableval=$enable_rtcd;
12939 else
12940 enable_rtcd=yes
12941 fi
12942
12943
12944 # Check whether --enable-intrinsics was given.
12945 if test "${enable_intrinsics+set}" = set; then :
12946 enableval=$enable_intrinsics;
12947 else
12948 enable_intrinsics=yes
12949 fi
12950
12951
12952 rtcd_support=no
12953 cpu_arm=no
12954
12955 if test x"${enable_asm}" = x"yes"; then :
12956
12957 inline_optimization="No inline ASM for your platform, please send patches"
12958 case $host_cpu in
12959 arm*)
12960 if test "$enable_float" != "yes"; then :
12961
12962 cpu_arm=yes
12963
12964 $as_echo "#define OPUS_ARM_ASM /**/" >>confdefs.h
12965
12966
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports gcc-style inline assembly" >&5
12968 $as_echo_n "checking if compiler supports gcc-style inline assembly... " >&6; }
12969
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12972
12973 int
12974 main ()
12975 {
12976
12977 #ifdef __GNUC_MINOR__
12978 #if (__GNUC__ * 1000 + __GNUC_MINOR__) < 3004
12979 #error GCC before 3.4 has critical bugs compiling inline assembly
12980 #endif
12981 #endif
12982 __asm__ (""::)
12983 ;
12984 return 0;
12985 }
12986 _ACEOF
12987 if ac_fn_c_try_compile "$LINENO"; then :
12988 flag_ok=yes
12989 else
12990 flag_ok=no
12991 fi
12992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12993
12994 if test "X$flag_ok" = Xyes ; then
12995 inline_optimization="ARM"
12996 true
12997 else
12998 inline_optimization="disabled"
12999
13000 true
13001 fi
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
13003 $as_echo "$flag_ok" >&6; }
13004
13005
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports EDSP instructions on ARM" >&5
13007 $as_echo_n "checking if assembler supports EDSP instructions on ARM... " >&6; }
13008
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13011
13012 int
13013 main ()
13014 {
13015 __asm__("qadd r3,r3,r3")
13016 ;
13017 return 0;
13018 }
13019 _ACEOF
13020 if ac_fn_c_try_compile "$LINENO"; then :
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13022 $as_echo "yes" >&6; }
13023 OPUS_ARM_INLINE_EDSP=1
13024 else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13027 OPUS_ARM_INLINE_EDSP=0
13028 fi
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030
13031
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports ARMv6 media instructions on ARM" >&5
13033 $as_echo_n "checking if assembler supports ARMv6 media instructions on ARM... " >&6; }
13034
13035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h. */
13037
13038 int
13039 main ()
13040 {
13041 __asm__("shadd8 r3,r3,r3")
13042 ;
13043 return 0;
13044 }
13045 _ACEOF
13046 if ac_fn_c_try_compile "$LINENO"; then :
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13048 $as_echo "yes" >&6; }
13049 OPUS_ARM_INLINE_MEDIA=1
13050 else
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 $as_echo "no" >&6; }
13053 OPUS_ARM_INLINE_MEDIA=0
13054 fi
13055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13056
13057
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports NEON instructions on ARM" >&5
13059 $as_echo_n "checking if assembler supports NEON instructions on ARM... " >&6; }
13060
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h. */
13063
13064 int
13065 main ()
13066 {
13067 __asm__("vorr d0,d0,d0")
13068 ;
13069 return 0;
13070 }
13071 _ACEOF
13072 if ac_fn_c_try_compile "$LINENO"; then :
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13074 $as_echo "yes" >&6; }
13075 OPUS_ARM_INLINE_NEON=1
13076 else
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13079 OPUS_ARM_INLINE_NEON=0
13080 fi
13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13082
13083 if test x"$inline_optimization" = x"ARM"; then :
13084
13085 if true; then
13086 OPUS_ARM_INLINE_ASM_TRUE=
13087 OPUS_ARM_INLINE_ASM_FALSE='#'
13088 else
13089 OPUS_ARM_INLINE_ASM_TRUE='#'
13090 OPUS_ARM_INLINE_ASM_FALSE=
13091 fi
13092
13093
13094 $as_echo "#define OPUS_ARM_INLINE_ASM 1" >>confdefs.h
13095
13096 if test x"$OPUS_ARM_INLINE_EDSP" = x"1"; then :
13097
13098
13099 $as_echo "#define OPUS_ARM_INLINE_EDSP 1" >>confdefs.h
13100
13101 inline_optimization="$inline_optimization (EDSP)"
13102
13103 fi
13104 if test x"$OPUS_ARM_INLINE_MEDIA" = x"1"; then :
13105
13106
13107 $as_echo "#define OPUS_ARM_INLINE_MEDIA 1" >>confdefs.h
13108
13109 inline_optimization="$inline_optimization (Media)"
13110
13111 fi
13112 if test x"$OPUS_ARM_INLINE_NEON" = x"1"; then :
13113
13114
13115 $as_echo "#define OPUS_ARM_INLINE_NEON 1" >>confdefs.h
13116
13117 inline_optimization="$inline_optimization (NEON)"
13118
13119 fi
13120
13121 fi
13122 # Extract the first word of "perl", so it can be a program name with args.
13123 set dummy perl; ac_word=$2
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13125 $as_echo_n "checking for $ac_word... " >&6; }
13126 if ${ac_cv_prog_HAVE_PERL+:} false; then :
13127 $as_echo_n "(cached) " >&6
13128 else
13129 if test -n "$HAVE_PERL"; then
13130 ac_cv_prog_HAVE_PERL="$HAVE_PERL" # Let the user override the test.
13131 else
13132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13133 for as_dir in $PATH
13134 do
13135 IFS=$as_save_IFS
13136 test -z "$as_dir" && as_dir=.
13137 for ac_exec_ext in '' $ac_executable_extensions; do
13138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13139 ac_cv_prog_HAVE_PERL="yes"
13140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13141 break 2
13142 fi
13143 done
13144 done
13145 IFS=$as_save_IFS
13146
13147 test -z "$ac_cv_prog_HAVE_PERL" && ac_cv_prog_HAVE_PERL="no"
13148 fi
13149 fi
13150 HAVE_PERL=$ac_cv_prog_HAVE_PERL
13151 if test -n "$HAVE_PERL"; then
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PERL" >&5
13153 $as_echo "$HAVE_PERL" >&6; }
13154 else
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156 $as_echo "no" >&6; }
13157 fi
13158
13159
13160 if test x"$HAVE_PERL" = x"yes"; then :
13161
13162 if true; then
13163 OPUS_ARM_EXTERNAL_ASM_TRUE=
13164 OPUS_ARM_EXTERNAL_ASM_FALSE='#'
13165 else
13166 OPUS_ARM_EXTERNAL_ASM_TRUE='#'
13167 OPUS_ARM_EXTERNAL_ASM_FALSE=
13168 fi
13169
13170 asm_optimization="ARM"
13171 if test x"$OPUS_ARM_INLINE_EDSP" = x"1"; then :
13172
13173 OPUS_ARM_PRESUME_EDSP=1
13174 OPUS_ARM_MAY_HAVE_EDSP=1
13175
13176 else
13177
13178 OPUS_ARM_PRESUME_EDSP=0
13179 OPUS_ARM_MAY_HAVE_EDSP=0
13180
13181 fi
13182 if test x"$OPUS_ARM_INLINE_MEDIA" = x"1"; then :
13183
13184 OPUS_ARM_PRESUME_MEDIA=1
13185 OPUS_ARM_MAY_HAVE_MEDIA=1
13186
13187 else
13188
13189 OPUS_ARM_PRESUME_MEDIA=0
13190 OPUS_ARM_MAY_HAVE_MEDIA=0
13191
13192 fi
13193 if test x"$OPUS_ARM_INLINE_NEON" = x"1"; then :
13194
13195 OPUS_ARM_PRESUME_NEON=1
13196 OPUS_ARM_MAY_HAVE_NEON=1
13197
13198 else
13199
13200 OPUS_ARM_PRESUME_NEON=0
13201 OPUS_ARM_MAY_HAVE_NEON=0
13202
13203 fi
13204 if test x"$enable_rtcd" = x"yes"; then :
13205
13206 if test x"$OPUS_ARM_MAY_HAVE_EDSP" != x"1"; then :
13207
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable armv5e EDSP instructions..." >&5
13209 $as_echo "$as_me: Trying to force-enable armv5e EDSP instructions..." >&6;}
13210
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports EDSP instructions on ARM" >&5
13212 $as_echo_n "checking if assembler supports EDSP instructions on ARM... " >&6; }
13213
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h. */
13216
13217 int
13218 main ()
13219 {
13220 __asm__(".arch armv5te\n.object_arch armv4t\nqadd r3,r3,r3")
13221 ;
13222 return 0;
13223 }
13224 _ACEOF
13225 if ac_fn_c_try_compile "$LINENO"; then :
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13227 $as_echo "yes" >&6; }
13228 OPUS_ARM_MAY_HAVE_EDSP=1
13229 else
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231 $as_echo "no" >&6; }
13232
13233 fi
13234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13235
13236
13237 fi
13238 if test x"$OPUS_ARM_MAY_HAVE_MEDIA" != x"1"; then :
13239
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable ARMv6 media instructions..." >&5
13241 $as_echo "$as_me: Trying to force-enable ARMv6 media instructions..." >&6;}
13242
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports ARMv6 media instructions on ARM" >&5
13244 $as_echo_n "checking if assembler supports ARMv6 media instructions on ARM... " >&6; }
13245
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13248
13249 int
13250 main ()
13251 {
13252 __asm__(".arch armv6\n.object_arch armv4t\nshadd8 r3,r3,r3")
13253 ;
13254 return 0;
13255 }
13256 _ACEOF
13257 if ac_fn_c_try_compile "$LINENO"; then :
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13259 $as_echo "yes" >&6; }
13260 OPUS_ARM_MAY_HAVE_MEDIA=1
13261 else
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13263 $as_echo "no" >&6; }
13264
13265 fi
13266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13267
13268
13269 fi
13270 if test x"$OPUS_ARM_MAY_HAVE_NEON" != x"1"; then :
13271
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to force-enable NEON instructions..." >&5
13273 $as_echo "$as_me: Trying to force-enable NEON instructions..." >&6;}
13274
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports NEON instructions on ARM" >&5
13276 $as_echo_n "checking if assembler supports NEON instructions on ARM... " >&6; }
13277
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13280
13281 int
13282 main ()
13283 {
13284 __asm__(".arch armv7-a\n.fpu neon\n.object_arch armv4t\nvorr d0,d0,d0")
13285 ;
13286 return 0;
13287 }
13288 _ACEOF
13289 if ac_fn_c_try_compile "$LINENO"; then :
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13291 $as_echo "yes" >&6; }
13292 OPUS_ARM_MAY_HAVE_NEON=1
13293 else
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13296
13297 fi
13298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13299
13300
13301 fi
13302
13303 fi
13304 rtcd_support=
13305 if test x"$OPUS_ARM_MAY_HAVE_EDSP" = x"1"; then :
13306
13307
13308 $as_echo "#define OPUS_ARM_MAY_HAVE_EDSP 1" >>confdefs.h
13309
13310 if test x"$OPUS_ARM_PRESUME_EDSP" = x"1"; then :
13311
13312
13313 $as_echo "#define OPUS_ARM_PRESUME_EDSP 1" >>confdefs.h
13314
13315 asm_optimization="$asm_optimization (EDSP)"
13316
13317 else
13318 rtcd_support="$rtcd_support (EDSP)"
13319
13320 fi
13321
13322 fi
13323
13324 if test x"$OPUS_ARM_MAY_HAVE_MEDIA" = x"1"; then :
13325
13326
13327 $as_echo "#define OPUS_ARM_MAY_HAVE_MEDIA 1" >>confdefs.h
13328
13329 if test x"$OPUS_ARM_PRESUME_MEDIA" = x"1"; then :
13330
13331
13332 $as_echo "#define OPUS_ARM_PRESUME_MEDIA 1" >>confdefs.h
13333
13334 asm_optimization="$asm_optimization (Media)"
13335
13336 else
13337 rtcd_support="$rtcd_support (Media)"
13338
13339 fi
13340
13341 fi
13342
13343 if test x"$OPUS_ARM_MAY_HAVE_NEON" = x"1"; then :
13344
13345
13346 $as_echo "#define OPUS_ARM_MAY_HAVE_NEON 1" >>confdefs.h
13347
13348 if test x"$OPUS_ARM_PRESUME_NEON" = x"1"; then :
13349
13350
13351 $as_echo "#define OPUS_ARM_PRESUME_NEON 1" >>confdefs.h
13352
13353 asm_optimization="$asm_optimization (NEON)"
13354
13355 else
13356 rtcd_support="$rtcd_support (NEON)"
13357
13358 fi
13359
13360 fi
13361
13362 if test x"$rtcd_support" != x""; then :
13363 rtcd_support=ARM"$rtcd_support"
13364 else
13365 rtcd_support="no"
13366
13367 fi
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apple style tools" >&5
13369 $as_echo_n "checking for apple style tools... " >&6; }
13370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371 /* end confdefs.h. */
13372
13373 #ifndef __APPLE__
13374 #error 1
13375 #endif
13376 int
13377 main ()
13378 {
13379
13380 ;
13381 return 0;
13382 }
13383 _ACEOF
13384 if ac_fn_c_try_cpp "$LINENO"; then :
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13386 $as_echo "yes" >&6; }; ARM2GNU_PARAMS="--apple"
13387 else
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389 $as_echo "no" >&6; }; ARM2GNU_PARAMS=""
13390 fi
13391 rm -f conftest.err conftest.i conftest.$ac_ext
13392
13393
13394 else
13395
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** ARM assembly requires perl -- disabling optimizations" >&5
13397 $as_echo "$as_me: WARNING: *** ARM assembly requires perl -- disabling optimizations" >&2;}
13398 asm_optimization="(missing perl dependency for ARM)"
13399
13400 fi
13401
13402 fi
13403 ;;
13404 esac
13405
13406 else
13407
13408 inline_optimization="disabled"
13409 asm_optimization="disabled"
13410
13411 fi
13412
13413 if test x"${inline_optimization%% *}" = x"ARM"; then
13414 OPUS_ARM_INLINE_ASM_TRUE=
13415 OPUS_ARM_INLINE_ASM_FALSE='#'
13416 else
13417 OPUS_ARM_INLINE_ASM_TRUE='#'
13418 OPUS_ARM_INLINE_ASM_FALSE=
13419 fi
13420
13421 if test x"${asm_optimization%% *}" = x"ARM"; then
13422 OPUS_ARM_EXTERNAL_ASM_TRUE=
13423 OPUS_ARM_EXTERNAL_ASM_FALSE='#'
13424 else
13425 OPUS_ARM_EXTERNAL_ASM_TRUE='#'
13426 OPUS_ARM_EXTERNAL_ASM_FALSE=
13427 fi
13428
13429
13430 if false; then
13431 HAVE_SSE_TRUE=
13432 HAVE_SSE_FALSE='#'
13433 else
13434 HAVE_SSE_TRUE='#'
13435 HAVE_SSE_FALSE=
13436 fi
13437
13438 if false; then
13439 HAVE_SSE2_TRUE=
13440 HAVE_SSE2_FALSE='#'
13441 else
13442 HAVE_SSE2_TRUE='#'
13443 HAVE_SSE2_FALSE=
13444 fi
13445
13446 if false; then
13447 HAVE_SSE4_1_TRUE=
13448 HAVE_SSE4_1_FALSE='#'
13449 else
13450 HAVE_SSE4_1_TRUE='#'
13451 HAVE_SSE4_1_FALSE=
13452 fi
13453
13454 if false; then
13455 HAVE_AVX_TRUE=
13456 HAVE_AVX_FALSE='#'
13457 else
13458 HAVE_AVX_TRUE='#'
13459 HAVE_AVX_FALSE=
13460 fi
13461
13462
13463
13464
13465
13466
13467
13468 # With GCC on ARM32 softfp architectures (e.g. Android, or older Ubuntu) you need to specify
13469 # -mfloat-abi=softfp for -mfpu=neon to work. However, on ARM32 hardfp architectures (e.g. newer Ubuntu),
13470 # this option will break things.
13471
13472 # As a heuristic, if host matches arm*eabi* but not arm*hf*, it's probably soft-float.
13473
13474
13475 case $host in #(
13476 arm*hf*) :
13477 RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon" ;; #(
13478 arm*eabi*) :
13479 RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon -mfloat-abi=softfp" ;; #(
13480 *) :
13481 RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS="-mfpu=neon" ;;
13482 esac
13483
13484
13485
13486
13487
13488
13489
13490 if ${X86_SSE_CFLAGS+:} false; then :
13491
13492 else
13493 X86_SSE_CFLAGS="-msse"
13494 fi
13495 if ${X86_SSE2_CFLAGS+:} false; then :
13496
13497 else
13498 X86_SSE2_CFLAGS="-msse2"
13499 fi
13500 if ${X86_SSE4_1_CFLAGS+:} false; then :
13501
13502 else
13503 X86_SSE4_1_CFLAGS="-msse4.1"
13504 fi
13505 if ${X86_AVX_CFLAGS+:} false; then :
13506
13507 else
13508 X86_AVX_CFLAGS="-mavx"
13509 fi
13510 if ${ARM_NEON_INTR_CFLAGS+:} false; then :
13511
13512 else
13513 ARM_NEON_INTR_CFLAGS="$RESOLVED_DEFAULT_ARM_NEON_INTR_CFLAGS"
13514 fi
13515
13516
13517
13518 if test x"$enable_intrinsics" = x"yes"; then :
13519
13520 intrinsics_support=""
13521 case $host_cpu in #(
13522 arm*|aarch64*) :
13523
13524 cpu_arm=yes
13525
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ARM Neon intrinsics" >&5
13527 $as_echo_n "checking if compiler supports ARM Neon intrinsics... " >&6; }
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13530 #include <arm_neon.h>
13531
13532 int
13533 main ()
13534 {
13535
13536 static float32x4_t A0, A1, SUMM;
13537 SUMM = vmlaq_f32(SUMM, A0, A1);
13538 return (int)vgetq_lane_f32(SUMM, 0);
13539
13540
13541 ;
13542 return 0;
13543 }
13544 _ACEOF
13545 if ac_fn_c_try_link "$LINENO"; then :
13546
13547 OPUS_ARM_MAY_HAVE_NEON_INTR=1
13548 OPUS_ARM_PRESUME_NEON_INTR=1
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13550 $as_echo "yes" >&6; }
13551
13552 else
13553
13554 OPUS_ARM_PRESUME_NEON_INTR=0
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13556 $as_echo "no" >&6; }
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ARM Neon intrinsics with $ARM_NEON_INTR_CFLAGS" >&5
13558 $as_echo_n "checking if compiler supports ARM Neon intrinsics with $ARM_NEON_INTR_CFLAGS... " >&6; }
13559 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $ARM_NEON_INTR_CFLAGS"
13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561 /* end confdefs.h. */
13562 #include <arm_neon.h>
13563
13564 int
13565 main ()
13566 {
13567
13568 static float32x4_t A0, A1, SUMM;
13569 SUMM = vmlaq_f32(SUMM, A0, A1);
13570 return (int)vgetq_lane_f32(SUMM, 0);
13571
13572
13573 ;
13574 return 0;
13575 }
13576 _ACEOF
13577 if ac_fn_c_try_link "$LINENO"; then :
13578
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13580 $as_echo "yes" >&6; }
13581 OPUS_ARM_MAY_HAVE_NEON_INTR=1
13582
13583 else
13584
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13586 $as_echo "no" >&6; }
13587 OPUS_ARM_MAY_HAVE_NEON_INTR=0
13588
13589 fi
13590 rm -f core conftest.err conftest.$ac_objext \
13591 conftest$ac_exeext conftest.$ac_ext
13592 CFLAGS="$save_CFLAGS"
13593
13594 fi
13595 rm -f core conftest.err conftest.$ac_objext \
13596 conftest$ac_exeext conftest.$ac_ext
13597
13598 if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1" && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
13599
13600 OPUS_ARM_NEON_INTR_CFLAGS="$ARM_NEON_INTR_CFLAGS"
13601
13602
13603
13604 fi
13605
13606 if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1"; then :
13607
13608
13609 $as_echo "#define OPUS_ARM_MAY_HAVE_NEON_INTR 1" >>confdefs.h
13610
13611 intrinsics_support="$intrinsics_support (NEON)"
13612
13613 if test x"$enable_rtcd" != x"no" && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
13614 if test x"$rtcd_support" = x"no"; then :
13615 rtcd_support="ARM (NEON Intrinsics)"
13616 else
13617 rtcd_support="$rtcd_support (NEON Intrinsics)"
13618 fi
13619 fi
13620
13621 if test x"$OPUS_ARM_PRESUME_NEON_INTR" = x"1"; then :
13622
13623 $as_echo "#define OPUS_ARM_PRESUME_NEON_INTR 1" >>confdefs.h
13624
13625 fi
13626
13627
13628
13629 # Check whether --with-NE10 was given.
13630 if test "${with_NE10+set}" = set; then :
13631 withval=$with_NE10; NE10_prefix="$withval"
13632 else
13633 NE10_prefix=""
13634 fi
13635
13636
13637 # Check whether --with-NE10-libraries was given.
13638 if test "${with_NE10_libraries+set}" = set; then :
13639 withval=$with_NE10_libraries; NE10_libraries="$withval"
13640 else
13641 NE10_libraries=""
13642 fi
13643
13644
13645 # Check whether --with-NE10-includes was given.
13646 if test "${with_NE10_includes+set}" = set; then :
13647 withval=$with_NE10_includes; NE10_includes="$withval"
13648 else
13649 NE10_includes=""
13650 fi
13651
13652
13653 if test "x$NE10_libraries" != "x" ; then
13654 NE10_LIBS="-L$NE10_libraries"
13655 elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then
13656 NE10_LIBS=""
13657 elif test "x$NE10_prefix" != "x" ; then
13658 NE10_LIBS="-L$NE10_prefix/lib"
13659 elif test "x$prefix" != "xNONE" ; then
13660 NE10_LIBS="-L$prefix/lib"
13661 fi
13662
13663 if test "x$NE10_prefix" != "xno" ; then
13664 NE10_LIBS="$NE10_LIBS -lNE10"
13665 fi
13666
13667 if test "x$NE10_includes" != "x" ; then
13668 NE10_CFLAGS="-I$NE10_includes"
13669 elif test "x$NE10_prefix" = "xno" || test "x$NE10_prefix" = "xyes" ; then
13670 NE10_CFLAGS=""
13671 elif test "x$NE10_prefix" != "x" ; then
13672 NE10_CFLAGS="-I$NE10_prefix/include"
13673 elif test "x$prefix" != "xNONE"; then
13674 NE10_CFLAGS="-I$prefix/include"
13675 fi
13676
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NE10" >&5
13678 $as_echo_n "checking for NE10... " >&6; }
13679 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $NE10_CFLAGS"
13680 save_LIBS="$LIBS"; LIBS="$LIBS $NE10_LIBS $LIBM"
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683
13684 #include <NE10_dsp.h>
13685
13686 int
13687 main ()
13688 {
13689
13690 ne10_fft_cfg_float32_t cfg;
13691 cfg = ne10_fft_alloc_c2c_float32_neon(480);
13692
13693
13694 ;
13695 return 0;
13696 }
13697
13698 _ACEOF
13699 if ac_fn_c_try_link "$LINENO"; then :
13700
13701 HAVE_ARM_NE10=1
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13703 $as_echo "yes" >&6; }
13704
13705 else
13706
13707 HAVE_ARM_NE10=0
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13709 $as_echo "no" >&6; }
13710 NE10_CFLAGS=""
13711 NE10_LIBS=""
13712
13713
13714 fi
13715 rm -f core conftest.err conftest.$ac_objext \
13716 conftest$ac_exeext conftest.$ac_ext
13717 CFLAGS="$save_CFLAGS"; LIBS="$save_LIBS"
13718 #Now we know if libNE10 is installed or not
13719 if test x"$HAVE_ARM_NE10" = x"1"; then :
13720
13721
13722 $as_echo "#define HAVE_ARM_NE10 1" >>confdefs.h
13723
13724
13725
13726
13727
13728
13729 fi
13730
13731
13732 if test x"$NE10_LIBS" != x""; then :
13733
13734 intrinsics_support="$intrinsics_support (NE10)"
13735 if test x"enable_rtcd" != x"" \
13736 && test x"$OPUS_ARM_PRESUME_NEON_INTR" != x"1"; then :
13737 rtcd_support="$rtcd_support (NE10)"
13738 fi
13739
13740 fi
13741
13742
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports Aarch64 Neon intrinsics" >&5
13744 $as_echo_n "checking if compiler supports Aarch64 Neon intrinsics... " >&6; }
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13747 #include <arm_neon.h>
13748
13749 int
13750 main ()
13751 {
13752
13753 static int32_t IN;
13754 static int16_t OUT;
13755 OUT = vqmovns_s32(IN);
13756
13757
13758 ;
13759 return 0;
13760 }
13761 _ACEOF
13762 if ac_fn_c_try_link "$LINENO"; then :
13763
13764 OPUS_ARM_MAY_HAVE_AARCH64_NEON_INTR=1
13765 OPUS_ARM_PRESUME_AARCH64_NEON_INTR=1
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13767 $as_echo "yes" >&6; }
13768
13769 else
13770
13771 OPUS_ARM_PRESUME_AARCH64_NEON_INTR=0
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13773 $as_echo "no" >&6; }
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports Aarch64 Neon intrinsics with $ARM_NEON_INTR_CFLAGS" >&5
13775 $as_echo_n "checking if compiler supports Aarch64 Neon intrinsics with $ARM_NEON_INTR_CFLAGS... " >&6; }
13776 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $ARM_NEON_INTR_CFLAGS"
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h. */
13779 #include <arm_neon.h>
13780
13781 int
13782 main ()
13783 {
13784
13785 static int32_t IN;
13786 static int16_t OUT;
13787 OUT = vqmovns_s32(IN);
13788
13789
13790 ;
13791 return 0;
13792 }
13793 _ACEOF
13794 if ac_fn_c_try_link "$LINENO"; then :
13795
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13797 $as_echo "yes" >&6; }
13798 OPUS_ARM_MAY_HAVE_AARCH64_NEON_INTR=1
13799
13800 else
13801
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803 $as_echo "no" >&6; }
13804 OPUS_ARM_MAY_HAVE_AARCH64_NEON_INTR=0
13805
13806 fi
13807 rm -f core conftest.err conftest.$ac_objext \
13808 conftest$ac_exeext conftest.$ac_ext
13809 CFLAGS="$save_CFLAGS"
13810
13811 fi
13812 rm -f core conftest.err conftest.$ac_objext \
13813 conftest$ac_exeext conftest.$ac_ext
13814
13815
13816 if test x"$OPUS_ARM_PRESUME_AARCH64_NEON_INTR" = x"1"; then :
13817
13818
13819 $as_echo "#define OPUS_ARM_PRESUME_AARCH64_NEON_INTR 1" >>confdefs.h
13820
13821 intrinsics_support="$intrinsics_support (NEON Aarch64)"
13822
13823 fi
13824
13825 if test x"$intrinsics_support" = x""; then :
13826 intrinsics_support=no
13827 else
13828 intrinsics_support="ARM$intrinsics_support"
13829 fi
13830
13831 else
13832
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support ARM intrinsics" >&5
13834 $as_echo "$as_me: WARNING: Compiler does not support ARM intrinsics" >&2;}
13835 intrinsics_support=no
13836
13837 fi
13838 ;; #(
13839 i?86|x86_64) :
13840
13841
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE intrinsics" >&5
13843 $as_echo_n "checking if compiler supports SSE intrinsics... " >&6; }
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13846 #include <xmmintrin.h>
13847 #include <time.h>
13848
13849 int
13850 main ()
13851 {
13852
13853 __m128 mtest;
13854 mtest = _mm_set1_ps((float)time(NULL));
13855 mtest = _mm_mul_ps(mtest, mtest);
13856 return _mm_cvtss_si32(mtest);
13857
13858
13859 ;
13860 return 0;
13861 }
13862 _ACEOF
13863 if ac_fn_c_try_link "$LINENO"; then :
13864
13865 OPUS_X86_MAY_HAVE_SSE=1
13866 OPUS_X86_PRESUME_SSE=1
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13868 $as_echo "yes" >&6; }
13869
13870 else
13871
13872 OPUS_X86_PRESUME_SSE=0
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13874 $as_echo "no" >&6; }
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE intrinsics with $X86_SSE_CFLAGS" >&5
13876 $as_echo_n "checking if compiler supports SSE intrinsics with $X86_SSE_CFLAGS... " >&6; }
13877 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_SSE_CFLAGS"
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13880 #include <xmmintrin.h>
13881 #include <time.h>
13882
13883 int
13884 main ()
13885 {
13886
13887 __m128 mtest;
13888 mtest = _mm_set1_ps((float)time(NULL));
13889 mtest = _mm_mul_ps(mtest, mtest);
13890 return _mm_cvtss_si32(mtest);
13891
13892
13893 ;
13894 return 0;
13895 }
13896 _ACEOF
13897 if ac_fn_c_try_link "$LINENO"; then :
13898
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13900 $as_echo "yes" >&6; }
13901 OPUS_X86_MAY_HAVE_SSE=1
13902
13903 else
13904
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906 $as_echo "no" >&6; }
13907 OPUS_X86_MAY_HAVE_SSE=0
13908
13909 fi
13910 rm -f core conftest.err conftest.$ac_objext \
13911 conftest$ac_exeext conftest.$ac_ext
13912 CFLAGS="$save_CFLAGS"
13913
13914 fi
13915 rm -f core conftest.err conftest.$ac_objext \
13916 conftest$ac_exeext conftest.$ac_ext
13917
13918 if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1" && test x"$OPUS_X86_PRESUME_SSE" != x"1"; then :
13919
13920 OPUS_X86_SSE_CFLAGS="$X86_SSE_CFLAGS"
13921
13922
13923
13924 fi
13925
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE2 intrinsics" >&5
13927 $as_echo_n "checking if compiler supports SSE2 intrinsics... " >&6; }
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930 #include <emmintrin.h>
13931 #include <time.h>
13932
13933 int
13934 main ()
13935 {
13936
13937 __m128i mtest;
13938 mtest = _mm_set1_epi32((int)time(NULL));
13939 mtest = _mm_mul_epu32(mtest, mtest);
13940 return _mm_cvtsi128_si32(mtest);
13941
13942
13943 ;
13944 return 0;
13945 }
13946 _ACEOF
13947 if ac_fn_c_try_link "$LINENO"; then :
13948
13949 OPUS_X86_MAY_HAVE_SSE2=1
13950 OPUS_X86_PRESUME_SSE2=1
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13952 $as_echo "yes" >&6; }
13953
13954 else
13955
13956 OPUS_X86_PRESUME_SSE2=0
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958 $as_echo "no" >&6; }
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE2 intrinsics with $X86_SSE2_CFLAGS" >&5
13960 $as_echo_n "checking if compiler supports SSE2 intrinsics with $X86_SSE2_CFLAGS... " >&6; }
13961 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_SSE2_CFLAGS"
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13964 #include <emmintrin.h>
13965 #include <time.h>
13966
13967 int
13968 main ()
13969 {
13970
13971 __m128i mtest;
13972 mtest = _mm_set1_epi32((int)time(NULL));
13973 mtest = _mm_mul_epu32(mtest, mtest);
13974 return _mm_cvtsi128_si32(mtest);
13975
13976
13977 ;
13978 return 0;
13979 }
13980 _ACEOF
13981 if ac_fn_c_try_link "$LINENO"; then :
13982
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13984 $as_echo "yes" >&6; }
13985 OPUS_X86_MAY_HAVE_SSE2=1
13986
13987 else
13988
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13990 $as_echo "no" >&6; }
13991 OPUS_X86_MAY_HAVE_SSE2=0
13992
13993 fi
13994 rm -f core conftest.err conftest.$ac_objext \
13995 conftest$ac_exeext conftest.$ac_ext
13996 CFLAGS="$save_CFLAGS"
13997
13998 fi
13999 rm -f core conftest.err conftest.$ac_objext \
14000 conftest$ac_exeext conftest.$ac_ext
14001
14002 if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1" && test x"$OPUS_X86_PRESUME_SSE2" != x"1"; then :
14003
14004 OPUS_X86_SSE2_CFLAGS="$X86_SSE2_CFLAGS"
14005
14006
14007
14008 fi
14009
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE4.1 intrinsics" >&5
14011 $as_echo_n "checking if compiler supports SSE4.1 intrinsics... " >&6; }
14012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h. */
14014 #include <smmintrin.h>
14015 #include <time.h>
14016
14017 int
14018 main ()
14019 {
14020
14021 __m128i mtest;
14022 mtest = _mm_set1_epi32((int)time(NULL));
14023 mtest = _mm_mul_epi32(mtest, mtest);
14024 return _mm_cvtsi128_si32(mtest);
14025
14026
14027 ;
14028 return 0;
14029 }
14030 _ACEOF
14031 if ac_fn_c_try_link "$LINENO"; then :
14032
14033 OPUS_X86_MAY_HAVE_SSE4_1=1
14034 OPUS_X86_PRESUME_SSE4_1=1
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14036 $as_echo "yes" >&6; }
14037
14038 else
14039
14040 OPUS_X86_PRESUME_SSE4_1=0
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14042 $as_echo "no" >&6; }
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports SSE4.1 intrinsics with $X86_SSE4_1_CFLAGS" >&5
14044 $as_echo_n "checking if compiler supports SSE4.1 intrinsics with $X86_SSE4_1_CFLAGS... " >&6; }
14045 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_SSE4_1_CFLAGS"
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14048 #include <smmintrin.h>
14049 #include <time.h>
14050
14051 int
14052 main ()
14053 {
14054
14055 __m128i mtest;
14056 mtest = _mm_set1_epi32((int)time(NULL));
14057 mtest = _mm_mul_epi32(mtest, mtest);
14058 return _mm_cvtsi128_si32(mtest);
14059
14060
14061 ;
14062 return 0;
14063 }
14064 _ACEOF
14065 if ac_fn_c_try_link "$LINENO"; then :
14066
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14068 $as_echo "yes" >&6; }
14069 OPUS_X86_MAY_HAVE_SSE4_1=1
14070
14071 else
14072
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14074 $as_echo "no" >&6; }
14075 OPUS_X86_MAY_HAVE_SSE4_1=0
14076
14077 fi
14078 rm -f core conftest.err conftest.$ac_objext \
14079 conftest$ac_exeext conftest.$ac_ext
14080 CFLAGS="$save_CFLAGS"
14081
14082 fi
14083 rm -f core conftest.err conftest.$ac_objext \
14084 conftest$ac_exeext conftest.$ac_ext
14085
14086 if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1" && test x"$OPUS_X86_PRESUME_SSE4_1" != x"1"; then :
14087
14088 OPUS_X86_SSE4_1_CFLAGS="$X86_SSE4_1_CFLAGS"
14089
14090
14091
14092 fi
14093
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports AVX intrinsics" >&5
14095 $as_echo_n "checking if compiler supports AVX intrinsics... " >&6; }
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14098 #include <immintrin.h>
14099 #include <time.h>
14100
14101 int
14102 main ()
14103 {
14104
14105 __m256 mtest;
14106 mtest = _mm256_set1_ps((float)time(NULL));
14107 mtest = _mm256_addsub_ps(mtest, mtest);
14108 return _mm_cvtss_si32(_mm256_extractf128_ps(mtest, 0));
14109
14110
14111 ;
14112 return 0;
14113 }
14114 _ACEOF
14115 if ac_fn_c_try_link "$LINENO"; then :
14116
14117 OPUS_X86_MAY_HAVE_AVX=1
14118 OPUS_X86_PRESUME_AVX=1
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14120 $as_echo "yes" >&6; }
14121
14122 else
14123
14124 OPUS_X86_PRESUME_AVX=0
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14126 $as_echo "no" >&6; }
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports AVX intrinsics with $X86_AVX_CFLAGS" >&5
14128 $as_echo_n "checking if compiler supports AVX intrinsics with $X86_AVX_CFLAGS... " >&6; }
14129 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS $X86_AVX_CFLAGS"
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h. */
14132 #include <immintrin.h>
14133 #include <time.h>
14134
14135 int
14136 main ()
14137 {
14138
14139 __m256 mtest;
14140 mtest = _mm256_set1_ps((float)time(NULL));
14141 mtest = _mm256_addsub_ps(mtest, mtest);
14142 return _mm_cvtss_si32(_mm256_extractf128_ps(mtest, 0));
14143
14144
14145 ;
14146 return 0;
14147 }
14148 _ACEOF
14149 if ac_fn_c_try_link "$LINENO"; then :
14150
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14152 $as_echo "yes" >&6; }
14153 OPUS_X86_MAY_HAVE_AVX=1
14154
14155 else
14156
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14158 $as_echo "no" >&6; }
14159 OPUS_X86_MAY_HAVE_AVX=0
14160
14161 fi
14162 rm -f core conftest.err conftest.$ac_objext \
14163 conftest$ac_exeext conftest.$ac_ext
14164 CFLAGS="$save_CFLAGS"
14165
14166 fi
14167 rm -f core conftest.err conftest.$ac_objext \
14168 conftest$ac_exeext conftest.$ac_ext
14169
14170 if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1" && test x"$OPUS_X86_PRESUME_AVX" != x"1"; then :
14171
14172 OPUS_X86_AVX_CFLAGS="$X86_AVX_CFLAGS"
14173
14174
14175
14176 fi
14177 if test x"$rtcd_support" = x"no"; then :
14178 rtcd_support=""
14179 fi
14180 if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1"; then :
14181
14182
14183 $as_echo "#define OPUS_X86_MAY_HAVE_SSE 1" >>confdefs.h
14184
14185 intrinsics_support="$intrinsics_support SSE"
14186
14187 if test x"$OPUS_X86_PRESUME_SSE" = x"1"; then :
14188
14189 $as_echo "#define OPUS_X86_PRESUME_SSE 1" >>confdefs.h
14190
14191 else
14192 rtcd_support="$rtcd_support SSE"
14193 fi
14194
14195 else
14196
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE intrinsics" >&5
14198 $as_echo "$as_me: WARNING: Compiler does not support SSE intrinsics" >&2;}
14199
14200 fi
14201
14202 if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1"; then :
14203
14204
14205 $as_echo "#define OPUS_X86_MAY_HAVE_SSE2 1" >>confdefs.h
14206
14207 intrinsics_support="$intrinsics_support SSE2"
14208
14209 if test x"$OPUS_X86_PRESUME_SSE2" = x"1"; then :
14210
14211 $as_echo "#define OPUS_X86_PRESUME_SSE2 1" >>confdefs.h
14212
14213 else
14214 rtcd_support="$rtcd_support SSE2"
14215 fi
14216
14217 else
14218
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE2 intrinsics" >&5
14220 $as_echo "$as_me: WARNING: Compiler does not support SSE2 intrinsics" >&2;}
14221
14222 fi
14223
14224 if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1"; then :
14225
14226
14227 $as_echo "#define OPUS_X86_MAY_HAVE_SSE4_1 1" >>confdefs.h
14228
14229 intrinsics_support="$intrinsics_support SSE4.1"
14230
14231 if test x"$OPUS_X86_PRESUME_SSE4_1" = x"1"; then :
14232
14233 $as_echo "#define OPUS_X86_PRESUME_SSE4_1 1" >>confdefs.h
14234
14235 else
14236 rtcd_support="$rtcd_support SSE4.1"
14237 fi
14238
14239 else
14240
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support SSE4.1 intrinsics" >&5
14242 $as_echo "$as_me: WARNING: Compiler does not support SSE4.1 intrinsics" >&2;}
14243
14244 fi
14245 if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1"; then :
14246
14247
14248 $as_echo "#define OPUS_X86_MAY_HAVE_AVX 1" >>confdefs.h
14249
14250 intrinsics_support="$intrinsics_support AVX"
14251
14252 if test x"$OPUS_X86_PRESUME_AVX" = x"1"; then :
14253
14254 $as_echo "#define OPUS_X86_PRESUME_AVX 1" >>confdefs.h
14255
14256 else
14257 rtcd_support="$rtcd_support AVX"
14258 fi
14259
14260 else
14261
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support AVX intrinsics" >&5
14263 $as_echo "$as_me: WARNING: Compiler does not support AVX intrinsics" >&2;}
14264
14265 fi
14266
14267 if test x"$intrinsics_support" = x""; then :
14268 intrinsics_support=no
14269 else
14270 intrinsics_support="x86$intrinsics_support"
14271
14272 fi
14273 if test x"$rtcd_support" = x""; then :
14274 rtcd_support=no
14275 elif rtcd_support="x86$rtcd_support"; then :
14276
14277 fi
14278
14279 if test x"$enable_rtcd" = x"yes" && test x"$rtcd_support" != x""; then :
14280
14281 get_cpuid_by_asm="no"
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking How to get X86 CPU Info" >&5
14283 $as_echo_n "checking How to get X86 CPU Info... " >&6; }
14284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h. */
14286
14287 #include <stdio.h>
14288
14289 int
14290 main ()
14291 {
14292
14293 unsigned int CPUInfo0;
14294 unsigned int CPUInfo1;
14295 unsigned int CPUInfo2;
14296 unsigned int CPUInfo3;
14297 unsigned int InfoType;
14298 __asm__ __volatile__ (
14299 "cpuid":
14300 "=a" (CPUInfo0),
14301 "=b" (CPUInfo1),
14302 "=c" (CPUInfo2),
14303 "=d" (CPUInfo3) :
14304 "a" (InfoType), "c" (0)
14305 );
14306
14307 ;
14308 return 0;
14309 }
14310 _ACEOF
14311 if ac_fn_c_try_link "$LINENO"; then :
14312 get_cpuid_by_asm="yes"
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Inline Assembly" >&5
14314 $as_echo "Inline Assembly" >&6; }
14315
14316 $as_echo "#define CPU_INFO_BY_ASM 1" >>confdefs.h
14317
14318 else
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14321
14322 #include <cpuid.h>
14323
14324 int
14325 main ()
14326 {
14327
14328 unsigned int CPUInfo0;
14329 unsigned int CPUInfo1;
14330 unsigned int CPUInfo2;
14331 unsigned int CPUInfo3;
14332 unsigned int InfoType;
14333 __get_cpuid(InfoType, &CPUInfo0, &CPUInfo1, &CPUInfo2, &CPUInfo3);
14334
14335 ;
14336 return 0;
14337 }
14338 _ACEOF
14339 if ac_fn_c_try_link "$LINENO"; then :
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: C method" >&5
14341 $as_echo "C method" >&6; }
14342
14343 $as_echo "#define CPU_INFO_BY_C 1" >>confdefs.h
14344
14345 else
14346 as_fn_error $? "no supported Get CPU Info method, please disable run-time CPU capabilities detection or intrinsics" "$LINENO" 5
14347 fi
14348 rm -f core conftest.err conftest.$ac_objext \
14349 conftest$ac_exeext conftest.$ac_ext
14350 fi
14351 rm -f core conftest.err conftest.$ac_objext \
14352 conftest$ac_exeext conftest.$ac_ext
14353 fi
14354 ;; #(
14355 *) :
14356
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No intrinsics support for your architecture" >&5
14358 $as_echo "$as_me: WARNING: No intrinsics support for your architecture" >&2;}
14359 intrinsics_support="no"
14360 ;;
14361 esac
14362
14363 else
14364
14365 intrinsics_support="no"
14366
14367 fi
14368
14369 if test "$cpu_arm" = "yes"; then
14370 CPU_ARM_TRUE=
14371 CPU_ARM_FALSE='#'
14372 else
14373 CPU_ARM_TRUE='#'
14374 CPU_ARM_FALSE=
14375 fi
14376
14377 if test x"$OPUS_ARM_MAY_HAVE_NEON_INTR" = x"1"; then
14378 HAVE_ARM_NEON_INTR_TRUE=
14379 HAVE_ARM_NEON_INTR_FALSE='#'
14380 else
14381 HAVE_ARM_NEON_INTR_TRUE='#'
14382 HAVE_ARM_NEON_INTR_FALSE=
14383 fi
14384
14385 if test x"$HAVE_ARM_NE10" = x"1"; then
14386 HAVE_ARM_NE10_TRUE=
14387 HAVE_ARM_NE10_FALSE='#'
14388 else
14389 HAVE_ARM_NE10_TRUE='#'
14390 HAVE_ARM_NE10_FALSE=
14391 fi
14392
14393 if test x"$OPUS_X86_MAY_HAVE_SSE" = x"1"; then
14394 HAVE_SSE_TRUE=
14395 HAVE_SSE_FALSE='#'
14396 else
14397 HAVE_SSE_TRUE='#'
14398 HAVE_SSE_FALSE=
14399 fi
14400
14401 if test x"$OPUS_X86_MAY_HAVE_SSE2" = x"1"; then
14402 HAVE_SSE2_TRUE=
14403 HAVE_SSE2_FALSE='#'
14404 else
14405 HAVE_SSE2_TRUE='#'
14406 HAVE_SSE2_FALSE=
14407 fi
14408
14409 if test x"$OPUS_X86_MAY_HAVE_SSE4_1" = x"1"; then
14410 HAVE_SSE4_1_TRUE=
14411 HAVE_SSE4_1_FALSE='#'
14412 else
14413 HAVE_SSE4_1_TRUE='#'
14414 HAVE_SSE4_1_FALSE=
14415 fi
14416
14417 if test x"$OPUS_X86_MAY_HAVE_AVX" = x"1"; then
14418 HAVE_AVX_TRUE=
14419 HAVE_AVX_FALSE='#'
14420 else
14421 HAVE_AVX_TRUE='#'
14422 HAVE_AVX_FALSE=
14423 fi
14424
14425
14426 if test x"$enable_rtcd" = x"yes"; then :
14427
14428 if test x"$rtcd_support" != x"no"; then :
14429
14430
14431 $as_echo "#define OPUS_HAVE_RTCD 1" >>confdefs.h
14432
14433 OPUS_HAVE_RTCD=1
14434
14435
14436 fi
14437
14438 else
14439
14440 rtcd_support="disabled"
14441
14442 fi
14443
14444 # Check whether --enable-assertions was given.
14445 if test "${enable_assertions+set}" = set; then :
14446 enableval=$enable_assertions;
14447 else
14448 enable_assertions=no
14449 fi
14450
14451
14452 if test "$enable_assertions" = "yes"; then :
14453
14454
14455 $as_echo "#define ENABLE_ASSERTIONS 1" >>confdefs.h
14456
14457
14458 fi
14459
14460 # Check whether --enable-hardening was given.
14461 if test "${enable_hardening+set}" = set; then :
14462 enableval=$enable_hardening;
14463 else
14464 enable_hardening=yes
14465 fi
14466
14467
14468 if test "$enable_hardening" = "yes"; then :
14469
14470
14471 $as_echo "#define ENABLE_HARDENING 1" >>confdefs.h
14472
14473
14474 fi
14475
14476 # Check whether --enable-fuzzing was given.
14477 if test "${enable_fuzzing+set}" = set; then :
14478 enableval=$enable_fuzzing;
14479 else
14480 enable_fuzzing=no
14481 fi
14482
14483
14484 if test "$enable_fuzzing" = "yes"; then :
14485
14486
14487 $as_echo "#define FUZZING 1" >>confdefs.h
14488
14489
14490 fi
14491
14492 # Check whether --enable-check-asm was given.
14493 if test "${enable_check_asm+set}" = set; then :
14494 enableval=$enable_check_asm;
14495 else
14496 enable_check_asm=no
14497 fi
14498
14499
14500 if test "$enable_check_asm" = "yes"; then :
14501
14502
14503 $as_echo "#define OPUS_CHECK_ASM 1" >>confdefs.h
14504
14505
14506 fi
14507
14508 # Check whether --enable-doc was given.
14509 if test "${enable_doc+set}" = set; then :
14510 enableval=$enable_doc;
14511 else
14512 enable_doc=yes
14513 fi
14514
14515
14516 if test "$enable_doc" = "yes"; then :
14517
14518 # Extract the first word of "doxygen", so it can be a program name with args.
14519 set dummy doxygen; ac_word=$2
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14521 $as_echo_n "checking for $ac_word... " >&6; }
14522 if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
14523 $as_echo_n "(cached) " >&6
14524 else
14525 if test -n "$HAVE_DOXYGEN"; then
14526 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
14527 else
14528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14529 for as_dir in $PATH
14530 do
14531 IFS=$as_save_IFS
14532 test -z "$as_dir" && as_dir=.
14533 for ac_exec_ext in '' $ac_executable_extensions; do
14534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14535 ac_cv_prog_HAVE_DOXYGEN="yes"
14536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14537 break 2
14538 fi
14539 done
14540 done
14541 IFS=$as_save_IFS
14542
14543 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
14544 fi
14545 fi
14546 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
14547 if test -n "$HAVE_DOXYGEN"; then
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
14549 $as_echo "$HAVE_DOXYGEN" >&6; }
14550 else
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14552 $as_echo "no" >&6; }
14553 fi
14554
14555
14556 # Extract the first word of "dot", so it can be a program name with args.
14557 set dummy dot; ac_word=$2
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14559 $as_echo_n "checking for $ac_word... " >&6; }
14560 if ${ac_cv_prog_HAVE_DOT+:} false; then :
14561 $as_echo_n "(cached) " >&6
14562 else
14563 if test -n "$HAVE_DOT"; then
14564 ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
14565 else
14566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14567 for as_dir in $PATH
14568 do
14569 IFS=$as_save_IFS
14570 test -z "$as_dir" && as_dir=.
14571 for ac_exec_ext in '' $ac_executable_extensions; do
14572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14573 ac_cv_prog_HAVE_DOT="yes"
14574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14575 break 2
14576 fi
14577 done
14578 done
14579 IFS=$as_save_IFS
14580
14581 test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="no"
14582 fi
14583 fi
14584 HAVE_DOT=$ac_cv_prog_HAVE_DOT
14585 if test -n "$HAVE_DOT"; then
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5
14587 $as_echo "$HAVE_DOT" >&6; }
14588 else
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14590 $as_echo "no" >&6; }
14591 fi
14592
14593
14594
14595 else
14596
14597 HAVE_DOXYGEN=no
14598
14599 fi
14600
14601 if test "$HAVE_DOXYGEN" = "yes"; then
14602 HAVE_DOXYGEN_TRUE=
14603 HAVE_DOXYGEN_FALSE='#'
14604 else
14605 HAVE_DOXYGEN_TRUE='#'
14606 HAVE_DOXYGEN_FALSE=
14607 fi
14608
14609
14610 # Check whether --enable-extra-programs was given.
14611 if test "${enable_extra_programs+set}" = set; then :
14612 enableval=$enable_extra_programs;
14613 else
14614 enable_extra_programs=yes
14615 fi
14616
14617
14618 if test "$enable_extra_programs" = "yes"; then
14619 EXTRA_PROGRAMS_TRUE=
14620 EXTRA_PROGRAMS_FALSE='#'
14621 else
14622 EXTRA_PROGRAMS_TRUE='#'
14623 EXTRA_PROGRAMS_FALSE=
14624 fi
14625
14626
14627
14628 # Check whether --enable-rfc8251 was given.
14629 if test "${enable_rfc8251+set}" = set; then :
14630 enableval=$enable_rfc8251;
14631 else
14632 enable_rfc8251=yes
14633 fi
14634
14635
14636 if test "$enable_rfc8251" = "no"; then :
14637
14638
14639 $as_echo "#define DISABLE_UPDATE_DRAFT 1" >>confdefs.h
14640
14641
14642 fi
14643
14644
14645 saved_CFLAGS="$CFLAGS"
14646 CFLAGS="$CFLAGS -fvisibility=hidden"
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fvisibility=hidden" >&5
14648 $as_echo_n "checking if ${CC} supports -fvisibility=hidden... " >&6; }
14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650 /* end confdefs.h. */
14651 char foo;
14652 _ACEOF
14653 if ac_fn_c_try_compile "$LINENO"; then :
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14655 $as_echo "yes" >&6; }
14656 else
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14658 $as_echo "no" >&6; }
14659 CFLAGS="$saved_CFLAGS"
14660
14661 fi
14662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14663
14664 on_x86=no
14665 case "$host_cpu" in
14666 i[3456]86 | x86_64)
14667 on_x86=yes
14668 ;;
14669 esac
14670
14671 on_windows=no
14672 case $host in
14673 *cygwin*|*mingw*)
14674 on_windows=yes
14675 ;;
14676 esac
14677
14678 # Check whether --enable-stack-protector was given.
14679 if test "${enable_stack_protector+set}" = set; then :
14680 enableval=$enable_stack_protector;
14681 else
14682
14683 if test "$ac_cv_c_compiler_gnu" = "yes" && test "$on_x86" = "yes" && test "$on_windows" = "no"; then :
14684 enable_stack_protector=yes
14685 else
14686 enable_stack_protector=no
14687 fi
14688
14689 fi
14690
14691
14692 if test "$enable_stack_protector" = "yes"; then :
14693
14694 saved_CFLAGS="$CFLAGS"
14695 CFLAGS="$CFLAGS -fstack-protector-strong"
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fstack-protector-strong" >&5
14697 $as_echo_n "checking if ${CC} supports -fstack-protector-strong... " >&6; }
14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14700
14701 int
14702 main ()
14703 {
14704 char foo;
14705 ;
14706 return 0;
14707 }
14708 _ACEOF
14709 if ac_fn_c_try_link "$LINENO"; then :
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14711 $as_echo "yes" >&6; }
14712 else
14713
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14715 $as_echo "no" >&6; }
14716 enable_stack_protector=no
14717 CFLAGS="$saved_CFLAGS"
14718
14719 fi
14720 rm -f core conftest.err conftest.$ac_objext \
14721 conftest$ac_exeext conftest.$ac_ext
14722
14723 fi
14724
14725 if test x$ac_cv_c_compiler_gnu = xyes; then :
14726
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add -D_FORTIFY_SOURCE=2 to CFLAGS" >&5
14728 $as_echo_n "checking whether to add -D_FORTIFY_SOURCE=2 to CFLAGS... " >&6; }
14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14731
14732
14733 int main() {
14734 #ifndef _FORTIFY_SOURCE
14735 return 0;
14736 #else
14737 this_is_an_error;
14738 #endif
14739 }
14740
14741
14742 _ACEOF
14743 if ac_fn_c_try_link "$LINENO"; then :
14744
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14746 $as_echo "yes" >&6; }
14747 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
14748
14749 else
14750
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752 $as_echo "no" >&6; }
14753
14754 fi
14755 rm -f core conftest.err conftest.$ac_objext \
14756 conftest$ac_exeext conftest.$ac_ext
14757
14758
14759 fi
14760
14761 CFLAGS="$CFLAGS -W"
14762
14763 warn_CFLAGS="-Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes"
14764 saved_CFLAGS="$CFLAGS"
14765 CFLAGS="$CFLAGS $warn_CFLAGS"
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports ${warn_CFLAGS}" >&5
14767 $as_echo_n "checking if ${CC} supports ${warn_CFLAGS}... " >&6; }
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14770 char foo;
14771 _ACEOF
14772 if ac_fn_c_try_compile "$LINENO"; then :
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14774 $as_echo "yes" >&6; }
14775 else
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14777 $as_echo "no" >&6; }
14778 CFLAGS="$saved_CFLAGS"
14779
14780 fi
14781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14782
14783 saved_LIBS="$LIBS"
14784 LIBS="$LIBS $LIBM"
14785 for ac_func in lrintf
14786 do :
14787 ac_fn_c_check_func "$LINENO" "lrintf" "ac_cv_func_lrintf"
14788 if test "x$ac_cv_func_lrintf" = xyes; then :
14789 cat >>confdefs.h <<_ACEOF
14790 #define HAVE_LRINTF 1
14791 _ACEOF
14792
14793 fi
14794 done
14795
14796 for ac_func in lrint
14797 do :
14798 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
14799 if test "x$ac_cv_func_lrint" = xyes; then :
14800 cat >>confdefs.h <<_ACEOF
14801 #define HAVE_LRINT 1
14802 _ACEOF
14803
14804 fi
14805 done
14806
14807 LIBS="$saved_LIBS"
14808
14809 for ac_func in __malloc_hook
14810 do :
14811 ac_fn_c_check_func "$LINENO" "__malloc_hook" "ac_cv_func___malloc_hook"
14812 if test "x$ac_cv_func___malloc_hook" = xyes; then :
14813 cat >>confdefs.h <<_ACEOF
14814 #define HAVE___MALLOC_HOOK 1
14815 _ACEOF
14816
14817 fi
14818 done
14819
14820
14821
14822
14823 ac_config_files="$ac_config_files Makefile opus.pc opus-uninstalled.pc celt/arm/armopts.s doc/Makefile doc/Doxyfile"
14824
14825 ac_config_headers="$ac_config_headers config.h"
14826
14827
14828 cat >confcache <<\_ACEOF
14829 # This file is a shell script that caches the results of configure
14830 # tests run on this system so they can be shared between configure
14831 # scripts and configure runs, see configure's option --config-cache.
14832 # It is not useful on other systems. If it contains results you don't
14833 # want to keep, you may remove or edit it.
14834 #
14835 # config.status only pays attention to the cache file if you give it
14836 # the --recheck option to rerun configure.
14837 #
14838 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14839 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14840 # following values.
14841
14842 _ACEOF
14843
14844 # The following way of writing the cache mishandles newlines in values,
14845 # but we know of no workaround that is simple, portable, and efficient.
14846 # So, we kill variables containing newlines.
14847 # Ultrix sh set writes to stderr and can't be redirected directly,
14848 # and sets the high bit in the cache file unless we assign to the vars.
14849 (
14850 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14851 eval ac_val=\$$ac_var
14852 case $ac_val in #(
14853 *${as_nl}*)
14854 case $ac_var in #(
14855 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14856 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14857 esac
14858 case $ac_var in #(
14859 _ | IFS | as_nl) ;; #(
14860 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14861 *) { eval $ac_var=; unset $ac_var;} ;;
14862 esac ;;
14863 esac
14864 done
14865
14866 (set) 2>&1 |
14867 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14868 *${as_nl}ac_space=\ *)
14869 # `set' does not quote correctly, so add quotes: double-quote
14870 # substitution turns \\\\ into \\, and sed turns \\ into \.
14871 sed -n \
14872 "s/'/'\\\\''/g;
14873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14874 ;; #(
14875 *)
14876 # `set' quotes correctly as required by POSIX, so do not add quotes.
14877 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14878 ;;
14879 esac |
14880 sort
14881 ) |
14882 sed '
14883 /^ac_cv_env_/b end
14884 t clear
14885 :clear
14886 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14887 t end
14888 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14889 :end' >>confcache
14890 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14891 if test -w "$cache_file"; then
14892 if test "x$cache_file" != "x/dev/null"; then
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14894 $as_echo "$as_me: updating cache $cache_file" >&6;}
14895 if test ! -f "$cache_file" || test -h "$cache_file"; then
14896 cat confcache >"$cache_file"
14897 else
14898 case $cache_file in #(
14899 */* | ?:*)
14900 mv -f confcache "$cache_file"$$ &&
14901 mv -f "$cache_file"$$ "$cache_file" ;; #(
14902 *)
14903 mv -f confcache "$cache_file" ;;
14904 esac
14905 fi
14906 fi
14907 else
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14909 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14910 fi
14911 fi
14912 rm -f confcache
14913
14914 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14915 # Let make expand exec_prefix.
14916 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14917
14918 DEFS=-DHAVE_CONFIG_H
14919
14920 ac_libobjs=
14921 ac_ltlibobjs=
14922 U=
14923 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14924 # 1. Remove the extension, and $U if already installed.
14925 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14926 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14927 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14928 # will be set to the directory where LIBOBJS objects are built.
14929 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14930 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14931 done
14932 LIBOBJS=$ac_libobjs
14933
14934 LTLIBOBJS=$ac_ltlibobjs
14935
14936
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14938 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14939 if test -n "$am_sleep_pid"; then
14940 # Hide warnings about reused PIDs.
14941 wait $am_sleep_pid 2>/dev/null
14942 fi
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14944 $as_echo "done" >&6; }
14945 if test -n "$EXEEXT"; then
14946 am__EXEEXT_TRUE=
14947 am__EXEEXT_FALSE='#'
14948 else
14949 am__EXEEXT_TRUE='#'
14950 am__EXEEXT_FALSE=
14951 fi
14952
14953 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14954 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14956 fi
14957 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14958 as_fn_error $? "conditional \"AMDEP\" was never defined.
14959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14960 fi
14961 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14962 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14964 fi
14965 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14966 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14968 fi
14969 if test -z "${FIXED_POINT_TRUE}" && test -z "${FIXED_POINT_FALSE}"; then
14970 as_fn_error $? "conditional \"FIXED_POINT\" was never defined.
14971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14972 fi
14973 if test -z "${DISABLE_FLOAT_API_TRUE}" && test -z "${DISABLE_FLOAT_API_FALSE}"; then
14974 as_fn_error $? "conditional \"DISABLE_FLOAT_API\" was never defined.
14975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14976 fi
14977 if test -z "${CUSTOM_MODES_TRUE}" && test -z "${CUSTOM_MODES_FALSE}"; then
14978 as_fn_error $? "conditional \"CUSTOM_MODES\" was never defined.
14979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14980 fi
14981 if test -z "${OPUS_ARM_INLINE_ASM_TRUE}" && test -z "${OPUS_ARM_INLINE_ASM_FALSE}"; then
14982 as_fn_error $? "conditional \"OPUS_ARM_INLINE_ASM\" was never defined.
14983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14984 fi
14985 if test -z "${OPUS_ARM_EXTERNAL_ASM_TRUE}" && test -z "${OPUS_ARM_EXTERNAL_ASM_FALSE}"; then
14986 as_fn_error $? "conditional \"OPUS_ARM_EXTERNAL_ASM\" was never defined.
14987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14988 fi
14989 if test -z "${OPUS_ARM_INLINE_ASM_TRUE}" && test -z "${OPUS_ARM_INLINE_ASM_FALSE}"; then
14990 as_fn_error $? "conditional \"OPUS_ARM_INLINE_ASM\" was never defined.
14991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14992 fi
14993 if test -z "${OPUS_ARM_EXTERNAL_ASM_TRUE}" && test -z "${OPUS_ARM_EXTERNAL_ASM_FALSE}"; then
14994 as_fn_error $? "conditional \"OPUS_ARM_EXTERNAL_ASM\" was never defined.
14995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14996 fi
14997 if test -z "${HAVE_SSE_TRUE}" && test -z "${HAVE_SSE_FALSE}"; then
14998 as_fn_error $? "conditional \"HAVE_SSE\" was never defined.
14999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15000 fi
15001 if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
15002 as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
15003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15004 fi
15005 if test -z "${HAVE_SSE4_1_TRUE}" && test -z "${HAVE_SSE4_1_FALSE}"; then
15006 as_fn_error $? "conditional \"HAVE_SSE4_1\" was never defined.
15007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15008 fi
15009 if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
15010 as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
15011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15012 fi
15013 if test -z "${CPU_ARM_TRUE}" && test -z "${CPU_ARM_FALSE}"; then
15014 as_fn_error $? "conditional \"CPU_ARM\" was never defined.
15015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15016 fi
15017 if test -z "${HAVE_ARM_NEON_INTR_TRUE}" && test -z "${HAVE_ARM_NEON_INTR_FALSE}"; then
15018 as_fn_error $? "conditional \"HAVE_ARM_NEON_INTR\" was never defined.
15019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15020 fi
15021 if test -z "${HAVE_ARM_NE10_TRUE}" && test -z "${HAVE_ARM_NE10_FALSE}"; then
15022 as_fn_error $? "conditional \"HAVE_ARM_NE10\" was never defined.
15023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15024 fi
15025 if test -z "${HAVE_SSE_TRUE}" && test -z "${HAVE_SSE_FALSE}"; then
15026 as_fn_error $? "conditional \"HAVE_SSE\" was never defined.
15027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15028 fi
15029 if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
15030 as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
15031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15032 fi
15033 if test -z "${HAVE_SSE4_1_TRUE}" && test -z "${HAVE_SSE4_1_FALSE}"; then
15034 as_fn_error $? "conditional \"HAVE_SSE4_1\" was never defined.
15035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15036 fi
15037 if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
15038 as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
15039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15040 fi
15041 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
15042 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
15043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15044 fi
15045 if test -z "${EXTRA_PROGRAMS_TRUE}" && test -z "${EXTRA_PROGRAMS_FALSE}"; then
15046 as_fn_error $? "conditional \"EXTRA_PROGRAMS\" was never defined.
15047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15048 fi
15049
15050 : "${CONFIG_STATUS=./config.status}"
15051 ac_write_fail=0
15052 ac_clean_files_save=$ac_clean_files
15053 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15055 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15056 as_write_fail=0
15057 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15058 #! $SHELL
15059 # Generated by $as_me.
15060 # Run this file to recreate the current configuration.
15061 # Compiler output produced by configure, useful for debugging
15062 # configure, is in config.log if it exists.
15063
15064 debug=false
15065 ac_cs_recheck=false
15066 ac_cs_silent=false
15067
15068 SHELL=\${CONFIG_SHELL-$SHELL}
15069 export SHELL
15070 _ASEOF
15071 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15072 ## -------------------- ##
15073 ## M4sh Initialization. ##
15074 ## -------------------- ##
15075
15076 # Be more Bourne compatible
15077 DUALCASE=1; export DUALCASE # for MKS sh
15078 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15079 emulate sh
15080 NULLCMD=:
15081 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15082 # is contrary to our usage. Disable this feature.
15083 alias -g '${1+"$@"}'='"$@"'
15084 setopt NO_GLOB_SUBST
15085 else
15086 case `(set -o) 2>/dev/null` in #(
15087 *posix*) :
15088 set -o posix ;; #(
15089 *) :
15090 ;;
15091 esac
15092 fi
15093
15094
15095 as_nl='
15096 '
15097 export as_nl
15098 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15099 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15100 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15101 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15102 # Prefer a ksh shell builtin over an external printf program on Solaris,
15103 # but without wasting forks for bash or zsh.
15104 if test -z "$BASH_VERSION$ZSH_VERSION" \
15105 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15106 as_echo='print -r --'
15107 as_echo_n='print -rn --'
15108 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15109 as_echo='printf %s\n'
15110 as_echo_n='printf %s'
15111 else
15112 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15113 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15114 as_echo_n='/usr/ucb/echo -n'
15115 else
15116 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15117 as_echo_n_body='eval
15118 arg=$1;
15119 case $arg in #(
15120 *"$as_nl"*)
15121 expr "X$arg" : "X\\(.*\\)$as_nl";
15122 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15123 esac;
15124 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15125 '
15126 export as_echo_n_body
15127 as_echo_n='sh -c $as_echo_n_body as_echo'
15128 fi
15129 export as_echo_body
15130 as_echo='sh -c $as_echo_body as_echo'
15131 fi
15132
15133 # The user is always right.
15134 if test "${PATH_SEPARATOR+set}" != set; then
15135 PATH_SEPARATOR=:
15136 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15137 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15138 PATH_SEPARATOR=';'
15139 }
15140 fi
15141
15142
15143 # IFS
15144 # We need space, tab and new line, in precisely that order. Quoting is
15145 # there to prevent editors from complaining about space-tab.
15146 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15147 # splitting by setting IFS to empty value.)
15148 IFS=" "" $as_nl"
15149
15150 # Find who we are. Look in the path if we contain no directory separator.
15151 as_myself=
15152 case $0 in #((
15153 *[\\/]* ) as_myself=$0 ;;
15154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15155 for as_dir in $PATH
15156 do
15157 IFS=$as_save_IFS
15158 test -z "$as_dir" && as_dir=.
15159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15160 done
15161 IFS=$as_save_IFS
15162
15163 ;;
15164 esac
15165 # We did not find ourselves, most probably we were run as `sh COMMAND'
15166 # in which case we are not to be found in the path.
15167 if test "x$as_myself" = x; then
15168 as_myself=$0
15169 fi
15170 if test ! -f "$as_myself"; then
15171 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15172 exit 1
15173 fi
15174
15175 # Unset variables that we do not need and which cause bugs (e.g. in
15176 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15177 # suppresses any "Segmentation fault" message there. '((' could
15178 # trigger a bug in pdksh 5.2.14.
15179 for as_var in BASH_ENV ENV MAIL MAILPATH
15180 do eval test x\${$as_var+set} = xset \
15181 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15182 done
15183 PS1='$ '
15184 PS2='> '
15185 PS4='+ '
15186
15187 # NLS nuisances.
15188 LC_ALL=C
15189 export LC_ALL
15190 LANGUAGE=C
15191 export LANGUAGE
15192
15193 # CDPATH.
15194 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15195
15196
15197 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15198 # ----------------------------------------
15199 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15200 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15201 # script with STATUS, using 1 if that was 0.
15202 as_fn_error ()
15203 {
15204 as_status=$1; test $as_status -eq 0 && as_status=1
15205 if test "$4"; then
15206 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15207 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15208 fi
15209 $as_echo "$as_me: error: $2" >&2
15210 as_fn_exit $as_status
15211 } # as_fn_error
15212
15213
15214 # as_fn_set_status STATUS
15215 # -----------------------
15216 # Set $? to STATUS, without forking.
15217 as_fn_set_status ()
15218 {
15219 return $1
15220 } # as_fn_set_status
15221
15222 # as_fn_exit STATUS
15223 # -----------------
15224 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15225 as_fn_exit ()
15226 {
15227 set +e
15228 as_fn_set_status $1
15229 exit $1
15230 } # as_fn_exit
15231
15232 # as_fn_unset VAR
15233 # ---------------
15234 # Portably unset VAR.
15235 as_fn_unset ()
15236 {
15237 { eval $1=; unset $1;}
15238 }
15239 as_unset=as_fn_unset
15240 # as_fn_append VAR VALUE
15241 # ----------------------
15242 # Append the text in VALUE to the end of the definition contained in VAR. Take
15243 # advantage of any shell optimizations that allow amortized linear growth over
15244 # repeated appends, instead of the typical quadratic growth present in naive
15245 # implementations.
15246 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15247 eval 'as_fn_append ()
15248 {
15249 eval $1+=\$2
15250 }'
15251 else
15252 as_fn_append ()
15253 {
15254 eval $1=\$$1\$2
15255 }
15256 fi # as_fn_append
15257
15258 # as_fn_arith ARG...
15259 # ------------------
15260 # Perform arithmetic evaluation on the ARGs, and store the result in the
15261 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15262 # must be portable across $(()) and expr.
15263 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15264 eval 'as_fn_arith ()
15265 {
15266 as_val=$(( $* ))
15267 }'
15268 else
15269 as_fn_arith ()
15270 {
15271 as_val=`expr "$@" || test $? -eq 1`
15272 }
15273 fi # as_fn_arith
15274
15275
15276 if expr a : '\(a\)' >/dev/null 2>&1 &&
15277 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15278 as_expr=expr
15279 else
15280 as_expr=false
15281 fi
15282
15283 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15284 as_basename=basename
15285 else
15286 as_basename=false
15287 fi
15288
15289 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15290 as_dirname=dirname
15291 else
15292 as_dirname=false
15293 fi
15294
15295 as_me=`$as_basename -- "$0" ||
15296 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15297 X"$0" : 'X\(//\)$' \| \
15298 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15299 $as_echo X/"$0" |
15300 sed '/^.*\/\([^/][^/]*\)\/*$/{
15301 s//\1/
15302 q
15303 }
15304 /^X\/\(\/\/\)$/{
15305 s//\1/
15306 q
15307 }
15308 /^X\/\(\/\).*/{
15309 s//\1/
15310 q
15311 }
15312 s/.*/./; q'`
15313
15314 # Avoid depending upon Character Ranges.
15315 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15316 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15317 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15318 as_cr_digits='0123456789'
15319 as_cr_alnum=$as_cr_Letters$as_cr_digits
15320
15321 ECHO_C= ECHO_N= ECHO_T=
15322 case `echo -n x` in #(((((
15323 -n*)
15324 case `echo 'xy\c'` in
15325 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15326 xy) ECHO_C='\c';;
15327 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15328 ECHO_T=' ';;
15329 esac;;
15330 *)
15331 ECHO_N='-n';;
15332 esac
15333
15334 rm -f conf$$ conf$$.exe conf$$.file
15335 if test -d conf$$.dir; then
15336 rm -f conf$$.dir/conf$$.file
15337 else
15338 rm -f conf$$.dir
15339 mkdir conf$$.dir 2>/dev/null
15340 fi
15341 if (echo >conf$$.file) 2>/dev/null; then
15342 if ln -s conf$$.file conf$$ 2>/dev/null; then
15343 as_ln_s='ln -s'
15344 # ... but there are two gotchas:
15345 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15346 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15347 # In both cases, we have to default to `cp -pR'.
15348 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15349 as_ln_s='cp -pR'
15350 elif ln conf$$.file conf$$ 2>/dev/null; then
15351 as_ln_s=ln
15352 else
15353 as_ln_s='cp -pR'
15354 fi
15355 else
15356 as_ln_s='cp -pR'
15357 fi
15358 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15359 rmdir conf$$.dir 2>/dev/null
15360
15361
15362 # as_fn_mkdir_p
15363 # -------------
15364 # Create "$as_dir" as a directory, including parents if necessary.
15365 as_fn_mkdir_p ()
15366 {
15367
15368 case $as_dir in #(
15369 -*) as_dir=./$as_dir;;
15370 esac
15371 test -d "$as_dir" || eval $as_mkdir_p || {
15372 as_dirs=
15373 while :; do
15374 case $as_dir in #(
15375 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15376 *) as_qdir=$as_dir;;
15377 esac
15378 as_dirs="'$as_qdir' $as_dirs"
15379 as_dir=`$as_dirname -- "$as_dir" ||
15380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15381 X"$as_dir" : 'X\(//\)[^/]' \| \
15382 X"$as_dir" : 'X\(//\)$' \| \
15383 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15384 $as_echo X"$as_dir" |
15385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15386 s//\1/
15387 q
15388 }
15389 /^X\(\/\/\)[^/].*/{
15390 s//\1/
15391 q
15392 }
15393 /^X\(\/\/\)$/{
15394 s//\1/
15395 q
15396 }
15397 /^X\(\/\).*/{
15398 s//\1/
15399 q
15400 }
15401 s/.*/./; q'`
15402 test -d "$as_dir" && break
15403 done
15404 test -z "$as_dirs" || eval "mkdir $as_dirs"
15405 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15406
15407
15408 } # as_fn_mkdir_p
15409 if mkdir -p . 2>/dev/null; then
15410 as_mkdir_p='mkdir -p "$as_dir"'
15411 else
15412 test -d ./-p && rmdir ./-p
15413 as_mkdir_p=false
15414 fi
15415
15416
15417 # as_fn_executable_p FILE
15418 # -----------------------
15419 # Test if FILE is an executable regular file.
15420 as_fn_executable_p ()
15421 {
15422 test -f "$1" && test -x "$1"
15423 } # as_fn_executable_p
15424 as_test_x='test -x'
15425 as_executable_p=as_fn_executable_p
15426
15427 # Sed expression to map a string onto a valid CPP name.
15428 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15429
15430 # Sed expression to map a string onto a valid variable name.
15431 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15432
15433
15434 exec 6>&1
15435 ## ----------------------------------- ##
15436 ## Main body of $CONFIG_STATUS script. ##
15437 ## ----------------------------------- ##
15438 _ASEOF
15439 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15440
15441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15442 # Save the log message, to keep $0 and so on meaningful, and to
15443 # report actual input values of CONFIG_FILES etc. instead of their
15444 # values after options handling.
15445 ac_log="
15446 This file was extended by opus $as_me 1.3, which was
15447 generated by GNU Autoconf 2.69. Invocation command line was
15448
15449 CONFIG_FILES = $CONFIG_FILES
15450 CONFIG_HEADERS = $CONFIG_HEADERS
15451 CONFIG_LINKS = $CONFIG_LINKS
15452 CONFIG_COMMANDS = $CONFIG_COMMANDS
15453 $ $0 $@
15454
15455 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15456 "
15457
15458 _ACEOF
15459
15460 case $ac_config_files in *"
15461 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15462 esac
15463
15464 case $ac_config_headers in *"
15465 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15466 esac
15467
15468
15469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15470 # Files that config.status was made for.
15471 config_files="$ac_config_files"
15472 config_headers="$ac_config_headers"
15473 config_commands="$ac_config_commands"
15474
15475 _ACEOF
15476
15477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15478 ac_cs_usage="\
15479 \`$as_me' instantiates files and other configuration actions
15480 from templates according to the current configuration. Unless the files
15481 and actions are specified as TAGs, all are instantiated by default.
15482
15483 Usage: $0 [OPTION]... [TAG]...
15484
15485 -h, --help print this help, then exit
15486 -V, --version print version number and configuration settings, then exit
15487 --config print configuration, then exit
15488 -q, --quiet, --silent
15489 do not print progress messages
15490 -d, --debug don't remove temporary files
15491 --recheck update $as_me by reconfiguring in the same conditions
15492 --file=FILE[:TEMPLATE]
15493 instantiate the configuration file FILE
15494 --header=FILE[:TEMPLATE]
15495 instantiate the configuration header FILE
15496
15497 Configuration files:
15498 $config_files
15499
15500 Configuration headers:
15501 $config_headers
15502
15503 Configuration commands:
15504 $config_commands
15505
15506 Report bugs to <opus@xiph.org>."
15507
15508 _ACEOF
15509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15510 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15511 ac_cs_version="\\
15512 opus config.status 1.3
15513 configured by $0, generated by GNU Autoconf 2.69,
15514 with options \\"\$ac_cs_config\\"
15515
15516 Copyright (C) 2012 Free Software Foundation, Inc.
15517 This config.status script is free software; the Free Software Foundation
15518 gives unlimited permission to copy, distribute and modify it."
15519
15520 ac_pwd='$ac_pwd'
15521 srcdir='$srcdir'
15522 INSTALL='$INSTALL'
15523 MKDIR_P='$MKDIR_P'
15524 AWK='$AWK'
15525 test -n "\$AWK" || AWK=awk
15526 _ACEOF
15527
15528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15529 # The default lists apply if the user does not specify any file.
15530 ac_need_defaults=:
15531 while test $# != 0
15532 do
15533 case $1 in
15534 --*=?*)
15535 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15536 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15537 ac_shift=:
15538 ;;
15539 --*=)
15540 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15541 ac_optarg=
15542 ac_shift=:
15543 ;;
15544 *)
15545 ac_option=$1
15546 ac_optarg=$2
15547 ac_shift=shift
15548 ;;
15549 esac
15550
15551 case $ac_option in
15552 # Handling of the options.
15553 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15554 ac_cs_recheck=: ;;
15555 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15556 $as_echo "$ac_cs_version"; exit ;;
15557 --config | --confi | --conf | --con | --co | --c )
15558 $as_echo "$ac_cs_config"; exit ;;
15559 --debug | --debu | --deb | --de | --d | -d )
15560 debug=: ;;
15561 --file | --fil | --fi | --f )
15562 $ac_shift
15563 case $ac_optarg in
15564 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15565 '') as_fn_error $? "missing file argument" ;;
15566 esac
15567 as_fn_append CONFIG_FILES " '$ac_optarg'"
15568 ac_need_defaults=false;;
15569 --header | --heade | --head | --hea )
15570 $ac_shift
15571 case $ac_optarg in
15572 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15573 esac
15574 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15575 ac_need_defaults=false;;
15576 --he | --h)
15577 # Conflict between --help and --header
15578 as_fn_error $? "ambiguous option: \`$1'
15579 Try \`$0 --help' for more information.";;
15580 --help | --hel | -h )
15581 $as_echo "$ac_cs_usage"; exit ;;
15582 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15583 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15584 ac_cs_silent=: ;;
15585
15586 # This is an error.
15587 -*) as_fn_error $? "unrecognized option: \`$1'
15588 Try \`$0 --help' for more information." ;;
15589
15590 *) as_fn_append ac_config_targets " $1"
15591 ac_need_defaults=false ;;
15592
15593 esac
15594 shift
15595 done
15596
15597 ac_configure_extra_args=
15598
15599 if $ac_cs_silent; then
15600 exec 6>/dev/null
15601 ac_configure_extra_args="$ac_configure_extra_args --silent"
15602 fi
15603
15604 _ACEOF
15605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15606 if \$ac_cs_recheck; then
15607 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15608 shift
15609 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15610 CONFIG_SHELL='$SHELL'
15611 export CONFIG_SHELL
15612 exec "\$@"
15613 fi
15614
15615 _ACEOF
15616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15617 exec 5>>config.log
15618 {
15619 echo
15620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15621 ## Running $as_me. ##
15622 _ASBOX
15623 $as_echo "$ac_log"
15624 } >&5
15625
15626 _ACEOF
15627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15628 #
15629 # INIT-COMMANDS
15630 #
15631 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15632
15633
15634 # The HP-UX ksh and POSIX shell print the target directory to stdout
15635 # if CDPATH is set.
15636 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15637
15638 sed_quote_subst='$sed_quote_subst'
15639 double_quote_subst='$double_quote_subst'
15640 delay_variable_subst='$delay_variable_subst'
15641 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15642 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15643 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15644 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15645 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15646 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15647 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15648 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15649 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15650 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15651 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15652 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15653 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15654 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15655 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15656 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15657 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15658 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15659 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15660 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15661 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15662 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15663 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15664 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15665 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15666 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15667 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15668 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15669 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15670 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15671 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15672 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15673 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15674 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15675 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15676 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15677 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15678 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15679 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15680 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15681 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15682 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15683 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15684 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15685 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15686 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15687 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15688 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15689 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15690 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15691 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15692 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15693 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15694 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15695 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15696 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15697 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15698 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15699 lt_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"`'
15700 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15701 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15702 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15703 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15704 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15705 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15706 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15707 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15708 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15709 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15710 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15711 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15712 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15713 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15714 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15715 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15716 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15717 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15718 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15719 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15720 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15721 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15722 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15723 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15724 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15725 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15726 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15727 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15728 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15729 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15730 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15731 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15732 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15733 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15734 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15735 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15736 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15737 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15738 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15739 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15740 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15741 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15742 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15743 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15744 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15745 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15746 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15747 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15748 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15749 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15750 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15751 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15752 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15753 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15754 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15755 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15756 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15757 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15758 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15759 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15760 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15761 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15762 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15763 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15764 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15765 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15766 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15767 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15768 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15769 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15770 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15771 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15772 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15773 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15774 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15775 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15776
15777 LTCC='$LTCC'
15778 LTCFLAGS='$LTCFLAGS'
15779 compiler='$compiler_DEFAULT'
15780
15781 # A function that is used when there is no print builtin or printf.
15782 func_fallback_echo ()
15783 {
15784 eval 'cat <<_LTECHO_EOF
15785 \$1
15786 _LTECHO_EOF'
15787 }
15788
15789 # Quote evaled strings.
15790 for var in SHELL \
15791 ECHO \
15792 PATH_SEPARATOR \
15793 SED \
15794 GREP \
15795 EGREP \
15796 FGREP \
15797 LD \
15798 NM \
15799 LN_S \
15800 lt_SP2NL \
15801 lt_NL2SP \
15802 reload_flag \
15803 OBJDUMP \
15804 deplibs_check_method \
15805 file_magic_cmd \
15806 file_magic_glob \
15807 want_nocaseglob \
15808 DLLTOOL \
15809 sharedlib_from_linklib_cmd \
15810 AR \
15811 AR_FLAGS \
15812 archiver_list_spec \
15813 STRIP \
15814 RANLIB \
15815 CC \
15816 CFLAGS \
15817 compiler \
15818 lt_cv_sys_global_symbol_pipe \
15819 lt_cv_sys_global_symbol_to_cdecl \
15820 lt_cv_sys_global_symbol_to_import \
15821 lt_cv_sys_global_symbol_to_c_name_address \
15822 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15823 lt_cv_nm_interface \
15824 nm_file_list_spec \
15825 lt_cv_truncate_bin \
15826 lt_prog_compiler_no_builtin_flag \
15827 lt_prog_compiler_pic \
15828 lt_prog_compiler_wl \
15829 lt_prog_compiler_static \
15830 lt_cv_prog_compiler_c_o \
15831 need_locks \
15832 MANIFEST_TOOL \
15833 DSYMUTIL \
15834 NMEDIT \
15835 LIPO \
15836 OTOOL \
15837 OTOOL64 \
15838 shrext_cmds \
15839 export_dynamic_flag_spec \
15840 whole_archive_flag_spec \
15841 compiler_needs_object \
15842 with_gnu_ld \
15843 allow_undefined_flag \
15844 no_undefined_flag \
15845 hardcode_libdir_flag_spec \
15846 hardcode_libdir_separator \
15847 exclude_expsyms \
15848 include_expsyms \
15849 file_list_spec \
15850 variables_saved_for_relink \
15851 libname_spec \
15852 library_names_spec \
15853 soname_spec \
15854 install_override_mode \
15855 finish_eval \
15856 old_striplib \
15857 striplib; do
15858 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15859 *[\\\\\\\`\\"\\\$]*)
15860 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15861 ;;
15862 *)
15863 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15864 ;;
15865 esac
15866 done
15867
15868 # Double-quote double-evaled strings.
15869 for var in reload_cmds \
15870 old_postinstall_cmds \
15871 old_postuninstall_cmds \
15872 old_archive_cmds \
15873 extract_expsyms_cmds \
15874 old_archive_from_new_cmds \
15875 old_archive_from_expsyms_cmds \
15876 archive_cmds \
15877 archive_expsym_cmds \
15878 module_cmds \
15879 module_expsym_cmds \
15880 export_symbols_cmds \
15881 prelink_cmds \
15882 postlink_cmds \
15883 postinstall_cmds \
15884 postuninstall_cmds \
15885 finish_cmds \
15886 sys_lib_search_path_spec \
15887 configure_time_dlsearch_path \
15888 configure_time_lt_sys_library_path; do
15889 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15890 *[\\\\\\\`\\"\\\$]*)
15891 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15892 ;;
15893 *)
15894 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15895 ;;
15896 esac
15897 done
15898
15899 ac_aux_dir='$ac_aux_dir'
15900
15901 # See if we are running on zsh, and set the options that allow our
15902 # commands through without removal of \ escapes INIT.
15903 if test -n "\${ZSH_VERSION+set}"; then
15904 setopt NO_GLOB_SUBST
15905 fi
15906
15907
15908 PACKAGE='$PACKAGE'
15909 VERSION='$VERSION'
15910 RM='$RM'
15911 ofile='$ofile'
15912
15913
15914
15915
15916 _ACEOF
15917
15918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15919
15920 # Handling of arguments.
15921 for ac_config_target in $ac_config_targets
15922 do
15923 case $ac_config_target in
15924 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15925 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15926 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15927 "opus.pc") CONFIG_FILES="$CONFIG_FILES opus.pc" ;;
15928 "opus-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opus-uninstalled.pc" ;;
15929 "celt/arm/armopts.s") CONFIG_FILES="$CONFIG_FILES celt/arm/armopts.s" ;;
15930 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15931 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
15932 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15933
15934 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15935 esac
15936 done
15937
15938
15939 # If the user did not use the arguments to specify the items to instantiate,
15940 # then the envvar interface is used. Set only those that are not.
15941 # We use the long form for the default assignment because of an extremely
15942 # bizarre bug on SunOS 4.1.3.
15943 if $ac_need_defaults; then
15944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15947 fi
15948
15949 # Have a temporary directory for convenience. Make it in the build tree
15950 # simply because there is no reason against having it here, and in addition,
15951 # creating and moving files from /tmp can sometimes cause problems.
15952 # Hook for its removal unless debugging.
15953 # Note that there is a small window in which the directory will not be cleaned:
15954 # after its creation but before its name has been assigned to `$tmp'.
15955 $debug ||
15956 {
15957 tmp= ac_tmp=
15958 trap 'exit_status=$?
15959 : "${ac_tmp:=$tmp}"
15960 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15961 ' 0
15962 trap 'as_fn_exit 1' 1 2 13 15
15963 }
15964 # Create a (secure) tmp directory for tmp files.
15965
15966 {
15967 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15968 test -d "$tmp"
15969 } ||
15970 {
15971 tmp=./conf$$-$RANDOM
15972 (umask 077 && mkdir "$tmp")
15973 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15974 ac_tmp=$tmp
15975
15976 # Set up the scripts for CONFIG_FILES section.
15977 # No need to generate them if there are no CONFIG_FILES.
15978 # This happens for instance with `./config.status config.h'.
15979 if test -n "$CONFIG_FILES"; then
15980
15981
15982 ac_cr=`echo X | tr X '\015'`
15983 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15984 # But we know of no other shell where ac_cr would be empty at this
15985 # point, so we can use a bashism as a fallback.
15986 if test "x$ac_cr" = x; then
15987 eval ac_cr=\$\'\\r\'
15988 fi
15989 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15990 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15991 ac_cs_awk_cr='\\r'
15992 else
15993 ac_cs_awk_cr=$ac_cr
15994 fi
15995
15996 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15997 _ACEOF
15998
15999
16000 {
16001 echo "cat >conf$$subs.awk <<_ACEOF" &&
16002 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16003 echo "_ACEOF"
16004 } >conf$$subs.sh ||
16005 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16006 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16007 ac_delim='%!_!# '
16008 for ac_last_try in false false false false false :; do
16009 . ./conf$$subs.sh ||
16010 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16011
16012 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16013 if test $ac_delim_n = $ac_delim_num; then
16014 break
16015 elif $ac_last_try; then
16016 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16017 else
16018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16019 fi
16020 done
16021 rm -f conf$$subs.sh
16022
16023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16024 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16025 _ACEOF
16026 sed -n '
16027 h
16028 s/^/S["/; s/!.*/"]=/
16029 p
16030 g
16031 s/^[^!]*!//
16032 :repl
16033 t repl
16034 s/'"$ac_delim"'$//
16035 t delim
16036 :nl
16037 h
16038 s/\(.\{148\}\)..*/\1/
16039 t more1
16040 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16041 p
16042 n
16043 b repl
16044 :more1
16045 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16046 p
16047 g
16048 s/.\{148\}//
16049 t nl
16050 :delim
16051 h
16052 s/\(.\{148\}\)..*/\1/
16053 t more2
16054 s/["\\]/\\&/g; s/^/"/; s/$/"/
16055 p
16056 b
16057 :more2
16058 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16059 p
16060 g
16061 s/.\{148\}//
16062 t delim
16063 ' <conf$$subs.awk | sed '
16064 /^[^""]/{
16065 N
16066 s/\n//
16067 }
16068 ' >>$CONFIG_STATUS || ac_write_fail=1
16069 rm -f conf$$subs.awk
16070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16071 _ACAWK
16072 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16073 for (key in S) S_is_set[key] = 1
16074 FS = ""
16075
16076 }
16077 {
16078 line = $ 0
16079 nfields = split(line, field, "@")
16080 substed = 0
16081 len = length(field[1])
16082 for (i = 2; i < nfields; i++) {
16083 key = field[i]
16084 keylen = length(key)
16085 if (S_is_set[key]) {
16086 value = S[key]
16087 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16088 len += length(value) + length(field[++i])
16089 substed = 1
16090 } else
16091 len += 1 + keylen
16092 }
16093
16094 print line
16095 }
16096
16097 _ACAWK
16098 _ACEOF
16099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16100 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16101 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16102 else
16103 cat
16104 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16105 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16106 _ACEOF
16107
16108 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16109 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16110 # trailing colons and then remove the whole line if VPATH becomes empty
16111 # (actually we leave an empty line to preserve line numbers).
16112 if test "x$srcdir" = x.; then
16113 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16114 h
16115 s///
16116 s/^/:/
16117 s/[ ]*$/:/
16118 s/:\$(srcdir):/:/g
16119 s/:\${srcdir}:/:/g
16120 s/:@srcdir@:/:/g
16121 s/^:*//
16122 s/:*$//
16123 x
16124 s/\(=[ ]*\).*/\1/
16125 G
16126 s/\n//
16127 s/^[^=]*=[ ]*$//
16128 }'
16129 fi
16130
16131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16132 fi # test -n "$CONFIG_FILES"
16133
16134 # Set up the scripts for CONFIG_HEADERS section.
16135 # No need to generate them if there are no CONFIG_HEADERS.
16136 # This happens for instance with `./config.status Makefile'.
16137 if test -n "$CONFIG_HEADERS"; then
16138 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16139 BEGIN {
16140 _ACEOF
16141
16142 # Transform confdefs.h into an awk script `defines.awk', embedded as
16143 # here-document in config.status, that substitutes the proper values into
16144 # config.h.in to produce config.h.
16145
16146 # Create a delimiter string that does not exist in confdefs.h, to ease
16147 # handling of long lines.
16148 ac_delim='%!_!# '
16149 for ac_last_try in false false :; do
16150 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16151 if test -z "$ac_tt"; then
16152 break
16153 elif $ac_last_try; then
16154 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16155 else
16156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16157 fi
16158 done
16159
16160 # For the awk script, D is an array of macro values keyed by name,
16161 # likewise P contains macro parameters if any. Preserve backslash
16162 # newline sequences.
16163
16164 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16165 sed -n '
16166 s/.\{148\}/&'"$ac_delim"'/g
16167 t rset
16168 :rset
16169 s/^[ ]*#[ ]*define[ ][ ]*/ /
16170 t def
16171 d
16172 :def
16173 s/\\$//
16174 t bsnl
16175 s/["\\]/\\&/g
16176 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16177 D["\1"]=" \3"/p
16178 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16179 d
16180 :bsnl
16181 s/["\\]/\\&/g
16182 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16183 D["\1"]=" \3\\\\\\n"\\/p
16184 t cont
16185 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16186 t cont
16187 d
16188 :cont
16189 n
16190 s/.\{148\}/&'"$ac_delim"'/g
16191 t clear
16192 :clear
16193 s/\\$//
16194 t bsnlc
16195 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16196 d
16197 :bsnlc
16198 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16199 b cont
16200 ' <confdefs.h | sed '
16201 s/'"$ac_delim"'/"\\\
16202 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16203
16204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16205 for (key in D) D_is_set[key] = 1
16206 FS = ""
16207 }
16208 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16209 line = \$ 0
16210 split(line, arg, " ")
16211 if (arg[1] == "#") {
16212 defundef = arg[2]
16213 mac1 = arg[3]
16214 } else {
16215 defundef = substr(arg[1], 2)
16216 mac1 = arg[2]
16217 }
16218 split(mac1, mac2, "(") #)
16219 macro = mac2[1]
16220 prefix = substr(line, 1, index(line, defundef) - 1)
16221 if (D_is_set[macro]) {
16222 # Preserve the white space surrounding the "#".
16223 print prefix "define", macro P[macro] D[macro]
16224 next
16225 } else {
16226 # Replace #undef with comments. This is necessary, for example,
16227 # in the case of _POSIX_SOURCE, which is predefined and required
16228 # on some systems where configure will not decide to define it.
16229 if (defundef == "undef") {
16230 print "/*", prefix defundef, macro, "*/"
16231 next
16232 }
16233 }
16234 }
16235 { print }
16236 _ACAWK
16237 _ACEOF
16238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16239 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16240 fi # test -n "$CONFIG_HEADERS"
16241
16242
16243 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16244 shift
16245 for ac_tag
16246 do
16247 case $ac_tag in
16248 :[FHLC]) ac_mode=$ac_tag; continue;;
16249 esac
16250 case $ac_mode$ac_tag in
16251 :[FHL]*:*);;
16252 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16253 :[FH]-) ac_tag=-:-;;
16254 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16255 esac
16256 ac_save_IFS=$IFS
16257 IFS=:
16258 set x $ac_tag
16259 IFS=$ac_save_IFS
16260 shift
16261 ac_file=$1
16262 shift
16263
16264 case $ac_mode in
16265 :L) ac_source=$1;;
16266 :[FH])
16267 ac_file_inputs=
16268 for ac_f
16269 do
16270 case $ac_f in
16271 -) ac_f="$ac_tmp/stdin";;
16272 *) # Look for the file first in the build tree, then in the source tree
16273 # (if the path is not absolute). The absolute path cannot be DOS-style,
16274 # because $ac_f cannot contain `:'.
16275 test -f "$ac_f" ||
16276 case $ac_f in
16277 [\\/$]*) false;;
16278 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16279 esac ||
16280 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16281 esac
16282 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16283 as_fn_append ac_file_inputs " '$ac_f'"
16284 done
16285
16286 # Let's still pretend it is `configure' which instantiates (i.e., don't
16287 # use $as_me), people would be surprised to read:
16288 # /* config.h. Generated by config.status. */
16289 configure_input='Generated from '`
16290 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16291 `' by configure.'
16292 if test x"$ac_file" != x-; then
16293 configure_input="$ac_file. $configure_input"
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16295 $as_echo "$as_me: creating $ac_file" >&6;}
16296 fi
16297 # Neutralize special characters interpreted by sed in replacement strings.
16298 case $configure_input in #(
16299 *\&* | *\|* | *\\* )
16300 ac_sed_conf_input=`$as_echo "$configure_input" |
16301 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16302 *) ac_sed_conf_input=$configure_input;;
16303 esac
16304
16305 case $ac_tag in
16306 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16307 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16308 esac
16309 ;;
16310 esac
16311
16312 ac_dir=`$as_dirname -- "$ac_file" ||
16313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16314 X"$ac_file" : 'X\(//\)[^/]' \| \
16315 X"$ac_file" : 'X\(//\)$' \| \
16316 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16317 $as_echo X"$ac_file" |
16318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16319 s//\1/
16320 q
16321 }
16322 /^X\(\/\/\)[^/].*/{
16323 s//\1/
16324 q
16325 }
16326 /^X\(\/\/\)$/{
16327 s//\1/
16328 q
16329 }
16330 /^X\(\/\).*/{
16331 s//\1/
16332 q
16333 }
16334 s/.*/./; q'`
16335 as_dir="$ac_dir"; as_fn_mkdir_p
16336 ac_builddir=.
16337
16338 case "$ac_dir" in
16339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16340 *)
16341 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16342 # A ".." for each directory in $ac_dir_suffix.
16343 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16344 case $ac_top_builddir_sub in
16345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16347 esac ;;
16348 esac
16349 ac_abs_top_builddir=$ac_pwd
16350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16351 # for backward compatibility:
16352 ac_top_builddir=$ac_top_build_prefix
16353
16354 case $srcdir in
16355 .) # We are building in place.
16356 ac_srcdir=.
16357 ac_top_srcdir=$ac_top_builddir_sub
16358 ac_abs_top_srcdir=$ac_pwd ;;
16359 [\\/]* | ?:[\\/]* ) # Absolute name.
16360 ac_srcdir=$srcdir$ac_dir_suffix;
16361 ac_top_srcdir=$srcdir
16362 ac_abs_top_srcdir=$srcdir ;;
16363 *) # Relative name.
16364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16365 ac_top_srcdir=$ac_top_build_prefix$srcdir
16366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16367 esac
16368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16369
16370
16371 case $ac_mode in
16372 :F)
16373 #
16374 # CONFIG_FILE
16375 #
16376
16377 case $INSTALL in
16378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16379 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16380 esac
16381 ac_MKDIR_P=$MKDIR_P
16382 case $MKDIR_P in
16383 [\\/$]* | ?:[\\/]* ) ;;
16384 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16385 esac
16386 _ACEOF
16387
16388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16389 # If the template does not know about datarootdir, expand it.
16390 # FIXME: This hack should be removed a few years after 2.60.
16391 ac_datarootdir_hack=; ac_datarootdir_seen=
16392 ac_sed_dataroot='
16393 /datarootdir/ {
16394 p
16395 q
16396 }
16397 /@datadir@/p
16398 /@docdir@/p
16399 /@infodir@/p
16400 /@localedir@/p
16401 /@mandir@/p'
16402 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16403 *datarootdir*) ac_datarootdir_seen=yes;;
16404 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16406 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16407 _ACEOF
16408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16409 ac_datarootdir_hack='
16410 s&@datadir@&$datadir&g
16411 s&@docdir@&$docdir&g
16412 s&@infodir@&$infodir&g
16413 s&@localedir@&$localedir&g
16414 s&@mandir@&$mandir&g
16415 s&\\\${datarootdir}&$datarootdir&g' ;;
16416 esac
16417 _ACEOF
16418
16419 # Neutralize VPATH when `$srcdir' = `.'.
16420 # Shell code in configure.ac might set extrasub.
16421 # FIXME: do we really want to maintain this feature?
16422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16423 ac_sed_extra="$ac_vpsub
16424 $extrasub
16425 _ACEOF
16426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16427 :t
16428 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16429 s|@configure_input@|$ac_sed_conf_input|;t t
16430 s&@top_builddir@&$ac_top_builddir_sub&;t t
16431 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16432 s&@srcdir@&$ac_srcdir&;t t
16433 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16434 s&@top_srcdir@&$ac_top_srcdir&;t t
16435 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16436 s&@builddir@&$ac_builddir&;t t
16437 s&@abs_builddir@&$ac_abs_builddir&;t t
16438 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16439 s&@INSTALL@&$ac_INSTALL&;t t
16440 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16441 $ac_datarootdir_hack
16442 "
16443 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16444 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16445
16446 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16447 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16448 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16449 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16451 which seems to be undefined. Please make sure it is defined" >&5
16452 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16453 which seems to be undefined. Please make sure it is defined" >&2;}
16454
16455 rm -f "$ac_tmp/stdin"
16456 case $ac_file in
16457 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16458 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16459 esac \
16460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16461 ;;
16462 :H)
16463 #
16464 # CONFIG_HEADER
16465 #
16466 if test x"$ac_file" != x-; then
16467 {
16468 $as_echo "/* $configure_input */" \
16469 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16470 } >"$ac_tmp/config.h" \
16471 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16472 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16474 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16475 else
16476 rm -f "$ac_file"
16477 mv "$ac_tmp/config.h" "$ac_file" \
16478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16479 fi
16480 else
16481 $as_echo "/* $configure_input */" \
16482 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16483 || as_fn_error $? "could not create -" "$LINENO" 5
16484 fi
16485 # Compute "$ac_file"'s index in $config_headers.
16486 _am_arg="$ac_file"
16487 _am_stamp_count=1
16488 for _am_header in $config_headers :; do
16489 case $_am_header in
16490 $_am_arg | $_am_arg:* )
16491 break ;;
16492 * )
16493 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16494 esac
16495 done
16496 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16497 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16498 X"$_am_arg" : 'X\(//\)[^/]' \| \
16499 X"$_am_arg" : 'X\(//\)$' \| \
16500 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16501 $as_echo X"$_am_arg" |
16502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16503 s//\1/
16504 q
16505 }
16506 /^X\(\/\/\)[^/].*/{
16507 s//\1/
16508 q
16509 }
16510 /^X\(\/\/\)$/{
16511 s//\1/
16512 q
16513 }
16514 /^X\(\/\).*/{
16515 s//\1/
16516 q
16517 }
16518 s/.*/./; q'`/stamp-h$_am_stamp_count
16519 ;;
16520
16521 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16522 $as_echo "$as_me: executing $ac_file commands" >&6;}
16523 ;;
16524 esac
16525
16526
16527 case $ac_file$ac_mode in
16528 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16529 # Older Autoconf quotes --file arguments for eval, but not when files
16530 # are listed without --file. Let's play safe and only enable the eval
16531 # if we detect the quoting.
16532 case $CONFIG_FILES in
16533 *\'*) eval set x "$CONFIG_FILES" ;;
16534 *) set x $CONFIG_FILES ;;
16535 esac
16536 shift
16537 for mf
16538 do
16539 # Strip MF so we end up with the name of the file.
16540 mf=`echo "$mf" | sed -e 's/:.*$//'`
16541 # Check whether this is an Automake generated Makefile or not.
16542 # We used to match only the files named 'Makefile.in', but
16543 # some people rename them; so instead we look at the file content.
16544 # Grep'ing the first line is not enough: some people post-process
16545 # each Makefile.in and add a new line on top of each file to say so.
16546 # Grep'ing the whole file is not good either: AIX grep has a line
16547 # limit of 2048, but all sed's we know have understand at least 4000.
16548 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16549 dirpart=`$as_dirname -- "$mf" ||
16550 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16551 X"$mf" : 'X\(//\)[^/]' \| \
16552 X"$mf" : 'X\(//\)$' \| \
16553 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16554 $as_echo X"$mf" |
16555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16556 s//\1/
16557 q
16558 }
16559 /^X\(\/\/\)[^/].*/{
16560 s//\1/
16561 q
16562 }
16563 /^X\(\/\/\)$/{
16564 s//\1/
16565 q
16566 }
16567 /^X\(\/\).*/{
16568 s//\1/
16569 q
16570 }
16571 s/.*/./; q'`
16572 else
16573 continue
16574 fi
16575 # Extract the definition of DEPDIR, am__include, and am__quote
16576 # from the Makefile without running 'make'.
16577 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16578 test -z "$DEPDIR" && continue
16579 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16580 test -z "$am__include" && continue
16581 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16582 # Find all dependency output files, they are included files with
16583 # $(DEPDIR) in their names. We invoke sed twice because it is the
16584 # simplest approach to changing $(DEPDIR) to its actual value in the
16585 # expansion.
16586 for file in `sed -n "
16587 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16588 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16589 # Make sure the directory exists.
16590 test -f "$dirpart/$file" && continue
16591 fdir=`$as_dirname -- "$file" ||
16592 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16593 X"$file" : 'X\(//\)[^/]' \| \
16594 X"$file" : 'X\(//\)$' \| \
16595 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16596 $as_echo X"$file" |
16597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16598 s//\1/
16599 q
16600 }
16601 /^X\(\/\/\)[^/].*/{
16602 s//\1/
16603 q
16604 }
16605 /^X\(\/\/\)$/{
16606 s//\1/
16607 q
16608 }
16609 /^X\(\/\).*/{
16610 s//\1/
16611 q
16612 }
16613 s/.*/./; q'`
16614 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16615 # echo "creating $dirpart/$file"
16616 echo '# dummy' > "$dirpart/$file"
16617 done
16618 done
16619 }
16620 ;;
16621 "libtool":C)
16622
16623 # See if we are running on zsh, and set the options that allow our
16624 # commands through without removal of \ escapes.
16625 if test -n "${ZSH_VERSION+set}"; then
16626 setopt NO_GLOB_SUBST
16627 fi
16628
16629 cfgfile=${ofile}T
16630 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16631 $RM "$cfgfile"
16632
16633 cat <<_LT_EOF >> "$cfgfile"
16634 #! $SHELL
16635 # Generated automatically by $as_me ($PACKAGE) $VERSION
16636 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16637 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16638
16639 # Provide generalized library-building support services.
16640 # Written by Gordon Matzigkeit, 1996
16641
16642 # Copyright (C) 2014 Free Software Foundation, Inc.
16643 # This is free software; see the source for copying conditions. There is NO
16644 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16645
16646 # GNU Libtool is free software; you can redistribute it and/or modify
16647 # it under the terms of the GNU General Public License as published by
16648 # the Free Software Foundation; either version 2 of of the License, or
16649 # (at your option) any later version.
16650 #
16651 # As a special exception to the GNU General Public License, if you
16652 # distribute this file as part of a program or library that is built
16653 # using GNU Libtool, you may include this file under the same
16654 # distribution terms that you use for the rest of that program.
16655 #
16656 # GNU Libtool is distributed in the hope that it will be useful, but
16657 # WITHOUT ANY WARRANTY; without even the implied warranty of
16658 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16659 # GNU General Public License for more details.
16660 #
16661 # You should have received a copy of the GNU General Public License
16662 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16663
16664
16665 # The names of the tagged configurations supported by this script.
16666 available_tags=''
16667
16668 # Configured defaults for sys_lib_dlsearch_path munging.
16669 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16670
16671 # ### BEGIN LIBTOOL CONFIG
16672
16673 # Which release of libtool.m4 was used?
16674 macro_version=$macro_version
16675 macro_revision=$macro_revision
16676
16677 # Whether or not to build shared libraries.
16678 build_libtool_libs=$enable_shared
16679
16680 # Whether or not to build static libraries.
16681 build_old_libs=$enable_static
16682
16683 # What type of objects to build.
16684 pic_mode=$pic_mode
16685
16686 # Whether or not to optimize for fast installation.
16687 fast_install=$enable_fast_install
16688
16689 # Shared archive member basename,for filename based shared library versioning on AIX.
16690 shared_archive_member_spec=$shared_archive_member_spec
16691
16692 # Shell to use when invoking shell scripts.
16693 SHELL=$lt_SHELL
16694
16695 # An echo program that protects backslashes.
16696 ECHO=$lt_ECHO
16697
16698 # The PATH separator for the build system.
16699 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16700
16701 # The host system.
16702 host_alias=$host_alias
16703 host=$host
16704 host_os=$host_os
16705
16706 # The build system.
16707 build_alias=$build_alias
16708 build=$build
16709 build_os=$build_os
16710
16711 # A sed program that does not truncate output.
16712 SED=$lt_SED
16713
16714 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16715 Xsed="\$SED -e 1s/^X//"
16716
16717 # A grep program that handles long lines.
16718 GREP=$lt_GREP
16719
16720 # An ERE matcher.
16721 EGREP=$lt_EGREP
16722
16723 # A literal string matcher.
16724 FGREP=$lt_FGREP
16725
16726 # A BSD- or MS-compatible name lister.
16727 NM=$lt_NM
16728
16729 # Whether we need soft or hard links.
16730 LN_S=$lt_LN_S
16731
16732 # What is the maximum length of a command?
16733 max_cmd_len=$max_cmd_len
16734
16735 # Object file suffix (normally "o").
16736 objext=$ac_objext
16737
16738 # Executable file suffix (normally "").
16739 exeext=$exeext
16740
16741 # whether the shell understands "unset".
16742 lt_unset=$lt_unset
16743
16744 # turn spaces into newlines.
16745 SP2NL=$lt_lt_SP2NL
16746
16747 # turn newlines into spaces.
16748 NL2SP=$lt_lt_NL2SP
16749
16750 # convert \$build file names to \$host format.
16751 to_host_file_cmd=$lt_cv_to_host_file_cmd
16752
16753 # convert \$build files to toolchain format.
16754 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16755
16756 # An object symbol dumper.
16757 OBJDUMP=$lt_OBJDUMP
16758
16759 # Method to check whether dependent libraries are shared objects.
16760 deplibs_check_method=$lt_deplibs_check_method
16761
16762 # Command to use when deplibs_check_method = "file_magic".
16763 file_magic_cmd=$lt_file_magic_cmd
16764
16765 # How to find potential files when deplibs_check_method = "file_magic".
16766 file_magic_glob=$lt_file_magic_glob
16767
16768 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16769 want_nocaseglob=$lt_want_nocaseglob
16770
16771 # DLL creation program.
16772 DLLTOOL=$lt_DLLTOOL
16773
16774 # Command to associate shared and link libraries.
16775 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16776
16777 # The archiver.
16778 AR=$lt_AR
16779
16780 # Flags to create an archive.
16781 AR_FLAGS=$lt_AR_FLAGS
16782
16783 # How to feed a file listing to the archiver.
16784 archiver_list_spec=$lt_archiver_list_spec
16785
16786 # A symbol stripping program.
16787 STRIP=$lt_STRIP
16788
16789 # Commands used to install an old-style archive.
16790 RANLIB=$lt_RANLIB
16791 old_postinstall_cmds=$lt_old_postinstall_cmds
16792 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16793
16794 # Whether to use a lock for old archive extraction.
16795 lock_old_archive_extraction=$lock_old_archive_extraction
16796
16797 # A C compiler.
16798 LTCC=$lt_CC
16799
16800 # LTCC compiler flags.
16801 LTCFLAGS=$lt_CFLAGS
16802
16803 # Take the output of nm and produce a listing of raw symbols and C names.
16804 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16805
16806 # Transform the output of nm in a proper C declaration.
16807 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16808
16809 # Transform the output of nm into a list of symbols to manually relocate.
16810 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16811
16812 # Transform the output of nm in a C name address pair.
16813 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16814
16815 # Transform the output of nm in a C name address pair when lib prefix is needed.
16816 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16817
16818 # The name lister interface.
16819 nm_interface=$lt_lt_cv_nm_interface
16820
16821 # Specify filename containing input files for \$NM.
16822 nm_file_list_spec=$lt_nm_file_list_spec
16823
16824 # The root where to search for dependent libraries,and where our libraries should be installed.
16825 lt_sysroot=$lt_sysroot
16826
16827 # Command to truncate a binary pipe.
16828 lt_truncate_bin=$lt_lt_cv_truncate_bin
16829
16830 # The name of the directory that contains temporary libtool files.
16831 objdir=$objdir
16832
16833 # Used to examine libraries when file_magic_cmd begins with "file".
16834 MAGIC_CMD=$MAGIC_CMD
16835
16836 # Must we lock files when doing compilation?
16837 need_locks=$lt_need_locks
16838
16839 # Manifest tool.
16840 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16841
16842 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16843 DSYMUTIL=$lt_DSYMUTIL
16844
16845 # Tool to change global to local symbols on Mac OS X.
16846 NMEDIT=$lt_NMEDIT
16847
16848 # Tool to manipulate fat objects and archives on Mac OS X.
16849 LIPO=$lt_LIPO
16850
16851 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16852 OTOOL=$lt_OTOOL
16853
16854 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16855 OTOOL64=$lt_OTOOL64
16856
16857 # Old archive suffix (normally "a").
16858 libext=$libext
16859
16860 # Shared library suffix (normally ".so").
16861 shrext_cmds=$lt_shrext_cmds
16862
16863 # The commands to extract the exported symbol list from a shared archive.
16864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16865
16866 # Variables whose values should be saved in libtool wrapper scripts and
16867 # restored at link time.
16868 variables_saved_for_relink=$lt_variables_saved_for_relink
16869
16870 # Do we need the "lib" prefix for modules?
16871 need_lib_prefix=$need_lib_prefix
16872
16873 # Do we need a version for libraries?
16874 need_version=$need_version
16875
16876 # Library versioning type.
16877 version_type=$version_type
16878
16879 # Shared library runtime path variable.
16880 runpath_var=$runpath_var
16881
16882 # Shared library path variable.
16883 shlibpath_var=$shlibpath_var
16884
16885 # Is shlibpath searched before the hard-coded library search path?
16886 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16887
16888 # Format of library name prefix.
16889 libname_spec=$lt_libname_spec
16890
16891 # List of archive names. First name is the real one, the rest are links.
16892 # The last name is the one that the linker finds with -lNAME
16893 library_names_spec=$lt_library_names_spec
16894
16895 # The coded name of the library, if different from the real name.
16896 soname_spec=$lt_soname_spec
16897
16898 # Permission mode override for installation of shared libraries.
16899 install_override_mode=$lt_install_override_mode
16900
16901 # Command to use after installation of a shared archive.
16902 postinstall_cmds=$lt_postinstall_cmds
16903
16904 # Command to use after uninstallation of a shared archive.
16905 postuninstall_cmds=$lt_postuninstall_cmds
16906
16907 # Commands used to finish a libtool library installation in a directory.
16908 finish_cmds=$lt_finish_cmds
16909
16910 # As "finish_cmds", except a single script fragment to be evaled but
16911 # not shown.
16912 finish_eval=$lt_finish_eval
16913
16914 # Whether we should hardcode library paths into libraries.
16915 hardcode_into_libs=$hardcode_into_libs
16916
16917 # Compile-time system search path for libraries.
16918 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16919
16920 # Detected run-time system search path for libraries.
16921 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16922
16923 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16924 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16925
16926 # Whether dlopen is supported.
16927 dlopen_support=$enable_dlopen
16928
16929 # Whether dlopen of programs is supported.
16930 dlopen_self=$enable_dlopen_self
16931
16932 # Whether dlopen of statically linked programs is supported.
16933 dlopen_self_static=$enable_dlopen_self_static
16934
16935 # Commands to strip libraries.
16936 old_striplib=$lt_old_striplib
16937 striplib=$lt_striplib
16938
16939
16940 # The linker used to build libraries.
16941 LD=$lt_LD
16942
16943 # How to create reloadable object files.
16944 reload_flag=$lt_reload_flag
16945 reload_cmds=$lt_reload_cmds
16946
16947 # Commands used to build an old-style archive.
16948 old_archive_cmds=$lt_old_archive_cmds
16949
16950 # A language specific compiler.
16951 CC=$lt_compiler
16952
16953 # Is the compiler the GNU compiler?
16954 with_gcc=$GCC
16955
16956 # Compiler flag to turn off builtin functions.
16957 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16958
16959 # Additional compiler flags for building library objects.
16960 pic_flag=$lt_lt_prog_compiler_pic
16961
16962 # How to pass a linker flag through the compiler.
16963 wl=$lt_lt_prog_compiler_wl
16964
16965 # Compiler flag to prevent dynamic linking.
16966 link_static_flag=$lt_lt_prog_compiler_static
16967
16968 # Does compiler simultaneously support -c and -o options?
16969 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16970
16971 # Whether or not to add -lc for building shared libraries.
16972 build_libtool_need_lc=$archive_cmds_need_lc
16973
16974 # Whether or not to disallow shared libs when runtime libs are static.
16975 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16976
16977 # Compiler flag to allow reflexive dlopens.
16978 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16979
16980 # Compiler flag to generate shared objects directly from archives.
16981 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16982
16983 # Whether the compiler copes with passing no objects directly.
16984 compiler_needs_object=$lt_compiler_needs_object
16985
16986 # Create an old-style archive from a shared archive.
16987 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16988
16989 # Create a temporary old-style archive to link instead of a shared archive.
16990 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16991
16992 # Commands used to build a shared archive.
16993 archive_cmds=$lt_archive_cmds
16994 archive_expsym_cmds=$lt_archive_expsym_cmds
16995
16996 # Commands used to build a loadable module if different from building
16997 # a shared archive.
16998 module_cmds=$lt_module_cmds
16999 module_expsym_cmds=$lt_module_expsym_cmds
17000
17001 # Whether we are building with GNU ld or not.
17002 with_gnu_ld=$lt_with_gnu_ld
17003
17004 # Flag that allows shared libraries with undefined symbols to be built.
17005 allow_undefined_flag=$lt_allow_undefined_flag
17006
17007 # Flag that enforces no undefined symbols.
17008 no_undefined_flag=$lt_no_undefined_flag
17009
17010 # Flag to hardcode \$libdir into a binary during linking.
17011 # This must work even if \$libdir does not exist
17012 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17013
17014 # Whether we need a single "-rpath" flag with a separated argument.
17015 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17016
17017 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17018 # DIR into the resulting binary.
17019 hardcode_direct=$hardcode_direct
17020
17021 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17022 # DIR into the resulting binary and the resulting library dependency is
17023 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17024 # library is relocated.
17025 hardcode_direct_absolute=$hardcode_direct_absolute
17026
17027 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17028 # into the resulting binary.
17029 hardcode_minus_L=$hardcode_minus_L
17030
17031 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17032 # into the resulting binary.
17033 hardcode_shlibpath_var=$hardcode_shlibpath_var
17034
17035 # Set to "yes" if building a shared library automatically hardcodes DIR
17036 # into the library and all subsequent libraries and executables linked
17037 # against it.
17038 hardcode_automatic=$hardcode_automatic
17039
17040 # Set to yes if linker adds runtime paths of dependent libraries
17041 # to runtime path list.
17042 inherit_rpath=$inherit_rpath
17043
17044 # Whether libtool must link a program against all its dependency libraries.
17045 link_all_deplibs=$link_all_deplibs
17046
17047 # Set to "yes" if exported symbols are required.
17048 always_export_symbols=$always_export_symbols
17049
17050 # The commands to list exported symbols.
17051 export_symbols_cmds=$lt_export_symbols_cmds
17052
17053 # Symbols that should not be listed in the preloaded symbols.
17054 exclude_expsyms=$lt_exclude_expsyms
17055
17056 # Symbols that must always be exported.
17057 include_expsyms=$lt_include_expsyms
17058
17059 # Commands necessary for linking programs (against libraries) with templates.
17060 prelink_cmds=$lt_prelink_cmds
17061
17062 # Commands necessary for finishing linking programs.
17063 postlink_cmds=$lt_postlink_cmds
17064
17065 # Specify filename containing input files.
17066 file_list_spec=$lt_file_list_spec
17067
17068 # How to hardcode a shared library path into an executable.
17069 hardcode_action=$hardcode_action
17070
17071 # ### END LIBTOOL CONFIG
17072
17073 _LT_EOF
17074
17075 cat <<'_LT_EOF' >> "$cfgfile"
17076
17077 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17078
17079 # func_munge_path_list VARIABLE PATH
17080 # -----------------------------------
17081 # VARIABLE is name of variable containing _space_ separated list of
17082 # directories to be munged by the contents of PATH, which is string
17083 # having a format:
17084 # "DIR[:DIR]:"
17085 # string "DIR[ DIR]" will be prepended to VARIABLE
17086 # ":DIR[:DIR]"
17087 # string "DIR[ DIR]" will be appended to VARIABLE
17088 # "DIRP[:DIRP]::[DIRA:]DIRA"
17089 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17090 # "DIRA[ DIRA]" will be appended to VARIABLE
17091 # "DIR[:DIR]"
17092 # VARIABLE will be replaced by "DIR[ DIR]"
17093 func_munge_path_list ()
17094 {
17095 case x$2 in
17096 x)
17097 ;;
17098 *:)
17099 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17100 ;;
17101 x:*)
17102 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17103 ;;
17104 *::*)
17105 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17106 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17107 ;;
17108 *)
17109 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17110 ;;
17111 esac
17112 }
17113
17114
17115 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17116 func_cc_basename ()
17117 {
17118 for cc_temp in $*""; do
17119 case $cc_temp in
17120 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17121 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17122 \-*) ;;
17123 *) break;;
17124 esac
17125 done
17126 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17127 }
17128
17129
17130 # ### END FUNCTIONS SHARED WITH CONFIGURE
17131
17132 _LT_EOF
17133
17134 case $host_os in
17135 aix3*)
17136 cat <<\_LT_EOF >> "$cfgfile"
17137 # AIX sometimes has problems with the GCC collect2 program. For some
17138 # reason, if we set the COLLECT_NAMES environment variable, the problems
17139 # vanish in a puff of smoke.
17140 if test set != "${COLLECT_NAMES+set}"; then
17141 COLLECT_NAMES=
17142 export COLLECT_NAMES
17143 fi
17144 _LT_EOF
17145 ;;
17146 esac
17147
17148
17149 ltmain=$ac_aux_dir/ltmain.sh
17150
17151
17152 # We use sed instead of cat because bash on DJGPP gets confused if
17153 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17154 # text mode, it properly converts lines to CR/LF. This bash problem
17155 # is reportedly fixed, but why not run on old versions too?
17156 sed '$q' "$ltmain" >> "$cfgfile" \
17157 || (rm -f "$cfgfile"; exit 1)
17158
17159 mv -f "$cfgfile" "$ofile" ||
17160 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17161 chmod +x "$ofile"
17162
17163 ;;
17164
17165 esac
17166 done # for ac_tag
17167
17168
17169 as_fn_exit 0
17170 _ACEOF
17171 ac_clean_files=$ac_clean_files_save
17172
17173 test $ac_write_fail = 0 ||
17174 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17175
17176
17177 # configure is writing to config.log, and then calls config.status.
17178 # config.status does its own redirection, appending to config.log.
17179 # Unfortunately, on DOS this fails, as config.log is still kept open
17180 # by configure, so config.status won't be able to write to it; its
17181 # output is simply discarded. So we exec the FD to /dev/null,
17182 # effectively closing config.log, so it can be properly (re)opened and
17183 # appended to by config.status. When coming back to configure, we
17184 # need to make the FD available again.
17185 if test "$no_create" != yes; then
17186 ac_cs_success=:
17187 ac_config_status_args=
17188 test "$silent" = yes &&
17189 ac_config_status_args="$ac_config_status_args --quiet"
17190 exec 5>/dev/null
17191 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17192 exec 5>>config.log
17193 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17194 # would make configure fail if this is the last instruction.
17195 $ac_cs_success || as_fn_exit 1
17196 fi
17197 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17199 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17200 fi
17201
17202
17203 { $as_echo "$as_me:${as_lineno-$LINENO}:
17204 ------------------------------------------------------------------------
17205 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
17206
17207 Compiler support:
17208
17209 C99 var arrays: ................ ${has_var_arrays}
17210 C99 lrintf: .................... ${ac_cv_func_lrintf}
17211 Use alloca: .................... ${use_alloca}
17212
17213 General configuration:
17214
17215 Floating point support: ........ ${enable_float}
17216 Fast float approximations: ..... ${enable_float_approx}
17217 Fixed point debugging: ......... ${enable_fixed_point_debug}
17218 Inline Assembly Optimizations: . ${inline_optimization}
17219 External Assembly Optimizations: ${asm_optimization}
17220 Intrinsics Optimizations: ...... ${intrinsics_support}
17221 Run-time CPU detection: ........ ${rtcd_support}
17222 Custom modes: .................. ${enable_custom_modes}
17223 Assertion checking: ............ ${enable_assertions}
17224 Hardening: ..................... ${enable_hardening}
17225 Fuzzing: ....................... ${enable_fuzzing}
17226 Check ASM: ..................... ${enable_check_asm}
17227
17228 API documentation: ............. ${enable_doc}
17229 Extra programs: ................ ${enable_extra_programs}
17230 ------------------------------------------------------------------------
17231
17232 Type \"make; make install\" to compile and install
17233 Type \"make check\" to run the test suite
17234 " >&5
17235 $as_echo "$as_me:
17236 ------------------------------------------------------------------------
17237 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
17238
17239 Compiler support:
17240
17241 C99 var arrays: ................ ${has_var_arrays}
17242 C99 lrintf: .................... ${ac_cv_func_lrintf}
17243 Use alloca: .................... ${use_alloca}
17244
17245 General configuration:
17246
17247 Floating point support: ........ ${enable_float}
17248 Fast float approximations: ..... ${enable_float_approx}
17249 Fixed point debugging: ......... ${enable_fixed_point_debug}
17250 Inline Assembly Optimizations: . ${inline_optimization}
17251 External Assembly Optimizations: ${asm_optimization}
17252 Intrinsics Optimizations: ...... ${intrinsics_support}
17253 Run-time CPU detection: ........ ${rtcd_support}
17254 Custom modes: .................. ${enable_custom_modes}
17255 Assertion checking: ............ ${enable_assertions}
17256 Hardening: ..................... ${enable_hardening}
17257 Fuzzing: ....................... ${enable_fuzzing}
17258 Check ASM: ..................... ${enable_check_asm}
17259
17260 API documentation: ............. ${enable_doc}
17261 Extra programs: ................ ${enable_extra_programs}
17262 ------------------------------------------------------------------------
17263
17264 Type \"make; make install\" to compile and install
17265 Type \"make check\" to run the test suite
17266 " >&6;}
17267