Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: opus/configure

Issue 11196031: Add copy of opus library in deps/third_party. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « opus/config.h.in ('k') | opus/configure.ac » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:executable
+ *
OLDNEW
(Empty)
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # 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 n ame" >&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 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev /null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$ as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as _lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186 else
187 as_have_required=no
188 fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
200 /*)
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run =a "$as_shell"; } 2>/dev/null; then :
208 break 2
209 fi
210 fi
211 done;;
212 esac
213 as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHEL L"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251 fi
252 exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270 { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279 return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287 set +e
288 as_fn_set_status $1
289 exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)$/{
324 s//\1/
325 q
326 }
327 /^X\(\/\).*/{
328 s//\1/
329 q
330 }
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
347 {
348 eval $1+=\$2
349 }'
350 else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367 else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386 fi
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394 else
395 as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400 else
401 as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406 else
407 as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\/\)$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\).*/{
424 s//\1/
425 q
426 }
427 s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX s hell" >&2; as_fn_exit 1; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
477 *)
478 ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484 else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
501 fi
502 else
503 as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517 else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
522 fi
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
534 '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME=
569 PACKAGE_TARNAME=
570 PACKAGE_VERSION=
571 PACKAGE_STRING=
572 PACKAGE_BUGREPORT=
573 PACKAGE_URL=
574
575 ac_unique_file="src/opus_encoder.c"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 # include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 # include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611
612 ac_subst_vars='am__EXEEXT_FALSE
613 am__EXEEXT_TRUE
614 LTLIBOBJS
615 LIBOBJS
616 CUSTOM_MODES_FALSE
617 CUSTOM_MODES_TRUE
618 FIXED_POINT_FALSE
619 FIXED_POINT_TRUE
620 SIZE32
621 SIZE16
622 SYMBOL_VISIBILITY
623 HAVE_DOXYGEN_FALSE
624 HAVE_DOXYGEN_TRUE
625 HAVE_DOXYGEN
626 LIBM
627 CPP
628 OTOOL64
629 OTOOL
630 LIPO
631 NMEDIT
632 DSYMUTIL
633 MANIFEST_TOOL
634 RANLIB
635 ac_ct_AR
636 AR
637 DLLTOOL
638 OBJDUMP
639 LN_S
640 NM
641 ac_ct_DUMPBIN
642 DUMPBIN
643 LD
644 FGREP
645 EGREP
646 GREP
647 SED
648 am__fastdepCC_FALSE
649 am__fastdepCC_TRUE
650 CCDEPMODE
651 am__nodep
652 AMDEPBACKSLASH
653 AMDEP_FALSE
654 AMDEP_TRUE
655 am__quote
656 am__include
657 DEPDIR
658 OBJEXT
659 EXEEXT
660 ac_ct_CC
661 CPPFLAGS
662 LDFLAGS
663 CFLAGS
664 CC
665 LIBTOOL
666 host_os
667 host_vendor
668 host_cpu
669 host
670 build_os
671 build_vendor
672 build_cpu
673 build
674 MAINT
675 MAINTAINER_MODE_FALSE
676 MAINTAINER_MODE_TRUE
677 am__untar
678 am__tar
679 AMTAR
680 am__leading_dot
681 SET_MAKE
682 AWK
683 mkdir_p
684 MKDIR_P
685 INSTALL_STRIP_PROGRAM
686 STRIP
687 install_sh
688 MAKEINFO
689 AUTOHEADER
690 AUTOMAKE
691 AUTOCONF
692 ACLOCAL
693 VERSION
694 PACKAGE
695 CYGPATH_W
696 am__isrc
697 INSTALL_DATA
698 INSTALL_SCRIPT
699 INSTALL_PROGRAM
700 OPUS_LT_AGE
701 OPUS_LT_REVISION
702 OPUS_LT_CURRENT
703 OPUS_VERSION
704 AM_BACKSLASH
705 AM_DEFAULT_VERBOSITY
706 AM_DEFAULT_V
707 AM_V
708 target_alias
709 host_alias
710 build_alias
711 LIBS
712 ECHO_T
713 ECHO_N
714 ECHO_C
715 DEFS
716 mandir
717 localedir
718 libdir
719 psdir
720 pdfdir
721 dvidir
722 htmldir
723 infodir
724 docdir
725 oldincludedir
726 includedir
727 localstatedir
728 sharedstatedir
729 sysconfdir
730 datadir
731 datarootdir
732 libexecdir
733 sbindir
734 bindir
735 program_transform_name
736 prefix
737 exec_prefix
738 PACKAGE_URL
739 PACKAGE_BUGREPORT
740 PACKAGE_STRING
741 PACKAGE_VERSION
742 PACKAGE_TARNAME
743 PACKAGE_NAME
744 PATH_SEPARATOR
745 SHELL'
746 ac_subst_files=''
747 ac_user_opts='
748 enable_option_checking
749 enable_silent_rules
750 enable_maintainer_mode
751 enable_shared
752 enable_static
753 with_pic
754 enable_fast_install
755 enable_dependency_tracking
756 with_gnu_ld
757 with_sysroot
758 enable_libtool_lock
759 enable_fixed_point
760 enable_fixed_point_debug
761 enable_custom_modes
762 enable_float_approx
763 enable_assertions
764 enable_fuzzing
765 enable_doc
766 '
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CC
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
775 CPP'
776
777
778 # Initialize some variables set by options.
779 ac_init_help=
780 ac_init_version=false
781 ac_unrecognized_opts=
782 ac_unrecognized_sep=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
799
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
825
826 ac_prev=
827 ac_dashdash=
828 for ac_option
829 do
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
833 ac_prev=
834 continue
835 fi
836
837 case $ac_option in
838 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 *=) ac_optarg= ;;
840 *) ac_optarg=yes ;;
841 esac
842
843 # Accept the important Cygnus configure options, so we can diagnose typos.
844
845 case $ac_dashdash$ac_option in
846 --)
847 ac_dashdash=yes ;;
848
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 ac_prev=bindir ;;
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 bindir=$ac_optarg ;;
853
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
858
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
865
866 --config-cache | -C)
867 cache_file=config.cache ;;
868
869 -datadir | --datadir | --datadi | --datad)
870 ac_prev=datadir ;;
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
873
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
880
881 -disable-* | --disable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
889 *"
890 "enable_$ac_useropt"
891 "*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disabl e-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=no ;;
896
897 -docdir | --docdir | --docdi | --doc | --do)
898 ac_prev=docdir ;;
899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900 docdir=$ac_optarg ;;
901
902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903 ac_prev=dvidir ;;
904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905 dvidir=$ac_optarg ;;
906
907 -enable-* | --enable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
915 *"
916 "enable_$ac_useropt"
917 "*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable -$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=\$ac_optarg ;;
922
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
931
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
934 with_gas=yes ;;
935
936 -help | --help | --hel | --he | -h)
937 ac_init_help=long ;;
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
942
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
947
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 ac_prev=htmldir ;;
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 | --ht=*)
952 htmldir=$ac_optarg ;;
953
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
960
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 ac_prev=infodir ;;
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
965
966 -libdir | --libdir | --libdi | --libd)
967 ac_prev=libdir ;;
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
969 libdir=$ac_optarg ;;
970
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
977
978 -localedir | --localedir | --localedi | --localed | --locale)
979 ac_prev=localedir ;;
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
982
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
989
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 ac_prev=mandir ;;
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993 mandir=$ac_optarg ;;
994
995 -nfp | --nfp | --nf)
996 # Obsolete; use --without-fp.
997 with_fp=no ;;
998
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1001 no_create=yes ;;
1002
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 no_recursion=yes ;;
1006
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1015
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 ac_prev=prefix ;;
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1020
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1027
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1034
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1051
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 ac_prev=pdfdir ;;
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1056
1057 -psdir | --psdir | --psdi | --psd | --ps)
1058 ac_prev=psdir ;;
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 psdir=$ac_optarg ;;
1061
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 silent=yes ;;
1065
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 ac_prev=sbindir ;;
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 | --sbi=* | --sb=*)
1070 sbindir=$ac_optarg ;;
1071
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1075 | --sha | --sh)
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 | --sha=* | --sh=*)
1081 sharedstatedir=$ac_optarg ;;
1082
1083 -site | --site | --sit)
1084 ac_prev=site ;;
1085 -site=* | --site=* | --sit=*)
1086 site=$ac_optarg ;;
1087
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 ac_prev=srcdir ;;
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1092
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1099
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1104
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 verbose=yes ;;
1107
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1110
1111 -with-* | --with-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120 "with_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=\$ac_optarg ;;
1126
1127 -without-* | --without-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1135 *"
1136 "with_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--withou t-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval with_$ac_useropt=no ;;
1142
1143 --x)
1144 # Obsolete; use --with-x.
1145 with_x=yes ;;
1146
1147 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148 | --x-incl | --x-inc | --x-in | --x-i)
1149 ac_prev=x_includes ;;
1150 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152 x_includes=$ac_optarg ;;
1153
1154 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156 ac_prev=x_libraries ;;
1157 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159 x_libraries=$ac_optarg ;;
1160
1161 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162 Try \`$0 --help' for more information"
1163 ;;
1164
1165 *=*)
1166 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167 # Reject names that are not valid shell variable names.
1168 case $ac_envvar in #(
1169 '' | [0-9]* | *[!_$as_cr_alnum]* )
1170 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1171 esac
1172 eval $ac_envvar=\$ac_optarg
1173 export $ac_envvar ;;
1174
1175 *)
1176 # FIXME: should be removed in autoconf 3.0.
1177 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_opt ion}"
1181 ;;
1182
1183 esac
1184 done
1185
1186 if test -n "$ac_prev"; then
1187 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188 as_fn_error $? "missing argument to $ac_option"
1189 fi
1190
1191 if test -n "$ac_unrecognized_opts"; then
1192 case $enable_option_checking in
1193 no) ;;
1194 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1195 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opt s" >&2 ;;
1196 esac
1197 fi
1198
1199 # Check all directory arguments for consistency.
1200 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
1204 do
1205 eval ac_val=\$$ac_var
1206 # Remove trailing slashes.
1207 case $ac_val in
1208 */ )
1209 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210 eval $ac_var=\$ac_val;;
1211 esac
1212 # Be sure to have absolute directory names.
1213 case $ac_val in
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 esac
1217 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1232 If a cross compiler is detected then cross compile mode will be used" >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 as_fn_error $? "working directory cannot be determined"
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 as_fn_error $? "pwd does not report name of working directory"
1250
1251
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$as_myself" ||
1257 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$as_myself" : 'X\(//\)[^/]' \| \
1259 X"$as_myself" : 'X\(//\)$' \| \
1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261 $as_echo X"$as_myself" |
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
1279 srcdir=$ac_confdir
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 srcdir=..
1282 fi
1283 else
1284 ac_srcdir_defaulted=no
1285 fi
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1293 pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
1318 \`configure' configures this package to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking ...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1371 _ACEOF
1372
1373 cat <<\_ACEOF
1374
1375 Program names:
1376 --program-prefix=PREFIX prepend PREFIX to installed program names
1377 --program-suffix=SUFFIX append SUFFIX to installed program names
1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379
1380 System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 _ACEOF
1384 fi
1385
1386 if test -n "$ac_init_help"; then
1387
1388 cat <<\_ACEOF
1389
1390 Optional Features:
1391 --disable-option-checking ignore unrecognized --enable/--with options
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-silent-rules less verbose build output (undo: `make V=1')
1395 --disable-silent-rules verbose build output (undo: `make V=0')
1396 --enable-maintainer-mode enable make rules and dependencies not useful
1397 (and sometimes confusing) to the casual installer
1398 --enable-shared[=PKGS] build shared libraries [default=yes]
1399 --enable-static[=PKGS] build static libraries [default=yes]
1400 --enable-fast-install[=PKGS]
1401 optimize for fast installation [default=yes]
1402 --disable-dependency-tracking speeds up one-time build
1403 --enable-dependency-tracking do not reject slow dependency extractors
1404 --disable-libtool-lock avoid locking (might break parallel builds)
1405 --enable-fixed-point compile without floating point (for machines withou t a fast enough FPU)
1406 --enable-fixed-point-debug debug fixed-point implementation
1407 --enable-custom-modes enable non-Opus modes, e.g. 44.1 kHz & 2^n frames
1408 --enable-float-approx enable fast approximations for floating point
1409 --enable-assertions enable additional software error checking
1410 --enable-fuzzing causes the encoder to make random decisions
1411 --disable-doc Do not build API documentation
1412
1413 Optional Packages:
1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1416 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1417 both]
1418 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1419 --with-sysroot=DIR Search for dependent libraries within DIR
1420 (or the compiler's sysroot if not specified).
1421
1422 Some influential environment variables:
1423 CC C compiler command
1424 CFLAGS C compiler flags
1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1426 nonstandard directory <lib dir>
1427 LIBS libraries to pass to the linker, e.g. -l<library>
1428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1429 you have headers in a nonstandard directory <include dir>
1430 CPP C preprocessor
1431
1432 Use these variables to override the choices made by `configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1434
1435 Report bugs to the package provider.
1436 _ACEOF
1437 ac_status=$?
1438 fi
1439
1440 if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" ||
1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445 continue
1446 ac_builddir=.
1447
1448 case "$ac_dir" in
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *)
1451 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457 esac ;;
1458 esac
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1463
1464 case $srcdir in
1465 .) # We are building in place.
1466 ac_srcdir=.
1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
1470 ac_srcdir=$srcdir$ac_dir_suffix;
1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1473 *) # Relative name.
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477 esac
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for guested configure.
1482 if test -f "$ac_srcdir/configure.gnu"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485 elif test -f "$ac_srcdir/configure"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure" --help=recursive
1488 else
1489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490 fi || ac_status=$?
1491 cd "$ac_pwd" || { ac_status=$?; break; }
1492 done
1493 fi
1494
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1497 cat <<\_ACEOF
1498 configure
1499 generated by GNU Autoconf 2.68
1500
1501 Copyright (C) 2010 Free Software Foundation, Inc.
1502 This configure script is free software; the Free Software Foundation
1503 gives unlimited permission to copy, distribute and modify it.
1504 _ACEOF
1505 exit
1506 fi
1507
1508 ## ------------------------ ##
1509 ## Autoconf initialization. ##
1510 ## ------------------------ ##
1511
1512 # ac_fn_c_try_compile LINENO
1513 # --------------------------
1514 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1515 ac_fn_c_try_compile ()
1516 {
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 rm -f conftest.$ac_objext
1519 if { { ac_try="$ac_compile"
1520 case "(($ac_try" in
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1523 esac
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_compile") 2>conftest.err
1527 ac_status=$?
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1532 fi
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && {
1535 test -z "$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 } && test -s conftest.$ac_objext; then :
1538 ac_retval=0
1539 else
1540 $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1542
1543 ac_retval=1
1544 fi
1545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1546 as_fn_set_status $ac_retval
1547
1548 } # ac_fn_c_try_compile
1549
1550 # ac_fn_c_try_link LINENO
1551 # -----------------------
1552 # Try to link conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_link ()
1554 {
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext conftest$ac_exeext
1557 if { { ac_try="$ac_link"
1558 case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_link") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest$ac_exeext && {
1576 test "$cross_compiling" = yes ||
1577 $as_test_x conftest$ac_exeext
1578 }; then :
1579 ac_retval=0
1580 else
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1
1585 fi
1586 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588 # interfere with the next link command; also delete a directory that is
1589 # left behind by Apple's compiler. We do this before executing the actions.
1590 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1593
1594 } # ac_fn_c_try_link
1595
1596 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1597 # -------------------------------------------------------
1598 # Tests whether HEADER exists and can be compiled using the include files in
1599 # INCLUDES, setting the cache variable VAR accordingly.
1600 ac_fn_c_check_header_compile ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if eval \${$3+:} false; then :
1606 $as_echo_n "(cached) " >&6
1607 else
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1610 $4
1611 #include <$2>
1612 _ACEOF
1613 if ac_fn_c_try_compile "$LINENO"; then :
1614 eval "$3=yes"
1615 else
1616 eval "$3=no"
1617 fi
1618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619 fi
1620 eval ac_res=\$$3
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622 $as_echo "$ac_res" >&6; }
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624
1625 } # ac_fn_c_check_header_compile
1626
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_cpp ()
1631 {
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } > conftest.i && {
1649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 }; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_cpp
1663
1664 # ac_fn_c_try_run LINENO
1665 # ----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667 # that executables *can* be run.
1668 ac_fn_c_try_run ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>&5
1679 ac_status=$?
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682 { { case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_try") 2>&5
1689 ac_status=$?
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; }; }; then :
1692 ac_retval=0
1693 else
1694 $as_echo "$as_me: program exited with status $ac_status" >&5
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=$ac_status
1699 fi
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_run
1705
1706 # ac_fn_c_check_func LINENO FUNC VAR
1707 # ----------------------------------
1708 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1709 ac_fn_c_check_func ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1716 else
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1719 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1721 #define $2 innocuous_$2
1722
1723 /* System header to define __stub macros and hopefully few prototypes,
1724 which can conflict with char $2 (); below.
1725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1726 <limits.h> exists even on freestanding compilers. */
1727
1728 #ifdef __STDC__
1729 # include <limits.h>
1730 #else
1731 # include <assert.h>
1732 #endif
1733
1734 #undef $2
1735
1736 /* Override any GCC internal prototype to avoid an error.
1737 Use char because int might match the return type of a GCC
1738 builtin and then its argument prototype would still apply. */
1739 #ifdef __cplusplus
1740 extern "C"
1741 #endif
1742 char $2 ();
1743 /* The GNU C library defines this for functions which it implements
1744 to always fail with ENOSYS. Some functions are actually named
1745 something starting with __ and the normal name is an alias. */
1746 #if defined __stub_$2 || defined __stub___$2
1747 choke me
1748 #endif
1749
1750 int
1751 main ()
1752 {
1753 return $2 ();
1754 ;
1755 return 0;
1756 }
1757 _ACEOF
1758 if ac_fn_c_try_link "$LINENO"; then :
1759 eval "$3=yes"
1760 else
1761 eval "$3=no"
1762 fi
1763 rm -f core conftest.err conftest.$ac_objext \
1764 conftest$ac_exeext conftest.$ac_ext
1765 fi
1766 eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770
1771 } # ac_fn_c_check_func
1772
1773 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776 # the include files in INCLUDES and setting the cache variable VAR
1777 # accordingly.
1778 ac_fn_c_check_header_mongrel ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if eval \${$3+:} false; then :
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1786 fi
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 else
1791 # Is the header compilable?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793 $as_echo_n "checking $2 usability... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 $4
1797 #include <$2>
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 ac_header_compiler=yes
1801 else
1802 ac_header_compiler=no
1803 fi
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806 $as_echo "$ac_header_compiler" >&6; }
1807
1808 # Is the header present?
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810 $as_echo_n "checking $2 presence... " >&6; }
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1813 #include <$2>
1814 _ACEOF
1815 if ac_fn_c_try_cpp "$LINENO"; then :
1816 ac_header_preproc=yes
1817 else
1818 ac_header_preproc=no
1819 fi
1820 rm -f conftest.err conftest.i conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822 $as_echo "$ac_header_preproc" >&6; }
1823
1824 # So? What about this header?
1825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1826 yes:no: )
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compil er, rejected by the preprocessor!" >&5
1828 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preproc essor!" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the co mpiler's result" >&5
1830 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831 ;;
1832 no:yes:* )
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1836 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2; }
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf docum entation" >&5
1838 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1840 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" > &2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the co mpiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ;;
1844 esac
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1849 else
1850 eval "$3=\$ac_header_compiler"
1851 fi
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 fi
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858 } # ac_fn_c_check_header_mongrel
1859
1860 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1861 # --------------------------------------------
1862 # Tries to find the compile-time value of EXPR in a program that includes
1863 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1864 # computed
1865 ac_fn_c_compute_int ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 if test "$cross_compiling" = yes; then
1869 # Depending upon the size, compute the lo and hi bounds.
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 $4
1873 int
1874 main ()
1875 {
1876 static int test_array [1 - 2 * !(($2) >= 0)];
1877 test_array [0] = 0
1878
1879 ;
1880 return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_c_try_compile "$LINENO"; then :
1884 ac_lo=0 ac_mid=0
1885 while :; do
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 $4
1889 int
1890 main ()
1891 {
1892 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1893 test_array [0] = 0
1894
1895 ;
1896 return 0;
1897 }
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900 ac_hi=$ac_mid; break
1901 else
1902 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1903 if test $ac_lo -le $ac_mid; then
1904 ac_lo= ac_hi=
1905 break
1906 fi
1907 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 done
1911 else
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1914 $4
1915 int
1916 main ()
1917 {
1918 static int test_array [1 - 2 * !(($2) < 0)];
1919 test_array [0] = 0
1920
1921 ;
1922 return 0;
1923 }
1924 _ACEOF
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926 ac_hi=-1 ac_mid=-1
1927 while :; do
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 $4
1931 int
1932 main ()
1933 {
1934 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1935 test_array [0] = 0
1936
1937 ;
1938 return 0;
1939 }
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_lo=$ac_mid; break
1943 else
1944 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1945 if test $ac_mid -le $ac_hi; then
1946 ac_lo= ac_hi=
1947 break
1948 fi
1949 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 done
1953 else
1954 ac_lo= ac_hi=
1955 fi
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 fi
1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959 # Binary search between lo and hi bounds.
1960 while test "x$ac_lo" != "x$ac_hi"; do
1961 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 $4
1965 int
1966 main ()
1967 {
1968 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1969 test_array [0] = 0
1970
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 ac_hi=$ac_mid
1977 else
1978 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 done
1982 case $ac_lo in #((
1983 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1984 '') ac_retval=1 ;;
1985 esac
1986 else
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 $4
1990 static long int longval () { return $2; }
1991 static unsigned long int ulongval () { return $2; }
1992 #include <stdio.h>
1993 #include <stdlib.h>
1994 int
1995 main ()
1996 {
1997
1998 FILE *f = fopen ("conftest.val", "w");
1999 if (! f)
2000 return 1;
2001 if (($2) < 0)
2002 {
2003 long int i = longval ();
2004 if (i != ($2))
2005 return 1;
2006 fprintf (f, "%ld", i);
2007 }
2008 else
2009 {
2010 unsigned long int i = ulongval ();
2011 if (i != ($2))
2012 return 1;
2013 fprintf (f, "%lu", i);
2014 }
2015 /* Do not output a trailing newline, as this causes \r\n confusion
2016 on some platforms. */
2017 return ferror (f) || fclose (f) != 0;
2018
2019 ;
2020 return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_run "$LINENO"; then :
2024 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2025 else
2026 ac_retval=1
2027 fi
2028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2029 conftest.$ac_objext conftest.beam conftest.$ac_ext
2030 rm -f conftest.val
2031
2032 fi
2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 as_fn_set_status $ac_retval
2035
2036 } # ac_fn_c_compute_int
2037 cat >config.log <<_ACEOF
2038 This file contains any messages produced by compilers while
2039 running configure, to aid debugging if configure makes a mistake.
2040
2041 It was created by $as_me, which was
2042 generated by GNU Autoconf 2.68. Invocation command line was
2043
2044 $ $0 $@
2045
2046 _ACEOF
2047 exec 5>>config.log
2048 {
2049 cat <<_ASUNAME
2050 ## --------- ##
2051 ## Platform. ##
2052 ## --------- ##
2053
2054 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2055 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2056 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2057 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2058 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2059
2060 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2061 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2062
2063 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2064 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2065 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2066 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2067 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2068 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2069 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2070
2071 _ASUNAME
2072
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2075 do
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
2078 $as_echo "PATH: $as_dir"
2079 done
2080 IFS=$as_save_IFS
2081
2082 } >&5
2083
2084 cat >&5 <<_ACEOF
2085
2086
2087 ## ----------- ##
2088 ## Core tests. ##
2089 ## ----------- ##
2090
2091 _ACEOF
2092
2093
2094 # Keep a trace of the command line.
2095 # Strip out --no-create and --no-recursion so they do not pile up.
2096 # Strip out --silent because we don't want to record it for future runs.
2097 # Also quote any args containing shell meta-characters.
2098 # Make two passes to allow for proper duplicate-argument suppression.
2099 ac_configure_args=
2100 ac_configure_args0=
2101 ac_configure_args1=
2102 ac_must_keep_next=false
2103 for ac_pass in 1 2
2104 do
2105 for ac_arg
2106 do
2107 case $ac_arg in
2108 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2110 | -silent | --silent | --silen | --sile | --sil)
2111 continue ;;
2112 *\'*)
2113 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2114 esac
2115 case $ac_pass in
2116 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2117 2)
2118 as_fn_append ac_configure_args1 " '$ac_arg'"
2119 if test $ac_must_keep_next = true; then
2120 ac_must_keep_next=false # Got value, back to normal.
2121 else
2122 case $ac_arg in
2123 *=* | --config-cache | -C | -disable-* | --disable-* \
2124 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2125 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2126 | -with-* | --with-* | -without-* | --without-* | --x)
2127 case "$ac_configure_args0 " in
2128 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2129 esac
2130 ;;
2131 -* ) ac_must_keep_next=true ;;
2132 esac
2133 fi
2134 as_fn_append ac_configure_args " '$ac_arg'"
2135 ;;
2136 esac
2137 done
2138 done
2139 { ac_configure_args0=; unset ac_configure_args0;}
2140 { ac_configure_args1=; unset ac_configure_args1;}
2141
2142 # When interrupted or exit'd, cleanup temporary files, and complete
2143 # config.log. We remove comments because anyway the quotes in there
2144 # would cause problems or look ugly.
2145 # WARNING: Use '\'' to represent an apostrophe within the trap.
2146 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2147 trap 'exit_status=$?
2148 # Save into config.log some information that might help in debugging.
2149 {
2150 echo
2151
2152 $as_echo "## ---------------- ##
2153 ## Cache variables. ##
2154 ## ---------------- ##"
2155 echo
2156 # The following way of writing the cache mishandles newlines in values,
2157 (
2158 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\ ''`; do
2159 eval ac_val=\$$ac_var
2160 case $ac_val in #(
2161 *${as_nl}*)
2162 case $ac_var in #(
2163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ ac_var contains a newline" >&5
2164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2165 esac
2166 case $ac_var in #(
2167 _ | IFS | as_nl) ;; #(
2168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2169 *) { eval $ac_var=; unset $ac_var;} ;;
2170 esac ;;
2171 esac
2172 done
2173 (set) 2>&1 |
2174 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2175 *${as_nl}ac_space=\ *)
2176 sed -n \
2177 "s/'\''/'\''\\\\'\'''\''/g;
2178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\'' /p"
2179 ;; #(
2180 *)
2181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2182 ;;
2183 esac |
2184 sort
2185 )
2186 echo
2187
2188 $as_echo "## ----------------- ##
2189 ## Output variables. ##
2190 ## ----------------- ##"
2191 echo
2192 for ac_var in $ac_subst_vars
2193 do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in
2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"` ;;
2197 esac
2198 $as_echo "$ac_var='\''$ac_val'\''"
2199 done | sort
2200 echo
2201
2202 if test -n "$ac_subst_files"; then
2203 $as_echo "## ------------------- ##
2204 ## File substitutions. ##
2205 ## ------------------- ##"
2206 echo
2207 for ac_var in $ac_subst_files
2208 do
2209 eval ac_val=\$$ac_var
2210 case $ac_val in
2211 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g "`;;
2212 esac
2213 $as_echo "$ac_var='\''$ac_val'\''"
2214 done | sort
2215 echo
2216 fi
2217
2218 if test -s confdefs.h; then
2219 $as_echo "## ----------- ##
2220 ## confdefs.h. ##
2221 ## ----------- ##"
2222 echo
2223 cat confdefs.h
2224 echo
2225 fi
2226 test "$ac_signal" != 0 &&
2227 $as_echo "$as_me: caught signal $ac_signal"
2228 $as_echo "$as_me: exit $exit_status"
2229 } >&5
2230 rm -f core *.core core.conftest.* &&
2231 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2232 exit $exit_status
2233 ' 0
2234 for ac_signal in 1 2 13 15; do
2235 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2236 done
2237 ac_signal=0
2238
2239 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2240 rm -f -r conftest* confdefs.h
2241
2242 $as_echo "/* confdefs.h */" > confdefs.h
2243
2244 # Predefined preprocessor variables.
2245
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_NAME "$PACKAGE_NAME"
2248 _ACEOF
2249
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2252 _ACEOF
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2256 _ACEOF
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_STRING "$PACKAGE_STRING"
2260 _ACEOF
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_URL "$PACKAGE_URL"
2268 _ACEOF
2269
2270
2271 # Let the site file select an alternate cache file if it wants to.
2272 # Prefer an explicitly selected file to automatically selected ones.
2273 ac_site_file1=NONE
2274 ac_site_file2=NONE
2275 if test -n "$CONFIG_SITE"; then
2276 # We do not want a PATH search for config.site.
2277 case $CONFIG_SITE in #((
2278 -*) ac_site_file1=./$CONFIG_SITE;;
2279 */*) ac_site_file1=$CONFIG_SITE;;
2280 *) ac_site_file1=./$CONFIG_SITE;;
2281 esac
2282 elif test "x$prefix" != xNONE; then
2283 ac_site_file1=$prefix/share/config.site
2284 ac_site_file2=$prefix/etc/config.site
2285 else
2286 ac_site_file1=$ac_default_prefix/share/config.site
2287 ac_site_file2=$ac_default_prefix/etc/config.site
2288 fi
2289 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2290 do
2291 test "x$ac_site_file" = xNONE && continue
2292 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2294 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2295 sed 's/^/| /' "$ac_site_file" >&5
2296 . "$ac_site_file" \
2297 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299 as_fn_error $? "failed to load site script $ac_site_file
2300 See \`config.log' for more details" "$LINENO" 5; }
2301 fi
2302 done
2303
2304 if test -r "$cache_file"; then
2305 # Some versions of bash will fail to source /dev/null (special files
2306 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2307 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2309 $as_echo "$as_me: loading cache $cache_file" >&6;}
2310 case $cache_file in
2311 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2312 *) . "./$cache_file";;
2313 esac
2314 fi
2315 else
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2317 $as_echo "$as_me: creating cache $cache_file" >&6;}
2318 >$cache_file
2319 fi
2320
2321 # Check that the precious variables saved in the cache have kept the same
2322 # value.
2323 ac_cache_corrupted=false
2324 for ac_var in $ac_precious_vars; do
2325 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2326 eval ac_new_set=\$ac_env_${ac_var}_set
2327 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2328 eval ac_new_val=\$ac_env_${ac_var}_value
2329 case $ac_old_set,$ac_new_set in
2330 set,)
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$a c_old_val' in the previous run" >&5
2332 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous ru n" >&2;}
2333 ac_cache_corrupted=: ;;
2334 ,set)
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2336 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2337 ac_cache_corrupted=: ;;
2338 ,);;
2339 *)
2340 if test "x$ac_old_val" != "x$ac_new_val"; then
2341 # differences in whitespace do not lead to failure.
2342 ac_old_val_w=`echo x $ac_old_val`
2343 ac_new_val_w=`echo x $ac_new_val`
2344 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2346 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2347 ac_cache_corrupted=:
2348 else
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2350 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the p revious run:" >&2;}
2351 eval $ac_var=\$ac_old_val
2352 fi
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val' " >&5
2354 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val' " >&5
2356 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2357 fi;;
2358 esac
2359 # Pass precious variables to config.status.
2360 if test "$ac_new_set" = set; then
2361 case $ac_new_val in
2362 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2363 *) ac_arg=$ac_var=$ac_new_val ;;
2364 esac
2365 case " $ac_configure_args " in
2366 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2367 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2368 esac
2369 fi
2370 done
2371 if $ac_cache_corrupted; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2375 $as_echo "$as_me: error: changes in the environment can compromise the build" >& 2;}
2376 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2377 fi
2378 ## -------------------- ##
2379 ## Main body of script. ##
2380 ## -------------------- ##
2381
2382 ac_ext=c
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
2388
2389
2390 ac_config_headers="$ac_config_headers config.h"
2391
2392
2393 # Check whether --enable-silent-rules was given.
2394 if test "${enable_silent_rules+set}" = set; then :
2395 enableval=$enable_silent_rules;
2396 fi
2397
2398 case $enable_silent_rules in
2399 yes) AM_DEFAULT_VERBOSITY=0;;
2400 no) AM_DEFAULT_VERBOSITY=1;;
2401 *) AM_DEFAULT_VERBOSITY=0;;
2402 esac
2403 am_make=${MAKE-make}
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nest ed variables" >&5
2405 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2406 if ${am_cv_make_support_nested_variables+:} false; then :
2407 $as_echo_n "(cached) " >&6
2408 else
2409 if $as_echo 'TRUE=$(BAR$(V))
2410 BAR0=false
2411 BAR1=true
2412 V=1
2413 am__doit:
2414 @$(TRUE)
2415 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2416 am_cv_make_support_nested_variables=yes
2417 else
2418 am_cv_make_support_nested_variables=no
2419 fi
2420 fi
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_vari ables" >&5
2422 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2423 if test $am_cv_make_support_nested_variables = yes; then
2424 AM_V='$(V)'
2425 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2426 else
2427 AM_V=$AM_DEFAULT_VERBOSITY
2428 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2429 fi
2430 AM_BACKSLASH='\'
2431
2432
2433 # Read our default version string from version.mk.
2434 # Please update this file for releases.
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version.mk" >&5
2436 $as_echo_n "checking version.mk... " >&6; }
2437 MK_VERSION=$(awk 'BEGIN { FS = "=" }
2438 /OPUS_VERSION/ { ver = $2}
2439 END {
2440 gsub(/"/, "", ver);
2441 gsub(/^ /, "", ver);
2442 gsub(/ $/, "", ver);
2443 print ver;
2444 }' $srcdir/version.mk)
2445 if test -z "$MK_VERSION"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2447 $as_echo "no" >&6; }
2448 else
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MK_VERSION" >&5
2450 $as_echo "$MK_VERSION" >&6; }
2451 OPUS_VERSION="$MK_VERSION"
2452 fi
2453
2454 # Override with the git version, if available.
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking git revision" >&5
2456 $as_echo_n "checking git revision... " >&6; }
2457 GIT_VERSION=$(git describe --tags --match 'v*' 2>/dev/null | sed 's/^v//')
2458 if test -z "$GIT_VERSION"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2460 $as_echo "no" >&6; }
2461 else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT_VERSION" >&5
2463 $as_echo "$GIT_VERSION" >&6; }
2464 OPUS_VERSION="$GIT_VERSION"
2465 fi
2466
2467 # Use 'unknown' if all else fails.
2468 if test -z "$OPUS_VERSION"; then
2469 OPUS_VERSION="unknown"
2470 fi
2471
2472 # For automake.
2473 PACKAGE=opus
2474 VERSION=$OPUS_VERSION
2475
2476 # For autoconf
2477
2478
2479 # For config.h.
2480
2481 cat >>confdefs.h <<_ACEOF
2482 #define OPUS_VERSION "$OPUS_VERSION"
2483 _ACEOF
2484
2485
2486 # For libtool.
2487 OPUS_LT_CURRENT=2
2488 OPUS_LT_REVISION=0
2489 OPUS_LT_AGE=2
2490
2491
2492
2493
2494
2495 am__api_version='1.11'
2496
2497 ac_aux_dir=
2498 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2499 if test -f "$ac_dir/install-sh"; then
2500 ac_aux_dir=$ac_dir
2501 ac_install_sh="$ac_aux_dir/install-sh -c"
2502 break
2503 elif test -f "$ac_dir/install.sh"; then
2504 ac_aux_dir=$ac_dir
2505 ac_install_sh="$ac_aux_dir/install.sh -c"
2506 break
2507 elif test -f "$ac_dir/shtool"; then
2508 ac_aux_dir=$ac_dir
2509 ac_install_sh="$ac_aux_dir/shtool install -c"
2510 break
2511 fi
2512 done
2513 if test -z "$ac_aux_dir"; then
2514 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \ "$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2515 fi
2516
2517 # These three variables are undocumented and unsupported,
2518 # and are intended to be withdrawn in a future Autoconf release.
2519 # They can cause serious problems if a builder's source tree is in a directory
2520 # whose full name contains unusual characters.
2521 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2522 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2523 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2524
2525
2526 # Find a good install program. We prefer a C program (faster),
2527 # so one script is as good as another. But avoid the broken or
2528 # incompatible versions:
2529 # SysV /etc/install, /usr/sbin/install
2530 # SunOS /usr/etc/install
2531 # IRIX /sbin/install
2532 # AIX /bin/install
2533 # AmigaOS /C/install, which installs bootblocks on floppy discs
2534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2537 # OS/2's system install, which has a completely different semantic
2538 # ./install, which can be erroneously created by make from ./install.sh.
2539 # Reject install programs that cannot install multiple files.
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2541 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2542 if test -z "$INSTALL"; then
2543 if ${ac_cv_path_install+:} false; then :
2544 $as_echo_n "(cached) " >&6
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 # Account for people who put trailing slashes in PATH elements.
2552 case $as_dir/ in #((
2553 ./ | .// | /[cC]/* | \
2554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2555 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2556 /usr/ucb/* ) ;;
2557 *)
2558 # OSF1 and SCO ODT 3.0 have their own names for install.
2559 # Don't use installbsd from OSF since it installs stuff as root
2560 # by default.
2561 for ac_prog in ginstall scoinst install; do
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_p rog$ac_exec_ext"; }; then
2564 if test $ac_prog = install &&
2565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2566 # AIX install. It has an incompatible calling convention.
2567 :
2568 elif test $ac_prog = install &&
2569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2570 # program-specific install script used by HP pwplus--don't use.
2571 :
2572 else
2573 rm -rf conftest.one conftest.two conftest.dir
2574 echo one > conftest.one
2575 echo two > conftest.two
2576 mkdir conftest.dir
2577 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd `/conftest.dir" &&
2578 test -s conftest.one && test -s conftest.two &&
2579 test -s conftest.dir/conftest.one &&
2580 test -s conftest.dir/conftest.two
2581 then
2582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2583 break 3
2584 fi
2585 fi
2586 fi
2587 done
2588 done
2589 ;;
2590 esac
2591
2592 done
2593 IFS=$as_save_IFS
2594
2595 rm -rf conftest.one conftest.two conftest.dir
2596
2597 fi
2598 if test "${ac_cv_path_install+set}" = set; then
2599 INSTALL=$ac_cv_path_install
2600 else
2601 # As a last resort, use the slow shell script. Don't cache a
2602 # value for INSTALL within a source directory, because that will
2603 # break other packages using the cache if that directory is
2604 # removed, or if the value is a relative name.
2605 INSTALL=$ac_install_sh
2606 fi
2607 fi
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2609 $as_echo "$INSTALL" >&6; }
2610
2611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2612 # It thinks the first close brace ends the variable substitution.
2613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2614
2615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2616
2617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2618
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is s ane" >&5
2620 $as_echo_n "checking whether build environment is sane... " >&6; }
2621 # Just in case
2622 sleep 1
2623 echo timestamp > conftest.file
2624 # Reject unsafe characters in $srcdir or the absolute working directory
2625 # name. Accept space and tab only in the latter.
2626 am_lf='
2627 '
2628 case `pwd` in
2629 *[\\\"\#\$\&\'\`$am_lf]*)
2630 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2631 esac
2632 case $srcdir in
2633 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2634 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2635 esac
2636
2637 # Do `set' in a subshell so we don't clobber the current shell's
2638 # arguments. Must try -L first in case configure is actually a
2639 # symlink; some systems play weird games with the mod time of symlinks
2640 # (eg FreeBSD returns the mod time of the symlink's containing
2641 # directory).
2642 if (
2643 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2644 if test "$*" = "X"; then
2645 # -L didn't work.
2646 set X `ls -t "$srcdir/configure" conftest.file`
2647 fi
2648 rm -f conftest.file
2649 if test "$*" != "X $srcdir/configure conftest.file" \
2650 && test "$*" != "X conftest.file $srcdir/configure"; then
2651
2652 # If neither matched, then we have a broken ls. This can happen
2653 # if, for instance, CONFIG_SHELL is bash and it inherits a
2654 # broken ls alias from the environment. This has actually
2655 # happened. Such a system could not be considered "sane".
2656 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2657 alias in your environment" "$LINENO" 5
2658 fi
2659
2660 test "$2" = conftest.file
2661 )
2662 then
2663 # Ok.
2664 :
2665 else
2666 as_fn_error $? "newly created file is older than distributed files!
2667 Check your system clock" "$LINENO" 5
2668 fi
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2670 $as_echo "yes" >&6; }
2671 test "$program_prefix" != NONE &&
2672 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2673 # Use a double $ so make ignores it.
2674 test "$program_suffix" != NONE &&
2675 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2676 # Double any \ or $.
2677 # By default was `s,x,x', remove it if useless.
2678 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2679 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2680
2681 # expand $ac_aux_dir to an absolute path
2682 am_aux_dir=`cd $ac_aux_dir && pwd`
2683
2684 if test x"${MISSING+set}" != xset; then
2685 case $am_aux_dir in
2686 *\ * | *\ *)
2687 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2688 *)
2689 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2690 esac
2691 fi
2692 # Use eval to expand $SHELL
2693 if eval "$MISSING --run true"; then
2694 am_missing_run="$MISSING --run "
2695 else
2696 am_missing_run=
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2698 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2699 fi
2700
2701 if test x"${install_sh}" != xset; then
2702 case $am_aux_dir in
2703 *\ * | *\ *)
2704 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2705 *)
2706 install_sh="\${SHELL} $am_aux_dir/install-sh"
2707 esac
2708 fi
2709
2710 # Installed binaries are usually stripped using `strip' when the user
2711 # run `make install-strip'. However `strip' might not be the right
2712 # tool to use in cross-compilation environments, therefore Automake
2713 # will honor the `STRIP' environment variable to overrule this program.
2714 if test "$cross_compiling" != no; then
2715 if test -n "$ac_tool_prefix"; then
2716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program n ame with args.
2717 set dummy ${ac_tool_prefix}strip; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_STRIP+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 if test -n "$STRIP"; then
2724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
2735 break 2
2736 fi
2737 done
2738 done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 STRIP=$ac_cv_prog_STRIP
2744 if test -n "$STRIP"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2746 $as_echo "$STRIP" >&6; }
2747 else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2750 fi
2751
2752
2753 fi
2754 if test -z "$ac_cv_prog_STRIP"; then
2755 ac_ct_STRIP=$STRIP
2756 # Extract the first word of "strip", so it can be a program name with args.
2757 set dummy strip; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 if test -n "$ac_ct_STRIP"; then
2764 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2773 ac_cv_prog_ac_ct_STRIP="strip"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
2775 break 2
2776 fi
2777 done
2778 done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2784 if test -n "$ac_ct_STRIP"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2786 $as_echo "$ac_ct_STRIP" >&6; }
2787 else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792 if test "x$ac_ct_STRIP" = x; then
2793 STRIP=":"
2794 else
2795 case $cross_compiling:$ac_tool_warned in
2796 yes:)
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
2799 ac_tool_warned=yes ;;
2800 esac
2801 STRIP=$ac_ct_STRIP
2802 fi
2803 else
2804 STRIP="$ac_cv_prog_STRIP"
2805 fi
2806
2807 fi
2808 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2809
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >& 5
2811 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2812 if test -z "$MKDIR_P"; then
2813 if ${ac_cv_path_mkdir+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2818 do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_prog in mkdir gmkdir; do
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_p rog$ac_exec_ext"; } || continue
2824 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2825 'mkdir (GNU coreutils) '* | \
2826 'mkdir (coreutils) '* | \
2827 'mkdir (fileutils) '4.1*)
2828 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2829 break 3;;
2830 esac
2831 done
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 fi
2837
2838 test -d ./--version && rmdir ./--version
2839 if test "${ac_cv_path_mkdir+set}" = set; then
2840 MKDIR_P="$ac_cv_path_mkdir -p"
2841 else
2842 # As a last resort, use the slow shell script. Don't cache a
2843 # value for MKDIR_P within a source directory, because that will
2844 # break other packages using the cache if that directory is
2845 # removed, or if the value is a relative name.
2846 MKDIR_P="$ac_install_sh -d"
2847 fi
2848 fi
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2850 $as_echo "$MKDIR_P" >&6; }
2851
2852 mkdir_p="$MKDIR_P"
2853 case $mkdir_p in
2854 [\\/$]* | ?:[\\/]*) ;;
2855 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2856 esac
2857
2858 for ac_prog in gawk mawk nawk awk
2859 do
2860 # Extract the first word of "$ac_prog", so it can be a program name with args.
2861 set dummy $ac_prog; ac_word=$2
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2863 $as_echo_n "checking for $ac_word... " >&6; }
2864 if ${ac_cv_prog_AWK+:} false; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 if test -n "$AWK"; then
2868 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2877 ac_cv_prog_AWK="$ac_prog"
2878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
2879 break 2
2880 fi
2881 done
2882 done
2883 IFS=$as_save_IFS
2884
2885 fi
2886 fi
2887 AWK=$ac_cv_prog_AWK
2888 if test -n "$AWK"; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2890 $as_echo "$AWK" >&6; }
2891 else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2894 fi
2895
2896
2897 test -n "$AWK" && break
2898 done
2899
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(M AKE)" >&5
2901 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2902 set x ${MAKE-make}
2903 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2904 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2905 $as_echo_n "(cached) " >&6
2906 else
2907 cat >conftest.make <<\_ACEOF
2908 SHELL = /bin/sh
2909 all:
2910 @echo '@@@%%%=$(MAKE)=@@@%%%'
2911 _ACEOF
2912 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2913 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2914 *@@@%%%=?*=@@@%%%*)
2915 eval ac_cv_prog_make_${ac_make}_set=yes;;
2916 *)
2917 eval ac_cv_prog_make_${ac_make}_set=no;;
2918 esac
2919 rm -f conftest.make
2920 fi
2921 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2923 $as_echo "yes" >&6; }
2924 SET_MAKE=
2925 else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2928 SET_MAKE="MAKE=${MAKE-make}"
2929 fi
2930
2931 rm -rf .tst 2>/dev/null
2932 mkdir .tst 2>/dev/null
2933 if test -d .tst; then
2934 am__leading_dot=.
2935 else
2936 am__leading_dot=_
2937 fi
2938 rmdir .tst 2>/dev/null
2939
2940 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2941 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2942 # is not polluted with repeated "-I."
2943 am__isrc=' -I$(srcdir)'
2944 # test to see if srcdir already configured
2945 if test -f $srcdir/config.status; then
2946 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2947 fi
2948 fi
2949
2950 # test whether we have cygpath
2951 if test -z "$CYGPATH_W"; then
2952 if (cygpath --version) >/dev/null 2>/dev/null; then
2953 CYGPATH_W='cygpath -w'
2954 else
2955 CYGPATH_W=echo
2956 fi
2957 fi
2958
2959
2960 # Define the identity of the package.
2961 PACKAGE=$PACKAGE
2962 VERSION=$VERSION
2963
2964
2965 # Some tools Automake needs.
2966
2967 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2968
2969
2970 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2971
2972
2973 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2974
2975
2976 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2977
2978
2979 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2980
2981 # We need awk for the "check" target. The system "awk" is bad on
2982 # some platforms.
2983 # Always define AMTAR for backward compatibility. Yes, it's still used
2984 # in the wild :-( We should find a proper way to deprecate it ...
2985 AMTAR='$${TAR-tar}'
2986
2987 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2988
2989
2990
2991
2992
2993
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-s pecific portions of Makefiles" >&5
2995 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles ... " >&6; }
2996 # Check whether --enable-maintainer-mode was given.
2997 if test "${enable_maintainer_mode+set}" = set; then :
2998 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2999 else
3000 USE_MAINTAINER_MODE=no
3001 fi
3002
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3004 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3005 if test $USE_MAINTAINER_MODE = yes; then
3006 MAINTAINER_MODE_TRUE=
3007 MAINTAINER_MODE_FALSE='#'
3008 else
3009 MAINTAINER_MODE_TRUE='#'
3010 MAINTAINER_MODE_FALSE=
3011 fi
3012
3013 MAINT=$MAINTAINER_MODE_TRUE
3014
3015
3016
3017 # Make sure we can run config.sub.
3018 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3019 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3020
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3022 $as_echo_n "checking build system type... " >&6; }
3023 if ${ac_cv_build+:} false; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 ac_build_alias=$build_alias
3027 test "x$ac_build_alias" = x &&
3028 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3029 test "x$ac_build_alias" = x &&
3030 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3031 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3032 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO " 5
3033
3034 fi
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3036 $as_echo "$ac_cv_build" >&6; }
3037 case $ac_cv_build in
3038 *-*-*) ;;
3039 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3040 esac
3041 build=$ac_cv_build
3042 ac_save_IFS=$IFS; IFS='-'
3043 set x $ac_cv_build
3044 shift
3045 build_cpu=$1
3046 build_vendor=$2
3047 shift; shift
3048 # Remember, the first character of IFS is used to create $*,
3049 # except with old shells:
3050 build_os=$*
3051 IFS=$ac_save_IFS
3052 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3053
3054
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3056 $as_echo_n "checking host system type... " >&6; }
3057 if ${ac_cv_host+:} false; then :
3058 $as_echo_n "(cached) " >&6
3059 else
3060 if test "x$host_alias" = x; then
3061 ac_cv_host=$ac_cv_build
3062 else
3063 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3064 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3065 fi
3066
3067 fi
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3069 $as_echo "$ac_cv_host" >&6; }
3070 case $ac_cv_host in
3071 *-*-*) ;;
3072 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3073 esac
3074 host=$ac_cv_host
3075 ac_save_IFS=$IFS; IFS='-'
3076 set x $ac_cv_host
3077 shift
3078 host_cpu=$1
3079 host_vendor=$2
3080 shift; shift
3081 # Remember, the first character of IFS is used to create $*,
3082 # except with old shells:
3083 host_os=$*
3084 IFS=$ac_save_IFS
3085 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3086
3087
3088
3089 case $host_os in
3090 *mingw32* ) MINGW32=yes;;
3091 * ) MINGW32=no;;
3092 esac
3093
3094 case `pwd` in
3095 *\ * | *\ *)
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3097 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\` " >&2;} ;;
3098 esac
3099
3100
3101
3102 macro_version='2.4.2'
3103 macro_revision='1.3337'
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117 ltmain="$ac_aux_dir/ltmain.sh"
3118
3119 # Backslashify metacharacters that are still active within
3120 # double-quoted strings.
3121 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3122
3123 # Same as above, but do not quote variable references.
3124 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3125
3126 # Sed substitution to delay expansion of an escaped shell variable in a
3127 # double_quote_subst'ed string.
3128 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3129
3130 # Sed substitution to delay expansion of an escaped single quote.
3131 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3132
3133 # Sed substitution to avoid accidental globbing in evaled expressions
3134 no_glob_subst='s/\*/\\\*/g'
3135
3136 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3137 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3138 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3139
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3141 $as_echo_n "checking how to print strings... " >&6; }
3142 # Test print first, because it will be a builtin if present.
3143 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3144 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3145 ECHO='print -r --'
3146 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3147 ECHO='printf %s\n'
3148 else
3149 # Use this function as a fallback that always works.
3150 func_fallback_echo ()
3151 {
3152 eval 'cat <<_LTECHO_EOF
3153 $1
3154 _LTECHO_EOF'
3155 }
3156 ECHO='func_fallback_echo'
3157 fi
3158
3159 # func_echo_all arg...
3160 # Invoke $ECHO with all args, space-separated.
3161 func_echo_all ()
3162 {
3163 $ECHO ""
3164 }
3165
3166 case "$ECHO" in
3167 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3168 $as_echo "printf" >&6; } ;;
3169 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3170 $as_echo "print -r" >&6; } ;;
3171 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3172 $as_echo "cat" >&6; } ;;
3173 esac
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188 DEPDIR="${am__leading_dot}deps"
3189
3190 ac_config_commands="$ac_config_commands depfiles"
3191
3192
3193 am_make=${MAKE-make}
3194 cat > confinc << 'END'
3195 am__doit:
3196 @echo this is the am__doit target
3197 .PHONY: am__doit
3198 END
3199 # If we don't find an include directive, just comment out the code.
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $ am_make" >&5
3201 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3202 am__include="#"
3203 am__quote=
3204 _am_result=none
3205 # First try GNU make style include.
3206 echo "include confinc" > confmf
3207 # Ignore all kinds of additional output from `make'.
3208 case `$am_make -s -f confmf 2> /dev/null` in #(
3209 *the\ am__doit\ target*)
3210 am__include=include
3211 am__quote=
3212 _am_result=GNU
3213 ;;
3214 esac
3215 # Now try BSD make style include.
3216 if test "$am__include" = "#"; then
3217 echo '.include "confinc"' > confmf
3218 case `$am_make -s -f confmf 2> /dev/null` in #(
3219 *the\ am__doit\ target*)
3220 am__include=.include
3221 am__quote="\""
3222 _am_result=BSD
3223 ;;
3224 esac
3225 fi
3226
3227
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3229 $as_echo "$_am_result" >&6; }
3230 rm -f confinc confmf
3231
3232 # Check whether --enable-dependency-tracking was given.
3233 if test "${enable_dependency_tracking+set}" = set; then :
3234 enableval=$enable_dependency_tracking;
3235 fi
3236
3237 if test "x$enable_dependency_tracking" != xno; then
3238 am_depcomp="$ac_aux_dir/depcomp"
3239 AMDEPBACKSLASH='\'
3240 am__nodep='_no'
3241 fi
3242 if test "x$enable_dependency_tracking" != xno; then
3243 AMDEP_TRUE=
3244 AMDEP_FALSE='#'
3245 else
3246 AMDEP_TRUE='#'
3247 AMDEP_FALSE=
3248 fi
3249
3250
3251 ac_ext=c
3252 ac_cpp='$CPP $CPPFLAGS'
3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256 if test -n "$ac_tool_prefix"; then
3257 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam e with args.
3258 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_CC+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC="$CC" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
3274 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3276 break 2
3277 fi
3278 done
3279 done
3280 IFS=$as_save_IFS
3281
3282 fi
3283 fi
3284 CC=$ac_cv_prog_CC
3285 if test -n "$CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 fi
3292
3293
3294 fi
3295 if test -z "$ac_cv_prog_CC"; then
3296 ac_ct_CC=$CC
3297 # Extract the first word of "gcc", so it can be a program name with args.
3298 set dummy gcc; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3302 $as_echo_n "(cached) " >&6
3303 else
3304 if test -n "$ac_ct_CC"; then
3305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
3314 ac_cv_prog_ac_ct_CC="gcc"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3316 break 2
3317 fi
3318 done
3319 done
3320 IFS=$as_save_IFS
3321
3322 fi
3323 fi
3324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3325 if test -n "$ac_ct_CC"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3327 $as_echo "$ac_ct_CC" >&6; }
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 fi
3332
3333 if test "x$ac_ct_CC" = x; then
3334 CC=""
3335 else
3336 case $cross_compiling:$ac_tool_warned in
3337 yes:)
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
3340 ac_tool_warned=yes ;;
3341 esac
3342 CC=$ac_ct_CC
3343 fi
3344 else
3345 CC="$ac_cv_prog_CC"
3346 fi
3347
3348 if test -z "$CC"; then
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program na me with args.
3351 set dummy ${ac_tool_prefix}cc; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if ${ac_cv_prog_CC+:} false; then :
3355 $as_echo_n "(cached) " >&6
3356 else
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363 IFS=$as_save_IFS
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
3367 ac_cv_prog_CC="${ac_tool_prefix}cc"
3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3369 break 2
3370 fi
3371 done
3372 done
3373 IFS=$as_save_IFS
3374
3375 fi
3376 fi
3377 CC=$ac_cv_prog_CC
3378 if test -n "$CC"; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3380 $as_echo "$CC" >&6; }
3381 else
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3384 fi
3385
3386
3387 fi
3388 fi
3389 if test -z "$CC"; then
3390 # Extract the first word of "cc", so it can be a program name with args.
3391 set dummy cc; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_CC+:} false; then :
3395 $as_echo_n "(cached) " >&6
3396 else
3397 if test -n "$CC"; then
3398 ac_cv_prog_CC="$CC" # Let the user override the test.
3399 else
3400 ac_prog_rejected=no
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
3408 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3409 ac_prog_rejected=yes
3410 continue
3411 fi
3412 ac_cv_prog_CC="cc"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3414 break 2
3415 fi
3416 done
3417 done
3418 IFS=$as_save_IFS
3419
3420 if test $ac_prog_rejected = yes; then
3421 # We found a bogon in the path, so make sure we never use it.
3422 set dummy $ac_cv_prog_CC
3423 shift
3424 if test $# != 0; then
3425 # We chose a different compiler from the bogus one.
3426 # However, it has the same basename, so the bogon will be chosen
3427 # first if we set CC to just the basename; use the full file name.
3428 shift
3429 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3430 fi
3431 fi
3432 fi
3433 fi
3434 CC=$ac_cv_prog_CC
3435 if test -n "$CC"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3437 $as_echo "$CC" >&6; }
3438 else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3441 fi
3442
3443
3444 fi
3445 if test -z "$CC"; then
3446 if test -n "$ac_tool_prefix"; then
3447 for ac_prog in cl.exe
3448 do
3449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
3450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if ${ac_cv_prog_CC+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 if test -n "$CC"; then
3457 ac_cv_prog_CC="$CC" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
3466 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3468 break 2
3469 fi
3470 done
3471 done
3472 IFS=$as_save_IFS
3473
3474 fi
3475 fi
3476 CC=$ac_cv_prog_CC
3477 if test -n "$CC"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479 $as_echo "$CC" >&6; }
3480 else
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3483 fi
3484
3485
3486 test -n "$CC" && break
3487 done
3488 fi
3489 if test -z "$CC"; then
3490 ac_ct_CC=$CC
3491 for ac_prog in cl.exe
3492 do
3493 # Extract the first word of "$ac_prog", so it can be a program name with args.
3494 set dummy $ac_prog; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 if test -n "$ac_ct_CC"; then
3501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
3510 ac_cv_prog_ac_ct_CC="$ac_prog"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3512 break 2
3513 fi
3514 done
3515 done
3516 IFS=$as_save_IFS
3517
3518 fi
3519 fi
3520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3521 if test -n "$ac_ct_CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3523 $as_echo "$ac_ct_CC" >&6; }
3524 else
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 fi
3528
3529
3530 test -n "$ac_ct_CC" && break
3531 done
3532
3533 if test "x$ac_ct_CC" = x; then
3534 CC=""
3535 else
3536 case $cross_compiling:$ac_tool_warned in
3537 yes:)
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
3540 ac_tool_warned=yes ;;
3541 esac
3542 CC=$ac_ct_CC
3543 fi
3544 fi
3545
3546 fi
3547
3548
3549 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd' :" >&5
3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551 as_fn_error $? "no acceptable C compiler found in \$PATH
3552 See \`config.log' for more details" "$LINENO" 5; }
3553
3554 # Provide some information about the compiler.
3555 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3556 set X $ac_compile
3557 ac_compiler=$2
3558 for ac_option in --version -v -V -qversion; do
3559 { { ac_try="$ac_compiler $ac_option >&5"
3560 case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
3566 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3567 ac_status=$?
3568 if test -s conftest.err; then
3569 sed '10a\
3570 ... rest of stderr output deleted ...
3571 10q' conftest.err >conftest.er1
3572 cat conftest.er1 >&5
3573 fi
3574 rm -f conftest.er1 conftest.err
3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576 test $ac_status = 0; }
3577 done
3578
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3581
3582 int
3583 main ()
3584 {
3585
3586 ;
3587 return 0;
3588 }
3589 _ACEOF
3590 ac_clean_files_save=$ac_clean_files
3591 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3592 # Try to create an executable without -o first, disregard a.out.
3593 # It will help us diagnose broken compilers, and finding out an intuition
3594 # of exeext.
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3596 $as_echo_n "checking whether the C compiler works... " >&6; }
3597 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3598
3599 # The possible output files:
3600 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3601
3602 ac_rmfiles=
3603 for ac_file in $ac_files
3604 do
3605 case $ac_file in
3606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3607 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3608 esac
3609 done
3610 rm -f $ac_rmfiles
3611
3612 if { { ac_try="$ac_link_default"
3613 case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_link_default") 2>&5
3620 ac_status=$?
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; then :
3623 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3624 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3625 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3626 # so that the user can short-circuit this test for compilers unknown to
3627 # Autoconf.
3628 for ac_file in $ac_files ''
3629 do
3630 test -f "$ac_file" || continue
3631 case $ac_file in
3632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3633 ;;
3634 [ab].out )
3635 # We found the default executable, but exeext='' is most
3636 # certainly right.
3637 break;;
3638 *.* )
3639 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3640 then :; else
3641 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3642 fi
3643 # We set ac_cv_exeext here because the later test for it is not
3644 # safe: cross compilers may not add the suffix if given an `-o'
3645 # argument, so we may need to know it at that point already.
3646 # Even if this section looks crufty: it has the advantage of
3647 # actually working.
3648 break;;
3649 * )
3650 break;;
3651 esac
3652 done
3653 test "$ac_cv_exeext" = no && ac_cv_exeext=
3654
3655 else
3656 ac_file=''
3657 fi
3658 if test -z "$ac_file"; then :
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3661 $as_echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3663
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error 77 "C compiler cannot create executables
3667 See \`config.log' for more details" "$LINENO" 5; }
3668 else
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670 $as_echo "yes" >&6; }
3671 fi
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3673 $as_echo_n "checking for C compiler default output file name... " >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3675 $as_echo "$ac_file" >&6; }
3676 ac_exeext=$ac_cv_exeext
3677
3678 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3679 ac_clean_files=$ac_clean_files_save
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3681 $as_echo_n "checking for suffix of executables... " >&6; }
3682 if { { ac_try="$ac_link"
3683 case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_link") 2>&5
3690 ac_status=$?
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }; then :
3693 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3694 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3695 # work properly (i.e., refer to `conftest.exe'), while it won't with
3696 # `rm'.
3697 for ac_file in conftest.exe conftest conftest.*; do
3698 test -f "$ac_file" || continue
3699 case $ac_file in
3700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3701 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3702 break;;
3703 * ) break;;
3704 esac
3705 done
3706 else
3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3710 See \`config.log' for more details" "$LINENO" 5; }
3711 fi
3712 rm -f conftest conftest$ac_cv_exeext
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3714 $as_echo "$ac_cv_exeext" >&6; }
3715
3716 rm -f conftest.$ac_ext
3717 EXEEXT=$ac_cv_exeext
3718 ac_exeext=$EXEEXT
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721 #include <stdio.h>
3722 int
3723 main ()
3724 {
3725 FILE *f = fopen ("conftest.out", "w");
3726 return ferror (f) || fclose (f) != 0;
3727
3728 ;
3729 return 0;
3730 }
3731 _ACEOF
3732 ac_clean_files="$ac_clean_files conftest.out"
3733 # Check that the compiler produces executables we can run. If not, either
3734 # the compiler is broken, or we cross compile.
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling " >&5
3736 $as_echo_n "checking whether we are cross compiling... " >&6; }
3737 if test "$cross_compiling" != yes; then
3738 { { ac_try="$ac_link"
3739 case "(($ac_try" in
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3742 esac
3743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744 $as_echo "$ac_try_echo"; } >&5
3745 (eval "$ac_link") 2>&5
3746 ac_status=$?
3747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748 test $ac_status = 0; }
3749 if { ac_try='./conftest$ac_cv_exeext'
3750 { { case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3753 esac
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 $as_echo "$ac_try_echo"; } >&5
3756 (eval "$ac_try") 2>&5
3757 ac_status=$?
3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759 test $ac_status = 0; }; }; then
3760 cross_compiling=no
3761 else
3762 if test "$cross_compiling" = maybe; then
3763 cross_compiling=yes
3764 else
3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error $? "cannot run C compiled programs.
3768 If you meant to cross compile, use \`--host'.
3769 See \`config.log' for more details" "$LINENO" 5; }
3770 fi
3771 fi
3772 fi
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3774 $as_echo "$cross_compiling" >&6; }
3775
3776 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3777 ac_clean_files=$ac_clean_files_save
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >& 5
3779 $as_echo_n "checking for suffix of object files... " >&6; }
3780 if ${ac_cv_objext+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3785
3786 int
3787 main ()
3788 {
3789
3790 ;
3791 return 0;
3792 }
3793 _ACEOF
3794 rm -f conftest.o conftest.obj
3795 if { { ac_try="$ac_compile"
3796 case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_compile") 2>&5
3803 ac_status=$?
3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805 test $ac_status = 0; }; then :
3806 for ac_file in conftest.o conftest.obj conftest.*; do
3807 test -f "$ac_file" || continue;
3808 case $ac_file in
3809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3810 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3811 break;;
3812 esac
3813 done
3814 else
3815 $as_echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820 as_fn_error $? "cannot compute suffix of object files: cannot compile
3821 See \`config.log' for more details" "$LINENO" 5; }
3822 fi
3823 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3826 $as_echo "$ac_cv_objext" >&6; }
3827 OBJEXT=$ac_cv_objext
3828 ac_objext=$OBJEXT
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3830 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3831 if ${ac_cv_c_compiler_gnu+:} false; then :
3832 $as_echo_n "(cached) " >&6
3833 else
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836
3837 int
3838 main ()
3839 {
3840 #ifndef __GNUC__
3841 choke me
3842 #endif
3843
3844 ;
3845 return 0;
3846 }
3847 _ACEOF
3848 if ac_fn_c_try_compile "$LINENO"; then :
3849 ac_compiler_gnu=yes
3850 else
3851 ac_compiler_gnu=no
3852 fi
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3855
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3858 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3859 if test $ac_compiler_gnu = yes; then
3860 GCC=yes
3861 else
3862 GCC=
3863 fi
3864 ac_test_CFLAGS=${CFLAGS+set}
3865 ac_save_CFLAGS=$CFLAGS
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3867 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3868 if ${ac_cv_prog_cc_g+:} false; then :
3869 $as_echo_n "(cached) " >&6
3870 else
3871 ac_save_c_werror_flag=$ac_c_werror_flag
3872 ac_c_werror_flag=yes
3873 ac_cv_prog_cc_g=no
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 else
3889 CFLAGS=""
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3892
3893 int
3894 main ()
3895 {
3896
3897 ;
3898 return 0;
3899 }
3900 _ACEOF
3901 if ac_fn_c_try_compile "$LINENO"; then :
3902
3903 else
3904 ac_c_werror_flag=$ac_save_c_werror_flag
3905 CFLAGS="-g"
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3908
3909 int
3910 main ()
3911 {
3912
3913 ;
3914 return 0;
3915 }
3916 _ACEOF
3917 if ac_fn_c_try_compile "$LINENO"; then :
3918 ac_cv_prog_cc_g=yes
3919 fi
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921 fi
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 fi
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 ac_c_werror_flag=$ac_save_c_werror_flag
3926 fi
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3928 $as_echo "$ac_cv_prog_cc_g" >&6; }
3929 if test "$ac_test_CFLAGS" = set; then
3930 CFLAGS=$ac_save_CFLAGS
3931 elif test $ac_cv_prog_cc_g = yes; then
3932 if test "$GCC" = yes; then
3933 CFLAGS="-g -O2"
3934 else
3935 CFLAGS="-g"
3936 fi
3937 else
3938 if test "$GCC" = yes; then
3939 CFLAGS="-O2"
3940 else
3941 CFLAGS=
3942 fi
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C 89" >&5
3945 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3946 if ${ac_cv_prog_cc_c89+:} false; then :
3947 $as_echo_n "(cached) " >&6
3948 else
3949 ac_cv_prog_cc_c89=no
3950 ac_save_CC=$CC
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953 #include <stdarg.h>
3954 #include <stdio.h>
3955 #include <sys/types.h>
3956 #include <sys/stat.h>
3957 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3958 struct buf { int x; };
3959 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3960 static char *e (p, i)
3961 char **p;
3962 int i;
3963 {
3964 return p[i];
3965 }
3966 static char *f (char * (*g) (char **, int), char **p, ...)
3967 {
3968 char *s;
3969 va_list v;
3970 va_start (v,p);
3971 s = g (p, va_arg (v,int));
3972 va_end (v);
3973 return s;
3974 }
3975
3976 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3977 function prototypes and stuff, but not '\xHH' hex character constants.
3978 These don't provoke an error unfortunately, instead are silently treated
3979 as 'x'. The following induces an error, until -std is added to get
3980 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3981 array size at least. It's necessary to write '\x00'==0 to get something
3982 that's true only with -std. */
3983 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3984
3985 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3986 inside strings and character constants. */
3987 #define FOO(x) 'x'
3988 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3989
3990 int test (int i, double x);
3991 struct s1 {int (*f) (int a);};
3992 struct s2 {int (*f) (double a);};
3993 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i nt);
3994 int argc;
3995 char **argv;
3996 int
3997 main ()
3998 {
3999 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4000 ;
4001 return 0;
4002 }
4003 _ACEOF
4004 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4005 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4006 do
4007 CC="$ac_save_CC $ac_arg"
4008 if ac_fn_c_try_compile "$LINENO"; then :
4009 ac_cv_prog_cc_c89=$ac_arg
4010 fi
4011 rm -f core conftest.err conftest.$ac_objext
4012 test "x$ac_cv_prog_cc_c89" != "xno" && break
4013 done
4014 rm -f conftest.$ac_ext
4015 CC=$ac_save_CC
4016
4017 fi
4018 # AC_CACHE_VAL
4019 case "x$ac_cv_prog_cc_c89" in
4020 x)
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4022 $as_echo "none needed" >&6; } ;;
4023 xno)
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4025 $as_echo "unsupported" >&6; } ;;
4026 *)
4027 CC="$CC $ac_cv_prog_cc_c89"
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4029 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4030 esac
4031 if test "x$ac_cv_prog_cc_c89" != xno; then :
4032
4033 fi
4034
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040
4041 depcc="$CC" am_compiler_list=
4042
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >& 5
4044 $as_echo_n "checking dependency style of $depcc... " >&6; }
4045 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4046 $as_echo_n "(cached) " >&6
4047 else
4048 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4049 # We make a subdir and do the tests there. Otherwise we can end up
4050 # making bogus files that we don't know about and never remove. For
4051 # instance it was reported that on HP-UX the gcc test will end up
4052 # making a dummy file named `D' -- because `-MD' means `put the output
4053 # in D'.
4054 rm -rf conftest.dir
4055 mkdir conftest.dir
4056 # Copy depcomp to subdir because otherwise we won't find it if we're
4057 # using a relative directory.
4058 cp "$am_depcomp" conftest.dir
4059 cd conftest.dir
4060 # We will build objects and dependencies in a subdirectory because
4061 # it helps to detect inapplicable dependency modes. For instance
4062 # both Tru64's cc and ICC support -MD to output dependencies as a
4063 # side effect of compilation, but ICC will put the dependencies in
4064 # the current directory while Tru64 will put them in the object
4065 # directory.
4066 mkdir sub
4067
4068 am_cv_CC_dependencies_compiler_type=none
4069 if test "$am_compiler_list" = ""; then
4070 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4071 fi
4072 am__universal=false
4073 case " $depcc " in #(
4074 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4075 esac
4076
4077 for depmode in $am_compiler_list; do
4078 # Setup a source with many dependencies, because some compilers
4079 # like to wrap large dependency lists on column 80 (with \), and
4080 # we should not choose a depcomp mode which is confused by this.
4081 #
4082 # We need to recreate these files for each test, as the compiler may
4083 # overwrite some of them when testing with obscure command lines.
4084 # This happens at least with the AIX C compiler.
4085 : > sub/conftest.c
4086 for i in 1 2 3 4 5 6; do
4087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4089 # Solaris 8's {/usr,}/bin/sh.
4090 touch sub/conftst$i.h
4091 done
4092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4093
4094 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4095 # mode. It turns out that the SunPro C++ compiler does not properly
4096 # handle `-M -o', and we need to detect this. Also, some Intel
4097 # versions had trouble with output in subdirs
4098 am__obj=sub/conftest.${OBJEXT-o}
4099 am__minus_obj="-o $am__obj"
4100 case $depmode in
4101 gcc)
4102 # This depmode causes a compiler race in universal mode.
4103 test "$am__universal" = false || continue
4104 ;;
4105 nosideeffect)
4106 # after this tag, mechanisms are not by side-effect, so they'll
4107 # only be used when explicitly requested
4108 if test "x$enable_dependency_tracking" = xyes; then
4109 continue
4110 else
4111 break
4112 fi
4113 ;;
4114 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4115 # This compiler won't grok `-c -o', but also, the minuso test has
4116 # not run yet. These depmodes are late enough in the game, and
4117 # so weak that their functioning should not be impacted.
4118 am__obj=conftest.${OBJEXT-o}
4119 am__minus_obj=
4120 ;;
4121 none) break ;;
4122 esac
4123 if depmode=$depmode \
4124 source=sub/conftest.c object=$am__obj \
4125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4126 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4127 >/dev/null 2>conftest.err &&
4128 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4130 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4132 # icc doesn't choke on unknown options, it will just issue warnings
4133 # or remarks (even with -Werror). So we grep stderr for any message
4134 # that says an option was ignored or not supported.
4135 # When given -MP, icc 7.0 and 7.1 complain thusly:
4136 # icc: Command line warning: ignoring option '-M'; no argument required
4137 # The diagnosis changed in icc 8.0:
4138 # icc: Command line remark: option '-MP' not supported
4139 if (grep 'ignoring option' conftest.err ||
4140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4141 am_cv_CC_dependencies_compiler_type=$depmode
4142 break
4143 fi
4144 fi
4145 done
4146
4147 cd ..
4148 rm -rf conftest.dir
4149 else
4150 am_cv_CC_dependencies_compiler_type=none
4151 fi
4152
4153 fi
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler _type" >&5
4155 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4156 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4157
4158 if
4159 test "x$enable_dependency_tracking" != xno \
4160 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4161 am__fastdepCC_TRUE=
4162 am__fastdepCC_FALSE='#'
4163 else
4164 am__fastdepCC_TRUE='#'
4165 am__fastdepCC_FALSE=
4166 fi
4167
4168
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not trunca te output" >&5
4170 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4171 if ${ac_cv_path_SED+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbb bbbbbbbbbbbbb/
4175 for ac_i in 1 2 3 4 5 6 7; do
4176 ac_script="$ac_script$as_nl$ac_script"
4177 done
4178 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4179 { ac_script=; unset ac_script;}
4180 if test -z "$SED"; then
4181 ac_path_SED_found=false
4182 # Loop through the user's path and test for each of PROGNAME-LIST
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4185 do
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_prog in sed gsed; do
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4191 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4192 # Check for GNU ac_path_SED and select it if it is found.
4193 # Check for GNU $ac_path_SED
4194 case `"$ac_path_SED" --version 2>&1` in
4195 *GNU*)
4196 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4197 *)
4198 ac_count=0
4199 $as_echo_n 0123456789 >"conftest.in"
4200 while :
4201 do
4202 cat "conftest.in" "conftest.in" >"conftest.tmp"
4203 mv "conftest.tmp" "conftest.in"
4204 cp "conftest.in" "conftest.nl"
4205 $as_echo '' >> "conftest.nl"
4206 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null | | break
4207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208 as_fn_arith $ac_count + 1 && ac_count=$as_val
4209 if test $ac_count -gt ${ac_path_SED_max-0}; then
4210 # Best one so far, save it but keep looking for a better one
4211 ac_cv_path_SED="$ac_path_SED"
4212 ac_path_SED_max=$ac_count
4213 fi
4214 # 10*(2^10) chars as input seems more than enough
4215 test $ac_count -gt 10 && break
4216 done
4217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218 esac
4219
4220 $ac_path_SED_found && break 3
4221 done
4222 done
4223 done
4224 IFS=$as_save_IFS
4225 if test -z "$ac_cv_path_SED"; then
4226 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4227 fi
4228 else
4229 ac_cv_path_SED=$SED
4230 fi
4231
4232 fi
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4234 $as_echo "$ac_cv_path_SED" >&6; }
4235 SED="$ac_cv_path_SED"
4236 rm -f conftest.sed
4237
4238 test -z "$SED" && SED=sed
4239 Xsed="$SED -e 1s/^X//"
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lin es and -e" >&5
4252 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4253 if ${ac_cv_path_GREP+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 if test -z "$GREP"; then
4257 ac_path_GREP_found=false
4258 # Loop through the user's path and test for each of PROGNAME-LIST
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4261 do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
4264 for ac_prog in grep ggrep; do
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4267 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4268 # Check for GNU ac_path_GREP and select it if it is found.
4269 # Check for GNU $ac_path_GREP
4270 case `"$ac_path_GREP" --version 2>&1` in
4271 *GNU*)
4272 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4273 *)
4274 ac_count=0
4275 $as_echo_n 0123456789 >"conftest.in"
4276 while :
4277 do
4278 cat "conftest.in" "conftest.in" >"conftest.tmp"
4279 mv "conftest.tmp" "conftest.in"
4280 cp "conftest.in" "conftest.nl"
4281 $as_echo 'GREP' >> "conftest.nl"
4282 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest. out" 2>/dev/null || break
4283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4284 as_fn_arith $ac_count + 1 && ac_count=$as_val
4285 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4286 # Best one so far, save it but keep looking for a better one
4287 ac_cv_path_GREP="$ac_path_GREP"
4288 ac_path_GREP_max=$ac_count
4289 fi
4290 # 10*(2^10) chars as input seems more than enough
4291 test $ac_count -gt 10 && break
4292 done
4293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4294 esac
4295
4296 $ac_path_GREP_found && break 3
4297 done
4298 done
4299 done
4300 IFS=$as_save_IFS
4301 if test -z "$ac_cv_path_GREP"; then
4302 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/us r/xpg4/bin" "$LINENO" 5
4303 fi
4304 else
4305 ac_cv_path_GREP=$GREP
4306 fi
4307
4308 fi
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4310 $as_echo "$ac_cv_path_GREP" >&6; }
4311 GREP="$ac_cv_path_GREP"
4312
4313
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4315 $as_echo_n "checking for egrep... " >&6; }
4316 if ${ac_cv_path_EGREP+:} false; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4320 then ac_cv_path_EGREP="$GREP -E"
4321 else
4322 if test -z "$EGREP"; then
4323 ac_path_EGREP_found=false
4324 # Loop through the user's path and test for each of PROGNAME-LIST
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4327 do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_prog in egrep; do
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4333 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4334 # Check for GNU ac_path_EGREP and select it if it is found.
4335 # Check for GNU $ac_path_EGREP
4336 case `"$ac_path_EGREP" --version 2>&1` in
4337 *GNU*)
4338 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4339 *)
4340 ac_count=0
4341 $as_echo_n 0123456789 >"conftest.in"
4342 while :
4343 do
4344 cat "conftest.in" "conftest.in" >"conftest.tmp"
4345 mv "conftest.tmp" "conftest.in"
4346 cp "conftest.in" "conftest.nl"
4347 $as_echo 'EGREP' >> "conftest.nl"
4348 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || bre ak
4349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4350 as_fn_arith $ac_count + 1 && ac_count=$as_val
4351 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4352 # Best one so far, save it but keep looking for a better one
4353 ac_cv_path_EGREP="$ac_path_EGREP"
4354 ac_path_EGREP_max=$ac_count
4355 fi
4356 # 10*(2^10) chars as input seems more than enough
4357 test $ac_count -gt 10 && break
4358 done
4359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4360 esac
4361
4362 $ac_path_EGREP_found && break 3
4363 done
4364 done
4365 done
4366 IFS=$as_save_IFS
4367 if test -z "$ac_cv_path_EGREP"; then
4368 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/u sr/xpg4/bin" "$LINENO" 5
4369 fi
4370 else
4371 ac_cv_path_EGREP=$EGREP
4372 fi
4373
4374 fi
4375 fi
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4377 $as_echo "$ac_cv_path_EGREP" >&6; }
4378 EGREP="$ac_cv_path_EGREP"
4379
4380
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4382 $as_echo_n "checking for fgrep... " >&6; }
4383 if ${ac_cv_path_FGREP+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4387 then ac_cv_path_FGREP="$GREP -F"
4388 else
4389 if test -z "$FGREP"; then
4390 ac_path_FGREP_found=false
4391 # Loop through the user's path and test for each of PROGNAME-LIST
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4394 do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_prog in fgrep; do
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4400 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4401 # Check for GNU ac_path_FGREP and select it if it is found.
4402 # Check for GNU $ac_path_FGREP
4403 case `"$ac_path_FGREP" --version 2>&1` in
4404 *GNU*)
4405 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4406 *)
4407 ac_count=0
4408 $as_echo_n 0123456789 >"conftest.in"
4409 while :
4410 do
4411 cat "conftest.in" "conftest.in" >"conftest.tmp"
4412 mv "conftest.tmp" "conftest.in"
4413 cp "conftest.in" "conftest.nl"
4414 $as_echo 'FGREP' >> "conftest.nl"
4415 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4417 as_fn_arith $ac_count + 1 && ac_count=$as_val
4418 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4419 # Best one so far, save it but keep looking for a better one
4420 ac_cv_path_FGREP="$ac_path_FGREP"
4421 ac_path_FGREP_max=$ac_count
4422 fi
4423 # 10*(2^10) chars as input seems more than enough
4424 test $ac_count -gt 10 && break
4425 done
4426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4427 esac
4428
4429 $ac_path_FGREP_found && break 3
4430 done
4431 done
4432 done
4433 IFS=$as_save_IFS
4434 if test -z "$ac_cv_path_FGREP"; then
4435 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/u sr/xpg4/bin" "$LINENO" 5
4436 fi
4437 else
4438 ac_cv_path_FGREP=$FGREP
4439 fi
4440
4441 fi
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4444 $as_echo "$ac_cv_path_FGREP" >&6; }
4445 FGREP="$ac_cv_path_FGREP"
4446
4447
4448 test -z "$GREP" && GREP=grep
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468 # Check whether --with-gnu-ld was given.
4469 if test "${with_gnu_ld+set}" = set; then :
4470 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4471 else
4472 with_gnu_ld=no
4473 fi
4474
4475 ac_prog=ld
4476 if test "$GCC" = yes; then
4477 # Check if gcc -print-prog-name=ld gives a path.
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4479 $as_echo_n "checking for ld used by $CC... " >&6; }
4480 case $host in
4481 *-*-mingw*)
4482 # gcc leaves a trailing carriage return which upsets mingw
4483 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4484 *)
4485 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4486 esac
4487 case $ac_prog in
4488 # Accept absolute paths.
4489 [\\/]* | ?:[\\/]*)
4490 re_direlt='/[^/][^/]*/\.\./'
4491 # Canonicalize the pathname of ld
4492 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4493 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4494 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4495 done
4496 test -z "$LD" && LD="$ac_prog"
4497 ;;
4498 "")
4499 # If it fails, then pretend we aren't using GCC.
4500 ac_prog=ld
4501 ;;
4502 *)
4503 # If it is relative, then search for the first ld in PATH.
4504 with_gnu_ld=unknown
4505 ;;
4506 esac
4507 elif test "$with_gnu_ld" = yes; then
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4509 $as_echo_n "checking for GNU ld... " >&6; }
4510 else
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4512 $as_echo_n "checking for non-GNU ld... " >&6; }
4513 fi
4514 if ${lt_cv_path_LD+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 if test -z "$LD"; then
4518 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4519 for ac_dir in $PATH; do
4520 IFS="$lt_save_ifs"
4521 test -z "$ac_dir" && ac_dir=.
4522 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4523 lt_cv_path_LD="$ac_dir/$ac_prog"
4524 # Check to see if the program is GNU ld. I'd rather use --version,
4525 # but apparently some variants of GNU ld only accept -v.
4526 # Break only if it was the GNU/non-GNU ld that we prefer.
4527 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4528 *GNU* | *'with BFD'*)
4529 test "$with_gnu_ld" != no && break
4530 ;;
4531 *)
4532 test "$with_gnu_ld" != yes && break
4533 ;;
4534 esac
4535 fi
4536 done
4537 IFS="$lt_save_ifs"
4538 else
4539 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4540 fi
4541 fi
4542
4543 LD="$lt_cv_path_LD"
4544 if test -n "$LD"; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4546 $as_echo "$LD" >&6; }
4547 else
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4550 fi
4551 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4553 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4554 if ${lt_cv_prog_gnu_ld+:} false; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4558 case `$LD -v 2>&1 </dev/null` in
4559 *GNU* | *'with BFD'*)
4560 lt_cv_prog_gnu_ld=yes
4561 ;;
4562 *)
4563 lt_cv_prog_gnu_ld=no
4564 ;;
4565 esac
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4568 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4569 with_gnu_ld=$lt_cv_prog_gnu_ld
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4580 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4581 if ${lt_cv_path_NM+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 if test -n "$NM"; then
4585 # Let the user override the test.
4586 lt_cv_path_NM="$NM"
4587 else
4588 lt_nm_to_check="${ac_tool_prefix}nm"
4589 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4590 lt_nm_to_check="$lt_nm_to_check nm"
4591 fi
4592 for lt_tmp_nm in $lt_nm_to_check; do
4593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4594 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4595 IFS="$lt_save_ifs"
4596 test -z "$ac_dir" && ac_dir=.
4597 tmp_nm="$ac_dir/$lt_tmp_nm"
4598 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4599 # Check to see if the nm accepts a BSD-compat flag.
4600 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4601 # nm: unknown option "B" ignored
4602 # Tru64's nm complains that /dev/null is an invalid object file
4603 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4604 */dev/null* | *'Invalid file or object type'*)
4605 lt_cv_path_NM="$tmp_nm -B"
4606 break
4607 ;;
4608 *)
4609 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4610 */dev/null*)
4611 lt_cv_path_NM="$tmp_nm -p"
4612 break
4613 ;;
4614 *)
4615 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4616 continue # so that we can try to find one that supports BSD flags
4617 ;;
4618 esac
4619 ;;
4620 esac
4621 fi
4622 done
4623 IFS="$lt_save_ifs"
4624 done
4625 : ${lt_cv_path_NM=no}
4626 fi
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4629 $as_echo "$lt_cv_path_NM" >&6; }
4630 if test "$lt_cv_path_NM" != "no"; then
4631 NM="$lt_cv_path_NM"
4632 else
4633 # Didn't find any BSD compatible name lister, look for dumpbin.
4634 if test -n "$DUMPBIN"; then :
4635 # Let the user override the test.
4636 else
4637 if test -n "$ac_tool_prefix"; then
4638 for ac_prog in dumpbin "link -dump"
4639 do
4640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
4641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_prog_DUMPBIN+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if test -n "$DUMPBIN"; then
4648 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
4657 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4659 break 2
4660 fi
4661 done
4662 done
4663 IFS=$as_save_IFS
4664
4665 fi
4666 fi
4667 DUMPBIN=$ac_cv_prog_DUMPBIN
4668 if test -n "$DUMPBIN"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4670 $as_echo "$DUMPBIN" >&6; }
4671 else
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4674 fi
4675
4676
4677 test -n "$DUMPBIN" && break
4678 done
4679 fi
4680 if test -z "$DUMPBIN"; then
4681 ac_ct_DUMPBIN=$DUMPBIN
4682 for ac_prog in dumpbin "link -dump"
4683 do
4684 # Extract the first word of "$ac_prog", so it can be a program name with args.
4685 set dummy $ac_prog; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 if test -n "$ac_ct_DUMPBIN"; then
4692 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
4701 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4703 break 2
4704 fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4712 if test -n "$ac_ct_DUMPBIN"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4714 $as_echo "$ac_ct_DUMPBIN" >&6; }
4715 else
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720
4721 test -n "$ac_ct_DUMPBIN" && break
4722 done
4723
4724 if test "x$ac_ct_DUMPBIN" = x; then
4725 DUMPBIN=":"
4726 else
4727 case $cross_compiling:$ac_tool_warned in
4728 yes:)
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
4731 ac_tool_warned=yes ;;
4732 esac
4733 DUMPBIN=$ac_ct_DUMPBIN
4734 fi
4735 fi
4736
4737 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4738 *COFF*)
4739 DUMPBIN="$DUMPBIN -symbols"
4740 ;;
4741 *)
4742 DUMPBIN=:
4743 ;;
4744 esac
4745 fi
4746
4747 if test "$DUMPBIN" != ":"; then
4748 NM="$DUMPBIN"
4749 fi
4750 fi
4751 test -z "$NM" && NM=nm
4752
4753
4754
4755
4756
4757
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interfac e" >&5
4759 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4760 if ${lt_cv_nm_interface+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 lt_cv_nm_interface="BSD nm"
4764 echo "int some_variable = 0;" > conftest.$ac_ext
4765 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4766 (eval "$ac_compile" 2>conftest.err)
4767 cat conftest.err >&5
4768 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4769 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4770 cat conftest.err >&5
4771 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4772 cat conftest.out >&5
4773 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4774 lt_cv_nm_interface="MS dumpbin"
4775 fi
4776 rm -f conftest*
4777 fi
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4779 $as_echo "$lt_cv_nm_interface" >&6; }
4780
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4782 $as_echo_n "checking whether ln -s works... " >&6; }
4783 LN_S=$as_ln_s
4784 if test "$LN_S" = "ln -s"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4786 $as_echo "yes" >&6; }
4787 else
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4789 $as_echo "no, using $LN_S" >&6; }
4790 fi
4791
4792 # find the maximum length of command line arguments
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4794 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4795 if ${lt_cv_sys_max_cmd_len+:} false; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 i=0
4799 teststring="ABCD"
4800
4801 case $build_os in
4802 msdosdjgpp*)
4803 # On DJGPP, this test can blow up pretty badly due to problems in libc
4804 # (any single argument exceeding 2000 bytes causes a buffer overrun
4805 # during glob expansion). Even if it were fixed, the result of this
4806 # check would be larger than it should be.
4807 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4808 ;;
4809
4810 gnu*)
4811 # Under GNU Hurd, this test is not required because there is
4812 # no limit to the length of command line arguments.
4813 # Libtool will interpret -1 as no limit whatsoever
4814 lt_cv_sys_max_cmd_len=-1;
4815 ;;
4816
4817 cygwin* | mingw* | cegcc*)
4818 # On Win9x/ME, this test blows up -- it succeeds, but takes
4819 # about 5 minutes as the teststring grows exponentially.
4820 # Worse, since 9x/ME are not pre-emptively multitasking,
4821 # you end up with a "frozen" computer, even though with patience
4822 # the test eventually succeeds (with a max line length of 256k).
4823 # Instead, let's just punt: use the minimum linelength reported by
4824 # all of the supported platforms: 8192 (on NT/2K/XP).
4825 lt_cv_sys_max_cmd_len=8192;
4826 ;;
4827
4828 mint*)
4829 # On MiNT this can take a long time and run out of memory.
4830 lt_cv_sys_max_cmd_len=8192;
4831 ;;
4832
4833 amigaos*)
4834 # On AmigaOS with pdksh, this test takes hours, literally.
4835 # So we just punt and use a minimum line length of 8192.
4836 lt_cv_sys_max_cmd_len=8192;
4837 ;;
4838
4839 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4840 # This has been around since 386BSD, at least. Likely further.
4841 if test -x /sbin/sysctl; then
4842 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4843 elif test -x /usr/sbin/sysctl; then
4844 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4845 else
4846 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4847 fi
4848 # And add a safety zone
4849 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4851 ;;
4852
4853 interix*)
4854 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4855 lt_cv_sys_max_cmd_len=196608
4856 ;;
4857
4858 os2*)
4859 # The test takes a long time on OS/2.
4860 lt_cv_sys_max_cmd_len=8192
4861 ;;
4862
4863 osf*)
4864 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4865 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4866 # nice to cause kernel panics so lets avoid the loop below.
4867 # First set a reasonable default.
4868 lt_cv_sys_max_cmd_len=16384
4869 #
4870 if test -x /sbin/sysconfig; then
4871 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4872 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4873 esac
4874 fi
4875 ;;
4876 sco3.2v5*)
4877 lt_cv_sys_max_cmd_len=102400
4878 ;;
4879 sysv5* | sco5v6* | sysv4.2uw2*)
4880 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4881 if test -n "$kargmax"; then
4882 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4883 else
4884 lt_cv_sys_max_cmd_len=32768
4885 fi
4886 ;;
4887 *)
4888 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4889 if test -n "$lt_cv_sys_max_cmd_len"; then
4890 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4891 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4892 else
4893 # Make teststring a little bigger before we do anything with it.
4894 # a 1K string should be a reasonable start.
4895 for i in 1 2 3 4 5 6 7 8 ; do
4896 teststring=$teststring$teststring
4897 done
4898 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4899 # If test is not a shell built-in, we'll probably end up computing a
4900 # maximum length that is only half of the actual maximum length, but
4901 # we can't tell.
4902 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4903 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4904 test $i != 17 # 1/2 MB should be enough
4905 do
4906 i=`expr $i + 1`
4907 teststring=$teststring$teststring
4908 done
4909 # Only check the string length outside the loop.
4910 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4911 teststring=
4912 # Add a significant safety factor because C++ compilers can tack on
4913 # massive amounts of additional arguments before passing them to the
4914 # linker. It appears as though 1/2 is a usable value.
4915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4916 fi
4917 ;;
4918 esac
4919
4920 fi
4921
4922 if test -n $lt_cv_sys_max_cmd_len ; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4924 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4925 else
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4927 $as_echo "none" >&6; }
4928 fi
4929 max_cmd_len=$lt_cv_sys_max_cmd_len
4930
4931
4932
4933
4934
4935
4936 : ${CP="cp -f"}
4937 : ${MV="mv -f"}
4938 : ${RM="rm -f"}
4939
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4941 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4942 # Try some XSI features
4943 xsi_shell=no
4944 ( _lt_dummy="a/b/c"
4945 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy "}, \
4946 = c,a/b,b/c, \
4947 && eval 'test $(( 1 + 1 )) -eq 2 \
4948 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4949 && xsi_shell=yes
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4951 $as_echo "$xsi_shell" >&6; }
4952
4953
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4955 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4956 lt_shell_append=no
4957 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4958 >/dev/null 2>&1 \
4959 && lt_shell_append=yes
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4961 $as_echo "$lt_shell_append" >&6; }
4962
4963
4964 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4965 lt_unset=unset
4966 else
4967 lt_unset=false
4968 fi
4969
4970
4971
4972
4973
4974 # test EBCDIC or ASCII
4975 case `echo X|tr X '\101'` in
4976 A) # ASCII based system
4977 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4978 lt_SP2NL='tr \040 \012'
4979 lt_NL2SP='tr \015\012 \040\040'
4980 ;;
4981 *) # EBCDIC based system
4982 lt_SP2NL='tr \100 \n'
4983 lt_NL2SP='tr \r\n \100\100'
4984 ;;
4985 esac
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file nam es to $host format" >&5
4996 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4997 if ${lt_cv_to_host_file_cmd+:} false; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 case $host in
5001 *-*-mingw* )
5002 case $build in
5003 *-*-mingw* ) # actually msys
5004 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5005 ;;
5006 *-*-cygwin* )
5007 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5008 ;;
5009 * ) # otherwise, assume *nix
5010 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5011 ;;
5012 esac
5013 ;;
5014 *-*-cygwin* )
5015 case $build in
5016 *-*-mingw* ) # actually msys
5017 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5018 ;;
5019 *-*-cygwin* )
5020 lt_cv_to_host_file_cmd=func_convert_file_noop
5021 ;;
5022 * ) # otherwise, assume *nix
5023 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5024 ;;
5025 esac
5026 ;;
5027 * ) # unhandled hosts (and "normal" native builds)
5028 lt_cv_to_host_file_cmd=func_convert_file_noop
5029 ;;
5030 esac
5031
5032 fi
5033
5034 to_host_file_cmd=$lt_cv_to_host_file_cmd
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5036 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5037
5038
5039
5040
5041
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file nam es to toolchain format" >&5
5043 $as_echo_n "checking how to convert $build file names to toolchain format... " > &6; }
5044 if ${lt_cv_to_tool_file_cmd+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 #assume ordinary cross tools, or native build.
5048 lt_cv_to_tool_file_cmd=func_convert_file_noop
5049 case $host in
5050 *-*-mingw* )
5051 case $build in
5052 *-*-mingw* ) # actually msys
5053 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5054 ;;
5055 esac
5056 ;;
5057 esac
5058
5059 fi
5060
5061 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5063 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5064
5065
5066
5067
5068
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload objec t files" >&5
5070 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5071 if ${lt_cv_ld_reload_flag+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 lt_cv_ld_reload_flag='-r'
5075 fi
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5077 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5078 reload_flag=$lt_cv_ld_reload_flag
5079 case $reload_flag in
5080 "" | " "*) ;;
5081 *) reload_flag=" $reload_flag" ;;
5082 esac
5083 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5084 case $host_os in
5085 cygwin* | mingw* | pw32* | cegcc*)
5086 if test "$GCC" != yes; then
5087 reload_cmds=false
5088 fi
5089 ;;
5090 darwin*)
5091 if test "$GCC" = yes; then
5092 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5093 else
5094 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5095 fi
5096 ;;
5097 esac
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107 if test -n "$ac_tool_prefix"; then
5108 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5109 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111 $as_echo_n "checking for $ac_word... " >&6; }
5112 if ${ac_cv_prog_OBJDUMP+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114 else
5115 if test -n "$OBJDUMP"; then
5116 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5117 else
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5120 do
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5125 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5127 break 2
5128 fi
5129 done
5130 done
5131 IFS=$as_save_IFS
5132
5133 fi
5134 fi
5135 OBJDUMP=$ac_cv_prog_OBJDUMP
5136 if test -n "$OBJDUMP"; then
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5138 $as_echo "$OBJDUMP" >&6; }
5139 else
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 $as_echo "no" >&6; }
5142 fi
5143
5144
5145 fi
5146 if test -z "$ac_cv_prog_OBJDUMP"; then
5147 ac_ct_OBJDUMP=$OBJDUMP
5148 # Extract the first word of "objdump", so it can be a program name with args.
5149 set dummy objdump; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if test -n "$ac_ct_OBJDUMP"; then
5156 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5165 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5167 break 2
5168 fi
5169 done
5170 done
5171 IFS=$as_save_IFS
5172
5173 fi
5174 fi
5175 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5176 if test -n "$ac_ct_OBJDUMP"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5178 $as_echo "$ac_ct_OBJDUMP" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5182 fi
5183
5184 if test "x$ac_ct_OBJDUMP" = x; then
5185 OBJDUMP="false"
5186 else
5187 case $cross_compiling:$ac_tool_warned in
5188 yes:)
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
5191 ac_tool_warned=yes ;;
5192 esac
5193 OBJDUMP=$ac_ct_OBJDUMP
5194 fi
5195 else
5196 OBJDUMP="$ac_cv_prog_OBJDUMP"
5197 fi
5198
5199 test -z "$OBJDUMP" && OBJDUMP=objdump
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent lib raries" >&5
5210 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5211 if ${lt_cv_deplibs_check_method+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 lt_cv_file_magic_cmd='$MAGIC_CMD'
5215 lt_cv_file_magic_test_file=
5216 lt_cv_deplibs_check_method='unknown'
5217 # Need to set the preceding variable on all platforms that support
5218 # interlibrary dependencies.
5219 # 'none' -- dependencies not supported.
5220 # `unknown' -- same as none, but documents that we really don't know.
5221 # 'pass_all' -- all dependencies passed with no checks.
5222 # 'test_compile' -- check by making test program.
5223 # 'file_magic [[regex]]' -- check by looking for files in library path
5224 # which responds to the $file_magic_cmd with a given extended regex.
5225 # If you have `file' or equivalent on your system and you're not sure
5226 # whether `pass_all' will *always* work, you probably want this one.
5227
5228 case $host_os in
5229 aix[4-9]*)
5230 lt_cv_deplibs_check_method=pass_all
5231 ;;
5232
5233 beos*)
5234 lt_cv_deplibs_check_method=pass_all
5235 ;;
5236
5237 bsdi[45]*)
5238 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared obje ct|dynamic lib)'
5239 lt_cv_file_magic_cmd='/usr/bin/file -L'
5240 lt_cv_file_magic_test_file=/shlib/libc.so
5241 ;;
5242
5243 cygwin*)
5244 # func_win32_libid is a shell function defined in ltmain.sh
5245 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5246 lt_cv_file_magic_cmd='func_win32_libid'
5247 ;;
5248
5249 mingw* | pw32*)
5250 # Base MSYS/MinGW do not provide the 'file' command needed by
5251 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5252 # unless we find 'file', for example because we are cross-compiling.
5253 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5254 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5255 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5256 lt_cv_file_magic_cmd='func_win32_libid'
5257 else
5258 # Keep this pattern in sync with the one in func_win32_libid.
5259 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture : i386)?|pe-arm-wince|pe-x86-64)'
5260 lt_cv_file_magic_cmd='$OBJDUMP -f'
5261 fi
5262 ;;
5263
5264 cegcc*)
5265 # use the weaker test based on 'objdump'. See mingw*.
5266 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architect ure: arm)?'
5267 lt_cv_file_magic_cmd='$OBJDUMP -f'
5268 ;;
5269
5270 darwin* | rhapsody*)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
5273
5274 freebsd* | dragonfly*)
5275 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5276 case $host_cpu in
5277 i*86 )
5278 # Not sure whether the presence of OpenBSD here was a mistake.
5279 # Let's accept both of them until this is cleared up.
5280 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]8 6 (compact )?demand paged shared library'
5281 lt_cv_file_magic_cmd=/usr/bin/file
5282 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5283 ;;
5284 esac
5285 else
5286 lt_cv_deplibs_check_method=pass_all
5287 fi
5288 ;;
5289
5290 gnu*)
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
5293
5294 haiku*)
5295 lt_cv_deplibs_check_method=pass_all
5296 ;;
5297
5298 hpux10.20* | hpux11*)
5299 lt_cv_file_magic_cmd=/usr/bin/file
5300 case $host_cpu in
5301 ia64*)
5302 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sha red object file - IA64'
5303 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5304 ;;
5305 hppa*64*)
5306 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]'
5307 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5308 ;;
5309 *)
5310 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9] ) shared library'
5311 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5312 ;;
5313 esac
5314 ;;
5315
5316 interix[3-9]*)
5317 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5319 ;;
5320
5321 irix5* | irix6* | nonstopux*)
5322 case $LD in
5323 *-32|*"-32 ") libmagic=32-bit;;
5324 *-n32|*"-n32 ") libmagic=N32;;
5325 *-64|*"-64 ") libmagic=64-bit;;
5326 *) libmagic=never-match;;
5327 esac
5328 lt_cv_deplibs_check_method=pass_all
5329 ;;
5330
5331 # This must be glibc/ELF.
5332 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5333 lt_cv_deplibs_check_method=pass_all
5334 ;;
5335
5336 netbsd*)
5337 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi c\.a)$'
5339 else
5340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5341 fi
5342 ;;
5343
5344 newos6*)
5345 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable| dynamic lib)'
5346 lt_cv_file_magic_cmd=/usr/bin/file
5347 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5348 ;;
5349
5350 *nto* | *qnx*)
5351 lt_cv_deplibs_check_method=pass_all
5352 ;;
5353
5354 openbsd*)
5355 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host _cpu" = "openbsd2.8-powerpc"; then
5356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.s o|_pic\.a)$'
5357 else
5358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi c\.a)$'
5359 fi
5360 ;;
5361
5362 osf3* | osf4* | osf5*)
5363 lt_cv_deplibs_check_method=pass_all
5364 ;;
5365
5366 rdos*)
5367 lt_cv_deplibs_check_method=pass_all
5368 ;;
5369
5370 solaris*)
5371 lt_cv_deplibs_check_method=pass_all
5372 ;;
5373
5374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5375 lt_cv_deplibs_check_method=pass_all
5376 ;;
5377
5378 sysv4 | sysv4.3*)
5379 case $host_vendor in
5380 motorola)
5381 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared ob ject|dynamic lib) M[0-9][0-9]* Version [0-9]'
5382 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5383 ;;
5384 ncr)
5385 lt_cv_deplibs_check_method=pass_all
5386 ;;
5387 sequent)
5388 lt_cv_file_magic_cmd='/bin/file'
5389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared ob ject|dynamic lib )'
5390 ;;
5391 sni)
5392 lt_cv_file_magic_cmd='/bin/file'
5393 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic li b"
5394 lt_cv_file_magic_test_file=/lib/libc.so
5395 ;;
5396 siemens)
5397 lt_cv_deplibs_check_method=pass_all
5398 ;;
5399 pc)
5400 lt_cv_deplibs_check_method=pass_all
5401 ;;
5402 esac
5403 ;;
5404
5405 tpf*)
5406 lt_cv_deplibs_check_method=pass_all
5407 ;;
5408 esac
5409
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >& 5
5412 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5413
5414 file_magic_glob=
5415 want_nocaseglob=no
5416 if test "$build" = "$host"; then
5417 case $host_os in
5418 mingw* | pw32*)
5419 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5420 want_nocaseglob=yes
5421 else
5422 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5423 fi
5424 ;;
5425 esac
5426 fi
5427
5428 file_magic_cmd=$lt_cv_file_magic_cmd
5429 deplibs_check_method=$lt_cv_deplibs_check_method
5430 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453 if test -n "$ac_tool_prefix"; then
5454 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5455 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if ${ac_cv_prog_DLLTOOL+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 if test -n "$DLLTOOL"; then
5462 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5471 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5473 break 2
5474 fi
5475 done
5476 done
5477 IFS=$as_save_IFS
5478
5479 fi
5480 fi
5481 DLLTOOL=$ac_cv_prog_DLLTOOL
5482 if test -n "$DLLTOOL"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5484 $as_echo "$DLLTOOL" >&6; }
5485 else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489
5490
5491 fi
5492 if test -z "$ac_cv_prog_DLLTOOL"; then
5493 ac_ct_DLLTOOL=$DLLTOOL
5494 # Extract the first word of "dlltool", so it can be a program name with args.
5495 set dummy dlltool; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5501 if test -n "$ac_ct_DLLTOOL"; then
5502 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5511 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5513 break 2
5514 fi
5515 done
5516 done
5517 IFS=$as_save_IFS
5518
5519 fi
5520 fi
5521 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5522 if test -n "$ac_ct_DLLTOOL"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5524 $as_echo "$ac_ct_DLLTOOL" >&6; }
5525 else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5528 fi
5529
5530 if test "x$ac_ct_DLLTOOL" = x; then
5531 DLLTOOL="false"
5532 else
5533 case $cross_compiling:$ac_tool_warned in
5534 yes:)
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
5537 ac_tool_warned=yes ;;
5538 esac
5539 DLLTOOL=$ac_ct_DLLTOOL
5540 fi
5541 else
5542 DLLTOOL="$ac_cv_prog_DLLTOOL"
5543 fi
5544
5545 test -z "$DLLTOOL" && DLLTOOL=dlltool
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and l ink libraries" >&5
5557 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5558 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 lt_cv_sharedlib_from_linklib_cmd='unknown'
5562
5563 case $host_os in
5564 cygwin* | mingw* | pw32* | cegcc*)
5565 # two different shell functions defined in ltmain.sh
5566 # decide which to use based on capabilities of $DLLTOOL
5567 case `$DLLTOOL --help 2>&1` in
5568 *--identify-strict*)
5569 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5570 ;;
5571 *)
5572 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5573 ;;
5574 esac
5575 ;;
5576 *)
5577 # fallback: assume linklib IS sharedlib
5578 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5579 ;;
5580 esac
5581
5582 fi
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_c md" >&5
5584 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5585 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5586 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5587
5588
5589
5590
5591
5592
5593
5594
5595 if test -n "$ac_tool_prefix"; then
5596 for ac_prog in ar
5597 do
5598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
5599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_AR+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 if test -n "$AR"; then
5606 ac_cv_prog_AR="$AR" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5615 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5617 break 2
5618 fi
5619 done
5620 done
5621 IFS=$as_save_IFS
5622
5623 fi
5624 fi
5625 AR=$ac_cv_prog_AR
5626 if test -n "$AR"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5628 $as_echo "$AR" >&6; }
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632 fi
5633
5634
5635 test -n "$AR" && break
5636 done
5637 fi
5638 if test -z "$AR"; then
5639 ac_ct_AR=$AR
5640 for ac_prog in ar
5641 do
5642 # Extract the first word of "$ac_prog", so it can be a program name with args.
5643 set dummy $ac_prog; ac_word=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 if test -n "$ac_ct_AR"; then
5650 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5654 do
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5659 ac_cv_prog_ac_ct_AR="$ac_prog"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5661 break 2
5662 fi
5663 done
5664 done
5665 IFS=$as_save_IFS
5666
5667 fi
5668 fi
5669 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5670 if test -n "$ac_ct_AR"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5672 $as_echo "$ac_ct_AR" >&6; }
5673 else
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5676 fi
5677
5678
5679 test -n "$ac_ct_AR" && break
5680 done
5681
5682 if test "x$ac_ct_AR" = x; then
5683 AR="false"
5684 else
5685 case $cross_compiling:$ac_tool_warned in
5686 yes:)
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
5689 ac_tool_warned=yes ;;
5690 esac
5691 AR=$ac_ct_AR
5692 fi
5693 fi
5694
5695 : ${AR=ar}
5696 : ${AR_FLAGS=cru}
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >& 5
5709 $as_echo_n "checking for archiver @FILE support... " >&6; }
5710 if ${lt_cv_ar_at_file+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 lt_cv_ar_at_file=no
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716
5717 int
5718 main ()
5719 {
5720
5721 ;
5722 return 0;
5723 }
5724 _ACEOF
5725 if ac_fn_c_try_compile "$LINENO"; then :
5726 echo conftest.$ac_objext > conftest.lst
5727 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5729 (eval $lt_ar_try) 2>&5
5730 ac_status=$?
5731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5732 test $ac_status = 0; }
5733 if test "$ac_status" -eq 0; then
5734 # Ensure the archiver fails upon bogus file names.
5735 rm -f conftest.$ac_objext libconftest.a
5736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5737 (eval $lt_ar_try) 2>&5
5738 ac_status=$?
5739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5740 test $ac_status = 0; }
5741 if test "$ac_status" -ne 0; then
5742 lt_cv_ar_at_file=@
5743 fi
5744 fi
5745 rm -f conftest.* libconftest.a
5746
5747 fi
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749
5750 fi
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5752 $as_echo "$lt_cv_ar_at_file" >&6; }
5753
5754 if test "x$lt_cv_ar_at_file" = xno; then
5755 archiver_list_spec=
5756 else
5757 archiver_list_spec=$lt_cv_ar_at_file
5758 fi
5759
5760
5761
5762
5763
5764
5765
5766 if test -n "$ac_tool_prefix"; then
5767 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program n ame with args.
5768 set dummy ${ac_tool_prefix}strip; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if ${ac_cv_prog_STRIP+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 if test -n "$STRIP"; then
5775 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5784 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5786 break 2
5787 fi
5788 done
5789 done
5790 IFS=$as_save_IFS
5791
5792 fi
5793 fi
5794 STRIP=$ac_cv_prog_STRIP
5795 if test -n "$STRIP"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5797 $as_echo "$STRIP" >&6; }
5798 else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5801 fi
5802
5803
5804 fi
5805 if test -z "$ac_cv_prog_STRIP"; then
5806 ac_ct_STRIP=$STRIP
5807 # Extract the first word of "strip", so it can be a program name with args.
5808 set dummy strip; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 if test -n "$ac_ct_STRIP"; then
5815 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5824 ac_cv_prog_ac_ct_STRIP="strip"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5826 break 2
5827 fi
5828 done
5829 done
5830 IFS=$as_save_IFS
5831
5832 fi
5833 fi
5834 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5835 if test -n "$ac_ct_STRIP"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5837 $as_echo "$ac_ct_STRIP" >&6; }
5838 else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5841 fi
5842
5843 if test "x$ac_ct_STRIP" = x; then
5844 STRIP=":"
5845 else
5846 case $cross_compiling:$ac_tool_warned in
5847 yes:)
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
5850 ac_tool_warned=yes ;;
5851 esac
5852 STRIP=$ac_ct_STRIP
5853 fi
5854 else
5855 STRIP="$ac_cv_prog_STRIP"
5856 fi
5857
5858 test -z "$STRIP" && STRIP=:
5859
5860
5861
5862
5863
5864
5865 if test -n "$ac_tool_prefix"; then
5866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5867 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869 $as_echo_n "checking for $ac_word... " >&6; }
5870 if ${ac_cv_prog_RANLIB+:} false; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 if test -n "$RANLIB"; then
5874 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5883 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5885 break 2
5886 fi
5887 done
5888 done
5889 IFS=$as_save_IFS
5890
5891 fi
5892 fi
5893 RANLIB=$ac_cv_prog_RANLIB
5894 if test -n "$RANLIB"; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5896 $as_echo "$RANLIB" >&6; }
5897 else
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899 $as_echo "no" >&6; }
5900 fi
5901
5902
5903 fi
5904 if test -z "$ac_cv_prog_RANLIB"; then
5905 ac_ct_RANLIB=$RANLIB
5906 # Extract the first word of "ranlib", so it can be a program name with args.
5907 set dummy ranlib; ac_word=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 if test -n "$ac_ct_RANLIB"; then
5914 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5923 ac_cv_prog_ac_ct_RANLIB="ranlib"
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5925 break 2
5926 fi
5927 done
5928 done
5929 IFS=$as_save_IFS
5930
5931 fi
5932 fi
5933 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5934 if test -n "$ac_ct_RANLIB"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5936 $as_echo "$ac_ct_RANLIB" >&6; }
5937 else
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5940 fi
5941
5942 if test "x$ac_ct_RANLIB" = x; then
5943 RANLIB=":"
5944 else
5945 case $cross_compiling:$ac_tool_warned in
5946 yes:)
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
5949 ac_tool_warned=yes ;;
5950 esac
5951 RANLIB=$ac_ct_RANLIB
5952 fi
5953 else
5954 RANLIB="$ac_cv_prog_RANLIB"
5955 fi
5956
5957 test -z "$RANLIB" && RANLIB=:
5958
5959
5960
5961
5962
5963
5964 # Determine commands to create old-style static archives.
5965 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5966 old_postinstall_cmds='chmod 644 $oldlib'
5967 old_postuninstall_cmds=
5968
5969 if test -n "$RANLIB"; then
5970 case $host_os in
5971 openbsd*)
5972 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5973 ;;
5974 *)
5975 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5976 ;;
5977 esac
5978 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5979 fi
5980
5981 case $host_os in
5982 darwin*)
5983 lock_old_archive_extraction=yes ;;
5984 *)
5985 lock_old_archive_extraction=no ;;
5986 esac
5987
5988
5989
5990
5991
5992
5993
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 # If no C compiler was specified, use CC.
6027 LTCC=${LTCC-"$CC"}
6028
6029 # If no C compiler flags were specified, use CFLAGS.
6030 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6031
6032 # Allow CC to be a program name with arguments.
6033 compiler=$CC
6034
6035
6036 # Check for command to grab the raw symbol name followed by C symbol from nm.
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output fr om $compiler object" >&5
6038 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6039 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042
6043 # These are sane defaults that work on at least a few old systems.
6044 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6045
6046 # Character class describing NM global symbol codes.
6047 symcode='[BCDEGRST]'
6048
6049 # Regexp to match symbols that can be accessed directly from C.
6050 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6051
6052 # Define system-specific variables.
6053 case $host_os in
6054 aix*)
6055 symcode='[BCDT]'
6056 ;;
6057 cygwin* | mingw* | pw32* | cegcc*)
6058 symcode='[ABCDGISTW]'
6059 ;;
6060 hpux*)
6061 if test "$host_cpu" = ia64; then
6062 symcode='[ABCDEGRST]'
6063 fi
6064 ;;
6065 irix* | nonstopux*)
6066 symcode='[BCDEGRST]'
6067 ;;
6068 osf*)
6069 symcode='[BCDEGQRST]'
6070 ;;
6071 solaris*)
6072 symcode='[BDRT]'
6073 ;;
6074 sco3.2v5*)
6075 symcode='[DT]'
6076 ;;
6077 sysv4.2uw2*)
6078 symcode='[DT]'
6079 ;;
6080 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6081 symcode='[ABDT]'
6082 ;;
6083 sysv4)
6084 symcode='[DFNSTU]'
6085 ;;
6086 esac
6087
6088 # If we're using GNU nm, then use its standard symbol codes.
6089 case `$NM -V 2>&1` in
6090 *GNU* | *'with BFD'*)
6091 symcode='[ABCDGIRSTW]' ;;
6092 esac
6093
6094 # Transform an extracted symbol line into a proper C declaration.
6095 # Some systems (esp. on ia64) link data and code symbols differently,
6096 # so use this general approach.
6097 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6098
6099 # Transform an extracted symbol line into symbol name and symbol address
6100 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\ "\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6101 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ { \"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", ( void *) \&\2},/p'"
6102
6103 # Handle CRLF in mingw tool chain
6104 opt_cr=
6105 case $build_os in
6106 mingw*)
6107 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6108 ;;
6109 esac
6110
6111 # Try without a prefix underscore, then with it.
6112 for ac_symprfx in "" "_"; do
6113
6114 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6115 symxfrm="\\1 $ac_symprfx\\2 \\2"
6116
6117 # Write the raw and C identifiers.
6118 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6119 # Fake it for dumpbin and say T for any non-static function
6120 # and D for any global variable.
6121 # Also find C++ and __fastcall symbols from MSVC++,
6122 # which start with @ or ?.
6123 lt_cv_sys_global_symbol_pipe="$AWK '"\
6124 " {last_section=section; section=\$ 3};"\
6125 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6126 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6127 " \$ 0!~/External *\|/{next};"\
6128 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6129 " {if(hide[section]) next};"\
6130 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6131 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6132 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6133 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6134 " ' prfx=^$ac_symprfx"
6135 else
6136 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6137 fi
6138 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto /d'"
6139
6140 # Check to see that the pipe works correctly.
6141 pipe_works=no
6142
6143 rm -f conftest*
6144 cat > conftest.$ac_ext <<_LT_EOF
6145 #ifdef __cplusplus
6146 extern "C" {
6147 #endif
6148 char nm_test_var;
6149 void nm_test_func(void);
6150 void nm_test_func(void){}
6151 #ifdef __cplusplus
6152 }
6153 #endif
6154 int main(){nm_test_var='a';nm_test_func();return(0);}
6155 _LT_EOF
6156
6157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6158 (eval $ac_compile) 2>&5
6159 ac_status=$?
6160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6161 test $ac_status = 0; }; then
6162 # Now try to grab the symbols.
6163 nlist=conftest.nm
6164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objex t \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6165 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2> &5
6166 ac_status=$?
6167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6168 test $ac_status = 0; } && test -s "$nlist"; then
6169 # Try sorting and uniquifying the output.
6170 if sort "$nlist" | uniq > "$nlist"T; then
6171 mv -f "$nlist"T "$nlist"
6172 else
6173 rm -f "$nlist"T
6174 fi
6175
6176 # Make sure that we snagged all the symbols we need.
6177 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6178 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6179 cat <<_LT_EOF > conftest.$ac_ext
6180 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. * /
6181 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6182 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6183 relocations are performed -- see ld's documentation on pseudo-relocs. */
6184 # define LT_DLSYM_CONST
6185 #elif defined(__osf__)
6186 /* This system does not cope well with relocations in const data. */
6187 # define LT_DLSYM_CONST
6188 #else
6189 # define LT_DLSYM_CONST const
6190 #endif
6191
6192 #ifdef __cplusplus
6193 extern "C" {
6194 #endif
6195
6196 _LT_EOF
6197 # Now generate the symbol file.
6198 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main > > conftest.$ac_ext'
6199
6200 cat <<_LT_EOF >> conftest.$ac_ext
6201
6202 /* The mapping between symbol names and symbols. */
6203 LT_DLSYM_CONST struct {
6204 const char *name;
6205 void *address;
6206 }
6207 lt__PROGRAM__LTX_preloaded_symbols[] =
6208 {
6209 { "@PROGRAM@", (void *) 0 },
6210 _LT_EOF
6211 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6212 cat <<\_LT_EOF >> conftest.$ac_ext
6213 {0, (void *) 0}
6214 };
6215
6216 /* This works around a problem in FreeBSD linker */
6217 #ifdef FREEBSD_WORKAROUND
6218 static const void *lt_preloaded_setup() {
6219 return lt__PROGRAM__LTX_preloaded_symbols;
6220 }
6221 #endif
6222
6223 #ifdef __cplusplus
6224 }
6225 #endif
6226 _LT_EOF
6227 # Now try linking the two files.
6228 mv conftest.$ac_objext conftstm.$ac_objext
6229 lt_globsym_save_LIBS=$LIBS
6230 lt_globsym_save_CFLAGS=$CFLAGS
6231 LIBS="conftstm.$ac_objext"
6232 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } > &5
6234 (eval $ac_link) 2>&5
6235 ac_status=$?
6236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6237 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6238 pipe_works=yes
6239 fi
6240 LIBS=$lt_globsym_save_LIBS
6241 CFLAGS=$lt_globsym_save_CFLAGS
6242 else
6243 echo "cannot find nm_test_func in $nlist" >&5
6244 fi
6245 else
6246 echo "cannot find nm_test_var in $nlist" >&5
6247 fi
6248 else
6249 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6250 fi
6251 else
6252 echo "$progname: failed program was:" >&5
6253 cat conftest.$ac_ext >&5
6254 fi
6255 rm -rf conftest* conftst*
6256
6257 # Do not use the global_symbol_pipe unless it works.
6258 if test "$pipe_works" = yes; then
6259 break
6260 else
6261 lt_cv_sys_global_symbol_pipe=
6262 fi
6263 done
6264
6265 fi
6266
6267 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6268 lt_cv_sys_global_symbol_to_cdecl=
6269 fi
6270 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; the n
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6272 $as_echo "failed" >&6; }
6273 else
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6275 $as_echo "ok" >&6; }
6276 fi
6277
6278 # Response file support.
6279 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6280 nm_file_list_spec='@'
6281 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6282 nm_file_list_spec='@'
6283 fi
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6312 $as_echo_n "checking for sysroot... " >&6; }
6313
6314 # Check whether --with-sysroot was given.
6315 if test "${with_sysroot+set}" = set; then :
6316 withval=$with_sysroot;
6317 else
6318 with_sysroot=no
6319 fi
6320
6321
6322 lt_sysroot=
6323 case ${with_sysroot} in #(
6324 yes)
6325 if test "$GCC" = yes; then
6326 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6327 fi
6328 ;; #(
6329 /*)
6330 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6331 ;; #(
6332 no|'')
6333 ;; #(
6334 *)
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6336 $as_echo "${with_sysroot}" >&6; }
6337 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6338 ;;
6339 esac
6340
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6342 $as_echo "${lt_sysroot:-no}" >&6; }
6343
6344
6345
6346
6347
6348 # Check whether --enable-libtool-lock was given.
6349 if test "${enable_libtool_lock+set}" = set; then :
6350 enableval=$enable_libtool_lock;
6351 fi
6352
6353 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6354
6355 # Some flags need to be propagated to the compiler or linker for good
6356 # libtool support.
6357 case $host in
6358 ia64-*-hpux*)
6359 # Find out which ABI we are using.
6360 echo 'int i;' > conftest.$ac_ext
6361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6362 (eval $ac_compile) 2>&5
6363 ac_status=$?
6364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6365 test $ac_status = 0; }; then
6366 case `/usr/bin/file conftest.$ac_objext` in
6367 *ELF-32*)
6368 HPUX_IA64_MODE="32"
6369 ;;
6370 *ELF-64*)
6371 HPUX_IA64_MODE="64"
6372 ;;
6373 esac
6374 fi
6375 rm -rf conftest*
6376 ;;
6377 *-*-irix6*)
6378 # Find out which ABI we are using.
6379 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6381 (eval $ac_compile) 2>&5
6382 ac_status=$?
6383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6384 test $ac_status = 0; }; then
6385 if test "$lt_cv_prog_gnu_ld" = yes; then
6386 case `/usr/bin/file conftest.$ac_objext` in
6387 *32-bit*)
6388 LD="${LD-ld} -melf32bsmip"
6389 ;;
6390 *N32*)
6391 LD="${LD-ld} -melf32bmipn32"
6392 ;;
6393 *64-bit*)
6394 LD="${LD-ld} -melf64bmip"
6395 ;;
6396 esac
6397 else
6398 case `/usr/bin/file conftest.$ac_objext` in
6399 *32-bit*)
6400 LD="${LD-ld} -32"
6401 ;;
6402 *N32*)
6403 LD="${LD-ld} -n32"
6404 ;;
6405 *64-bit*)
6406 LD="${LD-ld} -64"
6407 ;;
6408 esac
6409 fi
6410 fi
6411 rm -rf conftest*
6412 ;;
6413
6414 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6415 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6416 # Find out which ABI we are using.
6417 echo 'int i;' > conftest.$ac_ext
6418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6419 (eval $ac_compile) 2>&5
6420 ac_status=$?
6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422 test $ac_status = 0; }; then
6423 case `/usr/bin/file conftest.o` in
6424 *32-bit*)
6425 case $host in
6426 x86_64-*kfreebsd*-gnu)
6427 LD="${LD-ld} -m elf_i386_fbsd"
6428 ;;
6429 x86_64-*linux*)
6430 LD="${LD-ld} -m elf_i386"
6431 ;;
6432 ppc64-*linux*|powerpc64-*linux*)
6433 LD="${LD-ld} -m elf32ppclinux"
6434 ;;
6435 s390x-*linux*)
6436 LD="${LD-ld} -m elf_s390"
6437 ;;
6438 sparc64-*linux*)
6439 LD="${LD-ld} -m elf32_sparc"
6440 ;;
6441 esac
6442 ;;
6443 *64-bit*)
6444 case $host in
6445 x86_64-*kfreebsd*-gnu)
6446 LD="${LD-ld} -m elf_x86_64_fbsd"
6447 ;;
6448 x86_64-*linux*)
6449 LD="${LD-ld} -m elf_x86_64"
6450 ;;
6451 ppc*-*linux*|powerpc*-*linux*)
6452 LD="${LD-ld} -m elf64ppc"
6453 ;;
6454 s390*-*linux*|s390*-*tpf*)
6455 LD="${LD-ld} -m elf64_s390"
6456 ;;
6457 sparc*-*linux*)
6458 LD="${LD-ld} -m elf64_sparc"
6459 ;;
6460 esac
6461 ;;
6462 esac
6463 fi
6464 rm -rf conftest*
6465 ;;
6466
6467 *-*-sco3.2v5*)
6468 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6469 SAVE_CFLAGS="$CFLAGS"
6470 CFLAGS="$CFLAGS -belf"
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6472 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6473 if ${lt_cv_cc_needs_belf+:} false; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 ac_ext=c
6477 ac_cpp='$CPP $CPPFLAGS'
6478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
6480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6481
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6484
6485 int
6486 main ()
6487 {
6488
6489 ;
6490 return 0;
6491 }
6492 _ACEOF
6493 if ac_fn_c_try_link "$LINENO"; then :
6494 lt_cv_cc_needs_belf=yes
6495 else
6496 lt_cv_cc_needs_belf=no
6497 fi
6498 rm -f core conftest.err conftest.$ac_objext \
6499 conftest$ac_exeext conftest.$ac_ext
6500 ac_ext=c
6501 ac_cpp='$CPP $CPPFLAGS'
6502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
6504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6505
6506 fi
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6508 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6509 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6510 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6511 CFLAGS="$SAVE_CFLAGS"
6512 fi
6513 ;;
6514 *-*solaris*)
6515 # Find out which ABI we are using.
6516 echo 'int i;' > conftest.$ac_ext
6517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6518 (eval $ac_compile) 2>&5
6519 ac_status=$?
6520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6521 test $ac_status = 0; }; then
6522 case `/usr/bin/file conftest.o` in
6523 *64-bit*)
6524 case $lt_cv_prog_gnu_ld in
6525 yes*)
6526 case $host in
6527 i?86-*-solaris*)
6528 LD="${LD-ld} -m elf_x86_64"
6529 ;;
6530 sparc*-*-solaris*)
6531 LD="${LD-ld} -m elf64_sparc"
6532 ;;
6533 esac
6534 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6535 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6536 LD="${LD-ld}_sol2"
6537 fi
6538 ;;
6539 *)
6540 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6541 LD="${LD-ld} -64"
6542 fi
6543 ;;
6544 esac
6545 ;;
6546 esac
6547 fi
6548 rm -rf conftest*
6549 ;;
6550 esac
6551
6552 need_locks="$enable_libtool_lock"
6553
6554 if test -n "$ac_tool_prefix"; then
6555 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6556 set dummy ${ac_tool_prefix}mt; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 if test -n "$MANIFEST_TOOL"; then
6563 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
6572 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
6574 break 2
6575 fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6583 if test -n "$MANIFEST_TOOL"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6585 $as_echo "$MANIFEST_TOOL" >&6; }
6586 else
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591
6592 fi
6593 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6594 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6595 # Extract the first word of "mt", so it can be a program name with args.
6596 set dummy mt; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 if test -n "$ac_ct_MANIFEST_TOOL"; then
6603 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
6612 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
6614 break 2
6615 fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6623 if test -n "$ac_ct_MANIFEST_TOOL"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6625 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6626 else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6629 fi
6630
6631 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6632 MANIFEST_TOOL=":"
6633 else
6634 case $cross_compiling:$ac_tool_warned in
6635 yes:)
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
6638 ac_tool_warned=yes ;;
6639 esac
6640 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6641 fi
6642 else
6643 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6644 fi
6645
6646 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifes t tool" >&5
6648 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6649 if ${lt_cv_path_mainfest_tool+:} false; then :
6650 $as_echo_n "(cached) " >&6
6651 else
6652 lt_cv_path_mainfest_tool=no
6653 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6654 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6655 cat conftest.err >&5
6656 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6657 lt_cv_path_mainfest_tool=yes
6658 fi
6659 rm -f conftest*
6660 fi
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6662 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6663 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6664 MANIFEST_TOOL=:
6665 fi
6666
6667
6668
6669
6670
6671
6672 case $host_os in
6673 rhapsody* | darwin*)
6674 if test -n "$ac_tool_prefix"; then
6675 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a progra m name with args.
6676 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678 $as_echo_n "checking for $ac_word... " >&6; }
6679 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 if test -n "$DSYMUTIL"; then
6683 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6684 else
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688 IFS=$as_save_IFS
6689 test -z "$as_dir" && as_dir=.
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
6692 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
6694 break 2
6695 fi
6696 done
6697 done
6698 IFS=$as_save_IFS
6699
6700 fi
6701 fi
6702 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6703 if test -n "$DSYMUTIL"; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6705 $as_echo "$DSYMUTIL" >&6; }
6706 else
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 $as_echo "no" >&6; }
6709 fi
6710
6711
6712 fi
6713 if test -z "$ac_cv_prog_DSYMUTIL"; then
6714 ac_ct_DSYMUTIL=$DSYMUTIL
6715 # Extract the first word of "dsymutil", so it can be a program name with args.
6716 set dummy dsymutil; ac_word=$2
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 if test -n "$ac_ct_DSYMUTIL"; then
6723 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
6732 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
6734 break 2
6735 fi
6736 done
6737 done
6738 IFS=$as_save_IFS
6739
6740 fi
6741 fi
6742 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6743 if test -n "$ac_ct_DSYMUTIL"; then
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6745 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6746 else
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 $as_echo "no" >&6; }
6749 fi
6750
6751 if test "x$ac_ct_DSYMUTIL" = x; then
6752 DSYMUTIL=":"
6753 else
6754 case $cross_compiling:$ac_tool_warned in
6755 yes:)
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
6758 ac_tool_warned=yes ;;
6759 esac
6760 DSYMUTIL=$ac_ct_DSYMUTIL
6761 fi
6762 else
6763 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6764 fi
6765
6766 if test -n "$ac_tool_prefix"; then
6767 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6768 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 $as_echo_n "checking for $ac_word... " >&6; }
6771 if ${ac_cv_prog_NMEDIT+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 if test -n "$NMEDIT"; then
6775 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
6784 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
6786 break 2
6787 fi
6788 done
6789 done
6790 IFS=$as_save_IFS
6791
6792 fi
6793 fi
6794 NMEDIT=$ac_cv_prog_NMEDIT
6795 if test -n "$NMEDIT"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6797 $as_echo "$NMEDIT" >&6; }
6798 else
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 $as_echo "no" >&6; }
6801 fi
6802
6803
6804 fi
6805 if test -z "$ac_cv_prog_NMEDIT"; then
6806 ac_ct_NMEDIT=$NMEDIT
6807 # Extract the first word of "nmedit", so it can be a program name with args.
6808 set dummy nmedit; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 if test -n "$ac_ct_NMEDIT"; then
6815 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
6824 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
6826 break 2
6827 fi
6828 done
6829 done
6830 IFS=$as_save_IFS
6831
6832 fi
6833 fi
6834 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6835 if test -n "$ac_ct_NMEDIT"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6837 $as_echo "$ac_ct_NMEDIT" >&6; }
6838 else
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841 fi
6842
6843 if test "x$ac_ct_NMEDIT" = x; then
6844 NMEDIT=":"
6845 else
6846 case $cross_compiling:$ac_tool_warned in
6847 yes:)
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
6850 ac_tool_warned=yes ;;
6851 esac
6852 NMEDIT=$ac_ct_NMEDIT
6853 fi
6854 else
6855 NMEDIT="$ac_cv_prog_NMEDIT"
6856 fi
6857
6858 if test -n "$ac_tool_prefix"; then
6859 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program na me with args.
6860 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if ${ac_cv_prog_LIPO+:} false; then :
6864 $as_echo_n "(cached) " >&6
6865 else
6866 if test -n "$LIPO"; then
6867 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
6876 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
6878 break 2
6879 fi
6880 done
6881 done
6882 IFS=$as_save_IFS
6883
6884 fi
6885 fi
6886 LIPO=$ac_cv_prog_LIPO
6887 if test -n "$LIPO"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6889 $as_echo "$LIPO" >&6; }
6890 else
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6893 fi
6894
6895
6896 fi
6897 if test -z "$ac_cv_prog_LIPO"; then
6898 ac_ct_LIPO=$LIPO
6899 # Extract the first word of "lipo", so it can be a program name with args.
6900 set dummy lipo; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 if test -n "$ac_ct_LIPO"; then
6907 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
6916 ac_cv_prog_ac_ct_LIPO="lipo"
6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
6918 break 2
6919 fi
6920 done
6921 done
6922 IFS=$as_save_IFS
6923
6924 fi
6925 fi
6926 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6927 if test -n "$ac_ct_LIPO"; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6929 $as_echo "$ac_ct_LIPO" >&6; }
6930 else
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6933 fi
6934
6935 if test "x$ac_ct_LIPO" = x; then
6936 LIPO=":"
6937 else
6938 case $cross_compiling:$ac_tool_warned in
6939 yes:)
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
6942 ac_tool_warned=yes ;;
6943 esac
6944 LIPO=$ac_ct_LIPO
6945 fi
6946 else
6947 LIPO="$ac_cv_prog_LIPO"
6948 fi
6949
6950 if test -n "$ac_tool_prefix"; then
6951 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program n ame with args.
6952 set dummy ${ac_tool_prefix}otool; ac_word=$2
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954 $as_echo_n "checking for $ac_word... " >&6; }
6955 if ${ac_cv_prog_OTOOL+:} false; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 if test -n "$OTOOL"; then
6959 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6960 else
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
6968 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
6970 break 2
6971 fi
6972 done
6973 done
6974 IFS=$as_save_IFS
6975
6976 fi
6977 fi
6978 OTOOL=$ac_cv_prog_OTOOL
6979 if test -n "$OTOOL"; then
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6981 $as_echo "$OTOOL" >&6; }
6982 else
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6985 fi
6986
6987
6988 fi
6989 if test -z "$ac_cv_prog_OTOOL"; then
6990 ac_ct_OTOOL=$OTOOL
6991 # Extract the first word of "otool", so it can be a program name with args.
6992 set dummy otool; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994 $as_echo_n "checking for $ac_word... " >&6; }
6995 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 if test -n "$ac_ct_OTOOL"; then
6999 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
7008 ac_cv_prog_ac_ct_OTOOL="otool"
7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
7010 break 2
7011 fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015
7016 fi
7017 fi
7018 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7019 if test -n "$ac_ct_OTOOL"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7021 $as_echo "$ac_ct_OTOOL" >&6; }
7022 else
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7025 fi
7026
7027 if test "x$ac_ct_OTOOL" = x; then
7028 OTOOL=":"
7029 else
7030 case $cross_compiling:$ac_tool_warned in
7031 yes:)
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
7034 ac_tool_warned=yes ;;
7035 esac
7036 OTOOL=$ac_ct_OTOOL
7037 fi
7038 else
7039 OTOOL="$ac_cv_prog_OTOOL"
7040 fi
7041
7042 if test -n "$ac_tool_prefix"; then
7043 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7044 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if ${ac_cv_prog_OTOOL64+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 if test -n "$OTOOL64"; then
7051 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7052 else
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
7060 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
7062 break 2
7063 fi
7064 done
7065 done
7066 IFS=$as_save_IFS
7067
7068 fi
7069 fi
7070 OTOOL64=$ac_cv_prog_OTOOL64
7071 if test -n "$OTOOL64"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7073 $as_echo "$OTOOL64" >&6; }
7074 else
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7077 fi
7078
7079
7080 fi
7081 if test -z "$ac_cv_prog_OTOOL64"; then
7082 ac_ct_OTOOL64=$OTOOL64
7083 # Extract the first word of "otool64", so it can be a program name with args.
7084 set dummy otool64; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7088 $as_echo_n "(cached) " >&6
7089 else
7090 if test -n "$ac_ct_OTOOL64"; then
7091 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096 IFS=$as_save_IFS
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
7100 ac_cv_prog_ac_ct_OTOOL64="otool64"
7101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
7102 break 2
7103 fi
7104 done
7105 done
7106 IFS=$as_save_IFS
7107
7108 fi
7109 fi
7110 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7111 if test -n "$ac_ct_OTOOL64"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7113 $as_echo "$ac_ct_OTOOL64" >&6; }
7114 else
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7117 fi
7118
7119 if test "x$ac_ct_OTOOL64" = x; then
7120 OTOOL64=":"
7121 else
7122 case $cross_compiling:$ac_tool_warned in
7123 yes:)
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
7126 ac_tool_warned=yes ;;
7127 esac
7128 OTOOL64=$ac_ct_OTOOL64
7129 fi
7130 else
7131 OTOOL64="$ac_cv_prog_OTOOL64"
7132 fi
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7161 $as_echo_n "checking for -single_module linker flag... " >&6; }
7162 if ${lt_cv_apple_cc_single_mod+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 lt_cv_apple_cc_single_mod=no
7166 if test -z "${LT_MULTI_MODULE}"; then
7167 # By default we will add the -single_module flag. You can override
7168 # by either setting the environment variable LT_MULTI_MODULE
7169 # non-empty at configure time, or by adding -multi_module to the
7170 # link flags.
7171 rm -rf libconftest.dylib*
7172 echo "int foo(void){return 1;}" > conftest.c
7173 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7174 -dynamiclib -Wl,-single_module conftest.c" >&5
7175 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7176 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7177 _lt_result=$?
7178 # If there is a non-empty error log, and "single_module"
7179 # appears in it, assume the flag caused a linker warning
7180 if test -s conftest.err && $GREP single_module conftest.err; then
7181 cat conftest.err >&5
7182 # Otherwise, if the output was created with a 0 exit code from
7183 # the compiler, it worked.
7184 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7185 lt_cv_apple_cc_single_mod=yes
7186 else
7187 cat conftest.err >&5
7188 fi
7189 rm -rf libconftest.dylib*
7190 rm -f conftest.*
7191 fi
7192 fi
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7194 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7195
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7197 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7198 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 lt_cv_ld_exported_symbols_list=no
7202 save_LDFLAGS=$LDFLAGS
7203 echo "_main" > conftest.sym
7204 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7207
7208 int
7209 main ()
7210 {
7211
7212 ;
7213 return 0;
7214 }
7215 _ACEOF
7216 if ac_fn_c_try_link "$LINENO"; then :
7217 lt_cv_ld_exported_symbols_list=yes
7218 else
7219 lt_cv_ld_exported_symbols_list=no
7220 fi
7221 rm -f core conftest.err conftest.$ac_objext \
7222 conftest$ac_exeext conftest.$ac_ext
7223 LDFLAGS="$save_LDFLAGS"
7224
7225 fi
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list " >&5
7227 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7228
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker fla g" >&5
7230 $as_echo_n "checking for -force_load linker flag... " >&6; }
7231 if ${lt_cv_ld_force_load+:} false; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 lt_cv_ld_force_load=no
7235 cat > conftest.c << _LT_EOF
7236 int forced_loaded() { return 2;}
7237 _LT_EOF
7238 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7239 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7240 echo "$AR cru libconftest.a conftest.o" >&5
7241 $AR cru libconftest.a conftest.o 2>&5
7242 echo "$RANLIB libconftest.a" >&5
7243 $RANLIB libconftest.a 2>&5
7244 cat > conftest.c << _LT_EOF
7245 int main() { return 0;}
7246 _LT_EOF
7247 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./li bconftest.a" >&5
7248 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconft est.a 2>conftest.err
7249 _lt_result=$?
7250 if test -s conftest.err && $GREP force_load conftest.err; then
7251 cat conftest.err >&5
7252 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conft est >/dev/null 2>&1 ; then
7253 lt_cv_ld_force_load=yes
7254 else
7255 cat conftest.err >&5
7256 fi
7257 rm -f conftest.err libconftest.a conftest conftest.c
7258 rm -rf conftest.dSYM
7259
7260 fi
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7262 $as_echo "$lt_cv_ld_force_load" >&6; }
7263 case $host_os in
7264 rhapsody* | darwin1.[012])
7265 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7266 darwin1.*)
7267 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppres s' ;;
7268 darwin*) # darwin 5.x on
7269 # if running on 10.5 or later, the deployment target defaults
7270 # to the OS version, if on x86, and 10.4, the deployment
7271 # target defaults to 10.4. Don't you love it?
7272 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7273 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7274 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7275 10.[012]*)
7276 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}sup press' ;;
7277 10.*)
7278 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7279 esac
7280 ;;
7281 esac
7282 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7283 _lt_dar_single_mod='$single_module'
7284 fi
7285 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7286 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname }-symbols.expsym'
7287 else
7288 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7289 fi
7290 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7291 _lt_dsymutil='~$DSYMUTIL $lib || :'
7292 else
7293 _lt_dsymutil=
7294 fi
7295 ;;
7296 esac
7297
7298 ac_ext=c
7299 ac_cpp='$CPP $CPPFLAGS'
7300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
7302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7304 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7305 # On Suns, sometimes $CPP names a directory.
7306 if test -n "$CPP" && test -d "$CPP"; then
7307 CPP=
7308 fi
7309 if test -z "$CPP"; then
7310 if ${ac_cv_prog_CPP+:} false; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7313 # Double quotes because CPP needs to be expanded
7314 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7315 do
7316 ac_preproc_ok=false
7317 for ac_c_preproc_warn_flag in '' yes
7318 do
7319 # Use a header file that comes with gcc, so configuring glibc
7320 # with a fresh cross-compiler works.
7321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7322 # <limits.h> exists even on freestanding compilers.
7323 # On the NeXT, cc -E runs the code through the compiler's parser,
7324 # not just through cpp. "Syntax error" is here to catch this case.
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7327 #ifdef __STDC__
7328 # include <limits.h>
7329 #else
7330 # include <assert.h>
7331 #endif
7332 Syntax error
7333 _ACEOF
7334 if ac_fn_c_try_cpp "$LINENO"; then :
7335
7336 else
7337 # Broken: fails on valid input.
7338 continue
7339 fi
7340 rm -f conftest.err conftest.i conftest.$ac_ext
7341
7342 # OK, works on sane cases. Now check whether nonexistent headers
7343 # can be detected and how.
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7346 #include <ac_nonexistent.h>
7347 _ACEOF
7348 if ac_fn_c_try_cpp "$LINENO"; then :
7349 # Broken: success on invalid input.
7350 continue
7351 else
7352 # Passes both tests.
7353 ac_preproc_ok=:
7354 break
7355 fi
7356 rm -f conftest.err conftest.i conftest.$ac_ext
7357
7358 done
7359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7360 rm -f conftest.i conftest.err conftest.$ac_ext
7361 if $ac_preproc_ok; then :
7362 break
7363 fi
7364
7365 done
7366 ac_cv_prog_CPP=$CPP
7367
7368 fi
7369 CPP=$ac_cv_prog_CPP
7370 else
7371 ac_cv_prog_CPP=$CPP
7372 fi
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7374 $as_echo "$CPP" >&6; }
7375 ac_preproc_ok=false
7376 for ac_c_preproc_warn_flag in '' yes
7377 do
7378 # Use a header file that comes with gcc, so configuring glibc
7379 # with a fresh cross-compiler works.
7380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7381 # <limits.h> exists even on freestanding compilers.
7382 # On the NeXT, cc -E runs the code through the compiler's parser,
7383 # not just through cpp. "Syntax error" is here to catch this case.
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7386 #ifdef __STDC__
7387 # include <limits.h>
7388 #else
7389 # include <assert.h>
7390 #endif
7391 Syntax error
7392 _ACEOF
7393 if ac_fn_c_try_cpp "$LINENO"; then :
7394
7395 else
7396 # Broken: fails on valid input.
7397 continue
7398 fi
7399 rm -f conftest.err conftest.i conftest.$ac_ext
7400
7401 # OK, works on sane cases. Now check whether nonexistent headers
7402 # can be detected and how.
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7405 #include <ac_nonexistent.h>
7406 _ACEOF
7407 if ac_fn_c_try_cpp "$LINENO"; then :
7408 # Broken: success on invalid input.
7409 continue
7410 else
7411 # Passes both tests.
7412 ac_preproc_ok=:
7413 break
7414 fi
7415 rm -f conftest.err conftest.i conftest.$ac_ext
7416
7417 done
7418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7419 rm -f conftest.i conftest.err conftest.$ac_ext
7420 if $ac_preproc_ok; then :
7421
7422 else
7423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7425 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7426 See \`config.log' for more details" "$LINENO" 5; }
7427 fi
7428
7429 ac_ext=c
7430 ac_cpp='$CPP $CPPFLAGS'
7431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
7433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7434
7435
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7437 $as_echo_n "checking for ANSI C header files... " >&6; }
7438 if ${ac_cv_header_stdc+:} false; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7443 #include <stdlib.h>
7444 #include <stdarg.h>
7445 #include <string.h>
7446 #include <float.h>
7447
7448 int
7449 main ()
7450 {
7451
7452 ;
7453 return 0;
7454 }
7455 _ACEOF
7456 if ac_fn_c_try_compile "$LINENO"; then :
7457 ac_cv_header_stdc=yes
7458 else
7459 ac_cv_header_stdc=no
7460 fi
7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462
7463 if test $ac_cv_header_stdc = yes; then
7464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7467 #include <string.h>
7468
7469 _ACEOF
7470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7471 $EGREP "memchr" >/dev/null 2>&1; then :
7472
7473 else
7474 ac_cv_header_stdc=no
7475 fi
7476 rm -f conftest*
7477
7478 fi
7479
7480 if test $ac_cv_header_stdc = yes; then
7481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7484 #include <stdlib.h>
7485
7486 _ACEOF
7487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7488 $EGREP "free" >/dev/null 2>&1; then :
7489
7490 else
7491 ac_cv_header_stdc=no
7492 fi
7493 rm -f conftest*
7494
7495 fi
7496
7497 if test $ac_cv_header_stdc = yes; then
7498 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7499 if test "$cross_compiling" = yes; then :
7500 :
7501 else
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7504 #include <ctype.h>
7505 #include <stdlib.h>
7506 #if ((' ' & 0x0FF) == 0x020)
7507 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7508 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7509 #else
7510 # define ISLOWER(c) \
7511 (('a' <= (c) && (c) <= 'i') \
7512 || ('j' <= (c) && (c) <= 'r') \
7513 || ('s' <= (c) && (c) <= 'z'))
7514 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7515 #endif
7516
7517 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7518 int
7519 main ()
7520 {
7521 int i;
7522 for (i = 0; i < 256; i++)
7523 if (XOR (islower (i), ISLOWER (i))
7524 || toupper (i) != TOUPPER (i))
7525 return 2;
7526 return 0;
7527 }
7528 _ACEOF
7529 if ac_fn_c_try_run "$LINENO"; then :
7530
7531 else
7532 ac_cv_header_stdc=no
7533 fi
7534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7535 conftest.$ac_objext conftest.beam conftest.$ac_ext
7536 fi
7537
7538 fi
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7541 $as_echo "$ac_cv_header_stdc" >&6; }
7542 if test $ac_cv_header_stdc = yes; then
7543
7544 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7545
7546 fi
7547
7548 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7549 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7550 inttypes.h stdint.h unistd.h
7551 do :
7552 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7553 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include s_default
7554 "
7555 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7556 cat >>confdefs.h <<_ACEOF
7557 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7558 _ACEOF
7559
7560 fi
7561
7562 done
7563
7564
7565 for ac_header in dlfcn.h
7566 do :
7567 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_i ncludes_default
7568 "
7569 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7570 cat >>confdefs.h <<_ACEOF
7571 #define HAVE_DLFCN_H 1
7572 _ACEOF
7573
7574 fi
7575
7576 done
7577
7578
7579
7580
7581
7582 # Set options
7583
7584
7585
7586 enable_dlopen=no
7587
7588
7589 enable_win32_dll=no
7590
7591
7592 # Check whether --enable-shared was given.
7593 if test "${enable_shared+set}" = set; then :
7594 enableval=$enable_shared; p=${PACKAGE-default}
7595 case $enableval in
7596 yes) enable_shared=yes ;;
7597 no) enable_shared=no ;;
7598 *)
7599 enable_shared=no
7600 # Look at the argument we got. We use all the common list separators.
7601 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7602 for pkg in $enableval; do
7603 IFS="$lt_save_ifs"
7604 if test "X$pkg" = "X$p"; then
7605 enable_shared=yes
7606 fi
7607 done
7608 IFS="$lt_save_ifs"
7609 ;;
7610 esac
7611 else
7612 enable_shared=yes
7613 fi
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623 # Check whether --enable-static was given.
7624 if test "${enable_static+set}" = set; then :
7625 enableval=$enable_static; p=${PACKAGE-default}
7626 case $enableval in
7627 yes) enable_static=yes ;;
7628 no) enable_static=no ;;
7629 *)
7630 enable_static=no
7631 # Look at the argument we got. We use all the common list separators.
7632 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7633 for pkg in $enableval; do
7634 IFS="$lt_save_ifs"
7635 if test "X$pkg" = "X$p"; then
7636 enable_static=yes
7637 fi
7638 done
7639 IFS="$lt_save_ifs"
7640 ;;
7641 esac
7642 else
7643 enable_static=yes
7644 fi
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655 # Check whether --with-pic was given.
7656 if test "${with_pic+set}" = set; then :
7657 withval=$with_pic; lt_p=${PACKAGE-default}
7658 case $withval in
7659 yes|no) pic_mode=$withval ;;
7660 *)
7661 pic_mode=default
7662 # Look at the argument we got. We use all the common list separators.
7663 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7664 for lt_pkg in $withval; do
7665 IFS="$lt_save_ifs"
7666 if test "X$lt_pkg" = "X$lt_p"; then
7667 pic_mode=yes
7668 fi
7669 done
7670 IFS="$lt_save_ifs"
7671 ;;
7672 esac
7673 else
7674 pic_mode=default
7675 fi
7676
7677
7678 test -z "$pic_mode" && pic_mode=default
7679
7680
7681
7682
7683
7684
7685
7686 # Check whether --enable-fast-install was given.
7687 if test "${enable_fast_install+set}" = set; then :
7688 enableval=$enable_fast_install; p=${PACKAGE-default}
7689 case $enableval in
7690 yes) enable_fast_install=yes ;;
7691 no) enable_fast_install=no ;;
7692 *)
7693 enable_fast_install=no
7694 # Look at the argument we got. We use all the common list separators.
7695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7696 for pkg in $enableval; do
7697 IFS="$lt_save_ifs"
7698 if test "X$pkg" = "X$p"; then
7699 enable_fast_install=yes
7700 fi
7701 done
7702 IFS="$lt_save_ifs"
7703 ;;
7704 esac
7705 else
7706 enable_fast_install=yes
7707 fi
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719 # This can be used to rebuild libtool when needed
7720 LIBTOOL_DEPS="$ltmain"
7721
7722 # Always use our own libtool.
7723 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754 test -z "$LN_S" && LN_S="ln -s"
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769 if test -n "${ZSH_VERSION+set}" ; then
7770 setopt NO_GLOB_SUBST
7771 fi
7772
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7774 $as_echo_n "checking for objdir... " >&6; }
7775 if ${lt_cv_objdir+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 rm -f .libs 2>/dev/null
7779 mkdir .libs 2>/dev/null
7780 if test -d .libs; then
7781 lt_cv_objdir=.libs
7782 else
7783 # MS-DOS does not allow filenames that begin with a dot.
7784 lt_cv_objdir=_libs
7785 fi
7786 rmdir .libs 2>/dev/null
7787 fi
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7789 $as_echo "$lt_cv_objdir" >&6; }
7790 objdir=$lt_cv_objdir
7791
7792
7793
7794
7795
7796 cat >>confdefs.h <<_ACEOF
7797 #define LT_OBJDIR "$lt_cv_objdir/"
7798 _ACEOF
7799
7800
7801
7802
7803 case $host_os in
7804 aix3*)
7805 # AIX sometimes has problems with the GCC collect2 program. For some
7806 # reason, if we set the COLLECT_NAMES environment variable, the problems
7807 # vanish in a puff of smoke.
7808 if test "X${COLLECT_NAMES+set}" != Xset; then
7809 COLLECT_NAMES=
7810 export COLLECT_NAMES
7811 fi
7812 ;;
7813 esac
7814
7815 # Global variables:
7816 ofile=libtool
7817 can_build_shared=yes
7818
7819 # All known linkers require a `.a' archive for static linking (except MSVC,
7820 # which needs '.lib').
7821 libext=a
7822
7823 with_gnu_ld="$lt_cv_prog_gnu_ld"
7824
7825 old_CC="$CC"
7826 old_CFLAGS="$CFLAGS"
7827
7828 # Set sane defaults for various variables
7829 test -z "$CC" && CC=cc
7830 test -z "$LTCC" && LTCC=$CC
7831 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7832 test -z "$LD" && LD=ld
7833 test -z "$ac_objext" && ac_objext=o
7834
7835 for cc_temp in $compiler""; do
7836 case $cc_temp in
7837 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7838 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7839 \-*) ;;
7840 *) break;;
7841 esac
7842 done
7843 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7844
7845
7846 # Only perform the check for file, if the check method requires it
7847 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7848 case $deplibs_check_method in
7849 file_magic*)
7850 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7852 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7853 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 case $MAGIC_CMD in
7857 [\\/*] | ?:[\\/]*)
7858 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path .
7859 ;;
7860 *)
7861 lt_save_MAGIC_CMD="$MAGIC_CMD"
7862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7863 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7864 for ac_dir in $ac_dummy; do
7865 IFS="$lt_save_ifs"
7866 test -z "$ac_dir" && ac_dir=.
7867 if test -f $ac_dir/${ac_tool_prefix}file; then
7868 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7869 if test -n "$file_magic_test_file"; then
7870 case $deplibs_check_method in
7871 "file_magic "*)
7872 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7873 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7874 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7875 $EGREP "$file_magic_regex" > /dev/null; then
7876 :
7877 else
7878 cat <<_LT_EOF 1>&2
7879
7880 *** Warning: the command libtool uses to detect shared libraries,
7881 *** $file_magic_cmd, produces output that libtool cannot recognize.
7882 *** The result is that libtool may fail to recognize shared libraries
7883 *** as such. This will affect the creation of libtool libraries that
7884 *** depend on shared libraries, but programs linked with such libtool
7885 *** libraries will work regardless of this problem. Nevertheless, you
7886 *** may want to report the problem to your system manager and/or to
7887 *** bug-libtool@gnu.org
7888
7889 _LT_EOF
7890 fi ;;
7891 esac
7892 fi
7893 break
7894 fi
7895 done
7896 IFS="$lt_save_ifs"
7897 MAGIC_CMD="$lt_save_MAGIC_CMD"
7898 ;;
7899 esac
7900 fi
7901
7902 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7903 if test -n "$MAGIC_CMD"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7905 $as_echo "$MAGIC_CMD" >&6; }
7906 else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7909 fi
7910
7911
7912
7913
7914
7915 if test -z "$lt_cv_path_MAGIC_CMD"; then
7916 if test -n "$ac_tool_prefix"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7918 $as_echo_n "checking for file... " >&6; }
7919 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7920 $as_echo_n "(cached) " >&6
7921 else
7922 case $MAGIC_CMD in
7923 [\\/*] | ?:[\\/]*)
7924 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path .
7925 ;;
7926 *)
7927 lt_save_MAGIC_CMD="$MAGIC_CMD"
7928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7929 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7930 for ac_dir in $ac_dummy; do
7931 IFS="$lt_save_ifs"
7932 test -z "$ac_dir" && ac_dir=.
7933 if test -f $ac_dir/file; then
7934 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7935 if test -n "$file_magic_test_file"; then
7936 case $deplibs_check_method in
7937 "file_magic "*)
7938 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7940 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7941 $EGREP "$file_magic_regex" > /dev/null; then
7942 :
7943 else
7944 cat <<_LT_EOF 1>&2
7945
7946 *** Warning: the command libtool uses to detect shared libraries,
7947 *** $file_magic_cmd, produces output that libtool cannot recognize.
7948 *** The result is that libtool may fail to recognize shared libraries
7949 *** as such. This will affect the creation of libtool libraries that
7950 *** depend on shared libraries, but programs linked with such libtool
7951 *** libraries will work regardless of this problem. Nevertheless, you
7952 *** may want to report the problem to your system manager and/or to
7953 *** bug-libtool@gnu.org
7954
7955 _LT_EOF
7956 fi ;;
7957 esac
7958 fi
7959 break
7960 fi
7961 done
7962 IFS="$lt_save_ifs"
7963 MAGIC_CMD="$lt_save_MAGIC_CMD"
7964 ;;
7965 esac
7966 fi
7967
7968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7969 if test -n "$MAGIC_CMD"; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7971 $as_echo "$MAGIC_CMD" >&6; }
7972 else
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7975 fi
7976
7977
7978 else
7979 MAGIC_CMD=:
7980 fi
7981 fi
7982
7983 fi
7984 ;;
7985 esac
7986
7987 # Use C for the default configuration in the libtool script
7988
7989 lt_save_CC="$CC"
7990 ac_ext=c
7991 ac_cpp='$CPP $CPPFLAGS'
7992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
7994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7995
7996
7997 # Source file extension for C test sources.
7998 ac_ext=c
7999
8000 # Object file extension for compiled C test sources.
8001 objext=o
8002 objext=$objext
8003
8004 # Code to be used in simple compile tests
8005 lt_simple_compile_test_code="int some_variable = 0;"
8006
8007 # Code to be used in simple link tests
8008 lt_simple_link_test_code='int main(){return(0);}'
8009
8010
8011
8012
8013
8014
8015
8016 # If no C compiler was specified, use CC.
8017 LTCC=${LTCC-"$CC"}
8018
8019 # If no C compiler flags were specified, use CFLAGS.
8020 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8021
8022 # Allow CC to be a program name with arguments.
8023 compiler=$CC
8024
8025 # Save the default compiler, since it gets overwritten when the other
8026 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8027 compiler_DEFAULT=$CC
8028
8029 # save warnings/boilerplate of simple test code
8030 ac_outfile=conftest.$ac_objext
8031 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8032 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8033 _lt_compiler_boilerplate=`cat conftest.err`
8034 $RM conftest*
8035
8036 ac_outfile=conftest.$ac_objext
8037 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8038 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8039 _lt_linker_boilerplate=`cat conftest.err`
8040 $RM -r conftest*
8041
8042
8043 if test -n "$compiler"; then
8044
8045 lt_prog_compiler_no_builtin_flag=
8046
8047 if test "$GCC" = yes; then
8048 case $cc_basename in
8049 nvcc*)
8050 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8051 *)
8052 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8053 esac
8054
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-r tti -fno-exceptions" >&5
8056 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8057 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8058 $as_echo_n "(cached) " >&6
8059 else
8060 lt_cv_prog_compiler_rtti_exceptions=no
8061 ac_outfile=conftest.$ac_objext
8062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8063 lt_compiler_flag="-fno-rtti -fno-exceptions"
8064 # Insert the option either (1) after the last *FLAGS variable, or
8065 # (2) before a word containing "conftest.", or (3) at the end.
8066 # Note that $ac_compile itself does not contain backslashes and begins
8067 # with a dollar sign (not a hyphen), so the echo should work correctly.
8068 # The option is referenced via a variable to avoid confusing sed.
8069 lt_compile=`echo "$ac_compile" | $SED \
8070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8072 -e 's:$: $lt_compiler_flag:'`
8073 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8074 (eval "$lt_compile" 2>conftest.err)
8075 ac_status=$?
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 if (exit $ac_status) && test -s "$ac_outfile"; then
8079 # The compiler can only warn and ignore the option if not recognized
8080 # So say no if there are warnings other than the usual output.
8081 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8083 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n
8084 lt_cv_prog_compiler_rtti_exceptions=yes
8085 fi
8086 fi
8087 $RM conftest*
8088
8089 fi
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_excep tions" >&5
8091 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8092
8093 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8094 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtt i -fno-exceptions"
8095 else
8096 :
8097 fi
8098
8099 fi
8100
8101
8102
8103
8104
8105
8106 lt_prog_compiler_wl=
8107 lt_prog_compiler_pic=
8108 lt_prog_compiler_static=
8109
8110
8111 if test "$GCC" = yes; then
8112 lt_prog_compiler_wl='-Wl,'
8113 lt_prog_compiler_static='-static'
8114
8115 case $host_os in
8116 aix*)
8117 # All AIX code is PIC.
8118 if test "$host_cpu" = ia64; then
8119 # AIX 5 now supports IA64 processor
8120 lt_prog_compiler_static='-Bstatic'
8121 fi
8122 ;;
8123
8124 amigaos*)
8125 case $host_cpu in
8126 powerpc)
8127 # see comment about AmigaOS4 .so support
8128 lt_prog_compiler_pic='-fPIC'
8129 ;;
8130 m68k)
8131 # FIXME: we need at least 68020 code to build shared libraries, but
8132 # adding the `-m68020' flag to GCC prevents building anything better ,
8133 # like `-m68040'.
8134 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8135 ;;
8136 esac
8137 ;;
8138
8139 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8140 # PIC is the default for these OSes.
8141 ;;
8142
8143 mingw* | cygwin* | pw32* | os2* | cegcc*)
8144 # This hack is so that the source file can tell whether it is being
8145 # built for inclusion in a dll (and should export symbols for example).
8146 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8147 # (--disable-auto-import) libraries
8148 lt_prog_compiler_pic='-DDLL_EXPORT'
8149 ;;
8150
8151 darwin* | rhapsody*)
8152 # PIC is the default on this platform
8153 # Common symbols not allowed in MH_DYLIB files
8154 lt_prog_compiler_pic='-fno-common'
8155 ;;
8156
8157 haiku*)
8158 # PIC is the default for Haiku.
8159 # The "-static" flag exists, but is broken.
8160 lt_prog_compiler_static=
8161 ;;
8162
8163 hpux*)
8164 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8165 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8166 # sets the default TLS model and affects inlining.
8167 case $host_cpu in
8168 hppa*64*)
8169 # +Z the default
8170 ;;
8171 *)
8172 lt_prog_compiler_pic='-fPIC'
8173 ;;
8174 esac
8175 ;;
8176
8177 interix[3-9]*)
8178 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8179 # Instead, we relocate shared libraries at runtime.
8180 ;;
8181
8182 msdosdjgpp*)
8183 # Just because we use GCC doesn't mean we suddenly get shared libraries
8184 # on systems that don't support them.
8185 lt_prog_compiler_can_build_shared=no
8186 enable_shared=no
8187 ;;
8188
8189 *nto* | *qnx*)
8190 # QNX uses GNU C++, but need to define -shared option too, otherwise
8191 # it will coredump.
8192 lt_prog_compiler_pic='-fPIC -shared'
8193 ;;
8194
8195 sysv4*MP*)
8196 if test -d /usr/nec; then
8197 lt_prog_compiler_pic=-Kconform_pic
8198 fi
8199 ;;
8200
8201 *)
8202 lt_prog_compiler_pic='-fPIC'
8203 ;;
8204 esac
8205
8206 case $cc_basename in
8207 nvcc*) # Cuda Compiler Driver 2.2
8208 lt_prog_compiler_wl='-Xlinker '
8209 if test -n "$lt_prog_compiler_pic"; then
8210 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8211 fi
8212 ;;
8213 esac
8214 else
8215 # PORTME Check for flag to pass linker flags through the system compiler.
8216 case $host_os in
8217 aix*)
8218 lt_prog_compiler_wl='-Wl,'
8219 if test "$host_cpu" = ia64; then
8220 # AIX 5 now supports IA64 processor
8221 lt_prog_compiler_static='-Bstatic'
8222 else
8223 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8224 fi
8225 ;;
8226
8227 mingw* | cygwin* | pw32* | os2* | cegcc*)
8228 # This hack is so that the source file can tell whether it is being
8229 # built for inclusion in a dll (and should export symbols for example).
8230 lt_prog_compiler_pic='-DDLL_EXPORT'
8231 ;;
8232
8233 hpux9* | hpux10* | hpux11*)
8234 lt_prog_compiler_wl='-Wl,'
8235 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8236 # not for PA HP-UX.
8237 case $host_cpu in
8238 hppa*64*|ia64*)
8239 # +Z the default
8240 ;;
8241 *)
8242 lt_prog_compiler_pic='+Z'
8243 ;;
8244 esac
8245 # Is there a better lt_prog_compiler_static that works with the bundled CC ?
8246 lt_prog_compiler_static='${wl}-a ${wl}archive'
8247 ;;
8248
8249 irix5* | irix6* | nonstopux*)
8250 lt_prog_compiler_wl='-Wl,'
8251 # PIC (with -KPIC) is the default.
8252 lt_prog_compiler_static='-non_shared'
8253 ;;
8254
8255 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8256 case $cc_basename in
8257 # old Intel for x86_64 which still supported -KPIC.
8258 ecc*)
8259 lt_prog_compiler_wl='-Wl,'
8260 lt_prog_compiler_pic='-KPIC'
8261 lt_prog_compiler_static='-static'
8262 ;;
8263 # icc used to be incompatible with GCC.
8264 # ICC 10 doesn't accept -KPIC any more.
8265 icc* | ifort*)
8266 lt_prog_compiler_wl='-Wl,'
8267 lt_prog_compiler_pic='-fPIC'
8268 lt_prog_compiler_static='-static'
8269 ;;
8270 # Lahey Fortran 8.1.
8271 lf95*)
8272 lt_prog_compiler_wl='-Wl,'
8273 lt_prog_compiler_pic='--shared'
8274 lt_prog_compiler_static='--static'
8275 ;;
8276 nagfor*)
8277 # NAG Fortran compiler
8278 lt_prog_compiler_wl='-Wl,-Wl,,'
8279 lt_prog_compiler_pic='-PIC'
8280 lt_prog_compiler_static='-Bstatic'
8281 ;;
8282 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8283 # Portland Group compilers (*not* the Pentium gcc compiler,
8284 # which looks to be a dead project)
8285 lt_prog_compiler_wl='-Wl,'
8286 lt_prog_compiler_pic='-fpic'
8287 lt_prog_compiler_static='-Bstatic'
8288 ;;
8289 ccc*)
8290 lt_prog_compiler_wl='-Wl,'
8291 # All Alpha code is PIC.
8292 lt_prog_compiler_static='-non_shared'
8293 ;;
8294 xl* | bgxl* | bgf* | mpixl*)
8295 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8296 lt_prog_compiler_wl='-Wl,'
8297 lt_prog_compiler_pic='-qpic'
8298 lt_prog_compiler_static='-qstaticlink'
8299 ;;
8300 *)
8301 case `$CC -V 2>&1 | sed 5q` in
8302 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]* )
8303 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8304 lt_prog_compiler_pic='-KPIC'
8305 lt_prog_compiler_static='-Bstatic'
8306 lt_prog_compiler_wl=''
8307 ;;
8308 *Sun\ F* | *Sun*Fortran*)
8309 lt_prog_compiler_pic='-KPIC'
8310 lt_prog_compiler_static='-Bstatic'
8311 lt_prog_compiler_wl='-Qoption ld '
8312 ;;
8313 *Sun\ C*)
8314 # Sun C 5.9
8315 lt_prog_compiler_pic='-KPIC'
8316 lt_prog_compiler_static='-Bstatic'
8317 lt_prog_compiler_wl='-Wl,'
8318 ;;
8319 *Intel*\ [CF]*Compiler*)
8320 lt_prog_compiler_wl='-Wl,'
8321 lt_prog_compiler_pic='-fPIC'
8322 lt_prog_compiler_static='-static'
8323 ;;
8324 *Portland\ Group*)
8325 lt_prog_compiler_wl='-Wl,'
8326 lt_prog_compiler_pic='-fpic'
8327 lt_prog_compiler_static='-Bstatic'
8328 ;;
8329 esac
8330 ;;
8331 esac
8332 ;;
8333
8334 newsos6)
8335 lt_prog_compiler_pic='-KPIC'
8336 lt_prog_compiler_static='-Bstatic'
8337 ;;
8338
8339 *nto* | *qnx*)
8340 # QNX uses GNU C++, but need to define -shared option too, otherwise
8341 # it will coredump.
8342 lt_prog_compiler_pic='-fPIC -shared'
8343 ;;
8344
8345 osf3* | osf4* | osf5*)
8346 lt_prog_compiler_wl='-Wl,'
8347 # All OSF/1 code is PIC.
8348 lt_prog_compiler_static='-non_shared'
8349 ;;
8350
8351 rdos*)
8352 lt_prog_compiler_static='-non_shared'
8353 ;;
8354
8355 solaris*)
8356 lt_prog_compiler_pic='-KPIC'
8357 lt_prog_compiler_static='-Bstatic'
8358 case $cc_basename in
8359 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8360 lt_prog_compiler_wl='-Qoption ld ';;
8361 *)
8362 lt_prog_compiler_wl='-Wl,';;
8363 esac
8364 ;;
8365
8366 sunos4*)
8367 lt_prog_compiler_wl='-Qoption ld '
8368 lt_prog_compiler_pic='-PIC'
8369 lt_prog_compiler_static='-Bstatic'
8370 ;;
8371
8372 sysv4 | sysv4.2uw2* | sysv4.3*)
8373 lt_prog_compiler_wl='-Wl,'
8374 lt_prog_compiler_pic='-KPIC'
8375 lt_prog_compiler_static='-Bstatic'
8376 ;;
8377
8378 sysv4*MP*)
8379 if test -d /usr/nec ;then
8380 lt_prog_compiler_pic='-Kconform_pic'
8381 lt_prog_compiler_static='-Bstatic'
8382 fi
8383 ;;
8384
8385 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8386 lt_prog_compiler_wl='-Wl,'
8387 lt_prog_compiler_pic='-KPIC'
8388 lt_prog_compiler_static='-Bstatic'
8389 ;;
8390
8391 unicos*)
8392 lt_prog_compiler_wl='-Wl,'
8393 lt_prog_compiler_can_build_shared=no
8394 ;;
8395
8396 uts4*)
8397 lt_prog_compiler_pic='-pic'
8398 lt_prog_compiler_static='-Bstatic'
8399 ;;
8400
8401 *)
8402 lt_prog_compiler_can_build_shared=no
8403 ;;
8404 esac
8405 fi
8406
8407 case $host_os in
8408 # For platforms which do not support PIC, -DPIC is meaningless:
8409 *djgpp*)
8410 lt_prog_compiler_pic=
8411 ;;
8412 *)
8413 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8414 ;;
8415 esac
8416
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produc e PIC" >&5
8418 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8419 if ${lt_cv_prog_compiler_pic+:} false; then :
8420 $as_echo_n "(cached) " >&6
8421 else
8422 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8423 fi
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8425 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8426 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8427
8428 #
8429 # Check to make sure the PIC flag actually works.
8430 #
8431 if test -n "$lt_prog_compiler_pic"; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_pr og_compiler_pic works" >&5
8433 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8434 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8435 $as_echo_n "(cached) " >&6
8436 else
8437 lt_cv_prog_compiler_pic_works=no
8438 ac_outfile=conftest.$ac_objext
8439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8440 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8441 # Insert the option either (1) after the last *FLAGS variable, or
8442 # (2) before a word containing "conftest.", or (3) at the end.
8443 # Note that $ac_compile itself does not contain backslashes and begins
8444 # with a dollar sign (not a hyphen), so the echo should work correctly.
8445 # The option is referenced via a variable to avoid confusing sed.
8446 lt_compile=`echo "$ac_compile" | $SED \
8447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8449 -e 's:$: $lt_compiler_flag:'`
8450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8451 (eval "$lt_compile" 2>conftest.err)
8452 ac_status=$?
8453 cat conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 if (exit $ac_status) && test -s "$ac_outfile"; then
8456 # The compiler can only warn and ignore the option if not recognized
8457 # So say no if there are warnings other than the usual output.
8458 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8460 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n
8461 lt_cv_prog_compiler_pic_works=yes
8462 fi
8463 fi
8464 $RM conftest*
8465
8466 fi
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8468 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8469
8470 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8471 case $lt_prog_compiler_pic in
8472 "" | " "*) ;;
8473 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8474 esac
8475 else
8476 lt_prog_compiler_pic=
8477 lt_prog_compiler_can_build_shared=no
8478 fi
8479
8480 fi
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492 #
8493 # Check to make sure the static flag actually works.
8494 #
8495 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_t mp_static_flag works" >&5
8497 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6 ; }
8498 if ${lt_cv_prog_compiler_static_works+:} false; then :
8499 $as_echo_n "(cached) " >&6
8500 else
8501 lt_cv_prog_compiler_static_works=no
8502 save_LDFLAGS="$LDFLAGS"
8503 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8504 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8505 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8506 # The linker can only warn and ignore the option if not recognized
8507 # So say no if there are warnings
8508 if test -s conftest.err; then
8509 # Append any errors to the config.log.
8510 cat conftest.err 1>&5
8511 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8513 if diff conftest.exp conftest.er2 >/dev/null; then
8514 lt_cv_prog_compiler_static_works=yes
8515 fi
8516 else
8517 lt_cv_prog_compiler_static_works=yes
8518 fi
8519 fi
8520 $RM -r conftest*
8521 LDFLAGS="$save_LDFLAGS"
8522
8523 fi
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_wor ks" >&5
8525 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8526
8527 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8528 :
8529 else
8530 lt_prog_compiler_static=
8531 fi
8532
8533
8534
8535
8536
8537
8538
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8540 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8541 if ${lt_cv_prog_compiler_c_o+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 lt_cv_prog_compiler_c_o=no
8545 $RM -r conftest 2>/dev/null
8546 mkdir conftest
8547 cd conftest
8548 mkdir out
8549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8550
8551 lt_compiler_flag="-o out/conftest2.$ac_objext"
8552 # Insert the option either (1) after the last *FLAGS variable, or
8553 # (2) before a word containing "conftest.", or (3) at the end.
8554 # Note that $ac_compile itself does not contain backslashes and begins
8555 # with a dollar sign (not a hyphen), so the echo should work correctly.
8556 lt_compile=`echo "$ac_compile" | $SED \
8557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8559 -e 's:$: $lt_compiler_flag:'`
8560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8561 (eval "$lt_compile" 2>out/conftest.err)
8562 ac_status=$?
8563 cat out/conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8566 then
8567 # The compiler can only warn and ignore the option if not recognized
8568 # So say no if there are warnings
8569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d ev/null; then
8572 lt_cv_prog_compiler_c_o=yes
8573 fi
8574 fi
8575 chmod u+w . 2>&5
8576 $RM conftest*
8577 # SGI C++ compiler will create directory out/ii_files/ for
8578 # template instantiation
8579 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8580 $RM out/* && rmdir out
8581 cd ..
8582 $RM -r conftest
8583 $RM conftest*
8584
8585 fi
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8587 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8588
8589
8590
8591
8592
8593
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8595 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8596 if ${lt_cv_prog_compiler_c_o+:} false; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 lt_cv_prog_compiler_c_o=no
8600 $RM -r conftest 2>/dev/null
8601 mkdir conftest
8602 cd conftest
8603 mkdir out
8604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8605
8606 lt_compiler_flag="-o out/conftest2.$ac_objext"
8607 # Insert the option either (1) after the last *FLAGS variable, or
8608 # (2) before a word containing "conftest.", or (3) at the end.
8609 # Note that $ac_compile itself does not contain backslashes and begins
8610 # with a dollar sign (not a hyphen), so the echo should work correctly.
8611 lt_compile=`echo "$ac_compile" | $SED \
8612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8614 -e 's:$: $lt_compiler_flag:'`
8615 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8616 (eval "$lt_compile" 2>out/conftest.err)
8617 ac_status=$?
8618 cat out/conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8621 then
8622 # The compiler can only warn and ignore the option if not recognized
8623 # So say no if there are warnings
8624 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8625 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8626 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d ev/null; then
8627 lt_cv_prog_compiler_c_o=yes
8628 fi
8629 fi
8630 chmod u+w . 2>&5
8631 $RM conftest*
8632 # SGI C++ compiler will create directory out/ii_files/ for
8633 # template instantiation
8634 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8635 $RM out/* && rmdir out
8636 cd ..
8637 $RM -r conftest
8638 $RM conftest*
8639
8640 fi
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8642 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8643
8644
8645
8646
8647 hard_links="nottested"
8648 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8649 # do not overwrite the value of need_locks provided by the user
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard lin ks" >&5
8651 $as_echo_n "checking if we can lock with hard links... " >&6; }
8652 hard_links=yes
8653 $RM conftest*
8654 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8655 touch conftest.a
8656 ln conftest.a conftest.b 2>&5 || hard_links=no
8657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8659 $as_echo "$hard_links" >&6; }
8660 if test "$hard_links" = no; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \` -c -o', so \`make -j' may be unsafe" >&5
8662 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may b e unsafe" >&2;}
8663 need_locks=warn
8664 fi
8665 else
8666 need_locks=no
8667 fi
8668
8669
8670
8671
8672
8673
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8675 $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie s... " >&6; }
8676
8677 runpath_var=
8678 allow_undefined_flag=
8679 always_export_symbols=no
8680 archive_cmds=
8681 archive_expsym_cmds=
8682 compiler_needs_object=no
8683 enable_shared_with_static_runtimes=no
8684 export_dynamic_flag_spec=
8685 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\ ''s/.* //'\'' | sort | uniq > $export_symbols'
8686 hardcode_automatic=no
8687 hardcode_direct=no
8688 hardcode_direct_absolute=no
8689 hardcode_libdir_flag_spec=
8690 hardcode_libdir_separator=
8691 hardcode_minus_L=no
8692 hardcode_shlibpath_var=unsupported
8693 inherit_rpath=no
8694 link_all_deplibs=unknown
8695 module_cmds=
8696 module_expsym_cmds=
8697 old_archive_from_new_cmds=
8698 old_archive_from_expsyms_cmds=
8699 thread_safe_flag_spec=
8700 whole_archive_flag_spec=
8701 # include_expsyms should be a list of space-separated symbols to be *always*
8702 # included in the symbol list
8703 include_expsyms=
8704 # exclude_expsyms can be an extended regexp of symbols to exclude
8705 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8706 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8707 # as well as any symbol that contains `d'.
8708 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8709 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8710 # platforms (ab)use it in PIC code, but their linkers get confused if
8711 # the symbol is explicitly referenced. Since portable code cannot
8712 # rely on this symbol name, it's probably fine to never include it in
8713 # preloaded symbol tables.
8714 # Exclude shared library initialization/finalization symbols.
8715 extract_expsyms_cmds=
8716
8717 case $host_os in
8718 cygwin* | mingw* | pw32* | cegcc*)
8719 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8720 # When not using gcc, we currently assume that we are using
8721 # Microsoft Visual C++.
8722 if test "$GCC" != yes; then
8723 with_gnu_ld=no
8724 fi
8725 ;;
8726 interix*)
8727 # we just hope/assume this is gcc and not c89 (= MSVC++)
8728 with_gnu_ld=yes
8729 ;;
8730 openbsd*)
8731 with_gnu_ld=no
8732 ;;
8733 esac
8734
8735 ld_shlibs=yes
8736
8737 # On some targets, GNU ld is compatible enough with the native linker
8738 # that we're better off using the native interface for both.
8739 lt_use_gnu_ld_interface=no
8740 if test "$with_gnu_ld" = yes; then
8741 case $host_os in
8742 aix*)
8743 # The AIX port of GNU ld has always aspired to compatibility
8744 # with the native linker. However, as the warning in the GNU ld
8745 # block says, versions before 2.19.5* couldn't really create working
8746 # shared libraries, regardless of the interface used.
8747 case `$LD -v 2>&1` in
8748 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8749 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8750 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8751 *)
8752 lt_use_gnu_ld_interface=yes
8753 ;;
8754 esac
8755 ;;
8756 *)
8757 lt_use_gnu_ld_interface=yes
8758 ;;
8759 esac
8760 fi
8761
8762 if test "$lt_use_gnu_ld_interface" = yes; then
8763 # If archive_cmds runs LD, not CC, wlarc should be empty
8764 wlarc='${wl}'
8765
8766 # Set some defaults for GNU ld with shared library support. These
8767 # are reset later if shared libraries are not supported. Putting them
8768 # here allows them to be overridden if necessary.
8769 runpath_var=LD_RUN_PATH
8770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8771 export_dynamic_flag_spec='${wl}--export-dynamic'
8772 # ancient GNU ld didn't support --whole-archive et. al.
8773 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8774 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--n o-whole-archive'
8775 else
8776 whole_archive_flag_spec=
8777 fi
8778 supports_anon_versioning=no
8779 case `$LD -v 2>&1` in
8780 *GNU\ gold*) supports_anon_versioning=yes ;;
8781 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8782 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8783 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8784 *\ 2.11.*) ;; # other 2.11 versions
8785 *) supports_anon_versioning=yes ;;
8786 esac
8787
8788 # See if GNU ld supports shared libraries.
8789 case $host_os in
8790 aix[3-9]*)
8791 # On AIX/PPC, the GNU linker is very broken
8792 if test "$host_cpu" != ia64; then
8793 ld_shlibs=no
8794 cat <<_LT_EOF 1>&2
8795
8796 *** Warning: the GNU linker, at least up to release 2.19, is reported
8797 *** to be unable to reliably create shared libraries on AIX.
8798 *** Therefore, libtool is disabling shared libraries support. If you
8799 *** really care for shared libraries, you may want to install binutils
8800 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8801 *** You will then need to restart the configuration process.
8802
8803 _LT_EOF
8804 fi
8805 ;;
8806
8807 amigaos*)
8808 case $host_cpu in
8809 powerpc)
8810 # see comment about AmigaOS4 .so support
8811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
8812 archive_expsym_cmds=''
8813 ;;
8814 m68k)
8815 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAM E $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $o utput_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a 2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary .data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8816 hardcode_libdir_flag_spec='-L$libdir'
8817 hardcode_minus_L=yes
8818 ;;
8819 esac
8820 ;;
8821
8822 beos*)
8823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8824 allow_undefined_flag=unsupported
8825 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8826 # support --undefined. This deserves some investigation. FIXME
8827 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-sonam e $wl$soname -o $lib'
8828 else
8829 ld_shlibs=no
8830 fi
8831 ;;
8832
8833 cygwin* | mingw* | pw32* | cegcc*)
8834 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8835 # as there is no search path for DLLs.
8836 hardcode_libdir_flag_spec='-L$libdir'
8837 export_dynamic_flag_spec='${wl}--export-all-symbols'
8838 allow_undefined_flag=unsupported
8839 always_export_symbols=no
8840 enable_shared_with_static_runtimes=yes
8841 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SE D -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]* /\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8842 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A -Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8843
8844 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_o bjdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8846 # If the export-symbols file already is a .def file (1st line
8847 # is EXPORTS), use it as is; otherwise, prepend...
8848 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; th en
8849 cp $export_symbols $output_objdir/$soname.def;
8850 else
8851 echo EXPORTS > $output_objdir/$soname.def;
8852 cat $export_symbols >> $output_objdir/$soname.def;
8853 fi~
8854 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib - Xlinker $lib'
8855 else
8856 ld_shlibs=no
8857 fi
8858 ;;
8859
8860 haiku*)
8861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $ wl$soname -o $lib'
8862 link_all_deplibs=yes
8863 ;;
8864
8865 interix[3-9]*)
8866 hardcode_direct=no
8867 hardcode_shlibpath_var=no
8868 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8869 export_dynamic_flag_spec='${wl}-E'
8870 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8871 # Instead, shared libraries are loaded at an image base (0x10000000 by
8872 # default) and relocated if they conflict, which is a slow very memory
8873 # consuming and fragmenting process. To avoid this, we pick a random,
8874 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8875 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8876 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl }-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 13421772 80` -o $lib'
8877 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'
8878 ;;
8879
8880 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8881 tmp_diet=no
8882 if test "$host_os" = linux-dietlibc; then
8883 case $cc_basename in
8884 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!d iet-dyn)
8885 esac
8886 fi
8887 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8888 && test "$tmp_diet" = no
8889 then
8890 tmp_addflag=' $pic_flag'
8891 tmp_sharedflag='-shared'
8892 case $cc_basename,$host_cpu in
8893 pgcc*) # Portland Group C compiler
8894 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'
8895 tmp_addflag=' $pic_flag'
8896 ;;
8897 pgf77* | pgf90* | pgf95* | pgfortran*)
8898 # Portland Group f77 and f90 compilers
8899 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'
8900 tmp_addflag=' $pic_flag -Mnomain' ;;
8901 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8902 tmp_addflag=' -i_dynamic' ;;
8903 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8904 tmp_addflag=' -i_dynamic -nofor_main' ;;
8905 ifc* | ifort*) # Intel Fortran compiler
8906 tmp_addflag=' -nofor_main' ;;
8907 lf95*) # Lahey Fortran 8.1
8908 whole_archive_flag_spec=
8909 tmp_sharedflag='--shared' ;;
8910 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf b elow)
8911 tmp_sharedflag='-qmkshrobj'
8912 tmp_addflag= ;;
8913 nvcc*) # Cuda Compiler Driver 2.2
8914 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'
8915 compiler_needs_object=yes
8916 ;;
8917 esac
8918 case `$CC -V 2>&1 | sed 5q` in
8919 *Sun\ C*) # Sun C 5.9
8920 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for co nv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenien ce,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8921 compiler_needs_object=yes
8922 tmp_sharedflag='-G' ;;
8923 *Sun\ F*) # Sun Fortran 8.3
8924 tmp_sharedflag='-G' ;;
8925 esac
8926 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $c ompiler_flags ${wl}-soname $wl$soname -o $lib'
8927
8928 if test "x$supports_anon_versioning" = xyes; then
8929 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8930 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libn ame.ver~
8931 echo "local: *; };" >> $output_objdir/$libname.ver~
8932 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_fl ags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ve r -o $lib'
8933 fi
8934
8935 case $cc_basename in
8936 xlf* | bgf* | bgxlf* | mpixlf*)
8937 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8938 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archiv e'
8939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8940 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $son ame -o $lib'
8941 if test "x$supports_anon_versioning" = xyes; then
8942 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$li bname.ver~
8944 echo "local: *; };" >> $output_objdir/$libname.ver~
8945 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -versi on-script $output_objdir/$libname.ver -o $lib'
8946 fi
8947 ;;
8948 esac
8949 else
8950 ld_shlibs=no
8951 fi
8952 ;;
8953
8954 netbsd*)
8955 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8956 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8957 wlarc=
8958 else
8959 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${ wl}-soname $wl$soname -o $lib'
8960 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_f lags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $li b'
8961 fi
8962 ;;
8963
8964 solaris*)
8965 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8966 ld_shlibs=no
8967 cat <<_LT_EOF 1>&2
8968
8969 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8970 *** create shared libraries on Solaris systems. Therefore, libtool
8971 *** is disabling shared libraries support. We urge you to upgrade GNU
8972 *** binutils to release 2.9.1 or newer. Another option is to modify
8973 *** your PATH or compiler configuration so that the native linker is
8974 *** used, and then restart.
8975
8976 _LT_EOF
8977 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the n
8978 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${ wl}-soname $wl$soname -o $lib'
8979 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_f lags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $li b'
8980 else
8981 ld_shlibs=no
8982 fi
8983 ;;
8984
8985 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8986 case `$LD -v 2>&1` in
8987 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8988 ld_shlibs=no
8989 cat <<_LT_EOF 1>&2
8990
8991 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8992 *** reliably create shared libraries on SCO systems. Therefore, libtool
8993 *** is disabling shared libraries support. We urge you to upgrade GNU
8994 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8995 *** your PATH or compiler configuration so that the native linker is
8996 *** used, and then restart.
8997
8998 _LT_EOF
8999 ;;
9000 *)
9001 # For security reasons, it is highly recommended that you always
9002 # use absolute paths for naming shared libraries, and exclude the
9003 # DT_RUNPATH tag from executables and libraries. But doing so
9004 # requires that you compile everything twice, which is a pain.
9005 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; t hen
9006 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
9008 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9009 else
9010 ld_shlibs=no
9011 fi
9012 ;;
9013 esac
9014 ;;
9015
9016 sunos4*)
9017 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9018 wlarc=
9019 hardcode_direct=yes
9020 hardcode_shlibpath_var=no
9021 ;;
9022
9023 *)
9024 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9025 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${ wl}-soname $wl$soname -o $lib'
9026 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_f lags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $li b'
9027 else
9028 ld_shlibs=no
9029 fi
9030 ;;
9031 esac
9032
9033 if test "$ld_shlibs" = no; then
9034 runpath_var=
9035 hardcode_libdir_flag_spec=
9036 export_dynamic_flag_spec=
9037 whole_archive_flag_spec=
9038 fi
9039 else
9040 # PORTME fill in a description of your system's linker (not GNU ld)
9041 case $host_os in
9042 aix3*)
9043 allow_undefined_flag=unsupported
9044 always_export_symbols=yes
9045 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $link er_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objd ir/$soname'
9046 # Note: this linker hardcodes the directories in LIBPATH if there
9047 # are no directories specified by -L.
9048 hardcode_minus_L=yes
9049 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9050 # Neither direct hardcoding nor static linking is supported with a
9051 # broken collect2.
9052 hardcode_direct=unsupported
9053 fi
9054 ;;
9055
9056 aix[4-9]*)
9057 if test "$host_cpu" = ia64; then
9058 # On IA64, the linker does run time linking by default, so we don't
9059 # have to do anything special.
9060 aix_use_runtimelinking=no
9061 exp_sym_flag='-Bexport'
9062 no_entry_flag=""
9063 else
9064 # If we're using GNU nm, then we don't want the "-C" option.
9065 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9066 # Also, AIX nm treats weak defined symbols like other global
9067 # defined symbols, whereas GNU nm marks them as "W".
9068 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9069 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if ((( \$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3 ,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9070 else
9071 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (( (\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9072 fi
9073 aix_use_runtimelinking=no
9074
9075 # Test if we are trying to use run time linking or normal
9076 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9077 # need to do runtime linking.
9078 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9079 for ld_flag in $LDFLAGS; do
9080 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9081 aix_use_runtimelinking=yes
9082 break
9083 fi
9084 done
9085 ;;
9086 esac
9087
9088 exp_sym_flag='-bexport'
9089 no_entry_flag='-bnoentry'
9090 fi
9091
9092 # When large executables or shared objects are built, AIX ld can
9093 # have problems creating the table of contents. If linking a library
9094 # or program results in "error TOC overflow" add -mminimal-toc to
9095 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9096 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9097
9098 archive_cmds=''
9099 hardcode_direct=yes
9100 hardcode_direct_absolute=yes
9101 hardcode_libdir_separator=':'
9102 link_all_deplibs=yes
9103 file_list_spec='${wl}-f,'
9104
9105 if test "$GCC" = yes; then
9106 case $host_os in aix4.[012]|aix4.[012].*)
9107 # We only want to do this on AIX 4.2 and lower, the check
9108 # below for broken collect2 doesn't work under 4.3+
9109 collect2name=`${CC} -print-prog-name=collect2`
9110 if test -f "$collect2name" &&
9111 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9112 then
9113 # We have reworked collect2
9114 :
9115 else
9116 # We have old collect2
9117 hardcode_direct=unsupported
9118 # It fails to find uninstalled libraries when the uninstalled
9119 # path is not listed in the libpath. Setting hardcode_minus_L
9120 # to unsupported forces relinking
9121 hardcode_minus_L=yes
9122 hardcode_libdir_flag_spec='-L$libdir'
9123 hardcode_libdir_separator=
9124 fi
9125 ;;
9126 esac
9127 shared_flag='-shared'
9128 if test "$aix_use_runtimelinking" = yes; then
9129 shared_flag="$shared_flag "'${wl}-G'
9130 fi
9131 else
9132 # not using gcc
9133 if test "$host_cpu" = ia64; then
9134 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9135 # chokes on -Wl,-G. The following line is correct:
9136 shared_flag='-G'
9137 else
9138 if test "$aix_use_runtimelinking" = yes; then
9139 shared_flag='${wl}-G'
9140 else
9141 shared_flag='${wl}-bM:SRE'
9142 fi
9143 fi
9144 fi
9145
9146 export_dynamic_flag_spec='${wl}-bexpall'
9147 # It seems that -bexpall does not export symbols beginning with
9148 # underscore (_), so it is better to generate a list of symbols to export.
9149 always_export_symbols=yes
9150 if test "$aix_use_runtimelinking" = yes; then
9151 # Warning - without using the other runtime loading flags (-brtl),
9152 # -berok will link without error, but may produce a broken library.
9153 allow_undefined_flag='-berok'
9154 # Determine the default libpath from the value encoded in an
9155 # empty executable.
9156 if test "${lt_cv_aix_libpath+set}" = set; then
9157 aix_libpath=$lt_cv_aix_libpath
9158 else
9159 if ${lt_cv_aix_libpath_+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164
9165 int
9166 main ()
9167 {
9168
9169 ;
9170 return 0;
9171 }
9172 _ACEOF
9173 if ac_fn_c_try_link "$LINENO"; then :
9174
9175 lt_aix_libpath_sed='
9176 /Import File Strings/,/^$/ {
9177 /^0/ {
9178 s/^0 *\([^ ]*\) *$/\1/
9179 p
9180 }
9181 }'
9182 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_a ix_libpath_sed"`
9183 # Check for a 64-bit object if we didn't find anything.
9184 if test -z "$lt_cv_aix_libpath_"; then
9185 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e " $lt_aix_libpath_sed"`
9186 fi
9187 fi
9188 rm -f core conftest.err conftest.$ac_objext \
9189 conftest$ac_exeext conftest.$ac_ext
9190 if test -z "$lt_cv_aix_libpath_"; then
9191 lt_cv_aix_libpath_="/usr/lib:/lib"
9192 fi
9193
9194 fi
9195
9196 aix_libpath=$lt_cv_aix_libpath_
9197 fi
9198
9199 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9200 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\ ${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x" ; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sy m_flag:\$export_symbols $shared_flag"
9201 else
9202 if test "$host_cpu" = ia64; then
9203 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9204 allow_undefined_flag="-z nodefs"
9205 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $li bobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_f lag} '"\${wl}$exp_sym_flag:\$export_symbols"
9206 else
9207 # Determine the default libpath from the value encoded in an
9208 # empty executable.
9209 if test "${lt_cv_aix_libpath+set}" = set; then
9210 aix_libpath=$lt_cv_aix_libpath
9211 else
9212 if ${lt_cv_aix_libpath_+:} false; then :
9213 $as_echo_n "(cached) " >&6
9214 else
9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 /* end confdefs.h. */
9217
9218 int
9219 main ()
9220 {
9221
9222 ;
9223 return 0;
9224 }
9225 _ACEOF
9226 if ac_fn_c_try_link "$LINENO"; then :
9227
9228 lt_aix_libpath_sed='
9229 /Import File Strings/,/^$/ {
9230 /^0/ {
9231 s/^0 *\([^ ]*\) *$/\1/
9232 p
9233 }
9234 }'
9235 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_a ix_libpath_sed"`
9236 # Check for a 64-bit object if we didn't find anything.
9237 if test -z "$lt_cv_aix_libpath_"; then
9238 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e " $lt_aix_libpath_sed"`
9239 fi
9240 fi
9241 rm -f core conftest.err conftest.$ac_objext \
9242 conftest$ac_exeext conftest.$ac_ext
9243 if test -z "$lt_cv_aix_libpath_"; then
9244 lt_cv_aix_libpath_="/usr/lib:/lib"
9245 fi
9246
9247 fi
9248
9249 aix_libpath=$lt_cv_aix_libpath_
9250 fi
9251
9252 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9253 # Warning - without using the other run time loading flags,
9254 # -berok will link without error, but may produce a broken library.
9255 no_undefined_flag=' ${wl}-bernotok'
9256 allow_undefined_flag=' ${wl}-berok'
9257 if test "$with_gnu_ld" = yes; then
9258 # We only use this code for GNU lds that support --whole-archive.
9259 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no- whole-archive'
9260 else
9261 # Exported symbols can be pulled into shared objects from archives
9262 whole_archive_flag_spec='$convenience'
9263 fi
9264 archive_cmds_need_lc=yes
9265 # This is similar to how AIX traditionally builds its shared libraries .
9266 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $li bobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_un defined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$so name'
9267 fi
9268 fi
9269 ;;
9270
9271 amigaos*)
9272 case $host_cpu in
9273 powerpc)
9274 # see comment about AmigaOS4 .so support
9275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
9276 archive_expsym_cmds=''
9277 ;;
9278 m68k)
9279 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAM E $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $o utput_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a 2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary .data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9280 hardcode_libdir_flag_spec='-L$libdir'
9281 hardcode_minus_L=yes
9282 ;;
9283 esac
9284 ;;
9285
9286 bsdi[45]*)
9287 export_dynamic_flag_spec=-rdynamic
9288 ;;
9289
9290 cygwin* | mingw* | pw32* | cegcc*)
9291 # When not using gcc, we currently assume that we are using
9292 # Microsoft Visual C++.
9293 # hardcode_libdir_flag_spec is actually meaningless, as there is
9294 # no search path for DLLs.
9295 case $cc_basename in
9296 cl*)
9297 # Native MSVC
9298 hardcode_libdir_flag_spec=' '
9299 allow_undefined_flag=unsupported
9300 always_export_symbols=yes
9301 file_list_spec='@'
9302 # Tell ltmain to make .lib files, not .a files.
9303 libext=lib
9304 # Tell ltmain to make .dll files, not .so files.
9305 shrext_cmds=".dll"
9306 # FIXME: Setting linknames here is a bad hack.
9307 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $de plibs -Wl,-dll~linknames='
9308 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; th en
9309 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\ !p' < $export_symbols > $output_objdir/$soname.exp;
9310 else
9311 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_s ymbols > $output_objdir/$soname.exp;
9312 fi~
9313 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@ $tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dl l.lib"~
9314 linknames='
9315 # The linker will not automatically build a static lib if we build a DLL .
9316 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9317 enable_shared_with_static_runtimes=yes
9318 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9319 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $ SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ] /s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9320 # Don't use ranlib
9321 old_postinstall_cmds='chmod 644 $oldlib'
9322 postlink_cmds='lt_outputfile="@OUTPUT@"~
9323 lt_tool_outputfile="@TOOL_OUTPUT@"~
9324 case $lt_outputfile in
9325 *.exe|*.EXE) ;;
9326 *)
9327 lt_outputfile="$lt_outputfile.exe"
9328 lt_tool_outputfile="$lt_tool_outputfile.exe"
9329 ;;
9330 esac~
9331 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9332 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresou rce:"$lt_tool_outputfile" || exit 1;
9333 $RM "$lt_outputfile.manifest";
9334 fi'
9335 ;;
9336 *)
9337 # Assume MSVC wrapper
9338 hardcode_libdir_flag_spec=' '
9339 allow_undefined_flag=unsupported
9340 # Tell ltmain to make .lib files, not .a files.
9341 libext=lib
9342 # Tell ltmain to make .dll files, not .so files.
9343 shrext_cmds=".dll"
9344 # FIXME: Setting linknames here is a bad hack.
9345 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$depl ibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9346 # The linker will automatically build a .lib file if we build a DLL.
9347 old_archive_from_new_cmds='true'
9348 # FIXME: Should let the user specify the lib program.
9349 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9350 enable_shared_with_static_runtimes=yes
9351 ;;
9352 esac
9353 ;;
9354
9355 darwin* | rhapsody*)
9356
9357
9358 archive_cmds_need_lc=no
9359 hardcode_direct=no
9360 hardcode_automatic=yes
9361 hardcode_shlibpath_var=unsupported
9362 if test "$lt_cv_ld_force_load" = "yes"; then
9363 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\ " && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_ech o_all \"$new_convenience\"`'
9364
9365 else
9366 whole_archive_flag_spec=''
9367 fi
9368 link_all_deplibs=yes
9369 allow_undefined_flag="$_lt_dar_allow_undefined"
9370 case $cc_basename in
9371 ifort*) _lt_dar_can_shared=yes ;;
9372 *) _lt_dar_can_shared=$GCC ;;
9373 esac
9374 if test "$_lt_dar_can_shared" = "yes"; then
9375 output_verbose_link_cmd=func_echo_all
9376 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$d eplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_sing le_mod${_lt_dsymutil}"
9377 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplib s \$compiler_flags${_lt_dsymutil}"
9378 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${li bname}-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}"
9379 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}"
9380
9381 else
9382 ld_shlibs=no
9383 fi
9384
9385 ;;
9386
9387 dgux*)
9388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9389 hardcode_libdir_flag_spec='-L$libdir'
9390 hardcode_shlibpath_var=no
9391 ;;
9392
9393 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9394 # support. Future versions do this automatically, but an explicit c++rt0.o
9395 # does not break anything, and helps significantly (at the cost of a little
9396 # extra space).
9397 freebsd2.2*)
9398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr /lib/c++rt0.o'
9399 hardcode_libdir_flag_spec='-R$libdir'
9400 hardcode_direct=yes
9401 hardcode_shlibpath_var=no
9402 ;;
9403
9404 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9405 freebsd2.*)
9406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9407 hardcode_direct=yes
9408 hardcode_minus_L=yes
9409 hardcode_shlibpath_var=no
9410 ;;
9411
9412 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9413 freebsd* | dragonfly*)
9414 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_fl ags'
9415 hardcode_libdir_flag_spec='-R$libdir'
9416 hardcode_direct=yes
9417 hardcode_shlibpath_var=no
9418 ;;
9419
9420 hpux9*)
9421 if test "$GCC" = yes; then
9422 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b $ {wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~ test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9423 else
9424 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $o utput_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9425 fi
9426 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9427 hardcode_libdir_separator=:
9428 hardcode_direct=yes
9429
9430 # hardcode_minus_L: Not really in the search PATH,
9431 # but as the default location of the library.
9432 hardcode_minus_L=yes
9433 export_dynamic_flag_spec='${wl}-E'
9434 ;;
9435
9436 hpux10*)
9437 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9438 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$i nstall_libdir -o $lib $libobjs $deplibs $compiler_flags'
9439 else
9440 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $dep libs $linker_flags'
9441 fi
9442 if test "$with_gnu_ld" = no; then
9443 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9444 hardcode_libdir_separator=:
9445 hardcode_direct=yes
9446 hardcode_direct_absolute=yes
9447 export_dynamic_flag_spec='${wl}-E'
9448 # hardcode_minus_L: Not really in the search PATH,
9449 # but as the default location of the library.
9450 hardcode_minus_L=yes
9451 fi
9452 ;;
9453
9454 hpux11*)
9455 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9456 case $host_cpu in
9457 hppa*64*)
9458 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $depli bs $compiler_flags'
9459 ;;
9460 ia64*)
9461 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefau ltrpath -o $lib $libobjs $deplibs $compiler_flags'
9462 ;;
9463 *)
9464 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl} $install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9465 ;;
9466 esac
9467 else
9468 case $host_cpu in
9469 hppa*64*)
9470 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $c ompiler_flags'
9471 ;;
9472 ia64*)
9473 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9474 ;;
9475 *)
9476
9477 # Older versions of the 11.00 compiler do not understand -b yet
9478 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP doe s)
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands - b" >&5
9480 $as_echo_n "checking if $CC understands -b... " >&6; }
9481 if ${lt_cv_prog_compiler__b+:} false; then :
9482 $as_echo_n "(cached) " >&6
9483 else
9484 lt_cv_prog_compiler__b=no
9485 save_LDFLAGS="$LDFLAGS"
9486 LDFLAGS="$LDFLAGS -b"
9487 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9488 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9489 # The linker can only warn and ignore the option if not recognized
9490 # So say no if there are warnings
9491 if test -s conftest.err; then
9492 # Append any errors to the config.log.
9493 cat conftest.err 1>&5
9494 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9496 if diff conftest.exp conftest.er2 >/dev/null; then
9497 lt_cv_prog_compiler__b=yes
9498 fi
9499 else
9500 lt_cv_prog_compiler__b=yes
9501 fi
9502 fi
9503 $RM -r conftest*
9504 LDFLAGS="$save_LDFLAGS"
9505
9506 fi
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9508 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9509
9510 if test x"$lt_cv_prog_compiler__b" = xyes; then
9511 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $l ib $libobjs $deplibs $compiler_flags'
9512 else
9513 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9514 fi
9515
9516 ;;
9517 esac
9518 fi
9519 if test "$with_gnu_ld" = no; then
9520 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9521 hardcode_libdir_separator=:
9522
9523 case $host_cpu in
9524 hppa*64*|ia64*)
9525 hardcode_direct=no
9526 hardcode_shlibpath_var=no
9527 ;;
9528 *)
9529 hardcode_direct=yes
9530 hardcode_direct_absolute=yes
9531 export_dynamic_flag_spec='${wl}-E'
9532
9533 # hardcode_minus_L: Not really in the search PATH,
9534 # but as the default location of the library.
9535 hardcode_minus_L=yes
9536 ;;
9537 esac
9538 fi
9539 ;;
9540
9541 irix5* | irix6* | nonstopux*)
9542 if test "$GCC" = yes; then
9543 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${ wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_versio n ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9544 # Try to use the -exported_symbol ld option, if it does not
9545 # work, assume that -exports_file does not work either and
9546 # implicitly export all symbols.
9547 # This should be the same for all languages, so no per-tag cache variabl e.
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os l inker accepts -exported_symbol" >&5
9549 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " > &6; }
9550 if ${lt_cv_irix_exported_symbol+:} false; then :
9551 $as_echo_n "(cached) " >&6
9552 else
9553 save_LDFLAGS="$LDFLAGS"
9554 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update _registry ${wl}/dev/null"
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h. */
9557 int foo (void) { return 0; }
9558 _ACEOF
9559 if ac_fn_c_try_link "$LINENO"; then :
9560 lt_cv_irix_exported_symbol=yes
9561 else
9562 lt_cv_irix_exported_symbol=no
9563 fi
9564 rm -f core conftest.err conftest.$ac_objext \
9565 conftest$ac_exeext conftest.$ac_ext
9566 LDFLAGS="$save_LDFLAGS"
9567 fi
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >& 5
9569 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9570 if test "$lt_cv_irix_exported_symbol" = yes; then
9571 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler _flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-s et_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_loca tions ${wl}-exports_file ${wl}$export_symbols -o $lib'
9572 fi
9573 else
9574 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $son ame `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_re gistry ${output_objdir}/so_locations -o $lib'
9575 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -sona me $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -up date_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $li b'
9576 fi
9577 archive_cmds_need_lc='no'
9578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9579 hardcode_libdir_separator=:
9580 inherit_rpath=yes
9581 link_all_deplibs=yes
9582 ;;
9583
9584 netbsd*)
9585 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9587 else
9588 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9589 fi
9590 hardcode_libdir_flag_spec='-R$libdir'
9591 hardcode_direct=yes
9592 hardcode_shlibpath_var=no
9593 ;;
9594
9595 newsos6)
9596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9597 hardcode_direct=yes
9598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9599 hardcode_libdir_separator=:
9600 hardcode_shlibpath_var=no
9601 ;;
9602
9603 *nto* | *qnx*)
9604 ;;
9605
9606 openbsd*)
9607 if test -f /usr/libexec/ld.so; then
9608 hardcode_direct=yes
9609 hardcode_shlibpath_var=no
9610 hardcode_direct_absolute=yes
9611 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os -$host_cpu" = "openbsd2.8-powerpc"; then
9612 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compile r_flags'
9613 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $ compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9614 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9615 export_dynamic_flag_spec='${wl}-E'
9616 else
9617 case $host_os in
9618 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_fla gs'
9620 hardcode_libdir_flag_spec='-R$libdir'
9621 ;;
9622 *)
9623 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $comp iler_flags'
9624 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9625 ;;
9626 esac
9627 fi
9628 else
9629 ld_shlibs=no
9630 fi
9631 ;;
9632
9633 os2*)
9634 hardcode_libdir_flag_spec='-L$libdir'
9635 hardcode_minus_L=yes
9636 allow_undefined_flag=unsupported
9637 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libn ame.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DAT A >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$lib name.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_ objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9638 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_obj dir/$libname.def'
9639 ;;
9640
9641 osf3*)
9642 if test "$GCC" = yes; then
9643 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9644 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp iler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${w l}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_ locations -o $lib'
9645 else
9646 allow_undefined_flag=' -expect_unresolved \*'
9647 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp iler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9648 fi
9649 archive_cmds_need_lc='no'
9650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9651 hardcode_libdir_separator=:
9652 ;;
9653
9654 osf4* | osf5*) # as osf3* with the addition of -msym flag
9655 if test "$GCC" = yes; then
9656 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9657 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $dep libs $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'
9658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9659 else
9660 allow_undefined_flag=' -expect_unresolved \*'
9661 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp iler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_ve rsion $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9662 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~
9663 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_f lags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_vers ion $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib .exp'
9664
9665 # Both c and cxx compiler support -rpath directly
9666 hardcode_libdir_flag_spec='-rpath $libdir'
9667 fi
9668 archive_cmds_need_lc='no'
9669 hardcode_libdir_separator=:
9670 ;;
9671
9672 solaris*)
9673 no_undefined_flag=' -z defs'
9674 if test "$GCC" = yes; then
9675 wlarc='${wl}'
9676 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$sona me -o $lib $libobjs $deplibs $compiler_flags'
9677 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $ SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9678 $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'
9679 else
9680 case `$CC -V 2>&1` in
9681 *"Compilers 5.0"*)
9682 wlarc=''
9683 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobj s $deplibs $linker_flags'
9684 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9685 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9686 ;;
9687 *)
9688 wlarc='${wl}'
9689 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobj s $deplibs $compiler_flags'
9690 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9691 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9692 ;;
9693 esac
9694 fi
9695 hardcode_libdir_flag_spec='-R$libdir'
9696 hardcode_shlibpath_var=no
9697 case $host_os in
9698 solaris2.[0-5] | solaris2.[0-5].*) ;;
9699 *)
9700 # The compiler driver will combine and reorder linker options,
9701 # but understands `-z linker_flag'. GCC discards it without `$wl',
9702 # but is careful enough not to reorder.
9703 # Supported since Solaris 2.6 (maybe 2.5.1?)
9704 if test "$GCC" = yes; then
9705 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z $ {wl}defaultextract'
9706 else
9707 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9708 fi
9709 ;;
9710 esac
9711 link_all_deplibs=yes
9712 ;;
9713
9714 sunos4*)
9715 if test "x$host_vendor" = xsequent; then
9716 # Use $CC to link under sequent, because it throws in some extra .o
9717 # files that make .init and .fini sections work.
9718 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler _flags'
9719 else
9720 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $ linker_flags'
9721 fi
9722 hardcode_libdir_flag_spec='-L$libdir'
9723 hardcode_direct=yes
9724 hardcode_minus_L=yes
9725 hardcode_shlibpath_var=no
9726 ;;
9727
9728 sysv4)
9729 case $host_vendor in
9730 sni)
9731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
9732 hardcode_direct=yes # is this really true???
9733 ;;
9734 siemens)
9735 ## LD is ld it makes a PLAMLIB
9736 ## CC just makes a GrossModule.
9737 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9738 reload_cmds='$CC -r -o $output$reload_objs'
9739 hardcode_direct=no
9740 ;;
9741 motorola)
9742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
9743 hardcode_direct=no #Motorola manual says yes, but my tests say they li e
9744 ;;
9745 esac
9746 runpath_var='LD_RUN_PATH'
9747 hardcode_shlibpath_var=no
9748 ;;
9749
9750 sysv4.3*)
9751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9752 hardcode_shlibpath_var=no
9753 export_dynamic_flag_spec='-Bexport'
9754 ;;
9755
9756 sysv4*MP*)
9757 if test -d /usr/nec; then
9758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9759 hardcode_shlibpath_var=no
9760 runpath_var=LD_RUN_PATH
9761 hardcode_runpath_var=yes
9762 ld_shlibs=yes
9763 fi
9764 ;;
9765
9766 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3. 2v5.0.[024]*)
9767 no_undefined_flag='${wl}-z,text'
9768 archive_cmds_need_lc=no
9769 hardcode_shlibpath_var=no
9770 runpath_var='LD_RUN_PATH'
9771
9772 if test "$GCC" = yes; then
9773 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $com piler_flags'
9774 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$ soname -o $lib $libobjs $deplibs $compiler_flags'
9775 else
9776 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler _flags'
9777 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$sonam e -o $lib $libobjs $deplibs $compiler_flags'
9778 fi
9779 ;;
9780
9781 sysv5* | sco3.2v5* | sco5v6*)
9782 # Note: We can NOT use -z defs as we might desire, because we do not
9783 # link with -lc, and that would cause any symbols used from libc to
9784 # always be unresolved, which means just about no library would
9785 # ever link correctly. If we're not using GNU ld we use -z text
9786 # though, which does catch some bad symbols but isn't as heavy-handed
9787 # as -z defs.
9788 no_undefined_flag='${wl}-z,text'
9789 allow_undefined_flag='${wl}-z,nodefs'
9790 archive_cmds_need_lc=no
9791 hardcode_shlibpath_var=no
9792 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9793 hardcode_libdir_separator=':'
9794 link_all_deplibs=yes
9795 export_dynamic_flag_spec='${wl}-Bexport'
9796 runpath_var='LD_RUN_PATH'
9797
9798 if test "$GCC" = yes; then
9799 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $com piler_flags'
9800 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$ soname -o $lib $libobjs $deplibs $compiler_flags'
9801 else
9802 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler _flags'
9803 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$sonam e -o $lib $libobjs $deplibs $compiler_flags'
9804 fi
9805 ;;
9806
9807 uts4*)
9808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809 hardcode_libdir_flag_spec='-L$libdir'
9810 hardcode_shlibpath_var=no
9811 ;;
9812
9813 *)
9814 ld_shlibs=no
9815 ;;
9816 esac
9817
9818 if test x$host_vendor = xsni; then
9819 case $host in
9820 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9821 export_dynamic_flag_spec='${wl}-Blargedynsym'
9822 ;;
9823 esac
9824 fi
9825 fi
9826
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9828 $as_echo "$ld_shlibs" >&6; }
9829 test "$ld_shlibs" = no && can_build_shared=no
9830
9831 with_gnu_ld=$with_gnu_ld
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847 #
9848 # Do we need to explicitly link libc?
9849 #
9850 case "x$archive_cmds_need_lc" in
9851 x|xyes)
9852 # Assume -lc should be added
9853 archive_cmds_need_lc=yes
9854
9855 if test "$enable_shared" = yes && test "$GCC" = yes; then
9856 case $archive_cmds in
9857 *'~'*)
9858 # FIXME: we may have to deal with multi-command sequences.
9859 ;;
9860 '$CC '*)
9861 # Test whether the compiler implicitly links with -lc since on some
9862 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9863 # to ld, don't add -lc before -lgcc.
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be ex plicitly linked in" >&5
9865 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9866 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9867 $as_echo_n "(cached) " >&6
9868 else
9869 $RM conftest*
9870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9871
9872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9873 (eval $ac_compile) 2>&5
9874 ac_status=$?
9875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9876 test $ac_status = 0; } 2>conftest.err; then
9877 soname=conftest
9878 lib=conftest
9879 libobjs=conftest.$ac_objext
9880 deplibs=
9881 wl=$lt_prog_compiler_wl
9882 pic_flag=$lt_prog_compiler_pic
9883 compiler_flags=-v
9884 linker_flags=-v
9885 verstring=
9886 output_objdir=.
9887 libname=conftest
9888 lt_save_allow_undefined_flag=$allow_undefined_flag
9889 allow_undefined_flag=
9890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\ >\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9891 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9892 ac_status=$?
9893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9894 test $ac_status = 0; }
9895 then
9896 lt_cv_archive_cmds_need_lc=no
9897 else
9898 lt_cv_archive_cmds_need_lc=yes
9899 fi
9900 allow_undefined_flag=$lt_save_allow_undefined_flag
9901 else
9902 cat conftest.err 1>&5
9903 fi
9904 $RM conftest*
9905
9906 fi
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >& 5
9908 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9909 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9910 ;;
9911 esac
9912 fi
9913 ;;
9914 esac
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristi cs" >&5
10068 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10069
10070 if test "$GCC" = yes; then
10071 case $host_os in
10072 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10073 *) lt_awk_arg="/^libraries:/" ;;
10074 esac
10075 case $host_os in
10076 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10077 *) lt_sed_strip_eq="s,=/,/,g" ;;
10078 esac
10079 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^li braries://" -e $lt_sed_strip_eq`
10080 case $lt_search_path_spec in
10081 *\;*)
10082 # if the path contains ";" then we assume it to be the separator
10083 # otherwise default to the standard path separator (i.e. ":") - it is
10084 # assumed that no part of a normal pathname contains ";" but that should
10085 # okay in the real world where ";" in dirpaths is itself problematic.
10086 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10087 ;;
10088 *)
10089 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10090 ;;
10091 esac
10092 # Ok, now we have the path, separated by spaces, we can step through it
10093 # and add multilib dir if necessary.
10094 lt_tmp_lt_search_path_spec=
10095 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/d ev/null`
10096 for lt_sys_path in $lt_search_path_spec; do
10097 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10098 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_m ulti_os_dir"
10099 else
10100 test -d "$lt_sys_path" && \
10101 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10102 fi
10103 done
10104 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10105 BEGIN {RS=" "; FS="/|\n";} {
10106 lt_foo="";
10107 lt_count=0;
10108 for (lt_i = NF; lt_i > 0; lt_i--) {
10109 if ($lt_i != "" && $lt_i != ".") {
10110 if ($lt_i == "..") {
10111 lt_count++;
10112 } else {
10113 if (lt_count == 0) {
10114 lt_foo="/" $lt_i lt_foo;
10115 } else {
10116 lt_count--;
10117 }
10118 }
10119 }
10120 }
10121 if (lt_foo != "") { lt_freq[lt_foo]++; }
10122 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10123 }'`
10124 # AWK program above erroneously prepends '/' to C:/dos/paths
10125 # for these hosts.
10126 case $host_os in
10127 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10128 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10129 esac
10130 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10131 else
10132 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10133 fi
10134 library_names_spec=
10135 libname_spec='lib$name'
10136 soname_spec=
10137 shrext_cmds=".so"
10138 postinstall_cmds=
10139 postuninstall_cmds=
10140 finish_cmds=
10141 finish_eval=
10142 shlibpath_var=
10143 shlibpath_overrides_runpath=unknown
10144 version_type=none
10145 dynamic_linker="$host_os ld.so"
10146 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10147 need_lib_prefix=unknown
10148 hardcode_into_libs=no
10149
10150 # when you set need_version to no, make sure it does not cause -set_version
10151 # flags to be left without arguments
10152 need_version=unknown
10153
10154 case $host_os in
10155 aix3*)
10156 version_type=linux # correct to gnu/linux during the next big refactor
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10158 shlibpath_var=LIBPATH
10159
10160 # AIX 3 has no versioning support, so we append a major version to the name.
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 ;;
10163
10164 aix[4-9]*)
10165 version_type=linux # correct to gnu/linux during the next big refactor
10166 need_lib_prefix=no
10167 need_version=no
10168 hardcode_into_libs=yes
10169 if test "$host_cpu" = ia64; then
10170 # AIX 5 supports IA64
10171 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele ase}${shared_ext}$versuffix $libname${shared_ext}'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 else
10174 # With GCC up to 2.95.x, collect2 would create an import file
10175 # for dependence libraries. The import file would start with
10176 # the line `#! .'. This would cause the generated library to
10177 # depend on `.', always an invalid library. This was fixed in
10178 # development snapshots of GCC prior to 3.0.
10179 case $host_os in
10180 aix4 | aix4.[01] | aix4.[01].*)
10181 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10182 echo ' yes '
10183 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10184 :
10185 else
10186 can_build_shared=no
10187 fi
10188 ;;
10189 esac
10190 # AIX (on Power*) has no versioning support, so currently we can not hardcod e correct
10191 # soname into executable. Probably we can add versioning support to
10192 # collect2, so additional links can be useful in future.
10193 if test "$aix_use_runtimelinking" = yes; then
10194 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10195 # instead of lib<name>.a to let people know that these are not
10196 # typical AIX shared libraries.
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext}$major $libname${shared_ext}'
10198 else
10199 # We preserve .a as extension for shared libraries through AIX4.2
10200 # and later when we are not doing run time linking.
10201 library_names_spec='${libname}${release}.a $libname.a'
10202 soname_spec='${libname}${release}${shared_ext}$major'
10203 fi
10204 shlibpath_var=LIBPATH
10205 fi
10206 ;;
10207
10208 amigaos*)
10209 case $host_cpu in
10210 powerpc)
10211 # Since July 2007 AmigaOS4 officially supports .so libraries.
10212 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
10214 ;;
10215 m68k)
10216 library_names_spec='$libname.ixlibrary $libname.a'
10217 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10218 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`fu nc_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sy s/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixli brary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10219 ;;
10220 esac
10221 ;;
10222
10223 beos*)
10224 library_names_spec='${libname}${shared_ext}'
10225 dynamic_linker="$host_os ld.so"
10226 shlibpath_var=LIBRARY_PATH
10227 ;;
10228
10229 bsdi[45]*)
10230 version_type=linux # correct to gnu/linux during the next big refactor
10231 need_version=no
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
10233 soname_spec='${libname}${release}${shared_ext}$major'
10234 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib / usr/local/lib"
10237 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10238 # the default ld.so.conf also contains /usr/contrib/lib and
10239 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10240 # libtool to hard-code these into programs
10241 ;;
10242
10243 cygwin* | mingw* | pw32* | cegcc*)
10244 version_type=windows
10245 shrext_cmds=".dll"
10246 need_version=no
10247 need_lib_prefix=no
10248
10249 case $GCC,$cc_basename in
10250 yes,*)
10251 # gcc
10252 library_names_spec='$libname.dll.a'
10253 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10254 postinstall_cmds='base_file=`basename \${file}`~
10255 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\' '`~
10256 dldir=$destdir/`dirname \$dlpath`~
10257 test -d \$dldir || mkdir -p \$dldir~
10258 $install_prog $dir/$dlname \$dldir/$dlname~
10259 chmod a+x \$dldir/$dlname~
10260 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10261 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10262 fi'
10263 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10264 dlpath=$dir/\$dldll~
10265 $RM \$dlpath'
10266 shlibpath_overrides_runpath=yes
10267
10268 case $host_os in
10269 cygwin*)
10270 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10271 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S ED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10272
10273 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10274 ;;
10275 mingw* | cegcc*)
10276 # MinGW DLLs use traditional 'lib' prefix
10277 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix} ${shared_ext}'
10278 ;;
10279 pw32*)
10280 # pw32 DLLs use 'pw' prefix rather than 'lib'
10281 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release } | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10282 ;;
10283 esac
10284 dynamic_linker='Win32 ld.exe'
10285 ;;
10286
10287 *,cl*)
10288 # Native MSVC
10289 libname_spec='$name'
10290 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${ shared_ext}'
10291 library_names_spec='${libname}.dll.lib'
10292
10293 case $build_os in
10294 mingw*)
10295 sys_lib_search_path_spec=
10296 lt_save_ifs=$IFS
10297 IFS=';'
10298 for lt_path in $LIB
10299 do
10300 IFS=$lt_save_ifs
10301 # Let DOS variable expansion print the short 8.3 style file name.
10302 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10303 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10304 done
10305 IFS=$lt_save_ifs
10306 # Convert to MSYS style.
10307 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\ \\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10308 ;;
10309 cygwin*)
10310 # Convert to unix form, then to dos form, then back to unix form
10311 # but this time dos style (no spaces!) so that the unix form looks
10312 # like /cygdrive/c/PROGRA~1:/cygdr...
10313 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10314 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10315 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec " | $SED -e "s/$PATH_SEPARATOR/ /g"`
10316 ;;
10317 *)
10318 sys_lib_search_path_spec="$LIB"
10319 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; the n
10320 # It is most probably a Windows format PATH.
10321 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's /;/ /g'`
10322 else
10323 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s /$PATH_SEPARATOR/ /g"`
10324 fi
10325 # FIXME: find the short name or the path components, as spaces are
10326 # common. (e.g. "Program Files" -> "PROGRA~1")
10327 ;;
10328 esac
10329
10330 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10331 postinstall_cmds='base_file=`basename \${file}`~
10332 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\' '`~
10333 dldir=$destdir/`dirname \$dlpath`~
10334 test -d \$dldir || mkdir -p \$dldir~
10335 $install_prog $dir/$dlname \$dldir/$dlname'
10336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10337 dlpath=$dir/\$dldll~
10338 $RM \$dlpath'
10339 shlibpath_overrides_runpath=yes
10340 dynamic_linker='Win32 link.exe'
10341 ;;
10342
10343 *)
10344 # Assume MSVC wrapper
10345 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versu ffix}${shared_ext} $libname.lib'
10346 dynamic_linker='Win32 ld.exe'
10347 ;;
10348 esac
10349 # FIXME: first we should search . and the directory the executable is in
10350 shlibpath_var=PATH
10351 ;;
10352
10353 darwin* | rhapsody*)
10354 dynamic_linker="$host_os dyld"
10355 version_type=darwin
10356 need_lib_prefix=no
10357 need_version=no
10358 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ ext'
10359 soname_spec='${libname}${release}${major}$shared_ext'
10360 shlibpath_overrides_runpath=yes
10361 shlibpath_var=DYLD_LIBRARY_PATH
10362 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10363
10364 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10365 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10366 ;;
10367
10368 dgux*)
10369 version_type=linux # correct to gnu/linux during the next big refactor
10370 need_lib_prefix=no
10371 need_version=no
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname$shared_ext'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 shlibpath_var=LD_LIBRARY_PATH
10375 ;;
10376
10377 freebsd* | dragonfly*)
10378 # DragonFly does not have aout. When/if they implement a new
10379 # versioning mechanism, adjust this.
10380 if test -x /usr/bin/objformat; then
10381 objformat=`/usr/bin/objformat`
10382 else
10383 case $host_os in
10384 freebsd[23].*) objformat=aout ;;
10385 *) objformat=elf ;;
10386 esac
10387 fi
10388 version_type=freebsd-$objformat
10389 case $version_type in
10390 freebsd-elf*)
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext} $libname${shared_ext}'
10392 need_version=no
10393 need_lib_prefix=no
10394 ;;
10395 freebsd-*)
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${ shared_ext}$versuffix'
10397 need_version=yes
10398 ;;
10399 esac
10400 shlibpath_var=LD_LIBRARY_PATH
10401 case $host_os in
10402 freebsd2.*)
10403 shlibpath_overrides_runpath=yes
10404 ;;
10405 freebsd3.[01]* | freebsdelf3.[01]*)
10406 shlibpath_overrides_runpath=yes
10407 hardcode_into_libs=yes
10408 ;;
10409 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10410 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10411 shlibpath_overrides_runpath=no
10412 hardcode_into_libs=yes
10413 ;;
10414 *) # from 4.6 on, and DragonFly
10415 shlibpath_overrides_runpath=yes
10416 hardcode_into_libs=yes
10417 ;;
10418 esac
10419 ;;
10420
10421 gnu*)
10422 version_type=linux # correct to gnu/linux during the next big refactor
10423 need_lib_prefix=no
10424 need_version=no
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}${major} ${libname}${shared_ext}'
10426 soname_spec='${libname}${release}${shared_ext}$major'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 shlibpath_overrides_runpath=no
10429 hardcode_into_libs=yes
10430 ;;
10431
10432 haiku*)
10433 version_type=linux # correct to gnu/linux during the next big refactor
10434 need_lib_prefix=no
10435 need_version=no
10436 dynamic_linker="$host_os runtime_loader"
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}${major} ${libname}${shared_ext}'
10438 soname_spec='${libname}${release}${shared_ext}$major'
10439 shlibpath_var=LIBRARY_PATH
10440 shlibpath_overrides_runpath=yes
10441 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/syste m/lib'
10442 hardcode_into_libs=yes
10443 ;;
10444
10445 hpux9* | hpux10* | hpux11*)
10446 # Give a soname corresponding to the major version so that dld.sl refuses to
10447 # link against other versions.
10448 version_type=sunos
10449 need_lib_prefix=no
10450 need_version=no
10451 case $host_cpu in
10452 ia64*)
10453 shrext_cmds='.so'
10454 hardcode_into_libs=yes
10455 dynamic_linker="$host_os dld.so"
10456 shlibpath_var=LD_LIBRARY_PATH
10457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 if test "X$HPUX_IA64_MODE" = X32; then
10461 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local /lib"
10462 else
10463 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10464 fi
10465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10466 ;;
10467 hppa*64*)
10468 shrext_cmds='.sl'
10469 hardcode_into_libs=yes
10470 dynamic_linker="$host_os dld.sl"
10471 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10476 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10477 ;;
10478 *)
10479 shrext_cmds='.sl'
10480 dynamic_linker="$host_os dld.sl"
10481 shlibpath_var=SHLIB_PATH
10482 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
10484 soname_spec='${libname}${release}${shared_ext}$major'
10485 ;;
10486 esac
10487 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10488 postinstall_cmds='chmod 555 $lib'
10489 # or fails outright, so override atomically:
10490 install_override_mode=555
10491 ;;
10492
10493 interix[3-9]*)
10494 version_type=linux # correct to gnu/linux during the next big refactor
10495 need_lib_prefix=no
10496 need_version=no
10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${shared_ext}'
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10500 shlibpath_var=LD_LIBRARY_PATH
10501 shlibpath_overrides_runpath=no
10502 hardcode_into_libs=yes
10503 ;;
10504
10505 irix5* | irix6* | nonstopux*)
10506 case $host_os in
10507 nonstopux*) version_type=nonstopux ;;
10508 *)
10509 if test "$lt_cv_prog_gnu_ld" = yes; then
10510 version_type=linux # correct to gnu/linux during the next big re factor
10511 else
10512 version_type=irix
10513 fi ;;
10514 esac
10515 need_lib_prefix=no
10516 need_version=no
10517 soname_spec='${libname}${release}${shared_ext}$major'
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext }'
10519 case $host_os in
10520 irix5* | nonstopux*)
10521 libsuff= shlibsuff=
10522 ;;
10523 *)
10524 case $LD in # libtool.m4 will add one of these switches to LD
10525 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10526 libsuff= shlibsuff= libmagic=32-bit;;
10527 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10528 libsuff=32 shlibsuff=N32 libmagic=N32;;
10529 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10530 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10531 *) libsuff= shlibsuff= libmagic=never-match;;
10532 esac
10533 ;;
10534 esac
10535 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10536 shlibpath_overrides_runpath=no
10537 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li bsuff}"
10538 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10539 hardcode_into_libs=yes
10540 ;;
10541
10542 # No shared lib support for Linux oldld, aout, or coff.
10543 linux*oldld* | linux*aout* | linux*coff*)
10544 dynamic_linker=no
10545 ;;
10546
10547 # This must be glibc/ELF.
10548 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10549 version_type=linux # correct to gnu/linux during the next big refactor
10550 need_lib_prefix=no
10551 need_version=no
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 shlibpath_overrides_runpath=no
10557
10558 # Some binutils ld are patched to set DT_RUNPATH
10559 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10560 $as_echo_n "(cached) " >&6
10561 else
10562 lt_cv_shlibpath_overrides_runpath=no
10563 save_LDFLAGS=$LDFLAGS
10564 save_libdir=$libdir
10565 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10566 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568 /* end confdefs.h. */
10569
10570 int
10571 main ()
10572 {
10573
10574 ;
10575 return 0;
10576 }
10577 _ACEOF
10578 if ac_fn_c_try_link "$LINENO"; then :
10579 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/d ev/null; then :
10580 lt_cv_shlibpath_overrides_runpath=yes
10581 fi
10582 fi
10583 rm -f core conftest.err conftest.$ac_objext \
10584 conftest$ac_exeext conftest.$ac_ext
10585 LDFLAGS=$save_LDFLAGS
10586 libdir=$save_libdir
10587
10588 fi
10589
10590 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10591
10592 # This implies no fast_install, which is unacceptable.
10593 # Some rework will be needed to allow for fast_install
10594 # before this can be enabled.
10595 hardcode_into_libs=yes
10596
10597 # Add ABI-specific directories to the system library path.
10598 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10599
10600 # Append ld.so.conf contents to the search path
10601 if test -f /etc/ld.so.conf; then
10602 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 | $S ED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10603 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10604
10605 fi
10606
10607 # We used to test for /lib/ld.so.1 and disable shared libraries on
10608 # powerpc, because MkLinux only supported shared libraries with the
10609 # GNU dynamic linker. Since this was broken with cross compilers,
10610 # most powerpc-linux boxes support dynamic linking these days and
10611 # people can always --disable-shared, the test was removed, and we
10612 # assume the GNU/Linux dynamic linker is in use.
10613 dynamic_linker='GNU/Linux ld.so'
10614 ;;
10615
10616 netbsd*)
10617 version_type=sunos
10618 need_lib_prefix=no
10619 need_version=no
10620 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ shared_ext}$versuffix'
10622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10623 dynamic_linker='NetBSD (a.out) ld.so'
10624 else
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major ${libname}${shared_ext}'
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 dynamic_linker='NetBSD ld.elf_so'
10628 fi
10629 shlibpath_var=LD_LIBRARY_PATH
10630 shlibpath_overrides_runpath=yes
10631 hardcode_into_libs=yes
10632 ;;
10633
10634 newsos6)
10635 version_type=linux # correct to gnu/linux during the next big refactor
10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 shlibpath_overrides_runpath=yes
10639 ;;
10640
10641 *nto* | *qnx*)
10642 version_type=qnx
10643 need_lib_prefix=no
10644 need_version=no
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
10646 soname_spec='${libname}${release}${shared_ext}$major'
10647 shlibpath_var=LD_LIBRARY_PATH
10648 shlibpath_overrides_runpath=no
10649 hardcode_into_libs=yes
10650 dynamic_linker='ldqnx.so'
10651 ;;
10652
10653 openbsd*)
10654 version_type=sunos
10655 sys_lib_dlsearch_path_spec="/usr/lib"
10656 need_lib_prefix=no
10657 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10658 case $host_os in
10659 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10660 *) need_version=no ;;
10661 esac
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
10663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host _cpu" = "openbsd2.8-powerpc"; then
10666 case $host_os in
10667 openbsd2.[89] | openbsd2.[89].*)
10668 shlibpath_overrides_runpath=no
10669 ;;
10670 *)
10671 shlibpath_overrides_runpath=yes
10672 ;;
10673 esac
10674 else
10675 shlibpath_overrides_runpath=yes
10676 fi
10677 ;;
10678
10679 os2*)
10680 libname_spec='$name'
10681 shrext_cmds=".dll"
10682 need_lib_prefix=no
10683 library_names_spec='$libname${shared_ext} $libname.a'
10684 dynamic_linker='OS/2 ld.exe'
10685 shlibpath_var=LIBPATH
10686 ;;
10687
10688 osf3* | osf4* | osf5*)
10689 version_type=osf
10690 need_lib_prefix=no
10691 need_version=no
10692 soname_spec='${libname}${release}${shared_ext}$major'
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10696 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10697 ;;
10698
10699 rdos*)
10700 dynamic_linker=no
10701 ;;
10702
10703 solaris*)
10704 version_type=linux # correct to gnu/linux during the next big refactor
10705 need_lib_prefix=no
10706 need_version=no
10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
10708 soname_spec='${libname}${release}${shared_ext}$major'
10709 shlibpath_var=LD_LIBRARY_PATH
10710 shlibpath_overrides_runpath=yes
10711 hardcode_into_libs=yes
10712 # ldd complains unless libraries are executable
10713 postinstall_cmds='chmod +x $lib'
10714 ;;
10715
10716 sunos4*)
10717 version_type=sunos
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
10719 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10720 shlibpath_var=LD_LIBRARY_PATH
10721 shlibpath_overrides_runpath=yes
10722 if test "$with_gnu_ld" = yes; then
10723 need_lib_prefix=no
10724 fi
10725 need_version=yes
10726 ;;
10727
10728 sysv4 | sysv4.3*)
10729 version_type=linux # correct to gnu/linux during the next big refactor
10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
10731 soname_spec='${libname}${release}${shared_ext}$major'
10732 shlibpath_var=LD_LIBRARY_PATH
10733 case $host_vendor in
10734 sni)
10735 shlibpath_overrides_runpath=no
10736 need_lib_prefix=no
10737 runpath_var=LD_RUN_PATH
10738 ;;
10739 siemens)
10740 need_lib_prefix=no
10741 ;;
10742 motorola)
10743 need_lib_prefix=no
10744 need_version=no
10745 shlibpath_overrides_runpath=no
10746 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10747 ;;
10748 esac
10749 ;;
10750
10751 sysv4*MP*)
10752 if test -d /usr/nec ;then
10753 version_type=linux # correct to gnu/linux during the next big refactor
10754 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$ major $libname${shared_ext}'
10755 soname_spec='$libname${shared_ext}.$major'
10756 shlibpath_var=LD_LIBRARY_PATH
10757 fi
10758 ;;
10759
10760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10761 version_type=freebsd-elf
10762 need_lib_prefix=no
10763 need_version=no
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext} $libname${shared_ext}'
10765 soname_spec='${libname}${release}${shared_ext}$major'
10766 shlibpath_var=LD_LIBRARY_PATH
10767 shlibpath_overrides_runpath=yes
10768 hardcode_into_libs=yes
10769 if test "$with_gnu_ld" = yes; then
10770 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10771 else
10772 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10773 case $host_os in
10774 sco3.2v5*)
10775 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10776 ;;
10777 esac
10778 fi
10779 sys_lib_dlsearch_path_spec='/usr/lib'
10780 ;;
10781
10782 tpf*)
10783 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10784 version_type=linux # correct to gnu/linux during the next big refactor
10785 need_lib_prefix=no
10786 need_version=no
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 shlibpath_overrides_runpath=no
10790 hardcode_into_libs=yes
10791 ;;
10792
10793 uts4*)
10794 version_type=linux # correct to gnu/linux during the next big refactor
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
10796 soname_spec='${libname}${release}${shared_ext}$major'
10797 shlibpath_var=LD_LIBRARY_PATH
10798 ;;
10799
10800 *)
10801 dynamic_linker=no
10802 ;;
10803 esac
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10805 $as_echo "$dynamic_linker" >&6; }
10806 test "$dynamic_linker" = no && can_build_shared=no
10807
10808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10809 if test "$GCC" = yes; then
10810 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL ER_PATH LIBRARY_PATH"
10811 fi
10812
10813 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10814 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10815 fi
10816 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10817 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10818 fi
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library path s into programs" >&5
10912 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10913 hardcode_action=
10914 if test -n "$hardcode_libdir_flag_spec" ||
10915 test -n "$runpath_var" ||
10916 test "X$hardcode_automatic" = "Xyes" ; then
10917
10918 # We can hardcode non-existent directories.
10919 if test "$hardcode_direct" != no &&
10920 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10921 # have to relink, otherwise we might link with an installed library
10922 # when we should be linking with a yet-to-be-installed one
10923 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10924 test "$hardcode_minus_L" != no; then
10925 # Linking always hardcodes the temporary library directory.
10926 hardcode_action=relink
10927 else
10928 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10929 hardcode_action=immediate
10930 fi
10931 else
10932 # We cannot hardcode anything, or else we can only hardcode existing
10933 # directories.
10934 hardcode_action=unsupported
10935 fi
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10937 $as_echo "$hardcode_action" >&6; }
10938
10939 if test "$hardcode_action" = relink ||
10940 test "$inherit_rpath" = yes; then
10941 # Fast installation is not supported
10942 enable_fast_install=no
10943 elif test "$shlibpath_overrides_runpath" = yes ||
10944 test "$enable_shared" = no; then
10945 # Fast installation is not necessary
10946 enable_fast_install=needless
10947 fi
10948
10949
10950
10951
10952
10953
10954 if test "x$enable_dlopen" != xyes; then
10955 enable_dlopen=unknown
10956 enable_dlopen_self=unknown
10957 enable_dlopen_self_static=unknown
10958 else
10959 lt_cv_dlopen=no
10960 lt_cv_dlopen_libs=
10961
10962 case $host_os in
10963 beos*)
10964 lt_cv_dlopen="load_add_on"
10965 lt_cv_dlopen_libs=
10966 lt_cv_dlopen_self=yes
10967 ;;
10968
10969 mingw* | pw32* | cegcc*)
10970 lt_cv_dlopen="LoadLibrary"
10971 lt_cv_dlopen_libs=
10972 ;;
10973
10974 cygwin*)
10975 lt_cv_dlopen="dlopen"
10976 lt_cv_dlopen_libs=
10977 ;;
10978
10979 darwin*)
10980 # if libdl is installed we need to link against it
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10982 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10983 if ${ac_cv_lib_dl_dlopen+:} false; then :
10984 $as_echo_n "(cached) " >&6
10985 else
10986 ac_check_lib_save_LIBS=$LIBS
10987 LIBS="-ldl $LIBS"
10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10990
10991 /* Override any GCC internal prototype to avoid an error.
10992 Use char because int might match the return type of a GCC
10993 builtin and then its argument prototype would still apply. */
10994 #ifdef __cplusplus
10995 extern "C"
10996 #endif
10997 char dlopen ();
10998 int
10999 main ()
11000 {
11001 return dlopen ();
11002 ;
11003 return 0;
11004 }
11005 _ACEOF
11006 if ac_fn_c_try_link "$LINENO"; then :
11007 ac_cv_lib_dl_dlopen=yes
11008 else
11009 ac_cv_lib_dl_dlopen=no
11010 fi
11011 rm -f core conftest.err conftest.$ac_objext \
11012 conftest$ac_exeext conftest.$ac_ext
11013 LIBS=$ac_check_lib_save_LIBS
11014 fi
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11016 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11017 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11019 else
11020
11021 lt_cv_dlopen="dyld"
11022 lt_cv_dlopen_libs=
11023 lt_cv_dlopen_self=yes
11024
11025 fi
11026
11027 ;;
11028
11029 *)
11030 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11031 if test "x$ac_cv_func_shl_load" = xyes; then :
11032 lt_cv_dlopen="shl_load"
11033 else
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11035 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11036 if ${ac_cv_lib_dld_shl_load+:} false; then :
11037 $as_echo_n "(cached) " >&6
11038 else
11039 ac_check_lib_save_LIBS=$LIBS
11040 LIBS="-ldld $LIBS"
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11043
11044 /* Override any GCC internal prototype to avoid an error.
11045 Use char because int might match the return type of a GCC
11046 builtin and then its argument prototype would still apply. */
11047 #ifdef __cplusplus
11048 extern "C"
11049 #endif
11050 char shl_load ();
11051 int
11052 main ()
11053 {
11054 return shl_load ();
11055 ;
11056 return 0;
11057 }
11058 _ACEOF
11059 if ac_fn_c_try_link "$LINENO"; then :
11060 ac_cv_lib_dld_shl_load=yes
11061 else
11062 ac_cv_lib_dld_shl_load=no
11063 fi
11064 rm -f core conftest.err conftest.$ac_objext \
11065 conftest$ac_exeext conftest.$ac_ext
11066 LIBS=$ac_check_lib_save_LIBS
11067 fi
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11069 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11070 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11071 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11072 else
11073 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11074 if test "x$ac_cv_func_dlopen" = xyes; then :
11075 lt_cv_dlopen="dlopen"
11076 else
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11078 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11079 if ${ac_cv_lib_dl_dlopen+:} false; then :
11080 $as_echo_n "(cached) " >&6
11081 else
11082 ac_check_lib_save_LIBS=$LIBS
11083 LIBS="-ldl $LIBS"
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11086
11087 /* Override any GCC internal prototype to avoid an error.
11088 Use char because int might match the return type of a GCC
11089 builtin and then its argument prototype would still apply. */
11090 #ifdef __cplusplus
11091 extern "C"
11092 #endif
11093 char dlopen ();
11094 int
11095 main ()
11096 {
11097 return dlopen ();
11098 ;
11099 return 0;
11100 }
11101 _ACEOF
11102 if ac_fn_c_try_link "$LINENO"; then :
11103 ac_cv_lib_dl_dlopen=yes
11104 else
11105 ac_cv_lib_dl_dlopen=no
11106 fi
11107 rm -f core conftest.err conftest.$ac_objext \
11108 conftest$ac_exeext conftest.$ac_ext
11109 LIBS=$ac_check_lib_save_LIBS
11110 fi
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11112 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11113 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11114 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11115 else
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11117 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11118 if ${ac_cv_lib_svld_dlopen+:} false; then :
11119 $as_echo_n "(cached) " >&6
11120 else
11121 ac_check_lib_save_LIBS=$LIBS
11122 LIBS="-lsvld $LIBS"
11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124 /* end confdefs.h. */
11125
11126 /* Override any GCC internal prototype to avoid an error.
11127 Use char because int might match the return type of a GCC
11128 builtin and then its argument prototype would still apply. */
11129 #ifdef __cplusplus
11130 extern "C"
11131 #endif
11132 char dlopen ();
11133 int
11134 main ()
11135 {
11136 return dlopen ();
11137 ;
11138 return 0;
11139 }
11140 _ACEOF
11141 if ac_fn_c_try_link "$LINENO"; then :
11142 ac_cv_lib_svld_dlopen=yes
11143 else
11144 ac_cv_lib_svld_dlopen=no
11145 fi
11146 rm -f core conftest.err conftest.$ac_objext \
11147 conftest$ac_exeext conftest.$ac_ext
11148 LIBS=$ac_check_lib_save_LIBS
11149 fi
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11151 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11152 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11153 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11154 else
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11156 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11157 if ${ac_cv_lib_dld_dld_link+:} false; then :
11158 $as_echo_n "(cached) " >&6
11159 else
11160 ac_check_lib_save_LIBS=$LIBS
11161 LIBS="-ldld $LIBS"
11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h. */
11164
11165 /* Override any GCC internal prototype to avoid an error.
11166 Use char because int might match the return type of a GCC
11167 builtin and then its argument prototype would still apply. */
11168 #ifdef __cplusplus
11169 extern "C"
11170 #endif
11171 char dld_link ();
11172 int
11173 main ()
11174 {
11175 return dld_link ();
11176 ;
11177 return 0;
11178 }
11179 _ACEOF
11180 if ac_fn_c_try_link "$LINENO"; then :
11181 ac_cv_lib_dld_dld_link=yes
11182 else
11183 ac_cv_lib_dld_dld_link=no
11184 fi
11185 rm -f core conftest.err conftest.$ac_objext \
11186 conftest$ac_exeext conftest.$ac_ext
11187 LIBS=$ac_check_lib_save_LIBS
11188 fi
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11190 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11191 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11192 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11193 fi
11194
11195
11196 fi
11197
11198
11199 fi
11200
11201
11202 fi
11203
11204
11205 fi
11206
11207
11208 fi
11209
11210 ;;
11211 esac
11212
11213 if test "x$lt_cv_dlopen" != xno; then
11214 enable_dlopen=yes
11215 else
11216 enable_dlopen=no
11217 fi
11218
11219 case $lt_cv_dlopen in
11220 dlopen)
11221 save_CPPFLAGS="$CPPFLAGS"
11222 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11223
11224 save_LDFLAGS="$LDFLAGS"
11225 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11226
11227 save_LIBS="$LIBS"
11228 LIBS="$lt_cv_dlopen_libs $LIBS"
11229
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlop en itself" >&5
11231 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11232 if ${lt_cv_dlopen_self+:} false; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235 if test "$cross_compiling" = yes; then :
11236 lt_cv_dlopen_self=cross
11237 else
11238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11239 lt_status=$lt_dlunknown
11240 cat > conftest.$ac_ext <<_LT_EOF
11241 #line $LINENO "configure"
11242 #include "confdefs.h"
11243
11244 #if HAVE_DLFCN_H
11245 #include <dlfcn.h>
11246 #endif
11247
11248 #include <stdio.h>
11249
11250 #ifdef RTLD_GLOBAL
11251 # define LT_DLGLOBAL RTLD_GLOBAL
11252 #else
11253 # ifdef DL_GLOBAL
11254 # define LT_DLGLOBAL DL_GLOBAL
11255 # else
11256 # define LT_DLGLOBAL 0
11257 # endif
11258 #endif
11259
11260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11261 find out it does not work in some platform. */
11262 #ifndef LT_DLLAZY_OR_NOW
11263 # ifdef RTLD_LAZY
11264 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11265 # else
11266 # ifdef DL_LAZY
11267 # define LT_DLLAZY_OR_NOW DL_LAZY
11268 # else
11269 # ifdef RTLD_NOW
11270 # define LT_DLLAZY_OR_NOW RTLD_NOW
11271 # else
11272 # ifdef DL_NOW
11273 # define LT_DLLAZY_OR_NOW DL_NOW
11274 # else
11275 # define LT_DLLAZY_OR_NOW 0
11276 # endif
11277 # endif
11278 # endif
11279 # endif
11280 #endif
11281
11282 /* When -fvisbility=hidden is used, assume the code has been annotated
11283 correspondingly for the symbols needed. */
11284 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC_ _ > 3))
11285 int fnord () __attribute__((visibility("default")));
11286 #endif
11287
11288 int fnord () { return 42; }
11289 int main ()
11290 {
11291 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11292 int status = $lt_dlunknown;
11293
11294 if (self)
11295 {
11296 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11297 else
11298 {
11299 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11300 else puts (dlerror ());
11301 }
11302 /* dlclose (self); */
11303 }
11304 else
11305 puts (dlerror ());
11306
11307 return status;
11308 }
11309 _LT_EOF
11310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11311 (eval $ac_link) 2>&5
11312 ac_status=$?
11313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11314 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11315 (./conftest; exit; ) >&5 2>/dev/null
11316 lt_status=$?
11317 case x$lt_status in
11318 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11319 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11320 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11321 esac
11322 else :
11323 # compilation failed
11324 lt_cv_dlopen_self=no
11325 fi
11326 fi
11327 rm -fr conftest*
11328
11329
11330 fi
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11332 $as_echo "$lt_cv_dlopen_self" >&6; }
11333
11334 if test "x$lt_cv_dlopen_self" = xyes; then
11335 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\ "
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically lin ked program can dlopen itself" >&5
11337 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11338 if ${lt_cv_dlopen_self_static+:} false; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11341 if test "$cross_compiling" = yes; then :
11342 lt_cv_dlopen_self_static=cross
11343 else
11344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11345 lt_status=$lt_dlunknown
11346 cat > conftest.$ac_ext <<_LT_EOF
11347 #line $LINENO "configure"
11348 #include "confdefs.h"
11349
11350 #if HAVE_DLFCN_H
11351 #include <dlfcn.h>
11352 #endif
11353
11354 #include <stdio.h>
11355
11356 #ifdef RTLD_GLOBAL
11357 # define LT_DLGLOBAL RTLD_GLOBAL
11358 #else
11359 # ifdef DL_GLOBAL
11360 # define LT_DLGLOBAL DL_GLOBAL
11361 # else
11362 # define LT_DLGLOBAL 0
11363 # endif
11364 #endif
11365
11366 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11367 find out it does not work in some platform. */
11368 #ifndef LT_DLLAZY_OR_NOW
11369 # ifdef RTLD_LAZY
11370 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11371 # else
11372 # ifdef DL_LAZY
11373 # define LT_DLLAZY_OR_NOW DL_LAZY
11374 # else
11375 # ifdef RTLD_NOW
11376 # define LT_DLLAZY_OR_NOW RTLD_NOW
11377 # else
11378 # ifdef DL_NOW
11379 # define LT_DLLAZY_OR_NOW DL_NOW
11380 # else
11381 # define LT_DLLAZY_OR_NOW 0
11382 # endif
11383 # endif
11384 # endif
11385 # endif
11386 #endif
11387
11388 /* When -fvisbility=hidden is used, assume the code has been annotated
11389 correspondingly for the symbols needed. */
11390 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC_ _ > 3))
11391 int fnord () __attribute__((visibility("default")));
11392 #endif
11393
11394 int fnord () { return 42; }
11395 int main ()
11396 {
11397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11398 int status = $lt_dlunknown;
11399
11400 if (self)
11401 {
11402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11403 else
11404 {
11405 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11406 else puts (dlerror ());
11407 }
11408 /* dlclose (self); */
11409 }
11410 else
11411 puts (dlerror ());
11412
11413 return status;
11414 }
11415 _LT_EOF
11416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11417 (eval $ac_link) 2>&5
11418 ac_status=$?
11419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11420 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11421 (./conftest; exit; ) >&5 2>/dev/null
11422 lt_status=$?
11423 case x$lt_status in
11424 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11425 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11426 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11427 esac
11428 else :
11429 # compilation failed
11430 lt_cv_dlopen_self_static=no
11431 fi
11432 fi
11433 rm -fr conftest*
11434
11435
11436 fi
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11438 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11439 fi
11440
11441 CPPFLAGS="$save_CPPFLAGS"
11442 LDFLAGS="$save_LDFLAGS"
11443 LIBS="$save_LIBS"
11444 ;;
11445 esac
11446
11447 case $lt_cv_dlopen_self in
11448 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11449 *) enable_dlopen_self=unknown ;;
11450 esac
11451
11452 case $lt_cv_dlopen_self_static in
11453 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11454 *) enable_dlopen_self_static=unknown ;;
11455 esac
11456 fi
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474 striplib=
11475 old_striplib=
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11477 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11478 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11479 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11480 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11482 $as_echo "yes" >&6; }
11483 else
11484 # FIXME - insert some real tests, host_os isn't really good enough
11485 case $host_os in
11486 darwin*)
11487 if test -n "$STRIP" ; then
11488 striplib="$STRIP -x"
11489 old_striplib="$STRIP -S"
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11491 $as_echo "yes" >&6; }
11492 else
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494 $as_echo "no" >&6; }
11495 fi
11496 ;;
11497 *)
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499 $as_echo "no" >&6; }
11500 ;;
11501 esac
11502 fi
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515 # Report which library types will actually be built
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared l ibraries" >&5
11517 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11519 $as_echo "$can_build_shared" >&6; }
11520
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libr aries" >&5
11522 $as_echo_n "checking whether to build shared libraries... " >&6; }
11523 test "$can_build_shared" = "no" && enable_shared=no
11524
11525 # On AIX, shared libraries and static libraries use the same namespace, and
11526 # are all built from PIC.
11527 case $host_os in
11528 aix3*)
11529 test "$enable_shared" = yes && enable_static=no
11530 if test -n "$RANLIB"; then
11531 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11532 postinstall_cmds='$RANLIB $lib'
11533 fi
11534 ;;
11535
11536 aix[4-9]*)
11537 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11538 test "$enable_shared" = yes && enable_static=no
11539 fi
11540 ;;
11541 esac
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11543 $as_echo "$enable_shared" >&6; }
11544
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libr aries" >&5
11546 $as_echo_n "checking whether to build static libraries... " >&6; }
11547 # Make sure either enable_shared or enable_static is yes.
11548 test "$enable_shared" = yes || enable_static=yes
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11550 $as_echo "$enable_static" >&6; }
11551
11552
11553
11554
11555 fi
11556 ac_ext=c
11557 ac_cpp='$CPP $CPPFLAGS'
11558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
11560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11561
11562 CC="$lt_save_CC"
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578 ac_config_commands="$ac_config_commands libtool"
11579
11580
11581
11582
11583 # Only expand once:
11584
11585
11586 if test "x$CC" != xcc; then
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understan d -c and -o together" >&5
11588 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11589 else
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c an d -o together" >&5
11591 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11592 fi
11593 set dummy $CC; ac_cc=`$as_echo "$2" |
11594 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11595 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h. */
11600
11601 int
11602 main ()
11603 {
11604
11605 ;
11606 return 0;
11607 }
11608 _ACEOF
11609 # Make sure it works both with $CC and with simple cc.
11610 # We do the test twice because some compilers refuse to overwrite an
11611 # existing .o file with -o, though they will create one.
11612 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11613 rm -f conftest2.*
11614 if { { case "(($ac_try" in
11615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616 *) ac_try_echo=$ac_try;;
11617 esac
11618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11619 $as_echo "$ac_try_echo"; } >&5
11620 (eval "$ac_try") 2>&5
11621 ac_status=$?
11622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11623 test $ac_status = 0; } &&
11624 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626 *) ac_try_echo=$ac_try;;
11627 esac
11628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11629 $as_echo "$ac_try_echo"; } >&5
11630 (eval "$ac_try") 2>&5
11631 ac_status=$?
11632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11633 test $ac_status = 0; };
11634 then
11635 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11636 if test "x$CC" != xcc; then
11637 # Test first that cc exists at all.
11638 if { ac_try='cc -c conftest.$ac_ext >&5'
11639 { { case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11642 esac
11643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11644 $as_echo "$ac_try_echo"; } >&5
11645 (eval "$ac_try") 2>&5
11646 ac_status=$?
11647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11648 test $ac_status = 0; }; }; then
11649 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11650 rm -f conftest2.*
11651 if { { case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654 esac
11655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11656 $as_echo "$ac_try_echo"; } >&5
11657 (eval "$ac_try") 2>&5
11658 ac_status=$?
11659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11660 test $ac_status = 0; } &&
11661 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 *) ac_try_echo=$ac_try;;
11664 esac
11665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11666 $as_echo "$ac_try_echo"; } >&5
11667 (eval "$ac_try") 2>&5
11668 ac_status=$?
11669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11670 test $ac_status = 0; };
11671 then
11672 # cc works too.
11673 :
11674 else
11675 # cc exists but doesn't like -o.
11676 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11677 fi
11678 fi
11679 fi
11680 else
11681 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11682 fi
11683 rm -f core conftest*
11684
11685 fi
11686 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11688 $as_echo "yes" >&6; }
11689 else
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11692
11693 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11694
11695 fi
11696
11697 # FIXME: we rely on the cache variable name because
11698 # there is no other way.
11699 set dummy $CC
11700 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11701 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11702 if test "$am_t" != yes; then
11703 # Losing compiler, so override with the script.
11704 # FIXME: It is wrong to rewrite CC.
11705 # But if we don't then we get into trouble of one sort or another.
11706 # A longer-term fix would be to have automake use am__CC in this case,
11707 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11708 CC="$am_aux_dir/compile $CC"
11709 fi
11710
11711
11712
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept IS O C99" >&5
11714 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11715 if ${ac_cv_prog_cc_c99+:} false; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 ac_cv_prog_cc_c99=no
11719 ac_save_CC=$CC
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11722 #include <stdarg.h>
11723 #include <stdbool.h>
11724 #include <stdlib.h>
11725 #include <wchar.h>
11726 #include <stdio.h>
11727
11728 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11729 #define debug(...) fprintf (stderr, __VA_ARGS__)
11730 #define showlist(...) puts (#__VA_ARGS__)
11731 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11732 static void
11733 test_varargs_macros (void)
11734 {
11735 int x = 1234;
11736 int y = 5678;
11737 debug ("Flag");
11738 debug ("X = %d\n", x);
11739 showlist (The first, second, and third items.);
11740 report (x>y, "x is %d but y is %d", x, y);
11741 }
11742
11743 // Check long long types.
11744 #define BIG64 18446744073709551615ull
11745 #define BIG32 4294967295ul
11746 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11747 #if !BIG_OK
11748 your preprocessor is broken;
11749 #endif
11750 #if BIG_OK
11751 #else
11752 your preprocessor is broken;
11753 #endif
11754 static long long int bignum = -9223372036854775807LL;
11755 static unsigned long long int ubignum = BIG64;
11756
11757 struct incomplete_array
11758 {
11759 int datasize;
11760 double data[];
11761 };
11762
11763 struct named_init {
11764 int number;
11765 const wchar_t *name;
11766 double average;
11767 };
11768
11769 typedef const char *ccp;
11770
11771 static inline int
11772 test_restrict (ccp restrict text)
11773 {
11774 // See if C++-style comments work.
11775 // Iterate through items via the restricted pointer.
11776 // Also check for declarations in for loops.
11777 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11778 continue;
11779 return 0;
11780 }
11781
11782 // Check varargs and va_copy.
11783 static void
11784 test_varargs (const char *format, ...)
11785 {
11786 va_list args;
11787 va_start (args, format);
11788 va_list args_copy;
11789 va_copy (args_copy, args);
11790
11791 const char *str;
11792 int number;
11793 float fnumber;
11794
11795 while (*format)
11796 {
11797 switch (*format++)
11798 {
11799 case 's': // string
11800 str = va_arg (args_copy, const char *);
11801 break;
11802 case 'd': // int
11803 number = va_arg (args_copy, int);
11804 break;
11805 case 'f': // float
11806 fnumber = va_arg (args_copy, double);
11807 break;
11808 default:
11809 break;
11810 }
11811 }
11812 va_end (args_copy);
11813 va_end (args);
11814 }
11815
11816 int
11817 main ()
11818 {
11819
11820 // Check bool.
11821 _Bool success = false;
11822
11823 // Check restrict.
11824 if (test_restrict ("String literal") == 0)
11825 success = true;
11826 char *restrict newvar = "Another string";
11827
11828 // Check varargs.
11829 test_varargs ("s, d' f .", "string", 65, 34.234);
11830 test_varargs_macros ();
11831
11832 // Check flexible array members.
11833 struct incomplete_array *ia =
11834 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11835 ia->datasize = 10;
11836 for (int i = 0; i < ia->datasize; ++i)
11837 ia->data[i] = i * 1.234;
11838
11839 // Check named initializers.
11840 struct named_init ni = {
11841 .number = 34,
11842 .name = L"Test wide string",
11843 .average = 543.34343,
11844 };
11845
11846 ni.number = 58;
11847
11848 int dynamic_array[ni.number];
11849 dynamic_array[ni.number - 1] = 543;
11850
11851 // work around unused variable warnings
11852 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11853 || dynamic_array[ni.number - 1] != 543);
11854
11855 ;
11856 return 0;
11857 }
11858 _ACEOF
11859 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11860 do
11861 CC="$ac_save_CC $ac_arg"
11862 if ac_fn_c_try_compile "$LINENO"; then :
11863 ac_cv_prog_cc_c99=$ac_arg
11864 fi
11865 rm -f core conftest.err conftest.$ac_objext
11866 test "x$ac_cv_prog_cc_c99" != "xno" && break
11867 done
11868 rm -f conftest.$ac_ext
11869 CC=$ac_save_CC
11870
11871 fi
11872 # AC_CACHE_VAL
11873 case "x$ac_cv_prog_cc_c99" in
11874 x)
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11876 $as_echo "none needed" >&6; } ;;
11877 xno)
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11879 $as_echo "unsupported" >&6; } ;;
11880 *)
11881 CC="$CC $ac_cv_prog_cc_c99"
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11883 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11884 esac
11885 if test "x$ac_cv_prog_cc_c99" != xno; then :
11886
11887 fi
11888
11889
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bige ndian" >&5
11891 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11892 if ${ac_cv_c_bigendian+:} false; then :
11893 $as_echo_n "(cached) " >&6
11894 else
11895 ac_cv_c_bigendian=unknown
11896 # See if we're dealing with a universal compiler.
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11899 #ifndef __APPLE_CC__
11900 not a universal capable compiler
11901 #endif
11902 typedef int dummy;
11903
11904 _ACEOF
11905 if ac_fn_c_try_compile "$LINENO"; then :
11906
11907 # Check for potential -arch flags. It is not universal unless
11908 # there are at least two -arch flags with different values.
11909 ac_arch=
11910 ac_prev=
11911 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11912 if test -n "$ac_prev"; then
11913 case $ac_word in
11914 i?86 | x86_64 | ppc | ppc64)
11915 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11916 ac_arch=$ac_word
11917 else
11918 ac_cv_c_bigendian=universal
11919 break
11920 fi
11921 ;;
11922 esac
11923 ac_prev=
11924 elif test "x$ac_word" = "x-arch"; then
11925 ac_prev=arch
11926 fi
11927 done
11928 fi
11929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11930 if test $ac_cv_c_bigendian = unknown; then
11931 # See if sys/param.h defines the BYTE_ORDER macro.
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11934 #include <sys/types.h>
11935 #include <sys/param.h>
11936
11937 int
11938 main ()
11939 {
11940 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11941 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11942 && LITTLE_ENDIAN)
11943 bogus endian macros
11944 #endif
11945
11946 ;
11947 return 0;
11948 }
11949 _ACEOF
11950 if ac_fn_c_try_compile "$LINENO"; then :
11951 # It does; now see whether it defined to BIG_ENDIAN or not.
11952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h. */
11954 #include <sys/types.h>
11955 #include <sys/param.h>
11956
11957 int
11958 main ()
11959 {
11960 #if BYTE_ORDER != BIG_ENDIAN
11961 not big endian
11962 #endif
11963
11964 ;
11965 return 0;
11966 }
11967 _ACEOF
11968 if ac_fn_c_try_compile "$LINENO"; then :
11969 ac_cv_c_bigendian=yes
11970 else
11971 ac_cv_c_bigendian=no
11972 fi
11973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11974 fi
11975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976 fi
11977 if test $ac_cv_c_bigendian = unknown; then
11978 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h. */
11981 #include <limits.h>
11982
11983 int
11984 main ()
11985 {
11986 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11987 bogus endian macros
11988 #endif
11989
11990 ;
11991 return 0;
11992 }
11993 _ACEOF
11994 if ac_fn_c_try_compile "$LINENO"; then :
11995 # It does; now see whether it defined to _BIG_ENDIAN or not.
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11998 #include <limits.h>
11999
12000 int
12001 main ()
12002 {
12003 #ifndef _BIG_ENDIAN
12004 not big endian
12005 #endif
12006
12007 ;
12008 return 0;
12009 }
12010 _ACEOF
12011 if ac_fn_c_try_compile "$LINENO"; then :
12012 ac_cv_c_bigendian=yes
12013 else
12014 ac_cv_c_bigendian=no
12015 fi
12016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12017 fi
12018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12019 fi
12020 if test $ac_cv_c_bigendian = unknown; then
12021 # Compile a test program.
12022 if test "$cross_compiling" = yes; then :
12023 # Try to guess by grepping values from an object file.
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h. */
12026 short int ascii_mm[] =
12027 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12028 short int ascii_ii[] =
12029 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12030 int use_ascii (int i) {
12031 return ascii_mm[i] + ascii_ii[i];
12032 }
12033 short int ebcdic_ii[] =
12034 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12035 short int ebcdic_mm[] =
12036 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12037 int use_ebcdic (int i) {
12038 return ebcdic_mm[i] + ebcdic_ii[i];
12039 }
12040 extern int foo;
12041
12042 int
12043 main ()
12044 {
12045 return use_ascii (foo) == use_ebcdic (foo);
12046 ;
12047 return 0;
12048 }
12049 _ACEOF
12050 if ac_fn_c_try_compile "$LINENO"; then :
12051 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12052 ac_cv_c_bigendian=yes
12053 fi
12054 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12055 if test "$ac_cv_c_bigendian" = unknown; then
12056 ac_cv_c_bigendian=no
12057 else
12058 # finding both strings is unlikely to happen, but who knows?
12059 ac_cv_c_bigendian=unknown
12060 fi
12061 fi
12062 fi
12063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12064 else
12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h. */
12067 $ac_includes_default
12068 int
12069 main ()
12070 {
12071
12072 /* Are we little or big endian? From Harbison&Steele. */
12073 union
12074 {
12075 long int l;
12076 char c[sizeof (long int)];
12077 } u;
12078 u.l = 1;
12079 return u.c[sizeof (long int) - 1] == 1;
12080
12081 ;
12082 return 0;
12083 }
12084 _ACEOF
12085 if ac_fn_c_try_run "$LINENO"; then :
12086 ac_cv_c_bigendian=no
12087 else
12088 ac_cv_c_bigendian=yes
12089 fi
12090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12091 conftest.$ac_objext conftest.beam conftest.$ac_ext
12092 fi
12093
12094 fi
12095 fi
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12097 $as_echo "$ac_cv_c_bigendian" >&6; }
12098 case $ac_cv_c_bigendian in #(
12099 yes)
12100 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12101 ;; #(
12102 no)
12103 ;; #(
12104 universal)
12105
12106 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12107
12108 ;; #(
12109 *)
12110 as_fn_error $? "unknown endianness
12111 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12112 esac
12113
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const " >&5
12115 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12116 if ${ac_cv_c_const+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12121
12122 int
12123 main ()
12124 {
12125 /* FIXME: Include the comments suggested by Paul. */
12126 #ifndef __cplusplus
12127 /* Ultrix mips cc rejects this. */
12128 typedef int charset[2];
12129 const charset cs;
12130 /* SunOS 4.1.1 cc rejects this. */
12131 char const *const *pcpcc;
12132 char **ppc;
12133 /* NEC SVR4.0.2 mips cc rejects this. */
12134 struct point {int x, y;};
12135 static struct point const zero = {0,0};
12136 /* AIX XL C 1.02.0.0 rejects this.
12137 It does not let you subtract one const X* pointer from another in
12138 an arm of an if-expression whose if-part is not a constant
12139 expression */
12140 const char *g = "string";
12141 pcpcc = &g + (g ? g-g : 0);
12142 /* HPUX 7.0 cc rejects these. */
12143 ++pcpcc;
12144 ppc = (char**) pcpcc;
12145 pcpcc = (char const *const *) ppc;
12146 { /* SCO 3.2v4 cc rejects this. */
12147 char *t;
12148 char const *s = 0 ? (char *) 0 : (char const *) 0;
12149
12150 *t++ = 0;
12151 if (s) return 0;
12152 }
12153 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12154 int x[] = {25, 17};
12155 const int *foo = &x[0];
12156 ++foo;
12157 }
12158 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12159 typedef const int *iptr;
12160 iptr p = 0;
12161 ++p;
12162 }
12163 { /* AIX XL C 1.02.0.0 rejects this saying
12164 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12165 struct s { int j; const int *ap[3]; };
12166 struct s *b; b->j = 5;
12167 }
12168 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12169 const int foo = 10;
12170 if (!foo) return 0;
12171 }
12172 return !cs[0] && !zero.x;
12173 #endif
12174
12175 ;
12176 return 0;
12177 }
12178 _ACEOF
12179 if ac_fn_c_try_compile "$LINENO"; then :
12180 ac_cv_c_const=yes
12181 else
12182 ac_cv_c_const=no
12183 fi
12184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185 fi
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12187 $as_echo "$ac_cv_c_const" >&6; }
12188 if test $ac_cv_c_const = no; then
12189
12190 $as_echo "#define const /**/" >>confdefs.h
12191
12192 fi
12193
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12195 $as_echo_n "checking for inline... " >&6; }
12196 if ${ac_cv_c_inline+:} false; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 ac_cv_c_inline=no
12200 for ac_kw in inline __inline__ __inline; do
12201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h. */
12203 #ifndef __cplusplus
12204 typedef int foo_t;
12205 static $ac_kw foo_t static_foo () {return 0; }
12206 $ac_kw foo_t foo () {return 0; }
12207 #endif
12208
12209 _ACEOF
12210 if ac_fn_c_try_compile "$LINENO"; then :
12211 ac_cv_c_inline=$ac_kw
12212 fi
12213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12214 test "$ac_cv_c_inline" != no && break
12215 done
12216
12217 fi
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12219 $as_echo "$ac_cv_c_inline" >&6; }
12220
12221 case $ac_cv_c_inline in
12222 inline | yes) ;;
12223 *)
12224 case $ac_cv_c_inline in
12225 no) ac_val=;;
12226 *) ac_val=$ac_cv_c_inline;;
12227 esac
12228 cat >>confdefs.h <<_ACEOF
12229 #ifndef __cplusplus
12230 #define inline $ac_val
12231 #endif
12232 _ACEOF
12233 ;;
12234 esac
12235
12236
12237 #Use a hacked up version of autoconf's AC_C_RESTRICT because it's not
12238 #strong enough a test to detect old buggy versions of GCC (e.g. 2.95.3)
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >& 5
12240 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12241 if ${ac_cv_c_restrict+:} false; then :
12242 $as_echo_n "(cached) " >&6
12243 else
12244 ac_cv_c_restrict=no
12245 # The order here caters to the fact that C++ does not require restrict.
12246 for ac_kw in __restrict __restrict__ _Restrict restrict; do
12247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248 /* end confdefs.h. */
12249 typedef int * int_ptr;
12250 int foo (int_ptr $ac_kw ip, int * $ac_kw baz[]) {
12251 return ip[0];
12252 }
12253 int
12254 main ()
12255 {
12256 int s[1];
12257 int * $ac_kw t = s;
12258 t[0] = 0;
12259 return foo(t, (void *)0)
12260 ;
12261 return 0;
12262 }
12263 _ACEOF
12264 if ac_fn_c_try_compile "$LINENO"; then :
12265 ac_cv_c_restrict=$ac_kw
12266 fi
12267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12268 test "$ac_cv_c_restrict" != no && break
12269 done
12270
12271 fi
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12273 $as_echo "$ac_cv_c_restrict" >&6; }
12274
12275 case $ac_cv_c_restrict in
12276 restrict) ;;
12277 no) $as_echo "#define restrict /**/" >>confdefs.h
12278 ;;
12279 *) cat >>confdefs.h <<_ACEOF
12280 #define restrict $ac_cv_c_restrict
12281 _ACEOF
12282 ;;
12283 esac
12284
12285
12286 $as_echo "#define OPUS_BUILD /**/" >>confdefs.h
12287
12288
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variable-size arrays" >&5
12290 $as_echo_n "checking for C99 variable-size arrays... " >&6; }
12291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12292 /* end confdefs.h. */
12293
12294 int
12295 main ()
12296 {
12297 static int x; char a[++x]; a[sizeof a - 1] = 0; int N; return a[0];
12298 ;
12299 return 0;
12300 }
12301 _ACEOF
12302 if ac_fn_c_try_compile "$LINENO"; then :
12303 has_var_arrays=yes;
12304 $as_echo "#define VAR_ARRAYS /**/" >>confdefs.h
12305
12306
12307 else
12308 has_var_arrays=no
12309
12310 fi
12311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_var_arrays" >&5
12313 $as_echo "$has_var_arrays" >&6; }
12314
12315 for ac_header in alloca.h getopt.h
12316 do :
12317 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12318 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include s_default"
12319 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12320 cat >>confdefs.h <<_ACEOF
12321 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12322 _ACEOF
12323
12324 fi
12325
12326 done
12327
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12329 $as_echo_n "checking for alloca... " >&6; }
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12332 #include <alloca.h>
12333 int
12334 main ()
12335 {
12336
12337 int foo=10;
12338 int *array = alloca(foo);
12339
12340 ;
12341 return 0;
12342 }
12343 _ACEOF
12344 if ac_fn_c_try_compile "$LINENO"; then :
12345
12346 has_alloca=yes;
12347 if test x$has_var_arrays = "xno" ; then
12348
12349 $as_echo "#define USE_ALLOCA /**/" >>confdefs.h
12350
12351 fi
12352
12353 else
12354 has_alloca=no
12355
12356 fi
12357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_alloca" >&5
12359 $as_echo "$has_alloca" >&6; }
12360
12361 ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
12362 if test "x$ac_cv_func_exp" = xyes; then :
12363 fp_libm_not_needed=yes;LIBM=
12364 else
12365 fp_libm_not_needed=dunno
12366 fi
12367
12368 if test x"$fp_libm_not_needed" = xdunno; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
12370 $as_echo_n "checking for exp in -lm... " >&6; }
12371 if ${ac_cv_lib_m_exp+:} false; then :
12372 $as_echo_n "(cached) " >&6
12373 else
12374 ac_check_lib_save_LIBS=$LIBS
12375 LIBS="-lm $LIBS"
12376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h. */
12378
12379 /* Override any GCC internal prototype to avoid an error.
12380 Use char because int might match the return type of a GCC
12381 builtin and then its argument prototype would still apply. */
12382 #ifdef __cplusplus
12383 extern "C"
12384 #endif
12385 char exp ();
12386 int
12387 main ()
12388 {
12389 return exp ();
12390 ;
12391 return 0;
12392 }
12393 _ACEOF
12394 if ac_fn_c_try_link "$LINENO"; then :
12395 ac_cv_lib_m_exp=yes
12396 else
12397 ac_cv_lib_m_exp=no
12398 fi
12399 rm -f core conftest.err conftest.$ac_objext \
12400 conftest$ac_exeext conftest.$ac_ext
12401 LIBS=$ac_check_lib_save_LIBS
12402 fi
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
12404 $as_echo "$ac_cv_lib_m_exp" >&6; }
12405 if test "x$ac_cv_lib_m_exp" = xyes; then :
12406 LIBS="-lm $LIBS"; LIBM="-lm"
12407 else
12408 LIBM=
12409 fi
12410
12411 fi
12412
12413
12414 has_float_approx=no
12415 #case "$host_cpu" in
12416 #i[[3456]]86 | x86_64 | powerpc64 | powerpc32 | ia64)
12417 # has_float_approx=yes
12418 # ;;
12419 #esac
12420
12421 ac_enable_fixed="no";
12422 ac_enable_float="yes";
12423 # Check whether --enable-fixed-point was given.
12424 if test "${enable_fixed_point+set}" = set; then :
12425 enableval=$enable_fixed_point; if test "$enableval" = yes; then
12426 ac_enable_fixed="yes";
12427 ac_enable_float="no";
12428
12429 $as_echo "#define FIXED_POINT 1" >>confdefs.h
12430
12431 else
12432
12433 $as_echo "#define FLOATING_POINT /**/" >>confdefs.h
12434
12435 fi
12436 else
12437
12438 $as_echo "#define FLOATING_POINT /**/" >>confdefs.h
12439
12440 fi
12441
12442
12443 ac_enable_fixed_debug="no"
12444 # Check whether --enable-fixed-point-debug was given.
12445 if test "${enable_fixed_point_debug+set}" = set; then :
12446 enableval=$enable_fixed_point_debug; if test "$enableval" = yes; then
12447 ac_enable_fixed_debug="yes"
12448
12449 $as_echo "#define FIXED_DEBUG /**/" >>confdefs.h
12450
12451 fi
12452 fi
12453
12454
12455 ac_enable_custom_modes="no"
12456 # Check whether --enable-custom-modes was given.
12457 if test "${enable_custom_modes+set}" = set; then :
12458 enableval=$enable_custom_modes; if test "$enableval" = yes; then
12459 ac_enable_custom_modes="yes"
12460
12461 $as_echo "#define CUSTOM_MODES /**/" >>confdefs.h
12462
12463 fi
12464 fi
12465
12466
12467 float_approx=$has_float_approx
12468 # Check whether --enable-float-approx was given.
12469 if test "${enable_float_approx+set}" = set; then :
12470 enableval=$enable_float_approx; if test "$enableval" = yes; then
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Floating point approximati ons are not supported on all platforms." >&5
12472 $as_echo "$as_me: WARNING: Floating point approximations are not supported on al l platforms." >&2;}
12473 float_approx=yes
12474 else
12475 float_approx=no
12476 fi
12477 else
12478 float_approx=$has_float_approx
12479 fi
12480
12481
12482 if test "x${float_approx}" = "xyes"; then
12483
12484 $as_echo "#define FLOAT_APPROX /**/" >>confdefs.h
12485
12486 fi
12487
12488 ac_enable_assertions="no"
12489 # Check whether --enable-assertions was given.
12490 if test "${enable_assertions+set}" = set; then :
12491 enableval=$enable_assertions; if test "$enableval" = yes; then
12492 ac_enable_assertions="yes"
12493
12494 $as_echo "#define ENABLE_ASSERTIONS /**/" >>confdefs.h
12495
12496 fi
12497 fi
12498
12499
12500 ac_enable_fuzzing="no"
12501 # Check whether --enable-fuzzing was given.
12502 if test "${enable_fuzzing+set}" = set; then :
12503 enableval=$enable_fuzzing; if test "$enableval" = yes; then
12504 ac_enable_fuzzing="yes"
12505
12506 $as_echo "#define FUZZING /**/" >>confdefs.h
12507
12508 fi
12509 fi
12510
12511
12512 ac_enable_doc="yes"
12513 # Check whether --enable-doc was given.
12514 if test "${enable_doc+set}" = set; then :
12515 enableval=$enable_doc; ac_enable_doc=$enableval
12516 fi
12517
12518 # Extract the first word of "doxygen", so it can be a program name with args.
12519 set dummy doxygen; ac_word=$2
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12521 $as_echo_n "checking for $ac_word... " >&6; }
12522 if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
12523 $as_echo_n "(cached) " >&6
12524 else
12525 if test -n "$HAVE_DOXYGEN"; then
12526 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
12527 else
12528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12529 for as_dir in $PATH
12530 do
12531 IFS=$as_save_IFS
12532 test -z "$as_dir" && as_dir=.
12533 for ac_exec_ext in '' $ac_executable_extensions; do
12534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
12535 ac_cv_prog_HAVE_DOXYGEN="yes"
12536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
12537 break 2
12538 fi
12539 done
12540 done
12541 IFS=$as_save_IFS
12542
12543 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
12544 fi
12545 fi
12546 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
12547 if test -n "$HAVE_DOXYGEN"; then
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
12549 $as_echo "$HAVE_DOXYGEN" >&6; }
12550 else
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552 $as_echo "no" >&6; }
12553 fi
12554
12555
12556 if test "$HAVE_DOXYGEN" != "yes" -o "$ac_enable_doc" != "yes"; then
12557 HAVE_DOXYGEN="false"
12558 ac_enable_doc="no"
12559 fi
12560 if test $HAVE_DOXYGEN = yes; then
12561 HAVE_DOXYGEN_TRUE=
12562 HAVE_DOXYGEN_FALSE='#'
12563 else
12564 HAVE_DOXYGEN_TRUE='#'
12565 HAVE_DOXYGEN_FALSE=
12566 fi
12567
12568
12569 saved_CFLAGS="$CFLAGS"
12570 CFLAGS="$CFLAGS -fvisibility=hidden"
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fvisibility =hidden" >&5
12572 $as_echo_n "checking if ${CC} supports -fvisibility=hidden... " >&6; }
12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h. */
12575 char foo;
12576 _ACEOF
12577 if ac_fn_c_try_compile "$LINENO"; then :
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12579 $as_echo "yes" >&6; }
12580 SYMBOL_VISIBILITY="-fvisibility=hidden"
12581 else
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583 $as_echo "no" >&6; }
12584 fi
12585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12586 CFLAGS="$saved_CFLAGS $SYMBOL_VISIBILITY"
12587
12588
12589 CFLAGS="$CFLAGS -W"
12590
12591 saved_CFLAGS="$CFLAGS"
12592 CFLAGS="$CFLAGS -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-pr ototypes"
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -Wall -Wextr a -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes" >&5
12594 $as_echo_n "checking if ${CC} supports -Wall -Wextra -Wcast-align -Wnested-exter ns -Wshadow -Wstrict-prototypes... " >&6; }
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597 char foo;
12598 _ACEOF
12599 if ac_fn_c_try_compile "$LINENO"; then :
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12601 $as_echo "yes" >&6; }
12602 EXTRA_WARNS="-Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstri ct-prototypes"
12603 else
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12606 fi
12607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12608 CFLAGS="$saved_CFLAGS $EXTRA_WARNS"
12609
12610 for ac_func in lrintf
12611 do :
12612 ac_fn_c_check_func "$LINENO" "lrintf" "ac_cv_func_lrintf"
12613 if test "x$ac_cv_func_lrintf" = xyes; then :
12614 cat >>confdefs.h <<_ACEOF
12615 #define HAVE_LRINTF 1
12616 _ACEOF
12617
12618 fi
12619 done
12620
12621 for ac_func in lrint
12622 do :
12623 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
12624 if test "x$ac_cv_func_lrint" = xyes; then :
12625 cat >>confdefs.h <<_ACEOF
12626 #define HAVE_LRINT 1
12627 _ACEOF
12628
12629 fi
12630 done
12631
12632 for ac_func in __malloc_hook
12633 do :
12634 ac_fn_c_check_func "$LINENO" "__malloc_hook" "ac_cv_func___malloc_hook"
12635 if test "x$ac_cv_func___malloc_hook" = xyes; then :
12636 cat >>confdefs.h <<_ACEOF
12637 #define HAVE___MALLOC_HOOK 1
12638 _ACEOF
12639
12640 fi
12641 done
12642
12643
12644 # The cast to long int works around a bug in the HP C Compiler
12645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12647 # This bug is HP SR number 8606223364.
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12649 $as_echo_n "checking size of short... " >&6; }
12650 if ${ac_cv_sizeof_short+:} false; then :
12651 $as_echo_n "(cached) " >&6
12652 else
12653 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_s hort" "$ac_includes_default"; then :
12654
12655 else
12656 if test "$ac_cv_type_short" = yes; then
12657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12659 as_fn_error 77 "cannot compute sizeof (short)
12660 See \`config.log' for more details" "$LINENO" 5; }
12661 else
12662 ac_cv_sizeof_short=0
12663 fi
12664 fi
12665
12666 fi
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12668 $as_echo "$ac_cv_sizeof_short" >&6; }
12669
12670
12671
12672 cat >>confdefs.h <<_ACEOF
12673 #define SIZEOF_SHORT $ac_cv_sizeof_short
12674 _ACEOF
12675
12676
12677 # The cast to long int works around a bug in the HP C Compiler
12678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12680 # This bug is HP SR number 8606223364.
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12682 $as_echo_n "checking size of int... " >&6; }
12683 if ${ac_cv_sizeof_int+:} false; then :
12684 $as_echo_n "(cached) " >&6
12685 else
12686 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int " "$ac_includes_default"; then :
12687
12688 else
12689 if test "$ac_cv_type_int" = yes; then
12690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12692 as_fn_error 77 "cannot compute sizeof (int)
12693 See \`config.log' for more details" "$LINENO" 5; }
12694 else
12695 ac_cv_sizeof_int=0
12696 fi
12697 fi
12698
12699 fi
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12701 $as_echo "$ac_cv_sizeof_int" >&6; }
12702
12703
12704
12705 cat >>confdefs.h <<_ACEOF
12706 #define SIZEOF_INT $ac_cv_sizeof_int
12707 _ACEOF
12708
12709
12710 # The cast to long int works around a bug in the HP C Compiler
12711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12713 # This bug is HP SR number 8606223364.
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12715 $as_echo_n "checking size of long... " >&6; }
12716 if ${ac_cv_sizeof_long+:} false; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12719 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_lo ng" "$ac_includes_default"; then :
12720
12721 else
12722 if test "$ac_cv_type_long" = yes; then
12723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12725 as_fn_error 77 "cannot compute sizeof (long)
12726 See \`config.log' for more details" "$LINENO" 5; }
12727 else
12728 ac_cv_sizeof_long=0
12729 fi
12730 fi
12731
12732 fi
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12734 $as_echo "$ac_cv_sizeof_long" >&6; }
12735
12736
12737
12738 cat >>confdefs.h <<_ACEOF
12739 #define SIZEOF_LONG $ac_cv_sizeof_long
12740 _ACEOF
12741
12742
12743 # The cast to long int works around a bug in the HP C Compiler
12744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12746 # This bug is HP SR number 8606223364.
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12748 $as_echo_n "checking size of long long... " >&6; }
12749 if ${ac_cv_sizeof_long_long+:} false; then :
12750 $as_echo_n "(cached) " >&6
12751 else
12752 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_size of_long_long" "$ac_includes_default"; then :
12753
12754 else
12755 if test "$ac_cv_type_long_long" = yes; then
12756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12758 as_fn_error 77 "cannot compute sizeof (long long)
12759 See \`config.log' for more details" "$LINENO" 5; }
12760 else
12761 ac_cv_sizeof_long_long=0
12762 fi
12763 fi
12764
12765 fi
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12767 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12768
12769
12770
12771 cat >>confdefs.h <<_ACEOF
12772 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12773 _ACEOF
12774
12775
12776
12777 if test x$has_char16 = "xyes" ; then
12778 case 1 in
12779 $ac_cv_sizeof_short) SIZE16="short";;
12780 $ac_cv_sizeof_int) SIZE16="int";;
12781 esac
12782 else
12783 case 2 in
12784 $ac_cv_sizeof_short) SIZE16="short";;
12785 $ac_cv_sizeof_int) SIZE16="int";;
12786 esac
12787 fi
12788
12789 if test x$has_char16 = "xyes" ; then
12790 case 2 in
12791 $ac_cv_sizeof_int) SIZE32="int";;
12792 $ac_cv_sizeof_long) SIZE32="long";;
12793 $ac_cv_sizeof_short) SIZE32="short";;
12794 esac
12795 else
12796 case 4 in
12797 $ac_cv_sizeof_int) SIZE32="int";;
12798 $ac_cv_sizeof_long) SIZE32="long";;
12799 $ac_cv_sizeof_short) SIZE32="short";;
12800 esac
12801 fi
12802
12803
12804
12805
12806 if test x$ac_enable_fixed = xyes; then
12807 FIXED_POINT_TRUE=
12808 FIXED_POINT_FALSE='#'
12809 else
12810 FIXED_POINT_TRUE='#'
12811 FIXED_POINT_FALSE=
12812 fi
12813
12814 if test x$ac_enable_custom_modes = xyes; then
12815 CUSTOM_MODES_TRUE=
12816 CUSTOM_MODES_FALSE='#'
12817 else
12818 CUSTOM_MODES_TRUE='#'
12819 CUSTOM_MODES_FALSE=
12820 fi
12821
12822
12823 ac_config_files="$ac_config_files Makefile opus.pc opus-uninstalled.pc doc/Makef ile doc/Doxyfile"
12824
12825 cat >confcache <<\_ACEOF
12826 # This file is a shell script that caches the results of configure
12827 # tests run on this system so they can be shared between configure
12828 # scripts and configure runs, see configure's option --config-cache.
12829 # It is not useful on other systems. If it contains results you don't
12830 # want to keep, you may remove or edit it.
12831 #
12832 # config.status only pays attention to the cache file if you give it
12833 # the --recheck option to rerun configure.
12834 #
12835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12837 # following values.
12838
12839 _ACEOF
12840
12841 # The following way of writing the cache mishandles newlines in values,
12842 # but we know of no workaround that is simple, portable, and efficient.
12843 # So, we kill variables containing newlines.
12844 # Ultrix sh set writes to stderr and can't be redirected directly,
12845 # and sets the high bit in the cache file unless we assign to the vars.
12846 (
12847 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; d o
12848 eval ac_val=\$$ac_var
12849 case $ac_val in #(
12850 *${as_nl}*)
12851 case $ac_var in #(
12852 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ ac_var contains a newline" >&5
12853 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12854 esac
12855 case $ac_var in #(
12856 _ | IFS | as_nl) ;; #(
12857 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12858 *) { eval $ac_var=; unset $ac_var;} ;;
12859 esac ;;
12860 esac
12861 done
12862
12863 (set) 2>&1 |
12864 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12865 *${as_nl}ac_space=\ *)
12866 # `set' does not quote correctly, so add quotes: double-quote
12867 # substitution turns \\\\ into \\, and sed turns \\ into \.
12868 sed -n \
12869 "s/'/'\\\\''/g;
12870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12871 ;; #(
12872 *)
12873 # `set' quotes correctly as required by POSIX, so do not add quotes.
12874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12875 ;;
12876 esac |
12877 sort
12878 ) |
12879 sed '
12880 /^ac_cv_env_/b end
12881 t clear
12882 :clear
12883 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12884 t end
12885 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12886 :end' >>confcache
12887 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12888 if test -w "$cache_file"; then
12889 if test "x$cache_file" != "x/dev/null"; then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12891 $as_echo "$as_me: updating cache $cache_file" >&6;}
12892 if test ! -f "$cache_file" || test -h "$cache_file"; then
12893 cat confcache >"$cache_file"
12894 else
12895 case $cache_file in #(
12896 */* | ?:*)
12897 mv -f confcache "$cache_file"$$ &&
12898 mv -f "$cache_file"$$ "$cache_file" ;; #(
12899 *)
12900 mv -f confcache "$cache_file" ;;
12901 esac
12902 fi
12903 fi
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cach e_file" >&5
12906 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12907 fi
12908 fi
12909 rm -f confcache
12910
12911 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12912 # Let make expand exec_prefix.
12913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12914
12915 DEFS=-DHAVE_CONFIG_H
12916
12917 ac_libobjs=
12918 ac_ltlibobjs=
12919 U=
12920 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12921 # 1. Remove the extension, and $U if already installed.
12922 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12923 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12924 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12925 # will be set to the directory where LIBOBJS objects are built.
12926 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12927 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12928 done
12929 LIBOBJS=$ac_libobjs
12930
12931 LTLIBOBJS=$ac_ltlibobjs
12932
12933
12934 if test -n "$EXEEXT"; then
12935 am__EXEEXT_TRUE=
12936 am__EXEEXT_FALSE='#'
12937 else
12938 am__EXEEXT_TRUE='#'
12939 am__EXEEXT_FALSE=
12940 fi
12941
12942 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12943 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12945 fi
12946 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12947 as_fn_error $? "conditional \"AMDEP\" was never defined.
12948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12949 fi
12950 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12951 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12953 fi
12954
12955 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
12956 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
12957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12958 fi
12959 if test -z "${FIXED_POINT_TRUE}" && test -z "${FIXED_POINT_FALSE}"; then
12960 as_fn_error $? "conditional \"FIXED_POINT\" was never defined.
12961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12962 fi
12963 if test -z "${CUSTOM_MODES_TRUE}" && test -z "${CUSTOM_MODES_FALSE}"; then
12964 as_fn_error $? "conditional \"CUSTOM_MODES\" was never defined.
12965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12966 fi
12967
12968 : "${CONFIG_STATUS=./config.status}"
12969 ac_write_fail=0
12970 ac_clean_files_save=$ac_clean_files
12971 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12973 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12974 as_write_fail=0
12975 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12976 #! $SHELL
12977 # Generated by $as_me.
12978 # Run this file to recreate the current configuration.
12979 # Compiler output produced by configure, useful for debugging
12980 # configure, is in config.log if it exists.
12981
12982 debug=false
12983 ac_cs_recheck=false
12984 ac_cs_silent=false
12985
12986 SHELL=\${CONFIG_SHELL-$SHELL}
12987 export SHELL
12988 _ASEOF
12989 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12990 ## -------------------- ##
12991 ## M4sh Initialization. ##
12992 ## -------------------- ##
12993
12994 # Be more Bourne compatible
12995 DUALCASE=1; export DUALCASE # for MKS sh
12996 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12997 emulate sh
12998 NULLCMD=:
12999 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13000 # is contrary to our usage. Disable this feature.
13001 alias -g '${1+"$@"}'='"$@"'
13002 setopt NO_GLOB_SUBST
13003 else
13004 case `(set -o) 2>/dev/null` in #(
13005 *posix*) :
13006 set -o posix ;; #(
13007 *) :
13008 ;;
13009 esac
13010 fi
13011
13012
13013 as_nl='
13014 '
13015 export as_nl
13016 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13017 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13018 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13019 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13020 # Prefer a ksh shell builtin over an external printf program on Solaris,
13021 # but without wasting forks for bash or zsh.
13022 if test -z "$BASH_VERSION$ZSH_VERSION" \
13023 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13024 as_echo='print -r --'
13025 as_echo_n='print -rn --'
13026 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13027 as_echo='printf %s\n'
13028 as_echo_n='printf %s'
13029 else
13030 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13031 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13032 as_echo_n='/usr/ucb/echo -n'
13033 else
13034 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13035 as_echo_n_body='eval
13036 arg=$1;
13037 case $arg in #(
13038 *"$as_nl"*)
13039 expr "X$arg" : "X\\(.*\\)$as_nl";
13040 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13041 esac;
13042 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13043 '
13044 export as_echo_n_body
13045 as_echo_n='sh -c $as_echo_n_body as_echo'
13046 fi
13047 export as_echo_body
13048 as_echo='sh -c $as_echo_body as_echo'
13049 fi
13050
13051 # The user is always right.
13052 if test "${PATH_SEPARATOR+set}" != set; then
13053 PATH_SEPARATOR=:
13054 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13055 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13056 PATH_SEPARATOR=';'
13057 }
13058 fi
13059
13060
13061 # IFS
13062 # We need space, tab and new line, in precisely that order. Quoting is
13063 # there to prevent editors from complaining about space-tab.
13064 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13065 # splitting by setting IFS to empty value.)
13066 IFS=" "" $as_nl"
13067
13068 # Find who we are. Look in the path if we contain no directory separator.
13069 as_myself=
13070 case $0 in #((
13071 *[\\/]* ) as_myself=$0 ;;
13072 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13073 for as_dir in $PATH
13074 do
13075 IFS=$as_save_IFS
13076 test -z "$as_dir" && as_dir=.
13077 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13078 done
13079 IFS=$as_save_IFS
13080
13081 ;;
13082 esac
13083 # We did not find ourselves, most probably we were run as `sh COMMAND'
13084 # in which case we are not to be found in the path.
13085 if test "x$as_myself" = x; then
13086 as_myself=$0
13087 fi
13088 if test ! -f "$as_myself"; then
13089 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file n ame" >&2
13090 exit 1
13091 fi
13092
13093 # Unset variables that we do not need and which cause bugs (e.g. in
13094 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13095 # suppresses any "Segmentation fault" message there. '((' could
13096 # trigger a bug in pdksh 5.2.14.
13097 for as_var in BASH_ENV ENV MAIL MAILPATH
13098 do eval test x\${$as_var+set} = xset \
13099 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13100 done
13101 PS1='$ '
13102 PS2='> '
13103 PS4='+ '
13104
13105 # NLS nuisances.
13106 LC_ALL=C
13107 export LC_ALL
13108 LANGUAGE=C
13109 export LANGUAGE
13110
13111 # CDPATH.
13112 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13113
13114
13115 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13116 # ----------------------------------------
13117 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13118 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13119 # script with STATUS, using 1 if that was 0.
13120 as_fn_error ()
13121 {
13122 as_status=$1; test $as_status -eq 0 && as_status=1
13123 if test "$4"; then
13124 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13125 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13126 fi
13127 $as_echo "$as_me: error: $2" >&2
13128 as_fn_exit $as_status
13129 } # as_fn_error
13130
13131
13132 # as_fn_set_status STATUS
13133 # -----------------------
13134 # Set $? to STATUS, without forking.
13135 as_fn_set_status ()
13136 {
13137 return $1
13138 } # as_fn_set_status
13139
13140 # as_fn_exit STATUS
13141 # -----------------
13142 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13143 as_fn_exit ()
13144 {
13145 set +e
13146 as_fn_set_status $1
13147 exit $1
13148 } # as_fn_exit
13149
13150 # as_fn_unset VAR
13151 # ---------------
13152 # Portably unset VAR.
13153 as_fn_unset ()
13154 {
13155 { eval $1=; unset $1;}
13156 }
13157 as_unset=as_fn_unset
13158 # as_fn_append VAR VALUE
13159 # ----------------------
13160 # Append the text in VALUE to the end of the definition contained in VAR. Take
13161 # advantage of any shell optimizations that allow amortized linear growth over
13162 # repeated appends, instead of the typical quadratic growth present in naive
13163 # implementations.
13164 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13165 eval 'as_fn_append ()
13166 {
13167 eval $1+=\$2
13168 }'
13169 else
13170 as_fn_append ()
13171 {
13172 eval $1=\$$1\$2
13173 }
13174 fi # as_fn_append
13175
13176 # as_fn_arith ARG...
13177 # ------------------
13178 # Perform arithmetic evaluation on the ARGs, and store the result in the
13179 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13180 # must be portable across $(()) and expr.
13181 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13182 eval 'as_fn_arith ()
13183 {
13184 as_val=$(( $* ))
13185 }'
13186 else
13187 as_fn_arith ()
13188 {
13189 as_val=`expr "$@" || test $? -eq 1`
13190 }
13191 fi # as_fn_arith
13192
13193
13194 if expr a : '\(a\)' >/dev/null 2>&1 &&
13195 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13196 as_expr=expr
13197 else
13198 as_expr=false
13199 fi
13200
13201 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13202 as_basename=basename
13203 else
13204 as_basename=false
13205 fi
13206
13207 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13208 as_dirname=dirname
13209 else
13210 as_dirname=false
13211 fi
13212
13213 as_me=`$as_basename -- "$0" ||
13214 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13215 X"$0" : 'X\(//\)$' \| \
13216 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13217 $as_echo X/"$0" |
13218 sed '/^.*\/\([^/][^/]*\)\/*$/{
13219 s//\1/
13220 q
13221 }
13222 /^X\/\(\/\/\)$/{
13223 s//\1/
13224 q
13225 }
13226 /^X\/\(\/\).*/{
13227 s//\1/
13228 q
13229 }
13230 s/.*/./; q'`
13231
13232 # Avoid depending upon Character Ranges.
13233 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13234 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13235 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13236 as_cr_digits='0123456789'
13237 as_cr_alnum=$as_cr_Letters$as_cr_digits
13238
13239 ECHO_C= ECHO_N= ECHO_T=
13240 case `echo -n x` in #(((((
13241 -n*)
13242 case `echo 'xy\c'` in
13243 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13244 xy) ECHO_C='\c';;
13245 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13246 ECHO_T=' ';;
13247 esac;;
13248 *)
13249 ECHO_N='-n';;
13250 esac
13251
13252 rm -f conf$$ conf$$.exe conf$$.file
13253 if test -d conf$$.dir; then
13254 rm -f conf$$.dir/conf$$.file
13255 else
13256 rm -f conf$$.dir
13257 mkdir conf$$.dir 2>/dev/null
13258 fi
13259 if (echo >conf$$.file) 2>/dev/null; then
13260 if ln -s conf$$.file conf$$ 2>/dev/null; then
13261 as_ln_s='ln -s'
13262 # ... but there are two gotchas:
13263 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13264 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13265 # In both cases, we have to default to `cp -p'.
13266 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13267 as_ln_s='cp -p'
13268 elif ln conf$$.file conf$$ 2>/dev/null; then
13269 as_ln_s=ln
13270 else
13271 as_ln_s='cp -p'
13272 fi
13273 else
13274 as_ln_s='cp -p'
13275 fi
13276 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13277 rmdir conf$$.dir 2>/dev/null
13278
13279
13280 # as_fn_mkdir_p
13281 # -------------
13282 # Create "$as_dir" as a directory, including parents if necessary.
13283 as_fn_mkdir_p ()
13284 {
13285
13286 case $as_dir in #(
13287 -*) as_dir=./$as_dir;;
13288 esac
13289 test -d "$as_dir" || eval $as_mkdir_p || {
13290 as_dirs=
13291 while :; do
13292 case $as_dir in #(
13293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13294 *) as_qdir=$as_dir;;
13295 esac
13296 as_dirs="'$as_qdir' $as_dirs"
13297 as_dir=`$as_dirname -- "$as_dir" ||
13298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13299 X"$as_dir" : 'X\(//\)[^/]' \| \
13300 X"$as_dir" : 'X\(//\)$' \| \
13301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13302 $as_echo X"$as_dir" |
13303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13304 s//\1/
13305 q
13306 }
13307 /^X\(\/\/\)[^/].*/{
13308 s//\1/
13309 q
13310 }
13311 /^X\(\/\/\)$/{
13312 s//\1/
13313 q
13314 }
13315 /^X\(\/\).*/{
13316 s//\1/
13317 q
13318 }
13319 s/.*/./; q'`
13320 test -d "$as_dir" && break
13321 done
13322 test -z "$as_dirs" || eval "mkdir $as_dirs"
13323 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13324
13325
13326 } # as_fn_mkdir_p
13327 if mkdir -p . 2>/dev/null; then
13328 as_mkdir_p='mkdir -p "$as_dir"'
13329 else
13330 test -d ./-p && rmdir ./-p
13331 as_mkdir_p=false
13332 fi
13333
13334 if test -x / >/dev/null 2>&1; then
13335 as_test_x='test -x'
13336 else
13337 if ls -dL / >/dev/null 2>&1; then
13338 as_ls_L_option=L
13339 else
13340 as_ls_L_option=
13341 fi
13342 as_test_x='
13343 eval sh -c '\''
13344 if test -d "$1"; then
13345 test -d "$1/.";
13346 else
13347 case $1 in #(
13348 -*)set "./$1";;
13349 esac;
13350 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13351 ???[sx]*):;;*)false;;esac;fi
13352 '\'' sh
13353 '
13354 fi
13355 as_executable_p=$as_test_x
13356
13357 # Sed expression to map a string onto a valid CPP name.
13358 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13359
13360 # Sed expression to map a string onto a valid variable name.
13361 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13362
13363
13364 exec 6>&1
13365 ## ----------------------------------- ##
13366 ## Main body of $CONFIG_STATUS script. ##
13367 ## ----------------------------------- ##
13368 _ASEOF
13369 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13370
13371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13372 # Save the log message, to keep $0 and so on meaningful, and to
13373 # report actual input values of CONFIG_FILES etc. instead of their
13374 # values after options handling.
13375 ac_log="
13376 This file was extended by $as_me, which was
13377 generated by GNU Autoconf 2.68. Invocation command line was
13378
13379 CONFIG_FILES = $CONFIG_FILES
13380 CONFIG_HEADERS = $CONFIG_HEADERS
13381 CONFIG_LINKS = $CONFIG_LINKS
13382 CONFIG_COMMANDS = $CONFIG_COMMANDS
13383 $ $0 $@
13384
13385 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13386 "
13387
13388 _ACEOF
13389
13390 case $ac_config_files in *"
13391 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13392 esac
13393
13394 case $ac_config_headers in *"
13395 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13396 esac
13397
13398
13399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13400 # Files that config.status was made for.
13401 config_files="$ac_config_files"
13402 config_headers="$ac_config_headers"
13403 config_commands="$ac_config_commands"
13404
13405 _ACEOF
13406
13407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13408 ac_cs_usage="\
13409 \`$as_me' instantiates files and other configuration actions
13410 from templates according to the current configuration. Unless the files
13411 and actions are specified as TAGs, all are instantiated by default.
13412
13413 Usage: $0 [OPTION]... [TAG]...
13414
13415 -h, --help print this help, then exit
13416 -V, --version print version number and configuration settings, then exit
13417 --config print configuration, then exit
13418 -q, --quiet, --silent
13419 do not print progress messages
13420 -d, --debug don't remove temporary files
13421 --recheck update $as_me by reconfiguring in the same conditions
13422 --file=FILE[:TEMPLATE]
13423 instantiate the configuration file FILE
13424 --header=FILE[:TEMPLATE]
13425 instantiate the configuration header FILE
13426
13427 Configuration files:
13428 $config_files
13429
13430 Configuration headers:
13431 $config_headers
13432
13433 Configuration commands:
13434 $config_commands
13435
13436 Report bugs to the package provider."
13437
13438 _ACEOF
13439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13440 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g '`"
13441 ac_cs_version="\\
13442 config.status
13443 configured by $0, generated by GNU Autoconf 2.68,
13444 with options \\"\$ac_cs_config\\"
13445
13446 Copyright (C) 2010 Free Software Foundation, Inc.
13447 This config.status script is free software; the Free Software Foundation
13448 gives unlimited permission to copy, distribute and modify it."
13449
13450 ac_pwd='$ac_pwd'
13451 srcdir='$srcdir'
13452 INSTALL='$INSTALL'
13453 MKDIR_P='$MKDIR_P'
13454 AWK='$AWK'
13455 test -n "\$AWK" || AWK=awk
13456 _ACEOF
13457
13458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13459 # The default lists apply if the user does not specify any file.
13460 ac_need_defaults=:
13461 while test $# != 0
13462 do
13463 case $1 in
13464 --*=?*)
13465 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13466 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13467 ac_shift=:
13468 ;;
13469 --*=)
13470 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13471 ac_optarg=
13472 ac_shift=:
13473 ;;
13474 *)
13475 ac_option=$1
13476 ac_optarg=$2
13477 ac_shift=shift
13478 ;;
13479 esac
13480
13481 case $ac_option in
13482 # Handling of the options.
13483 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13484 ac_cs_recheck=: ;;
13485 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13486 $as_echo "$ac_cs_version"; exit ;;
13487 --config | --confi | --conf | --con | --co | --c )
13488 $as_echo "$ac_cs_config"; exit ;;
13489 --debug | --debu | --deb | --de | --d | -d )
13490 debug=: ;;
13491 --file | --fil | --fi | --f )
13492 $ac_shift
13493 case $ac_optarg in
13494 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13495 '') as_fn_error $? "missing file argument" ;;
13496 esac
13497 as_fn_append CONFIG_FILES " '$ac_optarg'"
13498 ac_need_defaults=false;;
13499 --header | --heade | --head | --hea )
13500 $ac_shift
13501 case $ac_optarg in
13502 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13503 esac
13504 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13505 ac_need_defaults=false;;
13506 --he | --h)
13507 # Conflict between --help and --header
13508 as_fn_error $? "ambiguous option: \`$1'
13509 Try \`$0 --help' for more information.";;
13510 --help | --hel | -h )
13511 $as_echo "$ac_cs_usage"; exit ;;
13512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13513 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13514 ac_cs_silent=: ;;
13515
13516 # This is an error.
13517 -*) as_fn_error $? "unrecognized option: \`$1'
13518 Try \`$0 --help' for more information." ;;
13519
13520 *) as_fn_append ac_config_targets " $1"
13521 ac_need_defaults=false ;;
13522
13523 esac
13524 shift
13525 done
13526
13527 ac_configure_extra_args=
13528
13529 if $ac_cs_silent; then
13530 exec 6>/dev/null
13531 ac_configure_extra_args="$ac_configure_extra_args --silent"
13532 fi
13533
13534 _ACEOF
13535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13536 if \$ac_cs_recheck; then
13537 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create - -no-recursion
13538 shift
13539 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13540 CONFIG_SHELL='$SHELL'
13541 export CONFIG_SHELL
13542 exec "\$@"
13543 fi
13544
13545 _ACEOF
13546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13547 exec 5>>config.log
13548 {
13549 echo
13550 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13551 ## Running $as_me. ##
13552 _ASBOX
13553 $as_echo "$ac_log"
13554 } >&5
13555
13556 _ACEOF
13557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13558 #
13559 # INIT-COMMANDS
13560 #
13561 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13562
13563
13564 # The HP-UX ksh and POSIX shell print the target directory to stdout
13565 # if CDPATH is set.
13566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13567
13568 sed_quote_subst='$sed_quote_subst'
13569 double_quote_subst='$double_quote_subst'
13570 delay_variable_subst='$delay_variable_subst'
13571 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13572 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13573 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13574 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13575 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13576 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_s ubst"`'
13577 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13578 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13579 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13580 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13581 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13582 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13583 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13584 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13585 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13586 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13587 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13588 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13589 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13590 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13591 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13592 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13593 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13594 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13595 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13596 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13597 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13598 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13599 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13600 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_q uote_subst"`'
13601 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_q uote_subst"`'
13602 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13603 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13604 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13605 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote _subst"`'
13606 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13607 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13608 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13609 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13610 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_ single_quote_subst"`'
13611 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13612 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13613 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_sub st"`'
13614 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13615 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13616 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote _subst"`'
13617 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_q uote_subst"`'
13618 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"` '
13619 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$dela y_single_quote_subst"`'
13620 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13621 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13622 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13623 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13624 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de lay_single_quote_subst"`'
13625 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $ SED "$delay_single_quote_subst"`'
13626 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c _name_address" | $SED "$delay_single_quote_subst"`'
13627 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"`'
13628 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst "`'
13629 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13630 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13631 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13632 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $ SED "$delay_single_quote_subst"`'
13633 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote _subst"`'
13634 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_s ubst"`'
13635 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single _quote_subst"`'
13636 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single _quote_subst"`'
13637 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13638 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13639 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13640 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13641 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13642 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13643 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13644 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13645 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13646 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote _subst"`'
13647 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote _subst"`'
13648 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13649 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_sing le_quote_subst"`'
13650 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single _quote_subst"`'
13651 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quo te_subst"`'
13652 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_si ngle_quote_subst"`'
13653 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$ delay_single_quote_subst"`'
13654 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13655 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_s ubst"`'
13656 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13657 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_sub st"`'
13658 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13659 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote _subst"`'
13660 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst "`'
13661 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_si ngle_quote_subst"`'
13662 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_si ngle_quote_subst"`'
13663 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13664 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_sing le_quote_subst"`'
13665 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"` '
13666 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q uote_subst"`'
13667 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_sub st"`'
13668 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13669 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"` '
13670 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quo te_subst"`'
13671 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_s ubst"`'
13672 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13673 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13674 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13675 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13676 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13677 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_ single_quote_subst"`'
13678 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13679 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13680 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13681 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13682 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13683 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$dela y_single_quote_subst"`'
13684 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13685 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_sub st"`'
13686 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13687 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quo te_subst"`'
13688 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"` '
13689 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_sub st"`'
13690 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13691 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13692 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_sub st"`'
13693 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_sing le_quote_subst"`'
13694 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_ single_quote_subst"`'
13695 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13696 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13697 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_sub st"`'
13698 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_si ngle_quote_subst"`'
13699 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13700 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13701
13702 LTCC='$LTCC'
13703 LTCFLAGS='$LTCFLAGS'
13704 compiler='$compiler_DEFAULT'
13705
13706 # A function that is used when there is no print builtin or printf.
13707 func_fallback_echo ()
13708 {
13709 eval 'cat <<_LTECHO_EOF
13710 \$1
13711 _LTECHO_EOF'
13712 }
13713
13714 # Quote evaled strings.
13715 for var in SHELL \
13716 ECHO \
13717 PATH_SEPARATOR \
13718 SED \
13719 GREP \
13720 EGREP \
13721 FGREP \
13722 LD \
13723 NM \
13724 LN_S \
13725 lt_SP2NL \
13726 lt_NL2SP \
13727 reload_flag \
13728 OBJDUMP \
13729 deplibs_check_method \
13730 file_magic_cmd \
13731 file_magic_glob \
13732 want_nocaseglob \
13733 DLLTOOL \
13734 sharedlib_from_linklib_cmd \
13735 AR \
13736 AR_FLAGS \
13737 archiver_list_spec \
13738 STRIP \
13739 RANLIB \
13740 CC \
13741 CFLAGS \
13742 compiler \
13743 lt_cv_sys_global_symbol_pipe \
13744 lt_cv_sys_global_symbol_to_cdecl \
13745 lt_cv_sys_global_symbol_to_c_name_address \
13746 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13747 nm_file_list_spec \
13748 lt_prog_compiler_no_builtin_flag \
13749 lt_prog_compiler_pic \
13750 lt_prog_compiler_wl \
13751 lt_prog_compiler_static \
13752 lt_cv_prog_compiler_c_o \
13753 need_locks \
13754 MANIFEST_TOOL \
13755 DSYMUTIL \
13756 NMEDIT \
13757 LIPO \
13758 OTOOL \
13759 OTOOL64 \
13760 shrext_cmds \
13761 export_dynamic_flag_spec \
13762 whole_archive_flag_spec \
13763 compiler_needs_object \
13764 with_gnu_ld \
13765 allow_undefined_flag \
13766 no_undefined_flag \
13767 hardcode_libdir_flag_spec \
13768 hardcode_libdir_separator \
13769 exclude_expsyms \
13770 include_expsyms \
13771 file_list_spec \
13772 variables_saved_for_relink \
13773 libname_spec \
13774 library_names_spec \
13775 soname_spec \
13776 install_override_mode \
13777 finish_eval \
13778 old_striplib \
13779 striplib; do
13780 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13781 *[\\\\\\\`\\"\\\$]*)
13782 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_qu ote_subst\\"\\\`\\\\\\""
13783 ;;
13784 *)
13785 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13786 ;;
13787 esac
13788 done
13789
13790 # Double-quote double-evaled strings.
13791 for var in reload_cmds \
13792 old_postinstall_cmds \
13793 old_postuninstall_cmds \
13794 old_archive_cmds \
13795 extract_expsyms_cmds \
13796 old_archive_from_new_cmds \
13797 old_archive_from_expsyms_cmds \
13798 archive_cmds \
13799 archive_expsym_cmds \
13800 module_cmds \
13801 module_expsym_cmds \
13802 export_symbols_cmds \
13803 prelink_cmds \
13804 postlink_cmds \
13805 postinstall_cmds \
13806 postuninstall_cmds \
13807 finish_cmds \
13808 sys_lib_search_path_spec \
13809 sys_lib_dlsearch_path_spec; do
13810 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13811 *[\\\\\\\`\\"\\\$]*)
13812 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$dou ble_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\ "\\\`\\\\\\""
13813 ;;
13814 *)
13815 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13816 ;;
13817 esac
13818 done
13819
13820 ac_aux_dir='$ac_aux_dir'
13821 xsi_shell='$xsi_shell'
13822 lt_shell_append='$lt_shell_append'
13823
13824 # See if we are running on zsh, and set the options which allow our
13825 # commands through without removal of \ escapes INIT.
13826 if test -n "\${ZSH_VERSION+set}" ; then
13827 setopt NO_GLOB_SUBST
13828 fi
13829
13830
13831 PACKAGE='$PACKAGE'
13832 VERSION='$VERSION'
13833 TIMESTAMP='$TIMESTAMP'
13834 RM='$RM'
13835 ofile='$ofile'
13836
13837
13838
13839
13840 _ACEOF
13841
13842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13843
13844 # Handling of arguments.
13845 for ac_config_target in $ac_config_targets
13846 do
13847 case $ac_config_target in
13848 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13849 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13850 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13851 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13852 "opus.pc") CONFIG_FILES="$CONFIG_FILES opus.pc" ;;
13853 "opus-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opus-uninstalled.pc" ;;
13854 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13855 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
13856
13857 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13858 esac
13859 done
13860
13861
13862 # If the user did not use the arguments to specify the items to instantiate,
13863 # then the envvar interface is used. Set only those that are not.
13864 # We use the long form for the default assignment because of an extremely
13865 # bizarre bug on SunOS 4.1.3.
13866 if $ac_need_defaults; then
13867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13870 fi
13871
13872 # Have a temporary directory for convenience. Make it in the build tree
13873 # simply because there is no reason against having it here, and in addition,
13874 # creating and moving files from /tmp can sometimes cause problems.
13875 # Hook for its removal unless debugging.
13876 # Note that there is a small window in which the directory will not be cleaned:
13877 # after its creation but before its name has been assigned to `$tmp'.
13878 $debug ||
13879 {
13880 tmp= ac_tmp=
13881 trap 'exit_status=$?
13882 : "${ac_tmp:=$tmp}"
13883 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13884 ' 0
13885 trap 'as_fn_exit 1' 1 2 13 15
13886 }
13887 # Create a (secure) tmp directory for tmp files.
13888
13889 {
13890 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13891 test -d "$tmp"
13892 } ||
13893 {
13894 tmp=./conf$$-$RANDOM
13895 (umask 077 && mkdir "$tmp")
13896 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13897 ac_tmp=$tmp
13898
13899 # Set up the scripts for CONFIG_FILES section.
13900 # No need to generate them if there are no CONFIG_FILES.
13901 # This happens for instance with `./config.status config.h'.
13902 if test -n "$CONFIG_FILES"; then
13903
13904
13905 ac_cr=`echo X | tr X '\015'`
13906 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13907 # But we know of no other shell where ac_cr would be empty at this
13908 # point, so we can use a bashism as a fallback.
13909 if test "x$ac_cr" = x; then
13910 eval ac_cr=\$\'\\r\'
13911 fi
13912 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13913 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13914 ac_cs_awk_cr='\\r'
13915 else
13916 ac_cs_awk_cr=$ac_cr
13917 fi
13918
13919 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13920 _ACEOF
13921
13922
13923 {
13924 echo "cat >conf$$subs.awk <<_ACEOF" &&
13925 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13926 echo "_ACEOF"
13927 } >conf$$subs.sh ||
13928 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13929 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13930 ac_delim='%!_!# '
13931 for ac_last_try in false false false false false :; do
13932 . ./conf$$subs.sh ||
13933 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13934
13935 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13936 if test $ac_delim_n = $ac_delim_num; then
13937 break
13938 elif $ac_last_try; then
13939 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13940 else
13941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13942 fi
13943 done
13944 rm -f conf$$subs.sh
13945
13946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13947 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13948 _ACEOF
13949 sed -n '
13950 h
13951 s/^/S["/; s/!.*/"]=/
13952 p
13953 g
13954 s/^[^!]*!//
13955 :repl
13956 t repl
13957 s/'"$ac_delim"'$//
13958 t delim
13959 :nl
13960 h
13961 s/\(.\{148\}\)..*/\1/
13962 t more1
13963 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13964 p
13965 n
13966 b repl
13967 :more1
13968 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13969 p
13970 g
13971 s/.\{148\}//
13972 t nl
13973 :delim
13974 h
13975 s/\(.\{148\}\)..*/\1/
13976 t more2
13977 s/["\\]/\\&/g; s/^/"/; s/$/"/
13978 p
13979 b
13980 :more2
13981 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13982 p
13983 g
13984 s/.\{148\}//
13985 t delim
13986 ' <conf$$subs.awk | sed '
13987 /^[^""]/{
13988 N
13989 s/\n//
13990 }
13991 ' >>$CONFIG_STATUS || ac_write_fail=1
13992 rm -f conf$$subs.awk
13993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13994 _ACAWK
13995 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13996 for (key in S) S_is_set[key] = 1
13997 FS = ""
13998
13999 }
14000 {
14001 line = $ 0
14002 nfields = split(line, field, "@")
14003 substed = 0
14004 len = length(field[1])
14005 for (i = 2; i < nfields; i++) {
14006 key = field[i]
14007 keylen = length(key)
14008 if (S_is_set[key]) {
14009 value = S[key]
14010 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14011 len += length(value) + length(field[++i])
14012 substed = 1
14013 } else
14014 len += 1 + keylen
14015 }
14016
14017 print line
14018 }
14019
14020 _ACAWK
14021 _ACEOF
14022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14023 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14024 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14025 else
14026 cat
14027 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14028 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14029 _ACEOF
14030
14031 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14032 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14033 # trailing colons and then remove the whole line if VPATH becomes empty
14034 # (actually we leave an empty line to preserve line numbers).
14035 if test "x$srcdir" = x.; then
14036 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14037 h
14038 s///
14039 s/^/:/
14040 s/[ ]*$/:/
14041 s/:\$(srcdir):/:/g
14042 s/:\${srcdir}:/:/g
14043 s/:@srcdir@:/:/g
14044 s/^:*//
14045 s/:*$//
14046 x
14047 s/\(=[ ]*\).*/\1/
14048 G
14049 s/\n//
14050 s/^[^=]*=[ ]*$//
14051 }'
14052 fi
14053
14054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14055 fi # test -n "$CONFIG_FILES"
14056
14057 # Set up the scripts for CONFIG_HEADERS section.
14058 # No need to generate them if there are no CONFIG_HEADERS.
14059 # This happens for instance with `./config.status Makefile'.
14060 if test -n "$CONFIG_HEADERS"; then
14061 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14062 BEGIN {
14063 _ACEOF
14064
14065 # Transform confdefs.h into an awk script `defines.awk', embedded as
14066 # here-document in config.status, that substitutes the proper values into
14067 # config.h.in to produce config.h.
14068
14069 # Create a delimiter string that does not exist in confdefs.h, to ease
14070 # handling of long lines.
14071 ac_delim='%!_!# '
14072 for ac_last_try in false false :; do
14073 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14074 if test -z "$ac_tt"; then
14075 break
14076 elif $ac_last_try; then
14077 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14078 else
14079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14080 fi
14081 done
14082
14083 # For the awk script, D is an array of macro values keyed by name,
14084 # likewise P contains macro parameters if any. Preserve backslash
14085 # newline sequences.
14086
14087 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14088 sed -n '
14089 s/.\{148\}/&'"$ac_delim"'/g
14090 t rset
14091 :rset
14092 s/^[ ]*#[ ]*define[ ][ ]*/ /
14093 t def
14094 d
14095 :def
14096 s/\\$//
14097 t bsnl
14098 s/["\\]/\\&/g
14099 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14100 D["\1"]=" \3"/p
14101 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14102 d
14103 :bsnl
14104 s/["\\]/\\&/g
14105 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14106 D["\1"]=" \3\\\\\\n"\\/p
14107 t cont
14108 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14109 t cont
14110 d
14111 :cont
14112 n
14113 s/.\{148\}/&'"$ac_delim"'/g
14114 t clear
14115 :clear
14116 s/\\$//
14117 t bsnlc
14118 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14119 d
14120 :bsnlc
14121 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14122 b cont
14123 ' <confdefs.h | sed '
14124 s/'"$ac_delim"'/"\\\
14125 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14126
14127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14128 for (key in D) D_is_set[key] = 1
14129 FS = ""
14130 }
14131 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14132 line = \$ 0
14133 split(line, arg, " ")
14134 if (arg[1] == "#") {
14135 defundef = arg[2]
14136 mac1 = arg[3]
14137 } else {
14138 defundef = substr(arg[1], 2)
14139 mac1 = arg[2]
14140 }
14141 split(mac1, mac2, "(") #)
14142 macro = mac2[1]
14143 prefix = substr(line, 1, index(line, defundef) - 1)
14144 if (D_is_set[macro]) {
14145 # Preserve the white space surrounding the "#".
14146 print prefix "define", macro P[macro] D[macro]
14147 next
14148 } else {
14149 # Replace #undef with comments. This is necessary, for example,
14150 # in the case of _POSIX_SOURCE, which is predefined and required
14151 # on some systems where configure will not decide to define it.
14152 if (defundef == "undef") {
14153 print "/*", prefix defundef, macro, "*/"
14154 next
14155 }
14156 }
14157 }
14158 { print }
14159 _ACAWK
14160 _ACEOF
14161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14162 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14163 fi # test -n "$CONFIG_HEADERS"
14164
14165
14166 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14167 shift
14168 for ac_tag
14169 do
14170 case $ac_tag in
14171 :[FHLC]) ac_mode=$ac_tag; continue;;
14172 esac
14173 case $ac_mode$ac_tag in
14174 :[FHL]*:*);;
14175 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14176 :[FH]-) ac_tag=-:-;;
14177 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14178 esac
14179 ac_save_IFS=$IFS
14180 IFS=:
14181 set x $ac_tag
14182 IFS=$ac_save_IFS
14183 shift
14184 ac_file=$1
14185 shift
14186
14187 case $ac_mode in
14188 :L) ac_source=$1;;
14189 :[FH])
14190 ac_file_inputs=
14191 for ac_f
14192 do
14193 case $ac_f in
14194 -) ac_f="$ac_tmp/stdin";;
14195 *) # Look for the file first in the build tree, then in the source tree
14196 # (if the path is not absolute). The absolute path cannot be DOS-style ,
14197 # because $ac_f cannot contain `:'.
14198 test -f "$ac_f" ||
14199 case $ac_f in
14200 [\\/$]*) false;;
14201 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14202 esac ||
14203 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14204 esac
14205 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; es ac
14206 as_fn_append ac_file_inputs " '$ac_f'"
14207 done
14208
14209 # Let's still pretend it is `configure' which instantiates (i.e., don't
14210 # use $as_me), people would be surprised to read:
14211 # /* config.h. Generated by config.status. */
14212 configure_input='Generated from '`
14213 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14214 `' by configure.'
14215 if test x"$ac_file" != x-; then
14216 configure_input="$ac_file. $configure_input"
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14218 $as_echo "$as_me: creating $ac_file" >&6;}
14219 fi
14220 # Neutralize special characters interpreted by sed in replacement strings.
14221 case $configure_input in #(
14222 *\&* | *\|* | *\\* )
14223 ac_sed_conf_input=`$as_echo "$configure_input" |
14224 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14225 *) ac_sed_conf_input=$configure_input;;
14226 esac
14227
14228 case $ac_tag in
14229 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14231 esac
14232 ;;
14233 esac
14234
14235 ac_dir=`$as_dirname -- "$ac_file" ||
14236 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14237 X"$ac_file" : 'X\(//\)[^/]' \| \
14238 X"$ac_file" : 'X\(//\)$' \| \
14239 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14240 $as_echo X"$ac_file" |
14241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14242 s//\1/
14243 q
14244 }
14245 /^X\(\/\/\)[^/].*/{
14246 s//\1/
14247 q
14248 }
14249 /^X\(\/\/\)$/{
14250 s//\1/
14251 q
14252 }
14253 /^X\(\/\).*/{
14254 s//\1/
14255 q
14256 }
14257 s/.*/./; q'`
14258 as_dir="$ac_dir"; as_fn_mkdir_p
14259 ac_builddir=.
14260
14261 case "$ac_dir" in
14262 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14263 *)
14264 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14265 # A ".." for each directory in $ac_dir_suffix.
14266 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14267 case $ac_top_builddir_sub in
14268 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14269 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14270 esac ;;
14271 esac
14272 ac_abs_top_builddir=$ac_pwd
14273 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14274 # for backward compatibility:
14275 ac_top_builddir=$ac_top_build_prefix
14276
14277 case $srcdir in
14278 .) # We are building in place.
14279 ac_srcdir=.
14280 ac_top_srcdir=$ac_top_builddir_sub
14281 ac_abs_top_srcdir=$ac_pwd ;;
14282 [\\/]* | ?:[\\/]* ) # Absolute name.
14283 ac_srcdir=$srcdir$ac_dir_suffix;
14284 ac_top_srcdir=$srcdir
14285 ac_abs_top_srcdir=$srcdir ;;
14286 *) # Relative name.
14287 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14288 ac_top_srcdir=$ac_top_build_prefix$srcdir
14289 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14290 esac
14291 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14292
14293
14294 case $ac_mode in
14295 :F)
14296 #
14297 # CONFIG_FILE
14298 #
14299
14300 case $INSTALL in
14301 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14302 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14303 esac
14304 ac_MKDIR_P=$MKDIR_P
14305 case $MKDIR_P in
14306 [\\/$]* | ?:[\\/]* ) ;;
14307 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14308 esac
14309 _ACEOF
14310
14311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14312 # If the template does not know about datarootdir, expand it.
14313 # FIXME: This hack should be removed a few years after 2.60.
14314 ac_datarootdir_hack=; ac_datarootdir_seen=
14315 ac_sed_dataroot='
14316 /datarootdir/ {
14317 p
14318 q
14319 }
14320 /@datadir@/p
14321 /@docdir@/p
14322 /@infodir@/p
14323 /@localedir@/p
14324 /@mandir@/p'
14325 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14326 *datarootdir*) ac_datarootdir_seen=yes;;
14327 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ign ore the --datarootdir setting" >&5
14329 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir set ting" >&2;}
14330 _ACEOF
14331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14332 ac_datarootdir_hack='
14333 s&@datadir@&$datadir&g
14334 s&@docdir@&$docdir&g
14335 s&@infodir@&$infodir&g
14336 s&@localedir@&$localedir&g
14337 s&@mandir@&$mandir&g
14338 s&\\\${datarootdir}&$datarootdir&g' ;;
14339 esac
14340 _ACEOF
14341
14342 # Neutralize VPATH when `$srcdir' = `.'.
14343 # Shell code in configure.ac might set extrasub.
14344 # FIXME: do we really want to maintain this feature?
14345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14346 ac_sed_extra="$ac_vpsub
14347 $extrasub
14348 _ACEOF
14349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14350 :t
14351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14352 s|@configure_input@|$ac_sed_conf_input|;t t
14353 s&@top_builddir@&$ac_top_builddir_sub&;t t
14354 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14355 s&@srcdir@&$ac_srcdir&;t t
14356 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14357 s&@top_srcdir@&$ac_top_srcdir&;t t
14358 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14359 s&@builddir@&$ac_builddir&;t t
14360 s&@abs_builddir@&$ac_abs_builddir&;t t
14361 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14362 s&@INSTALL@&$ac_INSTALL&;t t
14363 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14364 $ac_datarootdir_hack
14365 "
14366 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14367 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14368
14369 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14370 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14371 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14372 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a referenc e to the variable \`datarootdir'
14374 which seems to be undefined. Please make sure it is defined" >&5
14375 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datar ootdir'
14376 which seems to be undefined. Please make sure it is defined" >&2;}
14377
14378 rm -f "$ac_tmp/stdin"
14379 case $ac_file in
14380 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14381 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14382 esac \
14383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14384 ;;
14385 :H)
14386 #
14387 # CONFIG_HEADER
14388 #
14389 if test x"$ac_file" != x-; then
14390 {
14391 $as_echo "/* $configure_input */" \
14392 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14393 } >"$ac_tmp/config.h" \
14394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14395 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14397 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14398 else
14399 rm -f "$ac_file"
14400 mv "$ac_tmp/config.h" "$ac_file" \
14401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14402 fi
14403 else
14404 $as_echo "/* $configure_input */" \
14405 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14406 || as_fn_error $? "could not create -" "$LINENO" 5
14407 fi
14408 # Compute "$ac_file"'s index in $config_headers.
14409 _am_arg="$ac_file"
14410 _am_stamp_count=1
14411 for _am_header in $config_headers :; do
14412 case $_am_header in
14413 $_am_arg | $_am_arg:* )
14414 break ;;
14415 * )
14416 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14417 esac
14418 done
14419 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14420 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14421 X"$_am_arg" : 'X\(//\)[^/]' \| \
14422 X"$_am_arg" : 'X\(//\)$' \| \
14423 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14424 $as_echo X"$_am_arg" |
14425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14426 s//\1/
14427 q
14428 }
14429 /^X\(\/\/\)[^/].*/{
14430 s//\1/
14431 q
14432 }
14433 /^X\(\/\/\)$/{
14434 s//\1/
14435 q
14436 }
14437 /^X\(\/\).*/{
14438 s//\1/
14439 q
14440 }
14441 s/.*/./; q'`/stamp-h$_am_stamp_count
14442 ;;
14443
14444 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14445 $as_echo "$as_me: executing $ac_file commands" >&6;}
14446 ;;
14447 esac
14448
14449
14450 case $ac_file$ac_mode in
14451 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14452 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14453 # are listed without --file. Let's play safe and only enable the eval
14454 # if we detect the quoting.
14455 case $CONFIG_FILES in
14456 *\'*) eval set x "$CONFIG_FILES" ;;
14457 *) set x $CONFIG_FILES ;;
14458 esac
14459 shift
14460 for mf
14461 do
14462 # Strip MF so we end up with the name of the file.
14463 mf=`echo "$mf" | sed -e 's/:.*$//'`
14464 # Check whether this is an Automake generated Makefile or not.
14465 # We used to match only the files named `Makefile.in', but
14466 # some people rename them; so instead we look at the file content.
14467 # Grep'ing the first line is not enough: some people post-process
14468 # each Makefile.in and add a new line on top of each file to say so.
14469 # Grep'ing the whole file is not good either: AIX grep has a line
14470 # limit of 2048, but all sed's we know have understand at least 4000.
14471 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1 ; then
14472 dirpart=`$as_dirname -- "$mf" ||
14473 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14474 X"$mf" : 'X\(//\)[^/]' \| \
14475 X"$mf" : 'X\(//\)$' \| \
14476 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14477 $as_echo X"$mf" |
14478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14479 s//\1/
14480 q
14481 }
14482 /^X\(\/\/\)[^/].*/{
14483 s//\1/
14484 q
14485 }
14486 /^X\(\/\/\)$/{
14487 s//\1/
14488 q
14489 }
14490 /^X\(\/\).*/{
14491 s//\1/
14492 q
14493 }
14494 s/.*/./; q'`
14495 else
14496 continue
14497 fi
14498 # Extract the definition of DEPDIR, am__include, and am__quote
14499 # from the Makefile without running `make'.
14500 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14501 test -z "$DEPDIR" && continue
14502 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14503 test -z "am__include" && continue
14504 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14505 # When using ansi2knr, U may be empty or an underscore; expand it
14506 U=`sed -n 's/^U = //p' < "$mf"`
14507 # Find all dependency output files, they are included files with
14508 # $(DEPDIR) in their names. We invoke sed twice because it is the
14509 # simplest approach to changing $(DEPDIR) to its actual value in the
14510 # expansion.
14511 for file in `sed -n "
14512 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14513 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14514 # Make sure the directory exists.
14515 test -f "$dirpart/$file" && continue
14516 fdir=`$as_dirname -- "$file" ||
14517 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14518 X"$file" : 'X\(//\)[^/]' \| \
14519 X"$file" : 'X\(//\)$' \| \
14520 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14521 $as_echo X"$file" |
14522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14523 s//\1/
14524 q
14525 }
14526 /^X\(\/\/\)[^/].*/{
14527 s//\1/
14528 q
14529 }
14530 /^X\(\/\/\)$/{
14531 s//\1/
14532 q
14533 }
14534 /^X\(\/\).*/{
14535 s//\1/
14536 q
14537 }
14538 s/.*/./; q'`
14539 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14540 # echo "creating $dirpart/$file"
14541 echo '# dummy' > "$dirpart/$file"
14542 done
14543 done
14544 }
14545 ;;
14546 "libtool":C)
14547
14548 # See if we are running on zsh, and set the options which allow our
14549 # commands through without removal of \ escapes.
14550 if test -n "${ZSH_VERSION+set}" ; then
14551 setopt NO_GLOB_SUBST
14552 fi
14553
14554 cfgfile="${ofile}T"
14555 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14556 $RM "$cfgfile"
14557
14558 cat <<_LT_EOF >> "$cfgfile"
14559 #! $SHELL
14560
14561 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building suppo rt services.
14562 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14563 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14564 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14565 #
14566 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14567 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14568 # Foundation, Inc.
14569 # Written by Gordon Matzigkeit, 1996
14570 #
14571 # This file is part of GNU Libtool.
14572 #
14573 # GNU Libtool is free software; you can redistribute it and/or
14574 # modify it under the terms of the GNU General Public License as
14575 # published by the Free Software Foundation; either version 2 of
14576 # the License, or (at your option) any later version.
14577 #
14578 # As a special exception to the GNU General Public License,
14579 # if you distribute this file as part of a program or library that
14580 # is built using GNU Libtool, you may include this file under the
14581 # same distribution terms that you use for the rest of that program.
14582 #
14583 # GNU Libtool is distributed in the hope that it will be useful,
14584 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14585 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14586 # GNU General Public License for more details.
14587 #
14588 # You should have received a copy of the GNU General Public License
14589 # along with GNU Libtool; see the file COPYING. If not, a copy
14590 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14591 # obtained by writing to the Free Software Foundation, Inc.,
14592 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14593
14594
14595 # The names of the tagged configurations supported by this script.
14596 available_tags=""
14597
14598 # ### BEGIN LIBTOOL CONFIG
14599
14600 # Which release of libtool.m4 was used?
14601 macro_version=$macro_version
14602 macro_revision=$macro_revision
14603
14604 # Whether or not to build shared libraries.
14605 build_libtool_libs=$enable_shared
14606
14607 # Whether or not to build static libraries.
14608 build_old_libs=$enable_static
14609
14610 # What type of objects to build.
14611 pic_mode=$pic_mode
14612
14613 # Whether or not to optimize for fast installation.
14614 fast_install=$enable_fast_install
14615
14616 # Shell to use when invoking shell scripts.
14617 SHELL=$lt_SHELL
14618
14619 # An echo program that protects backslashes.
14620 ECHO=$lt_ECHO
14621
14622 # The PATH separator for the build system.
14623 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14624
14625 # The host system.
14626 host_alias=$host_alias
14627 host=$host
14628 host_os=$host_os
14629
14630 # The build system.
14631 build_alias=$build_alias
14632 build=$build
14633 build_os=$build_os
14634
14635 # A sed program that does not truncate output.
14636 SED=$lt_SED
14637
14638 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14639 Xsed="\$SED -e 1s/^X//"
14640
14641 # A grep program that handles long lines.
14642 GREP=$lt_GREP
14643
14644 # An ERE matcher.
14645 EGREP=$lt_EGREP
14646
14647 # A literal string matcher.
14648 FGREP=$lt_FGREP
14649
14650 # A BSD- or MS-compatible name lister.
14651 NM=$lt_NM
14652
14653 # Whether we need soft or hard links.
14654 LN_S=$lt_LN_S
14655
14656 # What is the maximum length of a command?
14657 max_cmd_len=$max_cmd_len
14658
14659 # Object file suffix (normally "o").
14660 objext=$ac_objext
14661
14662 # Executable file suffix (normally "").
14663 exeext=$exeext
14664
14665 # whether the shell understands "unset".
14666 lt_unset=$lt_unset
14667
14668 # turn spaces into newlines.
14669 SP2NL=$lt_lt_SP2NL
14670
14671 # turn newlines into spaces.
14672 NL2SP=$lt_lt_NL2SP
14673
14674 # convert \$build file names to \$host format.
14675 to_host_file_cmd=$lt_cv_to_host_file_cmd
14676
14677 # convert \$build files to toolchain format.
14678 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14679
14680 # An object symbol dumper.
14681 OBJDUMP=$lt_OBJDUMP
14682
14683 # Method to check whether dependent libraries are shared objects.
14684 deplibs_check_method=$lt_deplibs_check_method
14685
14686 # Command to use when deplibs_check_method = "file_magic".
14687 file_magic_cmd=$lt_file_magic_cmd
14688
14689 # How to find potential files when deplibs_check_method = "file_magic".
14690 file_magic_glob=$lt_file_magic_glob
14691
14692 # Find potential files using nocaseglob when deplibs_check_method = "file_magic" .
14693 want_nocaseglob=$lt_want_nocaseglob
14694
14695 # DLL creation program.
14696 DLLTOOL=$lt_DLLTOOL
14697
14698 # Command to associate shared and link libraries.
14699 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14700
14701 # The archiver.
14702 AR=$lt_AR
14703
14704 # Flags to create an archive.
14705 AR_FLAGS=$lt_AR_FLAGS
14706
14707 # How to feed a file listing to the archiver.
14708 archiver_list_spec=$lt_archiver_list_spec
14709
14710 # A symbol stripping program.
14711 STRIP=$lt_STRIP
14712
14713 # Commands used to install an old-style archive.
14714 RANLIB=$lt_RANLIB
14715 old_postinstall_cmds=$lt_old_postinstall_cmds
14716 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14717
14718 # Whether to use a lock for old archive extraction.
14719 lock_old_archive_extraction=$lock_old_archive_extraction
14720
14721 # A C compiler.
14722 LTCC=$lt_CC
14723
14724 # LTCC compiler flags.
14725 LTCFLAGS=$lt_CFLAGS
14726
14727 # Take the output of nm and produce a listing of raw symbols and C names.
14728 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14729
14730 # Transform the output of nm in a proper C declaration.
14731 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14732
14733 # Transform the output of nm in a C name address pair.
14734 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14735
14736 # Transform the output of nm in a C name address pair when lib prefix is needed.
14737 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name _address_lib_prefix
14738
14739 # Specify filename containing input files for \$NM.
14740 nm_file_list_spec=$lt_nm_file_list_spec
14741
14742 # The root where to search for dependent libraries,and in which our libraries sh ould be installed.
14743 lt_sysroot=$lt_sysroot
14744
14745 # The name of the directory that contains temporary libtool files.
14746 objdir=$objdir
14747
14748 # Used to examine libraries when file_magic_cmd begins with "file".
14749 MAGIC_CMD=$MAGIC_CMD
14750
14751 # Must we lock files when doing compilation?
14752 need_locks=$lt_need_locks
14753
14754 # Manifest tool.
14755 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14756
14757 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14758 DSYMUTIL=$lt_DSYMUTIL
14759
14760 # Tool to change global to local symbols on Mac OS X.
14761 NMEDIT=$lt_NMEDIT
14762
14763 # Tool to manipulate fat objects and archives on Mac OS X.
14764 LIPO=$lt_LIPO
14765
14766 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14767 OTOOL=$lt_OTOOL
14768
14769 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14770 OTOOL64=$lt_OTOOL64
14771
14772 # Old archive suffix (normally "a").
14773 libext=$libext
14774
14775 # Shared library suffix (normally ".so").
14776 shrext_cmds=$lt_shrext_cmds
14777
14778 # The commands to extract the exported symbol list from a shared archive.
14779 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14780
14781 # Variables whose values should be saved in libtool wrapper scripts and
14782 # restored at link time.
14783 variables_saved_for_relink=$lt_variables_saved_for_relink
14784
14785 # Do we need the "lib" prefix for modules?
14786 need_lib_prefix=$need_lib_prefix
14787
14788 # Do we need a version for libraries?
14789 need_version=$need_version
14790
14791 # Library versioning type.
14792 version_type=$version_type
14793
14794 # Shared library runtime path variable.
14795 runpath_var=$runpath_var
14796
14797 # Shared library path variable.
14798 shlibpath_var=$shlibpath_var
14799
14800 # Is shlibpath searched before the hard-coded library search path?
14801 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14802
14803 # Format of library name prefix.
14804 libname_spec=$lt_libname_spec
14805
14806 # List of archive names. First name is the real one, the rest are links.
14807 # The last name is the one that the linker finds with -lNAME
14808 library_names_spec=$lt_library_names_spec
14809
14810 # The coded name of the library, if different from the real name.
14811 soname_spec=$lt_soname_spec
14812
14813 # Permission mode override for installation of shared libraries.
14814 install_override_mode=$lt_install_override_mode
14815
14816 # Command to use after installation of a shared archive.
14817 postinstall_cmds=$lt_postinstall_cmds
14818
14819 # Command to use after uninstallation of a shared archive.
14820 postuninstall_cmds=$lt_postuninstall_cmds
14821
14822 # Commands used to finish a libtool library installation in a directory.
14823 finish_cmds=$lt_finish_cmds
14824
14825 # As "finish_cmds", except a single script fragment to be evaled but
14826 # not shown.
14827 finish_eval=$lt_finish_eval
14828
14829 # Whether we should hardcode library paths into libraries.
14830 hardcode_into_libs=$hardcode_into_libs
14831
14832 # Compile-time system search path for libraries.
14833 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14834
14835 # Run-time system search path for libraries.
14836 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14837
14838 # Whether dlopen is supported.
14839 dlopen_support=$enable_dlopen
14840
14841 # Whether dlopen of programs is supported.
14842 dlopen_self=$enable_dlopen_self
14843
14844 # Whether dlopen of statically linked programs is supported.
14845 dlopen_self_static=$enable_dlopen_self_static
14846
14847 # Commands to strip libraries.
14848 old_striplib=$lt_old_striplib
14849 striplib=$lt_striplib
14850
14851
14852 # The linker used to build libraries.
14853 LD=$lt_LD
14854
14855 # How to create reloadable object files.
14856 reload_flag=$lt_reload_flag
14857 reload_cmds=$lt_reload_cmds
14858
14859 # Commands used to build an old-style archive.
14860 old_archive_cmds=$lt_old_archive_cmds
14861
14862 # A language specific compiler.
14863 CC=$lt_compiler
14864
14865 # Is the compiler the GNU compiler?
14866 with_gcc=$GCC
14867
14868 # Compiler flag to turn off builtin functions.
14869 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14870
14871 # Additional compiler flags for building library objects.
14872 pic_flag=$lt_lt_prog_compiler_pic
14873
14874 # How to pass a linker flag through the compiler.
14875 wl=$lt_lt_prog_compiler_wl
14876
14877 # Compiler flag to prevent dynamic linking.
14878 link_static_flag=$lt_lt_prog_compiler_static
14879
14880 # Does compiler simultaneously support -c and -o options?
14881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14882
14883 # Whether or not to add -lc for building shared libraries.
14884 build_libtool_need_lc=$archive_cmds_need_lc
14885
14886 # Whether or not to disallow shared libs when runtime libs are static.
14887 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14888
14889 # Compiler flag to allow reflexive dlopens.
14890 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14891
14892 # Compiler flag to generate shared objects directly from archives.
14893 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14894
14895 # Whether the compiler copes with passing no objects directly.
14896 compiler_needs_object=$lt_compiler_needs_object
14897
14898 # Create an old-style archive from a shared archive.
14899 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14900
14901 # Create a temporary old-style archive to link instead of a shared archive.
14902 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14903
14904 # Commands used to build a shared archive.
14905 archive_cmds=$lt_archive_cmds
14906 archive_expsym_cmds=$lt_archive_expsym_cmds
14907
14908 # Commands used to build a loadable module if different from building
14909 # a shared archive.
14910 module_cmds=$lt_module_cmds
14911 module_expsym_cmds=$lt_module_expsym_cmds
14912
14913 # Whether we are building with GNU ld or not.
14914 with_gnu_ld=$lt_with_gnu_ld
14915
14916 # Flag that allows shared libraries with undefined symbols to be built.
14917 allow_undefined_flag=$lt_allow_undefined_flag
14918
14919 # Flag that enforces no undefined symbols.
14920 no_undefined_flag=$lt_no_undefined_flag
14921
14922 # Flag to hardcode \$libdir into a binary during linking.
14923 # This must work even if \$libdir does not exist
14924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14925
14926 # Whether we need a single "-rpath" flag with a separated argument.
14927 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14928
14929 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14930 # DIR into the resulting binary.
14931 hardcode_direct=$hardcode_direct
14932
14933 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14934 # DIR into the resulting binary and the resulting library dependency is
14935 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14936 # library is relocated.
14937 hardcode_direct_absolute=$hardcode_direct_absolute
14938
14939 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14940 # into the resulting binary.
14941 hardcode_minus_L=$hardcode_minus_L
14942
14943 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14944 # into the resulting binary.
14945 hardcode_shlibpath_var=$hardcode_shlibpath_var
14946
14947 # Set to "yes" if building a shared library automatically hardcodes DIR
14948 # into the library and all subsequent libraries and executables linked
14949 # against it.
14950 hardcode_automatic=$hardcode_automatic
14951
14952 # Set to yes if linker adds runtime paths of dependent libraries
14953 # to runtime path list.
14954 inherit_rpath=$inherit_rpath
14955
14956 # Whether libtool must link a program against all its dependency libraries.
14957 link_all_deplibs=$link_all_deplibs
14958
14959 # Set to "yes" if exported symbols are required.
14960 always_export_symbols=$always_export_symbols
14961
14962 # The commands to list exported symbols.
14963 export_symbols_cmds=$lt_export_symbols_cmds
14964
14965 # Symbols that should not be listed in the preloaded symbols.
14966 exclude_expsyms=$lt_exclude_expsyms
14967
14968 # Symbols that must always be exported.
14969 include_expsyms=$lt_include_expsyms
14970
14971 # Commands necessary for linking programs (against libraries) with templates.
14972 prelink_cmds=$lt_prelink_cmds
14973
14974 # Commands necessary for finishing linking programs.
14975 postlink_cmds=$lt_postlink_cmds
14976
14977 # Specify filename containing input files.
14978 file_list_spec=$lt_file_list_spec
14979
14980 # How to hardcode a shared library path into an executable.
14981 hardcode_action=$hardcode_action
14982
14983 # ### END LIBTOOL CONFIG
14984
14985 _LT_EOF
14986
14987 case $host_os in
14988 aix3*)
14989 cat <<\_LT_EOF >> "$cfgfile"
14990 # AIX sometimes has problems with the GCC collect2 program. For some
14991 # reason, if we set the COLLECT_NAMES environment variable, the problems
14992 # vanish in a puff of smoke.
14993 if test "X${COLLECT_NAMES+set}" != Xset; then
14994 COLLECT_NAMES=
14995 export COLLECT_NAMES
14996 fi
14997 _LT_EOF
14998 ;;
14999 esac
15000
15001
15002 ltmain="$ac_aux_dir/ltmain.sh"
15003
15004
15005 # We use sed instead of cat because bash on DJGPP gets confused if
15006 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15007 # text mode, it properly converts lines to CR/LF. This bash problem
15008 # is reportedly fixed, but why not run on old versions too?
15009 sed '$q' "$ltmain" >> "$cfgfile" \
15010 || (rm -f "$cfgfile"; exit 1)
15011
15012 if test x"$xsi_shell" = xyes; then
15013 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15014 func_dirname ()\
15015 {\
15016 \ case ${1} in\
15017 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15018 \ * ) func_dirname_result="${3}" ;;\
15019 \ esac\
15020 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15021 && mv -f "$cfgfile.tmp" "$cfgfile" \
15022 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp" )
15023 test 0 -eq $? || _lt_function_replace_fail=:
15024
15025
15026 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15027 func_basename ()\
15028 {\
15029 \ func_basename_result="${1##*/}"\
15030 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15031 && mv -f "$cfgfile.tmp" "$cfgfile" \
15032 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp" )
15033 test 0 -eq $? || _lt_function_replace_fail=:
15034
15035
15036 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15037 func_dirname_and_basename ()\
15038 {\
15039 \ case ${1} in\
15040 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15041 \ * ) func_dirname_result="${3}" ;;\
15042 \ esac\
15043 \ func_basename_result="${1##*/}"\
15044 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfi le.tmp \
15045 && mv -f "$cfgfile.tmp" "$cfgfile" \
15046 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp" )
15047 test 0 -eq $? || _lt_function_replace_fail=:
15048
15049
15050 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15051 func_stripname ()\
15052 {\
15053 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15054 \ # positional parameters, so assign one to ordinary parameter first.\
15055 \ func_stripname_result=${3}\
15056 \ func_stripname_result=${func_stripname_result#"${1}"}\
15057 \ func_stripname_result=${func_stripname_result%"${2}"}\
15058 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15059 && mv -f "$cfgfile.tmp" "$cfgfile" \
15060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp" )
15061 test 0 -eq $? || _lt_function_replace_fail=:
15062
15063
15064 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15065 func_split_long_opt ()\
15066 {\
15067 \ func_split_long_opt_name=${1%%=*}\
15068 \ func_split_long_opt_arg=${1#*=}\
15069 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15070 && mv -f "$cfgfile.tmp" "$cfgfile" \
15071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp" )
15072 test 0 -eq $? || _lt_function_replace_fail=:
15073
15074
15075 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15076 func_split_short_opt ()\
15077 {\
15078 \ func_split_short_opt_arg=${1#??}\
15079 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15080 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tm p \
15081 && mv -f "$cfgfile.tmp" "$cfgfile" \
15082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp" )
15083 test 0 -eq $? || _lt_function_replace_fail=:
15084
15085
15086 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15087 func_lo2o ()\
15088 {\
15089 \ case ${1} in\
15090 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15091 \ *) func_lo2o_result=${1} ;;\
15092 \ esac\
15093 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15094 && mv -f "$cfgfile.tmp" "$cfgfile" \
15095 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp" )
15096 test 0 -eq $? || _lt_function_replace_fail=:
15097
15098
15099 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15100 func_xform ()\
15101 {\
15102 func_xform_result=${1%.*}.lo\
15103 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15104 && mv -f "$cfgfile.tmp" "$cfgfile" \
15105 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp" )
15106 test 0 -eq $? || _lt_function_replace_fail=:
15107
15108
15109 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15110 func_arith ()\
15111 {\
15112 func_arith_result=$(( $* ))\
15113 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15114 && mv -f "$cfgfile.tmp" "$cfgfile" \
15115 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp" )
15116 test 0 -eq $? || _lt_function_replace_fail=:
15117
15118
15119 sed -e '/^func_len ()$/,/^} # func_len /c\
15120 func_len ()\
15121 {\
15122 func_len_result=${#1}\
15123 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15124 && mv -f "$cfgfile.tmp" "$cfgfile" \
15125 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp" )
15126 test 0 -eq $? || _lt_function_replace_fail=:
15127
15128 fi
15129
15130 if test x"$lt_shell_append" = xyes; then
15131 sed -e '/^func_append ()$/,/^} # func_append /c\
15132 func_append ()\
15133 {\
15134 eval "${1}+=\\${2}"\
15135 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15136 && mv -f "$cfgfile.tmp" "$cfgfile" \
15137 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp" )
15138 test 0 -eq $? || _lt_function_replace_fail=:
15139
15140
15141 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15142 func_append_quoted ()\
15143 {\
15144 \ func_quote_for_eval "${2}"\
15145 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15146 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15147 && mv -f "$cfgfile.tmp" "$cfgfile" \
15148 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp" )
15149 test 0 -eq $? || _lt_function_replace_fail=:
15150
15151
15152 # Save a `func_append' function call where possible by direct use of '+='
15153 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15154 && mv -f "$cfgfile.tmp" "$cfgfile" \
15155 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tm p")
15156 test 0 -eq $? || _lt_function_replace_fail=:
15157 else
15158 # Save a `func_append' function call even when '+=' is not available
15159 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15160 && mv -f "$cfgfile.tmp" "$cfgfile" \
15161 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tm p")
15162 test 0 -eq $? || _lt_function_replace_fail=:
15163 fi
15164
15165 if test x"$_lt_function_replace_fail" = x":"; then
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extende d shell functions in $ofile" >&5
15167 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofi le" >&2;}
15168 fi
15169
15170
15171 mv -f "$cfgfile" "$ofile" ||
15172 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15173 chmod +x "$ofile"
15174
15175 ;;
15176
15177 esac
15178 done # for ac_tag
15179
15180
15181 as_fn_exit 0
15182 _ACEOF
15183 ac_clean_files=$ac_clean_files_save
15184
15185 test $ac_write_fail = 0 ||
15186 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15187
15188
15189 # configure is writing to config.log, and then calls config.status.
15190 # config.status does its own redirection, appending to config.log.
15191 # Unfortunately, on DOS this fails, as config.log is still kept open
15192 # by configure, so config.status won't be able to write to it; its
15193 # output is simply discarded. So we exec the FD to /dev/null,
15194 # effectively closing config.log, so it can be properly (re)opened and
15195 # appended to by config.status. When coming back to configure, we
15196 # need to make the FD available again.
15197 if test "$no_create" != yes; then
15198 ac_cs_success=:
15199 ac_config_status_args=
15200 test "$silent" = yes &&
15201 ac_config_status_args="$ac_config_status_args --quiet"
15202 exec 5>/dev/null
15203 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15204 exec 5>>config.log
15205 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15206 # would make configure fail if this is the last instruction.
15207 $ac_cs_success || as_fn_exit 1
15208 fi
15209 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_un recognized_opts" >&5
15211 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15212 fi
15213
15214
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
15216 ------------------------------------------------------------------------
15217 $PACKAGE $VERSION: Automatic configuration OK.
15218
15219 Compiler support:
15220
15221 C99 var arrays: ................ ${has_var_arrays}
15222 C99 lrintf: .................... ${ac_cv_func_lrintf}
15223 Alloca: ........................ ${has_alloca}
15224
15225 General configuration:
15226
15227 Floating point support: ........ ${ac_enable_float}
15228 Fast float approximations: ..... ${float_approx}
15229 Fixed point debugging: ......... ${ac_enable_fixed_debug}
15230 Custom modes: .................. ${ac_enable_custom_modes}
15231 Assertion checking: ............ ${ac_enable_assertions}
15232 Fuzzing: ....................... ${ac_enable_fuzzing}
15233
15234 API documentation: ............. ${ac_enable_doc}
15235 ------------------------------------------------------------------------
15236 " >&5
15237 $as_echo "
15238 ------------------------------------------------------------------------
15239 $PACKAGE $VERSION: Automatic configuration OK.
15240
15241 Compiler support:
15242
15243 C99 var arrays: ................ ${has_var_arrays}
15244 C99 lrintf: .................... ${ac_cv_func_lrintf}
15245 Alloca: ........................ ${has_alloca}
15246
15247 General configuration:
15248
15249 Floating point support: ........ ${ac_enable_float}
15250 Fast float approximations: ..... ${float_approx}
15251 Fixed point debugging: ......... ${ac_enable_fixed_debug}
15252 Custom modes: .................. ${ac_enable_custom_modes}
15253 Assertion checking: ............ ${ac_enable_assertions}
15254 Fuzzing: ....................... ${ac_enable_fuzzing}
15255
15256 API documentation: ............. ${ac_enable_doc}
15257 ------------------------------------------------------------------------
15258 " >&6; }
15259
15260 echo "Type \"make; make install\" to compile and install";
15261 echo "Type \"make check\" to run the test suite";
OLDNEW
« no previous file with comments | « opus/config.h.in ('k') | opus/configure.ac » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698