Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libogg 1.3.6.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184
185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 PATH=/empty FPATH=/empty; export PATH FPATH
190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192 test \$(( 1 + 1 )) = 2 || exit 1"
193 if (eval "$as_required") 2>/dev/null
194 then :
195 as_have_required=yes
196 else $as_nop
197 as_have_required=no
198 fi
199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200 then :
201
202 else $as_nop
203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204 as_found=false
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206 do
207 IFS=$as_save_IFS
208 case $as_dir in #(((
209 '') as_dir=./ ;;
210 */) ;;
211 *) as_dir=$as_dir/ ;;
212 esac
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221 then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224 then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 IFS=$as_save_IFS
233 if $as_found
234 then :
235
236 else $as_nop
237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239 then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
241 fi
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno
269 then :
270 printf "%s\n" "$0: This script requires a shell more modern than all"
271 printf "%s\n" "$0: the shells that I found on your system."
272 if test ${ZSH_VERSION+y} ; then
273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275 else
276 printf "%s\n" "$0: Please tell [email protected] about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
280 fi
281 exit 1
282 fi
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321 # as_fn_nop
322 # ---------
323 # Do nothing but, unlike ":", preserve the value of $?.
324 as_fn_nop ()
325 {
326 return $?
327 }
328 as_nop=as_fn_nop
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else $as_nop
398 as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 }
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else $as_nop
416 as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 }
420 fi # as_fn_arith
421
422 # as_fn_nop
423 # ---------
424 # Do nothing but, unlike ":", preserve the value of $?.
425 as_fn_nop ()
426 {
427 return $?
428 }
429 as_nop=as_fn_nop
430
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
436 as_fn_error ()
437 {
438 as_status=$1; test $as_status -eq 0 && as_status=1
439 if test "$4"; then
440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442 fi
443 printf "%s\n" "$as_me: error: $2" >&2
444 as_fn_exit $as_status
445 } # as_fn_error
446
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 as_expr=expr
450 else
451 as_expr=false
452 fi
453
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 as_basename=basename
456 else
457 as_basename=false
458 fi
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\/\)$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\).*/{
480 s//\1/
481 q
482 }
483 s/.*/./; q'`
484
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493 as_lineno_1=$LINENO as_lineno_1a=$LINENO
494 as_lineno_2=$LINENO as_lineno_2a=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
498 sed -n '
499 p
500 /[$]LINENO/=
501 ' <$as_myself |
502 sed '
503 s/[$]LINENO.*/&-/
504 t lineno
505 b
506 :lineno
507 N
508 :loop
509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510 t loop
511 s/-\n.*//
512 ' >$as_me.lineno &&
513 chmod +x "$as_me.lineno" ||
514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
515
516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517 # already done that, so ensure we don't try to do so again and fall
518 # in an infinite loop. This has already happened in practice.
519 _as_can_reexec=no; export _as_can_reexec
520 # Don't try to exec as it changes $[0], causing all sort of problems
521 # (the dirname of $[0] is not the place where we might find the
522 # original and so on. Autoconf is especially sensitive to this).
523 . "./$as_me.lineno"
524 # Exit status is that of the last command.
525 exit
526 }
527
528
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C= ECHO_N= ECHO_T=
533 case `echo -n x` in #(((((
534 -n*)
535 case `echo 'xy\c'` in
536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
537 xy) ECHO_C='\c';;
538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
539 ECHO_T=' ';;
540 esac;;
541 *)
542 ECHO_N='-n';;
543 esac
544
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n. New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo='printf %s\n'
549 as_echo_n='printf %s'
550
551
552 rm -f conf$$ conf$$.exe conf$$.file
553 if test -d conf$$.dir; then
554 rm -f conf$$.dir/conf$$.file
555 else
556 rm -f conf$$.dir
557 mkdir conf$$.dir 2>/dev/null
558 fi
559 if (echo >conf$$.file) 2>/dev/null; then
560 if ln -s conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s='ln -s'
562 # ... but there are two gotchas:
563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565 # In both cases, we have to default to `cp -pR'.
566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567 as_ln_s='cp -pR'
568 elif ln conf$$.file conf$$ 2>/dev/null; then
569 as_ln_s=ln
570 else
571 as_ln_s='cp -pR'
572 fi
573 else
574 as_ln_s='cp -pR'
575 fi
576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577 rmdir conf$$.dir 2>/dev/null
578
579 if mkdir -p . 2>/dev/null; then
580 as_mkdir_p='mkdir -p "$as_dir"'
581 else
582 test -d ./-p && rmdir ./-p
583 as_mkdir_p=false
584 fi
585
586 as_test_x='test -x'
587 as_executable_p=as_fn_executable_p
588
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598 test -n "$DJDIR" || exec 7<&0 </dev/null
599 exec 6>&1
600
601 # Name of the host.
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606 #
607 # Initializations.
608 #
609 ac_default_prefix=/usr/local
610 ac_clean_files=
611 ac_config_libobj_dir=.
612 LIBOBJS=
613 cross_compiling=no
614 subdirs=
615 MFLAGS=
616 MAKEFLAGS=
617
618 # Identity of this package.
619 PACKAGE_NAME='libogg'
620 PACKAGE_TARNAME='libogg'
621 PACKAGE_VERSION='1.3.6'
622 PACKAGE_STRING='libogg 1.3.6'
623 PACKAGE_BUGREPORT=''
624 PACKAGE_URL=''
625
626 # Factoring default headers for most tests.
627 ac_includes_default="\
628 #include <stddef.h>
629 #ifdef HAVE_STDIO_H
630 # include <stdio.h>
631 #endif
632 #ifdef HAVE_STDLIB_H
633 # include <stdlib.h>
634 #endif
635 #ifdef HAVE_STRING_H
636 # include <string.h>
637 #endif
638 #ifdef HAVE_INTTYPES_H
639 # include <inttypes.h>
640 #endif
641 #ifdef HAVE_STDINT_H
642 # include <stdint.h>
643 #endif
644 #ifdef HAVE_STRINGS_H
645 # include <strings.h>
646 #endif
647 #ifdef HAVE_SYS_TYPES_H
648 # include <sys/types.h>
649 #endif
650 #ifdef HAVE_SYS_STAT_H
651 # include <sys/stat.h>
652 #endif
653 #ifdef HAVE_UNISTD_H
654 # include <unistd.h>
655 #endif"
656
657 ac_header_c_list=
658 ac_unique_file="src/framing.c"
659 ac_subst_vars='am__EXEEXT_FALSE
660 am__EXEEXT_TRUE
661 LTLIBOBJS
662 PROFILE
663 DEBUG
664 OPT
665 USIZE64
666 SIZE64
667 USIZE32
668 SIZE32
669 USIZE16
670 SIZE16
671 INCLUDE_SYS_TYPES_H
672 INCLUDE_STDINT_H
673 INCLUDE_INTTYPES_H
674 LIBTOOL_DEPS
675 VALGRIND
676 TEST_ENV
677 LIBOBJS
678 DISABLE_CRC_FALSE
679 DISABLE_CRC_TRUE
680 LIB_AGE
681 LIB_REVISION
682 LIB_CURRENT
683 MAINT
684 MAINTAINER_MODE_FALSE
685 MAINTAINER_MODE_TRUE
686 AM_BACKSLASH
687 AM_DEFAULT_VERBOSITY
688 AM_DEFAULT_V
689 AM_V
690 CSCOPE
691 ETAGS
692 CTAGS
693 am__fastdepCC_FALSE
694 am__fastdepCC_TRUE
695 CCDEPMODE
696 am__nodep
697 AMDEPBACKSLASH
698 AMDEP_FALSE
699 AMDEP_TRUE
700 am__include
701 DEPDIR
702 am__untar
703 am__tar
704 AMTAR
705 am__leading_dot
706 SET_MAKE
707 mkdir_p
708 MKDIR_P
709 INSTALL_STRIP_PROGRAM
710 install_sh
711 MAKEINFO
712 AUTOHEADER
713 AUTOMAKE
714 AUTOCONF
715 ACLOCAL
716 VERSION
717 PACKAGE
718 CYGPATH_W
719 am__isrc
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 LT_SYS_LIBRARY_PATH
724 OTOOL64
725 OTOOL
726 LIPO
727 NMEDIT
728 DSYMUTIL
729 MANIFEST_TOOL
730 AWK
731 RANLIB
732 STRIP
733 ac_ct_AR
734 AR
735 DLLTOOL
736 OBJDUMP
737 FILECMD
738 LN_S
739 NM
740 ac_ct_DUMPBIN
741 DUMPBIN
742 LD
743 FGREP
744 EGREP
745 GREP
746 SED
747 OBJEXT
748 EXEEXT
749 ac_ct_CC
750 CPPFLAGS
751 LDFLAGS
752 CFLAGS
753 CC
754 host_os
755 host_vendor
756 host_cpu
757 host
758 build_os
759 build_vendor
760 build_cpu
761 build
762 LIBTOOL
763 target_alias
764 host_alias
765 build_alias
766 LIBS
767 ECHO_T
768 ECHO_N
769 ECHO_C
770 DEFS
771 mandir
772 localedir
773 libdir
774 psdir
775 pdfdir
776 dvidir
777 htmldir
778 infodir
779 docdir
780 oldincludedir
781 includedir
782 runstatedir
783 localstatedir
784 sharedstatedir
785 sysconfdir
786 datadir
787 datarootdir
788 libexecdir
789 sbindir
790 bindir
791 program_transform_name
792 prefix
793 exec_prefix
794 PACKAGE_URL
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL
802 am__quote'
803 ac_subst_files=''
804 ac_user_opts='
805 enable_option_checking
806 enable_shared
807 enable_static
808 with_pic
809 enable_fast_install
810 with_aix_soname
811 with_gnu_ld
812 with_sysroot
813 enable_libtool_lock
814 enable_dependency_tracking
815 enable_silent_rules
816 enable_maintainer_mode
817 enable_crc
818 enable_gcc_sanitizers
819 enable_valgrind_testing
820 '
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
824 CC
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
829 LT_SYS_LIBRARY_PATH'
830
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 runstatedir='${localstatedir}/run'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
890 fi
891
892 case $ac_option in
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
896 esac
897
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
906
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
921
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
926
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: \`$ac_useropt'"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
959
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: \`$ac_useropt'"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
995
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1000
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1030
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1047
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1104
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
1119 -runstatedir | --runstatedir | --runstatedi | --runstated \
1120 | --runstate | --runstat | --runsta | --runst | --runs \
1121 | --run | --ru | --r)
1122 ac_prev=runstatedir ;;
1123 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1124 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1125 | --run=* | --ru=* | --r=*)
1126 runstatedir=$ac_optarg ;;
1127
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1133
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1144
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1149
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1154
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1161
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1166
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1169
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1172
1173 -with-* | --with-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: \`$ac_useropt'"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
1188
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: \`$ac_useropt'"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
1204
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1208
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1215
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1222
1223 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1225 ;;
1226
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1236
1237 *)
1238 # FIXME: should be removed in autoconf 3.0.
1239 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243 ;;
1244
1245 esac
1246 done
1247
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error $? "missing argument to $ac_option"
1251 fi
1252
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 esac
1259 fi
1260
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir runstatedir
1266 do
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
1275 case $ac_val in
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 esac
1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1281
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1288
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1295 fi
1296 fi
1297
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301 test "$silent" = yes && exec 6>/dev/null
1302
1303
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $? "pwd does not report name of working directory"
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 printf "%s\n" X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\).*/{
1335 s//\1/
1336 q
1337 }
1338 s/.*/./; q'`
1339 srcdir=$ac_confdir
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 srcdir=..
1342 fi
1343 else
1344 ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353 pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378 \`configure' configures libogg 1.3.6 to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/libogg]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1432 _ACEOF
1433
1434 cat <<\_ACEOF
1435
1436 Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440
1441 System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive ) echo "Configuration of libogg 1.3.6:";;
1450 esac
1451 cat <<\_ACEOF
1452
1453 Optional Features:
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-static[=PKGS] build static libraries [default=yes]
1459 --enable-fast-install[=PKGS]
1460 optimize for fast installation [default=yes]
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --enable-dependency-tracking
1463 do not reject slow dependency extractors
1464 --disable-dependency-tracking
1465 speeds up one-time build
1466 --enable-silent-rules less verbose build output (undo: "make V=1")
1467 --disable-silent-rules verbose build output (undo: "make V=0")
1468 --disable-maintainer-mode
1469 disable make rules and dependencies not useful (and
1470 sometimes confusing) to the casual installer
1471 --disable-crc Disable CRC in the demuxer
1472 --enable-gcc-sanitizers Enable GCC sanitizers
1473 --enable-valgrind-testing
1474 enable running of tests inside Valgrind (default
1475 disabled)
1476
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1481 both]
1482 --with-aix-soname=aix|svr4|both
1483 shared library versioning (aka "SONAME") variant to
1484 provide on AIX, [default=aix].
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1487 compiler's sysroot if not specified).
1488
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 LT_SYS_LIBRARY_PATH
1498 User-defined run-time library search path.
1499
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1502
1503 Report bugs to the package provider.
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" ||
1512 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513 continue
1514 ac_builddir=.
1515
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *)
1519 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1531
1532 case $srcdir in
1533 .) # We are building in place.
1534 ac_srcdir=.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1541 *) # Relative name.
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for configure.gnu first; this name is used for a wrapper for
1550 # Metaconfig's "Configure" on case-insensitive file systems.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1557 else
1558 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1561 done
1562 fi
1563
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566 cat <<\_ACEOF
1567 libogg configure 1.3.6
1568 generated by GNU Autoconf 2.71
1569
1570 Copyright (C) 2021 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574 exit
1575 fi
1576
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1580
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext conftest.beam
1588 if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 printf "%s\n" "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext
1607 then :
1608 ac_retval=0
1609 else $as_nop
1610 printf "%s\n" "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1
1614 fi
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1617
1618 } # ac_fn_c_try_compile
1619
1620 # ac_fn_c_try_link LINENO
1621 # -----------------------
1622 # Try to link conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_link ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1627 if { { ac_try="$ac_link"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 printf "%s\n" "$ac_try_echo"; } >&5
1634 (eval "$ac_link") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest$ac_exeext && {
1646 test "$cross_compiling" = yes ||
1647 test -x conftest$ac_exeext
1648 }
1649 then :
1650 ac_retval=0
1651 else $as_nop
1652 printf "%s\n" "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655 ac_retval=1
1656 fi
1657 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1658 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1659 # interfere with the next link command; also delete a directory that is
1660 # left behind by Apple's compiler. We do this before executing the actions.
1661 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_link
1666
1667 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1668 # -------------------------------------------------------
1669 # Tests whether HEADER exists and can be compiled using the include files in
1670 # INCLUDES, setting the cache variable VAR accordingly.
1671 ac_fn_c_check_header_compile ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 printf %s "checking for $2... " >&6; }
1676 if eval test \${$3+y}
1677 then :
1678 printf %s "(cached) " >&6
1679 else $as_nop
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1682 $4
1683 #include <$2>
1684 _ACEOF
1685 if ac_fn_c_try_compile "$LINENO"
1686 then :
1687 eval "$3=yes"
1688 else $as_nop
1689 eval "$3=no"
1690 fi
1691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1692 fi
1693 eval ac_res=\$$3
1694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 printf "%s\n" "$ac_res" >&6; }
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697
1698 } # ac_fn_c_check_header_compile
1699
1700 # ac_fn_c_check_func LINENO FUNC VAR
1701 # ----------------------------------
1702 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1703 ac_fn_c_check_func ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 printf %s "checking for $2... " >&6; }
1708 if eval test \${$3+y}
1709 then :
1710 printf %s "(cached) " >&6
1711 else $as_nop
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1714 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1716 #define $2 innocuous_$2
1717
1718 /* System header to define __stub macros and hopefully few prototypes,
1719 which can conflict with char $2 (); below. */
1720
1721 #include <limits.h>
1722 #undef $2
1723
1724 /* Override any GCC internal prototype to avoid an error.
1725 Use char because int might match the return type of a GCC
1726 builtin and then its argument prototype would still apply. */
1727 #ifdef __cplusplus
1728 extern "C"
1729 #endif
1730 char $2 ();
1731 /* The GNU C library defines this for functions which it implements
1732 to always fail with ENOSYS. Some functions are actually named
1733 something starting with __ and the normal name is an alias. */
1734 #if defined __stub_$2 || defined __stub___$2
1735 choke me
1736 #endif
1737
1738 int
1739 main (void)
1740 {
1741 return $2 ();
1742 ;
1743 return 0;
1744 }
1745 _ACEOF
1746 if ac_fn_c_try_link "$LINENO"
1747 then :
1748 eval "$3=yes"
1749 else $as_nop
1750 eval "$3=no"
1751 fi
1752 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1753 conftest$ac_exeext conftest.$ac_ext
1754 fi
1755 eval ac_res=\$$3
1756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 printf "%s\n" "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
1760 } # ac_fn_c_check_func
1761
1762 # ac_fn_c_try_run LINENO
1763 # ----------------------
1764 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1765 # executables *can* be run.
1766 ac_fn_c_try_run ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_link"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 printf "%s\n" "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>&5
1777 ac_status=$?
1778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780 { { case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 printf "%s\n" "$ac_try_echo"; } >&5
1786 (eval "$ac_try") 2>&5
1787 ac_status=$?
1788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; }; }
1790 then :
1791 ac_retval=0
1792 else $as_nop
1793 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1794 printf "%s\n" "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=$ac_status
1798 fi
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1802
1803 } # ac_fn_c_try_run
1804
1805 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1806 # --------------------------------------------
1807 # Tries to find the compile-time value of EXPR in a program that includes
1808 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1809 # computed
1810 ac_fn_c_compute_int ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if test "$cross_compiling" = yes; then
1814 # Depending upon the size, compute the lo and hi bounds.
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 $4
1818 int
1819 main (void)
1820 {
1821 static int test_array [1 - 2 * !(($2) >= 0)];
1822 test_array [0] = 0;
1823 return test_array [0];
1824
1825 ;
1826 return 0;
1827 }
1828 _ACEOF
1829 if ac_fn_c_try_compile "$LINENO"
1830 then :
1831 ac_lo=0 ac_mid=0
1832 while :; do
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1835 $4
1836 int
1837 main (void)
1838 {
1839 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1840 test_array [0] = 0;
1841 return test_array [0];
1842
1843 ;
1844 return 0;
1845 }
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"
1848 then :
1849 ac_hi=$ac_mid; break
1850 else $as_nop
1851 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1852 if test $ac_lo -le $ac_mid; then
1853 ac_lo= ac_hi=
1854 break
1855 fi
1856 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1857 fi
1858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1859 done
1860 else $as_nop
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1863 $4
1864 int
1865 main (void)
1866 {
1867 static int test_array [1 - 2 * !(($2) < 0)];
1868 test_array [0] = 0;
1869 return test_array [0];
1870
1871 ;
1872 return 0;
1873 }
1874 _ACEOF
1875 if ac_fn_c_try_compile "$LINENO"
1876 then :
1877 ac_hi=-1 ac_mid=-1
1878 while :; do
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 $4
1882 int
1883 main (void)
1884 {
1885 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1886 test_array [0] = 0;
1887 return test_array [0];
1888
1889 ;
1890 return 0;
1891 }
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"
1894 then :
1895 ac_lo=$ac_mid; break
1896 else $as_nop
1897 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1898 if test $ac_mid -le $ac_hi; then
1899 ac_lo= ac_hi=
1900 break
1901 fi
1902 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1903 fi
1904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1905 done
1906 else $as_nop
1907 ac_lo= ac_hi=
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1912 # Binary search between lo and hi bounds.
1913 while test "x$ac_lo" != "x$ac_hi"; do
1914 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1917 $4
1918 int
1919 main (void)
1920 {
1921 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1922 test_array [0] = 0;
1923 return test_array [0];
1924
1925 ;
1926 return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"
1930 then :
1931 ac_hi=$ac_mid
1932 else $as_nop
1933 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1936 done
1937 case $ac_lo in #((
1938 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1939 '') ac_retval=1 ;;
1940 esac
1941 else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 $4
1945 static long int longval (void) { return $2; }
1946 static unsigned long int ulongval (void) { return $2; }
1947 #include <stdio.h>
1948 #include <stdlib.h>
1949 int
1950 main (void)
1951 {
1952
1953 FILE *f = fopen ("conftest.val", "w");
1954 if (! f)
1955 return 1;
1956 if (($2) < 0)
1957 {
1958 long int i = longval ();
1959 if (i != ($2))
1960 return 1;
1961 fprintf (f, "%ld", i);
1962 }
1963 else
1964 {
1965 unsigned long int i = ulongval ();
1966 if (i != ($2))
1967 return 1;
1968 fprintf (f, "%lu", i);
1969 }
1970 /* Do not output a trailing newline, as this causes \r\n confusion
1971 on some platforms. */
1972 return ferror (f) || fclose (f) != 0;
1973
1974 ;
1975 return 0;
1976 }
1977 _ACEOF
1978 if ac_fn_c_try_run "$LINENO"
1979 then :
1980 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1981 else $as_nop
1982 ac_retval=1
1983 fi
1984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1985 conftest.$ac_objext conftest.beam conftest.$ac_ext
1986 rm -f conftest.val
1987
1988 fi
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 as_fn_set_status $ac_retval
1991
1992 } # ac_fn_c_compute_int
1993 ac_configure_args_raw=
1994 for ac_arg
1995 do
1996 case $ac_arg in
1997 *\'*)
1998 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1999 esac
2000 as_fn_append ac_configure_args_raw " '$ac_arg'"
2001 done
2002
2003 case $ac_configure_args_raw in
2004 *$as_nl*)
2005 ac_safe_unquote= ;;
2006 *)
2007 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2008 ac_unsafe_a="$ac_unsafe_z#~"
2009 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2010 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2011 esac
2012
2013 cat >config.log <<_ACEOF
2014 This file contains any messages produced by compilers while
2015 running configure, to aid debugging if configure makes a mistake.
2016
2017 It was created by libogg $as_me 1.3.6, which was
2018 generated by GNU Autoconf 2.71. Invocation command line was
2019
2020 $ $0$ac_configure_args_raw
2021
2022 _ACEOF
2023 exec 5>>config.log
2024 {
2025 cat <<_ASUNAME
2026 ## --------- ##
2027 ## Platform. ##
2028 ## --------- ##
2029
2030 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2031 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2032 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2033 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2034 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2035
2036 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2037 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2038
2039 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2040 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2041 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2042 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2043 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2044 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2045 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2046
2047 _ASUNAME
2048
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2051 do
2052 IFS=$as_save_IFS
2053 case $as_dir in #(((
2054 '') as_dir=./ ;;
2055 */) ;;
2056 *) as_dir=$as_dir/ ;;
2057 esac
2058 printf "%s\n" "PATH: $as_dir"
2059 done
2060 IFS=$as_save_IFS
2061
2062 } >&5
2063
2064 cat >&5 <<_ACEOF
2065
2066
2067 ## ----------- ##
2068 ## Core tests. ##
2069 ## ----------- ##
2070
2071 _ACEOF
2072
2073
2074 # Keep a trace of the command line.
2075 # Strip out --no-create and --no-recursion so they do not pile up.
2076 # Strip out --silent because we don't want to record it for future runs.
2077 # Also quote any args containing shell meta-characters.
2078 # Make two passes to allow for proper duplicate-argument suppression.
2079 ac_configure_args=
2080 ac_configure_args0=
2081 ac_configure_args1=
2082 ac_must_keep_next=false
2083 for ac_pass in 1 2
2084 do
2085 for ac_arg
2086 do
2087 case $ac_arg in
2088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2090 | -silent | --silent | --silen | --sile | --sil)
2091 continue ;;
2092 *\'*)
2093 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2094 esac
2095 case $ac_pass in
2096 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2097 2)
2098 as_fn_append ac_configure_args1 " '$ac_arg'"
2099 if test $ac_must_keep_next = true; then
2100 ac_must_keep_next=false # Got value, back to normal.
2101 else
2102 case $ac_arg in
2103 *=* | --config-cache | -C | -disable-* | --disable-* \
2104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2106 | -with-* | --with-* | -without-* | --without-* | --x)
2107 case "$ac_configure_args0 " in
2108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2109 esac
2110 ;;
2111 -* ) ac_must_keep_next=true ;;
2112 esac
2113 fi
2114 as_fn_append ac_configure_args " '$ac_arg'"
2115 ;;
2116 esac
2117 done
2118 done
2119 { ac_configure_args0=; unset ac_configure_args0;}
2120 { ac_configure_args1=; unset ac_configure_args1;}
2121
2122 # When interrupted or exit'd, cleanup temporary files, and complete
2123 # config.log. We remove comments because anyway the quotes in there
2124 # would cause problems or look ugly.
2125 # WARNING: Use '\'' to represent an apostrophe within the trap.
2126 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2127 trap 'exit_status=$?
2128 # Sanitize IFS.
2129 IFS=" "" $as_nl"
2130 # Save into config.log some information that might help in debugging.
2131 {
2132 echo
2133
2134 printf "%s\n" "## ---------------- ##
2135 ## Cache variables. ##
2136 ## ---------------- ##"
2137 echo
2138 # The following way of writing the cache mishandles newlines in values,
2139 (
2140 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2141 eval ac_val=\$$ac_var
2142 case $ac_val in #(
2143 *${as_nl}*)
2144 case $ac_var in #(
2145 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2146 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2147 esac
2148 case $ac_var in #(
2149 _ | IFS | as_nl) ;; #(
2150 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2151 *) { eval $ac_var=; unset $ac_var;} ;;
2152 esac ;;
2153 esac
2154 done
2155 (set) 2>&1 |
2156 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2157 *${as_nl}ac_space=\ *)
2158 sed -n \
2159 "s/'\''/'\''\\\\'\'''\''/g;
2160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2161 ;; #(
2162 *)
2163 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2164 ;;
2165 esac |
2166 sort
2167 )
2168 echo
2169
2170 printf "%s\n" "## ----------------- ##
2171 ## Output variables. ##
2172 ## ----------------- ##"
2173 echo
2174 for ac_var in $ac_subst_vars
2175 do
2176 eval ac_val=\$$ac_var
2177 case $ac_val in
2178 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179 esac
2180 printf "%s\n" "$ac_var='\''$ac_val'\''"
2181 done | sort
2182 echo
2183
2184 if test -n "$ac_subst_files"; then
2185 printf "%s\n" "## ------------------- ##
2186 ## File substitutions. ##
2187 ## ------------------- ##"
2188 echo
2189 for ac_var in $ac_subst_files
2190 do
2191 eval ac_val=\$$ac_var
2192 case $ac_val in
2193 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2194 esac
2195 printf "%s\n" "$ac_var='\''$ac_val'\''"
2196 done | sort
2197 echo
2198 fi
2199
2200 if test -s confdefs.h; then
2201 printf "%s\n" "## ----------- ##
2202 ## confdefs.h. ##
2203 ## ----------- ##"
2204 echo
2205 cat confdefs.h
2206 echo
2207 fi
2208 test "$ac_signal" != 0 &&
2209 printf "%s\n" "$as_me: caught signal $ac_signal"
2210 printf "%s\n" "$as_me: exit $exit_status"
2211 } >&5
2212 rm -f core *.core core.conftest.* &&
2213 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2214 exit $exit_status
2215 ' 0
2216 for ac_signal in 1 2 13 15; do
2217 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2218 done
2219 ac_signal=0
2220
2221 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2222 rm -f -r conftest* confdefs.h
2223
2224 printf "%s\n" "/* confdefs.h */" > confdefs.h
2225
2226 # Predefined preprocessor variables.
2227
2228 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2229
2230 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2231
2232 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2233
2234 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2235
2236 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2237
2238 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2239
2240
2241 # Let the site file select an alternate cache file if it wants to.
2242 # Prefer an explicitly selected file to automatically selected ones.
2243 if test -n "$CONFIG_SITE"; then
2244 ac_site_files="$CONFIG_SITE"
2245 elif test "x$prefix" != xNONE; then
2246 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2247 else
2248 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2249 fi
2250
2251 for ac_site_file in $ac_site_files
2252 do
2253 case $ac_site_file in #(
2254 */*) :
2255 ;; #(
2256 *) :
2257 ac_site_file=./$ac_site_file ;;
2258 esac
2259 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2261 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2262 sed 's/^/| /' "$ac_site_file" >&5
2263 . "$ac_site_file" \
2264 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2265 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2266 as_fn_error $? "failed to load site script $ac_site_file
2267 See \`config.log' for more details" "$LINENO" 5; }
2268 fi
2269 done
2270
2271 if test -r "$cache_file"; then
2272 # Some versions of bash will fail to source /dev/null (special files
2273 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2274 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2276 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2277 case $cache_file in
2278 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2279 *) . "./$cache_file";;
2280 esac
2281 fi
2282 else
2283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2284 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2285 >$cache_file
2286 fi
2287
2288 # Test code for whether the C compiler supports C89 (global declarations)
2289 ac_c_conftest_c89_globals='
2290 /* Does the compiler advertise C89 conformance?
2291 Do not test the value of __STDC__, because some compilers set it to 0
2292 while being otherwise adequately conformant. */
2293 #if !defined __STDC__
2294 # error "Compiler does not advertise C89 conformance"
2295 #endif
2296
2297 #include <stddef.h>
2298 #include <stdarg.h>
2299 struct stat;
2300 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2301 struct buf { int x; };
2302 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2303 static char *e (p, i)
2304 char **p;
2305 int i;
2306 {
2307 return p[i];
2308 }
2309 static char *f (char * (*g) (char **, int), char **p, ...)
2310 {
2311 char *s;
2312 va_list v;
2313 va_start (v,p);
2314 s = g (p, va_arg (v,int));
2315 va_end (v);
2316 return s;
2317 }
2318
2319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2320 function prototypes and stuff, but not \xHH hex character constants.
2321 These do not provoke an error unfortunately, instead are silently treated
2322 as an "x". The following induces an error, until -std is added to get
2323 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2324 array size at least. It is necessary to write \x00 == 0 to get something
2325 that is true only with -std. */
2326 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2327
2328 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2329 inside strings and character constants. */
2330 #define FOO(x) '\''x'\''
2331 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2332
2333 int test (int i, double x);
2334 struct s1 {int (*f) (int a);};
2335 struct s2 {int (*f) (double a);};
2336 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2337 int, int);'
2338
2339 # Test code for whether the C compiler supports C89 (body of main).
2340 ac_c_conftest_c89_main='
2341 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2342 '
2343
2344 # Test code for whether the C compiler supports C99 (global declarations)
2345 ac_c_conftest_c99_globals='
2346 // Does the compiler advertise C99 conformance?
2347 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2348 # error "Compiler does not advertise C99 conformance"
2349 #endif
2350
2351 #include <stdbool.h>
2352 extern int puts (const char *);
2353 extern int printf (const char *, ...);
2354 extern int dprintf (int, const char *, ...);
2355 extern void *malloc (size_t);
2356
2357 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2358 // dprintf is used instead of fprintf to avoid needing to declare
2359 // FILE and stderr.
2360 #define debug(...) dprintf (2, __VA_ARGS__)
2361 #define showlist(...) puts (#__VA_ARGS__)
2362 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2363 static void
2364 test_varargs_macros (void)
2365 {
2366 int x = 1234;
2367 int y = 5678;
2368 debug ("Flag");
2369 debug ("X = %d\n", x);
2370 showlist (The first, second, and third items.);
2371 report (x>y, "x is %d but y is %d", x, y);
2372 }
2373
2374 // Check long long types.
2375 #define BIG64 18446744073709551615ull
2376 #define BIG32 4294967295ul
2377 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2378 #if !BIG_OK
2379 #error "your preprocessor is broken"
2380 #endif
2381 #if BIG_OK
2382 #else
2383 #error "your preprocessor is broken"
2384 #endif
2385 static long long int bignum = -9223372036854775807LL;
2386 static unsigned long long int ubignum = BIG64;
2387
2388 struct incomplete_array
2389 {
2390 int datasize;
2391 double data[];
2392 };
2393
2394 struct named_init {
2395 int number;
2396 const wchar_t *name;
2397 double average;
2398 };
2399
2400 typedef const char *ccp;
2401
2402 static inline int
2403 test_restrict (ccp restrict text)
2404 {
2405 // See if C++-style comments work.
2406 // Iterate through items via the restricted pointer.
2407 // Also check for declarations in for loops.
2408 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2409 continue;
2410 return 0;
2411 }
2412
2413 // Check varargs and va_copy.
2414 static bool
2415 test_varargs (const char *format, ...)
2416 {
2417 va_list args;
2418 va_start (args, format);
2419 va_list args_copy;
2420 va_copy (args_copy, args);
2421
2422 const char *str = "";
2423 int number = 0;
2424 float fnumber = 0;
2425
2426 while (*format)
2427 {
2428 switch (*format++)
2429 {
2430 case '\''s'\'': // string
2431 str = va_arg (args_copy, const char *);
2432 break;
2433 case '\''d'\'': // int
2434 number = va_arg (args_copy, int);
2435 break;
2436 case '\''f'\'': // float
2437 fnumber = va_arg (args_copy, double);
2438 break;
2439 default:
2440 break;
2441 }
2442 }
2443 va_end (args_copy);
2444 va_end (args);
2445
2446 return *str && number && fnumber;
2447 }
2448 '
2449
2450 # Test code for whether the C compiler supports C99 (body of main).
2451 ac_c_conftest_c99_main='
2452 // Check bool.
2453 _Bool success = false;
2454 success |= (argc != 0);
2455
2456 // Check restrict.
2457 if (test_restrict ("String literal") == 0)
2458 success = true;
2459 char *restrict newvar = "Another string";
2460
2461 // Check varargs.
2462 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2463 test_varargs_macros ();
2464
2465 // Check flexible array members.
2466 struct incomplete_array *ia =
2467 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2468 ia->datasize = 10;
2469 for (int i = 0; i < ia->datasize; ++i)
2470 ia->data[i] = i * 1.234;
2471
2472 // Check named initializers.
2473 struct named_init ni = {
2474 .number = 34,
2475 .name = L"Test wide string",
2476 .average = 543.34343,
2477 };
2478
2479 ni.number = 58;
2480
2481 int dynamic_array[ni.number];
2482 dynamic_array[0] = argv[0][0];
2483 dynamic_array[ni.number - 1] = 543;
2484
2485 // work around unused variable warnings
2486 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2487 || dynamic_array[ni.number - 1] != 543);
2488 '
2489
2490 # Test code for whether the C compiler supports C11 (global declarations)
2491 ac_c_conftest_c11_globals='
2492 // Does the compiler advertise C11 conformance?
2493 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2494 # error "Compiler does not advertise C11 conformance"
2495 #endif
2496
2497 // Check _Alignas.
2498 char _Alignas (double) aligned_as_double;
2499 char _Alignas (0) no_special_alignment;
2500 extern char aligned_as_int;
2501 char _Alignas (0) _Alignas (int) aligned_as_int;
2502
2503 // Check _Alignof.
2504 enum
2505 {
2506 int_alignment = _Alignof (int),
2507 int_array_alignment = _Alignof (int[100]),
2508 char_alignment = _Alignof (char)
2509 };
2510 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2511
2512 // Check _Noreturn.
2513 int _Noreturn does_not_return (void) { for (;;) continue; }
2514
2515 // Check _Static_assert.
2516 struct test_static_assert
2517 {
2518 int x;
2519 _Static_assert (sizeof (int) <= sizeof (long int),
2520 "_Static_assert does not work in struct");
2521 long int y;
2522 };
2523
2524 // Check UTF-8 literals.
2525 #define u8 syntax error!
2526 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2527
2528 // Check duplicate typedefs.
2529 typedef long *long_ptr;
2530 typedef long int *long_ptr;
2531 typedef long_ptr long_ptr;
2532
2533 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2534 struct anonymous
2535 {
2536 union {
2537 struct { int i; int j; };
2538 struct { int k; long int l; } w;
2539 };
2540 int m;
2541 } v1;
2542 '
2543
2544 # Test code for whether the C compiler supports C11 (body of main).
2545 ac_c_conftest_c11_main='
2546 _Static_assert ((offsetof (struct anonymous, i)
2547 == offsetof (struct anonymous, w.k)),
2548 "Anonymous union alignment botch");
2549 v1.i = 2;
2550 v1.w.k = 5;
2551 ok |= v1.i != 5;
2552 '
2553
2554 # Test code for whether the C compiler supports C11 (complete).
2555 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2556 ${ac_c_conftest_c99_globals}
2557 ${ac_c_conftest_c11_globals}
2558
2559 int
2560 main (int argc, char **argv)
2561 {
2562 int ok = 0;
2563 ${ac_c_conftest_c89_main}
2564 ${ac_c_conftest_c99_main}
2565 ${ac_c_conftest_c11_main}
2566 return ok;
2567 }
2568 "
2569
2570 # Test code for whether the C compiler supports C99 (complete).
2571 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2572 ${ac_c_conftest_c99_globals}
2573
2574 int
2575 main (int argc, char **argv)
2576 {
2577 int ok = 0;
2578 ${ac_c_conftest_c89_main}
2579 ${ac_c_conftest_c99_main}
2580 return ok;
2581 }
2582 "
2583
2584 # Test code for whether the C compiler supports C89 (complete).
2585 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2586
2587 int
2588 main (int argc, char **argv)
2589 {
2590 int ok = 0;
2591 ${ac_c_conftest_c89_main}
2592 return ok;
2593 }
2594 "
2595
2596 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2597 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2598 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2599 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2600 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2601 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2602 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2603 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2604 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2605
2606 # Auxiliary files required by this configure script.
2607 ac_aux_files="missing install-sh compile config.guess config.sub ltmain.sh"
2608
2609 # Locations in which to look for auxiliary files.
2610 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2611
2612 # Search for a directory containing all of the required auxiliary files,
2613 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2614 # If we don't find one directory that contains all the files we need,
2615 # we report the set of missing files from the *first* directory in
2616 # $ac_aux_dir_candidates and give up.
2617 ac_missing_aux_files=""
2618 ac_first_candidate=:
2619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 as_found=false
2622 for as_dir in $ac_aux_dir_candidates
2623 do
2624 IFS=$as_save_IFS
2625 case $as_dir in #(((
2626 '') as_dir=./ ;;
2627 */) ;;
2628 *) as_dir=$as_dir/ ;;
2629 esac
2630 as_found=:
2631
2632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2633 ac_aux_dir_found=yes
2634 ac_install_sh=
2635 for ac_aux in $ac_aux_files
2636 do
2637 # As a special case, if "install-sh" is required, that requirement
2638 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2639 # and $ac_install_sh is set appropriately for whichever one is found.
2640 if test x"$ac_aux" = x"install-sh"
2641 then
2642 if test -f "${as_dir}install-sh"; then
2643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2644 ac_install_sh="${as_dir}install-sh -c"
2645 elif test -f "${as_dir}install.sh"; then
2646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2647 ac_install_sh="${as_dir}install.sh -c"
2648 elif test -f "${as_dir}shtool"; then
2649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2650 ac_install_sh="${as_dir}shtool install -c"
2651 else
2652 ac_aux_dir_found=no
2653 if $ac_first_candidate; then
2654 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2655 else
2656 break
2657 fi
2658 fi
2659 else
2660 if test -f "${as_dir}${ac_aux}"; then
2661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2662 else
2663 ac_aux_dir_found=no
2664 if $ac_first_candidate; then
2665 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2666 else
2667 break
2668 fi
2669 fi
2670 fi
2671 done
2672 if test "$ac_aux_dir_found" = yes; then
2673 ac_aux_dir="$as_dir"
2674 break
2675 fi
2676 ac_first_candidate=false
2677
2678 as_found=false
2679 done
2680 IFS=$as_save_IFS
2681 if $as_found
2682 then :
2683
2684 else $as_nop
2685 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2686 fi
2687
2688
2689 # These three variables are undocumented and unsupported,
2690 # and are intended to be withdrawn in a future Autoconf release.
2691 # They can cause serious problems if a builder's source tree is in a directory
2692 # whose full name contains unusual characters.
2693 if test -f "${ac_aux_dir}config.guess"; then
2694 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2695 fi
2696 if test -f "${ac_aux_dir}config.sub"; then
2697 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2698 fi
2699 if test -f "$ac_aux_dir/configure"; then
2700 ac_configure="$SHELL ${ac_aux_dir}configure"
2701 fi
2702
2703 # Check that the precious variables saved in the cache have kept the same
2704 # value.
2705 ac_cache_corrupted=false
2706 for ac_var in $ac_precious_vars; do
2707 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2708 eval ac_new_set=\$ac_env_${ac_var}_set
2709 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2710 eval ac_new_val=\$ac_env_${ac_var}_value
2711 case $ac_old_set,$ac_new_set in
2712 set,)
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2714 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2715 ac_cache_corrupted=: ;;
2716 ,set)
2717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2718 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2719 ac_cache_corrupted=: ;;
2720 ,);;
2721 *)
2722 if test "x$ac_old_val" != "x$ac_new_val"; then
2723 # differences in whitespace do not lead to failure.
2724 ac_old_val_w=`echo x $ac_old_val`
2725 ac_new_val_w=`echo x $ac_new_val`
2726 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2728 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2729 ac_cache_corrupted=:
2730 else
2731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2732 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2733 eval $ac_var=\$ac_old_val
2734 fi
2735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2736 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2738 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2739 fi;;
2740 esac
2741 # Pass precious variables to config.status.
2742 if test "$ac_new_set" = set; then
2743 case $ac_new_val in
2744 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2745 *) ac_arg=$ac_var=$ac_new_val ;;
2746 esac
2747 case " $ac_configure_args " in
2748 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2749 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2750 esac
2751 fi
2752 done
2753 if $ac_cache_corrupted; then
2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2755 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2757 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2758 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2759 and start over" "$LINENO" 5
2760 fi
2761 ## -------------------- ##
2762 ## Main body of script. ##
2763 ## -------------------- ##
2764
2765 ac_ext=c
2766 ac_cpp='$CPP $CPPFLAGS'
2767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770
2771
2772
2773
2774
2775 case `pwd` in
2776 *\ * | *\ *)
2777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2778 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2779 esac
2780
2781
2782
2783 macro_version='2.4.7'
2784 macro_revision='2.4.7'
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799 ltmain=$ac_aux_dir/ltmain.sh
2800
2801
2802
2803 # Make sure we can run config.sub.
2804 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2805 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2806
2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2808 printf %s "checking build system type... " >&6; }
2809 if test ${ac_cv_build+y}
2810 then :
2811 printf %s "(cached) " >&6
2812 else $as_nop
2813 ac_build_alias=$build_alias
2814 test "x$ac_build_alias" = x &&
2815 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2816 test "x$ac_build_alias" = x &&
2817 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2818 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2819 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2820
2821 fi
2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2823 printf "%s\n" "$ac_cv_build" >&6; }
2824 case $ac_cv_build in
2825 *-*-*) ;;
2826 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2827 esac
2828 build=$ac_cv_build
2829 ac_save_IFS=$IFS; IFS='-'
2830 set x $ac_cv_build
2831 shift
2832 build_cpu=$1
2833 build_vendor=$2
2834 shift; shift
2835 # Remember, the first character of IFS is used to create $*,
2836 # except with old shells:
2837 build_os=$*
2838 IFS=$ac_save_IFS
2839 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2840
2841
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2843 printf %s "checking host system type... " >&6; }
2844 if test ${ac_cv_host+y}
2845 then :
2846 printf %s "(cached) " >&6
2847 else $as_nop
2848 if test "x$host_alias" = x; then
2849 ac_cv_host=$ac_cv_build
2850 else
2851 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2852 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2853 fi
2854
2855 fi
2856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2857 printf "%s\n" "$ac_cv_host" >&6; }
2858 case $ac_cv_host in
2859 *-*-*) ;;
2860 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2861 esac
2862 host=$ac_cv_host
2863 ac_save_IFS=$IFS; IFS='-'
2864 set x $ac_cv_host
2865 shift
2866 host_cpu=$1
2867 host_vendor=$2
2868 shift; shift
2869 # Remember, the first character of IFS is used to create $*,
2870 # except with old shells:
2871 host_os=$*
2872 IFS=$ac_save_IFS
2873 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2874
2875
2876 # Backslashify metacharacters that are still active within
2877 # double-quoted strings.
2878 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2879
2880 # Same as above, but do not quote variable references.
2881 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2882
2883 # Sed substitution to delay expansion of an escaped shell variable in a
2884 # double_quote_subst'ed string.
2885 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2886
2887 # Sed substitution to delay expansion of an escaped single quote.
2888 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2889
2890 # Sed substitution to avoid accidental globbing in evaled expressions
2891 no_glob_subst='s/\*/\\\*/g'
2892
2893 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2894 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2895 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2896
2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2898 printf %s "checking how to print strings... " >&6; }
2899 # Test print first, because it will be a builtin if present.
2900 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2901 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2902 ECHO='print -r --'
2903 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2904 ECHO='printf %s\n'
2905 else
2906 # Use this function as a fallback that always works.
2907 func_fallback_echo ()
2908 {
2909 eval 'cat <<_LTECHO_EOF
2910 $1
2911 _LTECHO_EOF'
2912 }
2913 ECHO='func_fallback_echo'
2914 fi
2915
2916 # func_echo_all arg...
2917 # Invoke $ECHO with all args, space-separated.
2918 func_echo_all ()
2919 {
2920 $ECHO ""
2921 }
2922
2923 case $ECHO in
2924 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2925 printf "%s\n" "printf" >&6; } ;;
2926 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2927 printf "%s\n" "print -r" >&6; } ;;
2928 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2929 printf "%s\n" "cat" >&6; } ;;
2930 esac
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954 # Expand $ac_aux_dir to an absolute path.
2955 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2956
2957 ac_ext=c
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 printf %s "checking for $ac_word... " >&6; }
2967 if test ${ac_cv_prog_CC+y}
2968 then :
2969 printf %s "(cached) " >&6
2970 else $as_nop
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977 IFS=$as_save_IFS
2978 case $as_dir in #(((
2979 '') as_dir=./ ;;
2980 */) ;;
2981 *) as_dir=$as_dir/ ;;
2982 esac
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2985 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 CC=$ac_cv_prog_CC
2996 if test -n "$CC"; then
2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998 printf "%s\n" "$CC" >&6; }
2999 else
3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 printf "%s\n" "no" >&6; }
3002 fi
3003
3004
3005 fi
3006 if test -z "$ac_cv_prog_CC"; then
3007 ac_ct_CC=$CC
3008 # Extract the first word of "gcc", so it can be a program name with args.
3009 set dummy gcc; ac_word=$2
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 printf %s "checking for $ac_word... " >&6; }
3012 if test ${ac_cv_prog_ac_ct_CC+y}
3013 then :
3014 printf %s "(cached) " >&6
3015 else $as_nop
3016 if test -n "$ac_ct_CC"; then
3017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022 IFS=$as_save_IFS
3023 case $as_dir in #(((
3024 '') as_dir=./ ;;
3025 */) ;;
3026 *) as_dir=$as_dir/ ;;
3027 esac
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3030 ac_cv_prog_ac_ct_CC="gcc"
3031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3032 break 2
3033 fi
3034 done
3035 done
3036 IFS=$as_save_IFS
3037
3038 fi
3039 fi
3040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3041 if test -n "$ac_ct_CC"; then
3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3043 printf "%s\n" "$ac_ct_CC" >&6; }
3044 else
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 printf "%s\n" "no" >&6; }
3047 fi
3048
3049 if test "x$ac_ct_CC" = x; then
3050 CC=""
3051 else
3052 case $cross_compiling:$ac_tool_warned in
3053 yes:)
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3055 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3056 ac_tool_warned=yes ;;
3057 esac
3058 CC=$ac_ct_CC
3059 fi
3060 else
3061 CC="$ac_cv_prog_CC"
3062 fi
3063
3064 if test -z "$CC"; then
3065 if test -n "$ac_tool_prefix"; then
3066 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3067 set dummy ${ac_tool_prefix}cc; ac_word=$2
3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 printf %s "checking for $ac_word... " >&6; }
3070 if test ${ac_cv_prog_CC+y}
3071 then :
3072 printf %s "(cached) " >&6
3073 else $as_nop
3074 if test -n "$CC"; then
3075 ac_cv_prog_CC="$CC" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080 IFS=$as_save_IFS
3081 case $as_dir in #(((
3082 '') as_dir=./ ;;
3083 */) ;;
3084 *) as_dir=$as_dir/ ;;
3085 esac
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_CC="${ac_tool_prefix}cc"
3089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092 done
3093 done
3094 IFS=$as_save_IFS
3095
3096 fi
3097 fi
3098 CC=$ac_cv_prog_CC
3099 if test -n "$CC"; then
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 printf "%s\n" "$CC" >&6; }
3102 else
3103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 printf "%s\n" "no" >&6; }
3105 fi
3106
3107
3108 fi
3109 fi
3110 if test -z "$CC"; then
3111 # Extract the first word of "cc", so it can be a program name with args.
3112 set dummy cc; ac_word=$2
3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 printf %s "checking for $ac_word... " >&6; }
3115 if test ${ac_cv_prog_CC+y}
3116 then :
3117 printf %s "(cached) " >&6
3118 else $as_nop
3119 if test -n "$CC"; then
3120 ac_cv_prog_CC="$CC" # Let the user override the test.
3121 else
3122 ac_prog_rejected=no
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 for as_dir in $PATH
3125 do
3126 IFS=$as_save_IFS
3127 case $as_dir in #(((
3128 '') as_dir=./ ;;
3129 */) ;;
3130 *) as_dir=$as_dir/ ;;
3131 esac
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3134 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3135 ac_prog_rejected=yes
3136 continue
3137 fi
3138 ac_cv_prog_CC="cc"
3139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142 done
3143 done
3144 IFS=$as_save_IFS
3145
3146 if test $ac_prog_rejected = yes; then
3147 # We found a bogon in the path, so make sure we never use it.
3148 set dummy $ac_cv_prog_CC
3149 shift
3150 if test $# != 0; then
3151 # We chose a different compiler from the bogus one.
3152 # However, it has the same basename, so the bogon will be chosen
3153 # first if we set CC to just the basename; use the full file name.
3154 shift
3155 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3156 fi
3157 fi
3158 fi
3159 fi
3160 CC=$ac_cv_prog_CC
3161 if test -n "$CC"; then
3162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163 printf "%s\n" "$CC" >&6; }
3164 else
3165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 printf "%s\n" "no" >&6; }
3167 fi
3168
3169
3170 fi
3171 if test -z "$CC"; then
3172 if test -n "$ac_tool_prefix"; then
3173 for ac_prog in cl.exe
3174 do
3175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 printf %s "checking for $ac_word... " >&6; }
3179 if test ${ac_cv_prog_CC+y}
3180 then :
3181 printf %s "(cached) " >&6
3182 else $as_nop
3183 if test -n "$CC"; then
3184 ac_cv_prog_CC="$CC" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189 IFS=$as_save_IFS
3190 case $as_dir in #(((
3191 '') as_dir=./ ;;
3192 */) ;;
3193 *) as_dir=$as_dir/ ;;
3194 esac
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 CC=$ac_cv_prog_CC
3208 if test -n "$CC"; then
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210 printf "%s\n" "$CC" >&6; }
3211 else
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 printf "%s\n" "no" >&6; }
3214 fi
3215
3216
3217 test -n "$CC" && break
3218 done
3219 fi
3220 if test -z "$CC"; then
3221 ac_ct_CC=$CC
3222 for ac_prog in cl.exe
3223 do
3224 # Extract the first word of "$ac_prog", so it can be a program name with args.
3225 set dummy $ac_prog; ac_word=$2
3226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 printf %s "checking for $ac_word... " >&6; }
3228 if test ${ac_cv_prog_ac_ct_CC+y}
3229 then :
3230 printf %s "(cached) " >&6
3231 else $as_nop
3232 if test -n "$ac_ct_CC"; then
3233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3234 else
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3237 do
3238 IFS=$as_save_IFS
3239 case $as_dir in #(((
3240 '') as_dir=./ ;;
3241 */) ;;
3242 *) as_dir=$as_dir/ ;;
3243 esac
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3246 ac_cv_prog_ac_ct_CC="$ac_prog"
3247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3248 break 2
3249 fi
3250 done
3251 done
3252 IFS=$as_save_IFS
3253
3254 fi
3255 fi
3256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3257 if test -n "$ac_ct_CC"; then
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3259 printf "%s\n" "$ac_ct_CC" >&6; }
3260 else
3261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 printf "%s\n" "no" >&6; }
3263 fi
3264
3265
3266 test -n "$ac_ct_CC" && break
3267 done
3268
3269 if test "x$ac_ct_CC" = x; then
3270 CC=""
3271 else
3272 case $cross_compiling:$ac_tool_warned in
3273 yes:)
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3275 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3276 ac_tool_warned=yes ;;
3277 esac
3278 CC=$ac_ct_CC
3279 fi
3280 fi
3281
3282 fi
3283 if test -z "$CC"; then
3284 if test -n "$ac_tool_prefix"; then
3285 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3286 set dummy ${ac_tool_prefix}clang; ac_word=$2
3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 printf %s "checking for $ac_word... " >&6; }
3289 if test ${ac_cv_prog_CC+y}
3290 then :
3291 printf %s "(cached) " >&6
3292 else $as_nop
3293 if test -n "$CC"; then
3294 ac_cv_prog_CC="$CC" # Let the user override the test.
3295 else
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299 IFS=$as_save_IFS
3300 case $as_dir in #(((
3301 '') as_dir=./ ;;
3302 */) ;;
3303 *) as_dir=$as_dir/ ;;
3304 esac
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3307 ac_cv_prog_CC="${ac_tool_prefix}clang"
3308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311 done
3312 done
3313 IFS=$as_save_IFS
3314
3315 fi
3316 fi
3317 CC=$ac_cv_prog_CC
3318 if test -n "$CC"; then
3319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320 printf "%s\n" "$CC" >&6; }
3321 else
3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 printf "%s\n" "no" >&6; }
3324 fi
3325
3326
3327 fi
3328 if test -z "$ac_cv_prog_CC"; then
3329 ac_ct_CC=$CC
3330 # Extract the first word of "clang", so it can be a program name with args.
3331 set dummy clang; ac_word=$2
3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 printf %s "checking for $ac_word... " >&6; }
3334 if test ${ac_cv_prog_ac_ct_CC+y}
3335 then :
3336 printf %s "(cached) " >&6
3337 else $as_nop
3338 if test -n "$ac_ct_CC"; then
3339 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344 IFS=$as_save_IFS
3345 case $as_dir in #(((
3346 '') as_dir=./ ;;
3347 */) ;;
3348 *) as_dir=$as_dir/ ;;
3349 esac
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_ac_ct_CC="clang"
3353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3354 break 2
3355 fi
3356 done
3357 done
3358 IFS=$as_save_IFS
3359
3360 fi
3361 fi
3362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3363 if test -n "$ac_ct_CC"; then
3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3365 printf "%s\n" "$ac_ct_CC" >&6; }
3366 else
3367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 printf "%s\n" "no" >&6; }
3369 fi
3370
3371 if test "x$ac_ct_CC" = x; then
3372 CC=""
3373 else
3374 case $cross_compiling:$ac_tool_warned in
3375 yes:)
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3377 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3378 ac_tool_warned=yes ;;
3379 esac
3380 CC=$ac_ct_CC
3381 fi
3382 else
3383 CC="$ac_cv_prog_CC"
3384 fi
3385
3386 fi
3387
3388
3389 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error $? "no acceptable C compiler found in \$PATH
3392 See \`config.log' for more details" "$LINENO" 5; }
3393
3394 # Provide some information about the compiler.
3395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3396 set X $ac_compile
3397 ac_compiler=$2
3398 for ac_option in --version -v -V -qversion -version; do
3399 { { ac_try="$ac_compiler $ac_option >&5"
3400 case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 printf "%s\n" "$ac_try_echo"; } >&5
3406 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3407 ac_status=$?
3408 if test -s conftest.err; then
3409 sed '10a\
3410 ... rest of stderr output deleted ...
3411 10q' conftest.err >conftest.er1
3412 cat conftest.er1 >&5
3413 fi
3414 rm -f conftest.er1 conftest.err
3415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3416 test $ac_status = 0; }
3417 done
3418
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421
3422 int
3423 main (void)
3424 {
3425
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 ac_clean_files_save=$ac_clean_files
3431 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3432 # Try to create an executable without -o first, disregard a.out.
3433 # It will help us diagnose broken compilers, and finding out an intuition
3434 # of exeext.
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3436 printf %s "checking whether the C compiler works... " >&6; }
3437 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3438
3439 # The possible output files:
3440 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3441
3442 ac_rmfiles=
3443 for ac_file in $ac_files
3444 do
3445 case $ac_file in
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3447 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3448 esac
3449 done
3450 rm -f $ac_rmfiles
3451
3452 if { { ac_try="$ac_link_default"
3453 case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 printf "%s\n" "$ac_try_echo"; } >&5
3459 (eval "$ac_link_default") 2>&5
3460 ac_status=$?
3461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }
3463 then :
3464 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3465 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3466 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3467 # so that the user can short-circuit this test for compilers unknown to
3468 # Autoconf.
3469 for ac_file in $ac_files ''
3470 do
3471 test -f "$ac_file" || continue
3472 case $ac_file in
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3474 ;;
3475 [ab].out )
3476 # We found the default executable, but exeext='' is most
3477 # certainly right.
3478 break;;
3479 *.* )
3480 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3481 then :; else
3482 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3483 fi
3484 # We set ac_cv_exeext here because the later test for it is not
3485 # safe: cross compilers may not add the suffix if given an `-o'
3486 # argument, so we may need to know it at that point already.
3487 # Even if this section looks crufty: it has the advantage of
3488 # actually working.
3489 break;;
3490 * )
3491 break;;
3492 esac
3493 done
3494 test "$ac_cv_exeext" = no && ac_cv_exeext=
3495
3496 else $as_nop
3497 ac_file=''
3498 fi
3499 if test -z "$ac_file"
3500 then :
3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 printf "%s\n" "no" >&6; }
3503 printf "%s\n" "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3508 as_fn_error 77 "C compiler cannot create executables
3509 See \`config.log' for more details" "$LINENO" 5; }
3510 else $as_nop
3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3512 printf "%s\n" "yes" >&6; }
3513 fi
3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3515 printf %s "checking for C compiler default output file name... " >&6; }
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3517 printf "%s\n" "$ac_file" >&6; }
3518 ac_exeext=$ac_cv_exeext
3519
3520 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3521 ac_clean_files=$ac_clean_files_save
3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3523 printf %s "checking for suffix of executables... " >&6; }
3524 if { { ac_try="$ac_link"
3525 case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530 printf "%s\n" "$ac_try_echo"; } >&5
3531 (eval "$ac_link") 2>&5
3532 ac_status=$?
3533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }
3535 then :
3536 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3537 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3538 # work properly (i.e., refer to `conftest.exe'), while it won't with
3539 # `rm'.
3540 for ac_file in conftest.exe conftest conftest.*; do
3541 test -f "$ac_file" || continue
3542 case $ac_file in
3543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3544 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3545 break;;
3546 * ) break;;
3547 esac
3548 done
3549 else $as_nop
3550 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3553 See \`config.log' for more details" "$LINENO" 5; }
3554 fi
3555 rm -f conftest conftest$ac_cv_exeext
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3557 printf "%s\n" "$ac_cv_exeext" >&6; }
3558
3559 rm -f conftest.$ac_ext
3560 EXEEXT=$ac_cv_exeext
3561 ac_exeext=$EXEEXT
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3564 #include <stdio.h>
3565 int
3566 main (void)
3567 {
3568 FILE *f = fopen ("conftest.out", "w");
3569 return ferror (f) || fclose (f) != 0;
3570
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 ac_clean_files="$ac_clean_files conftest.out"
3576 # Check that the compiler produces executables we can run. If not, either
3577 # the compiler is broken, or we cross compile.
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3579 printf %s "checking whether we are cross compiling... " >&6; }
3580 if test "$cross_compiling" != yes; then
3581 { { ac_try="$ac_link"
3582 case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585 esac
3586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587 printf "%s\n" "$ac_try_echo"; } >&5
3588 (eval "$ac_link") 2>&5
3589 ac_status=$?
3590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }
3592 if { ac_try='./conftest$ac_cv_exeext'
3593 { { case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598 printf "%s\n" "$ac_try_echo"; } >&5
3599 (eval "$ac_try") 2>&5
3600 ac_status=$?
3601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602 test $ac_status = 0; }; }; then
3603 cross_compiling=no
3604 else
3605 if test "$cross_compiling" = maybe; then
3606 cross_compiling=yes
3607 else
3608 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3610 as_fn_error 77 "cannot run C compiled programs.
3611 If you meant to cross compile, use \`--host'.
3612 See \`config.log' for more details" "$LINENO" 5; }
3613 fi
3614 fi
3615 fi
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3617 printf "%s\n" "$cross_compiling" >&6; }
3618
3619 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3620 ac_clean_files=$ac_clean_files_save
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3622 printf %s "checking for suffix of object files... " >&6; }
3623 if test ${ac_cv_objext+y}
3624 then :
3625 printf %s "(cached) " >&6
3626 else $as_nop
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629
3630 int
3631 main (void)
3632 {
3633
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 rm -f conftest.o conftest.obj
3639 if { { ac_try="$ac_compile"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 printf "%s\n" "$ac_try_echo"; } >&5
3646 (eval "$ac_compile") 2>&5
3647 ac_status=$?
3648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }
3650 then :
3651 for ac_file in conftest.o conftest.obj conftest.*; do
3652 test -f "$ac_file" || continue;
3653 case $ac_file in
3654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3655 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3656 break;;
3657 esac
3658 done
3659 else $as_nop
3660 printf "%s\n" "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3662
3663 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3665 as_fn_error $? "cannot compute suffix of object files: cannot compile
3666 See \`config.log' for more details" "$LINENO" 5; }
3667 fi
3668 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3669 fi
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3671 printf "%s\n" "$ac_cv_objext" >&6; }
3672 OBJEXT=$ac_cv_objext
3673 ac_objext=$OBJEXT
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3675 printf %s "checking whether the compiler supports GNU C... " >&6; }
3676 if test ${ac_cv_c_compiler_gnu+y}
3677 then :
3678 printf %s "(cached) " >&6
3679 else $as_nop
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682
3683 int
3684 main (void)
3685 {
3686 #ifndef __GNUC__
3687 choke me
3688 #endif
3689
3690 ;
3691 return 0;
3692 }
3693 _ACEOF
3694 if ac_fn_c_try_compile "$LINENO"
3695 then :
3696 ac_compiler_gnu=yes
3697 else $as_nop
3698 ac_compiler_gnu=no
3699 fi
3700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3701 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3702
3703 fi
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3705 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707
3708 if test $ac_compiler_gnu = yes; then
3709 GCC=yes
3710 else
3711 GCC=
3712 fi
3713 ac_test_CFLAGS=${CFLAGS+y}
3714 ac_save_CFLAGS=$CFLAGS
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3716 printf %s "checking whether $CC accepts -g... " >&6; }
3717 if test ${ac_cv_prog_cc_g+y}
3718 then :
3719 printf %s "(cached) " >&6
3720 else $as_nop
3721 ac_save_c_werror_flag=$ac_c_werror_flag
3722 ac_c_werror_flag=yes
3723 ac_cv_prog_cc_g=no
3724 CFLAGS="-g"
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3727
3728 int
3729 main (void)
3730 {
3731
3732 ;
3733 return 0;
3734 }
3735 _ACEOF
3736 if ac_fn_c_try_compile "$LINENO"
3737 then :
3738 ac_cv_prog_cc_g=yes
3739 else $as_nop
3740 CFLAGS=""
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3743
3744 int
3745 main (void)
3746 {
3747
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 if ac_fn_c_try_compile "$LINENO"
3753 then :
3754
3755 else $as_nop
3756 ac_c_werror_flag=$ac_save_c_werror_flag
3757 CFLAGS="-g"
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3760
3761 int
3762 main (void)
3763 {
3764
3765 ;
3766 return 0;
3767 }
3768 _ACEOF
3769 if ac_fn_c_try_compile "$LINENO"
3770 then :
3771 ac_cv_prog_cc_g=yes
3772 fi
3773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3774 fi
3775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3776 fi
3777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3778 ac_c_werror_flag=$ac_save_c_werror_flag
3779 fi
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3781 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3782 if test $ac_test_CFLAGS; then
3783 CFLAGS=$ac_save_CFLAGS
3784 elif test $ac_cv_prog_cc_g = yes; then
3785 if test "$GCC" = yes; then
3786 CFLAGS="-g -O2"
3787 else
3788 CFLAGS="-g"
3789 fi
3790 else
3791 if test "$GCC" = yes; then
3792 CFLAGS="-O2"
3793 else
3794 CFLAGS=
3795 fi
3796 fi
3797 ac_prog_cc_stdc=no
3798 if test x$ac_prog_cc_stdc = xno
3799 then :
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3801 printf %s "checking for $CC option to enable C11 features... " >&6; }
3802 if test ${ac_cv_prog_cc_c11+y}
3803 then :
3804 printf %s "(cached) " >&6
3805 else $as_nop
3806 ac_cv_prog_cc_c11=no
3807 ac_save_CC=$CC
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3810 $ac_c_conftest_c11_program
3811 _ACEOF
3812 for ac_arg in '' -std=gnu11
3813 do
3814 CC="$ac_save_CC $ac_arg"
3815 if ac_fn_c_try_compile "$LINENO"
3816 then :
3817 ac_cv_prog_cc_c11=$ac_arg
3818 fi
3819 rm -f core conftest.err conftest.$ac_objext conftest.beam
3820 test "x$ac_cv_prog_cc_c11" != "xno" && break
3821 done
3822 rm -f conftest.$ac_ext
3823 CC=$ac_save_CC
3824 fi
3825
3826 if test "x$ac_cv_prog_cc_c11" = xno
3827 then :
3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3829 printf "%s\n" "unsupported" >&6; }
3830 else $as_nop
3831 if test "x$ac_cv_prog_cc_c11" = x
3832 then :
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3834 printf "%s\n" "none needed" >&6; }
3835 else $as_nop
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3837 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3838 CC="$CC $ac_cv_prog_cc_c11"
3839 fi
3840 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3841 ac_prog_cc_stdc=c11
3842 fi
3843 fi
3844 if test x$ac_prog_cc_stdc = xno
3845 then :
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3847 printf %s "checking for $CC option to enable C99 features... " >&6; }
3848 if test ${ac_cv_prog_cc_c99+y}
3849 then :
3850 printf %s "(cached) " >&6
3851 else $as_nop
3852 ac_cv_prog_cc_c99=no
3853 ac_save_CC=$CC
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 $ac_c_conftest_c99_program
3857 _ACEOF
3858 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3859 do
3860 CC="$ac_save_CC $ac_arg"
3861 if ac_fn_c_try_compile "$LINENO"
3862 then :
3863 ac_cv_prog_cc_c99=$ac_arg
3864 fi
3865 rm -f core conftest.err conftest.$ac_objext conftest.beam
3866 test "x$ac_cv_prog_cc_c99" != "xno" && break
3867 done
3868 rm -f conftest.$ac_ext
3869 CC=$ac_save_CC
3870 fi
3871
3872 if test "x$ac_cv_prog_cc_c99" = xno
3873 then :
3874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3875 printf "%s\n" "unsupported" >&6; }
3876 else $as_nop
3877 if test "x$ac_cv_prog_cc_c99" = x
3878 then :
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3880 printf "%s\n" "none needed" >&6; }
3881 else $as_nop
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3883 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3884 CC="$CC $ac_cv_prog_cc_c99"
3885 fi
3886 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3887 ac_prog_cc_stdc=c99
3888 fi
3889 fi
3890 if test x$ac_prog_cc_stdc = xno
3891 then :
3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3893 printf %s "checking for $CC option to enable C89 features... " >&6; }
3894 if test ${ac_cv_prog_cc_c89+y}
3895 then :
3896 printf %s "(cached) " >&6
3897 else $as_nop
3898 ac_cv_prog_cc_c89=no
3899 ac_save_CC=$CC
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3902 $ac_c_conftest_c89_program
3903 _ACEOF
3904 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3905 do
3906 CC="$ac_save_CC $ac_arg"
3907 if ac_fn_c_try_compile "$LINENO"
3908 then :
3909 ac_cv_prog_cc_c89=$ac_arg
3910 fi
3911 rm -f core conftest.err conftest.$ac_objext conftest.beam
3912 test "x$ac_cv_prog_cc_c89" != "xno" && break
3913 done
3914 rm -f conftest.$ac_ext
3915 CC=$ac_save_CC
3916 fi
3917
3918 if test "x$ac_cv_prog_cc_c89" = xno
3919 then :
3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3921 printf "%s\n" "unsupported" >&6; }
3922 else $as_nop
3923 if test "x$ac_cv_prog_cc_c89" = x
3924 then :
3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3926 printf "%s\n" "none needed" >&6; }
3927 else $as_nop
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3929 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3930 CC="$CC $ac_cv_prog_cc_c89"
3931 fi
3932 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3933 ac_prog_cc_stdc=c89
3934 fi
3935 fi
3936
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942
3943
3944 ac_ext=c
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3950 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3951 if test ${am_cv_prog_cc_c_o+y}
3952 then :
3953 printf %s "(cached) " >&6
3954 else $as_nop
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3957
3958 int
3959 main (void)
3960 {
3961
3962 ;
3963 return 0;
3964 }
3965 _ACEOF
3966 # Make sure it works both with $CC and with simple cc.
3967 # Following AC_PROG_CC_C_O, we do the test twice because some
3968 # compilers refuse to overwrite an existing .o file with -o,
3969 # though they will create one.
3970 am_cv_prog_cc_c_o=yes
3971 for am_i in 1 2; do
3972 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3973 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } \
3977 && test -f conftest2.$ac_objext; then
3978 : OK
3979 else
3980 am_cv_prog_cc_c_o=no
3981 break
3982 fi
3983 done
3984 rm -f core conftest*
3985 unset am_i
3986 fi
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3988 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3989 if test "$am_cv_prog_cc_c_o" != yes; then
3990 # Losing compiler, so override with the script.
3991 # FIXME: It is wrong to rewrite CC.
3992 # But if we don't then we get into trouble of one sort or another.
3993 # A longer-term fix would be to have automake use am__CC in this case,
3994 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3995 CC="$am_aux_dir/compile $CC"
3996 fi
3997 ac_ext=c
3998 ac_cpp='$CPP $CPPFLAGS'
3999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002
4003
4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4005 printf %s "checking for a sed that does not truncate output... " >&6; }
4006 if test ${ac_cv_path_SED+y}
4007 then :
4008 printf %s "(cached) " >&6
4009 else $as_nop
4010 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4011 for ac_i in 1 2 3 4 5 6 7; do
4012 ac_script="$ac_script$as_nl$ac_script"
4013 done
4014 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4015 { ac_script=; unset ac_script;}
4016 if test -z "$SED"; then
4017 ac_path_SED_found=false
4018 # Loop through the user's path and test for each of PROGNAME-LIST
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 for as_dir in $PATH
4021 do
4022 IFS=$as_save_IFS
4023 case $as_dir in #(((
4024 '') as_dir=./ ;;
4025 */) ;;
4026 *) as_dir=$as_dir/ ;;
4027 esac
4028 for ac_prog in sed gsed
4029 do
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4032 as_fn_executable_p "$ac_path_SED" || continue
4033 # Check for GNU ac_path_SED and select it if it is found.
4034 # Check for GNU $ac_path_SED
4035 case `"$ac_path_SED" --version 2>&1` in
4036 *GNU*)
4037 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4038 *)
4039 ac_count=0
4040 printf %s 0123456789 >"conftest.in"
4041 while :
4042 do
4043 cat "conftest.in" "conftest.in" >"conftest.tmp"
4044 mv "conftest.tmp" "conftest.in"
4045 cp "conftest.in" "conftest.nl"
4046 printf "%s\n" '' >> "conftest.nl"
4047 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4049 as_fn_arith $ac_count + 1 && ac_count=$as_val
4050 if test $ac_count -gt ${ac_path_SED_max-0}; then
4051 # Best one so far, save it but keep looking for a better one
4052 ac_cv_path_SED="$ac_path_SED"
4053 ac_path_SED_max=$ac_count
4054 fi
4055 # 10*(2^10) chars as input seems more than enough
4056 test $ac_count -gt 10 && break
4057 done
4058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4059 esac
4060
4061 $ac_path_SED_found && break 3
4062 done
4063 done
4064 done
4065 IFS=$as_save_IFS
4066 if test -z "$ac_cv_path_SED"; then
4067 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4068 fi
4069 else
4070 ac_cv_path_SED=$SED
4071 fi
4072
4073 fi
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4075 printf "%s\n" "$ac_cv_path_SED" >&6; }
4076 SED="$ac_cv_path_SED"
4077 rm -f conftest.sed
4078
4079 test -z "$SED" && SED=sed
4080 Xsed="$SED -e 1s/^X//"
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4093 printf %s "checking for grep that handles long lines and -e... " >&6; }
4094 if test ${ac_cv_path_GREP+y}
4095 then :
4096 printf %s "(cached) " >&6
4097 else $as_nop
4098 if test -z "$GREP"; then
4099 ac_path_GREP_found=false
4100 # Loop through the user's path and test for each of PROGNAME-LIST
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4103 do
4104 IFS=$as_save_IFS
4105 case $as_dir in #(((
4106 '') as_dir=./ ;;
4107 */) ;;
4108 *) as_dir=$as_dir/ ;;
4109 esac
4110 for ac_prog in grep ggrep
4111 do
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4114 as_fn_executable_p "$ac_path_GREP" || continue
4115 # Check for GNU ac_path_GREP and select it if it is found.
4116 # Check for GNU $ac_path_GREP
4117 case `"$ac_path_GREP" --version 2>&1` in
4118 *GNU*)
4119 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4120 *)
4121 ac_count=0
4122 printf %s 0123456789 >"conftest.in"
4123 while :
4124 do
4125 cat "conftest.in" "conftest.in" >"conftest.tmp"
4126 mv "conftest.tmp" "conftest.in"
4127 cp "conftest.in" "conftest.nl"
4128 printf "%s\n" 'GREP' >> "conftest.nl"
4129 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4131 as_fn_arith $ac_count + 1 && ac_count=$as_val
4132 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4133 # Best one so far, save it but keep looking for a better one
4134 ac_cv_path_GREP="$ac_path_GREP"
4135 ac_path_GREP_max=$ac_count
4136 fi
4137 # 10*(2^10) chars as input seems more than enough
4138 test $ac_count -gt 10 && break
4139 done
4140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4141 esac
4142
4143 $ac_path_GREP_found && break 3
4144 done
4145 done
4146 done
4147 IFS=$as_save_IFS
4148 if test -z "$ac_cv_path_GREP"; then
4149 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4150 fi
4151 else
4152 ac_cv_path_GREP=$GREP
4153 fi
4154
4155 fi
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4157 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4158 GREP="$ac_cv_path_GREP"
4159
4160
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4162 printf %s "checking for egrep... " >&6; }
4163 if test ${ac_cv_path_EGREP+y}
4164 then :
4165 printf %s "(cached) " >&6
4166 else $as_nop
4167 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4168 then ac_cv_path_EGREP="$GREP -E"
4169 else
4170 if test -z "$EGREP"; then
4171 ac_path_EGREP_found=false
4172 # Loop through the user's path and test for each of PROGNAME-LIST
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4175 do
4176 IFS=$as_save_IFS
4177 case $as_dir in #(((
4178 '') as_dir=./ ;;
4179 */) ;;
4180 *) as_dir=$as_dir/ ;;
4181 esac
4182 for ac_prog in egrep
4183 do
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4186 as_fn_executable_p "$ac_path_EGREP" || continue
4187 # Check for GNU ac_path_EGREP and select it if it is found.
4188 # Check for GNU $ac_path_EGREP
4189 case `"$ac_path_EGREP" --version 2>&1` in
4190 *GNU*)
4191 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4192 *)
4193 ac_count=0
4194 printf %s 0123456789 >"conftest.in"
4195 while :
4196 do
4197 cat "conftest.in" "conftest.in" >"conftest.tmp"
4198 mv "conftest.tmp" "conftest.in"
4199 cp "conftest.in" "conftest.nl"
4200 printf "%s\n" 'EGREP' >> "conftest.nl"
4201 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203 as_fn_arith $ac_count + 1 && ac_count=$as_val
4204 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4205 # Best one so far, save it but keep looking for a better one
4206 ac_cv_path_EGREP="$ac_path_EGREP"
4207 ac_path_EGREP_max=$ac_count
4208 fi
4209 # 10*(2^10) chars as input seems more than enough
4210 test $ac_count -gt 10 && break
4211 done
4212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213 esac
4214
4215 $ac_path_EGREP_found && break 3
4216 done
4217 done
4218 done
4219 IFS=$as_save_IFS
4220 if test -z "$ac_cv_path_EGREP"; then
4221 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4222 fi
4223 else
4224 ac_cv_path_EGREP=$EGREP
4225 fi
4226
4227 fi
4228 fi
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4230 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4231 EGREP="$ac_cv_path_EGREP"
4232
4233
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4235 printf %s "checking for fgrep... " >&6; }
4236 if test ${ac_cv_path_FGREP+y}
4237 then :
4238 printf %s "(cached) " >&6
4239 else $as_nop
4240 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4241 then ac_cv_path_FGREP="$GREP -F"
4242 else
4243 if test -z "$FGREP"; then
4244 ac_path_FGREP_found=false
4245 # Loop through the user's path and test for each of PROGNAME-LIST
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4248 do
4249 IFS=$as_save_IFS
4250 case $as_dir in #(((
4251 '') as_dir=./ ;;
4252 */) ;;
4253 *) as_dir=$as_dir/ ;;
4254 esac
4255 for ac_prog in fgrep
4256 do
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4259 as_fn_executable_p "$ac_path_FGREP" || continue
4260 # Check for GNU ac_path_FGREP and select it if it is found.
4261 # Check for GNU $ac_path_FGREP
4262 case `"$ac_path_FGREP" --version 2>&1` in
4263 *GNU*)
4264 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4265 *)
4266 ac_count=0
4267 printf %s 0123456789 >"conftest.in"
4268 while :
4269 do
4270 cat "conftest.in" "conftest.in" >"conftest.tmp"
4271 mv "conftest.tmp" "conftest.in"
4272 cp "conftest.in" "conftest.nl"
4273 printf "%s\n" 'FGREP' >> "conftest.nl"
4274 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4276 as_fn_arith $ac_count + 1 && ac_count=$as_val
4277 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4278 # Best one so far, save it but keep looking for a better one
4279 ac_cv_path_FGREP="$ac_path_FGREP"
4280 ac_path_FGREP_max=$ac_count
4281 fi
4282 # 10*(2^10) chars as input seems more than enough
4283 test $ac_count -gt 10 && break
4284 done
4285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4286 esac
4287
4288 $ac_path_FGREP_found && break 3
4289 done
4290 done
4291 done
4292 IFS=$as_save_IFS
4293 if test -z "$ac_cv_path_FGREP"; then
4294 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4295 fi
4296 else
4297 ac_cv_path_FGREP=$FGREP
4298 fi
4299
4300 fi
4301 fi
4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4303 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4304 FGREP="$ac_cv_path_FGREP"
4305
4306
4307 test -z "$GREP" && GREP=grep
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327 # Check whether --with-gnu-ld was given.
4328 if test ${with_gnu_ld+y}
4329 then :
4330 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4331 else $as_nop
4332 with_gnu_ld=no
4333 fi
4334
4335 ac_prog=ld
4336 if test yes = "$GCC"; then
4337 # Check if gcc -print-prog-name=ld gives a path.
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4339 printf %s "checking for ld used by $CC... " >&6; }
4340 case $host in
4341 *-*-mingw*)
4342 # gcc leaves a trailing carriage return, which upsets mingw
4343 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4344 *)
4345 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4346 esac
4347 case $ac_prog in
4348 # Accept absolute paths.
4349 [\\/]* | ?:[\\/]*)
4350 re_direlt='/[^/][^/]*/\.\./'
4351 # Canonicalize the pathname of ld
4352 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4353 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4354 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4355 done
4356 test -z "$LD" && LD=$ac_prog
4357 ;;
4358 "")
4359 # If it fails, then pretend we aren't using GCC.
4360 ac_prog=ld
4361 ;;
4362 *)
4363 # If it is relative, then search for the first ld in PATH.
4364 with_gnu_ld=unknown
4365 ;;
4366 esac
4367 elif test yes = "$with_gnu_ld"; then
4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4369 printf %s "checking for GNU ld... " >&6; }
4370 else
4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4372 printf %s "checking for non-GNU ld... " >&6; }
4373 fi
4374 if test ${lt_cv_path_LD+y}
4375 then :
4376 printf %s "(cached) " >&6
4377 else $as_nop
4378 if test -z "$LD"; then
4379 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4380 for ac_dir in $PATH; do
4381 IFS=$lt_save_ifs
4382 test -z "$ac_dir" && ac_dir=.
4383 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4384 lt_cv_path_LD=$ac_dir/$ac_prog
4385 # Check to see if the program is GNU ld. I'd rather use --version,
4386 # but apparently some variants of GNU ld only accept -v.
4387 # Break only if it was the GNU/non-GNU ld that we prefer.
4388 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4389 *GNU* | *'with BFD'*)
4390 test no != "$with_gnu_ld" && break
4391 ;;
4392 *)
4393 test yes != "$with_gnu_ld" && break
4394 ;;
4395 esac
4396 fi
4397 done
4398 IFS=$lt_save_ifs
4399 else
4400 lt_cv_path_LD=$LD # Let the user override the test with a path.
4401 fi
4402 fi
4403
4404 LD=$lt_cv_path_LD
4405 if test -n "$LD"; then
4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4407 printf "%s\n" "$LD" >&6; }
4408 else
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 printf "%s\n" "no" >&6; }
4411 fi
4412 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4414 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4415 if test ${lt_cv_prog_gnu_ld+y}
4416 then :
4417 printf %s "(cached) " >&6
4418 else $as_nop
4419 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4420 case `$LD -v 2>&1 </dev/null` in
4421 *GNU* | *'with BFD'*)
4422 lt_cv_prog_gnu_ld=yes
4423 ;;
4424 *)
4425 lt_cv_prog_gnu_ld=no
4426 ;;
4427 esac
4428 fi
4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4430 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
4431 with_gnu_ld=$lt_cv_prog_gnu_ld
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4442 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4443 if test ${lt_cv_path_NM+y}
4444 then :
4445 printf %s "(cached) " >&6
4446 else $as_nop
4447 if test -n "$NM"; then
4448 # Let the user override the test.
4449 lt_cv_path_NM=$NM
4450 else
4451 lt_nm_to_check=${ac_tool_prefix}nm
4452 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4453 lt_nm_to_check="$lt_nm_to_check nm"
4454 fi
4455 for lt_tmp_nm in $lt_nm_to_check; do
4456 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4457 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4458 IFS=$lt_save_ifs
4459 test -z "$ac_dir" && ac_dir=.
4460 tmp_nm=$ac_dir/$lt_tmp_nm
4461 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4462 # Check to see if the nm accepts a BSD-compat flag.
4463 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4464 # nm: unknown option "B" ignored
4465 # Tru64's nm complains that /dev/null is an invalid object file
4466 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4467 case $build_os in
4468 mingw*) lt_bad_file=conftest.nm/nofile ;;
4469 *) lt_bad_file=/dev/null ;;
4470 esac
4471 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
4472 *$lt_bad_file* | *'Invalid file or object type'*)
4473 lt_cv_path_NM="$tmp_nm -B"
4474 break 2
4475 ;;
4476 *)
4477 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
4478 */dev/null*)
4479 lt_cv_path_NM="$tmp_nm -p"
4480 break 2
4481 ;;
4482 *)
4483 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4484 continue # so that we can try to find one that supports BSD flags
4485 ;;
4486 esac
4487 ;;
4488 esac
4489 fi
4490 done
4491 IFS=$lt_save_ifs
4492 done
4493 : ${lt_cv_path_NM=no}
4494 fi
4495 fi
4496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4497 printf "%s\n" "$lt_cv_path_NM" >&6; }
4498 if test no != "$lt_cv_path_NM"; then
4499 NM=$lt_cv_path_NM
4500 else
4501 # Didn't find any BSD compatible name lister, look for dumpbin.
4502 if test -n "$DUMPBIN"; then :
4503 # Let the user override the test.
4504 else
4505 if test -n "$ac_tool_prefix"; then
4506 for ac_prog in dumpbin "link -dump"
4507 do
4508 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4509 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511 printf %s "checking for $ac_word... " >&6; }
4512 if test ${ac_cv_prog_DUMPBIN+y}
4513 then :
4514 printf %s "(cached) " >&6
4515 else $as_nop
4516 if test -n "$DUMPBIN"; then
4517 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522 IFS=$as_save_IFS
4523 case $as_dir in #(((
4524 '') as_dir=./ ;;
4525 */) ;;
4526 *) as_dir=$as_dir/ ;;
4527 esac
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4530 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4532 break 2
4533 fi
4534 done
4535 done
4536 IFS=$as_save_IFS
4537
4538 fi
4539 fi
4540 DUMPBIN=$ac_cv_prog_DUMPBIN
4541 if test -n "$DUMPBIN"; then
4542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4543 printf "%s\n" "$DUMPBIN" >&6; }
4544 else
4545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 printf "%s\n" "no" >&6; }
4547 fi
4548
4549
4550 test -n "$DUMPBIN" && break
4551 done
4552 fi
4553 if test -z "$DUMPBIN"; then
4554 ac_ct_DUMPBIN=$DUMPBIN
4555 for ac_prog in dumpbin "link -dump"
4556 do
4557 # Extract the first word of "$ac_prog", so it can be a program name with args.
4558 set dummy $ac_prog; ac_word=$2
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 printf %s "checking for $ac_word... " >&6; }
4561 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
4562 then :
4563 printf %s "(cached) " >&6
4564 else $as_nop
4565 if test -n "$ac_ct_DUMPBIN"; then
4566 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571 IFS=$as_save_IFS
4572 case $as_dir in #(((
4573 '') as_dir=./ ;;
4574 */) ;;
4575 *) as_dir=$as_dir/ ;;
4576 esac
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4579 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583 done
4584 done
4585 IFS=$as_save_IFS
4586
4587 fi
4588 fi
4589 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4590 if test -n "$ac_ct_DUMPBIN"; then
4591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4592 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
4593 else
4594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 printf "%s\n" "no" >&6; }
4596 fi
4597
4598
4599 test -n "$ac_ct_DUMPBIN" && break
4600 done
4601
4602 if test "x$ac_ct_DUMPBIN" = x; then
4603 DUMPBIN=":"
4604 else
4605 case $cross_compiling:$ac_tool_warned in
4606 yes:)
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609 ac_tool_warned=yes ;;
4610 esac
4611 DUMPBIN=$ac_ct_DUMPBIN
4612 fi
4613 fi
4614
4615 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
4616 *COFF*)
4617 DUMPBIN="$DUMPBIN -symbols -headers"
4618 ;;
4619 *)
4620 DUMPBIN=:
4621 ;;
4622 esac
4623 fi
4624
4625 if test : != "$DUMPBIN"; then
4626 NM=$DUMPBIN
4627 fi
4628 fi
4629 test -z "$NM" && NM=nm
4630
4631
4632
4633
4634
4635
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4637 printf %s "checking the name lister ($NM) interface... " >&6; }
4638 if test ${lt_cv_nm_interface+y}
4639 then :
4640 printf %s "(cached) " >&6
4641 else $as_nop
4642 lt_cv_nm_interface="BSD nm"
4643 echo "int some_variable = 0;" > conftest.$ac_ext
4644 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4645 (eval "$ac_compile" 2>conftest.err)
4646 cat conftest.err >&5
4647 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4648 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4649 cat conftest.err >&5
4650 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4651 cat conftest.out >&5
4652 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4653 lt_cv_nm_interface="MS dumpbin"
4654 fi
4655 rm -f conftest*
4656 fi
4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4658 printf "%s\n" "$lt_cv_nm_interface" >&6; }
4659
4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4661 printf %s "checking whether ln -s works... " >&6; }
4662 LN_S=$as_ln_s
4663 if test "$LN_S" = "ln -s"; then
4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4665 printf "%s\n" "yes" >&6; }
4666 else
4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4668 printf "%s\n" "no, using $LN_S" >&6; }
4669 fi
4670
4671 # find the maximum length of command line arguments
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4673 printf %s "checking the maximum length of command line arguments... " >&6; }
4674 if test ${lt_cv_sys_max_cmd_len+y}
4675 then :
4676 printf %s "(cached) " >&6
4677 else $as_nop
4678 i=0
4679 teststring=ABCD
4680
4681 case $build_os in
4682 msdosdjgpp*)
4683 # On DJGPP, this test can blow up pretty badly due to problems in libc
4684 # (any single argument exceeding 2000 bytes causes a buffer overrun
4685 # during glob expansion). Even if it were fixed, the result of this
4686 # check would be larger than it should be.
4687 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4688 ;;
4689
4690 gnu*)
4691 # Under GNU Hurd, this test is not required because there is
4692 # no limit to the length of command line arguments.
4693 # Libtool will interpret -1 as no limit whatsoever
4694 lt_cv_sys_max_cmd_len=-1;
4695 ;;
4696
4697 cygwin* | mingw* | cegcc*)
4698 # On Win9x/ME, this test blows up -- it succeeds, but takes
4699 # about 5 minutes as the teststring grows exponentially.
4700 # Worse, since 9x/ME are not pre-emptively multitasking,
4701 # you end up with a "frozen" computer, even though with patience
4702 # the test eventually succeeds (with a max line length of 256k).
4703 # Instead, let's just punt: use the minimum linelength reported by
4704 # all of the supported platforms: 8192 (on NT/2K/XP).
4705 lt_cv_sys_max_cmd_len=8192;
4706 ;;
4707
4708 mint*)
4709 # On MiNT this can take a long time and run out of memory.
4710 lt_cv_sys_max_cmd_len=8192;
4711 ;;
4712
4713 amigaos*)
4714 # On AmigaOS with pdksh, this test takes hours, literally.
4715 # So we just punt and use a minimum line length of 8192.
4716 lt_cv_sys_max_cmd_len=8192;
4717 ;;
4718
4719 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
4720 # This has been around since 386BSD, at least. Likely further.
4721 if test -x /sbin/sysctl; then
4722 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4723 elif test -x /usr/sbin/sysctl; then
4724 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4725 else
4726 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4727 fi
4728 # And add a safety zone
4729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4730 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4731 ;;
4732
4733 interix*)
4734 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4735 lt_cv_sys_max_cmd_len=196608
4736 ;;
4737
4738 os2*)
4739 # The test takes a long time on OS/2.
4740 lt_cv_sys_max_cmd_len=8192
4741 ;;
4742
4743 osf*)
4744 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4745 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4746 # nice to cause kernel panics so lets avoid the loop below.
4747 # First set a reasonable default.
4748 lt_cv_sys_max_cmd_len=16384
4749 #
4750 if test -x /sbin/sysconfig; then
4751 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4752 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4753 esac
4754 fi
4755 ;;
4756 sco3.2v5*)
4757 lt_cv_sys_max_cmd_len=102400
4758 ;;
4759 sysv5* | sco5v6* | sysv4.2uw2*)
4760 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4761 if test -n "$kargmax"; then
4762 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
4763 else
4764 lt_cv_sys_max_cmd_len=32768
4765 fi
4766 ;;
4767 *)
4768 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4769 if test -n "$lt_cv_sys_max_cmd_len" && \
4770 test undefined != "$lt_cv_sys_max_cmd_len"; then
4771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4773 else
4774 # Make teststring a little bigger before we do anything with it.
4775 # a 1K string should be a reasonable start.
4776 for i in 1 2 3 4 5 6 7 8; do
4777 teststring=$teststring$teststring
4778 done
4779 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4780 # If test is not a shell built-in, we'll probably end up computing a
4781 # maximum length that is only half of the actual maximum length, but
4782 # we can't tell.
4783 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4784 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4785 test 17 != "$i" # 1/2 MB should be enough
4786 do
4787 i=`expr $i + 1`
4788 teststring=$teststring$teststring
4789 done
4790 # Only check the string length outside the loop.
4791 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4792 teststring=
4793 # Add a significant safety factor because C++ compilers can tack on
4794 # massive amounts of additional arguments before passing them to the
4795 # linker. It appears as though 1/2 is a usable value.
4796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4797 fi
4798 ;;
4799 esac
4800
4801 fi
4802
4803 if test -n "$lt_cv_sys_max_cmd_len"; then
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4805 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
4806 else
4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
4808 printf "%s\n" "none" >&6; }
4809 fi
4810 max_cmd_len=$lt_cv_sys_max_cmd_len
4811
4812
4813
4814
4815
4816
4817 : ${CP="cp -f"}
4818 : ${MV="mv -f"}
4819 : ${RM="rm -f"}
4820
4821 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4822 lt_unset=unset
4823 else
4824 lt_unset=false
4825 fi
4826
4827
4828
4829
4830
4831 # test EBCDIC or ASCII
4832 case `echo X|tr X '\101'` in
4833 A) # ASCII based system
4834 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4835 lt_SP2NL='tr \040 \012'
4836 lt_NL2SP='tr \015\012 \040\040'
4837 ;;
4838 *) # EBCDIC based system
4839 lt_SP2NL='tr \100 \n'
4840 lt_NL2SP='tr \r\n \100\100'
4841 ;;
4842 esac
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4853 printf %s "checking how to convert $build file names to $host format... " >&6; }
4854 if test ${lt_cv_to_host_file_cmd+y}
4855 then :
4856 printf %s "(cached) " >&6
4857 else $as_nop
4858 case $host in
4859 *-*-mingw* )
4860 case $build in
4861 *-*-mingw* ) # actually msys
4862 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4863 ;;
4864 *-*-cygwin* )
4865 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4866 ;;
4867 * ) # otherwise, assume *nix
4868 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4869 ;;
4870 esac
4871 ;;
4872 *-*-cygwin* )
4873 case $build in
4874 *-*-mingw* ) # actually msys
4875 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4876 ;;
4877 *-*-cygwin* )
4878 lt_cv_to_host_file_cmd=func_convert_file_noop
4879 ;;
4880 * ) # otherwise, assume *nix
4881 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4882 ;;
4883 esac
4884 ;;
4885 * ) # unhandled hosts (and "normal" native builds)
4886 lt_cv_to_host_file_cmd=func_convert_file_noop
4887 ;;
4888 esac
4889
4890 fi
4891
4892 to_host_file_cmd=$lt_cv_to_host_file_cmd
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4894 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
4895
4896
4897
4898
4899
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4901 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
4902 if test ${lt_cv_to_tool_file_cmd+y}
4903 then :
4904 printf %s "(cached) " >&6
4905 else $as_nop
4906 #assume ordinary cross tools, or native build.
4907 lt_cv_to_tool_file_cmd=func_convert_file_noop
4908 case $host in
4909 *-*-mingw* )
4910 case $build in
4911 *-*-mingw* ) # actually msys
4912 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4913 ;;
4914 esac
4915 ;;
4916 esac
4917
4918 fi
4919
4920 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4922 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
4923
4924
4925
4926
4927
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4929 printf %s "checking for $LD option to reload object files... " >&6; }
4930 if test ${lt_cv_ld_reload_flag+y}
4931 then :
4932 printf %s "(cached) " >&6
4933 else $as_nop
4934 lt_cv_ld_reload_flag='-r'
4935 fi
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4937 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
4938 reload_flag=$lt_cv_ld_reload_flag
4939 case $reload_flag in
4940 "" | " "*) ;;
4941 *) reload_flag=" $reload_flag" ;;
4942 esac
4943 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4944 case $host_os in
4945 cygwin* | mingw* | pw32* | cegcc*)
4946 if test yes != "$GCC"; then
4947 reload_cmds=false
4948 fi
4949 ;;
4950 darwin*)
4951 if test yes = "$GCC"; then
4952 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4953 else
4954 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4955 fi
4956 ;;
4957 esac
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967 if test -n "$ac_tool_prefix"; then
4968 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
4969 set dummy ${ac_tool_prefix}file; ac_word=$2
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 printf %s "checking for $ac_word... " >&6; }
4972 if test ${ac_cv_prog_FILECMD+y}
4973 then :
4974 printf %s "(cached) " >&6
4975 else $as_nop
4976 if test -n "$FILECMD"; then
4977 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4981 do
4982 IFS=$as_save_IFS
4983 case $as_dir in #(((
4984 '') as_dir=./ ;;
4985 */) ;;
4986 *) as_dir=$as_dir/ ;;
4987 esac
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4990 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
4991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4992 break 2
4993 fi
4994 done
4995 done
4996 IFS=$as_save_IFS
4997
4998 fi
4999 fi
5000 FILECMD=$ac_cv_prog_FILECMD
5001 if test -n "$FILECMD"; then
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5003 printf "%s\n" "$FILECMD" >&6; }
5004 else
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 printf "%s\n" "no" >&6; }
5007 fi
5008
5009
5010 fi
5011 if test -z "$ac_cv_prog_FILECMD"; then
5012 ac_ct_FILECMD=$FILECMD
5013 # Extract the first word of "file", so it can be a program name with args.
5014 set dummy file; ac_word=$2
5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 printf %s "checking for $ac_word... " >&6; }
5017 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5018 then :
5019 printf %s "(cached) " >&6
5020 else $as_nop
5021 if test -n "$ac_ct_FILECMD"; then
5022 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5023 else
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027 IFS=$as_save_IFS
5028 case $as_dir in #(((
5029 '') as_dir=./ ;;
5030 */) ;;
5031 *) as_dir=$as_dir/ ;;
5032 esac
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5035 ac_cv_prog_ac_ct_FILECMD="file"
5036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5037 break 2
5038 fi
5039 done
5040 done
5041 IFS=$as_save_IFS
5042
5043 fi
5044 fi
5045 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5046 if test -n "$ac_ct_FILECMD"; then
5047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5048 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5049 else
5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 printf "%s\n" "no" >&6; }
5052 fi
5053
5054 if test "x$ac_ct_FILECMD" = x; then
5055 FILECMD=":"
5056 else
5057 case $cross_compiling:$ac_tool_warned in
5058 yes:)
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5060 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5061 ac_tool_warned=yes ;;
5062 esac
5063 FILECMD=$ac_ct_FILECMD
5064 fi
5065 else
5066 FILECMD="$ac_cv_prog_FILECMD"
5067 fi
5068
5069
5070
5071
5072
5073
5074
5075 if test -n "$ac_tool_prefix"; then
5076 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5077 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 printf %s "checking for $ac_word... " >&6; }
5080 if test ${ac_cv_prog_OBJDUMP+y}
5081 then :
5082 printf %s "(cached) " >&6
5083 else $as_nop
5084 if test -n "$OBJDUMP"; then
5085 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5086 else
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5089 do
5090 IFS=$as_save_IFS
5091 case $as_dir in #(((
5092 '') as_dir=./ ;;
5093 */) ;;
5094 *) as_dir=$as_dir/ ;;
5095 esac
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5098 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5100 break 2
5101 fi
5102 done
5103 done
5104 IFS=$as_save_IFS
5105
5106 fi
5107 fi
5108 OBJDUMP=$ac_cv_prog_OBJDUMP
5109 if test -n "$OBJDUMP"; then
5110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5111 printf "%s\n" "$OBJDUMP" >&6; }
5112 else
5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 printf "%s\n" "no" >&6; }
5115 fi
5116
5117
5118 fi
5119 if test -z "$ac_cv_prog_OBJDUMP"; then
5120 ac_ct_OBJDUMP=$OBJDUMP
5121 # Extract the first word of "objdump", so it can be a program name with args.
5122 set dummy objdump; ac_word=$2
5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124 printf %s "checking for $ac_word... " >&6; }
5125 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5126 then :
5127 printf %s "(cached) " >&6
5128 else $as_nop
5129 if test -n "$ac_ct_OBJDUMP"; then
5130 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5131 else
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5134 do
5135 IFS=$as_save_IFS
5136 case $as_dir in #(((
5137 '') as_dir=./ ;;
5138 */) ;;
5139 *) as_dir=$as_dir/ ;;
5140 esac
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5143 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5145 break 2
5146 fi
5147 done
5148 done
5149 IFS=$as_save_IFS
5150
5151 fi
5152 fi
5153 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5154 if test -n "$ac_ct_OBJDUMP"; then
5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5156 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5157 else
5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 printf "%s\n" "no" >&6; }
5160 fi
5161
5162 if test "x$ac_ct_OBJDUMP" = x; then
5163 OBJDUMP="false"
5164 else
5165 case $cross_compiling:$ac_tool_warned in
5166 yes:)
5167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5168 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5169 ac_tool_warned=yes ;;
5170 esac
5171 OBJDUMP=$ac_ct_OBJDUMP
5172 fi
5173 else
5174 OBJDUMP="$ac_cv_prog_OBJDUMP"
5175 fi
5176
5177 test -z "$OBJDUMP" && OBJDUMP=objdump
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5188 printf %s "checking how to recognize dependent libraries... " >&6; }
5189 if test ${lt_cv_deplibs_check_method+y}
5190 then :
5191 printf %s "(cached) " >&6
5192 else $as_nop
5193 lt_cv_file_magic_cmd='$MAGIC_CMD'
5194 lt_cv_file_magic_test_file=
5195 lt_cv_deplibs_check_method='unknown'
5196 # Need to set the preceding variable on all platforms that support
5197 # interlibrary dependencies.
5198 # 'none' -- dependencies not supported.
5199 # 'unknown' -- same as none, but documents that we really don't know.
5200 # 'pass_all' -- all dependencies passed with no checks.
5201 # 'test_compile' -- check by making test program.
5202 # 'file_magic [[regex]]' -- check by looking for files in library path
5203 # that responds to the $file_magic_cmd with a given extended regex.
5204 # If you have 'file' or equivalent on your system and you're not sure
5205 # whether 'pass_all' will *always* work, you probably want this one.
5206
5207 case $host_os in
5208 aix[4-9]*)
5209 lt_cv_deplibs_check_method=pass_all
5210 ;;
5211
5212 beos*)
5213 lt_cv_deplibs_check_method=pass_all
5214 ;;
5215
5216 bsdi[45]*)
5217 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5218 lt_cv_file_magic_cmd='$FILECMD -L'
5219 lt_cv_file_magic_test_file=/shlib/libc.so
5220 ;;
5221
5222 cygwin*)
5223 # func_win32_libid is a shell function defined in ltmain.sh
5224 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5225 lt_cv_file_magic_cmd='func_win32_libid'
5226 ;;
5227
5228 mingw* | pw32*)
5229 # Base MSYS/MinGW do not provide the 'file' command needed by
5230 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5231 # unless we find 'file', for example because we are cross-compiling.
5232 if ( file / ) >/dev/null 2>&1; then
5233 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5234 lt_cv_file_magic_cmd='func_win32_libid'
5235 else
5236 # Keep this pattern in sync with the one in func_win32_libid.
5237 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5238 lt_cv_file_magic_cmd='$OBJDUMP -f'
5239 fi
5240 ;;
5241
5242 cegcc*)
5243 # use the weaker test based on 'objdump'. See mingw*.
5244 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5245 lt_cv_file_magic_cmd='$OBJDUMP -f'
5246 ;;
5247
5248 darwin* | rhapsody*)
5249 lt_cv_deplibs_check_method=pass_all
5250 ;;
5251
5252 freebsd* | dragonfly* | midnightbsd*)
5253 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5254 case $host_cpu in
5255 i*86 )
5256 # Not sure whether the presence of OpenBSD here was a mistake.
5257 # Let's accept both of them until this is cleared up.
5258 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5259 lt_cv_file_magic_cmd=$FILECMD
5260 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5261 ;;
5262 esac
5263 else
5264 lt_cv_deplibs_check_method=pass_all
5265 fi
5266 ;;
5267
5268 haiku*)
5269 lt_cv_deplibs_check_method=pass_all
5270 ;;
5271
5272 hpux10.20* | hpux11*)
5273 lt_cv_file_magic_cmd=$FILECMD
5274 case $host_cpu in
5275 ia64*)
5276 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5277 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5278 ;;
5279 hppa*64*)
5280 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]'
5281 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5282 ;;
5283 *)
5284 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5285 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5286 ;;
5287 esac
5288 ;;
5289
5290 interix[3-9]*)
5291 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5293 ;;
5294
5295 irix5* | irix6* | nonstopux*)
5296 case $LD in
5297 *-32|*"-32 ") libmagic=32-bit;;
5298 *-n32|*"-n32 ") libmagic=N32;;
5299 *-64|*"-64 ") libmagic=64-bit;;
5300 *) libmagic=never-match;;
5301 esac
5302 lt_cv_deplibs_check_method=pass_all
5303 ;;
5304
5305 # This must be glibc/ELF.
5306 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5307 lt_cv_deplibs_check_method=pass_all
5308 ;;
5309
5310 netbsd* | netbsdelf*-gnu)
5311 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5313 else
5314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5315 fi
5316 ;;
5317
5318 newos6*)
5319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5320 lt_cv_file_magic_cmd=$FILECMD
5321 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5322 ;;
5323
5324 *nto* | *qnx*)
5325 lt_cv_deplibs_check_method=pass_all
5326 ;;
5327
5328 openbsd* | bitrig*)
5329 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5331 else
5332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5333 fi
5334 ;;
5335
5336 osf3* | osf4* | osf5*)
5337 lt_cv_deplibs_check_method=pass_all
5338 ;;
5339
5340 rdos*)
5341 lt_cv_deplibs_check_method=pass_all
5342 ;;
5343
5344 solaris*)
5345 lt_cv_deplibs_check_method=pass_all
5346 ;;
5347
5348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5349 lt_cv_deplibs_check_method=pass_all
5350 ;;
5351
5352 sysv4 | sysv4.3*)
5353 case $host_vendor in
5354 motorola)
5355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5356 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5357 ;;
5358 ncr)
5359 lt_cv_deplibs_check_method=pass_all
5360 ;;
5361 sequent)
5362 lt_cv_file_magic_cmd='/bin/file'
5363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5364 ;;
5365 sni)
5366 lt_cv_file_magic_cmd='/bin/file'
5367 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5368 lt_cv_file_magic_test_file=/lib/libc.so
5369 ;;
5370 siemens)
5371 lt_cv_deplibs_check_method=pass_all
5372 ;;
5373 pc)
5374 lt_cv_deplibs_check_method=pass_all
5375 ;;
5376 esac
5377 ;;
5378
5379 tpf*)
5380 lt_cv_deplibs_check_method=pass_all
5381 ;;
5382 os2*)
5383 lt_cv_deplibs_check_method=pass_all
5384 ;;
5385 esac
5386
5387 fi
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5389 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5390
5391 file_magic_glob=
5392 want_nocaseglob=no
5393 if test "$build" = "$host"; then
5394 case $host_os in
5395 mingw* | pw32*)
5396 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5397 want_nocaseglob=yes
5398 else
5399 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5400 fi
5401 ;;
5402 esac
5403 fi
5404
5405 file_magic_cmd=$lt_cv_file_magic_cmd
5406 deplibs_check_method=$lt_cv_deplibs_check_method
5407 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430 if test -n "$ac_tool_prefix"; then
5431 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5432 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 printf %s "checking for $ac_word... " >&6; }
5435 if test ${ac_cv_prog_DLLTOOL+y}
5436 then :
5437 printf %s "(cached) " >&6
5438 else $as_nop
5439 if test -n "$DLLTOOL"; then
5440 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445 IFS=$as_save_IFS
5446 case $as_dir in #(((
5447 '') as_dir=./ ;;
5448 */) ;;
5449 *) as_dir=$as_dir/ ;;
5450 esac
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5453 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5455 break 2
5456 fi
5457 done
5458 done
5459 IFS=$as_save_IFS
5460
5461 fi
5462 fi
5463 DLLTOOL=$ac_cv_prog_DLLTOOL
5464 if test -n "$DLLTOOL"; then
5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5466 printf "%s\n" "$DLLTOOL" >&6; }
5467 else
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 printf "%s\n" "no" >&6; }
5470 fi
5471
5472
5473 fi
5474 if test -z "$ac_cv_prog_DLLTOOL"; then
5475 ac_ct_DLLTOOL=$DLLTOOL
5476 # Extract the first word of "dlltool", so it can be a program name with args.
5477 set dummy dlltool; ac_word=$2
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 printf %s "checking for $ac_word... " >&6; }
5480 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5481 then :
5482 printf %s "(cached) " >&6
5483 else $as_nop
5484 if test -n "$ac_ct_DLLTOOL"; then
5485 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5486 else
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5489 do
5490 IFS=$as_save_IFS
5491 case $as_dir in #(((
5492 '') as_dir=./ ;;
5493 */) ;;
5494 *) as_dir=$as_dir/ ;;
5495 esac
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5498 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5500 break 2
5501 fi
5502 done
5503 done
5504 IFS=$as_save_IFS
5505
5506 fi
5507 fi
5508 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5509 if test -n "$ac_ct_DLLTOOL"; then
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5511 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5512 else
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 printf "%s\n" "no" >&6; }
5515 fi
5516
5517 if test "x$ac_ct_DLLTOOL" = x; then
5518 DLLTOOL="false"
5519 else
5520 case $cross_compiling:$ac_tool_warned in
5521 yes:)
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5523 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5524 ac_tool_warned=yes ;;
5525 esac
5526 DLLTOOL=$ac_ct_DLLTOOL
5527 fi
5528 else
5529 DLLTOOL="$ac_cv_prog_DLLTOOL"
5530 fi
5531
5532 test -z "$DLLTOOL" && DLLTOOL=dlltool
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5544 printf %s "checking how to associate runtime and link libraries... " >&6; }
5545 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
5546 then :
5547 printf %s "(cached) " >&6
5548 else $as_nop
5549 lt_cv_sharedlib_from_linklib_cmd='unknown'
5550
5551 case $host_os in
5552 cygwin* | mingw* | pw32* | cegcc*)
5553 # two different shell functions defined in ltmain.sh;
5554 # decide which one to use based on capabilities of $DLLTOOL
5555 case `$DLLTOOL --help 2>&1` in
5556 *--identify-strict*)
5557 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5558 ;;
5559 *)
5560 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5561 ;;
5562 esac
5563 ;;
5564 *)
5565 # fallback: assume linklib IS sharedlib
5566 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5567 ;;
5568 esac
5569
5570 fi
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5572 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5573 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5574 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5575
5576
5577
5578
5579
5580
5581
5582
5583 if test -n "$ac_tool_prefix"; then
5584 for ac_prog in ar
5585 do
5586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5587 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 printf %s "checking for $ac_word... " >&6; }
5590 if test ${ac_cv_prog_AR+y}
5591 then :
5592 printf %s "(cached) " >&6
5593 else $as_nop
5594 if test -n "$AR"; then
5595 ac_cv_prog_AR="$AR" # Let the user override the test.
5596 else
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 for as_dir in $PATH
5599 do
5600 IFS=$as_save_IFS
5601 case $as_dir in #(((
5602 '') as_dir=./ ;;
5603 */) ;;
5604 *) as_dir=$as_dir/ ;;
5605 esac
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5608 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5610 break 2
5611 fi
5612 done
5613 done
5614 IFS=$as_save_IFS
5615
5616 fi
5617 fi
5618 AR=$ac_cv_prog_AR
5619 if test -n "$AR"; then
5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5621 printf "%s\n" "$AR" >&6; }
5622 else
5623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 printf "%s\n" "no" >&6; }
5625 fi
5626
5627
5628 test -n "$AR" && break
5629 done
5630 fi
5631 if test -z "$AR"; then
5632 ac_ct_AR=$AR
5633 for ac_prog in ar
5634 do
5635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5636 set dummy $ac_prog; ac_word=$2
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 printf %s "checking for $ac_word... " >&6; }
5639 if test ${ac_cv_prog_ac_ct_AR+y}
5640 then :
5641 printf %s "(cached) " >&6
5642 else $as_nop
5643 if test -n "$ac_ct_AR"; then
5644 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5648 do
5649 IFS=$as_save_IFS
5650 case $as_dir in #(((
5651 '') as_dir=./ ;;
5652 */) ;;
5653 *) as_dir=$as_dir/ ;;
5654 esac
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_ac_ct_AR="$ac_prog"
5658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5659 break 2
5660 fi
5661 done
5662 done
5663 IFS=$as_save_IFS
5664
5665 fi
5666 fi
5667 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5668 if test -n "$ac_ct_AR"; then
5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5670 printf "%s\n" "$ac_ct_AR" >&6; }
5671 else
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 printf "%s\n" "no" >&6; }
5674 fi
5675
5676
5677 test -n "$ac_ct_AR" && break
5678 done
5679
5680 if test "x$ac_ct_AR" = x; then
5681 AR="false"
5682 else
5683 case $cross_compiling:$ac_tool_warned in
5684 yes:)
5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5686 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5687 ac_tool_warned=yes ;;
5688 esac
5689 AR=$ac_ct_AR
5690 fi
5691 fi
5692
5693 : ${AR=ar}
5694
5695
5696
5697
5698
5699
5700 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
5701 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
5702 # higher priority because thats what people were doing historically (setting
5703 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
5704 # variable obsoleted/removed.
5705
5706 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
5707 lt_ar_flags=$AR_FLAGS
5708
5709
5710
5711
5712
5713
5714 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
5715 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
5716
5717
5718
5719
5720
5721
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5723 printf %s "checking for archiver @FILE support... " >&6; }
5724 if test ${lt_cv_ar_at_file+y}
5725 then :
5726 printf %s "(cached) " >&6
5727 else $as_nop
5728 lt_cv_ar_at_file=no
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731
5732 int
5733 main (void)
5734 {
5735
5736 ;
5737 return 0;
5738 }
5739 _ACEOF
5740 if ac_fn_c_try_compile "$LINENO"
5741 then :
5742 echo conftest.$ac_objext > conftest.lst
5743 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5745 (eval $lt_ar_try) 2>&5
5746 ac_status=$?
5747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5748 test $ac_status = 0; }
5749 if test 0 -eq "$ac_status"; then
5750 # Ensure the archiver fails upon bogus file names.
5751 rm -f conftest.$ac_objext libconftest.a
5752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5753 (eval $lt_ar_try) 2>&5
5754 ac_status=$?
5755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5756 test $ac_status = 0; }
5757 if test 0 -ne "$ac_status"; then
5758 lt_cv_ar_at_file=@
5759 fi
5760 fi
5761 rm -f conftest.* libconftest.a
5762
5763 fi
5764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5765
5766 fi
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5768 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
5769
5770 if test no = "$lt_cv_ar_at_file"; then
5771 archiver_list_spec=
5772 else
5773 archiver_list_spec=$lt_cv_ar_at_file
5774 fi
5775
5776
5777
5778
5779
5780
5781
5782 if test -n "$ac_tool_prefix"; then
5783 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5784 set dummy ${ac_tool_prefix}strip; ac_word=$2
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 printf %s "checking for $ac_word... " >&6; }
5787 if test ${ac_cv_prog_STRIP+y}
5788 then :
5789 printf %s "(cached) " >&6
5790 else $as_nop
5791 if test -n "$STRIP"; then
5792 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5793 else
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5796 do
5797 IFS=$as_save_IFS
5798 case $as_dir in #(((
5799 '') as_dir=./ ;;
5800 */) ;;
5801 *) as_dir=$as_dir/ ;;
5802 esac
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5805 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5807 break 2
5808 fi
5809 done
5810 done
5811 IFS=$as_save_IFS
5812
5813 fi
5814 fi
5815 STRIP=$ac_cv_prog_STRIP
5816 if test -n "$STRIP"; then
5817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5818 printf "%s\n" "$STRIP" >&6; }
5819 else
5820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821 printf "%s\n" "no" >&6; }
5822 fi
5823
5824
5825 fi
5826 if test -z "$ac_cv_prog_STRIP"; then
5827 ac_ct_STRIP=$STRIP
5828 # Extract the first word of "strip", so it can be a program name with args.
5829 set dummy strip; ac_word=$2
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5831 printf %s "checking for $ac_word... " >&6; }
5832 if test ${ac_cv_prog_ac_ct_STRIP+y}
5833 then :
5834 printf %s "(cached) " >&6
5835 else $as_nop
5836 if test -n "$ac_ct_STRIP"; then
5837 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842 IFS=$as_save_IFS
5843 case $as_dir in #(((
5844 '') as_dir=./ ;;
5845 */) ;;
5846 *) as_dir=$as_dir/ ;;
5847 esac
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_ac_ct_STRIP="strip"
5851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854 done
5855 done
5856 IFS=$as_save_IFS
5857
5858 fi
5859 fi
5860 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5861 if test -n "$ac_ct_STRIP"; then
5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5863 printf "%s\n" "$ac_ct_STRIP" >&6; }
5864 else
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 printf "%s\n" "no" >&6; }
5867 fi
5868
5869 if test "x$ac_ct_STRIP" = x; then
5870 STRIP=":"
5871 else
5872 case $cross_compiling:$ac_tool_warned in
5873 yes:)
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5875 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5876 ac_tool_warned=yes ;;
5877 esac
5878 STRIP=$ac_ct_STRIP
5879 fi
5880 else
5881 STRIP="$ac_cv_prog_STRIP"
5882 fi
5883
5884 test -z "$STRIP" && STRIP=:
5885
5886
5887
5888
5889
5890
5891 if test -n "$ac_tool_prefix"; then
5892 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5893 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 printf %s "checking for $ac_word... " >&6; }
5896 if test ${ac_cv_prog_RANLIB+y}
5897 then :
5898 printf %s "(cached) " >&6
5899 else $as_nop
5900 if test -n "$RANLIB"; then
5901 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906 IFS=$as_save_IFS
5907 case $as_dir in #(((
5908 '') as_dir=./ ;;
5909 */) ;;
5910 *) as_dir=$as_dir/ ;;
5911 esac
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918 done
5919 done
5920 IFS=$as_save_IFS
5921
5922 fi
5923 fi
5924 RANLIB=$ac_cv_prog_RANLIB
5925 if test -n "$RANLIB"; then
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5927 printf "%s\n" "$RANLIB" >&6; }
5928 else
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 printf "%s\n" "no" >&6; }
5931 fi
5932
5933
5934 fi
5935 if test -z "$ac_cv_prog_RANLIB"; then
5936 ac_ct_RANLIB=$RANLIB
5937 # Extract the first word of "ranlib", so it can be a program name with args.
5938 set dummy ranlib; ac_word=$2
5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 printf %s "checking for $ac_word... " >&6; }
5941 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5942 then :
5943 printf %s "(cached) " >&6
5944 else $as_nop
5945 if test -n "$ac_ct_RANLIB"; then
5946 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951 IFS=$as_save_IFS
5952 case $as_dir in #(((
5953 '') as_dir=./ ;;
5954 */) ;;
5955 *) as_dir=$as_dir/ ;;
5956 esac
5957 for ac_exec_ext in '' $ac_executable_extensions; do
5958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5959 ac_cv_prog_ac_ct_RANLIB="ranlib"
5960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963 done
5964 done
5965 IFS=$as_save_IFS
5966
5967 fi
5968 fi
5969 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5970 if test -n "$ac_ct_RANLIB"; then
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5972 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5973 else
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 printf "%s\n" "no" >&6; }
5976 fi
5977
5978 if test "x$ac_ct_RANLIB" = x; then
5979 RANLIB=":"
5980 else
5981 case $cross_compiling:$ac_tool_warned in
5982 yes:)
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5984 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5985 ac_tool_warned=yes ;;
5986 esac
5987 RANLIB=$ac_ct_RANLIB
5988 fi
5989 else
5990 RANLIB="$ac_cv_prog_RANLIB"
5991 fi
5992
5993 test -z "$RANLIB" && RANLIB=:
5994
5995
5996
5997
5998
5999
6000 # Determine commands to create old-style static archives.
6001 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6002 old_postinstall_cmds='chmod 644 $oldlib'
6003 old_postuninstall_cmds=
6004
6005 if test -n "$RANLIB"; then
6006 case $host_os in
6007 bitrig* | openbsd*)
6008 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6009 ;;
6010 *)
6011 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6012 ;;
6013 esac
6014 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6015 fi
6016
6017 case $host_os in
6018 darwin*)
6019 lock_old_archive_extraction=yes ;;
6020 *)
6021 lock_old_archive_extraction=no ;;
6022 esac
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044 for ac_prog in gawk mawk nawk awk
6045 do
6046 # Extract the first word of "$ac_prog", so it can be a program name with args.
6047 set dummy $ac_prog; ac_word=$2
6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 printf %s "checking for $ac_word... " >&6; }
6050 if test ${ac_cv_prog_AWK+y}
6051 then :
6052 printf %s "(cached) " >&6
6053 else $as_nop
6054 if test -n "$AWK"; then
6055 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6056 else
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060 IFS=$as_save_IFS
6061 case $as_dir in #(((
6062 '') as_dir=./ ;;
6063 */) ;;
6064 *) as_dir=$as_dir/ ;;
6065 esac
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6068 ac_cv_prog_AWK="$ac_prog"
6069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6070 break 2
6071 fi
6072 done
6073 done
6074 IFS=$as_save_IFS
6075
6076 fi
6077 fi
6078 AWK=$ac_cv_prog_AWK
6079 if test -n "$AWK"; then
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6081 printf "%s\n" "$AWK" >&6; }
6082 else
6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084 printf "%s\n" "no" >&6; }
6085 fi
6086
6087
6088 test -n "$AWK" && break
6089 done
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109 # If no C compiler was specified, use CC.
6110 LTCC=${LTCC-"$CC"}
6111
6112 # If no C compiler flags were specified, use CFLAGS.
6113 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6114
6115 # Allow CC to be a program name with arguments.
6116 compiler=$CC
6117
6118
6119 # Check for command to grab the raw symbol name followed by C symbol from nm.
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6121 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6122 if test ${lt_cv_sys_global_symbol_pipe+y}
6123 then :
6124 printf %s "(cached) " >&6
6125 else $as_nop
6126
6127 # These are sane defaults that work on at least a few old systems.
6128 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6129
6130 # Character class describing NM global symbol codes.
6131 symcode='[BCDEGRST]'
6132
6133 # Regexp to match symbols that can be accessed directly from C.
6134 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6135
6136 # Define system-specific variables.
6137 case $host_os in
6138 aix*)
6139 symcode='[BCDT]'
6140 ;;
6141 cygwin* | mingw* | pw32* | cegcc*)
6142 symcode='[ABCDGISTW]'
6143 ;;
6144 hpux*)
6145 if test ia64 = "$host_cpu"; then
6146 symcode='[ABCDEGRST]'
6147 fi
6148 ;;
6149 irix* | nonstopux*)
6150 symcode='[BCDEGRST]'
6151 ;;
6152 osf*)
6153 symcode='[BCDEGQRST]'
6154 ;;
6155 solaris*)
6156 symcode='[BDRT]'
6157 ;;
6158 sco3.2v5*)
6159 symcode='[DT]'
6160 ;;
6161 sysv4.2uw2*)
6162 symcode='[DT]'
6163 ;;
6164 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6165 symcode='[ABDT]'
6166 ;;
6167 sysv4)
6168 symcode='[DFNSTU]'
6169 ;;
6170 esac
6171
6172 # If we're using GNU nm, then use its standard symbol codes.
6173 case `$NM -V 2>&1` in
6174 *GNU* | *'with BFD'*)
6175 symcode='[ABCDGIRSTW]' ;;
6176 esac
6177
6178 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6179 # Gets list of data symbols to import.
6180 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6181 # Adjust the below global symbol transforms to fixup imported variables.
6182 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6183 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6184 lt_c_name_lib_hook="\
6185 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6186 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6187 else
6188 # Disable hooks by default.
6189 lt_cv_sys_global_symbol_to_import=
6190 lt_cdecl_hook=
6191 lt_c_name_hook=
6192 lt_c_name_lib_hook=
6193 fi
6194
6195 # Transform an extracted symbol line into a proper C declaration.
6196 # Some systems (esp. on ia64) link data and code symbols differently,
6197 # so use this general approach.
6198 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6199 $lt_cdecl_hook\
6200 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6201 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6202
6203 # Transform an extracted symbol line into symbol name and symbol address
6204 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6205 $lt_c_name_hook\
6206 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6207 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6208
6209 # Transform an extracted symbol line into symbol name with lib prefix and
6210 # symbol address.
6211 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6212 $lt_c_name_lib_hook\
6213 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6214 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6215 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6216
6217 # Handle CRLF in mingw tool chain
6218 opt_cr=
6219 case $build_os in
6220 mingw*)
6221 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6222 ;;
6223 esac
6224
6225 # Try without a prefix underscore, then with it.
6226 for ac_symprfx in "" "_"; do
6227
6228 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6229 symxfrm="\\1 $ac_symprfx\\2 \\2"
6230
6231 # Write the raw and C identifiers.
6232 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6233 # Fake it for dumpbin and say T for any non-static function,
6234 # D for any global variable and I for any imported variable.
6235 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6236 # which start with @ or ?.
6237 lt_cv_sys_global_symbol_pipe="$AWK '"\
6238 " {last_section=section; section=\$ 3};"\
6239 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6240 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6241 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6242 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6243 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6244 " \$ 0!~/External *\|/{next};"\
6245 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6246 " {if(hide[section]) next};"\
6247 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6248 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6249 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6250 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6251 " ' prfx=^$ac_symprfx"
6252 else
6253 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6254 fi
6255 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6256
6257 # Check to see that the pipe works correctly.
6258 pipe_works=no
6259
6260 rm -f conftest*
6261 cat > conftest.$ac_ext <<_LT_EOF
6262 #ifdef __cplusplus
6263 extern "C" {
6264 #endif
6265 char nm_test_var;
6266 void nm_test_func(void);
6267 void nm_test_func(void){}
6268 #ifdef __cplusplus
6269 }
6270 #endif
6271 int main(){nm_test_var='a';nm_test_func();return(0);}
6272 _LT_EOF
6273
6274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6275 (eval $ac_compile) 2>&5
6276 ac_status=$?
6277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278 test $ac_status = 0; }; then
6279 # Now try to grab the symbols.
6280 nlist=conftest.nm
6281 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6282 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6283 # Try sorting and uniquifying the output.
6284 if sort "$nlist" | uniq > "$nlist"T; then
6285 mv -f "$nlist"T "$nlist"
6286 else
6287 rm -f "$nlist"T
6288 fi
6289
6290 # Make sure that we snagged all the symbols we need.
6291 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6292 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6293 cat <<_LT_EOF > conftest.$ac_ext
6294 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6295 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6296 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6297 relocations are performed -- see ld's documentation on pseudo-relocs. */
6298 # define LT_DLSYM_CONST
6299 #elif defined __osf__
6300 /* This system does not cope well with relocations in const data. */
6301 # define LT_DLSYM_CONST
6302 #else
6303 # define LT_DLSYM_CONST const
6304 #endif
6305
6306 #ifdef __cplusplus
6307 extern "C" {
6308 #endif
6309
6310 _LT_EOF
6311 # Now generate the symbol file.
6312 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6313
6314 cat <<_LT_EOF >> conftest.$ac_ext
6315
6316 /* The mapping between symbol names and symbols. */
6317 LT_DLSYM_CONST struct {
6318 const char *name;
6319 void *address;
6320 }
6321 lt__PROGRAM__LTX_preloaded_symbols[] =
6322 {
6323 { "@PROGRAM@", (void *) 0 },
6324 _LT_EOF
6325 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6326 cat <<\_LT_EOF >> conftest.$ac_ext
6327 {0, (void *) 0}
6328 };
6329
6330 /* This works around a problem in FreeBSD linker */
6331 #ifdef FREEBSD_WORKAROUND
6332 static const void *lt_preloaded_setup() {
6333 return lt__PROGRAM__LTX_preloaded_symbols;
6334 }
6335 #endif
6336
6337 #ifdef __cplusplus
6338 }
6339 #endif
6340 _LT_EOF
6341 # Now try linking the two files.
6342 mv conftest.$ac_objext conftstm.$ac_objext
6343 lt_globsym_save_LIBS=$LIBS
6344 lt_globsym_save_CFLAGS=$CFLAGS
6345 LIBS=conftstm.$ac_objext
6346 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6348 (eval $ac_link) 2>&5
6349 ac_status=$?
6350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6352 pipe_works=yes
6353 fi
6354 LIBS=$lt_globsym_save_LIBS
6355 CFLAGS=$lt_globsym_save_CFLAGS
6356 else
6357 echo "cannot find nm_test_func in $nlist" >&5
6358 fi
6359 else
6360 echo "cannot find nm_test_var in $nlist" >&5
6361 fi
6362 else
6363 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6364 fi
6365 else
6366 echo "$progname: failed program was:" >&5
6367 cat conftest.$ac_ext >&5
6368 fi
6369 rm -rf conftest* conftst*
6370
6371 # Do not use the global_symbol_pipe unless it works.
6372 if test yes = "$pipe_works"; then
6373 break
6374 else
6375 lt_cv_sys_global_symbol_pipe=
6376 fi
6377 done
6378
6379 fi
6380
6381 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6382 lt_cv_sys_global_symbol_to_cdecl=
6383 fi
6384 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6386 printf "%s\n" "failed" >&6; }
6387 else
6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6389 printf "%s\n" "ok" >&6; }
6390 fi
6391
6392 # Response file support.
6393 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6394 nm_file_list_spec='@'
6395 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6396 nm_file_list_spec='@'
6397 fi
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6436 printf %s "checking for sysroot... " >&6; }
6437
6438 # Check whether --with-sysroot was given.
6439 if test ${with_sysroot+y}
6440 then :
6441 withval=$with_sysroot;
6442 else $as_nop
6443 with_sysroot=no
6444 fi
6445
6446
6447 lt_sysroot=
6448 case $with_sysroot in #(
6449 yes)
6450 if test yes = "$GCC"; then
6451 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6452 fi
6453 ;; #(
6454 /*)
6455 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
6456 ;; #(
6457 no|'')
6458 ;; #(
6459 *)
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6461 printf "%s\n" "$with_sysroot" >&6; }
6462 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6463 ;;
6464 esac
6465
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6467 printf "%s\n" "${lt_sysroot:-no}" >&6; }
6468
6469
6470
6471
6472
6473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6474 printf %s "checking for a working dd... " >&6; }
6475 if test ${ac_cv_path_lt_DD+y}
6476 then :
6477 printf %s "(cached) " >&6
6478 else $as_nop
6479 printf 0123456789abcdef0123456789abcdef >conftest.i
6480 cat conftest.i conftest.i >conftest2.i
6481 : ${lt_DD:=$DD}
6482 if test -z "$lt_DD"; then
6483 ac_path_lt_DD_found=false
6484 # Loop through the user's path and test for each of PROGNAME-LIST
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6487 do
6488 IFS=$as_save_IFS
6489 case $as_dir in #(((
6490 '') as_dir=./ ;;
6491 */) ;;
6492 *) as_dir=$as_dir/ ;;
6493 esac
6494 for ac_prog in dd
6495 do
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6498 as_fn_executable_p "$ac_path_lt_DD" || continue
6499 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6500 cmp -s conftest.i conftest.out \
6501 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6502 fi
6503 $ac_path_lt_DD_found && break 3
6504 done
6505 done
6506 done
6507 IFS=$as_save_IFS
6508 if test -z "$ac_cv_path_lt_DD"; then
6509 :
6510 fi
6511 else
6512 ac_cv_path_lt_DD=$lt_DD
6513 fi
6514
6515 rm -f conftest.i conftest2.i conftest.out
6516 fi
6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6518 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6519
6520
6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6522 printf %s "checking how to truncate binary pipes... " >&6; }
6523 if test ${lt_cv_truncate_bin+y}
6524 then :
6525 printf %s "(cached) " >&6
6526 else $as_nop
6527 printf 0123456789abcdef0123456789abcdef >conftest.i
6528 cat conftest.i conftest.i >conftest2.i
6529 lt_cv_truncate_bin=
6530 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6531 cmp -s conftest.i conftest.out \
6532 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6533 fi
6534 rm -f conftest.i conftest2.i conftest.out
6535 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6536 fi
6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6538 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
6539
6540
6541
6542
6543
6544
6545
6546 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6547 func_cc_basename ()
6548 {
6549 for cc_temp in $*""; do
6550 case $cc_temp in
6551 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6552 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6553 \-*) ;;
6554 *) break;;
6555 esac
6556 done
6557 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6558 }
6559
6560 # Check whether --enable-libtool-lock was given.
6561 if test ${enable_libtool_lock+y}
6562 then :
6563 enableval=$enable_libtool_lock;
6564 fi
6565
6566 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6567
6568 # Some flags need to be propagated to the compiler or linker for good
6569 # libtool support.
6570 case $host in
6571 ia64-*-hpux*)
6572 # Find out what ABI is being produced by ac_compile, and set mode
6573 # options accordingly.
6574 echo 'int i;' > conftest.$ac_ext
6575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6576 (eval $ac_compile) 2>&5
6577 ac_status=$?
6578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6579 test $ac_status = 0; }; then
6580 case `$FILECMD conftest.$ac_objext` in
6581 *ELF-32*)
6582 HPUX_IA64_MODE=32
6583 ;;
6584 *ELF-64*)
6585 HPUX_IA64_MODE=64
6586 ;;
6587 esac
6588 fi
6589 rm -rf conftest*
6590 ;;
6591 *-*-irix6*)
6592 # Find out what ABI is being produced by ac_compile, and set linker
6593 # options accordingly.
6594 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6596 (eval $ac_compile) 2>&5
6597 ac_status=$?
6598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6599 test $ac_status = 0; }; then
6600 if test yes = "$lt_cv_prog_gnu_ld"; then
6601 case `$FILECMD conftest.$ac_objext` in
6602 *32-bit*)
6603 LD="${LD-ld} -melf32bsmip"
6604 ;;
6605 *N32*)
6606 LD="${LD-ld} -melf32bmipn32"
6607 ;;
6608 *64-bit*)
6609 LD="${LD-ld} -melf64bmip"
6610 ;;
6611 esac
6612 else
6613 case `$FILECMD conftest.$ac_objext` in
6614 *32-bit*)
6615 LD="${LD-ld} -32"
6616 ;;
6617 *N32*)
6618 LD="${LD-ld} -n32"
6619 ;;
6620 *64-bit*)
6621 LD="${LD-ld} -64"
6622 ;;
6623 esac
6624 fi
6625 fi
6626 rm -rf conftest*
6627 ;;
6628
6629 mips64*-*linux*)
6630 # Find out what ABI is being produced by ac_compile, and set linker
6631 # options accordingly.
6632 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6634 (eval $ac_compile) 2>&5
6635 ac_status=$?
6636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6637 test $ac_status = 0; }; then
6638 emul=elf
6639 case `$FILECMD conftest.$ac_objext` in
6640 *32-bit*)
6641 emul="${emul}32"
6642 ;;
6643 *64-bit*)
6644 emul="${emul}64"
6645 ;;
6646 esac
6647 case `$FILECMD conftest.$ac_objext` in
6648 *MSB*)
6649 emul="${emul}btsmip"
6650 ;;
6651 *LSB*)
6652 emul="${emul}ltsmip"
6653 ;;
6654 esac
6655 case `$FILECMD conftest.$ac_objext` in
6656 *N32*)
6657 emul="${emul}n32"
6658 ;;
6659 esac
6660 LD="${LD-ld} -m $emul"
6661 fi
6662 rm -rf conftest*
6663 ;;
6664
6665 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6666 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6667 # Find out what ABI is being produced by ac_compile, and set linker
6668 # options accordingly. Note that the listed cases only cover the
6669 # situations where additional linker options are needed (such as when
6670 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6671 # vice versa); the common cases where no linker options are needed do
6672 # not appear in the list.
6673 echo 'int i;' > conftest.$ac_ext
6674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6675 (eval $ac_compile) 2>&5
6676 ac_status=$?
6677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6678 test $ac_status = 0; }; then
6679 case `$FILECMD conftest.o` in
6680 *32-bit*)
6681 case $host in
6682 x86_64-*kfreebsd*-gnu)
6683 LD="${LD-ld} -m elf_i386_fbsd"
6684 ;;
6685 x86_64-*linux*)
6686 case `$FILECMD conftest.o` in
6687 *x86-64*)
6688 LD="${LD-ld} -m elf32_x86_64"
6689 ;;
6690 *)
6691 LD="${LD-ld} -m elf_i386"
6692 ;;
6693 esac
6694 ;;
6695 powerpc64le-*linux*)
6696 LD="${LD-ld} -m elf32lppclinux"
6697 ;;
6698 powerpc64-*linux*)
6699 LD="${LD-ld} -m elf32ppclinux"
6700 ;;
6701 s390x-*linux*)
6702 LD="${LD-ld} -m elf_s390"
6703 ;;
6704 sparc64-*linux*)
6705 LD="${LD-ld} -m elf32_sparc"
6706 ;;
6707 esac
6708 ;;
6709 *64-bit*)
6710 case $host in
6711 x86_64-*kfreebsd*-gnu)
6712 LD="${LD-ld} -m elf_x86_64_fbsd"
6713 ;;
6714 x86_64-*linux*)
6715 LD="${LD-ld} -m elf_x86_64"
6716 ;;
6717 powerpcle-*linux*)
6718 LD="${LD-ld} -m elf64lppc"
6719 ;;
6720 powerpc-*linux*)
6721 LD="${LD-ld} -m elf64ppc"
6722 ;;
6723 s390*-*linux*|s390*-*tpf*)
6724 LD="${LD-ld} -m elf64_s390"
6725 ;;
6726 sparc*-*linux*)
6727 LD="${LD-ld} -m elf64_sparc"
6728 ;;
6729 esac
6730 ;;
6731 esac
6732 fi
6733 rm -rf conftest*
6734 ;;
6735
6736 *-*-sco3.2v5*)
6737 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6738 SAVE_CFLAGS=$CFLAGS
6739 CFLAGS="$CFLAGS -belf"
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6741 printf %s "checking whether the C compiler needs -belf... " >&6; }
6742 if test ${lt_cv_cc_needs_belf+y}
6743 then :
6744 printf %s "(cached) " >&6
6745 else $as_nop
6746 ac_ext=c
6747 ac_cpp='$CPP $CPPFLAGS'
6748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6751
6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753 /* end confdefs.h. */
6754
6755 int
6756 main (void)
6757 {
6758
6759 ;
6760 return 0;
6761 }
6762 _ACEOF
6763 if ac_fn_c_try_link "$LINENO"
6764 then :
6765 lt_cv_cc_needs_belf=yes
6766 else $as_nop
6767 lt_cv_cc_needs_belf=no
6768 fi
6769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6770 conftest$ac_exeext conftest.$ac_ext
6771 ac_ext=c
6772 ac_cpp='$CPP $CPPFLAGS'
6773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6776
6777 fi
6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6779 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
6780 if test yes != "$lt_cv_cc_needs_belf"; then
6781 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6782 CFLAGS=$SAVE_CFLAGS
6783 fi
6784 ;;
6785 *-*solaris*)
6786 # Find out what ABI is being produced by ac_compile, and set linker
6787 # options accordingly.
6788 echo 'int i;' > conftest.$ac_ext
6789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6790 (eval $ac_compile) 2>&5
6791 ac_status=$?
6792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793 test $ac_status = 0; }; then
6794 case `$FILECMD conftest.o` in
6795 *64-bit*)
6796 case $lt_cv_prog_gnu_ld in
6797 yes*)
6798 case $host in
6799 i?86-*-solaris*|x86_64-*-solaris*)
6800 LD="${LD-ld} -m elf_x86_64"
6801 ;;
6802 sparc*-*-solaris*)
6803 LD="${LD-ld} -m elf64_sparc"
6804 ;;
6805 esac
6806 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6807 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6808 LD=${LD-ld}_sol2
6809 fi
6810 ;;
6811 *)
6812 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6813 LD="${LD-ld} -64"
6814 fi
6815 ;;
6816 esac
6817 ;;
6818 esac
6819 fi
6820 rm -rf conftest*
6821 ;;
6822 esac
6823
6824 need_locks=$enable_libtool_lock
6825
6826 if test -n "$ac_tool_prefix"; then
6827 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6828 set dummy ${ac_tool_prefix}mt; ac_word=$2
6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 printf %s "checking for $ac_word... " >&6; }
6831 if test ${ac_cv_prog_MANIFEST_TOOL+y}
6832 then :
6833 printf %s "(cached) " >&6
6834 else $as_nop
6835 if test -n "$MANIFEST_TOOL"; then
6836 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6837 else
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6840 do
6841 IFS=$as_save_IFS
6842 case $as_dir in #(((
6843 '') as_dir=./ ;;
6844 */) ;;
6845 *) as_dir=$as_dir/ ;;
6846 esac
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6849 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6851 break 2
6852 fi
6853 done
6854 done
6855 IFS=$as_save_IFS
6856
6857 fi
6858 fi
6859 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6860 if test -n "$MANIFEST_TOOL"; then
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6862 printf "%s\n" "$MANIFEST_TOOL" >&6; }
6863 else
6864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 printf "%s\n" "no" >&6; }
6866 fi
6867
6868
6869 fi
6870 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6871 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6872 # Extract the first word of "mt", so it can be a program name with args.
6873 set dummy mt; ac_word=$2
6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 printf %s "checking for $ac_word... " >&6; }
6876 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
6877 then :
6878 printf %s "(cached) " >&6
6879 else $as_nop
6880 if test -n "$ac_ct_MANIFEST_TOOL"; then
6881 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886 IFS=$as_save_IFS
6887 case $as_dir in #(((
6888 '') as_dir=./ ;;
6889 */) ;;
6890 *) as_dir=$as_dir/ ;;
6891 esac
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6894 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6896 break 2
6897 fi
6898 done
6899 done
6900 IFS=$as_save_IFS
6901
6902 fi
6903 fi
6904 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6905 if test -n "$ac_ct_MANIFEST_TOOL"; then
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6907 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
6908 else
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 printf "%s\n" "no" >&6; }
6911 fi
6912
6913 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6914 MANIFEST_TOOL=":"
6915 else
6916 case $cross_compiling:$ac_tool_warned in
6917 yes:)
6918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6919 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6920 ac_tool_warned=yes ;;
6921 esac
6922 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6923 fi
6924 else
6925 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6926 fi
6927
6928 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6930 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6931 if test ${lt_cv_path_mainfest_tool+y}
6932 then :
6933 printf %s "(cached) " >&6
6934 else $as_nop
6935 lt_cv_path_mainfest_tool=no
6936 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6937 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6938 cat conftest.err >&5
6939 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6940 lt_cv_path_mainfest_tool=yes
6941 fi
6942 rm -f conftest*
6943 fi
6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6945 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
6946 if test yes != "$lt_cv_path_mainfest_tool"; then
6947 MANIFEST_TOOL=:
6948 fi
6949
6950
6951
6952
6953
6954
6955 case $host_os in
6956 rhapsody* | darwin*)
6957 if test -n "$ac_tool_prefix"; then
6958 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6959 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 printf %s "checking for $ac_word... " >&6; }
6962 if test ${ac_cv_prog_DSYMUTIL+y}
6963 then :
6964 printf %s "(cached) " >&6
6965 else $as_nop
6966 if test -n "$DSYMUTIL"; then
6967 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6968 else
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 for as_dir in $PATH
6971 do
6972 IFS=$as_save_IFS
6973 case $as_dir in #(((
6974 '') as_dir=./ ;;
6975 */) ;;
6976 *) as_dir=$as_dir/ ;;
6977 esac
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6980 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6982 break 2
6983 fi
6984 done
6985 done
6986 IFS=$as_save_IFS
6987
6988 fi
6989 fi
6990 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6991 if test -n "$DSYMUTIL"; then
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6993 printf "%s\n" "$DSYMUTIL" >&6; }
6994 else
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 printf "%s\n" "no" >&6; }
6997 fi
6998
6999
7000 fi
7001 if test -z "$ac_cv_prog_DSYMUTIL"; then
7002 ac_ct_DSYMUTIL=$DSYMUTIL
7003 # Extract the first word of "dsymutil", so it can be a program name with args.
7004 set dummy dsymutil; ac_word=$2
7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 printf %s "checking for $ac_word... " >&6; }
7007 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7008 then :
7009 printf %s "(cached) " >&6
7010 else $as_nop
7011 if test -n "$ac_ct_DSYMUTIL"; then
7012 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017 IFS=$as_save_IFS
7018 case $as_dir in #(((
7019 '') as_dir=./ ;;
7020 */) ;;
7021 *) as_dir=$as_dir/ ;;
7022 esac
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7025 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029 done
7030 done
7031 IFS=$as_save_IFS
7032
7033 fi
7034 fi
7035 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7036 if test -n "$ac_ct_DSYMUTIL"; then
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7038 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7039 else
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 printf "%s\n" "no" >&6; }
7042 fi
7043
7044 if test "x$ac_ct_DSYMUTIL" = x; then
7045 DSYMUTIL=":"
7046 else
7047 case $cross_compiling:$ac_tool_warned in
7048 yes:)
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7050 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7051 ac_tool_warned=yes ;;
7052 esac
7053 DSYMUTIL=$ac_ct_DSYMUTIL
7054 fi
7055 else
7056 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7057 fi
7058
7059 if test -n "$ac_tool_prefix"; then
7060 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7061 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 printf %s "checking for $ac_word... " >&6; }
7064 if test ${ac_cv_prog_NMEDIT+y}
7065 then :
7066 printf %s "(cached) " >&6
7067 else $as_nop
7068 if test -n "$NMEDIT"; then
7069 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074 IFS=$as_save_IFS
7075 case $as_dir in #(((
7076 '') as_dir=./ ;;
7077 */) ;;
7078 *) as_dir=$as_dir/ ;;
7079 esac
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7084 break 2
7085 fi
7086 done
7087 done
7088 IFS=$as_save_IFS
7089
7090 fi
7091 fi
7092 NMEDIT=$ac_cv_prog_NMEDIT
7093 if test -n "$NMEDIT"; then
7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7095 printf "%s\n" "$NMEDIT" >&6; }
7096 else
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 printf "%s\n" "no" >&6; }
7099 fi
7100
7101
7102 fi
7103 if test -z "$ac_cv_prog_NMEDIT"; then
7104 ac_ct_NMEDIT=$NMEDIT
7105 # Extract the first word of "nmedit", so it can be a program name with args.
7106 set dummy nmedit; ac_word=$2
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 printf %s "checking for $ac_word... " >&6; }
7109 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7110 then :
7111 printf %s "(cached) " >&6
7112 else $as_nop
7113 if test -n "$ac_ct_NMEDIT"; then
7114 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7118 do
7119 IFS=$as_save_IFS
7120 case $as_dir in #(((
7121 '') as_dir=./ ;;
7122 */) ;;
7123 *) as_dir=$as_dir/ ;;
7124 esac
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7129 break 2
7130 fi
7131 done
7132 done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7138 if test -n "$ac_ct_NMEDIT"; then
7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7140 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7141 else
7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 printf "%s\n" "no" >&6; }
7144 fi
7145
7146 if test "x$ac_ct_NMEDIT" = x; then
7147 NMEDIT=":"
7148 else
7149 case $cross_compiling:$ac_tool_warned in
7150 yes:)
7151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7152 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7153 ac_tool_warned=yes ;;
7154 esac
7155 NMEDIT=$ac_ct_NMEDIT
7156 fi
7157 else
7158 NMEDIT="$ac_cv_prog_NMEDIT"
7159 fi
7160
7161 if test -n "$ac_tool_prefix"; then
7162 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7163 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 printf %s "checking for $ac_word... " >&6; }
7166 if test ${ac_cv_prog_LIPO+y}
7167 then :
7168 printf %s "(cached) " >&6
7169 else $as_nop
7170 if test -n "$LIPO"; then
7171 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176 IFS=$as_save_IFS
7177 case $as_dir in #(((
7178 '') as_dir=./ ;;
7179 */) ;;
7180 *) as_dir=$as_dir/ ;;
7181 esac
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7184 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7186 break 2
7187 fi
7188 done
7189 done
7190 IFS=$as_save_IFS
7191
7192 fi
7193 fi
7194 LIPO=$ac_cv_prog_LIPO
7195 if test -n "$LIPO"; then
7196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7197 printf "%s\n" "$LIPO" >&6; }
7198 else
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200 printf "%s\n" "no" >&6; }
7201 fi
7202
7203
7204 fi
7205 if test -z "$ac_cv_prog_LIPO"; then
7206 ac_ct_LIPO=$LIPO
7207 # Extract the first word of "lipo", so it can be a program name with args.
7208 set dummy lipo; ac_word=$2
7209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210 printf %s "checking for $ac_word... " >&6; }
7211 if test ${ac_cv_prog_ac_ct_LIPO+y}
7212 then :
7213 printf %s "(cached) " >&6
7214 else $as_nop
7215 if test -n "$ac_ct_LIPO"; then
7216 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7217 else
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 for as_dir in $PATH
7220 do
7221 IFS=$as_save_IFS
7222 case $as_dir in #(((
7223 '') as_dir=./ ;;
7224 */) ;;
7225 *) as_dir=$as_dir/ ;;
7226 esac
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7229 ac_cv_prog_ac_ct_LIPO="lipo"
7230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7231 break 2
7232 fi
7233 done
7234 done
7235 IFS=$as_save_IFS
7236
7237 fi
7238 fi
7239 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7240 if test -n "$ac_ct_LIPO"; then
7241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7242 printf "%s\n" "$ac_ct_LIPO" >&6; }
7243 else
7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245 printf "%s\n" "no" >&6; }
7246 fi
7247
7248 if test "x$ac_ct_LIPO" = x; then
7249 LIPO=":"
7250 else
7251 case $cross_compiling:$ac_tool_warned in
7252 yes:)
7253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7254 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7255 ac_tool_warned=yes ;;
7256 esac
7257 LIPO=$ac_ct_LIPO
7258 fi
7259 else
7260 LIPO="$ac_cv_prog_LIPO"
7261 fi
7262
7263 if test -n "$ac_tool_prefix"; then
7264 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7265 set dummy ${ac_tool_prefix}otool; ac_word=$2
7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267 printf %s "checking for $ac_word... " >&6; }
7268 if test ${ac_cv_prog_OTOOL+y}
7269 then :
7270 printf %s "(cached) " >&6
7271 else $as_nop
7272 if test -n "$OTOOL"; then
7273 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7274 else
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7277 do
7278 IFS=$as_save_IFS
7279 case $as_dir in #(((
7280 '') as_dir=./ ;;
7281 */) ;;
7282 *) as_dir=$as_dir/ ;;
7283 esac
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7286 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7288 break 2
7289 fi
7290 done
7291 done
7292 IFS=$as_save_IFS
7293
7294 fi
7295 fi
7296 OTOOL=$ac_cv_prog_OTOOL
7297 if test -n "$OTOOL"; then
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7299 printf "%s\n" "$OTOOL" >&6; }
7300 else
7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 printf "%s\n" "no" >&6; }
7303 fi
7304
7305
7306 fi
7307 if test -z "$ac_cv_prog_OTOOL"; then
7308 ac_ct_OTOOL=$OTOOL
7309 # Extract the first word of "otool", so it can be a program name with args.
7310 set dummy otool; ac_word=$2
7311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 printf %s "checking for $ac_word... " >&6; }
7313 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7314 then :
7315 printf %s "(cached) " >&6
7316 else $as_nop
7317 if test -n "$ac_ct_OTOOL"; then
7318 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7319 else
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7322 do
7323 IFS=$as_save_IFS
7324 case $as_dir in #(((
7325 '') as_dir=./ ;;
7326 */) ;;
7327 *) as_dir=$as_dir/ ;;
7328 esac
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7331 ac_cv_prog_ac_ct_OTOOL="otool"
7332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7333 break 2
7334 fi
7335 done
7336 done
7337 IFS=$as_save_IFS
7338
7339 fi
7340 fi
7341 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7342 if test -n "$ac_ct_OTOOL"; then
7343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7344 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7345 else
7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 printf "%s\n" "no" >&6; }
7348 fi
7349
7350 if test "x$ac_ct_OTOOL" = x; then
7351 OTOOL=":"
7352 else
7353 case $cross_compiling:$ac_tool_warned in
7354 yes:)
7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7356 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7357 ac_tool_warned=yes ;;
7358 esac
7359 OTOOL=$ac_ct_OTOOL
7360 fi
7361 else
7362 OTOOL="$ac_cv_prog_OTOOL"
7363 fi
7364
7365 if test -n "$ac_tool_prefix"; then
7366 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7367 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7369 printf %s "checking for $ac_word... " >&6; }
7370 if test ${ac_cv_prog_OTOOL64+y}
7371 then :
7372 printf %s "(cached) " >&6
7373 else $as_nop
7374 if test -n "$OTOOL64"; then
7375 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7376 else
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7379 do
7380 IFS=$as_save_IFS
7381 case $as_dir in #(((
7382 '') as_dir=./ ;;
7383 */) ;;
7384 *) as_dir=$as_dir/ ;;
7385 esac
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7388 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7390 break 2
7391 fi
7392 done
7393 done
7394 IFS=$as_save_IFS
7395
7396 fi
7397 fi
7398 OTOOL64=$ac_cv_prog_OTOOL64
7399 if test -n "$OTOOL64"; then
7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7401 printf "%s\n" "$OTOOL64" >&6; }
7402 else
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 printf "%s\n" "no" >&6; }
7405 fi
7406
7407
7408 fi
7409 if test -z "$ac_cv_prog_OTOOL64"; then
7410 ac_ct_OTOOL64=$OTOOL64
7411 # Extract the first word of "otool64", so it can be a program name with args.
7412 set dummy otool64; ac_word=$2
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 printf %s "checking for $ac_word... " >&6; }
7415 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7416 then :
7417 printf %s "(cached) " >&6
7418 else $as_nop
7419 if test -n "$ac_ct_OTOOL64"; then
7420 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425 IFS=$as_save_IFS
7426 case $as_dir in #(((
7427 '') as_dir=./ ;;
7428 */) ;;
7429 *) as_dir=$as_dir/ ;;
7430 esac
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7433 ac_cv_prog_ac_ct_OTOOL64="otool64"
7434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7435 break 2
7436 fi
7437 done
7438 done
7439 IFS=$as_save_IFS
7440
7441 fi
7442 fi
7443 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7444 if test -n "$ac_ct_OTOOL64"; then
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7446 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7447 else
7448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 printf "%s\n" "no" >&6; }
7450 fi
7451
7452 if test "x$ac_ct_OTOOL64" = x; then
7453 OTOOL64=":"
7454 else
7455 case $cross_compiling:$ac_tool_warned in
7456 yes:)
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7458 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7459 ac_tool_warned=yes ;;
7460 esac
7461 OTOOL64=$ac_ct_OTOOL64
7462 fi
7463 else
7464 OTOOL64="$ac_cv_prog_OTOOL64"
7465 fi
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7494 printf %s "checking for -single_module linker flag... " >&6; }
7495 if test ${lt_cv_apple_cc_single_mod+y}
7496 then :
7497 printf %s "(cached) " >&6
7498 else $as_nop
7499 lt_cv_apple_cc_single_mod=no
7500 if test -z "$LT_MULTI_MODULE"; then
7501 # By default we will add the -single_module flag. You can override
7502 # by either setting the environment variable LT_MULTI_MODULE
7503 # non-empty at configure time, or by adding -multi_module to the
7504 # link flags.
7505 rm -rf libconftest.dylib*
7506 echo "int foo(void){return 1;}" > conftest.c
7507 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7508 -dynamiclib -Wl,-single_module conftest.c" >&5
7509 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7510 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7511 _lt_result=$?
7512 # If there is a non-empty error log, and "single_module"
7513 # appears in it, assume the flag caused a linker warning
7514 if test -s conftest.err && $GREP single_module conftest.err; then
7515 cat conftest.err >&5
7516 # Otherwise, if the output was created with a 0 exit code from
7517 # the compiler, it worked.
7518 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7519 lt_cv_apple_cc_single_mod=yes
7520 else
7521 cat conftest.err >&5
7522 fi
7523 rm -rf libconftest.dylib*
7524 rm -f conftest.*
7525 fi
7526 fi
7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7528 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
7529
7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7531 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
7532 if test ${lt_cv_ld_exported_symbols_list+y}
7533 then :
7534 printf %s "(cached) " >&6
7535 else $as_nop
7536 lt_cv_ld_exported_symbols_list=no
7537 save_LDFLAGS=$LDFLAGS
7538 echo "_main" > conftest.sym
7539 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h. */
7542
7543 int
7544 main (void)
7545 {
7546
7547 ;
7548 return 0;
7549 }
7550 _ACEOF
7551 if ac_fn_c_try_link "$LINENO"
7552 then :
7553 lt_cv_ld_exported_symbols_list=yes
7554 else $as_nop
7555 lt_cv_ld_exported_symbols_list=no
7556 fi
7557 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7558 conftest$ac_exeext conftest.$ac_ext
7559 LDFLAGS=$save_LDFLAGS
7560
7561 fi
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7563 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
7564
7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7566 printf %s "checking for -force_load linker flag... " >&6; }
7567 if test ${lt_cv_ld_force_load+y}
7568 then :
7569 printf %s "(cached) " >&6
7570 else $as_nop
7571 lt_cv_ld_force_load=no
7572 cat > conftest.c << _LT_EOF
7573 int forced_loaded() { return 2;}
7574 _LT_EOF
7575 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7576 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7577 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
7578 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
7579 echo "$RANLIB libconftest.a" >&5
7580 $RANLIB libconftest.a 2>&5
7581 cat > conftest.c << _LT_EOF
7582 int main() { return 0;}
7583 _LT_EOF
7584 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7585 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7586 _lt_result=$?
7587 if test -s conftest.err && $GREP force_load conftest.err; then
7588 cat conftest.err >&5
7589 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7590 lt_cv_ld_force_load=yes
7591 else
7592 cat conftest.err >&5
7593 fi
7594 rm -f conftest.err libconftest.a conftest conftest.c
7595 rm -rf conftest.dSYM
7596
7597 fi
7598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7599 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
7600 case $host_os in
7601 rhapsody* | darwin1.[012])
7602 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7603 darwin1.*)
7604 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7605 darwin*)
7606 case $MACOSX_DEPLOYMENT_TARGET,$host in
7607 10.[012],*|,*powerpc*-darwin[5-8]*)
7608 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7609 *)
7610 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7611 esac
7612 ;;
7613 esac
7614 if test yes = "$lt_cv_apple_cc_single_mod"; then
7615 _lt_dar_single_mod='$single_module'
7616 fi
7617 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7618 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7619 else
7620 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7621 fi
7622 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7623 _lt_dsymutil='~$DSYMUTIL $lib || :'
7624 else
7625 _lt_dsymutil=
7626 fi
7627 ;;
7628 esac
7629
7630 # func_munge_path_list VARIABLE PATH
7631 # -----------------------------------
7632 # VARIABLE is name of variable containing _space_ separated list of
7633 # directories to be munged by the contents of PATH, which is string
7634 # having a format:
7635 # "DIR[:DIR]:"
7636 # string "DIR[ DIR]" will be prepended to VARIABLE
7637 # ":DIR[:DIR]"
7638 # string "DIR[ DIR]" will be appended to VARIABLE
7639 # "DIRP[:DIRP]::[DIRA:]DIRA"
7640 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7641 # "DIRA[ DIRA]" will be appended to VARIABLE
7642 # "DIR[:DIR]"
7643 # VARIABLE will be replaced by "DIR[ DIR]"
7644 func_munge_path_list ()
7645 {
7646 case x$2 in
7647 x)
7648 ;;
7649 *:)
7650 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7651 ;;
7652 x:*)
7653 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7654 ;;
7655 *::*)
7656 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7657 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7658 ;;
7659 *)
7660 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7661 ;;
7662 esac
7663 }
7664
7665 ac_header= ac_cache=
7666 for ac_item in $ac_header_c_list
7667 do
7668 if test $ac_cache; then
7669 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7670 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7671 printf "%s\n" "#define $ac_item 1" >> confdefs.h
7672 fi
7673 ac_header= ac_cache=
7674 elif test $ac_header; then
7675 ac_cache=$ac_item
7676 else
7677 ac_header=$ac_item
7678 fi
7679 done
7680
7681
7682
7683
7684
7685
7686
7687
7688 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7689 then :
7690
7691 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
7692
7693 fi
7694 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7695 "
7696 if test "x$ac_cv_header_dlfcn_h" = xyes
7697 then :
7698 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
7699
7700 fi
7701
7702
7703
7704
7705
7706 # Set options
7707
7708
7709
7710 enable_dlopen=no
7711
7712
7713 enable_win32_dll=no
7714
7715
7716 # Check whether --enable-shared was given.
7717 if test ${enable_shared+y}
7718 then :
7719 enableval=$enable_shared; p=${PACKAGE-default}
7720 case $enableval in
7721 yes) enable_shared=yes ;;
7722 no) enable_shared=no ;;
7723 *)
7724 enable_shared=no
7725 # Look at the argument we got. We use all the common list separators.
7726 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7727 for pkg in $enableval; do
7728 IFS=$lt_save_ifs
7729 if test "X$pkg" = "X$p"; then
7730 enable_shared=yes
7731 fi
7732 done
7733 IFS=$lt_save_ifs
7734 ;;
7735 esac
7736 else $as_nop
7737 enable_shared=yes
7738 fi
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748 # Check whether --enable-static was given.
7749 if test ${enable_static+y}
7750 then :
7751 enableval=$enable_static; p=${PACKAGE-default}
7752 case $enableval in
7753 yes) enable_static=yes ;;
7754 no) enable_static=no ;;
7755 *)
7756 enable_static=no
7757 # Look at the argument we got. We use all the common list separators.
7758 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7759 for pkg in $enableval; do
7760 IFS=$lt_save_ifs
7761 if test "X$pkg" = "X$p"; then
7762 enable_static=yes
7763 fi
7764 done
7765 IFS=$lt_save_ifs
7766 ;;
7767 esac
7768 else $as_nop
7769 enable_static=yes
7770 fi
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781 # Check whether --with-pic was given.
7782 if test ${with_pic+y}
7783 then :
7784 withval=$with_pic; lt_p=${PACKAGE-default}
7785 case $withval in
7786 yes|no) pic_mode=$withval ;;
7787 *)
7788 pic_mode=default
7789 # Look at the argument we got. We use all the common list separators.
7790 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7791 for lt_pkg in $withval; do
7792 IFS=$lt_save_ifs
7793 if test "X$lt_pkg" = "X$lt_p"; then
7794 pic_mode=yes
7795 fi
7796 done
7797 IFS=$lt_save_ifs
7798 ;;
7799 esac
7800 else $as_nop
7801 pic_mode=default
7802 fi
7803
7804
7805
7806
7807
7808
7809
7810
7811 # Check whether --enable-fast-install was given.
7812 if test ${enable_fast_install+y}
7813 then :
7814 enableval=$enable_fast_install; p=${PACKAGE-default}
7815 case $enableval in
7816 yes) enable_fast_install=yes ;;
7817 no) enable_fast_install=no ;;
7818 *)
7819 enable_fast_install=no
7820 # Look at the argument we got. We use all the common list separators.
7821 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7822 for pkg in $enableval; do
7823 IFS=$lt_save_ifs
7824 if test "X$pkg" = "X$p"; then
7825 enable_fast_install=yes
7826 fi
7827 done
7828 IFS=$lt_save_ifs
7829 ;;
7830 esac
7831 else $as_nop
7832 enable_fast_install=yes
7833 fi
7834
7835
7836
7837
7838
7839
7840
7841
7842 shared_archive_member_spec=
7843 case $host,$enable_shared in
7844 power*-*-aix[5-9]*,yes)
7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7846 printf %s "checking which variant of shared library versioning to provide... " >&6; }
7847
7848 # Check whether --with-aix-soname was given.
7849 if test ${with_aix_soname+y}
7850 then :
7851 withval=$with_aix_soname; case $withval in
7852 aix|svr4|both)
7853 ;;
7854 *)
7855 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7856 ;;
7857 esac
7858 lt_cv_with_aix_soname=$with_aix_soname
7859 else $as_nop
7860 if test ${lt_cv_with_aix_soname+y}
7861 then :
7862 printf %s "(cached) " >&6
7863 else $as_nop
7864 lt_cv_with_aix_soname=aix
7865 fi
7866
7867 with_aix_soname=$lt_cv_with_aix_soname
7868 fi
7869
7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7871 printf "%s\n" "$with_aix_soname" >&6; }
7872 if test aix != "$with_aix_soname"; then
7873 # For the AIX way of multilib, we name the shared archive member
7874 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7875 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7876 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7877 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7878 if test 64 = "${OBJECT_MODE-32}"; then
7879 shared_archive_member_spec=shr_64
7880 else
7881 shared_archive_member_spec=shr
7882 fi
7883 fi
7884 ;;
7885 *)
7886 with_aix_soname=aix
7887 ;;
7888 esac
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899 # This can be used to rebuild libtool when needed
7900 LIBTOOL_DEPS=$ltmain
7901
7902 # Always use our own libtool.
7903 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934 test -z "$LN_S" && LN_S="ln -s"
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949 if test -n "${ZSH_VERSION+set}"; then
7950 setopt NO_GLOB_SUBST
7951 fi
7952
7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7954 printf %s "checking for objdir... " >&6; }
7955 if test ${lt_cv_objdir+y}
7956 then :
7957 printf %s "(cached) " >&6
7958 else $as_nop
7959 rm -f .libs 2>/dev/null
7960 mkdir .libs 2>/dev/null
7961 if test -d .libs; then
7962 lt_cv_objdir=.libs
7963 else
7964 # MS-DOS does not allow filenames that begin with a dot.
7965 lt_cv_objdir=_libs
7966 fi
7967 rmdir .libs 2>/dev/null
7968 fi
7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7970 printf "%s\n" "$lt_cv_objdir" >&6; }
7971 objdir=$lt_cv_objdir
7972
7973
7974
7975
7976
7977 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
7978
7979
7980
7981
7982 case $host_os in
7983 aix3*)
7984 # AIX sometimes has problems with the GCC collect2 program. For some
7985 # reason, if we set the COLLECT_NAMES environment variable, the problems
7986 # vanish in a puff of smoke.
7987 if test set != "${COLLECT_NAMES+set}"; then
7988 COLLECT_NAMES=
7989 export COLLECT_NAMES
7990 fi
7991 ;;
7992 esac
7993
7994 # Global variables:
7995 ofile=libtool
7996 can_build_shared=yes
7997
7998 # All known linkers require a '.a' archive for static linking (except MSVC and
7999 # ICC, which need '.lib').
8000 libext=a
8001
8002 with_gnu_ld=$lt_cv_prog_gnu_ld
8003
8004 old_CC=$CC
8005 old_CFLAGS=$CFLAGS
8006
8007 # Set sane defaults for various variables
8008 test -z "$CC" && CC=cc
8009 test -z "$LTCC" && LTCC=$CC
8010 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8011 test -z "$LD" && LD=ld
8012 test -z "$ac_objext" && ac_objext=o
8013
8014 func_cc_basename $compiler
8015 cc_basename=$func_cc_basename_result
8016
8017
8018 # Only perform the check for file, if the check method requires it
8019 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8020 case $deplibs_check_method in
8021 file_magic*)
8022 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8024 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8025 if test ${lt_cv_path_MAGIC_CMD+y}
8026 then :
8027 printf %s "(cached) " >&6
8028 else $as_nop
8029 case $MAGIC_CMD in
8030 [\\/*] | ?:[\\/]*)
8031 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8032 ;;
8033 *)
8034 lt_save_MAGIC_CMD=$MAGIC_CMD
8035 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8036 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8037 for ac_dir in $ac_dummy; do
8038 IFS=$lt_save_ifs
8039 test -z "$ac_dir" && ac_dir=.
8040 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8041 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8042 if test -n "$file_magic_test_file"; then
8043 case $deplibs_check_method in
8044 "file_magic "*)
8045 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8046 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8047 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8048 $EGREP "$file_magic_regex" > /dev/null; then
8049 :
8050 else
8051 cat <<_LT_EOF 1>&2
8052
8053 *** Warning: the command libtool uses to detect shared libraries,
8054 *** $file_magic_cmd, produces output that libtool cannot recognize.
8055 *** The result is that libtool may fail to recognize shared libraries
8056 *** as such. This will affect the creation of libtool libraries that
8057 *** depend on shared libraries, but programs linked with such libtool
8058 *** libraries will work regardless of this problem. Nevertheless, you
8059 *** may want to report the problem to your system manager and/or to
8060 *** [email protected]
8061
8062 _LT_EOF
8063 fi ;;
8064 esac
8065 fi
8066 break
8067 fi
8068 done
8069 IFS=$lt_save_ifs
8070 MAGIC_CMD=$lt_save_MAGIC_CMD
8071 ;;
8072 esac
8073 fi
8074
8075 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8076 if test -n "$MAGIC_CMD"; then
8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8078 printf "%s\n" "$MAGIC_CMD" >&6; }
8079 else
8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 printf "%s\n" "no" >&6; }
8082 fi
8083
8084
8085
8086
8087
8088 if test -z "$lt_cv_path_MAGIC_CMD"; then
8089 if test -n "$ac_tool_prefix"; then
8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8091 printf %s "checking for file... " >&6; }
8092 if test ${lt_cv_path_MAGIC_CMD+y}
8093 then :
8094 printf %s "(cached) " >&6
8095 else $as_nop
8096 case $MAGIC_CMD in
8097 [\\/*] | ?:[\\/]*)
8098 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8099 ;;
8100 *)
8101 lt_save_MAGIC_CMD=$MAGIC_CMD
8102 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8103 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8104 for ac_dir in $ac_dummy; do
8105 IFS=$lt_save_ifs
8106 test -z "$ac_dir" && ac_dir=.
8107 if test -f "$ac_dir/file"; then
8108 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8109 if test -n "$file_magic_test_file"; then
8110 case $deplibs_check_method in
8111 "file_magic "*)
8112 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8113 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8114 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8115 $EGREP "$file_magic_regex" > /dev/null; then
8116 :
8117 else
8118 cat <<_LT_EOF 1>&2
8119
8120 *** Warning: the command libtool uses to detect shared libraries,
8121 *** $file_magic_cmd, produces output that libtool cannot recognize.
8122 *** The result is that libtool may fail to recognize shared libraries
8123 *** as such. This will affect the creation of libtool libraries that
8124 *** depend on shared libraries, but programs linked with such libtool
8125 *** libraries will work regardless of this problem. Nevertheless, you
8126 *** may want to report the problem to your system manager and/or to
8127 *** [email protected]
8128
8129 _LT_EOF
8130 fi ;;
8131 esac
8132 fi
8133 break
8134 fi
8135 done
8136 IFS=$lt_save_ifs
8137 MAGIC_CMD=$lt_save_MAGIC_CMD
8138 ;;
8139 esac
8140 fi
8141
8142 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8143 if test -n "$MAGIC_CMD"; then
8144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8145 printf "%s\n" "$MAGIC_CMD" >&6; }
8146 else
8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 printf "%s\n" "no" >&6; }
8149 fi
8150
8151
8152 else
8153 MAGIC_CMD=:
8154 fi
8155 fi
8156
8157 fi
8158 ;;
8159 esac
8160
8161 # Use C for the default configuration in the libtool script
8162
8163 lt_save_CC=$CC
8164 ac_ext=c
8165 ac_cpp='$CPP $CPPFLAGS'
8166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8169
8170
8171 # Source file extension for C test sources.
8172 ac_ext=c
8173
8174 # Object file extension for compiled C test sources.
8175 objext=o
8176 objext=$objext
8177
8178 # Code to be used in simple compile tests
8179 lt_simple_compile_test_code="int some_variable = 0;"
8180
8181 # Code to be used in simple link tests
8182 lt_simple_link_test_code='int main(){return(0);}'
8183
8184
8185
8186
8187
8188
8189
8190 # If no C compiler was specified, use CC.
8191 LTCC=${LTCC-"$CC"}
8192
8193 # If no C compiler flags were specified, use CFLAGS.
8194 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8195
8196 # Allow CC to be a program name with arguments.
8197 compiler=$CC
8198
8199 # Save the default compiler, since it gets overwritten when the other
8200 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8201 compiler_DEFAULT=$CC
8202
8203 # save warnings/boilerplate of simple test code
8204 ac_outfile=conftest.$ac_objext
8205 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8206 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8207 _lt_compiler_boilerplate=`cat conftest.err`
8208 $RM conftest*
8209
8210 ac_outfile=conftest.$ac_objext
8211 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8212 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8213 _lt_linker_boilerplate=`cat conftest.err`
8214 $RM -r conftest*
8215
8216
8217 ## CAVEAT EMPTOR:
8218 ## There is no encapsulation within the following macros, do not change
8219 ## the running order or otherwise move them around unless you know exactly
8220 ## what you are doing...
8221 if test -n "$compiler"; then
8222
8223 lt_prog_compiler_no_builtin_flag=
8224
8225 if test yes = "$GCC"; then
8226 case $cc_basename in
8227 nvcc*)
8228 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8229 *)
8230 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8231 esac
8232
8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8234 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8235 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8236 then :
8237 printf %s "(cached) " >&6
8238 else $as_nop
8239 lt_cv_prog_compiler_rtti_exceptions=no
8240 ac_outfile=conftest.$ac_objext
8241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8242 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8243 # Insert the option either (1) after the last *FLAGS variable, or
8244 # (2) before a word containing "conftest.", or (3) at the end.
8245 # Note that $ac_compile itself does not contain backslashes and begins
8246 # with a dollar sign (not a hyphen), so the echo should work correctly.
8247 # The option is referenced via a variable to avoid confusing sed.
8248 lt_compile=`echo "$ac_compile" | $SED \
8249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8251 -e 's:$: $lt_compiler_flag:'`
8252 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8253 (eval "$lt_compile" 2>conftest.err)
8254 ac_status=$?
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 if (exit $ac_status) && test -s "$ac_outfile"; then
8258 # The compiler can only warn and ignore the option if not recognized
8259 # So say no if there are warnings other than the usual output.
8260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8262 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8263 lt_cv_prog_compiler_rtti_exceptions=yes
8264 fi
8265 fi
8266 $RM conftest*
8267
8268 fi
8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8270 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8271
8272 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8273 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8274 else
8275 :
8276 fi
8277
8278 fi
8279
8280
8281
8282
8283
8284
8285 lt_prog_compiler_wl=
8286 lt_prog_compiler_pic=
8287 lt_prog_compiler_static=
8288
8289
8290 if test yes = "$GCC"; then
8291 lt_prog_compiler_wl='-Wl,'
8292 lt_prog_compiler_static='-static'
8293
8294 case $host_os in
8295 aix*)
8296 # All AIX code is PIC.
8297 if test ia64 = "$host_cpu"; then
8298 # AIX 5 now supports IA64 processor
8299 lt_prog_compiler_static='-Bstatic'
8300 fi
8301 lt_prog_compiler_pic='-fPIC'
8302 ;;
8303
8304 amigaos*)
8305 case $host_cpu in
8306 powerpc)
8307 # see comment about AmigaOS4 .so support
8308 lt_prog_compiler_pic='-fPIC'
8309 ;;
8310 m68k)
8311 # FIXME: we need at least 68020 code to build shared libraries, but
8312 # adding the '-m68020' flag to GCC prevents building anything better,
8313 # like '-m68040'.
8314 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8315 ;;
8316 esac
8317 ;;
8318
8319 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8320 # PIC is the default for these OSes.
8321 ;;
8322
8323 mingw* | cygwin* | pw32* | os2* | cegcc*)
8324 # This hack is so that the source file can tell whether it is being
8325 # built for inclusion in a dll (and should export symbols for example).
8326 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8327 # (--disable-auto-import) libraries
8328 lt_prog_compiler_pic='-DDLL_EXPORT'
8329 case $host_os in
8330 os2*)
8331 lt_prog_compiler_static='$wl-static'
8332 ;;
8333 esac
8334 ;;
8335
8336 darwin* | rhapsody*)
8337 # PIC is the default on this platform
8338 # Common symbols not allowed in MH_DYLIB files
8339 lt_prog_compiler_pic='-fno-common'
8340 ;;
8341
8342 haiku*)
8343 # PIC is the default for Haiku.
8344 # The "-static" flag exists, but is broken.
8345 lt_prog_compiler_static=
8346 ;;
8347
8348 hpux*)
8349 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8350 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8351 # sets the default TLS model and affects inlining.
8352 case $host_cpu in
8353 hppa*64*)
8354 # +Z the default
8355 ;;
8356 *)
8357 lt_prog_compiler_pic='-fPIC'
8358 ;;
8359 esac
8360 ;;
8361
8362 interix[3-9]*)
8363 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8364 # Instead, we relocate shared libraries at runtime.
8365 ;;
8366
8367 msdosdjgpp*)
8368 # Just because we use GCC doesn't mean we suddenly get shared libraries
8369 # on systems that don't support them.
8370 lt_prog_compiler_can_build_shared=no
8371 enable_shared=no
8372 ;;
8373
8374 *nto* | *qnx*)
8375 # QNX uses GNU C++, but need to define -shared option too, otherwise
8376 # it will coredump.
8377 lt_prog_compiler_pic='-fPIC -shared'
8378 ;;
8379
8380 sysv4*MP*)
8381 if test -d /usr/nec; then
8382 lt_prog_compiler_pic=-Kconform_pic
8383 fi
8384 ;;
8385
8386 *)
8387 lt_prog_compiler_pic='-fPIC'
8388 ;;
8389 esac
8390
8391 case $cc_basename in
8392 nvcc*) # Cuda Compiler Driver 2.2
8393 lt_prog_compiler_wl='-Xlinker '
8394 if test -n "$lt_prog_compiler_pic"; then
8395 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8396 fi
8397 ;;
8398 esac
8399 else
8400 # PORTME Check for flag to pass linker flags through the system compiler.
8401 case $host_os in
8402 aix*)
8403 lt_prog_compiler_wl='-Wl,'
8404 if test ia64 = "$host_cpu"; then
8405 # AIX 5 now supports IA64 processor
8406 lt_prog_compiler_static='-Bstatic'
8407 else
8408 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8409 fi
8410 ;;
8411
8412 darwin* | rhapsody*)
8413 # PIC is the default on this platform
8414 # Common symbols not allowed in MH_DYLIB files
8415 lt_prog_compiler_pic='-fno-common'
8416 case $cc_basename in
8417 nagfor*)
8418 # NAG Fortran compiler
8419 lt_prog_compiler_wl='-Wl,-Wl,,'
8420 lt_prog_compiler_pic='-PIC'
8421 lt_prog_compiler_static='-Bstatic'
8422 ;;
8423 esac
8424 ;;
8425
8426 mingw* | cygwin* | pw32* | os2* | cegcc*)
8427 # This hack is so that the source file can tell whether it is being
8428 # built for inclusion in a dll (and should export symbols for example).
8429 lt_prog_compiler_pic='-DDLL_EXPORT'
8430 case $host_os in
8431 os2*)
8432 lt_prog_compiler_static='$wl-static'
8433 ;;
8434 esac
8435 ;;
8436
8437 hpux9* | hpux10* | hpux11*)
8438 lt_prog_compiler_wl='-Wl,'
8439 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8440 # not for PA HP-UX.
8441 case $host_cpu in
8442 hppa*64*|ia64*)
8443 # +Z the default
8444 ;;
8445 *)
8446 lt_prog_compiler_pic='+Z'
8447 ;;
8448 esac
8449 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8450 lt_prog_compiler_static='$wl-a ${wl}archive'
8451 ;;
8452
8453 irix5* | irix6* | nonstopux*)
8454 lt_prog_compiler_wl='-Wl,'
8455 # PIC (with -KPIC) is the default.
8456 lt_prog_compiler_static='-non_shared'
8457 ;;
8458
8459 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8460 case $cc_basename in
8461 # old Intel for x86_64, which still supported -KPIC.
8462 ecc*)
8463 lt_prog_compiler_wl='-Wl,'
8464 lt_prog_compiler_pic='-KPIC'
8465 lt_prog_compiler_static='-static'
8466 ;;
8467 # flang / f18. f95 an alias for gfortran or flang on Debian
8468 flang* | f18* | f95*)
8469 lt_prog_compiler_wl='-Wl,'
8470 lt_prog_compiler_pic='-fPIC'
8471 lt_prog_compiler_static='-static'
8472 ;;
8473 # icc used to be incompatible with GCC.
8474 # ICC 10 doesn't accept -KPIC any more.
8475 icc* | ifort*)
8476 lt_prog_compiler_wl='-Wl,'
8477 lt_prog_compiler_pic='-fPIC'
8478 lt_prog_compiler_static='-static'
8479 ;;
8480 # Lahey Fortran 8.1.
8481 lf95*)
8482 lt_prog_compiler_wl='-Wl,'
8483 lt_prog_compiler_pic='--shared'
8484 lt_prog_compiler_static='--static'
8485 ;;
8486 nagfor*)
8487 # NAG Fortran compiler
8488 lt_prog_compiler_wl='-Wl,-Wl,,'
8489 lt_prog_compiler_pic='-PIC'
8490 lt_prog_compiler_static='-Bstatic'
8491 ;;
8492 tcc*)
8493 # Fabrice Bellard et al's Tiny C Compiler
8494 lt_prog_compiler_wl='-Wl,'
8495 lt_prog_compiler_pic='-fPIC'
8496 lt_prog_compiler_static='-static'
8497 ;;
8498 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8499 # Portland Group compilers (*not* the Pentium gcc compiler,
8500 # which looks to be a dead project)
8501 lt_prog_compiler_wl='-Wl,'
8502 lt_prog_compiler_pic='-fpic'
8503 lt_prog_compiler_static='-Bstatic'
8504 ;;
8505 ccc*)
8506 lt_prog_compiler_wl='-Wl,'
8507 # All Alpha code is PIC.
8508 lt_prog_compiler_static='-non_shared'
8509 ;;
8510 xl* | bgxl* | bgf* | mpixl*)
8511 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8512 lt_prog_compiler_wl='-Wl,'
8513 lt_prog_compiler_pic='-qpic'
8514 lt_prog_compiler_static='-qstaticlink'
8515 ;;
8516 *)
8517 case `$CC -V 2>&1 | $SED 5q` in
8518 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8519 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8520 lt_prog_compiler_pic='-KPIC'
8521 lt_prog_compiler_static='-Bstatic'
8522 lt_prog_compiler_wl=''
8523 ;;
8524 *Sun\ F* | *Sun*Fortran*)
8525 lt_prog_compiler_pic='-KPIC'
8526 lt_prog_compiler_static='-Bstatic'
8527 lt_prog_compiler_wl='-Qoption ld '
8528 ;;
8529 *Sun\ C*)
8530 # Sun C 5.9
8531 lt_prog_compiler_pic='-KPIC'
8532 lt_prog_compiler_static='-Bstatic'
8533 lt_prog_compiler_wl='-Wl,'
8534 ;;
8535 *Intel*\ [CF]*Compiler*)
8536 lt_prog_compiler_wl='-Wl,'
8537 lt_prog_compiler_pic='-fPIC'
8538 lt_prog_compiler_static='-static'
8539 ;;
8540 *Portland\ Group*)
8541 lt_prog_compiler_wl='-Wl,'
8542 lt_prog_compiler_pic='-fpic'
8543 lt_prog_compiler_static='-Bstatic'
8544 ;;
8545 esac
8546 ;;
8547 esac
8548 ;;
8549
8550 newsos6)
8551 lt_prog_compiler_pic='-KPIC'
8552 lt_prog_compiler_static='-Bstatic'
8553 ;;
8554
8555 *nto* | *qnx*)
8556 # QNX uses GNU C++, but need to define -shared option too, otherwise
8557 # it will coredump.
8558 lt_prog_compiler_pic='-fPIC -shared'
8559 ;;
8560
8561 osf3* | osf4* | osf5*)
8562 lt_prog_compiler_wl='-Wl,'
8563 # All OSF/1 code is PIC.
8564 lt_prog_compiler_static='-non_shared'
8565 ;;
8566
8567 rdos*)
8568 lt_prog_compiler_static='-non_shared'
8569 ;;
8570
8571 solaris*)
8572 lt_prog_compiler_pic='-KPIC'
8573 lt_prog_compiler_static='-Bstatic'
8574 case $cc_basename in
8575 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8576 lt_prog_compiler_wl='-Qoption ld ';;
8577 *)
8578 lt_prog_compiler_wl='-Wl,';;
8579 esac
8580 ;;
8581
8582 sunos4*)
8583 lt_prog_compiler_wl='-Qoption ld '
8584 lt_prog_compiler_pic='-PIC'
8585 lt_prog_compiler_static='-Bstatic'
8586 ;;
8587
8588 sysv4 | sysv4.2uw2* | sysv4.3*)
8589 lt_prog_compiler_wl='-Wl,'
8590 lt_prog_compiler_pic='-KPIC'
8591 lt_prog_compiler_static='-Bstatic'
8592 ;;
8593
8594 sysv4*MP*)
8595 if test -d /usr/nec; then
8596 lt_prog_compiler_pic='-Kconform_pic'
8597 lt_prog_compiler_static='-Bstatic'
8598 fi
8599 ;;
8600
8601 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8602 lt_prog_compiler_wl='-Wl,'
8603 lt_prog_compiler_pic='-KPIC'
8604 lt_prog_compiler_static='-Bstatic'
8605 ;;
8606
8607 unicos*)
8608 lt_prog_compiler_wl='-Wl,'
8609 lt_prog_compiler_can_build_shared=no
8610 ;;
8611
8612 uts4*)
8613 lt_prog_compiler_pic='-pic'
8614 lt_prog_compiler_static='-Bstatic'
8615 ;;
8616
8617 *)
8618 lt_prog_compiler_can_build_shared=no
8619 ;;
8620 esac
8621 fi
8622
8623 case $host_os in
8624 # For platforms that do not support PIC, -DPIC is meaningless:
8625 *djgpp*)
8626 lt_prog_compiler_pic=
8627 ;;
8628 *)
8629 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8630 ;;
8631 esac
8632
8633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8634 printf %s "checking for $compiler option to produce PIC... " >&6; }
8635 if test ${lt_cv_prog_compiler_pic+y}
8636 then :
8637 printf %s "(cached) " >&6
8638 else $as_nop
8639 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8640 fi
8641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8642 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
8643 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8644
8645 #
8646 # Check to make sure the PIC flag actually works.
8647 #
8648 if test -n "$lt_prog_compiler_pic"; then
8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8650 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8651 if test ${lt_cv_prog_compiler_pic_works+y}
8652 then :
8653 printf %s "(cached) " >&6
8654 else $as_nop
8655 lt_cv_prog_compiler_pic_works=no
8656 ac_outfile=conftest.$ac_objext
8657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8658 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8659 # Insert the option either (1) after the last *FLAGS variable, or
8660 # (2) before a word containing "conftest.", or (3) at the end.
8661 # Note that $ac_compile itself does not contain backslashes and begins
8662 # with a dollar sign (not a hyphen), so the echo should work correctly.
8663 # The option is referenced via a variable to avoid confusing sed.
8664 lt_compile=`echo "$ac_compile" | $SED \
8665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8667 -e 's:$: $lt_compiler_flag:'`
8668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8669 (eval "$lt_compile" 2>conftest.err)
8670 ac_status=$?
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 if (exit $ac_status) && test -s "$ac_outfile"; then
8674 # The compiler can only warn and ignore the option if not recognized
8675 # So say no if there are warnings other than the usual output.
8676 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8679 lt_cv_prog_compiler_pic_works=yes
8680 fi
8681 fi
8682 $RM conftest*
8683
8684 fi
8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8686 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
8687
8688 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8689 case $lt_prog_compiler_pic in
8690 "" | " "*) ;;
8691 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8692 esac
8693 else
8694 lt_prog_compiler_pic=
8695 lt_prog_compiler_can_build_shared=no
8696 fi
8697
8698 fi
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710 #
8711 # Check to make sure the static flag actually works.
8712 #
8713 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8715 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8716 if test ${lt_cv_prog_compiler_static_works+y}
8717 then :
8718 printf %s "(cached) " >&6
8719 else $as_nop
8720 lt_cv_prog_compiler_static_works=no
8721 save_LDFLAGS=$LDFLAGS
8722 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8723 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8724 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8725 # The linker can only warn and ignore the option if not recognized
8726 # So say no if there are warnings
8727 if test -s conftest.err; then
8728 # Append any errors to the config.log.
8729 cat conftest.err 1>&5
8730 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8732 if diff conftest.exp conftest.er2 >/dev/null; then
8733 lt_cv_prog_compiler_static_works=yes
8734 fi
8735 else
8736 lt_cv_prog_compiler_static_works=yes
8737 fi
8738 fi
8739 $RM -r conftest*
8740 LDFLAGS=$save_LDFLAGS
8741
8742 fi
8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8744 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
8745
8746 if test yes = "$lt_cv_prog_compiler_static_works"; then
8747 :
8748 else
8749 lt_prog_compiler_static=
8750 fi
8751
8752
8753
8754
8755
8756
8757
8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8759 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8760 if test ${lt_cv_prog_compiler_c_o+y}
8761 then :
8762 printf %s "(cached) " >&6
8763 else $as_nop
8764 lt_cv_prog_compiler_c_o=no
8765 $RM -r conftest 2>/dev/null
8766 mkdir conftest
8767 cd conftest
8768 mkdir out
8769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8770
8771 lt_compiler_flag="-o out/conftest2.$ac_objext"
8772 # Insert the option either (1) after the last *FLAGS variable, or
8773 # (2) before a word containing "conftest.", or (3) at the end.
8774 # Note that $ac_compile itself does not contain backslashes and begins
8775 # with a dollar sign (not a hyphen), so the echo should work correctly.
8776 lt_compile=`echo "$ac_compile" | $SED \
8777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8779 -e 's:$: $lt_compiler_flag:'`
8780 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8781 (eval "$lt_compile" 2>out/conftest.err)
8782 ac_status=$?
8783 cat out/conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8786 then
8787 # The compiler can only warn and ignore the option if not recognized
8788 # So say no if there are warnings
8789 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8790 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8791 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8792 lt_cv_prog_compiler_c_o=yes
8793 fi
8794 fi
8795 chmod u+w . 2>&5
8796 $RM conftest*
8797 # SGI C++ compiler will create directory out/ii_files/ for
8798 # template instantiation
8799 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8800 $RM out/* && rmdir out
8801 cd ..
8802 $RM -r conftest
8803 $RM conftest*
8804
8805 fi
8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8807 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
8808
8809
8810
8811
8812
8813
8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8815 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8816 if test ${lt_cv_prog_compiler_c_o+y}
8817 then :
8818 printf %s "(cached) " >&6
8819 else $as_nop
8820 lt_cv_prog_compiler_c_o=no
8821 $RM -r conftest 2>/dev/null
8822 mkdir conftest
8823 cd conftest
8824 mkdir out
8825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8826
8827 lt_compiler_flag="-o out/conftest2.$ac_objext"
8828 # Insert the option either (1) after the last *FLAGS variable, or
8829 # (2) before a word containing "conftest.", or (3) at the end.
8830 # Note that $ac_compile itself does not contain backslashes and begins
8831 # with a dollar sign (not a hyphen), so the echo should work correctly.
8832 lt_compile=`echo "$ac_compile" | $SED \
8833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8835 -e 's:$: $lt_compiler_flag:'`
8836 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8837 (eval "$lt_compile" 2>out/conftest.err)
8838 ac_status=$?
8839 cat out/conftest.err >&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8842 then
8843 # The compiler can only warn and ignore the option if not recognized
8844 # So say no if there are warnings
8845 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8846 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8847 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8848 lt_cv_prog_compiler_c_o=yes
8849 fi
8850 fi
8851 chmod u+w . 2>&5
8852 $RM conftest*
8853 # SGI C++ compiler will create directory out/ii_files/ for
8854 # template instantiation
8855 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8856 $RM out/* && rmdir out
8857 cd ..
8858 $RM -r conftest
8859 $RM conftest*
8860
8861 fi
8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8863 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
8864
8865
8866
8867
8868 hard_links=nottested
8869 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8870 # do not overwrite the value of need_locks provided by the user
8871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8872 printf %s "checking if we can lock with hard links... " >&6; }
8873 hard_links=yes
8874 $RM conftest*
8875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8876 touch conftest.a
8877 ln conftest.a conftest.b 2>&5 || hard_links=no
8878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8880 printf "%s\n" "$hard_links" >&6; }
8881 if test no = "$hard_links"; then
8882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8883 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8884 need_locks=warn
8885 fi
8886 else
8887 need_locks=no
8888 fi
8889
8890
8891
8892
8893
8894
8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8896 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8897
8898 runpath_var=
8899 allow_undefined_flag=
8900 always_export_symbols=no
8901 archive_cmds=
8902 archive_expsym_cmds=
8903 compiler_needs_object=no
8904 enable_shared_with_static_runtimes=no
8905 export_dynamic_flag_spec=
8906 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8907 hardcode_automatic=no
8908 hardcode_direct=no
8909 hardcode_direct_absolute=no
8910 hardcode_libdir_flag_spec=
8911 hardcode_libdir_separator=
8912 hardcode_minus_L=no
8913 hardcode_shlibpath_var=unsupported
8914 inherit_rpath=no
8915 link_all_deplibs=unknown
8916 module_cmds=
8917 module_expsym_cmds=
8918 old_archive_from_new_cmds=
8919 old_archive_from_expsyms_cmds=
8920 thread_safe_flag_spec=
8921 whole_archive_flag_spec=
8922 # include_expsyms should be a list of space-separated symbols to be *always*
8923 # included in the symbol list
8924 include_expsyms=
8925 # exclude_expsyms can be an extended regexp of symbols to exclude
8926 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8927 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8928 # as well as any symbol that contains 'd'.
8929 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8930 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8931 # platforms (ab)use it in PIC code, but their linkers get confused if
8932 # the symbol is explicitly referenced. Since portable code cannot
8933 # rely on this symbol name, it's probably fine to never include it in
8934 # preloaded symbol tables.
8935 # Exclude shared library initialization/finalization symbols.
8936 extract_expsyms_cmds=
8937
8938 case $host_os in
8939 cygwin* | mingw* | pw32* | cegcc*)
8940 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
8941 # When not using gcc, we currently assume that we are using
8942 # Microsoft Visual C++ or Intel C++ Compiler.
8943 if test yes != "$GCC"; then
8944 with_gnu_ld=no
8945 fi
8946 ;;
8947 interix*)
8948 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
8949 with_gnu_ld=yes
8950 ;;
8951 openbsd* | bitrig*)
8952 with_gnu_ld=no
8953 ;;
8954 linux* | k*bsd*-gnu | gnu*)
8955 link_all_deplibs=no
8956 ;;
8957 esac
8958
8959 ld_shlibs=yes
8960
8961 # On some targets, GNU ld is compatible enough with the native linker
8962 # that we're better off using the native interface for both.
8963 lt_use_gnu_ld_interface=no
8964 if test yes = "$with_gnu_ld"; then
8965 case $host_os in
8966 aix*)
8967 # The AIX port of GNU ld has always aspired to compatibility
8968 # with the native linker. However, as the warning in the GNU ld
8969 # block says, versions before 2.19.5* couldn't really create working
8970 # shared libraries, regardless of the interface used.
8971 case `$LD -v 2>&1` in
8972 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8973 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8974 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8975 *)
8976 lt_use_gnu_ld_interface=yes
8977 ;;
8978 esac
8979 ;;
8980 *)
8981 lt_use_gnu_ld_interface=yes
8982 ;;
8983 esac
8984 fi
8985
8986 if test yes = "$lt_use_gnu_ld_interface"; then
8987 # If archive_cmds runs LD, not CC, wlarc should be empty
8988 wlarc='$wl'
8989
8990 # Set some defaults for GNU ld with shared library support. These
8991 # are reset later if shared libraries are not supported. Putting them
8992 # here allows them to be overridden if necessary.
8993 runpath_var=LD_RUN_PATH
8994 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8995 export_dynamic_flag_spec='$wl--export-dynamic'
8996 # ancient GNU ld didn't support --whole-archive et. al.
8997 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8998 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8999 else
9000 whole_archive_flag_spec=
9001 fi
9002 supports_anon_versioning=no
9003 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9004 *GNU\ gold*) supports_anon_versioning=yes ;;
9005 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9006 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9007 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9008 *\ 2.11.*) ;; # other 2.11 versions
9009 *) supports_anon_versioning=yes ;;
9010 esac
9011
9012 # See if GNU ld supports shared libraries.
9013 case $host_os in
9014 aix[3-9]*)
9015 # On AIX/PPC, the GNU linker is very broken
9016 if test ia64 != "$host_cpu"; then
9017 ld_shlibs=no
9018 cat <<_LT_EOF 1>&2
9019
9020 *** Warning: the GNU linker, at least up to release 2.19, is reported
9021 *** to be unable to reliably create shared libraries on AIX.
9022 *** Therefore, libtool is disabling shared libraries support. If you
9023 *** really care for shared libraries, you may want to install binutils
9024 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9025 *** You will then need to restart the configuration process.
9026
9027 _LT_EOF
9028 fi
9029 ;;
9030
9031 amigaos*)
9032 case $host_cpu in
9033 powerpc)
9034 # see comment about AmigaOS4 .so support
9035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9036 archive_expsym_cmds=''
9037 ;;
9038 m68k)
9039 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9040 hardcode_libdir_flag_spec='-L$libdir'
9041 hardcode_minus_L=yes
9042 ;;
9043 esac
9044 ;;
9045
9046 beos*)
9047 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9048 allow_undefined_flag=unsupported
9049 # Joseph Beckenbach <[email protected]> says some releases of gcc
9050 # support --undefined. This deserves some investigation. FIXME
9051 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9052 else
9053 ld_shlibs=no
9054 fi
9055 ;;
9056
9057 cygwin* | mingw* | pw32* | cegcc*)
9058 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9059 # as there is no search path for DLLs.
9060 hardcode_libdir_flag_spec='-L$libdir'
9061 export_dynamic_flag_spec='$wl--export-all-symbols'
9062 allow_undefined_flag=unsupported
9063 always_export_symbols=no
9064 enable_shared_with_static_runtimes=yes
9065 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9066 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9067
9068 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9070 # If the export-symbols file already is a .def file, use it as
9071 # is; otherwise, prepend EXPORTS...
9072 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9073 cp $export_symbols $output_objdir/$soname.def;
9074 else
9075 echo EXPORTS > $output_objdir/$soname.def;
9076 cat $export_symbols >> $output_objdir/$soname.def;
9077 fi~
9078 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9079 else
9080 ld_shlibs=no
9081 fi
9082 ;;
9083
9084 haiku*)
9085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9086 link_all_deplibs=yes
9087 ;;
9088
9089 os2*)
9090 hardcode_libdir_flag_spec='-L$libdir'
9091 hardcode_minus_L=yes
9092 allow_undefined_flag=unsupported
9093 shrext_cmds=.dll
9094 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9095 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9096 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9097 $ECHO EXPORTS >> $output_objdir/$libname.def~
9098 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9099 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9100 emximp -o $lib $output_objdir/$libname.def'
9101 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9102 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9103 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9104 $ECHO EXPORTS >> $output_objdir/$libname.def~
9105 prefix_cmds="$SED"~
9106 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9107 prefix_cmds="$prefix_cmds -e 1d";
9108 fi~
9109 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9110 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9111 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9112 emximp -o $lib $output_objdir/$libname.def'
9113 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9114 enable_shared_with_static_runtimes=yes
9115 file_list_spec='@'
9116 ;;
9117
9118 interix[3-9]*)
9119 hardcode_direct=no
9120 hardcode_shlibpath_var=no
9121 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9122 export_dynamic_flag_spec='$wl-E'
9123 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9124 # Instead, shared libraries are loaded at an image base (0x10000000 by
9125 # default) and relocated if they conflict, which is a slow very memory
9126 # consuming and fragmenting process. To avoid this, we pick a random,
9127 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9128 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9129 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9130 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'
9131 ;;
9132
9133 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9134 tmp_diet=no
9135 if test linux-dietlibc = "$host_os"; then
9136 case $cc_basename in
9137 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9138 esac
9139 fi
9140 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9141 && test no = "$tmp_diet"
9142 then
9143 tmp_addflag=' $pic_flag'
9144 tmp_sharedflag='-shared'
9145 case $cc_basename,$host_cpu in
9146 pgcc*) # Portland Group C compiler
9147 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'
9148 tmp_addflag=' $pic_flag'
9149 ;;
9150 pgf77* | pgf90* | pgf95* | pgfortran*)
9151 # Portland Group f77 and f90 compilers
9152 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'
9153 tmp_addflag=' $pic_flag -Mnomain' ;;
9154 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9155 tmp_addflag=' -i_dynamic' ;;
9156 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9157 tmp_addflag=' -i_dynamic -nofor_main' ;;
9158 ifc* | ifort*) # Intel Fortran compiler
9159 tmp_addflag=' -nofor_main' ;;
9160 lf95*) # Lahey Fortran 8.1
9161 whole_archive_flag_spec=
9162 tmp_sharedflag='--shared' ;;
9163 nagfor*) # NAGFOR 5.3
9164 tmp_sharedflag='-Wl,-shared' ;;
9165 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9166 tmp_sharedflag='-qmkshrobj'
9167 tmp_addflag= ;;
9168 nvcc*) # Cuda Compiler Driver 2.2
9169 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'
9170 compiler_needs_object=yes
9171 ;;
9172 esac
9173 case `$CC -V 2>&1 | $SED 5q` in
9174 *Sun\ C*) # Sun C 5.9
9175 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9176 compiler_needs_object=yes
9177 tmp_sharedflag='-G' ;;
9178 *Sun\ F*) # Sun Fortran 8.3
9179 tmp_sharedflag='-G' ;;
9180 esac
9181 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9182
9183 if test yes = "$supports_anon_versioning"; then
9184 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9185 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9186 echo "local: *; };" >> $output_objdir/$libname.ver~
9187 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9188 fi
9189
9190 case $cc_basename in
9191 tcc*)
9192 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9193 export_dynamic_flag_spec='-rdynamic'
9194 ;;
9195 xlf* | bgf* | bgxlf* | mpixlf*)
9196 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9197 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9198 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9199 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9200 if test yes = "$supports_anon_versioning"; then
9201 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9202 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9203 echo "local: *; };" >> $output_objdir/$libname.ver~
9204 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9205 fi
9206 ;;
9207 esac
9208 else
9209 ld_shlibs=no
9210 fi
9211 ;;
9212
9213 netbsd* | netbsdelf*-gnu)
9214 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9215 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9216 wlarc=
9217 else
9218 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9219 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9220 fi
9221 ;;
9222
9223 solaris*)
9224 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9225 ld_shlibs=no
9226 cat <<_LT_EOF 1>&2
9227
9228 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9229 *** create shared libraries on Solaris systems. Therefore, libtool
9230 *** is disabling shared libraries support. We urge you to upgrade GNU
9231 *** binutils to release 2.9.1 or newer. Another option is to modify
9232 *** your PATH or compiler configuration so that the native linker is
9233 *** used, and then restart.
9234
9235 _LT_EOF
9236 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9237 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9238 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9239 else
9240 ld_shlibs=no
9241 fi
9242 ;;
9243
9244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9245 case `$LD -v 2>&1` in
9246 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9247 ld_shlibs=no
9248 cat <<_LT_EOF 1>&2
9249
9250 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9251 *** reliably create shared libraries on SCO systems. Therefore, libtool
9252 *** is disabling shared libraries support. We urge you to upgrade GNU
9253 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9254 *** your PATH or compiler configuration so that the native linker is
9255 *** used, and then restart.
9256
9257 _LT_EOF
9258 ;;
9259 *)
9260 # For security reasons, it is highly recommended that you always
9261 # use absolute paths for naming shared libraries, and exclude the
9262 # DT_RUNPATH tag from executables and libraries. But doing so
9263 # requires that you compile everything twice, which is a pain.
9264 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9265 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9268 else
9269 ld_shlibs=no
9270 fi
9271 ;;
9272 esac
9273 ;;
9274
9275 sunos4*)
9276 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9277 wlarc=
9278 hardcode_direct=yes
9279 hardcode_shlibpath_var=no
9280 ;;
9281
9282 *)
9283 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9284 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9285 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9286 else
9287 ld_shlibs=no
9288 fi
9289 ;;
9290 esac
9291
9292 if test no = "$ld_shlibs"; then
9293 runpath_var=
9294 hardcode_libdir_flag_spec=
9295 export_dynamic_flag_spec=
9296 whole_archive_flag_spec=
9297 fi
9298 else
9299 # PORTME fill in a description of your system's linker (not GNU ld)
9300 case $host_os in
9301 aix3*)
9302 allow_undefined_flag=unsupported
9303 always_export_symbols=yes
9304 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9305 # Note: this linker hardcodes the directories in LIBPATH if there
9306 # are no directories specified by -L.
9307 hardcode_minus_L=yes
9308 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9309 # Neither direct hardcoding nor static linking is supported with a
9310 # broken collect2.
9311 hardcode_direct=unsupported
9312 fi
9313 ;;
9314
9315 aix[4-9]*)
9316 if test ia64 = "$host_cpu"; then
9317 # On IA64, the linker does run time linking by default, so we don't
9318 # have to do anything special.
9319 aix_use_runtimelinking=no
9320 exp_sym_flag='-Bexport'
9321 no_entry_flag=
9322 else
9323 # If we're using GNU nm, then we don't want the "-C" option.
9324 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9325 # Without the "-l" option, or with the "-B" option, AIX nm treats
9326 # weak defined symbols like other global defined symbols, whereas
9327 # GNU nm marks them as "W".
9328 # While the 'weak' keyword is ignored in the Export File, we need
9329 # it in the Import File for the 'aix-soname' feature, so we have
9330 # to replace the "-B" option with "-P" for AIX nm.
9331 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9332 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9333 else
9334 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9335 fi
9336 aix_use_runtimelinking=no
9337
9338 # Test if we are trying to use run time linking or normal
9339 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9340 # have runtime linking enabled, and use it for executables.
9341 # For shared libraries, we enable/disable runtime linking
9342 # depending on the kind of the shared library created -
9343 # when "with_aix_soname,aix_use_runtimelinking" is:
9344 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9345 # "aix,yes" lib.so shared, rtl:yes, for executables
9346 # lib.a static archive
9347 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9348 # lib.a(lib.so.V) shared, rtl:no, for executables
9349 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9350 # lib.a(lib.so.V) shared, rtl:no
9351 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9352 # lib.a static archive
9353 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9354 for ld_flag in $LDFLAGS; do
9355 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9356 aix_use_runtimelinking=yes
9357 break
9358 fi
9359 done
9360 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9361 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9362 # so we don't have lib.a shared libs to link our executables.
9363 # We have to force runtime linking in this case.
9364 aix_use_runtimelinking=yes
9365 LDFLAGS="$LDFLAGS -Wl,-brtl"
9366 fi
9367 ;;
9368 esac
9369
9370 exp_sym_flag='-bexport'
9371 no_entry_flag='-bnoentry'
9372 fi
9373
9374 # When large executables or shared objects are built, AIX ld can
9375 # have problems creating the table of contents. If linking a library
9376 # or program results in "error TOC overflow" add -mminimal-toc to
9377 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9378 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9379
9380 archive_cmds=''
9381 hardcode_direct=yes
9382 hardcode_direct_absolute=yes
9383 hardcode_libdir_separator=':'
9384 link_all_deplibs=yes
9385 file_list_spec='$wl-f,'
9386 case $with_aix_soname,$aix_use_runtimelinking in
9387 aix,*) ;; # traditional, no import file
9388 svr4,* | *,yes) # use import file
9389 # The Import File defines what to hardcode.
9390 hardcode_direct=no
9391 hardcode_direct_absolute=no
9392 ;;
9393 esac
9394
9395 if test yes = "$GCC"; then
9396 case $host_os in aix4.[012]|aix4.[012].*)
9397 # We only want to do this on AIX 4.2 and lower, the check
9398 # below for broken collect2 doesn't work under 4.3+
9399 collect2name=`$CC -print-prog-name=collect2`
9400 if test -f "$collect2name" &&
9401 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9402 then
9403 # We have reworked collect2
9404 :
9405 else
9406 # We have old collect2
9407 hardcode_direct=unsupported
9408 # It fails to find uninstalled libraries when the uninstalled
9409 # path is not listed in the libpath. Setting hardcode_minus_L
9410 # to unsupported forces relinking
9411 hardcode_minus_L=yes
9412 hardcode_libdir_flag_spec='-L$libdir'
9413 hardcode_libdir_separator=
9414 fi
9415 ;;
9416 esac
9417 shared_flag='-shared'
9418 if test yes = "$aix_use_runtimelinking"; then
9419 shared_flag="$shared_flag "'$wl-G'
9420 fi
9421 # Need to ensure runtime linking is disabled for the traditional
9422 # shared library, or the linker may eventually find shared libraries
9423 # /with/ Import File - we do not want to mix them.
9424 shared_flag_aix='-shared'
9425 shared_flag_svr4='-shared $wl-G'
9426 else
9427 # not using gcc
9428 if test ia64 = "$host_cpu"; then
9429 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9430 # chokes on -Wl,-G. The following line is correct:
9431 shared_flag='-G'
9432 else
9433 if test yes = "$aix_use_runtimelinking"; then
9434 shared_flag='$wl-G'
9435 else
9436 shared_flag='$wl-bM:SRE'
9437 fi
9438 shared_flag_aix='$wl-bM:SRE'
9439 shared_flag_svr4='$wl-G'
9440 fi
9441 fi
9442
9443 export_dynamic_flag_spec='$wl-bexpall'
9444 # It seems that -bexpall does not export symbols beginning with
9445 # underscore (_), so it is better to generate a list of symbols to export.
9446 always_export_symbols=yes
9447 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9448 # Warning - without using the other runtime loading flags (-brtl),
9449 # -berok will link without error, but may produce a broken library.
9450 allow_undefined_flag='-berok'
9451 # Determine the default libpath from the value encoded in an
9452 # empty executable.
9453 if test set = "${lt_cv_aix_libpath+set}"; then
9454 aix_libpath=$lt_cv_aix_libpath
9455 else
9456 if test ${lt_cv_aix_libpath_+y}
9457 then :
9458 printf %s "(cached) " >&6
9459 else $as_nop
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9462
9463 int
9464 main (void)
9465 {
9466
9467 ;
9468 return 0;
9469 }
9470 _ACEOF
9471 if ac_fn_c_try_link "$LINENO"
9472 then :
9473
9474 lt_aix_libpath_sed='
9475 /Import File Strings/,/^$/ {
9476 /^0/ {
9477 s/^0 *\([^ ]*\) *$/\1/
9478 p
9479 }
9480 }'
9481 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9482 # Check for a 64-bit object if we didn't find anything.
9483 if test -z "$lt_cv_aix_libpath_"; then
9484 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9485 fi
9486 fi
9487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9488 conftest$ac_exeext conftest.$ac_ext
9489 if test -z "$lt_cv_aix_libpath_"; then
9490 lt_cv_aix_libpath_=/usr/lib:/lib
9491 fi
9492
9493 fi
9494
9495 aix_libpath=$lt_cv_aix_libpath_
9496 fi
9497
9498 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9499 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9500 else
9501 if test ia64 = "$host_cpu"; then
9502 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9503 allow_undefined_flag="-z nodefs"
9504 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
9505 else
9506 # Determine the default libpath from the value encoded in an
9507 # empty executable.
9508 if test set = "${lt_cv_aix_libpath+set}"; then
9509 aix_libpath=$lt_cv_aix_libpath
9510 else
9511 if test ${lt_cv_aix_libpath_+y}
9512 then :
9513 printf %s "(cached) " >&6
9514 else $as_nop
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9517
9518 int
9519 main (void)
9520 {
9521
9522 ;
9523 return 0;
9524 }
9525 _ACEOF
9526 if ac_fn_c_try_link "$LINENO"
9527 then :
9528
9529 lt_aix_libpath_sed='
9530 /Import File Strings/,/^$/ {
9531 /^0/ {
9532 s/^0 *\([^ ]*\) *$/\1/
9533 p
9534 }
9535 }'
9536 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9537 # Check for a 64-bit object if we didn't find anything.
9538 if test -z "$lt_cv_aix_libpath_"; then
9539 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9540 fi
9541 fi
9542 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9543 conftest$ac_exeext conftest.$ac_ext
9544 if test -z "$lt_cv_aix_libpath_"; then
9545 lt_cv_aix_libpath_=/usr/lib:/lib
9546 fi
9547
9548 fi
9549
9550 aix_libpath=$lt_cv_aix_libpath_
9551 fi
9552
9553 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9554 # Warning - without using the other run time loading flags,
9555 # -berok will link without error, but may produce a broken library.
9556 no_undefined_flag=' $wl-bernotok'
9557 allow_undefined_flag=' $wl-berok'
9558 if test yes = "$with_gnu_ld"; then
9559 # We only use this code for GNU lds that support --whole-archive.
9560 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9561 else
9562 # Exported symbols can be pulled into shared objects from archives
9563 whole_archive_flag_spec='$convenience'
9564 fi
9565 archive_cmds_need_lc=yes
9566 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9567 # -brtl affects multiple linker settings, -berok does not and is overridden later
9568 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9569 if test svr4 != "$with_aix_soname"; then
9570 # This is similar to how AIX traditionally builds its shared libraries.
9571 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9572 fi
9573 if test aix != "$with_aix_soname"; then
9574 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9575 else
9576 # used by -dlpreopen to get the symbols
9577 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9578 fi
9579 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9580 fi
9581 fi
9582 ;;
9583
9584 amigaos*)
9585 case $host_cpu in
9586 powerpc)
9587 # see comment about AmigaOS4 .so support
9588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9589 archive_expsym_cmds=''
9590 ;;
9591 m68k)
9592 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9593 hardcode_libdir_flag_spec='-L$libdir'
9594 hardcode_minus_L=yes
9595 ;;
9596 esac
9597 ;;
9598
9599 bsdi[45]*)
9600 export_dynamic_flag_spec=-rdynamic
9601 ;;
9602
9603 cygwin* | mingw* | pw32* | cegcc*)
9604 # When not using gcc, we currently assume that we are using
9605 # Microsoft Visual C++ or Intel C++ Compiler.
9606 # hardcode_libdir_flag_spec is actually meaningless, as there is
9607 # no search path for DLLs.
9608 case $cc_basename in
9609 cl* | icl*)
9610 # Native MSVC or ICC
9611 hardcode_libdir_flag_spec=' '
9612 allow_undefined_flag=unsupported
9613 always_export_symbols=yes
9614 file_list_spec='@'
9615 # Tell ltmain to make .lib files, not .a files.
9616 libext=lib
9617 # Tell ltmain to make .dll files, not .so files.
9618 shrext_cmds=.dll
9619 # FIXME: Setting linknames here is a bad hack.
9620 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9621 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9622 cp "$export_symbols" "$output_objdir/$soname.def";
9623 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9624 else
9625 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9626 fi~
9627 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9628 linknames='
9629 # The linker will not automatically build a static lib if we build a DLL.
9630 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9631 enable_shared_with_static_runtimes=yes
9632 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9633 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9634 # Don't use ranlib
9635 old_postinstall_cmds='chmod 644 $oldlib'
9636 postlink_cmds='lt_outputfile="@OUTPUT@"~
9637 lt_tool_outputfile="@TOOL_OUTPUT@"~
9638 case $lt_outputfile in
9639 *.exe|*.EXE) ;;
9640 *)
9641 lt_outputfile=$lt_outputfile.exe
9642 lt_tool_outputfile=$lt_tool_outputfile.exe
9643 ;;
9644 esac~
9645 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9646 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9647 $RM "$lt_outputfile.manifest";
9648 fi'
9649 ;;
9650 *)
9651 # Assume MSVC and ICC wrapper
9652 hardcode_libdir_flag_spec=' '
9653 allow_undefined_flag=unsupported
9654 # Tell ltmain to make .lib files, not .a files.
9655 libext=lib
9656 # Tell ltmain to make .dll files, not .so files.
9657 shrext_cmds=.dll
9658 # FIXME: Setting linknames here is a bad hack.
9659 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9660 # The linker will automatically build a .lib file if we build a DLL.
9661 old_archive_from_new_cmds='true'
9662 # FIXME: Should let the user specify the lib program.
9663 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9664 enable_shared_with_static_runtimes=yes
9665 ;;
9666 esac
9667 ;;
9668
9669 darwin* | rhapsody*)
9670
9671
9672 archive_cmds_need_lc=no
9673 hardcode_direct=no
9674 hardcode_automatic=yes
9675 hardcode_shlibpath_var=unsupported
9676 if test yes = "$lt_cv_ld_force_load"; then
9677 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9678
9679 else
9680 whole_archive_flag_spec=''
9681 fi
9682 link_all_deplibs=yes
9683 allow_undefined_flag=$_lt_dar_allow_undefined
9684 case $cc_basename in
9685 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9686 *) _lt_dar_can_shared=$GCC ;;
9687 esac
9688 if test yes = "$_lt_dar_can_shared"; then
9689 output_verbose_link_cmd=func_echo_all
9690 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9691 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9692 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
9693 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"
9694
9695 else
9696 ld_shlibs=no
9697 fi
9698
9699 ;;
9700
9701 dgux*)
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_libdir_flag_spec='-L$libdir'
9704 hardcode_shlibpath_var=no
9705 ;;
9706
9707 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9708 # support. Future versions do this automatically, but an explicit c++rt0.o
9709 # does not break anything, and helps significantly (at the cost of a little
9710 # extra space).
9711 freebsd2.2*)
9712 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9713 hardcode_libdir_flag_spec='-R$libdir'
9714 hardcode_direct=yes
9715 hardcode_shlibpath_var=no
9716 ;;
9717
9718 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9719 freebsd2.*)
9720 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9721 hardcode_direct=yes
9722 hardcode_minus_L=yes
9723 hardcode_shlibpath_var=no
9724 ;;
9725
9726 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9727 freebsd* | dragonfly* | midnightbsd*)
9728 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9729 hardcode_libdir_flag_spec='-R$libdir'
9730 hardcode_direct=yes
9731 hardcode_shlibpath_var=no
9732 ;;
9733
9734 hpux9*)
9735 if test yes = "$GCC"; then
9736 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9737 else
9738 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9739 fi
9740 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9741 hardcode_libdir_separator=:
9742 hardcode_direct=yes
9743
9744 # hardcode_minus_L: Not really in the search PATH,
9745 # but as the default location of the library.
9746 hardcode_minus_L=yes
9747 export_dynamic_flag_spec='$wl-E'
9748 ;;
9749
9750 hpux10*)
9751 if test yes,no = "$GCC,$with_gnu_ld"; then
9752 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9753 else
9754 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9755 fi
9756 if test no = "$with_gnu_ld"; then
9757 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9758 hardcode_libdir_separator=:
9759 hardcode_direct=yes
9760 hardcode_direct_absolute=yes
9761 export_dynamic_flag_spec='$wl-E'
9762 # hardcode_minus_L: Not really in the search PATH,
9763 # but as the default location of the library.
9764 hardcode_minus_L=yes
9765 fi
9766 ;;
9767
9768 hpux11*)
9769 if test yes,no = "$GCC,$with_gnu_ld"; then
9770 case $host_cpu in
9771 hppa*64*)
9772 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9773 ;;
9774 ia64*)
9775 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9776 ;;
9777 *)
9778 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9779 ;;
9780 esac
9781 else
9782 case $host_cpu in
9783 hppa*64*)
9784 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9785 ;;
9786 ia64*)
9787 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9788 ;;
9789 *)
9790
9791 # Older versions of the 11.00 compiler do not understand -b yet
9792 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9794 printf %s "checking if $CC understands -b... " >&6; }
9795 if test ${lt_cv_prog_compiler__b+y}
9796 then :
9797 printf %s "(cached) " >&6
9798 else $as_nop
9799 lt_cv_prog_compiler__b=no
9800 save_LDFLAGS=$LDFLAGS
9801 LDFLAGS="$LDFLAGS -b"
9802 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9803 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9804 # The linker can only warn and ignore the option if not recognized
9805 # So say no if there are warnings
9806 if test -s conftest.err; then
9807 # Append any errors to the config.log.
9808 cat conftest.err 1>&5
9809 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9811 if diff conftest.exp conftest.er2 >/dev/null; then
9812 lt_cv_prog_compiler__b=yes
9813 fi
9814 else
9815 lt_cv_prog_compiler__b=yes
9816 fi
9817 fi
9818 $RM -r conftest*
9819 LDFLAGS=$save_LDFLAGS
9820
9821 fi
9822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9823 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
9824
9825 if test yes = "$lt_cv_prog_compiler__b"; then
9826 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9827 else
9828 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9829 fi
9830
9831 ;;
9832 esac
9833 fi
9834 if test no = "$with_gnu_ld"; then
9835 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9836 hardcode_libdir_separator=:
9837
9838 case $host_cpu in
9839 hppa*64*|ia64*)
9840 hardcode_direct=no
9841 hardcode_shlibpath_var=no
9842 ;;
9843 *)
9844 hardcode_direct=yes
9845 hardcode_direct_absolute=yes
9846 export_dynamic_flag_spec='$wl-E'
9847
9848 # hardcode_minus_L: Not really in the search PATH,
9849 # but as the default location of the library.
9850 hardcode_minus_L=yes
9851 ;;
9852 esac
9853 fi
9854 ;;
9855
9856 irix5* | irix6* | nonstopux*)
9857 if test yes = "$GCC"; then
9858 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9859 # Try to use the -exported_symbol ld option, if it does not
9860 # work, assume that -exports_file does not work either and
9861 # implicitly export all symbols.
9862 # This should be the same for all languages, so no per-tag cache variable.
9863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9864 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9865 if test ${lt_cv_irix_exported_symbol+y}
9866 then :
9867 printf %s "(cached) " >&6
9868 else $as_nop
9869 save_LDFLAGS=$LDFLAGS
9870 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h. */
9873 int foo (void) { return 0; }
9874 _ACEOF
9875 if ac_fn_c_try_link "$LINENO"
9876 then :
9877 lt_cv_irix_exported_symbol=yes
9878 else $as_nop
9879 lt_cv_irix_exported_symbol=no
9880 fi
9881 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9882 conftest$ac_exeext conftest.$ac_ext
9883 LDFLAGS=$save_LDFLAGS
9884 fi
9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9886 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
9887 if test yes = "$lt_cv_irix_exported_symbol"; then
9888 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9889 fi
9890 link_all_deplibs=no
9891 else
9892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9893 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
9894 fi
9895 archive_cmds_need_lc='no'
9896 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9897 hardcode_libdir_separator=:
9898 inherit_rpath=yes
9899 link_all_deplibs=yes
9900 ;;
9901
9902 linux*)
9903 case $cc_basename in
9904 tcc*)
9905 # Fabrice Bellard et al's Tiny C Compiler
9906 ld_shlibs=yes
9907 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9908 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9909 ;;
9910 esac
9911 ;;
9912
9913 netbsd* | netbsdelf*-gnu)
9914 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9915 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9916 else
9917 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9918 fi
9919 hardcode_libdir_flag_spec='-R$libdir'
9920 hardcode_direct=yes
9921 hardcode_shlibpath_var=no
9922 ;;
9923
9924 newsos6)
9925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9926 hardcode_direct=yes
9927 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9928 hardcode_libdir_separator=:
9929 hardcode_shlibpath_var=no
9930 ;;
9931
9932 *nto* | *qnx*)
9933 ;;
9934
9935 openbsd* | bitrig*)
9936 if test -f /usr/libexec/ld.so; then
9937 hardcode_direct=yes
9938 hardcode_shlibpath_var=no
9939 hardcode_direct_absolute=yes
9940 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9941 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9942 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9943 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9944 export_dynamic_flag_spec='$wl-E'
9945 else
9946 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9947 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9948 fi
9949 else
9950 ld_shlibs=no
9951 fi
9952 ;;
9953
9954 os2*)
9955 hardcode_libdir_flag_spec='-L$libdir'
9956 hardcode_minus_L=yes
9957 allow_undefined_flag=unsupported
9958 shrext_cmds=.dll
9959 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9960 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9961 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9962 $ECHO EXPORTS >> $output_objdir/$libname.def~
9963 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9964 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9965 emximp -o $lib $output_objdir/$libname.def'
9966 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9967 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9968 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9969 $ECHO EXPORTS >> $output_objdir/$libname.def~
9970 prefix_cmds="$SED"~
9971 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9972 prefix_cmds="$prefix_cmds -e 1d";
9973 fi~
9974 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9975 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9976 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9977 emximp -o $lib $output_objdir/$libname.def'
9978 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9979 enable_shared_with_static_runtimes=yes
9980 file_list_spec='@'
9981 ;;
9982
9983 osf3*)
9984 if test yes = "$GCC"; then
9985 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9986 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9987 else
9988 allow_undefined_flag=' -expect_unresolved \*'
9989 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9990 fi
9991 archive_cmds_need_lc='no'
9992 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9993 hardcode_libdir_separator=:
9994 ;;
9995
9996 osf4* | osf5*) # as osf3* with the addition of -msym flag
9997 if test yes = "$GCC"; then
9998 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9999 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10000 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10001 else
10002 allow_undefined_flag=' -expect_unresolved \*'
10003 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10004 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~
10005 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10006
10007 # Both c and cxx compiler support -rpath directly
10008 hardcode_libdir_flag_spec='-rpath $libdir'
10009 fi
10010 archive_cmds_need_lc='no'
10011 hardcode_libdir_separator=:
10012 ;;
10013
10014 solaris*)
10015 no_undefined_flag=' -z defs'
10016 if test yes = "$GCC"; then
10017 wlarc='$wl'
10018 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10019 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10020 $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'
10021 else
10022 case `$CC -V 2>&1` in
10023 *"Compilers 5.0"*)
10024 wlarc=''
10025 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10026 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10027 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10028 ;;
10029 *)
10030 wlarc='$wl'
10031 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10032 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10033 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10034 ;;
10035 esac
10036 fi
10037 hardcode_libdir_flag_spec='-R$libdir'
10038 hardcode_shlibpath_var=no
10039 case $host_os in
10040 solaris2.[0-5] | solaris2.[0-5].*) ;;
10041 *)
10042 # The compiler driver will combine and reorder linker options,
10043 # but understands '-z linker_flag'. GCC discards it without '$wl',
10044 # but is careful enough not to reorder.
10045 # Supported since Solaris 2.6 (maybe 2.5.1?)
10046 if test yes = "$GCC"; then
10047 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10048 else
10049 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10050 fi
10051 ;;
10052 esac
10053 link_all_deplibs=yes
10054 ;;
10055
10056 sunos4*)
10057 if test sequent = "$host_vendor"; then
10058 # Use $CC to link under sequent, because it throws in some extra .o
10059 # files that make .init and .fini sections work.
10060 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10061 else
10062 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10063 fi
10064 hardcode_libdir_flag_spec='-L$libdir'
10065 hardcode_direct=yes
10066 hardcode_minus_L=yes
10067 hardcode_shlibpath_var=no
10068 ;;
10069
10070 sysv4)
10071 case $host_vendor in
10072 sni)
10073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074 hardcode_direct=yes # is this really true???
10075 ;;
10076 siemens)
10077 ## LD is ld it makes a PLAMLIB
10078 ## CC just makes a GrossModule.
10079 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10080 reload_cmds='$CC -r -o $output$reload_objs'
10081 hardcode_direct=no
10082 ;;
10083 motorola)
10084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10085 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10086 ;;
10087 esac
10088 runpath_var='LD_RUN_PATH'
10089 hardcode_shlibpath_var=no
10090 ;;
10091
10092 sysv4.3*)
10093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10094 hardcode_shlibpath_var=no
10095 export_dynamic_flag_spec='-Bexport'
10096 ;;
10097
10098 sysv4*MP*)
10099 if test -d /usr/nec; then
10100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10101 hardcode_shlibpath_var=no
10102 runpath_var=LD_RUN_PATH
10103 hardcode_runpath_var=yes
10104 ld_shlibs=yes
10105 fi
10106 ;;
10107
10108 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10109 no_undefined_flag='$wl-z,text'
10110 archive_cmds_need_lc=no
10111 hardcode_shlibpath_var=no
10112 runpath_var='LD_RUN_PATH'
10113
10114 if test yes = "$GCC"; then
10115 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 else
10118 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10120 fi
10121 ;;
10122
10123 sysv5* | sco3.2v5* | sco5v6*)
10124 # Note: We CANNOT use -z defs as we might desire, because we do not
10125 # link with -lc, and that would cause any symbols used from libc to
10126 # always be unresolved, which means just about no library would
10127 # ever link correctly. If we're not using GNU ld we use -z text
10128 # though, which does catch some bad symbols but isn't as heavy-handed
10129 # as -z defs.
10130 no_undefined_flag='$wl-z,text'
10131 allow_undefined_flag='$wl-z,nodefs'
10132 archive_cmds_need_lc=no
10133 hardcode_shlibpath_var=no
10134 hardcode_libdir_flag_spec='$wl-R,$libdir'
10135 hardcode_libdir_separator=':'
10136 link_all_deplibs=yes
10137 export_dynamic_flag_spec='$wl-Bexport'
10138 runpath_var='LD_RUN_PATH'
10139
10140 if test yes = "$GCC"; then
10141 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10142 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10143 else
10144 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10145 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10146 fi
10147 ;;
10148
10149 uts4*)
10150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10151 hardcode_libdir_flag_spec='-L$libdir'
10152 hardcode_shlibpath_var=no
10153 ;;
10154
10155 *)
10156 ld_shlibs=no
10157 ;;
10158 esac
10159
10160 if test sni = "$host_vendor"; then
10161 case $host in
10162 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10163 export_dynamic_flag_spec='$wl-Blargedynsym'
10164 ;;
10165 esac
10166 fi
10167 fi
10168
10169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10170 printf "%s\n" "$ld_shlibs" >&6; }
10171 test no = "$ld_shlibs" && can_build_shared=no
10172
10173 with_gnu_ld=$with_gnu_ld
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189 #
10190 # Do we need to explicitly link libc?
10191 #
10192 case "x$archive_cmds_need_lc" in
10193 x|xyes)
10194 # Assume -lc should be added
10195 archive_cmds_need_lc=yes
10196
10197 if test yes,yes = "$GCC,$enable_shared"; then
10198 case $archive_cmds in
10199 *'~'*)
10200 # FIXME: we may have to deal with multi-command sequences.
10201 ;;
10202 '$CC '*)
10203 # Test whether the compiler implicitly links with -lc since on some
10204 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10205 # to ld, don't add -lc before -lgcc.
10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10207 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10208 if test ${lt_cv_archive_cmds_need_lc+y}
10209 then :
10210 printf %s "(cached) " >&6
10211 else $as_nop
10212 $RM conftest*
10213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10214
10215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10216 (eval $ac_compile) 2>&5
10217 ac_status=$?
10218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10219 test $ac_status = 0; } 2>conftest.err; then
10220 soname=conftest
10221 lib=conftest
10222 libobjs=conftest.$ac_objext
10223 deplibs=
10224 wl=$lt_prog_compiler_wl
10225 pic_flag=$lt_prog_compiler_pic
10226 compiler_flags=-v
10227 linker_flags=-v
10228 verstring=
10229 output_objdir=.
10230 libname=conftest
10231 lt_save_allow_undefined_flag=$allow_undefined_flag
10232 allow_undefined_flag=
10233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10234 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10235 ac_status=$?
10236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10237 test $ac_status = 0; }
10238 then
10239 lt_cv_archive_cmds_need_lc=no
10240 else
10241 lt_cv_archive_cmds_need_lc=yes
10242 fi
10243 allow_undefined_flag=$lt_save_allow_undefined_flag
10244 else
10245 cat conftest.err 1>&5
10246 fi
10247 $RM conftest*
10248
10249 fi
10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10251 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10252 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10253 ;;
10254 esac
10255 fi
10256 ;;
10257 esac
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10411 printf %s "checking dynamic linker characteristics... " >&6; }
10412
10413 if test yes = "$GCC"; then
10414 case $host_os in
10415 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10416 *) lt_awk_arg='/^libraries:/' ;;
10417 esac
10418 case $host_os in
10419 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10420 *) lt_sed_strip_eq='s|=/|/|g' ;;
10421 esac
10422 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10423 case $lt_search_path_spec in
10424 *\;*)
10425 # if the path contains ";" then we assume it to be the separator
10426 # otherwise default to the standard path separator (i.e. ":") - it is
10427 # assumed that no part of a normal pathname contains ";" but that should
10428 # okay in the real world where ";" in dirpaths is itself problematic.
10429 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10430 ;;
10431 *)
10432 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10433 ;;
10434 esac
10435 # Ok, now we have the path, separated by spaces, we can step through it
10436 # and add multilib dir if necessary...
10437 lt_tmp_lt_search_path_spec=
10438 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10439 # ...but if some path component already ends with the multilib dir we assume
10440 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10441 case "$lt_multi_os_dir; $lt_search_path_spec " in
10442 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10443 lt_multi_os_dir=
10444 ;;
10445 esac
10446 for lt_sys_path in $lt_search_path_spec; do
10447 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10448 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10449 elif test -n "$lt_multi_os_dir"; then
10450 test -d "$lt_sys_path" && \
10451 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10452 fi
10453 done
10454 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10455 BEGIN {RS = " "; FS = "/|\n";} {
10456 lt_foo = "";
10457 lt_count = 0;
10458 for (lt_i = NF; lt_i > 0; lt_i--) {
10459 if ($lt_i != "" && $lt_i != ".") {
10460 if ($lt_i == "..") {
10461 lt_count++;
10462 } else {
10463 if (lt_count == 0) {
10464 lt_foo = "/" $lt_i lt_foo;
10465 } else {
10466 lt_count--;
10467 }
10468 }
10469 }
10470 }
10471 if (lt_foo != "") { lt_freq[lt_foo]++; }
10472 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10473 }'`
10474 # AWK program above erroneously prepends '/' to C:/dos/paths
10475 # for these hosts.
10476 case $host_os in
10477 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10478 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10479 esac
10480 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10481 else
10482 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10483 fi
10484 library_names_spec=
10485 libname_spec='lib$name'
10486 soname_spec=
10487 shrext_cmds=.so
10488 postinstall_cmds=
10489 postuninstall_cmds=
10490 finish_cmds=
10491 finish_eval=
10492 shlibpath_var=
10493 shlibpath_overrides_runpath=unknown
10494 version_type=none
10495 dynamic_linker="$host_os ld.so"
10496 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10497 need_lib_prefix=unknown
10498 hardcode_into_libs=no
10499
10500 # when you set need_version to no, make sure it does not cause -set_version
10501 # flags to be left without arguments
10502 need_version=unknown
10503
10504
10505
10506 case $host_os in
10507 aix3*)
10508 version_type=linux # correct to gnu/linux during the next big refactor
10509 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10510 shlibpath_var=LIBPATH
10511
10512 # AIX 3 has no versioning support, so we append a major version to the name.
10513 soname_spec='$libname$release$shared_ext$major'
10514 ;;
10515
10516 aix[4-9]*)
10517 version_type=linux # correct to gnu/linux during the next big refactor
10518 need_lib_prefix=no
10519 need_version=no
10520 hardcode_into_libs=yes
10521 if test ia64 = "$host_cpu"; then
10522 # AIX 5 supports IA64
10523 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10524 shlibpath_var=LD_LIBRARY_PATH
10525 else
10526 # With GCC up to 2.95.x, collect2 would create an import file
10527 # for dependence libraries. The import file would start with
10528 # the line '#! .'. This would cause the generated library to
10529 # depend on '.', always an invalid library. This was fixed in
10530 # development snapshots of GCC prior to 3.0.
10531 case $host_os in
10532 aix4 | aix4.[01] | aix4.[01].*)
10533 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10534 echo ' yes '
10535 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10536 :
10537 else
10538 can_build_shared=no
10539 fi
10540 ;;
10541 esac
10542 # Using Import Files as archive members, it is possible to support
10543 # filename-based versioning of shared library archives on AIX. While
10544 # this would work for both with and without runtime linking, it will
10545 # prevent static linking of such archives. So we do filename-based
10546 # shared library versioning with .so extension only, which is used
10547 # when both runtime linking and shared linking is enabled.
10548 # Unfortunately, runtime linking may impact performance, so we do
10549 # not want this to be the default eventually. Also, we use the
10550 # versioned .so libs for executables only if there is the -brtl
10551 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10552 # To allow for filename-based versioning support, we need to create
10553 # libNAME.so.V as an archive file, containing:
10554 # *) an Import File, referring to the versioned filename of the
10555 # archive as well as the shared archive member, telling the
10556 # bitwidth (32 or 64) of that shared object, and providing the
10557 # list of exported symbols of that shared object, eventually
10558 # decorated with the 'weak' keyword
10559 # *) the shared object with the F_LOADONLY flag set, to really avoid
10560 # it being seen by the linker.
10561 # At run time we better use the real file rather than another symlink,
10562 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10563
10564 case $with_aix_soname,$aix_use_runtimelinking in
10565 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10566 # soname into executable. Probably we can add versioning support to
10567 # collect2, so additional links can be useful in future.
10568 aix,yes) # traditional libtool
10569 dynamic_linker='AIX unversionable lib.so'
10570 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10571 # instead of lib<name>.a to let people know that these are not
10572 # typical AIX shared libraries.
10573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10574 ;;
10575 aix,no) # traditional AIX only
10576 dynamic_linker='AIX lib.a(lib.so.V)'
10577 # We preserve .a as extension for shared libraries through AIX4.2
10578 # and later when we are not doing run time linking.
10579 library_names_spec='$libname$release.a $libname.a'
10580 soname_spec='$libname$release$shared_ext$major'
10581 ;;
10582 svr4,*) # full svr4 only
10583 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10584 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10585 # We do not specify a path in Import Files, so LIBPATH fires.
10586 shlibpath_overrides_runpath=yes
10587 ;;
10588 *,yes) # both, prefer svr4
10589 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10590 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10591 # unpreferred sharedlib libNAME.a needs extra handling
10592 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10593 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10594 # We do not specify a path in Import Files, so LIBPATH fires.
10595 shlibpath_overrides_runpath=yes
10596 ;;
10597 *,no) # both, prefer aix
10598 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10599 library_names_spec='$libname$release.a $libname.a'
10600 soname_spec='$libname$release$shared_ext$major'
10601 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10602 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10603 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10604 ;;
10605 esac
10606 shlibpath_var=LIBPATH
10607 fi
10608 ;;
10609
10610 amigaos*)
10611 case $host_cpu in
10612 powerpc)
10613 # Since July 2007 AmigaOS4 officially supports .so libraries.
10614 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10616 ;;
10617 m68k)
10618 library_names_spec='$libname.ixlibrary $libname.a'
10619 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10620 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10621 ;;
10622 esac
10623 ;;
10624
10625 beos*)
10626 library_names_spec='$libname$shared_ext'
10627 dynamic_linker="$host_os ld.so"
10628 shlibpath_var=LIBRARY_PATH
10629 ;;
10630
10631 bsdi[45]*)
10632 version_type=linux # correct to gnu/linux during the next big refactor
10633 need_version=no
10634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10635 soname_spec='$libname$release$shared_ext$major'
10636 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10639 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10640 # the default ld.so.conf also contains /usr/contrib/lib and
10641 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10642 # libtool to hard-code these into programs
10643 ;;
10644
10645 cygwin* | mingw* | pw32* | cegcc*)
10646 version_type=windows
10647 shrext_cmds=.dll
10648 need_version=no
10649 need_lib_prefix=no
10650
10651 case $GCC,$cc_basename in
10652 yes,*)
10653 # gcc
10654 library_names_spec='$libname.dll.a'
10655 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10656 postinstall_cmds='base_file=`basename \$file`~
10657 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10658 dldir=$destdir/`dirname \$dlpath`~
10659 test -d \$dldir || mkdir -p \$dldir~
10660 $install_prog $dir/$dlname \$dldir/$dlname~
10661 chmod a+x \$dldir/$dlname~
10662 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10663 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10664 fi'
10665 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10666 dlpath=$dir/\$dldll~
10667 $RM \$dlpath'
10668 shlibpath_overrides_runpath=yes
10669
10670 case $host_os in
10671 cygwin*)
10672 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10673 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10674
10675 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10676 ;;
10677 mingw* | cegcc*)
10678 # MinGW DLLs use traditional 'lib' prefix
10679 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10680 ;;
10681 pw32*)
10682 # pw32 DLLs use 'pw' prefix rather than 'lib'
10683 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10684 ;;
10685 esac
10686 dynamic_linker='Win32 ld.exe'
10687 ;;
10688
10689 *,cl* | *,icl*)
10690 # Native MSVC or ICC
10691 libname_spec='$name'
10692 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10693 library_names_spec='$libname.dll.lib'
10694
10695 case $build_os in
10696 mingw*)
10697 sys_lib_search_path_spec=
10698 lt_save_ifs=$IFS
10699 IFS=';'
10700 for lt_path in $LIB
10701 do
10702 IFS=$lt_save_ifs
10703 # Let DOS variable expansion print the short 8.3 style file name.
10704 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10705 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10706 done
10707 IFS=$lt_save_ifs
10708 # Convert to MSYS style.
10709 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10710 ;;
10711 cygwin*)
10712 # Convert to unix form, then to dos form, then back to unix form
10713 # but this time dos style (no spaces!) so that the unix form looks
10714 # like /cygdrive/c/PROGRA~1:/cygdr...
10715 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10716 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10717 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10718 ;;
10719 *)
10720 sys_lib_search_path_spec=$LIB
10721 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10722 # It is most probably a Windows format PATH.
10723 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10724 else
10725 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10726 fi
10727 # FIXME: find the short name or the path components, as spaces are
10728 # common. (e.g. "Program Files" -> "PROGRA~1")
10729 ;;
10730 esac
10731
10732 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10733 postinstall_cmds='base_file=`basename \$file`~
10734 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10735 dldir=$destdir/`dirname \$dlpath`~
10736 test -d \$dldir || mkdir -p \$dldir~
10737 $install_prog $dir/$dlname \$dldir/$dlname'
10738 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10739 dlpath=$dir/\$dldll~
10740 $RM \$dlpath'
10741 shlibpath_overrides_runpath=yes
10742 dynamic_linker='Win32 link.exe'
10743 ;;
10744
10745 *)
10746 # Assume MSVC and ICC wrapper
10747 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10748 dynamic_linker='Win32 ld.exe'
10749 ;;
10750 esac
10751 # FIXME: first we should search . and the directory the executable is in
10752 shlibpath_var=PATH
10753 ;;
10754
10755 darwin* | rhapsody*)
10756 dynamic_linker="$host_os dyld"
10757 version_type=darwin
10758 need_lib_prefix=no
10759 need_version=no
10760 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10761 soname_spec='$libname$release$major$shared_ext'
10762 shlibpath_overrides_runpath=yes
10763 shlibpath_var=DYLD_LIBRARY_PATH
10764 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10765
10766 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10767 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10768 ;;
10769
10770 dgux*)
10771 version_type=linux # correct to gnu/linux during the next big refactor
10772 need_lib_prefix=no
10773 need_version=no
10774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10775 soname_spec='$libname$release$shared_ext$major'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 ;;
10778
10779 freebsd* | dragonfly* | midnightbsd*)
10780 # DragonFly does not have aout. When/if they implement a new
10781 # versioning mechanism, adjust this.
10782 if test -x /usr/bin/objformat; then
10783 objformat=`/usr/bin/objformat`
10784 else
10785 case $host_os in
10786 freebsd[23].*) objformat=aout ;;
10787 *) objformat=elf ;;
10788 esac
10789 fi
10790 version_type=freebsd-$objformat
10791 case $version_type in
10792 freebsd-elf*)
10793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10794 soname_spec='$libname$release$shared_ext$major'
10795 need_version=no
10796 need_lib_prefix=no
10797 ;;
10798 freebsd-*)
10799 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10800 need_version=yes
10801 ;;
10802 esac
10803 shlibpath_var=LD_LIBRARY_PATH
10804 case $host_os in
10805 freebsd2.*)
10806 shlibpath_overrides_runpath=yes
10807 ;;
10808 freebsd3.[01]* | freebsdelf3.[01]*)
10809 shlibpath_overrides_runpath=yes
10810 hardcode_into_libs=yes
10811 ;;
10812 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10813 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10814 shlibpath_overrides_runpath=no
10815 hardcode_into_libs=yes
10816 ;;
10817 *) # from 4.6 on, and DragonFly
10818 shlibpath_overrides_runpath=yes
10819 hardcode_into_libs=yes
10820 ;;
10821 esac
10822 ;;
10823
10824 haiku*)
10825 version_type=linux # correct to gnu/linux during the next big refactor
10826 need_lib_prefix=no
10827 need_version=no
10828 dynamic_linker="$host_os runtime_loader"
10829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10830 soname_spec='$libname$release$shared_ext$major'
10831 shlibpath_var=LIBRARY_PATH
10832 shlibpath_overrides_runpath=no
10833 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10834 hardcode_into_libs=yes
10835 ;;
10836
10837 hpux9* | hpux10* | hpux11*)
10838 # Give a soname corresponding to the major version so that dld.sl refuses to
10839 # link against other versions.
10840 version_type=sunos
10841 need_lib_prefix=no
10842 need_version=no
10843 case $host_cpu in
10844 ia64*)
10845 shrext_cmds='.so'
10846 hardcode_into_libs=yes
10847 dynamic_linker="$host_os dld.so"
10848 shlibpath_var=LD_LIBRARY_PATH
10849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10850 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10851 soname_spec='$libname$release$shared_ext$major'
10852 if test 32 = "$HPUX_IA64_MODE"; then
10853 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10854 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10855 else
10856 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10857 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10858 fi
10859 ;;
10860 hppa*64*)
10861 shrext_cmds='.sl'
10862 hardcode_into_libs=yes
10863 dynamic_linker="$host_os dld.sl"
10864 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10867 soname_spec='$libname$release$shared_ext$major'
10868 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10870 ;;
10871 *)
10872 shrext_cmds='.sl'
10873 dynamic_linker="$host_os dld.sl"
10874 shlibpath_var=SHLIB_PATH
10875 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10877 soname_spec='$libname$release$shared_ext$major'
10878 ;;
10879 esac
10880 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10881 postinstall_cmds='chmod 555 $lib'
10882 # or fails outright, so override atomically:
10883 install_override_mode=555
10884 ;;
10885
10886 interix[3-9]*)
10887 version_type=linux # correct to gnu/linux during the next big refactor
10888 need_lib_prefix=no
10889 need_version=no
10890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10891 soname_spec='$libname$release$shared_ext$major'
10892 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 shlibpath_overrides_runpath=no
10895 hardcode_into_libs=yes
10896 ;;
10897
10898 irix5* | irix6* | nonstopux*)
10899 case $host_os in
10900 nonstopux*) version_type=nonstopux ;;
10901 *)
10902 if test yes = "$lt_cv_prog_gnu_ld"; then
10903 version_type=linux # correct to gnu/linux during the next big refactor
10904 else
10905 version_type=irix
10906 fi ;;
10907 esac
10908 need_lib_prefix=no
10909 need_version=no
10910 soname_spec='$libname$release$shared_ext$major'
10911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10912 case $host_os in
10913 irix5* | nonstopux*)
10914 libsuff= shlibsuff=
10915 ;;
10916 *)
10917 case $LD in # libtool.m4 will add one of these switches to LD
10918 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10919 libsuff= shlibsuff= libmagic=32-bit;;
10920 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10921 libsuff=32 shlibsuff=N32 libmagic=N32;;
10922 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10923 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10924 *) libsuff= shlibsuff= libmagic=never-match;;
10925 esac
10926 ;;
10927 esac
10928 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10929 shlibpath_overrides_runpath=no
10930 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10931 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10932 hardcode_into_libs=yes
10933 ;;
10934
10935 # No shared lib support for Linux oldld, aout, or coff.
10936 linux*oldld* | linux*aout* | linux*coff*)
10937 dynamic_linker=no
10938 ;;
10939
10940 linux*android*)
10941 version_type=none # Android doesn't support versioned libraries.
10942 need_lib_prefix=no
10943 need_version=no
10944 library_names_spec='$libname$release$shared_ext'
10945 soname_spec='$libname$release$shared_ext'
10946 finish_cmds=
10947 shlibpath_var=LD_LIBRARY_PATH
10948 shlibpath_overrides_runpath=yes
10949
10950 # This implies no fast_install, which is unacceptable.
10951 # Some rework will be needed to allow for fast_install
10952 # before this can be enabled.
10953 hardcode_into_libs=yes
10954
10955 dynamic_linker='Android linker'
10956 # Don't embed -rpath directories since the linker doesn't support them.
10957 hardcode_libdir_flag_spec='-L$libdir'
10958 ;;
10959
10960 # This must be glibc/ELF.
10961 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10962 version_type=linux # correct to gnu/linux during the next big refactor
10963 need_lib_prefix=no
10964 need_version=no
10965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10966 soname_spec='$libname$release$shared_ext$major'
10967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10968 shlibpath_var=LD_LIBRARY_PATH
10969 shlibpath_overrides_runpath=no
10970
10971 # Some binutils ld are patched to set DT_RUNPATH
10972 if test ${lt_cv_shlibpath_overrides_runpath+y}
10973 then :
10974 printf %s "(cached) " >&6
10975 else $as_nop
10976 lt_cv_shlibpath_overrides_runpath=no
10977 save_LDFLAGS=$LDFLAGS
10978 save_libdir=$libdir
10979 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10980 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h. */
10983
10984 int
10985 main (void)
10986 {
10987
10988 ;
10989 return 0;
10990 }
10991 _ACEOF
10992 if ac_fn_c_try_link "$LINENO"
10993 then :
10994 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
10995 then :
10996 lt_cv_shlibpath_overrides_runpath=yes
10997 fi
10998 fi
10999 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11000 conftest$ac_exeext conftest.$ac_ext
11001 LDFLAGS=$save_LDFLAGS
11002 libdir=$save_libdir
11003
11004 fi
11005
11006 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11007
11008 # This implies no fast_install, which is unacceptable.
11009 # Some rework will be needed to allow for fast_install
11010 # before this can be enabled.
11011 hardcode_into_libs=yes
11012
11013 # Ideally, we could use ldconfig to report *all* directores which are
11014 # searched for libraries, however this is still not possible. Aside from not
11015 # being certain /sbin/ldconfig is available, command
11016 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11017 # even though it is searched at run-time. Try to do the best guess by
11018 # appending ld.so.conf contents (and includes) to the search path.
11019 if test -f /etc/ld.so.conf; then
11020 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11021 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11022 fi
11023
11024 # We used to test for /lib/ld.so.1 and disable shared libraries on
11025 # powerpc, because MkLinux only supported shared libraries with the
11026 # GNU dynamic linker. Since this was broken with cross compilers,
11027 # most powerpc-linux boxes support dynamic linking these days and
11028 # people can always --disable-shared, the test was removed, and we
11029 # assume the GNU/Linux dynamic linker is in use.
11030 dynamic_linker='GNU/Linux ld.so'
11031 ;;
11032
11033 netbsdelf*-gnu)
11034 version_type=linux
11035 need_lib_prefix=no
11036 need_version=no
11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11038 soname_spec='${libname}${release}${shared_ext}$major'
11039 shlibpath_var=LD_LIBRARY_PATH
11040 shlibpath_overrides_runpath=no
11041 hardcode_into_libs=yes
11042 dynamic_linker='NetBSD ld.elf_so'
11043 ;;
11044
11045 netbsd*)
11046 version_type=sunos
11047 need_lib_prefix=no
11048 need_version=no
11049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11050 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11052 dynamic_linker='NetBSD (a.out) ld.so'
11053 else
11054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11055 soname_spec='$libname$release$shared_ext$major'
11056 dynamic_linker='NetBSD ld.elf_so'
11057 fi
11058 shlibpath_var=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath=yes
11060 hardcode_into_libs=yes
11061 ;;
11062
11063 newsos6)
11064 version_type=linux # correct to gnu/linux during the next big refactor
11065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 shlibpath_overrides_runpath=yes
11068 ;;
11069
11070 *nto* | *qnx*)
11071 version_type=qnx
11072 need_lib_prefix=no
11073 need_version=no
11074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11075 soname_spec='$libname$release$shared_ext$major'
11076 shlibpath_var=LD_LIBRARY_PATH
11077 shlibpath_overrides_runpath=no
11078 hardcode_into_libs=yes
11079 dynamic_linker='ldqnx.so'
11080 ;;
11081
11082 openbsd* | bitrig*)
11083 version_type=sunos
11084 sys_lib_dlsearch_path_spec=/usr/lib
11085 need_lib_prefix=no
11086 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11087 need_version=no
11088 else
11089 need_version=yes
11090 fi
11091 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11093 shlibpath_var=LD_LIBRARY_PATH
11094 shlibpath_overrides_runpath=yes
11095 ;;
11096
11097 os2*)
11098 libname_spec='$name'
11099 version_type=windows
11100 shrext_cmds=.dll
11101 need_version=no
11102 need_lib_prefix=no
11103 # OS/2 can only load a DLL with a base name of 8 characters or less.
11104 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11105 v=$($ECHO $release$versuffix | tr -d .-);
11106 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11107 $ECHO $n$v`$shared_ext'
11108 library_names_spec='${libname}_dll.$libext'
11109 dynamic_linker='OS/2 ld.exe'
11110 shlibpath_var=BEGINLIBPATH
11111 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11113 postinstall_cmds='base_file=`basename \$file`~
11114 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11115 dldir=$destdir/`dirname \$dlpath`~
11116 test -d \$dldir || mkdir -p \$dldir~
11117 $install_prog $dir/$dlname \$dldir/$dlname~
11118 chmod a+x \$dldir/$dlname~
11119 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11120 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11121 fi'
11122 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11123 dlpath=$dir/\$dldll~
11124 $RM \$dlpath'
11125 ;;
11126
11127 osf3* | osf4* | osf5*)
11128 version_type=osf
11129 need_lib_prefix=no
11130 need_version=no
11131 soname_spec='$libname$release$shared_ext$major'
11132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11136 ;;
11137
11138 rdos*)
11139 dynamic_linker=no
11140 ;;
11141
11142 solaris*)
11143 version_type=linux # correct to gnu/linux during the next big refactor
11144 need_lib_prefix=no
11145 need_version=no
11146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11147 soname_spec='$libname$release$shared_ext$major'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 shlibpath_overrides_runpath=yes
11150 hardcode_into_libs=yes
11151 # ldd complains unless libraries are executable
11152 postinstall_cmds='chmod +x $lib'
11153 ;;
11154
11155 sunos4*)
11156 version_type=sunos
11157 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11158 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11159 shlibpath_var=LD_LIBRARY_PATH
11160 shlibpath_overrides_runpath=yes
11161 if test yes = "$with_gnu_ld"; then
11162 need_lib_prefix=no
11163 fi
11164 need_version=yes
11165 ;;
11166
11167 sysv4 | sysv4.3*)
11168 version_type=linux # correct to gnu/linux during the next big refactor
11169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11170 soname_spec='$libname$release$shared_ext$major'
11171 shlibpath_var=LD_LIBRARY_PATH
11172 case $host_vendor in
11173 sni)
11174 shlibpath_overrides_runpath=no
11175 need_lib_prefix=no
11176 runpath_var=LD_RUN_PATH
11177 ;;
11178 siemens)
11179 need_lib_prefix=no
11180 ;;
11181 motorola)
11182 need_lib_prefix=no
11183 need_version=no
11184 shlibpath_overrides_runpath=no
11185 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11186 ;;
11187 esac
11188 ;;
11189
11190 sysv4*MP*)
11191 if test -d /usr/nec; then
11192 version_type=linux # correct to gnu/linux during the next big refactor
11193 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11194 soname_spec='$libname$shared_ext.$major'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 fi
11197 ;;
11198
11199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11200 version_type=sco
11201 need_lib_prefix=no
11202 need_version=no
11203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11204 soname_spec='$libname$release$shared_ext$major'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 shlibpath_overrides_runpath=yes
11207 hardcode_into_libs=yes
11208 if test yes = "$with_gnu_ld"; then
11209 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11210 else
11211 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11212 case $host_os in
11213 sco3.2v5*)
11214 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11215 ;;
11216 esac
11217 fi
11218 sys_lib_dlsearch_path_spec='/usr/lib'
11219 ;;
11220
11221 tpf*)
11222 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11223 version_type=linux # correct to gnu/linux during the next big refactor
11224 need_lib_prefix=no
11225 need_version=no
11226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11227 shlibpath_var=LD_LIBRARY_PATH
11228 shlibpath_overrides_runpath=no
11229 hardcode_into_libs=yes
11230 ;;
11231
11232 uts4*)
11233 version_type=linux # correct to gnu/linux during the next big refactor
11234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11235 soname_spec='$libname$release$shared_ext$major'
11236 shlibpath_var=LD_LIBRARY_PATH
11237 ;;
11238
11239 *)
11240 dynamic_linker=no
11241 ;;
11242 esac
11243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11244 printf "%s\n" "$dynamic_linker" >&6; }
11245 test no = "$dynamic_linker" && can_build_shared=no
11246
11247 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11248 if test yes = "$GCC"; then
11249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11250 fi
11251
11252 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11253 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11254 fi
11255
11256 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11257 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11258 fi
11259
11260 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11261 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11262
11263 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11264 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11265
11266 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11267 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11366 printf %s "checking how to hardcode library paths into programs... " >&6; }
11367 hardcode_action=
11368 if test -n "$hardcode_libdir_flag_spec" ||
11369 test -n "$runpath_var" ||
11370 test yes = "$hardcode_automatic"; then
11371
11372 # We can hardcode non-existent directories.
11373 if test no != "$hardcode_direct" &&
11374 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11375 # have to relink, otherwise we might link with an installed library
11376 # when we should be linking with a yet-to-be-installed one
11377 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11378 test no != "$hardcode_minus_L"; then
11379 # Linking always hardcodes the temporary library directory.
11380 hardcode_action=relink
11381 else
11382 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11383 hardcode_action=immediate
11384 fi
11385 else
11386 # We cannot hardcode anything, or else we can only hardcode existing
11387 # directories.
11388 hardcode_action=unsupported
11389 fi
11390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11391 printf "%s\n" "$hardcode_action" >&6; }
11392
11393 if test relink = "$hardcode_action" ||
11394 test yes = "$inherit_rpath"; then
11395 # Fast installation is not supported
11396 enable_fast_install=no
11397 elif test yes = "$shlibpath_overrides_runpath" ||
11398 test no = "$enable_shared"; then
11399 # Fast installation is not necessary
11400 enable_fast_install=needless
11401 fi
11402
11403
11404
11405
11406
11407
11408 if test yes != "$enable_dlopen"; then
11409 enable_dlopen=unknown
11410 enable_dlopen_self=unknown
11411 enable_dlopen_self_static=unknown
11412 else
11413 lt_cv_dlopen=no
11414 lt_cv_dlopen_libs=
11415
11416 case $host_os in
11417 beos*)
11418 lt_cv_dlopen=load_add_on
11419 lt_cv_dlopen_libs=
11420 lt_cv_dlopen_self=yes
11421 ;;
11422
11423 mingw* | pw32* | cegcc*)
11424 lt_cv_dlopen=LoadLibrary
11425 lt_cv_dlopen_libs=
11426 ;;
11427
11428 cygwin*)
11429 lt_cv_dlopen=dlopen
11430 lt_cv_dlopen_libs=
11431 ;;
11432
11433 darwin*)
11434 # if libdl is installed we need to link against it
11435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11436 printf %s "checking for dlopen in -ldl... " >&6; }
11437 if test ${ac_cv_lib_dl_dlopen+y}
11438 then :
11439 printf %s "(cached) " >&6
11440 else $as_nop
11441 ac_check_lib_save_LIBS=$LIBS
11442 LIBS="-ldl $LIBS"
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11445
11446 /* Override any GCC internal prototype to avoid an error.
11447 Use char because int might match the return type of a GCC
11448 builtin and then its argument prototype would still apply. */
11449 char dlopen ();
11450 int
11451 main (void)
11452 {
11453 return dlopen ();
11454 ;
11455 return 0;
11456 }
11457 _ACEOF
11458 if ac_fn_c_try_link "$LINENO"
11459 then :
11460 ac_cv_lib_dl_dlopen=yes
11461 else $as_nop
11462 ac_cv_lib_dl_dlopen=no
11463 fi
11464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11465 conftest$ac_exeext conftest.$ac_ext
11466 LIBS=$ac_check_lib_save_LIBS
11467 fi
11468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11469 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11470 if test "x$ac_cv_lib_dl_dlopen" = xyes
11471 then :
11472 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11473 else $as_nop
11474
11475 lt_cv_dlopen=dyld
11476 lt_cv_dlopen_libs=
11477 lt_cv_dlopen_self=yes
11478
11479 fi
11480
11481 ;;
11482
11483 tpf*)
11484 # Don't try to run any link tests for TPF. We know it's impossible
11485 # because TPF is a cross-compiler, and we know how we open DSOs.
11486 lt_cv_dlopen=dlopen
11487 lt_cv_dlopen_libs=
11488 lt_cv_dlopen_self=no
11489 ;;
11490
11491 *)
11492 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11493 if test "x$ac_cv_func_shl_load" = xyes
11494 then :
11495 lt_cv_dlopen=shl_load
11496 else $as_nop
11497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11498 printf %s "checking for shl_load in -ldld... " >&6; }
11499 if test ${ac_cv_lib_dld_shl_load+y}
11500 then :
11501 printf %s "(cached) " >&6
11502 else $as_nop
11503 ac_check_lib_save_LIBS=$LIBS
11504 LIBS="-ldld $LIBS"
11505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506 /* end confdefs.h. */
11507
11508 /* Override any GCC internal prototype to avoid an error.
11509 Use char because int might match the return type of a GCC
11510 builtin and then its argument prototype would still apply. */
11511 char shl_load ();
11512 int
11513 main (void)
11514 {
11515 return shl_load ();
11516 ;
11517 return 0;
11518 }
11519 _ACEOF
11520 if ac_fn_c_try_link "$LINENO"
11521 then :
11522 ac_cv_lib_dld_shl_load=yes
11523 else $as_nop
11524 ac_cv_lib_dld_shl_load=no
11525 fi
11526 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11527 conftest$ac_exeext conftest.$ac_ext
11528 LIBS=$ac_check_lib_save_LIBS
11529 fi
11530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11531 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
11532 if test "x$ac_cv_lib_dld_shl_load" = xyes
11533 then :
11534 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11535 else $as_nop
11536 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11537 if test "x$ac_cv_func_dlopen" = xyes
11538 then :
11539 lt_cv_dlopen=dlopen
11540 else $as_nop
11541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11542 printf %s "checking for dlopen in -ldl... " >&6; }
11543 if test ${ac_cv_lib_dl_dlopen+y}
11544 then :
11545 printf %s "(cached) " >&6
11546 else $as_nop
11547 ac_check_lib_save_LIBS=$LIBS
11548 LIBS="-ldl $LIBS"
11549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h. */
11551
11552 /* Override any GCC internal prototype to avoid an error.
11553 Use char because int might match the return type of a GCC
11554 builtin and then its argument prototype would still apply. */
11555 char dlopen ();
11556 int
11557 main (void)
11558 {
11559 return dlopen ();
11560 ;
11561 return 0;
11562 }
11563 _ACEOF
11564 if ac_fn_c_try_link "$LINENO"
11565 then :
11566 ac_cv_lib_dl_dlopen=yes
11567 else $as_nop
11568 ac_cv_lib_dl_dlopen=no
11569 fi
11570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11571 conftest$ac_exeext conftest.$ac_ext
11572 LIBS=$ac_check_lib_save_LIBS
11573 fi
11574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11575 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11576 if test "x$ac_cv_lib_dl_dlopen" = xyes
11577 then :
11578 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11579 else $as_nop
11580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11581 printf %s "checking for dlopen in -lsvld... " >&6; }
11582 if test ${ac_cv_lib_svld_dlopen+y}
11583 then :
11584 printf %s "(cached) " >&6
11585 else $as_nop
11586 ac_check_lib_save_LIBS=$LIBS
11587 LIBS="-lsvld $LIBS"
11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h. */
11590
11591 /* Override any GCC internal prototype to avoid an error.
11592 Use char because int might match the return type of a GCC
11593 builtin and then its argument prototype would still apply. */
11594 char dlopen ();
11595 int
11596 main (void)
11597 {
11598 return dlopen ();
11599 ;
11600 return 0;
11601 }
11602 _ACEOF
11603 if ac_fn_c_try_link "$LINENO"
11604 then :
11605 ac_cv_lib_svld_dlopen=yes
11606 else $as_nop
11607 ac_cv_lib_svld_dlopen=no
11608 fi
11609 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11610 conftest$ac_exeext conftest.$ac_ext
11611 LIBS=$ac_check_lib_save_LIBS
11612 fi
11613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11614 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
11615 if test "x$ac_cv_lib_svld_dlopen" = xyes
11616 then :
11617 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11618 else $as_nop
11619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11620 printf %s "checking for dld_link in -ldld... " >&6; }
11621 if test ${ac_cv_lib_dld_dld_link+y}
11622 then :
11623 printf %s "(cached) " >&6
11624 else $as_nop
11625 ac_check_lib_save_LIBS=$LIBS
11626 LIBS="-ldld $LIBS"
11627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628 /* end confdefs.h. */
11629
11630 /* Override any GCC internal prototype to avoid an error.
11631 Use char because int might match the return type of a GCC
11632 builtin and then its argument prototype would still apply. */
11633 char dld_link ();
11634 int
11635 main (void)
11636 {
11637 return dld_link ();
11638 ;
11639 return 0;
11640 }
11641 _ACEOF
11642 if ac_fn_c_try_link "$LINENO"
11643 then :
11644 ac_cv_lib_dld_dld_link=yes
11645 else $as_nop
11646 ac_cv_lib_dld_dld_link=no
11647 fi
11648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11649 conftest$ac_exeext conftest.$ac_ext
11650 LIBS=$ac_check_lib_save_LIBS
11651 fi
11652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11653 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
11654 if test "x$ac_cv_lib_dld_dld_link" = xyes
11655 then :
11656 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11657 fi
11658
11659
11660 fi
11661
11662
11663 fi
11664
11665
11666 fi
11667
11668
11669 fi
11670
11671
11672 fi
11673
11674 ;;
11675 esac
11676
11677 if test no = "$lt_cv_dlopen"; then
11678 enable_dlopen=no
11679 else
11680 enable_dlopen=yes
11681 fi
11682
11683 case $lt_cv_dlopen in
11684 dlopen)
11685 save_CPPFLAGS=$CPPFLAGS
11686 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11687
11688 save_LDFLAGS=$LDFLAGS
11689 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11690
11691 save_LIBS=$LIBS
11692 LIBS="$lt_cv_dlopen_libs $LIBS"
11693
11694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11695 printf %s "checking whether a program can dlopen itself... " >&6; }
11696 if test ${lt_cv_dlopen_self+y}
11697 then :
11698 printf %s "(cached) " >&6
11699 else $as_nop
11700 if test yes = "$cross_compiling"; then :
11701 lt_cv_dlopen_self=cross
11702 else
11703 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11704 lt_status=$lt_dlunknown
11705 cat > conftest.$ac_ext <<_LT_EOF
11706 #line $LINENO "configure"
11707 #include "confdefs.h"
11708
11709 #if HAVE_DLFCN_H
11710 #include <dlfcn.h>
11711 #endif
11712
11713 #include <stdio.h>
11714
11715 #ifdef RTLD_GLOBAL
11716 # define LT_DLGLOBAL RTLD_GLOBAL
11717 #else
11718 # ifdef DL_GLOBAL
11719 # define LT_DLGLOBAL DL_GLOBAL
11720 # else
11721 # define LT_DLGLOBAL 0
11722 # endif
11723 #endif
11724
11725 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11726 find out it does not work in some platform. */
11727 #ifndef LT_DLLAZY_OR_NOW
11728 # ifdef RTLD_LAZY
11729 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11730 # else
11731 # ifdef DL_LAZY
11732 # define LT_DLLAZY_OR_NOW DL_LAZY
11733 # else
11734 # ifdef RTLD_NOW
11735 # define LT_DLLAZY_OR_NOW RTLD_NOW
11736 # else
11737 # ifdef DL_NOW
11738 # define LT_DLLAZY_OR_NOW DL_NOW
11739 # else
11740 # define LT_DLLAZY_OR_NOW 0
11741 # endif
11742 # endif
11743 # endif
11744 # endif
11745 #endif
11746
11747 /* When -fvisibility=hidden is used, assume the code has been annotated
11748 correspondingly for the symbols needed. */
11749 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11750 int fnord () __attribute__((visibility("default")));
11751 #endif
11752
11753 int fnord () { return 42; }
11754 int main ()
11755 {
11756 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11757 int status = $lt_dlunknown;
11758
11759 if (self)
11760 {
11761 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11762 else
11763 {
11764 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11765 else puts (dlerror ());
11766 }
11767 /* dlclose (self); */
11768 }
11769 else
11770 puts (dlerror ());
11771
11772 return status;
11773 }
11774 _LT_EOF
11775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11776 (eval $ac_link) 2>&5
11777 ac_status=$?
11778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11779 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11780 (./conftest; exit; ) >&5 2>/dev/null
11781 lt_status=$?
11782 case x$lt_status in
11783 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11784 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11785 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11786 esac
11787 else :
11788 # compilation failed
11789 lt_cv_dlopen_self=no
11790 fi
11791 fi
11792 rm -fr conftest*
11793
11794
11795 fi
11796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11797 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
11798
11799 if test yes = "$lt_cv_dlopen_self"; then
11800 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11802 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
11803 if test ${lt_cv_dlopen_self_static+y}
11804 then :
11805 printf %s "(cached) " >&6
11806 else $as_nop
11807 if test yes = "$cross_compiling"; then :
11808 lt_cv_dlopen_self_static=cross
11809 else
11810 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11811 lt_status=$lt_dlunknown
11812 cat > conftest.$ac_ext <<_LT_EOF
11813 #line $LINENO "configure"
11814 #include "confdefs.h"
11815
11816 #if HAVE_DLFCN_H
11817 #include <dlfcn.h>
11818 #endif
11819
11820 #include <stdio.h>
11821
11822 #ifdef RTLD_GLOBAL
11823 # define LT_DLGLOBAL RTLD_GLOBAL
11824 #else
11825 # ifdef DL_GLOBAL
11826 # define LT_DLGLOBAL DL_GLOBAL
11827 # else
11828 # define LT_DLGLOBAL 0
11829 # endif
11830 #endif
11831
11832 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11833 find out it does not work in some platform. */
11834 #ifndef LT_DLLAZY_OR_NOW
11835 # ifdef RTLD_LAZY
11836 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11837 # else
11838 # ifdef DL_LAZY
11839 # define LT_DLLAZY_OR_NOW DL_LAZY
11840 # else
11841 # ifdef RTLD_NOW
11842 # define LT_DLLAZY_OR_NOW RTLD_NOW
11843 # else
11844 # ifdef DL_NOW
11845 # define LT_DLLAZY_OR_NOW DL_NOW
11846 # else
11847 # define LT_DLLAZY_OR_NOW 0
11848 # endif
11849 # endif
11850 # endif
11851 # endif
11852 #endif
11853
11854 /* When -fvisibility=hidden is used, assume the code has been annotated
11855 correspondingly for the symbols needed. */
11856 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11857 int fnord () __attribute__((visibility("default")));
11858 #endif
11859
11860 int fnord () { return 42; }
11861 int main ()
11862 {
11863 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11864 int status = $lt_dlunknown;
11865
11866 if (self)
11867 {
11868 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11869 else
11870 {
11871 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11872 else puts (dlerror ());
11873 }
11874 /* dlclose (self); */
11875 }
11876 else
11877 puts (dlerror ());
11878
11879 return status;
11880 }
11881 _LT_EOF
11882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11883 (eval $ac_link) 2>&5
11884 ac_status=$?
11885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11886 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11887 (./conftest; exit; ) >&5 2>/dev/null
11888 lt_status=$?
11889 case x$lt_status in
11890 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11891 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11892 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11893 esac
11894 else :
11895 # compilation failed
11896 lt_cv_dlopen_self_static=no
11897 fi
11898 fi
11899 rm -fr conftest*
11900
11901
11902 fi
11903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11904 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
11905 fi
11906
11907 CPPFLAGS=$save_CPPFLAGS
11908 LDFLAGS=$save_LDFLAGS
11909 LIBS=$save_LIBS
11910 ;;
11911 esac
11912
11913 case $lt_cv_dlopen_self in
11914 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11915 *) enable_dlopen_self=unknown ;;
11916 esac
11917
11918 case $lt_cv_dlopen_self_static in
11919 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11920 *) enable_dlopen_self_static=unknown ;;
11921 esac
11922 fi
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940 striplib=
11941 old_striplib=
11942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11943 printf %s "checking whether stripping libraries is possible... " >&6; }
11944 if test -z "$STRIP"; then
11945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11946 printf "%s\n" "no" >&6; }
11947 else
11948 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11949 old_striplib="$STRIP --strip-debug"
11950 striplib="$STRIP --strip-unneeded"
11951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11952 printf "%s\n" "yes" >&6; }
11953 else
11954 case $host_os in
11955 darwin*)
11956 # FIXME - insert some real tests, host_os isn't really good enough
11957 striplib="$STRIP -x"
11958 old_striplib="$STRIP -S"
11959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11960 printf "%s\n" "yes" >&6; }
11961 ;;
11962 freebsd*)
11963 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
11964 old_striplib="$STRIP --strip-debug"
11965 striplib="$STRIP --strip-unneeded"
11966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11967 printf "%s\n" "yes" >&6; }
11968 else
11969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970 printf "%s\n" "no" >&6; }
11971 fi
11972 ;;
11973 *)
11974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975 printf "%s\n" "no" >&6; }
11976 ;;
11977 esac
11978 fi
11979 fi
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992 # Report what library types will actually be built
11993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11994 printf %s "checking if libtool supports shared libraries... " >&6; }
11995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11996 printf "%s\n" "$can_build_shared" >&6; }
11997
11998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11999 printf %s "checking whether to build shared libraries... " >&6; }
12000 test no = "$can_build_shared" && enable_shared=no
12001
12002 # On AIX, shared libraries and static libraries use the same namespace, and
12003 # are all built from PIC.
12004 case $host_os in
12005 aix3*)
12006 test yes = "$enable_shared" && enable_static=no
12007 if test -n "$RANLIB"; then
12008 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12009 postinstall_cmds='$RANLIB $lib'
12010 fi
12011 ;;
12012
12013 aix[4-9]*)
12014 if test ia64 != "$host_cpu"; then
12015 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12016 yes,aix,yes) ;; # shared object as lib.so file only
12017 yes,svr4,*) ;; # shared object as lib.so archive member only
12018 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12019 esac
12020 fi
12021 ;;
12022 esac
12023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12024 printf "%s\n" "$enable_shared" >&6; }
12025
12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12027 printf %s "checking whether to build static libraries... " >&6; }
12028 # Make sure either enable_shared or enable_static is yes.
12029 test yes = "$enable_shared" || enable_static=yes
12030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12031 printf "%s\n" "$enable_static" >&6; }
12032
12033
12034
12035
12036 fi
12037 ac_ext=c
12038 ac_cpp='$CPP $CPPFLAGS'
12039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12042
12043 CC=$lt_save_CC
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059 ac_config_commands="$ac_config_commands libtool"
12060
12061
12062
12063
12064 # Only expand once:
12065
12066
12067
12068
12069
12070 am__api_version='1.16'
12071
12072
12073 # Find a good install program. We prefer a C program (faster),
12074 # so one script is as good as another. But avoid the broken or
12075 # incompatible versions:
12076 # SysV /etc/install, /usr/sbin/install
12077 # SunOS /usr/etc/install
12078 # IRIX /sbin/install
12079 # AIX /bin/install
12080 # AmigaOS /C/install, which installs bootblocks on floppy discs
12081 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12082 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12083 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12084 # OS/2's system install, which has a completely different semantic
12085 # ./install, which can be erroneously created by make from ./install.sh.
12086 # Reject install programs that cannot install multiple files.
12087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
12088 printf %s "checking for a BSD-compatible install... " >&6; }
12089 if test -z "$INSTALL"; then
12090 if test ${ac_cv_path_install+y}
12091 then :
12092 printf %s "(cached) " >&6
12093 else $as_nop
12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12096 do
12097 IFS=$as_save_IFS
12098 case $as_dir in #(((
12099 '') as_dir=./ ;;
12100 */) ;;
12101 *) as_dir=$as_dir/ ;;
12102 esac
12103 # Account for fact that we put trailing slashes in our PATH walk.
12104 case $as_dir in #((
12105 ./ | /[cC]/* | \
12106 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12107 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
12108 /usr/ucb/* ) ;;
12109 *)
12110 # OSF1 and SCO ODT 3.0 have their own names for install.
12111 # Don't use installbsd from OSF since it installs stuff as root
12112 # by default.
12113 for ac_prog in ginstall scoinst install; do
12114 for ac_exec_ext in '' $ac_executable_extensions; do
12115 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
12116 if test $ac_prog = install &&
12117 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12118 # AIX install. It has an incompatible calling convention.
12119 :
12120 elif test $ac_prog = install &&
12121 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12122 # program-specific install script used by HP pwplus--don't use.
12123 :
12124 else
12125 rm -rf conftest.one conftest.two conftest.dir
12126 echo one > conftest.one
12127 echo two > conftest.two
12128 mkdir conftest.dir
12129 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
12130 test -s conftest.one && test -s conftest.two &&
12131 test -s conftest.dir/conftest.one &&
12132 test -s conftest.dir/conftest.two
12133 then
12134 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
12135 break 3
12136 fi
12137 fi
12138 fi
12139 done
12140 done
12141 ;;
12142 esac
12143
12144 done
12145 IFS=$as_save_IFS
12146
12147 rm -rf conftest.one conftest.two conftest.dir
12148
12149 fi
12150 if test ${ac_cv_path_install+y}; then
12151 INSTALL=$ac_cv_path_install
12152 else
12153 # As a last resort, use the slow shell script. Don't cache a
12154 # value for INSTALL within a source directory, because that will
12155 # break other packages using the cache if that directory is
12156 # removed, or if the value is a relative name.
12157 INSTALL=$ac_install_sh
12158 fi
12159 fi
12160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
12161 printf "%s\n" "$INSTALL" >&6; }
12162
12163 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12164 # It thinks the first close brace ends the variable substitution.
12165 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12166
12167 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12168
12169 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12170
12171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12172 printf %s "checking whether build environment is sane... " >&6; }
12173 # Reject unsafe characters in $srcdir or the absolute working directory
12174 # name. Accept space and tab only in the latter.
12175 am_lf='
12176 '
12177 case `pwd` in
12178 *[\\\"\#\$\&\'\`$am_lf]*)
12179 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12180 esac
12181 case $srcdir in
12182 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12183 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12184 esac
12185
12186 # Do 'set' in a subshell so we don't clobber the current shell's
12187 # arguments. Must try -L first in case configure is actually a
12188 # symlink; some systems play weird games with the mod time of symlinks
12189 # (eg FreeBSD returns the mod time of the symlink's containing
12190 # directory).
12191 if (
12192 am_has_slept=no
12193 for am_try in 1 2; do
12194 echo "timestamp, slept: $am_has_slept" > conftest.file
12195 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12196 if test "$*" = "X"; then
12197 # -L didn't work.
12198 set X `ls -t "$srcdir/configure" conftest.file`
12199 fi
12200 if test "$*" != "X $srcdir/configure conftest.file" \
12201 && test "$*" != "X conftest.file $srcdir/configure"; then
12202
12203 # If neither matched, then we have a broken ls. This can happen
12204 # if, for instance, CONFIG_SHELL is bash and it inherits a
12205 # broken ls alias from the environment. This has actually
12206 # happened. Such a system could not be considered "sane".
12207 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
12208 alias in your environment" "$LINENO" 5
12209 fi
12210 if test "$2" = conftest.file || test $am_try -eq 2; then
12211 break
12212 fi
12213 # Just in case.
12214 sleep 1
12215 am_has_slept=yes
12216 done
12217 test "$2" = conftest.file
12218 )
12219 then
12220 # Ok.
12221 :
12222 else
12223 as_fn_error $? "newly created file is older than distributed files!
12224 Check your system clock" "$LINENO" 5
12225 fi
12226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12227 printf "%s\n" "yes" >&6; }
12228 # If we didn't sleep, we still need to ensure time stamps of config.status and
12229 # generated files are strictly newer.
12230 am_sleep_pid=
12231 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12232 ( sleep 1 ) &
12233 am_sleep_pid=$!
12234 fi
12235
12236 rm -f conftest.file
12237
12238 test "$program_prefix" != NONE &&
12239 program_transform_name="s&^&$program_prefix&;$program_transform_name"
12240 # Use a double $ so make ignores it.
12241 test "$program_suffix" != NONE &&
12242 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
12243 # Double any \ or $.
12244 # By default was `s,x,x', remove it if useless.
12245 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
12246 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
12247
12248
12249 if test x"${MISSING+set}" != xset; then
12250 MISSING="\${SHELL} '$am_aux_dir/missing'"
12251 fi
12252 # Use eval to expand $SHELL
12253 if eval "$MISSING --is-lightweight"; then
12254 am_missing_run="$MISSING "
12255 else
12256 am_missing_run=
12257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12258 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12259 fi
12260
12261 if test x"${install_sh+set}" != xset; then
12262 case $am_aux_dir in
12263 *\ * | *\ *)
12264 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12265 *)
12266 install_sh="\${SHELL} $am_aux_dir/install-sh"
12267 esac
12268 fi
12269
12270 # Installed binaries are usually stripped using 'strip' when the user
12271 # run "make install-strip". However 'strip' might not be the right
12272 # tool to use in cross-compilation environments, therefore Automake
12273 # will honor the 'STRIP' environment variable to overrule this program.
12274 if test "$cross_compiling" != no; then
12275 if test -n "$ac_tool_prefix"; then
12276 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12277 set dummy ${ac_tool_prefix}strip; ac_word=$2
12278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12279 printf %s "checking for $ac_word... " >&6; }
12280 if test ${ac_cv_prog_STRIP+y}
12281 then :
12282 printf %s "(cached) " >&6
12283 else $as_nop
12284 if test -n "$STRIP"; then
12285 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12286 else
12287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12288 for as_dir in $PATH
12289 do
12290 IFS=$as_save_IFS
12291 case $as_dir in #(((
12292 '') as_dir=./ ;;
12293 */) ;;
12294 *) as_dir=$as_dir/ ;;
12295 esac
12296 for ac_exec_ext in '' $ac_executable_extensions; do
12297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12298 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12300 break 2
12301 fi
12302 done
12303 done
12304 IFS=$as_save_IFS
12305
12306 fi
12307 fi
12308 STRIP=$ac_cv_prog_STRIP
12309 if test -n "$STRIP"; then
12310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12311 printf "%s\n" "$STRIP" >&6; }
12312 else
12313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 printf "%s\n" "no" >&6; }
12315 fi
12316
12317
12318 fi
12319 if test -z "$ac_cv_prog_STRIP"; then
12320 ac_ct_STRIP=$STRIP
12321 # Extract the first word of "strip", so it can be a program name with args.
12322 set dummy strip; ac_word=$2
12323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12324 printf %s "checking for $ac_word... " >&6; }
12325 if test ${ac_cv_prog_ac_ct_STRIP+y}
12326 then :
12327 printf %s "(cached) " >&6
12328 else $as_nop
12329 if test -n "$ac_ct_STRIP"; then
12330 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12331 else
12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333 for as_dir in $PATH
12334 do
12335 IFS=$as_save_IFS
12336 case $as_dir in #(((
12337 '') as_dir=./ ;;
12338 */) ;;
12339 *) as_dir=$as_dir/ ;;
12340 esac
12341 for ac_exec_ext in '' $ac_executable_extensions; do
12342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12343 ac_cv_prog_ac_ct_STRIP="strip"
12344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12345 break 2
12346 fi
12347 done
12348 done
12349 IFS=$as_save_IFS
12350
12351 fi
12352 fi
12353 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12354 if test -n "$ac_ct_STRIP"; then
12355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12356 printf "%s\n" "$ac_ct_STRIP" >&6; }
12357 else
12358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359 printf "%s\n" "no" >&6; }
12360 fi
12361
12362 if test "x$ac_ct_STRIP" = x; then
12363 STRIP=":"
12364 else
12365 case $cross_compiling:$ac_tool_warned in
12366 yes:)
12367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12368 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12369 ac_tool_warned=yes ;;
12370 esac
12371 STRIP=$ac_ct_STRIP
12372 fi
12373 else
12374 STRIP="$ac_cv_prog_STRIP"
12375 fi
12376
12377 fi
12378 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
12379
12380
12381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
12382 printf %s "checking for a race-free mkdir -p... " >&6; }
12383 if test -z "$MKDIR_P"; then
12384 if test ${ac_cv_path_mkdir+y}
12385 then :
12386 printf %s "(cached) " >&6
12387 else $as_nop
12388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12390 do
12391 IFS=$as_save_IFS
12392 case $as_dir in #(((
12393 '') as_dir=./ ;;
12394 */) ;;
12395 *) as_dir=$as_dir/ ;;
12396 esac
12397 for ac_prog in mkdir gmkdir; do
12398 for ac_exec_ext in '' $ac_executable_extensions; do
12399 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
12400 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
12401 'mkdir ('*'coreutils) '* | \
12402 'BusyBox '* | \
12403 'mkdir (fileutils) '4.1*)
12404 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
12405 break 3;;
12406 esac
12407 done
12408 done
12409 done
12410 IFS=$as_save_IFS
12411
12412 fi
12413
12414 test -d ./--version && rmdir ./--version
12415 if test ${ac_cv_path_mkdir+y}; then
12416 MKDIR_P="$ac_cv_path_mkdir -p"
12417 else
12418 # As a last resort, use the slow shell script. Don't cache a
12419 # value for MKDIR_P within a source directory, because that will
12420 # break other packages using the cache if that directory is
12421 # removed, or if the value is a relative name.
12422 MKDIR_P="$ac_install_sh -d"
12423 fi
12424 fi
12425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12426 printf "%s\n" "$MKDIR_P" >&6; }
12427
12428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12429 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12430 set x ${MAKE-make}
12431 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12432 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
12433 then :
12434 printf %s "(cached) " >&6
12435 else $as_nop
12436 cat >conftest.make <<\_ACEOF
12437 SHELL = /bin/sh
12438 all:
12439 @echo '@@@%%%=$(MAKE)=@@@%%%'
12440 _ACEOF
12441 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12442 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12443 *@@@%%%=?*=@@@%%%*)
12444 eval ac_cv_prog_make_${ac_make}_set=yes;;
12445 *)
12446 eval ac_cv_prog_make_${ac_make}_set=no;;
12447 esac
12448 rm -f conftest.make
12449 fi
12450 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12452 printf "%s\n" "yes" >&6; }
12453 SET_MAKE=
12454 else
12455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 printf "%s\n" "no" >&6; }
12457 SET_MAKE="MAKE=${MAKE-make}"
12458 fi
12459
12460 rm -rf .tst 2>/dev/null
12461 mkdir .tst 2>/dev/null
12462 if test -d .tst; then
12463 am__leading_dot=.
12464 else
12465 am__leading_dot=_
12466 fi
12467 rmdir .tst 2>/dev/null
12468
12469 DEPDIR="${am__leading_dot}deps"
12470
12471 ac_config_commands="$ac_config_commands depfiles"
12472
12473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
12474 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
12475 cat > confinc.mk << 'END'
12476 am__doit:
12477 @echo this is the am__doit target >confinc.out
12478 .PHONY: am__doit
12479 END
12480 am__include="#"
12481 am__quote=
12482 # BSD make does it like this.
12483 echo '.include "confinc.mk" # ignored' > confmf.BSD
12484 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
12485 echo 'include confinc.mk # ignored' > confmf.GNU
12486 _am_result=no
12487 for s in GNU BSD; do
12488 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
12489 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }
12493 case $?:`cat confinc.out 2>/dev/null` in #(
12494 '0:this is the am__doit target') :
12495 case $s in #(
12496 BSD) :
12497 am__include='.include' am__quote='"' ;; #(
12498 *) :
12499 am__include='include' am__quote='' ;;
12500 esac ;; #(
12501 *) :
12502 ;;
12503 esac
12504 if test "$am__include" != "#"; then
12505 _am_result="yes ($s style)"
12506 break
12507 fi
12508 done
12509 rm -f confinc.* confmf.*
12510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
12511 printf "%s\n" "${_am_result}" >&6; }
12512
12513 # Check whether --enable-dependency-tracking was given.
12514 if test ${enable_dependency_tracking+y}
12515 then :
12516 enableval=$enable_dependency_tracking;
12517 fi
12518
12519 if test "x$enable_dependency_tracking" != xno; then
12520 am_depcomp="$ac_aux_dir/depcomp"
12521 AMDEPBACKSLASH='\'
12522 am__nodep='_no'
12523 fi
12524 if test "x$enable_dependency_tracking" != xno; then
12525 AMDEP_TRUE=
12526 AMDEP_FALSE='#'
12527 else
12528 AMDEP_TRUE='#'
12529 AMDEP_FALSE=
12530 fi
12531
12532
12533 # Check whether --enable-silent-rules was given.
12534 if test ${enable_silent_rules+y}
12535 then :
12536 enableval=$enable_silent_rules;
12537 fi
12538
12539 case $enable_silent_rules in # (((
12540 yes) AM_DEFAULT_VERBOSITY=0;;
12541 no) AM_DEFAULT_VERBOSITY=1;;
12542 *) AM_DEFAULT_VERBOSITY=1;;
12543 esac
12544 am_make=${MAKE-make}
12545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12546 printf %s "checking whether $am_make supports nested variables... " >&6; }
12547 if test ${am_cv_make_support_nested_variables+y}
12548 then :
12549 printf %s "(cached) " >&6
12550 else $as_nop
12551 if printf "%s\n" 'TRUE=$(BAR$(V))
12552 BAR0=false
12553 BAR1=true
12554 V=1
12555 am__doit:
12556 @$(TRUE)
12557 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12558 am_cv_make_support_nested_variables=yes
12559 else
12560 am_cv_make_support_nested_variables=no
12561 fi
12562 fi
12563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12564 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
12565 if test $am_cv_make_support_nested_variables = yes; then
12566 AM_V='$(V)'
12567 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12568 else
12569 AM_V=$AM_DEFAULT_VERBOSITY
12570 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12571 fi
12572 AM_BACKSLASH='\'
12573
12574 if test "`cd $srcdir && pwd`" != "`pwd`"; then
12575 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
12576 # is not polluted with repeated "-I."
12577 am__isrc=' -I$(srcdir)'
12578 # test to see if srcdir already configured
12579 if test -f $srcdir/config.status; then
12580 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
12581 fi
12582 fi
12583
12584 # test whether we have cygpath
12585 if test -z "$CYGPATH_W"; then
12586 if (cygpath --version) >/dev/null 2>/dev/null; then
12587 CYGPATH_W='cygpath -w'
12588 else
12589 CYGPATH_W=echo
12590 fi
12591 fi
12592
12593
12594 # Define the identity of the package.
12595 PACKAGE='libogg'
12596 VERSION='1.3.6'
12597
12598
12599 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
12600
12601
12602 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
12603
12604 # Some tools Automake needs.
12605
12606 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
12607
12608
12609 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12610
12611
12612 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
12613
12614
12615 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12616
12617
12618 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12619
12620 # For better backward compatibility. To be removed once Automake 1.9.x
12621 # dies out for good. For more background, see:
12622 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
12623 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
12624 mkdir_p='$(MKDIR_P)'
12625
12626 # We need awk for the "check" target (and possibly the TAP driver). The
12627 # system "awk" is bad on some platforms.
12628 # Always define AMTAR for backward compatibility. Yes, it's still used
12629 # in the wild :-( We should find a proper way to deprecate it ...
12630 AMTAR='$${TAR-tar}'
12631
12632
12633 # We'll loop over all known methods to create a tar archive until one works.
12634 _am_tools='gnutar pax cpio none'
12635
12636 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
12637
12638
12639
12640
12641
12642 depcc="$CC" am_compiler_list=
12643
12644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12645 printf %s "checking dependency style of $depcc... " >&6; }
12646 if test ${am_cv_CC_dependencies_compiler_type+y}
12647 then :
12648 printf %s "(cached) " >&6
12649 else $as_nop
12650 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12651 # We make a subdir and do the tests there. Otherwise we can end up
12652 # making bogus files that we don't know about and never remove. For
12653 # instance it was reported that on HP-UX the gcc test will end up
12654 # making a dummy file named 'D' -- because '-MD' means "put the output
12655 # in D".
12656 rm -rf conftest.dir
12657 mkdir conftest.dir
12658 # Copy depcomp to subdir because otherwise we won't find it if we're
12659 # using a relative directory.
12660 cp "$am_depcomp" conftest.dir
12661 cd conftest.dir
12662 # We will build objects and dependencies in a subdirectory because
12663 # it helps to detect inapplicable dependency modes. For instance
12664 # both Tru64's cc and ICC support -MD to output dependencies as a
12665 # side effect of compilation, but ICC will put the dependencies in
12666 # the current directory while Tru64 will put them in the object
12667 # directory.
12668 mkdir sub
12669
12670 am_cv_CC_dependencies_compiler_type=none
12671 if test "$am_compiler_list" = ""; then
12672 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12673 fi
12674 am__universal=false
12675 case " $depcc " in #(
12676 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12677 esac
12678
12679 for depmode in $am_compiler_list; do
12680 # Setup a source with many dependencies, because some compilers
12681 # like to wrap large dependency lists on column 80 (with \), and
12682 # we should not choose a depcomp mode which is confused by this.
12683 #
12684 # We need to recreate these files for each test, as the compiler may
12685 # overwrite some of them when testing with obscure command lines.
12686 # This happens at least with the AIX C compiler.
12687 : > sub/conftest.c
12688 for i in 1 2 3 4 5 6; do
12689 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12690 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12691 # Solaris 10 /bin/sh.
12692 echo '/* dummy */' > sub/conftst$i.h
12693 done
12694 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12695
12696 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12697 # mode. It turns out that the SunPro C++ compiler does not properly
12698 # handle '-M -o', and we need to detect this. Also, some Intel
12699 # versions had trouble with output in subdirs.
12700 am__obj=sub/conftest.${OBJEXT-o}
12701 am__minus_obj="-o $am__obj"
12702 case $depmode in
12703 gcc)
12704 # This depmode causes a compiler race in universal mode.
12705 test "$am__universal" = false || continue
12706 ;;
12707 nosideeffect)
12708 # After this tag, mechanisms are not by side-effect, so they'll
12709 # only be used when explicitly requested.
12710 if test "x$enable_dependency_tracking" = xyes; then
12711 continue
12712 else
12713 break
12714 fi
12715 ;;
12716 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12717 # This compiler won't grok '-c -o', but also, the minuso test has
12718 # not run yet. These depmodes are late enough in the game, and
12719 # so weak that their functioning should not be impacted.
12720 am__obj=conftest.${OBJEXT-o}
12721 am__minus_obj=
12722 ;;
12723 none) break ;;
12724 esac
12725 if depmode=$depmode \
12726 source=sub/conftest.c object=$am__obj \
12727 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12728 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12729 >/dev/null 2>conftest.err &&
12730 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12731 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12732 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12733 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12734 # icc doesn't choke on unknown options, it will just issue warnings
12735 # or remarks (even with -Werror). So we grep stderr for any message
12736 # that says an option was ignored or not supported.
12737 # When given -MP, icc 7.0 and 7.1 complain thusly:
12738 # icc: Command line warning: ignoring option '-M'; no argument required
12739 # The diagnosis changed in icc 8.0:
12740 # icc: Command line remark: option '-MP' not supported
12741 if (grep 'ignoring option' conftest.err ||
12742 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12743 am_cv_CC_dependencies_compiler_type=$depmode
12744 break
12745 fi
12746 fi
12747 done
12748
12749 cd ..
12750 rm -rf conftest.dir
12751 else
12752 am_cv_CC_dependencies_compiler_type=none
12753 fi
12754
12755 fi
12756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12757 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
12758 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12759
12760 if
12761 test "x$enable_dependency_tracking" != xno \
12762 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12763 am__fastdepCC_TRUE=
12764 am__fastdepCC_FALSE='#'
12765 else
12766 am__fastdepCC_TRUE='#'
12767 am__fastdepCC_FALSE=
12768 fi
12769
12770
12771 # Variables for tags utilities; see am/tags.am
12772 if test -z "$CTAGS"; then
12773 CTAGS=ctags
12774 fi
12775
12776 if test -z "$ETAGS"; then
12777 ETAGS=etags
12778 fi
12779
12780 if test -z "$CSCOPE"; then
12781 CSCOPE=cscope
12782 fi
12783
12784
12785
12786 # POSIX will say in a future version that running "rm -f" with no argument
12787 # is OK; and we want to be able to make that assumption in our Makefile
12788 # recipes. So use an aggressive probe to check that the usage we want is
12789 # actually supported "in the wild" to an acceptable degree.
12790 # See automake bug#10828.
12791 # To make any issue more visible, cause the running configure to be aborted
12792 # by default if the 'rm' program in use doesn't match our expectations; the
12793 # user can still override this though.
12794 if rm -f && rm -fr && rm -rf; then : OK; else
12795 cat >&2 <<'END'
12796 Oops!
12797
12798 Your 'rm' program seems unable to run without file operands specified
12799 on the command line, even when the '-f' option is present. This is contrary
12800 to the behaviour of most rm programs out there, and not conforming with
12801 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
12802
12803 Please tell [email protected] about your system, including the value
12804 of your $PATH and any error possibly output before this message. This
12805 can help us improve future automake versions.
12806
12807 END
12808 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
12809 echo 'Configuration will proceed anyway, since you have set the' >&2
12810 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
12811 echo >&2
12812 else
12813 cat >&2 <<'END'
12814 Aborting the configuration process, to ensure you take notice of the issue.
12815
12816 You can download and install GNU coreutils to get an 'rm' implementation
12817 that behaves properly: <https://www.gnu.org/software/coreutils/>.
12818
12819 If you want to complete the configuration process using your problematic
12820 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
12821 to "yes", and re-run configure.
12822
12823 END
12824 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
12825 fi
12826 fi
12827
12828
12829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12830 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12831 # Check whether --enable-maintainer-mode was given.
12832 if test ${enable_maintainer_mode+y}
12833 then :
12834 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12835 else $as_nop
12836 USE_MAINTAINER_MODE=yes
12837 fi
12838
12839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12840 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
12841 if test $USE_MAINTAINER_MODE = yes; then
12842 MAINTAINER_MODE_TRUE=
12843 MAINTAINER_MODE_FALSE='#'
12844 else
12845 MAINTAINER_MODE_TRUE='#'
12846 MAINTAINER_MODE_FALSE=
12847 fi
12848
12849 MAINT=$MAINTAINER_MODE_TRUE
12850
12851
12852
12853
12854 LIB_CURRENT=8
12855 LIB_REVISION=6
12856 LIB_AGE=8
12857
12858
12859
12860
12861 ac_ext=c
12862 ac_cpp='$CPP $CPPFLAGS'
12863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12866 if test -n "$ac_tool_prefix"; then
12867 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12868 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12870 printf %s "checking for $ac_word... " >&6; }
12871 if test ${ac_cv_prog_CC+y}
12872 then :
12873 printf %s "(cached) " >&6
12874 else $as_nop
12875 if test -n "$CC"; then
12876 ac_cv_prog_CC="$CC" # Let the user override the test.
12877 else
12878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879 for as_dir in $PATH
12880 do
12881 IFS=$as_save_IFS
12882 case $as_dir in #(((
12883 '') as_dir=./ ;;
12884 */) ;;
12885 *) as_dir=$as_dir/ ;;
12886 esac
12887 for ac_exec_ext in '' $ac_executable_extensions; do
12888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12889 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12891 break 2
12892 fi
12893 done
12894 done
12895 IFS=$as_save_IFS
12896
12897 fi
12898 fi
12899 CC=$ac_cv_prog_CC
12900 if test -n "$CC"; then
12901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12902 printf "%s\n" "$CC" >&6; }
12903 else
12904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 printf "%s\n" "no" >&6; }
12906 fi
12907
12908
12909 fi
12910 if test -z "$ac_cv_prog_CC"; then
12911 ac_ct_CC=$CC
12912 # Extract the first word of "gcc", so it can be a program name with args.
12913 set dummy gcc; ac_word=$2
12914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12915 printf %s "checking for $ac_word... " >&6; }
12916 if test ${ac_cv_prog_ac_ct_CC+y}
12917 then :
12918 printf %s "(cached) " >&6
12919 else $as_nop
12920 if test -n "$ac_ct_CC"; then
12921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12922 else
12923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12924 for as_dir in $PATH
12925 do
12926 IFS=$as_save_IFS
12927 case $as_dir in #(((
12928 '') as_dir=./ ;;
12929 */) ;;
12930 *) as_dir=$as_dir/ ;;
12931 esac
12932 for ac_exec_ext in '' $ac_executable_extensions; do
12933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12934 ac_cv_prog_ac_ct_CC="gcc"
12935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12936 break 2
12937 fi
12938 done
12939 done
12940 IFS=$as_save_IFS
12941
12942 fi
12943 fi
12944 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12945 if test -n "$ac_ct_CC"; then
12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12947 printf "%s\n" "$ac_ct_CC" >&6; }
12948 else
12949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12950 printf "%s\n" "no" >&6; }
12951 fi
12952
12953 if test "x$ac_ct_CC" = x; then
12954 CC=""
12955 else
12956 case $cross_compiling:$ac_tool_warned in
12957 yes:)
12958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12959 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12960 ac_tool_warned=yes ;;
12961 esac
12962 CC=$ac_ct_CC
12963 fi
12964 else
12965 CC="$ac_cv_prog_CC"
12966 fi
12967
12968 if test -z "$CC"; then
12969 if test -n "$ac_tool_prefix"; then
12970 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12971 set dummy ${ac_tool_prefix}cc; ac_word=$2
12972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12973 printf %s "checking for $ac_word... " >&6; }
12974 if test ${ac_cv_prog_CC+y}
12975 then :
12976 printf %s "(cached) " >&6
12977 else $as_nop
12978 if test -n "$CC"; then
12979 ac_cv_prog_CC="$CC" # Let the user override the test.
12980 else
12981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12982 for as_dir in $PATH
12983 do
12984 IFS=$as_save_IFS
12985 case $as_dir in #(((
12986 '') as_dir=./ ;;
12987 */) ;;
12988 *) as_dir=$as_dir/ ;;
12989 esac
12990 for ac_exec_ext in '' $ac_executable_extensions; do
12991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12992 ac_cv_prog_CC="${ac_tool_prefix}cc"
12993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12994 break 2
12995 fi
12996 done
12997 done
12998 IFS=$as_save_IFS
12999
13000 fi
13001 fi
13002 CC=$ac_cv_prog_CC
13003 if test -n "$CC"; then
13004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13005 printf "%s\n" "$CC" >&6; }
13006 else
13007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13008 printf "%s\n" "no" >&6; }
13009 fi
13010
13011
13012 fi
13013 fi
13014 if test -z "$CC"; then
13015 # Extract the first word of "cc", so it can be a program name with args.
13016 set dummy cc; ac_word=$2
13017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13018 printf %s "checking for $ac_word... " >&6; }
13019 if test ${ac_cv_prog_CC+y}
13020 then :
13021 printf %s "(cached) " >&6
13022 else $as_nop
13023 if test -n "$CC"; then
13024 ac_cv_prog_CC="$CC" # Let the user override the test.
13025 else
13026 ac_prog_rejected=no
13027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13028 for as_dir in $PATH
13029 do
13030 IFS=$as_save_IFS
13031 case $as_dir in #(((
13032 '') as_dir=./ ;;
13033 */) ;;
13034 *) as_dir=$as_dir/ ;;
13035 esac
13036 for ac_exec_ext in '' $ac_executable_extensions; do
13037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13038 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13039 ac_prog_rejected=yes
13040 continue
13041 fi
13042 ac_cv_prog_CC="cc"
13043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13044 break 2
13045 fi
13046 done
13047 done
13048 IFS=$as_save_IFS
13049
13050 if test $ac_prog_rejected = yes; then
13051 # We found a bogon in the path, so make sure we never use it.
13052 set dummy $ac_cv_prog_CC
13053 shift
13054 if test $# != 0; then
13055 # We chose a different compiler from the bogus one.
13056 # However, it has the same basename, so the bogon will be chosen
13057 # first if we set CC to just the basename; use the full file name.
13058 shift
13059 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
13060 fi
13061 fi
13062 fi
13063 fi
13064 CC=$ac_cv_prog_CC
13065 if test -n "$CC"; then
13066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13067 printf "%s\n" "$CC" >&6; }
13068 else
13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 printf "%s\n" "no" >&6; }
13071 fi
13072
13073
13074 fi
13075 if test -z "$CC"; then
13076 if test -n "$ac_tool_prefix"; then
13077 for ac_prog in cl.exe
13078 do
13079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13082 printf %s "checking for $ac_word... " >&6; }
13083 if test ${ac_cv_prog_CC+y}
13084 then :
13085 printf %s "(cached) " >&6
13086 else $as_nop
13087 if test -n "$CC"; then
13088 ac_cv_prog_CC="$CC" # Let the user override the test.
13089 else
13090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13091 for as_dir in $PATH
13092 do
13093 IFS=$as_save_IFS
13094 case $as_dir in #(((
13095 '') as_dir=./ ;;
13096 */) ;;
13097 *) as_dir=$as_dir/ ;;
13098 esac
13099 for ac_exec_ext in '' $ac_executable_extensions; do
13100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13101 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13103 break 2
13104 fi
13105 done
13106 done
13107 IFS=$as_save_IFS
13108
13109 fi
13110 fi
13111 CC=$ac_cv_prog_CC
13112 if test -n "$CC"; then
13113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13114 printf "%s\n" "$CC" >&6; }
13115 else
13116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 printf "%s\n" "no" >&6; }
13118 fi
13119
13120
13121 test -n "$CC" && break
13122 done
13123 fi
13124 if test -z "$CC"; then
13125 ac_ct_CC=$CC
13126 for ac_prog in cl.exe
13127 do
13128 # Extract the first word of "$ac_prog", so it can be a program name with args.
13129 set dummy $ac_prog; ac_word=$2
13130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131 printf %s "checking for $ac_word... " >&6; }
13132 if test ${ac_cv_prog_ac_ct_CC+y}
13133 then :
13134 printf %s "(cached) " >&6
13135 else $as_nop
13136 if test -n "$ac_ct_CC"; then
13137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13138 else
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $PATH
13141 do
13142 IFS=$as_save_IFS
13143 case $as_dir in #(((
13144 '') as_dir=./ ;;
13145 */) ;;
13146 *) as_dir=$as_dir/ ;;
13147 esac
13148 for ac_exec_ext in '' $ac_executable_extensions; do
13149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13150 ac_cv_prog_ac_ct_CC="$ac_prog"
13151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13152 break 2
13153 fi
13154 done
13155 done
13156 IFS=$as_save_IFS
13157
13158 fi
13159 fi
13160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13161 if test -n "$ac_ct_CC"; then
13162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13163 printf "%s\n" "$ac_ct_CC" >&6; }
13164 else
13165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166 printf "%s\n" "no" >&6; }
13167 fi
13168
13169
13170 test -n "$ac_ct_CC" && break
13171 done
13172
13173 if test "x$ac_ct_CC" = x; then
13174 CC=""
13175 else
13176 case $cross_compiling:$ac_tool_warned in
13177 yes:)
13178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13179 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13180 ac_tool_warned=yes ;;
13181 esac
13182 CC=$ac_ct_CC
13183 fi
13184 fi
13185
13186 fi
13187 if test -z "$CC"; then
13188 if test -n "$ac_tool_prefix"; then
13189 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
13190 set dummy ${ac_tool_prefix}clang; ac_word=$2
13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192 printf %s "checking for $ac_word... " >&6; }
13193 if test ${ac_cv_prog_CC+y}
13194 then :
13195 printf %s "(cached) " >&6
13196 else $as_nop
13197 if test -n "$CC"; then
13198 ac_cv_prog_CC="$CC" # Let the user override the test.
13199 else
13200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13201 for as_dir in $PATH
13202 do
13203 IFS=$as_save_IFS
13204 case $as_dir in #(((
13205 '') as_dir=./ ;;
13206 */) ;;
13207 *) as_dir=$as_dir/ ;;
13208 esac
13209 for ac_exec_ext in '' $ac_executable_extensions; do
13210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13211 ac_cv_prog_CC="${ac_tool_prefix}clang"
13212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13213 break 2
13214 fi
13215 done
13216 done
13217 IFS=$as_save_IFS
13218
13219 fi
13220 fi
13221 CC=$ac_cv_prog_CC
13222 if test -n "$CC"; then
13223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13224 printf "%s\n" "$CC" >&6; }
13225 else
13226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227 printf "%s\n" "no" >&6; }
13228 fi
13229
13230
13231 fi
13232 if test -z "$ac_cv_prog_CC"; then
13233 ac_ct_CC=$CC
13234 # Extract the first word of "clang", so it can be a program name with args.
13235 set dummy clang; ac_word=$2
13236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237 printf %s "checking for $ac_word... " >&6; }
13238 if test ${ac_cv_prog_ac_ct_CC+y}
13239 then :
13240 printf %s "(cached) " >&6
13241 else $as_nop
13242 if test -n "$ac_ct_CC"; then
13243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13244 else
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13247 do
13248 IFS=$as_save_IFS
13249 case $as_dir in #(((
13250 '') as_dir=./ ;;
13251 */) ;;
13252 *) as_dir=$as_dir/ ;;
13253 esac
13254 for ac_exec_ext in '' $ac_executable_extensions; do
13255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13256 ac_cv_prog_ac_ct_CC="clang"
13257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13258 break 2
13259 fi
13260 done
13261 done
13262 IFS=$as_save_IFS
13263
13264 fi
13265 fi
13266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13267 if test -n "$ac_ct_CC"; then
13268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13269 printf "%s\n" "$ac_ct_CC" >&6; }
13270 else
13271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13272 printf "%s\n" "no" >&6; }
13273 fi
13274
13275 if test "x$ac_ct_CC" = x; then
13276 CC=""
13277 else
13278 case $cross_compiling:$ac_tool_warned in
13279 yes:)
13280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13281 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13282 ac_tool_warned=yes ;;
13283 esac
13284 CC=$ac_ct_CC
13285 fi
13286 else
13287 CC="$ac_cv_prog_CC"
13288 fi
13289
13290 fi
13291
13292
13293 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13294 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13295 as_fn_error $? "no acceptable C compiler found in \$PATH
13296 See \`config.log' for more details" "$LINENO" 5; }
13297
13298 # Provide some information about the compiler.
13299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13300 set X $ac_compile
13301 ac_compiler=$2
13302 for ac_option in --version -v -V -qversion -version; do
13303 { { ac_try="$ac_compiler $ac_option >&5"
13304 case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13307 esac
13308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13309 printf "%s\n" "$ac_try_echo"; } >&5
13310 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13311 ac_status=$?
13312 if test -s conftest.err; then
13313 sed '10a\
13314 ... rest of stderr output deleted ...
13315 10q' conftest.err >conftest.er1
13316 cat conftest.er1 >&5
13317 fi
13318 rm -f conftest.er1 conftest.err
13319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13320 test $ac_status = 0; }
13321 done
13322
13323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
13324 printf %s "checking whether the compiler supports GNU C... " >&6; }
13325 if test ${ac_cv_c_compiler_gnu+y}
13326 then :
13327 printf %s "(cached) " >&6
13328 else $as_nop
13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h. */
13331
13332 int
13333 main (void)
13334 {
13335 #ifndef __GNUC__
13336 choke me
13337 #endif
13338
13339 ;
13340 return 0;
13341 }
13342 _ACEOF
13343 if ac_fn_c_try_compile "$LINENO"
13344 then :
13345 ac_compiler_gnu=yes
13346 else $as_nop
13347 ac_compiler_gnu=no
13348 fi
13349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13351
13352 fi
13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13354 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
13355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13356
13357 if test $ac_compiler_gnu = yes; then
13358 GCC=yes
13359 else
13360 GCC=
13361 fi
13362 ac_test_CFLAGS=${CFLAGS+y}
13363 ac_save_CFLAGS=$CFLAGS
13364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13365 printf %s "checking whether $CC accepts -g... " >&6; }
13366 if test ${ac_cv_prog_cc_g+y}
13367 then :
13368 printf %s "(cached) " >&6
13369 else $as_nop
13370 ac_save_c_werror_flag=$ac_c_werror_flag
13371 ac_c_werror_flag=yes
13372 ac_cv_prog_cc_g=no
13373 CFLAGS="-g"
13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375 /* end confdefs.h. */
13376
13377 int
13378 main (void)
13379 {
13380
13381 ;
13382 return 0;
13383 }
13384 _ACEOF
13385 if ac_fn_c_try_compile "$LINENO"
13386 then :
13387 ac_cv_prog_cc_g=yes
13388 else $as_nop
13389 CFLAGS=""
13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13392
13393 int
13394 main (void)
13395 {
13396
13397 ;
13398 return 0;
13399 }
13400 _ACEOF
13401 if ac_fn_c_try_compile "$LINENO"
13402 then :
13403
13404 else $as_nop
13405 ac_c_werror_flag=$ac_save_c_werror_flag
13406 CFLAGS="-g"
13407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h. */
13409
13410 int
13411 main (void)
13412 {
13413
13414 ;
13415 return 0;
13416 }
13417 _ACEOF
13418 if ac_fn_c_try_compile "$LINENO"
13419 then :
13420 ac_cv_prog_cc_g=yes
13421 fi
13422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13423 fi
13424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13425 fi
13426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13427 ac_c_werror_flag=$ac_save_c_werror_flag
13428 fi
13429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13430 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
13431 if test $ac_test_CFLAGS; then
13432 CFLAGS=$ac_save_CFLAGS
13433 elif test $ac_cv_prog_cc_g = yes; then
13434 if test "$GCC" = yes; then
13435 CFLAGS="-g -O2"
13436 else
13437 CFLAGS="-g"
13438 fi
13439 else
13440 if test "$GCC" = yes; then
13441 CFLAGS="-O2"
13442 else
13443 CFLAGS=
13444 fi
13445 fi
13446 ac_prog_cc_stdc=no
13447 if test x$ac_prog_cc_stdc = xno
13448 then :
13449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
13450 printf %s "checking for $CC option to enable C11 features... " >&6; }
13451 if test ${ac_cv_prog_cc_c11+y}
13452 then :
13453 printf %s "(cached) " >&6
13454 else $as_nop
13455 ac_cv_prog_cc_c11=no
13456 ac_save_CC=$CC
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13459 $ac_c_conftest_c11_program
13460 _ACEOF
13461 for ac_arg in '' -std=gnu11
13462 do
13463 CC="$ac_save_CC $ac_arg"
13464 if ac_fn_c_try_compile "$LINENO"
13465 then :
13466 ac_cv_prog_cc_c11=$ac_arg
13467 fi
13468 rm -f core conftest.err conftest.$ac_objext conftest.beam
13469 test "x$ac_cv_prog_cc_c11" != "xno" && break
13470 done
13471 rm -f conftest.$ac_ext
13472 CC=$ac_save_CC
13473 fi
13474
13475 if test "x$ac_cv_prog_cc_c11" = xno
13476 then :
13477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13478 printf "%s\n" "unsupported" >&6; }
13479 else $as_nop
13480 if test "x$ac_cv_prog_cc_c11" = x
13481 then :
13482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13483 printf "%s\n" "none needed" >&6; }
13484 else $as_nop
13485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
13486 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
13487 CC="$CC $ac_cv_prog_cc_c11"
13488 fi
13489 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
13490 ac_prog_cc_stdc=c11
13491 fi
13492 fi
13493 if test x$ac_prog_cc_stdc = xno
13494 then :
13495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
13496 printf %s "checking for $CC option to enable C99 features... " >&6; }
13497 if test ${ac_cv_prog_cc_c99+y}
13498 then :
13499 printf %s "(cached) " >&6
13500 else $as_nop
13501 ac_cv_prog_cc_c99=no
13502 ac_save_CC=$CC
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505 $ac_c_conftest_c99_program
13506 _ACEOF
13507 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
13508 do
13509 CC="$ac_save_CC $ac_arg"
13510 if ac_fn_c_try_compile "$LINENO"
13511 then :
13512 ac_cv_prog_cc_c99=$ac_arg
13513 fi
13514 rm -f core conftest.err conftest.$ac_objext conftest.beam
13515 test "x$ac_cv_prog_cc_c99" != "xno" && break
13516 done
13517 rm -f conftest.$ac_ext
13518 CC=$ac_save_CC
13519 fi
13520
13521 if test "x$ac_cv_prog_cc_c99" = xno
13522 then :
13523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13524 printf "%s\n" "unsupported" >&6; }
13525 else $as_nop
13526 if test "x$ac_cv_prog_cc_c99" = x
13527 then :
13528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13529 printf "%s\n" "none needed" >&6; }
13530 else $as_nop
13531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13532 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
13533 CC="$CC $ac_cv_prog_cc_c99"
13534 fi
13535 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13536 ac_prog_cc_stdc=c99
13537 fi
13538 fi
13539 if test x$ac_prog_cc_stdc = xno
13540 then :
13541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
13542 printf %s "checking for $CC option to enable C89 features... " >&6; }
13543 if test ${ac_cv_prog_cc_c89+y}
13544 then :
13545 printf %s "(cached) " >&6
13546 else $as_nop
13547 ac_cv_prog_cc_c89=no
13548 ac_save_CC=$CC
13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13551 $ac_c_conftest_c89_program
13552 _ACEOF
13553 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13554 do
13555 CC="$ac_save_CC $ac_arg"
13556 if ac_fn_c_try_compile "$LINENO"
13557 then :
13558 ac_cv_prog_cc_c89=$ac_arg
13559 fi
13560 rm -f core conftest.err conftest.$ac_objext conftest.beam
13561 test "x$ac_cv_prog_cc_c89" != "xno" && break
13562 done
13563 rm -f conftest.$ac_ext
13564 CC=$ac_save_CC
13565 fi
13566
13567 if test "x$ac_cv_prog_cc_c89" = xno
13568 then :
13569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13570 printf "%s\n" "unsupported" >&6; }
13571 else $as_nop
13572 if test "x$ac_cv_prog_cc_c89" = x
13573 then :
13574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13575 printf "%s\n" "none needed" >&6; }
13576 else $as_nop
13577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13578 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
13579 CC="$CC $ac_cv_prog_cc_c89"
13580 fi
13581 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
13582 ac_prog_cc_stdc=c89
13583 fi
13584 fi
13585
13586 ac_ext=c
13587 ac_cpp='$CPP $CPPFLAGS'
13588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13591
13592
13593 ac_ext=c
13594 ac_cpp='$CPP $CPPFLAGS'
13595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13599 printf %s "checking whether $CC understands -c and -o together... " >&6; }
13600 if test ${am_cv_prog_cc_c_o+y}
13601 then :
13602 printf %s "(cached) " >&6
13603 else $as_nop
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606
13607 int
13608 main (void)
13609 {
13610
13611 ;
13612 return 0;
13613 }
13614 _ACEOF
13615 # Make sure it works both with $CC and with simple cc.
13616 # Following AC_PROG_CC_C_O, we do the test twice because some
13617 # compilers refuse to overwrite an existing .o file with -o,
13618 # though they will create one.
13619 am_cv_prog_cc_c_o=yes
13620 for am_i in 1 2; do
13621 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13622 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } \
13626 && test -f conftest2.$ac_objext; then
13627 : OK
13628 else
13629 am_cv_prog_cc_c_o=no
13630 break
13631 fi
13632 done
13633 rm -f core conftest*
13634 unset am_i
13635 fi
13636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13637 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
13638 if test "$am_cv_prog_cc_c_o" != yes; then
13639 # Losing compiler, so override with the script.
13640 # FIXME: It is wrong to rewrite CC.
13641 # But if we don't then we get into trouble of one sort or another.
13642 # A longer-term fix would be to have automake use am__CC in this case,
13643 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13644 CC="$am_aux_dir/compile $CC"
13645 fi
13646 ac_ext=c
13647 ac_cpp='$CPP $CPPFLAGS'
13648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13651
13652
13653
13654
13655
13656 cflags_save="$CFLAGS"
13657 if test -z "$GCC"; then
13658 case $host in
13659 *-*-irix*)
13660 DEBUG="-g -signed"
13661 CFLAGS="-O2 -w -signed"
13662 PROFILE="-p -g3 -O2 -signed"
13663 ;;
13664 sparc-sun-solaris*)
13665 DEBUG="-v -g"
13666 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
13667 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
13668 ;;
13669 *)
13670 DEBUG="-g"
13671 CFLAGS="-O"
13672 PROFILE="-g -p"
13673 ;;
13674 esac
13675 else
13676 case $host in
13677 *-*-linux*)
13678 DEBUG="-g -Wall -Wextra -fsigned-char"
13679 CFLAGS="-O2 -Wall -Wextra -ffast-math -fsigned-char"
13680 PROFILE="-Wall -Wextra -W -pg -g -O2 -ffast-math -fsigned-char"
13681 ;;
13682 sparc-sun-*)
13683 DEBUG="-g -Wall -Wextra -fsigned-char"
13684 CFLAGS="-O2 -ffast-math -fsigned-char"
13685 PROFILE="-pg -g -O2 -fsigned-char"
13686 ;;
13687 *-*-darwin*)
13688 DEBUG="-fno-common -g -Wall -Wextra -fsigned-char"
13689 CFLAGS="-fno-common -O4 -Wall -Wextra -fsigned-char -ffast-math"
13690 PROFILE="-fno-common -O4 -Wall -Wextra -pg -g -fsigned-char -ffast-math"
13691 ;;
13692 *)
13693 DEBUG="-g -Wall -Wextra -fsigned-char"
13694 CFLAGS="-O2 -fsigned-char"
13695 PROFILE="-O2 -g -pg -fsigned-char"
13696 ;;
13697 esac
13698 fi
13699 CFLAGS="$CFLAGS $cflags_save"
13700 DEBUG="$DEBUG $cflags_save"
13701 PROFILE="$PROFILE $cflags_save"
13702
13703
13704
13705 INCLUDE_INTTYPES_H=0
13706 INCLUDE_STDINT_H=0
13707 INCLUDE_SYS_TYPES_H=0
13708 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13709 if test "x$ac_cv_header_inttypes_h" = xyes
13710 then :
13711 INCLUDE_INTTYPES_H=1
13712 fi
13713
13714 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13715 if test "x$ac_cv_header_stdint_h" = xyes
13716 then :
13717 INCLUDE_STDINT_H=1
13718 fi
13719
13720 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
13721 if test "x$ac_cv_header_sys_types_h" = xyes
13722 then :
13723 INCLUDE_SYS_TYPES_H=1
13724 fi
13725
13726
13727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13728 printf %s "checking for an ANSI C-conforming const... " >&6; }
13729 if test ${ac_cv_c_const+y}
13730 then :
13731 printf %s "(cached) " >&6
13732 else $as_nop
13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13735
13736 int
13737 main (void)
13738 {
13739
13740 #ifndef __cplusplus
13741 /* Ultrix mips cc rejects this sort of thing. */
13742 typedef int charset[2];
13743 const charset cs = { 0, 0 };
13744 /* SunOS 4.1.1 cc rejects this. */
13745 char const *const *pcpcc;
13746 char **ppc;
13747 /* NEC SVR4.0.2 mips cc rejects this. */
13748 struct point {int x, y;};
13749 static struct point const zero = {0,0};
13750 /* IBM XL C 1.02.0.0 rejects this.
13751 It does not let you subtract one const X* pointer from another in
13752 an arm of an if-expression whose if-part is not a constant
13753 expression */
13754 const char *g = "string";
13755 pcpcc = &g + (g ? g-g : 0);
13756 /* HPUX 7.0 cc rejects these. */
13757 ++pcpcc;
13758 ppc = (char**) pcpcc;
13759 pcpcc = (char const *const *) ppc;
13760 { /* SCO 3.2v4 cc rejects this sort of thing. */
13761 char tx;
13762 char *t = &tx;
13763 char const *s = 0 ? (char *) 0 : (char const *) 0;
13764
13765 *t++ = 0;
13766 if (s) return 0;
13767 }
13768 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13769 int x[] = {25, 17};
13770 const int *foo = &x[0];
13771 ++foo;
13772 }
13773 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13774 typedef const int *iptr;
13775 iptr p = 0;
13776 ++p;
13777 }
13778 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13779 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13780 struct s { int j; const int *ap[3]; } bx;
13781 struct s *b = &bx; b->j = 5;
13782 }
13783 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13784 const int foo = 10;
13785 if (!foo) return 0;
13786 }
13787 return !cs[0] && !zero.x;
13788 #endif
13789
13790 ;
13791 return 0;
13792 }
13793 _ACEOF
13794 if ac_fn_c_try_compile "$LINENO"
13795 then :
13796 ac_cv_c_const=yes
13797 else $as_nop
13798 ac_cv_c_const=no
13799 fi
13800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13801 fi
13802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13803 printf "%s\n" "$ac_cv_c_const" >&6; }
13804 if test $ac_cv_c_const = no; then
13805
13806 printf "%s\n" "#define const /**/" >>confdefs.h
13807
13808 fi
13809
13810
13811
13812 # The cast to long int works around a bug in the HP C Compiler
13813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13815 # This bug is HP SR number 8606223364.
13816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
13817 printf %s "checking size of int16_t... " >&6; }
13818 if test ${ac_cv_sizeof_int16_t+y}
13819 then :
13820 printf %s "(cached) " >&6
13821 else $as_nop
13822 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"
13823 then :
13824
13825 else $as_nop
13826 if test "$ac_cv_type_int16_t" = yes; then
13827 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13828 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13829 as_fn_error 77 "cannot compute sizeof (int16_t)
13830 See \`config.log' for more details" "$LINENO" 5; }
13831 else
13832 ac_cv_sizeof_int16_t=0
13833 fi
13834 fi
13835
13836 fi
13837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
13838 printf "%s\n" "$ac_cv_sizeof_int16_t" >&6; }
13839
13840
13841
13842 printf "%s\n" "#define SIZEOF_INT16_T $ac_cv_sizeof_int16_t" >>confdefs.h
13843
13844
13845 # The cast to long int works around a bug in the HP C Compiler
13846 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13847 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13848 # This bug is HP SR number 8606223364.
13849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
13850 printf %s "checking size of uint16_t... " >&6; }
13851 if test ${ac_cv_sizeof_uint16_t+y}
13852 then :
13853 printf %s "(cached) " >&6
13854 else $as_nop
13855 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"
13856 then :
13857
13858 else $as_nop
13859 if test "$ac_cv_type_uint16_t" = yes; then
13860 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13861 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13862 as_fn_error 77 "cannot compute sizeof (uint16_t)
13863 See \`config.log' for more details" "$LINENO" 5; }
13864 else
13865 ac_cv_sizeof_uint16_t=0
13866 fi
13867 fi
13868
13869 fi
13870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
13871 printf "%s\n" "$ac_cv_sizeof_uint16_t" >&6; }
13872
13873
13874
13875 printf "%s\n" "#define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t" >>confdefs.h
13876
13877
13878 # The cast to long int works around a bug in the HP C Compiler
13879 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13880 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13881 # This bug is HP SR number 8606223364.
13882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of u_int16_t" >&5
13883 printf %s "checking size of u_int16_t... " >&6; }
13884 if test ${ac_cv_sizeof_u_int16_t+y}
13885 then :
13886 printf %s "(cached) " >&6
13887 else $as_nop
13888 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int16_t))" "ac_cv_sizeof_u_int16_t" "$ac_includes_default"
13889 then :
13890
13891 else $as_nop
13892 if test "$ac_cv_type_u_int16_t" = yes; then
13893 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13894 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13895 as_fn_error 77 "cannot compute sizeof (u_int16_t)
13896 See \`config.log' for more details" "$LINENO" 5; }
13897 else
13898 ac_cv_sizeof_u_int16_t=0
13899 fi
13900 fi
13901
13902 fi
13903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int16_t" >&5
13904 printf "%s\n" "$ac_cv_sizeof_u_int16_t" >&6; }
13905
13906
13907
13908 printf "%s\n" "#define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t" >>confdefs.h
13909
13910
13911 # The cast to long int works around a bug in the HP C Compiler
13912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13914 # This bug is HP SR number 8606223364.
13915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
13916 printf %s "checking size of int32_t... " >&6; }
13917 if test ${ac_cv_sizeof_int32_t+y}
13918 then :
13919 printf %s "(cached) " >&6
13920 else $as_nop
13921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"
13922 then :
13923
13924 else $as_nop
13925 if test "$ac_cv_type_int32_t" = yes; then
13926 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13927 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13928 as_fn_error 77 "cannot compute sizeof (int32_t)
13929 See \`config.log' for more details" "$LINENO" 5; }
13930 else
13931 ac_cv_sizeof_int32_t=0
13932 fi
13933 fi
13934
13935 fi
13936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
13937 printf "%s\n" "$ac_cv_sizeof_int32_t" >&6; }
13938
13939
13940
13941 printf "%s\n" "#define SIZEOF_INT32_T $ac_cv_sizeof_int32_t" >>confdefs.h
13942
13943
13944 # The cast to long int works around a bug in the HP C Compiler
13945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13947 # This bug is HP SR number 8606223364.
13948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
13949 printf %s "checking size of uint32_t... " >&6; }
13950 if test ${ac_cv_sizeof_uint32_t+y}
13951 then :
13952 printf %s "(cached) " >&6
13953 else $as_nop
13954 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"
13955 then :
13956
13957 else $as_nop
13958 if test "$ac_cv_type_uint32_t" = yes; then
13959 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13960 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13961 as_fn_error 77 "cannot compute sizeof (uint32_t)
13962 See \`config.log' for more details" "$LINENO" 5; }
13963 else
13964 ac_cv_sizeof_uint32_t=0
13965 fi
13966 fi
13967
13968 fi
13969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
13970 printf "%s\n" "$ac_cv_sizeof_uint32_t" >&6; }
13971
13972
13973
13974 printf "%s\n" "#define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t" >>confdefs.h
13975
13976
13977 # The cast to long int works around a bug in the HP C Compiler
13978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13980 # This bug is HP SR number 8606223364.
13981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of u_int32_t" >&5
13982 printf %s "checking size of u_int32_t... " >&6; }
13983 if test ${ac_cv_sizeof_u_int32_t+y}
13984 then :
13985 printf %s "(cached) " >&6
13986 else $as_nop
13987 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int32_t))" "ac_cv_sizeof_u_int32_t" "$ac_includes_default"
13988 then :
13989
13990 else $as_nop
13991 if test "$ac_cv_type_u_int32_t" = yes; then
13992 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13993 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13994 as_fn_error 77 "cannot compute sizeof (u_int32_t)
13995 See \`config.log' for more details" "$LINENO" 5; }
13996 else
13997 ac_cv_sizeof_u_int32_t=0
13998 fi
13999 fi
14000
14001 fi
14002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int32_t" >&5
14003 printf "%s\n" "$ac_cv_sizeof_u_int32_t" >&6; }
14004
14005
14006
14007 printf "%s\n" "#define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t" >>confdefs.h
14008
14009
14010 # The cast to long int works around a bug in the HP C Compiler
14011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14013 # This bug is HP SR number 8606223364.
14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
14015 printf %s "checking size of int64_t... " >&6; }
14016 if test ${ac_cv_sizeof_int64_t+y}
14017 then :
14018 printf %s "(cached) " >&6
14019 else $as_nop
14020 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"
14021 then :
14022
14023 else $as_nop
14024 if test "$ac_cv_type_int64_t" = yes; then
14025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14026 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14027 as_fn_error 77 "cannot compute sizeof (int64_t)
14028 See \`config.log' for more details" "$LINENO" 5; }
14029 else
14030 ac_cv_sizeof_int64_t=0
14031 fi
14032 fi
14033
14034 fi
14035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
14036 printf "%s\n" "$ac_cv_sizeof_int64_t" >&6; }
14037
14038
14039
14040 printf "%s\n" "#define SIZEOF_INT64_T $ac_cv_sizeof_int64_t" >>confdefs.h
14041
14042
14043 # The cast to long int works around a bug in the HP C Compiler
14044 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14045 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14046 # This bug is HP SR number 8606223364.
14047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint64_t" >&5
14048 printf %s "checking size of uint64_t... " >&6; }
14049 if test ${ac_cv_sizeof_uint64_t+y}
14050 then :
14051 printf %s "(cached) " >&6
14052 else $as_nop
14053 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t" "$ac_includes_default"
14054 then :
14055
14056 else $as_nop
14057 if test "$ac_cv_type_uint64_t" = yes; then
14058 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14059 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14060 as_fn_error 77 "cannot compute sizeof (uint64_t)
14061 See \`config.log' for more details" "$LINENO" 5; }
14062 else
14063 ac_cv_sizeof_uint64_t=0
14064 fi
14065 fi
14066
14067 fi
14068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint64_t" >&5
14069 printf "%s\n" "$ac_cv_sizeof_uint64_t" >&6; }
14070
14071
14072
14073 printf "%s\n" "#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t" >>confdefs.h
14074
14075
14076 # The cast to long int works around a bug in the HP C Compiler
14077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14079 # This bug is HP SR number 8606223364.
14080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14081 printf %s "checking size of short... " >&6; }
14082 if test ${ac_cv_sizeof_short+y}
14083 then :
14084 printf %s "(cached) " >&6
14085 else $as_nop
14086 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
14087 then :
14088
14089 else $as_nop
14090 if test "$ac_cv_type_short" = yes; then
14091 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14092 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14093 as_fn_error 77 "cannot compute sizeof (short)
14094 See \`config.log' for more details" "$LINENO" 5; }
14095 else
14096 ac_cv_sizeof_short=0
14097 fi
14098 fi
14099
14100 fi
14101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14102 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
14103
14104
14105
14106 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
14107
14108
14109 # The cast to long int works around a bug in the HP C Compiler
14110 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14111 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14112 # This bug is HP SR number 8606223364.
14113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14114 printf %s "checking size of int... " >&6; }
14115 if test ${ac_cv_sizeof_int+y}
14116 then :
14117 printf %s "(cached) " >&6
14118 else $as_nop
14119 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
14120 then :
14121
14122 else $as_nop
14123 if test "$ac_cv_type_int" = yes; then
14124 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14125 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14126 as_fn_error 77 "cannot compute sizeof (int)
14127 See \`config.log' for more details" "$LINENO" 5; }
14128 else
14129 ac_cv_sizeof_int=0
14130 fi
14131 fi
14132
14133 fi
14134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14135 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
14136
14137
14138
14139 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
14140
14141
14142 # The cast to long int works around a bug in the HP C Compiler
14143 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14144 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14145 # This bug is HP SR number 8606223364.
14146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14147 printf %s "checking size of long... " >&6; }
14148 if test ${ac_cv_sizeof_long+y}
14149 then :
14150 printf %s "(cached) " >&6
14151 else $as_nop
14152 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
14153 then :
14154
14155 else $as_nop
14156 if test "$ac_cv_type_long" = yes; then
14157 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14158 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14159 as_fn_error 77 "cannot compute sizeof (long)
14160 See \`config.log' for more details" "$LINENO" 5; }
14161 else
14162 ac_cv_sizeof_long=0
14163 fi
14164 fi
14165
14166 fi
14167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14168 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
14169
14170
14171
14172 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
14173
14174
14175 # The cast to long int works around a bug in the HP C Compiler
14176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14178 # This bug is HP SR number 8606223364.
14179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14180 printf %s "checking size of long long... " >&6; }
14181 if test ${ac_cv_sizeof_long_long+y}
14182 then :
14183 printf %s "(cached) " >&6
14184 else $as_nop
14185 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
14186 then :
14187
14188 else $as_nop
14189 if test "$ac_cv_type_long_long" = yes; then
14190 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14191 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14192 as_fn_error 77 "cannot compute sizeof (long long)
14193 See \`config.log' for more details" "$LINENO" 5; }
14194 else
14195 ac_cv_sizeof_long_long=0
14196 fi
14197 fi
14198
14199 fi
14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14201 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
14202
14203
14204
14205 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
14206
14207
14208
14209 case 2 in
14210 $ac_cv_sizeof_int16_t) SIZE16="int16_t";;
14211 $ac_cv_sizeof_short) SIZE16="short";;
14212 $ac_cv_sizeof_int) SIZE16="int";;
14213 esac
14214
14215 case 2 in
14216 $ac_cv_sizeof_uint16_t) USIZE16="uint16_t";;
14217 $ac_cv_sizeof_short) USIZE16="unsigned short";;
14218 $ac_cv_sizeof_int) USIZE16="unsigned int";;
14219 $ac_cv_sizeof_u_int16_t) USIZE16="u_int16_t";;
14220 esac
14221
14222 case 4 in
14223 $ac_cv_sizeof_int32_t) SIZE32="int32_t";;
14224 $ac_cv_sizeof_short) SIZE32="short";;
14225 $ac_cv_sizeof_int) SIZE32="int";;
14226 $ac_cv_sizeof_long) SIZE32="long";;
14227 esac
14228
14229 case 4 in
14230 $ac_cv_sizeof_uint32_t) USIZE32="uint32_t";;
14231 $ac_cv_sizeof_short) USIZE32="unsigned short";;
14232 $ac_cv_sizeof_int) USIZE32="unsigned int";;
14233 $ac_cv_sizeof_long) USIZE32="unsigned long";;
14234 $ac_cv_sizeof_u_int32_t) USIZE32="u_int32_t";;
14235 esac
14236
14237 case 8 in
14238 $ac_cv_sizeof_int64_t) SIZE64="int64_t";;
14239 $ac_cv_sizeof_int) SIZE64="int";;
14240 $ac_cv_sizeof_long) SIZE64="long";;
14241 $ac_cv_sizeof_long_long) SIZE64="long long";;
14242 esac
14243
14244 case 8 in
14245 $ac_cv_sizeof_uint64_t) USIZE64="uint64_t";;
14246 $ac_cv_sizeof_unsigned_int) USIZE64="unsigned int";;
14247 $ac_cv_sizeof_unsigned_long) USIZE64="unsigned long";;
14248 $ac_cv_sizeof_unsigned_long_long) USIZE64="unsigned long long";;
14249 esac
14250
14251 if test -z "$SIZE16"; then
14252 as_fn_error $? "No 16 bit type found on this platform!" "$LINENO" 5
14253 fi
14254 if test -z "$USIZE16"; then
14255 as_fn_error $? "No unsigned 16 bit type found on this platform!" "$LINENO" 5
14256 fi
14257 if test -z "$SIZE32"; then
14258 as_fn_error $? "No 32 bit type found on this platform!" "$LINENO" 5
14259 fi
14260 if test -z "$USIZE32"; then
14261 as_fn_error $? "No unsigned 32 bit type found on this platform!" "$LINENO" 5
14262 fi
14263 if test -z "$SIZE64"; then
14264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No 64 bit type found on this platform!" >&5
14265 printf "%s\n" "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
14266 fi
14267 if test -z "$USIZE64"; then
14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No unsigned 64 bit type found on this platform!" >&5
14269 printf "%s\n" "$as_me: WARNING: No unsigned 64 bit type found on this platform!" >&2;}
14270 fi
14271
14272 # Check whether --enable-crc was given.
14273 if test ${enable_crc+y}
14274 then :
14275 enableval=$enable_crc;
14276 else $as_nop
14277 enable_crc=yes
14278 fi
14279
14280
14281 if test "$enable_crc" = "no"; then
14282 DISABLE_CRC_TRUE=
14283 DISABLE_CRC_FALSE='#'
14284 else
14285 DISABLE_CRC_TRUE='#'
14286 DISABLE_CRC_FALSE=
14287 fi
14288
14289
14290 if test "$enable_crc" = "no"
14291 then :
14292
14293
14294 printf "%s\n" "#define DISABLE_CRC 1" >>confdefs.h
14295
14296
14297 fi
14298
14299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
14300 printf %s "checking for working memcmp... " >&6; }
14301 if test ${ac_cv_func_memcmp_working+y}
14302 then :
14303 printf %s "(cached) " >&6
14304 else $as_nop
14305 if test "$cross_compiling" = yes
14306 then :
14307 ac_cv_func_memcmp_working=no
14308 else $as_nop
14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14311 $ac_includes_default
14312 int
14313 main (void)
14314 {
14315
14316 /* Some versions of memcmp are not 8-bit clean. */
14317 char c0 = '\100', c1 = '\200', c2 = '\201';
14318 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14319 return 1;
14320
14321 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14322 or more and with at least one buffer not starting on a 4-byte boundary.
14323 William Lewis provided this test program. */
14324 {
14325 char foo[21];
14326 char bar[21];
14327 int i;
14328 for (i = 0; i < 4; i++)
14329 {
14330 char *a = foo + i;
14331 char *b = bar + i;
14332 strcpy (a, "--------01111111");
14333 strcpy (b, "--------10000000");
14334 if (memcmp (a, b, 16) >= 0)
14335 return 1;
14336 }
14337 return 0;
14338 }
14339
14340 ;
14341 return 0;
14342 }
14343 _ACEOF
14344 if ac_fn_c_try_run "$LINENO"
14345 then :
14346 ac_cv_func_memcmp_working=yes
14347 else $as_nop
14348 ac_cv_func_memcmp_working=no
14349 fi
14350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14351 conftest.$ac_objext conftest.beam conftest.$ac_ext
14352 fi
14353
14354 fi
14355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
14356 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
14357 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
14358 *" memcmp.$ac_objext "* ) ;;
14359 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14360 ;;
14361 esac
14362
14363
14364
14365 # Check whether --enable-gcc-sanitizers was given.
14366 if test ${enable_gcc_sanitizers+y}
14367 then :
14368 enableval=$enable_gcc_sanitizers; ac_enable_gcc_sanitizers=$enableval
14369 else $as_nop
14370 ac_enable_gcc_sanitizers=no
14371 fi
14372
14373
14374 if test "$GCC" && test "x${ac_enable_gcc_sanitizers}" = xyes; then
14375 CFLAGS="${CFLAGS} -fsanitize=address -fsanitize=undefined -g"
14376 LDFLAGS="${CFLAGS} -fsanitize=address"
14377
14378 TEST_ENV="env UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1"
14379
14380 fi
14381
14382 # Check for valgrind
14383 # Check whether --enable-valgrind-testing was given.
14384 if test ${enable_valgrind_testing+y}
14385 then :
14386 enableval=$enable_valgrind_testing;
14387 fi
14388
14389 if test "x$enable_valgrind_testing" = "xyes"
14390 then
14391 # Extract the first word of "valgrind", so it can be a program name with args.
14392 set dummy valgrind; ac_word=$2
14393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14394 printf %s "checking for $ac_word... " >&6; }
14395 if test ${ac_cv_path_VALGRIND+y}
14396 then :
14397 printf %s "(cached) " >&6
14398 else $as_nop
14399 case $VALGRIND in
14400 [\\/]* | ?:[\\/]*)
14401 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
14402 ;;
14403 *)
14404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405 for as_dir in $PATH
14406 do
14407 IFS=$as_save_IFS
14408 case $as_dir in #(((
14409 '') as_dir=./ ;;
14410 */) ;;
14411 *) as_dir=$as_dir/ ;;
14412 esac
14413 for ac_exec_ext in '' $ac_executable_extensions; do
14414 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14415 ac_cv_path_VALGRIND="$as_dir$ac_word$ac_exec_ext"
14416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14417 break 2
14418 fi
14419 done
14420 done
14421 IFS=$as_save_IFS
14422
14423 ;;
14424 esac
14425 fi
14426 VALGRIND=$ac_cv_path_VALGRIND
14427 if test -n "$VALGRIND"; then
14428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
14429 printf "%s\n" "$VALGRIND" >&6; }
14430 else
14431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14432 printf "%s\n" "no" >&6; }
14433 fi
14434
14435
14436 if test "x$VALGRIND" != "x"
14437 then
14438 VALGRIND="$VALGRIND -q --error-exitcode=99 --leak-check=full --show-reachable=yes --num-callers=50"
14439 TESTS_INFO="Test suite will be run under:
14440 ${VALGRIND}"
14441 else
14442 TESTS_INFO="Type 'make check' to run test suite (Valgrind not found)"
14443 fi
14444 else
14445 TESTS_INFO="Type 'make check' to run test suite (Valgrind testing not enabled)"
14446 fi
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h libogg.spec ogg.pc ogg-uninstalled.pc"
14467
14468 ac_config_headers="$ac_config_headers config.h"
14469
14470
14471 cat >confcache <<\_ACEOF
14472 # This file is a shell script that caches the results of configure
14473 # tests run on this system so they can be shared between configure
14474 # scripts and configure runs, see configure's option --config-cache.
14475 # It is not useful on other systems. If it contains results you don't
14476 # want to keep, you may remove or edit it.
14477 #
14478 # config.status only pays attention to the cache file if you give it
14479 # the --recheck option to rerun configure.
14480 #
14481 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14482 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14483 # following values.
14484
14485 _ACEOF
14486
14487 # The following way of writing the cache mishandles newlines in values,
14488 # but we know of no workaround that is simple, portable, and efficient.
14489 # So, we kill variables containing newlines.
14490 # Ultrix sh set writes to stderr and can't be redirected directly,
14491 # and sets the high bit in the cache file unless we assign to the vars.
14492 (
14493 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14494 eval ac_val=\$$ac_var
14495 case $ac_val in #(
14496 *${as_nl}*)
14497 case $ac_var in #(
14498 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14499 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14500 esac
14501 case $ac_var in #(
14502 _ | IFS | as_nl) ;; #(
14503 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14504 *) { eval $ac_var=; unset $ac_var;} ;;
14505 esac ;;
14506 esac
14507 done
14508
14509 (set) 2>&1 |
14510 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14511 *${as_nl}ac_space=\ *)
14512 # `set' does not quote correctly, so add quotes: double-quote
14513 # substitution turns \\\\ into \\, and sed turns \\ into \.
14514 sed -n \
14515 "s/'/'\\\\''/g;
14516 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14517 ;; #(
14518 *)
14519 # `set' quotes correctly as required by POSIX, so do not add quotes.
14520 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14521 ;;
14522 esac |
14523 sort
14524 ) |
14525 sed '
14526 /^ac_cv_env_/b end
14527 t clear
14528 :clear
14529 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14530 t end
14531 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14532 :end' >>confcache
14533 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14534 if test -w "$cache_file"; then
14535 if test "x$cache_file" != "x/dev/null"; then
14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14537 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14538 if test ! -f "$cache_file" || test -h "$cache_file"; then
14539 cat confcache >"$cache_file"
14540 else
14541 case $cache_file in #(
14542 */* | ?:*)
14543 mv -f confcache "$cache_file"$$ &&
14544 mv -f "$cache_file"$$ "$cache_file" ;; #(
14545 *)
14546 mv -f confcache "$cache_file" ;;
14547 esac
14548 fi
14549 fi
14550 else
14551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14552 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14553 fi
14554 fi
14555 rm -f confcache
14556
14557 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14558 # Let make expand exec_prefix.
14559 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14560
14561 DEFS=-DHAVE_CONFIG_H
14562
14563 ac_libobjs=
14564 ac_ltlibobjs=
14565 U=
14566 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14567 # 1. Remove the extension, and $U if already installed.
14568 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14569 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14570 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14571 # will be set to the directory where LIBOBJS objects are built.
14572 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14573 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14574 done
14575 LIBOBJS=$ac_libobjs
14576
14577 LTLIBOBJS=$ac_ltlibobjs
14578
14579
14580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14581 printf %s "checking that generated files are newer than configure... " >&6; }
14582 if test -n "$am_sleep_pid"; then
14583 # Hide warnings about reused PIDs.
14584 wait $am_sleep_pid 2>/dev/null
14585 fi
14586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14587 printf "%s\n" "done" >&6; }
14588 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14589 as_fn_error $? "conditional \"AMDEP\" was never defined.
14590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14591 fi
14592 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14593 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14595 fi
14596 if test -n "$EXEEXT"; then
14597 am__EXEEXT_TRUE=
14598 am__EXEEXT_FALSE='#'
14599 else
14600 am__EXEEXT_TRUE='#'
14601 am__EXEEXT_FALSE=
14602 fi
14603
14604 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14605 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14607 fi
14608 if test -z "${DISABLE_CRC_TRUE}" && test -z "${DISABLE_CRC_FALSE}"; then
14609 as_fn_error $? "conditional \"DISABLE_CRC\" was never defined.
14610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14611 fi
14612
14613 : "${CONFIG_STATUS=./config.status}"
14614 ac_write_fail=0
14615 ac_clean_files_save=$ac_clean_files
14616 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14618 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14619 as_write_fail=0
14620 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14621 #! $SHELL
14622 # Generated by $as_me.
14623 # Run this file to recreate the current configuration.
14624 # Compiler output produced by configure, useful for debugging
14625 # configure, is in config.log if it exists.
14626
14627 debug=false
14628 ac_cs_recheck=false
14629 ac_cs_silent=false
14630
14631 SHELL=\${CONFIG_SHELL-$SHELL}
14632 export SHELL
14633 _ASEOF
14634 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14635 ## -------------------- ##
14636 ## M4sh Initialization. ##
14637 ## -------------------- ##
14638
14639 # Be more Bourne compatible
14640 DUALCASE=1; export DUALCASE # for MKS sh
14641 as_nop=:
14642 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14643 then :
14644 emulate sh
14645 NULLCMD=:
14646 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14647 # is contrary to our usage. Disable this feature.
14648 alias -g '${1+"$@"}'='"$@"'
14649 setopt NO_GLOB_SUBST
14650 else $as_nop
14651 case `(set -o) 2>/dev/null` in #(
14652 *posix*) :
14653 set -o posix ;; #(
14654 *) :
14655 ;;
14656 esac
14657 fi
14658
14659
14660
14661 # Reset variables that may have inherited troublesome values from
14662 # the environment.
14663
14664 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14665 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14666 # side effect of setting IFS to empty, thus disabling word splitting.)
14667 # Quoting is to prevent editors from complaining about space-tab.
14668 as_nl='
14669 '
14670 export as_nl
14671 IFS=" "" $as_nl"
14672
14673 PS1='$ '
14674 PS2='> '
14675 PS4='+ '
14676
14677 # Ensure predictable behavior from utilities with locale-dependent output.
14678 LC_ALL=C
14679 export LC_ALL
14680 LANGUAGE=C
14681 export LANGUAGE
14682
14683 # We cannot yet rely on "unset" to work, but we need these variables
14684 # to be unset--not just set to an empty or harmless value--now, to
14685 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14686 # also avoids known problems related to "unset" and subshell syntax
14687 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14688 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14689 do eval test \${$as_var+y} \
14690 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14691 done
14692
14693 # Ensure that fds 0, 1, and 2 are open.
14694 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14695 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14696 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14697
14698 # The user is always right.
14699 if ${PATH_SEPARATOR+false} :; then
14700 PATH_SEPARATOR=:
14701 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14702 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14703 PATH_SEPARATOR=';'
14704 }
14705 fi
14706
14707
14708 # Find who we are. Look in the path if we contain no directory separator.
14709 as_myself=
14710 case $0 in #((
14711 *[\\/]* ) as_myself=$0 ;;
14712 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14713 for as_dir in $PATH
14714 do
14715 IFS=$as_save_IFS
14716 case $as_dir in #(((
14717 '') as_dir=./ ;;
14718 */) ;;
14719 *) as_dir=$as_dir/ ;;
14720 esac
14721 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14722 done
14723 IFS=$as_save_IFS
14724
14725 ;;
14726 esac
14727 # We did not find ourselves, most probably we were run as `sh COMMAND'
14728 # in which case we are not to be found in the path.
14729 if test "x$as_myself" = x; then
14730 as_myself=$0
14731 fi
14732 if test ! -f "$as_myself"; then
14733 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14734 exit 1
14735 fi
14736
14737
14738
14739 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14740 # ----------------------------------------
14741 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14742 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14743 # script with STATUS, using 1 if that was 0.
14744 as_fn_error ()
14745 {
14746 as_status=$1; test $as_status -eq 0 && as_status=1
14747 if test "$4"; then
14748 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14750 fi
14751 printf "%s\n" "$as_me: error: $2" >&2
14752 as_fn_exit $as_status
14753 } # as_fn_error
14754
14755
14756
14757 # as_fn_set_status STATUS
14758 # -----------------------
14759 # Set $? to STATUS, without forking.
14760 as_fn_set_status ()
14761 {
14762 return $1
14763 } # as_fn_set_status
14764
14765 # as_fn_exit STATUS
14766 # -----------------
14767 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14768 as_fn_exit ()
14769 {
14770 set +e
14771 as_fn_set_status $1
14772 exit $1
14773 } # as_fn_exit
14774
14775 # as_fn_unset VAR
14776 # ---------------
14777 # Portably unset VAR.
14778 as_fn_unset ()
14779 {
14780 { eval $1=; unset $1;}
14781 }
14782 as_unset=as_fn_unset
14783
14784 # as_fn_append VAR VALUE
14785 # ----------------------
14786 # Append the text in VALUE to the end of the definition contained in VAR. Take
14787 # advantage of any shell optimizations that allow amortized linear growth over
14788 # repeated appends, instead of the typical quadratic growth present in naive
14789 # implementations.
14790 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14791 then :
14792 eval 'as_fn_append ()
14793 {
14794 eval $1+=\$2
14795 }'
14796 else $as_nop
14797 as_fn_append ()
14798 {
14799 eval $1=\$$1\$2
14800 }
14801 fi # as_fn_append
14802
14803 # as_fn_arith ARG...
14804 # ------------------
14805 # Perform arithmetic evaluation on the ARGs, and store the result in the
14806 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14807 # must be portable across $(()) and expr.
14808 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14809 then :
14810 eval 'as_fn_arith ()
14811 {
14812 as_val=$(( $* ))
14813 }'
14814 else $as_nop
14815 as_fn_arith ()
14816 {
14817 as_val=`expr "$@" || test $? -eq 1`
14818 }
14819 fi # as_fn_arith
14820
14821
14822 if expr a : '\(a\)' >/dev/null 2>&1 &&
14823 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14824 as_expr=expr
14825 else
14826 as_expr=false
14827 fi
14828
14829 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14830 as_basename=basename
14831 else
14832 as_basename=false
14833 fi
14834
14835 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14836 as_dirname=dirname
14837 else
14838 as_dirname=false
14839 fi
14840
14841 as_me=`$as_basename -- "$0" ||
14842 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14843 X"$0" : 'X\(//\)$' \| \
14844 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14845 printf "%s\n" X/"$0" |
14846 sed '/^.*\/\([^/][^/]*\)\/*$/{
14847 s//\1/
14848 q
14849 }
14850 /^X\/\(\/\/\)$/{
14851 s//\1/
14852 q
14853 }
14854 /^X\/\(\/\).*/{
14855 s//\1/
14856 q
14857 }
14858 s/.*/./; q'`
14859
14860 # Avoid depending upon Character Ranges.
14861 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14862 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14863 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14864 as_cr_digits='0123456789'
14865 as_cr_alnum=$as_cr_Letters$as_cr_digits
14866
14867
14868 # Determine whether it's possible to make 'echo' print without a newline.
14869 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14870 # for compatibility with existing Makefiles.
14871 ECHO_C= ECHO_N= ECHO_T=
14872 case `echo -n x` in #(((((
14873 -n*)
14874 case `echo 'xy\c'` in
14875 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14876 xy) ECHO_C='\c';;
14877 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14878 ECHO_T=' ';;
14879 esac;;
14880 *)
14881 ECHO_N='-n';;
14882 esac
14883
14884 # For backward compatibility with old third-party macros, we provide
14885 # the shell variables $as_echo and $as_echo_n. New code should use
14886 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14887 as_echo='printf %s\n'
14888 as_echo_n='printf %s'
14889
14890 rm -f conf$$ conf$$.exe conf$$.file
14891 if test -d conf$$.dir; then
14892 rm -f conf$$.dir/conf$$.file
14893 else
14894 rm -f conf$$.dir
14895 mkdir conf$$.dir 2>/dev/null
14896 fi
14897 if (echo >conf$$.file) 2>/dev/null; then
14898 if ln -s conf$$.file conf$$ 2>/dev/null; then
14899 as_ln_s='ln -s'
14900 # ... but there are two gotchas:
14901 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14902 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14903 # In both cases, we have to default to `cp -pR'.
14904 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14905 as_ln_s='cp -pR'
14906 elif ln conf$$.file conf$$ 2>/dev/null; then
14907 as_ln_s=ln
14908 else
14909 as_ln_s='cp -pR'
14910 fi
14911 else
14912 as_ln_s='cp -pR'
14913 fi
14914 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14915 rmdir conf$$.dir 2>/dev/null
14916
14917
14918 # as_fn_mkdir_p
14919 # -------------
14920 # Create "$as_dir" as a directory, including parents if necessary.
14921 as_fn_mkdir_p ()
14922 {
14923
14924 case $as_dir in #(
14925 -*) as_dir=./$as_dir;;
14926 esac
14927 test -d "$as_dir" || eval $as_mkdir_p || {
14928 as_dirs=
14929 while :; do
14930 case $as_dir in #(
14931 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14932 *) as_qdir=$as_dir;;
14933 esac
14934 as_dirs="'$as_qdir' $as_dirs"
14935 as_dir=`$as_dirname -- "$as_dir" ||
14936 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14937 X"$as_dir" : 'X\(//\)[^/]' \| \
14938 X"$as_dir" : 'X\(//\)$' \| \
14939 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14940 printf "%s\n" X"$as_dir" |
14941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14942 s//\1/
14943 q
14944 }
14945 /^X\(\/\/\)[^/].*/{
14946 s//\1/
14947 q
14948 }
14949 /^X\(\/\/\)$/{
14950 s//\1/
14951 q
14952 }
14953 /^X\(\/\).*/{
14954 s//\1/
14955 q
14956 }
14957 s/.*/./; q'`
14958 test -d "$as_dir" && break
14959 done
14960 test -z "$as_dirs" || eval "mkdir $as_dirs"
14961 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14962
14963
14964 } # as_fn_mkdir_p
14965 if mkdir -p . 2>/dev/null; then
14966 as_mkdir_p='mkdir -p "$as_dir"'
14967 else
14968 test -d ./-p && rmdir ./-p
14969 as_mkdir_p=false
14970 fi
14971
14972
14973 # as_fn_executable_p FILE
14974 # -----------------------
14975 # Test if FILE is an executable regular file.
14976 as_fn_executable_p ()
14977 {
14978 test -f "$1" && test -x "$1"
14979 } # as_fn_executable_p
14980 as_test_x='test -x'
14981 as_executable_p=as_fn_executable_p
14982
14983 # Sed expression to map a string onto a valid CPP name.
14984 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14985
14986 # Sed expression to map a string onto a valid variable name.
14987 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14988
14989
14990 exec 6>&1
14991 ## ----------------------------------- ##
14992 ## Main body of $CONFIG_STATUS script. ##
14993 ## ----------------------------------- ##
14994 _ASEOF
14995 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14996
14997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14998 # Save the log message, to keep $0 and so on meaningful, and to
14999 # report actual input values of CONFIG_FILES etc. instead of their
15000 # values after options handling.
15001 ac_log="
15002 This file was extended by libogg $as_me 1.3.6, which was
15003 generated by GNU Autoconf 2.71. Invocation command line was
15004
15005 CONFIG_FILES = $CONFIG_FILES
15006 CONFIG_HEADERS = $CONFIG_HEADERS
15007 CONFIG_LINKS = $CONFIG_LINKS
15008 CONFIG_COMMANDS = $CONFIG_COMMANDS
15009 $ $0 $@
15010
15011 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15012 "
15013
15014 _ACEOF
15015
15016 case $ac_config_files in *"
15017 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15018 esac
15019
15020 case $ac_config_headers in *"
15021 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15022 esac
15023
15024
15025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15026 # Files that config.status was made for.
15027 config_files="$ac_config_files"
15028 config_headers="$ac_config_headers"
15029 config_commands="$ac_config_commands"
15030
15031 _ACEOF
15032
15033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15034 ac_cs_usage="\
15035 \`$as_me' instantiates files and other configuration actions
15036 from templates according to the current configuration. Unless the files
15037 and actions are specified as TAGs, all are instantiated by default.
15038
15039 Usage: $0 [OPTION]... [TAG]...
15040
15041 -h, --help print this help, then exit
15042 -V, --version print version number and configuration settings, then exit
15043 --config print configuration, then exit
15044 -q, --quiet, --silent
15045 do not print progress messages
15046 -d, --debug don't remove temporary files
15047 --recheck update $as_me by reconfiguring in the same conditions
15048 --file=FILE[:TEMPLATE]
15049 instantiate the configuration file FILE
15050 --header=FILE[:TEMPLATE]
15051 instantiate the configuration header FILE
15052
15053 Configuration files:
15054 $config_files
15055
15056 Configuration headers:
15057 $config_headers
15058
15059 Configuration commands:
15060 $config_commands
15061
15062 Report bugs to the package provider."
15063
15064 _ACEOF
15065 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15066 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15068 ac_cs_config='$ac_cs_config_escaped'
15069 ac_cs_version="\\
15070 libogg config.status 1.3.6
15071 configured by $0, generated by GNU Autoconf 2.71,
15072 with options \\"\$ac_cs_config\\"
15073
15074 Copyright (C) 2021 Free Software Foundation, Inc.
15075 This config.status script is free software; the Free Software Foundation
15076 gives unlimited permission to copy, distribute and modify it."
15077
15078 ac_pwd='$ac_pwd'
15079 srcdir='$srcdir'
15080 INSTALL='$INSTALL'
15081 MKDIR_P='$MKDIR_P'
15082 AWK='$AWK'
15083 test -n "\$AWK" || AWK=awk
15084 _ACEOF
15085
15086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15087 # The default lists apply if the user does not specify any file.
15088 ac_need_defaults=:
15089 while test $# != 0
15090 do
15091 case $1 in
15092 --*=?*)
15093 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15094 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15095 ac_shift=:
15096 ;;
15097 --*=)
15098 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15099 ac_optarg=
15100 ac_shift=:
15101 ;;
15102 *)
15103 ac_option=$1
15104 ac_optarg=$2
15105 ac_shift=shift
15106 ;;
15107 esac
15108
15109 case $ac_option in
15110 # Handling of the options.
15111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15112 ac_cs_recheck=: ;;
15113 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15114 printf "%s\n" "$ac_cs_version"; exit ;;
15115 --config | --confi | --conf | --con | --co | --c )
15116 printf "%s\n" "$ac_cs_config"; exit ;;
15117 --debug | --debu | --deb | --de | --d | -d )
15118 debug=: ;;
15119 --file | --fil | --fi | --f )
15120 $ac_shift
15121 case $ac_optarg in
15122 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15123 '') as_fn_error $? "missing file argument" ;;
15124 esac
15125 as_fn_append CONFIG_FILES " '$ac_optarg'"
15126 ac_need_defaults=false;;
15127 --header | --heade | --head | --hea )
15128 $ac_shift
15129 case $ac_optarg in
15130 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15131 esac
15132 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15133 ac_need_defaults=false;;
15134 --he | --h)
15135 # Conflict between --help and --header
15136 as_fn_error $? "ambiguous option: \`$1'
15137 Try \`$0 --help' for more information.";;
15138 --help | --hel | -h )
15139 printf "%s\n" "$ac_cs_usage"; exit ;;
15140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15141 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15142 ac_cs_silent=: ;;
15143
15144 # This is an error.
15145 -*) as_fn_error $? "unrecognized option: \`$1'
15146 Try \`$0 --help' for more information." ;;
15147
15148 *) as_fn_append ac_config_targets " $1"
15149 ac_need_defaults=false ;;
15150
15151 esac
15152 shift
15153 done
15154
15155 ac_configure_extra_args=
15156
15157 if $ac_cs_silent; then
15158 exec 6>/dev/null
15159 ac_configure_extra_args="$ac_configure_extra_args --silent"
15160 fi
15161
15162 _ACEOF
15163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15164 if \$ac_cs_recheck; then
15165 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15166 shift
15167 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15168 CONFIG_SHELL='$SHELL'
15169 export CONFIG_SHELL
15170 exec "\$@"
15171 fi
15172
15173 _ACEOF
15174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15175 exec 5>>config.log
15176 {
15177 echo
15178 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15179 ## Running $as_me. ##
15180 _ASBOX
15181 printf "%s\n" "$ac_log"
15182 } >&5
15183
15184 _ACEOF
15185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15186 #
15187 # INIT-COMMANDS
15188 #
15189
15190
15191 # The HP-UX ksh and POSIX shell print the target directory to stdout
15192 # if CDPATH is set.
15193 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15194
15195 sed_quote_subst='$sed_quote_subst'
15196 double_quote_subst='$double_quote_subst'
15197 delay_variable_subst='$delay_variable_subst'
15198 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15199 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15200 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15201 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15202 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15203 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15204 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15205 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15206 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15207 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15208 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15209 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15210 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15211 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15212 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15213 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15214 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15215 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15216 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15217 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15218 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15219 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15220 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15221 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15222 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15223 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15224 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15225 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15226 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15227 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15228 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15229 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15230 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15231 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15232 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15233 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15234 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15235 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15236 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15237 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15238 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15239 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15240 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15241 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15242 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15243 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15244 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15245 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15246 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15247 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15248 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15249 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15250 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15251 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15252 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15253 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15254 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15255 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15256 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15257 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15258 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"`'
15259 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15260 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15261 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15262 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15263 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15264 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15265 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15266 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15267 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15268 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15269 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15270 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15271 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15272 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15273 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15274 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15275 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15276 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15277 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15278 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15279 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15280 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15281 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15282 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15283 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15284 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15285 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15286 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15287 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15288 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15289 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15290 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15291 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15292 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15293 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15294 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15295 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15296 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15297 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15298 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15299 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15300 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15301 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15302 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15303 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15304 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15305 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15306 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15307 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15308 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15309 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15310 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15311 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15312 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15313 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15314 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15315 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15316 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15317 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15318 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15319 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15320 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15321 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15322 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15323 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15324 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15325 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15326 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15327 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15328 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15329 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15330 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15331 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15332 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15333 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15334 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15335
15336 LTCC='$LTCC'
15337 LTCFLAGS='$LTCFLAGS'
15338 compiler='$compiler_DEFAULT'
15339
15340 # A function that is used when there is no print builtin or printf.
15341 func_fallback_echo ()
15342 {
15343 eval 'cat <<_LTECHO_EOF
15344 \$1
15345 _LTECHO_EOF'
15346 }
15347
15348 # Quote evaled strings.
15349 for var in SHELL \
15350 ECHO \
15351 PATH_SEPARATOR \
15352 SED \
15353 GREP \
15354 EGREP \
15355 FGREP \
15356 LD \
15357 NM \
15358 LN_S \
15359 lt_SP2NL \
15360 lt_NL2SP \
15361 reload_flag \
15362 FILECMD \
15363 OBJDUMP \
15364 deplibs_check_method \
15365 file_magic_cmd \
15366 file_magic_glob \
15367 want_nocaseglob \
15368 DLLTOOL \
15369 sharedlib_from_linklib_cmd \
15370 AR \
15371 archiver_list_spec \
15372 STRIP \
15373 RANLIB \
15374 CC \
15375 CFLAGS \
15376 compiler \
15377 lt_cv_sys_global_symbol_pipe \
15378 lt_cv_sys_global_symbol_to_cdecl \
15379 lt_cv_sys_global_symbol_to_import \
15380 lt_cv_sys_global_symbol_to_c_name_address \
15381 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15382 lt_cv_nm_interface \
15383 nm_file_list_spec \
15384 lt_cv_truncate_bin \
15385 lt_prog_compiler_no_builtin_flag \
15386 lt_prog_compiler_pic \
15387 lt_prog_compiler_wl \
15388 lt_prog_compiler_static \
15389 lt_cv_prog_compiler_c_o \
15390 need_locks \
15391 MANIFEST_TOOL \
15392 DSYMUTIL \
15393 NMEDIT \
15394 LIPO \
15395 OTOOL \
15396 OTOOL64 \
15397 shrext_cmds \
15398 export_dynamic_flag_spec \
15399 whole_archive_flag_spec \
15400 compiler_needs_object \
15401 with_gnu_ld \
15402 allow_undefined_flag \
15403 no_undefined_flag \
15404 hardcode_libdir_flag_spec \
15405 hardcode_libdir_separator \
15406 exclude_expsyms \
15407 include_expsyms \
15408 file_list_spec \
15409 variables_saved_for_relink \
15410 libname_spec \
15411 library_names_spec \
15412 soname_spec \
15413 install_override_mode \
15414 finish_eval \
15415 old_striplib \
15416 striplib; do
15417 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15418 *[\\\\\\\`\\"\\\$]*)
15419 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15420 ;;
15421 *)
15422 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15423 ;;
15424 esac
15425 done
15426
15427 # Double-quote double-evaled strings.
15428 for var in reload_cmds \
15429 old_postinstall_cmds \
15430 old_postuninstall_cmds \
15431 old_archive_cmds \
15432 extract_expsyms_cmds \
15433 old_archive_from_new_cmds \
15434 old_archive_from_expsyms_cmds \
15435 archive_cmds \
15436 archive_expsym_cmds \
15437 module_cmds \
15438 module_expsym_cmds \
15439 export_symbols_cmds \
15440 prelink_cmds \
15441 postlink_cmds \
15442 postinstall_cmds \
15443 postuninstall_cmds \
15444 finish_cmds \
15445 sys_lib_search_path_spec \
15446 configure_time_dlsearch_path \
15447 configure_time_lt_sys_library_path; do
15448 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15449 *[\\\\\\\`\\"\\\$]*)
15450 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15451 ;;
15452 *)
15453 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15454 ;;
15455 esac
15456 done
15457
15458 ac_aux_dir='$ac_aux_dir'
15459
15460 # See if we are running on zsh, and set the options that allow our
15461 # commands through without removal of \ escapes INIT.
15462 if test -n "\${ZSH_VERSION+set}"; then
15463 setopt NO_GLOB_SUBST
15464 fi
15465
15466
15467 PACKAGE='$PACKAGE'
15468 VERSION='$VERSION'
15469 RM='$RM'
15470 ofile='$ofile'
15471
15472
15473
15474 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15475
15476 _ACEOF
15477
15478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15479
15480 # Handling of arguments.
15481 for ac_config_target in $ac_config_targets
15482 do
15483 case $ac_config_target in
15484 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15485 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15486 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15487 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15488 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15489 "doc/libogg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
15490 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15491 "include/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
15492 "include/ogg/config_types.h") CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
15493 "libogg.spec") CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
15494 "ogg.pc") CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
15495 "ogg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
15496 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15497
15498 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15499 esac
15500 done
15501
15502
15503 # If the user did not use the arguments to specify the items to instantiate,
15504 # then the envvar interface is used. Set only those that are not.
15505 # We use the long form for the default assignment because of an extremely
15506 # bizarre bug on SunOS 4.1.3.
15507 if $ac_need_defaults; then
15508 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15509 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15510 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15511 fi
15512
15513 # Have a temporary directory for convenience. Make it in the build tree
15514 # simply because there is no reason against having it here, and in addition,
15515 # creating and moving files from /tmp can sometimes cause problems.
15516 # Hook for its removal unless debugging.
15517 # Note that there is a small window in which the directory will not be cleaned:
15518 # after its creation but before its name has been assigned to `$tmp'.
15519 $debug ||
15520 {
15521 tmp= ac_tmp=
15522 trap 'exit_status=$?
15523 : "${ac_tmp:=$tmp}"
15524 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15525 ' 0
15526 trap 'as_fn_exit 1' 1 2 13 15
15527 }
15528 # Create a (secure) tmp directory for tmp files.
15529
15530 {
15531 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15532 test -d "$tmp"
15533 } ||
15534 {
15535 tmp=./conf$$-$RANDOM
15536 (umask 077 && mkdir "$tmp")
15537 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15538 ac_tmp=$tmp
15539
15540 # Set up the scripts for CONFIG_FILES section.
15541 # No need to generate them if there are no CONFIG_FILES.
15542 # This happens for instance with `./config.status config.h'.
15543 if test -n "$CONFIG_FILES"; then
15544
15545
15546 ac_cr=`echo X | tr X '\015'`
15547 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15548 # But we know of no other shell where ac_cr would be empty at this
15549 # point, so we can use a bashism as a fallback.
15550 if test "x$ac_cr" = x; then
15551 eval ac_cr=\$\'\\r\'
15552 fi
15553 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15554 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15555 ac_cs_awk_cr='\\r'
15556 else
15557 ac_cs_awk_cr=$ac_cr
15558 fi
15559
15560 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15561 _ACEOF
15562
15563
15564 {
15565 echo "cat >conf$$subs.awk <<_ACEOF" &&
15566 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15567 echo "_ACEOF"
15568 } >conf$$subs.sh ||
15569 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15570 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15571 ac_delim='%!_!# '
15572 for ac_last_try in false false false false false :; do
15573 . ./conf$$subs.sh ||
15574 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15575
15576 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15577 if test $ac_delim_n = $ac_delim_num; then
15578 break
15579 elif $ac_last_try; then
15580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15581 else
15582 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15583 fi
15584 done
15585 rm -f conf$$subs.sh
15586
15587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15588 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15589 _ACEOF
15590 sed -n '
15591 h
15592 s/^/S["/; s/!.*/"]=/
15593 p
15594 g
15595 s/^[^!]*!//
15596 :repl
15597 t repl
15598 s/'"$ac_delim"'$//
15599 t delim
15600 :nl
15601 h
15602 s/\(.\{148\}\)..*/\1/
15603 t more1
15604 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15605 p
15606 n
15607 b repl
15608 :more1
15609 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15610 p
15611 g
15612 s/.\{148\}//
15613 t nl
15614 :delim
15615 h
15616 s/\(.\{148\}\)..*/\1/
15617 t more2
15618 s/["\\]/\\&/g; s/^/"/; s/$/"/
15619 p
15620 b
15621 :more2
15622 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15623 p
15624 g
15625 s/.\{148\}//
15626 t delim
15627 ' <conf$$subs.awk | sed '
15628 /^[^""]/{
15629 N
15630 s/\n//
15631 }
15632 ' >>$CONFIG_STATUS || ac_write_fail=1
15633 rm -f conf$$subs.awk
15634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15635 _ACAWK
15636 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15637 for (key in S) S_is_set[key] = 1
15638 FS = ""
15639
15640 }
15641 {
15642 line = $ 0
15643 nfields = split(line, field, "@")
15644 substed = 0
15645 len = length(field[1])
15646 for (i = 2; i < nfields; i++) {
15647 key = field[i]
15648 keylen = length(key)
15649 if (S_is_set[key]) {
15650 value = S[key]
15651 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15652 len += length(value) + length(field[++i])
15653 substed = 1
15654 } else
15655 len += 1 + keylen
15656 }
15657
15658 print line
15659 }
15660
15661 _ACAWK
15662 _ACEOF
15663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15664 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15665 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15666 else
15667 cat
15668 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15669 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15670 _ACEOF
15671
15672 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15673 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15674 # trailing colons and then remove the whole line if VPATH becomes empty
15675 # (actually we leave an empty line to preserve line numbers).
15676 if test "x$srcdir" = x.; then
15677 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15678 h
15679 s///
15680 s/^/:/
15681 s/[ ]*$/:/
15682 s/:\$(srcdir):/:/g
15683 s/:\${srcdir}:/:/g
15684 s/:@srcdir@:/:/g
15685 s/^:*//
15686 s/:*$//
15687 x
15688 s/\(=[ ]*\).*/\1/
15689 G
15690 s/\n//
15691 s/^[^=]*=[ ]*$//
15692 }'
15693 fi
15694
15695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15696 fi # test -n "$CONFIG_FILES"
15697
15698 # Set up the scripts for CONFIG_HEADERS section.
15699 # No need to generate them if there are no CONFIG_HEADERS.
15700 # This happens for instance with `./config.status Makefile'.
15701 if test -n "$CONFIG_HEADERS"; then
15702 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15703 BEGIN {
15704 _ACEOF
15705
15706 # Transform confdefs.h into an awk script `defines.awk', embedded as
15707 # here-document in config.status, that substitutes the proper values into
15708 # config.h.in to produce config.h.
15709
15710 # Create a delimiter string that does not exist in confdefs.h, to ease
15711 # handling of long lines.
15712 ac_delim='%!_!# '
15713 for ac_last_try in false false :; do
15714 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15715 if test -z "$ac_tt"; then
15716 break
15717 elif $ac_last_try; then
15718 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15719 else
15720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15721 fi
15722 done
15723
15724 # For the awk script, D is an array of macro values keyed by name,
15725 # likewise P contains macro parameters if any. Preserve backslash
15726 # newline sequences.
15727
15728 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15729 sed -n '
15730 s/.\{148\}/&'"$ac_delim"'/g
15731 t rset
15732 :rset
15733 s/^[ ]*#[ ]*define[ ][ ]*/ /
15734 t def
15735 d
15736 :def
15737 s/\\$//
15738 t bsnl
15739 s/["\\]/\\&/g
15740 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15741 D["\1"]=" \3"/p
15742 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15743 d
15744 :bsnl
15745 s/["\\]/\\&/g
15746 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15747 D["\1"]=" \3\\\\\\n"\\/p
15748 t cont
15749 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15750 t cont
15751 d
15752 :cont
15753 n
15754 s/.\{148\}/&'"$ac_delim"'/g
15755 t clear
15756 :clear
15757 s/\\$//
15758 t bsnlc
15759 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15760 d
15761 :bsnlc
15762 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15763 b cont
15764 ' <confdefs.h | sed '
15765 s/'"$ac_delim"'/"\\\
15766 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15767
15768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15769 for (key in D) D_is_set[key] = 1
15770 FS = ""
15771 }
15772 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15773 line = \$ 0
15774 split(line, arg, " ")
15775 if (arg[1] == "#") {
15776 defundef = arg[2]
15777 mac1 = arg[3]
15778 } else {
15779 defundef = substr(arg[1], 2)
15780 mac1 = arg[2]
15781 }
15782 split(mac1, mac2, "(") #)
15783 macro = mac2[1]
15784 prefix = substr(line, 1, index(line, defundef) - 1)
15785 if (D_is_set[macro]) {
15786 # Preserve the white space surrounding the "#".
15787 print prefix "define", macro P[macro] D[macro]
15788 next
15789 } else {
15790 # Replace #undef with comments. This is necessary, for example,
15791 # in the case of _POSIX_SOURCE, which is predefined and required
15792 # on some systems where configure will not decide to define it.
15793 if (defundef == "undef") {
15794 print "/*", prefix defundef, macro, "*/"
15795 next
15796 }
15797 }
15798 }
15799 { print }
15800 _ACAWK
15801 _ACEOF
15802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15803 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15804 fi # test -n "$CONFIG_HEADERS"
15805
15806
15807 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15808 shift
15809 for ac_tag
15810 do
15811 case $ac_tag in
15812 :[FHLC]) ac_mode=$ac_tag; continue;;
15813 esac
15814 case $ac_mode$ac_tag in
15815 :[FHL]*:*);;
15816 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15817 :[FH]-) ac_tag=-:-;;
15818 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15819 esac
15820 ac_save_IFS=$IFS
15821 IFS=:
15822 set x $ac_tag
15823 IFS=$ac_save_IFS
15824 shift
15825 ac_file=$1
15826 shift
15827
15828 case $ac_mode in
15829 :L) ac_source=$1;;
15830 :[FH])
15831 ac_file_inputs=
15832 for ac_f
15833 do
15834 case $ac_f in
15835 -) ac_f="$ac_tmp/stdin";;
15836 *) # Look for the file first in the build tree, then in the source tree
15837 # (if the path is not absolute). The absolute path cannot be DOS-style,
15838 # because $ac_f cannot contain `:'.
15839 test -f "$ac_f" ||
15840 case $ac_f in
15841 [\\/$]*) false;;
15842 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15843 esac ||
15844 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15845 esac
15846 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15847 as_fn_append ac_file_inputs " '$ac_f'"
15848 done
15849
15850 # Let's still pretend it is `configure' which instantiates (i.e., don't
15851 # use $as_me), people would be surprised to read:
15852 # /* config.h. Generated by config.status. */
15853 configure_input='Generated from '`
15854 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15855 `' by configure.'
15856 if test x"$ac_file" != x-; then
15857 configure_input="$ac_file. $configure_input"
15858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15859 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15860 fi
15861 # Neutralize special characters interpreted by sed in replacement strings.
15862 case $configure_input in #(
15863 *\&* | *\|* | *\\* )
15864 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15865 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15866 *) ac_sed_conf_input=$configure_input;;
15867 esac
15868
15869 case $ac_tag in
15870 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15872 esac
15873 ;;
15874 esac
15875
15876 ac_dir=`$as_dirname -- "$ac_file" ||
15877 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15878 X"$ac_file" : 'X\(//\)[^/]' \| \
15879 X"$ac_file" : 'X\(//\)$' \| \
15880 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15881 printf "%s\n" X"$ac_file" |
15882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15883 s//\1/
15884 q
15885 }
15886 /^X\(\/\/\)[^/].*/{
15887 s//\1/
15888 q
15889 }
15890 /^X\(\/\/\)$/{
15891 s//\1/
15892 q
15893 }
15894 /^X\(\/\).*/{
15895 s//\1/
15896 q
15897 }
15898 s/.*/./; q'`
15899 as_dir="$ac_dir"; as_fn_mkdir_p
15900 ac_builddir=.
15901
15902 case "$ac_dir" in
15903 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15904 *)
15905 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15906 # A ".." for each directory in $ac_dir_suffix.
15907 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15908 case $ac_top_builddir_sub in
15909 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15910 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15911 esac ;;
15912 esac
15913 ac_abs_top_builddir=$ac_pwd
15914 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15915 # for backward compatibility:
15916 ac_top_builddir=$ac_top_build_prefix
15917
15918 case $srcdir in
15919 .) # We are building in place.
15920 ac_srcdir=.
15921 ac_top_srcdir=$ac_top_builddir_sub
15922 ac_abs_top_srcdir=$ac_pwd ;;
15923 [\\/]* | ?:[\\/]* ) # Absolute name.
15924 ac_srcdir=$srcdir$ac_dir_suffix;
15925 ac_top_srcdir=$srcdir
15926 ac_abs_top_srcdir=$srcdir ;;
15927 *) # Relative name.
15928 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15929 ac_top_srcdir=$ac_top_build_prefix$srcdir
15930 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15931 esac
15932 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15933
15934
15935 case $ac_mode in
15936 :F)
15937 #
15938 # CONFIG_FILE
15939 #
15940
15941 case $INSTALL in
15942 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15943 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15944 esac
15945 ac_MKDIR_P=$MKDIR_P
15946 case $MKDIR_P in
15947 [\\/$]* | ?:[\\/]* ) ;;
15948 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15949 esac
15950 _ACEOF
15951
15952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15953 # If the template does not know about datarootdir, expand it.
15954 # FIXME: This hack should be removed a few years after 2.60.
15955 ac_datarootdir_hack=; ac_datarootdir_seen=
15956 ac_sed_dataroot='
15957 /datarootdir/ {
15958 p
15959 q
15960 }
15961 /@datadir@/p
15962 /@docdir@/p
15963 /@infodir@/p
15964 /@localedir@/p
15965 /@mandir@/p'
15966 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15967 *datarootdir*) ac_datarootdir_seen=yes;;
15968 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15970 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15971 _ACEOF
15972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15973 ac_datarootdir_hack='
15974 s&@datadir@&$datadir&g
15975 s&@docdir@&$docdir&g
15976 s&@infodir@&$infodir&g
15977 s&@localedir@&$localedir&g
15978 s&@mandir@&$mandir&g
15979 s&\\\${datarootdir}&$datarootdir&g' ;;
15980 esac
15981 _ACEOF
15982
15983 # Neutralize VPATH when `$srcdir' = `.'.
15984 # Shell code in configure.ac might set extrasub.
15985 # FIXME: do we really want to maintain this feature?
15986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15987 ac_sed_extra="$ac_vpsub
15988 $extrasub
15989 _ACEOF
15990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15991 :t
15992 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15993 s|@configure_input@|$ac_sed_conf_input|;t t
15994 s&@top_builddir@&$ac_top_builddir_sub&;t t
15995 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15996 s&@srcdir@&$ac_srcdir&;t t
15997 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15998 s&@top_srcdir@&$ac_top_srcdir&;t t
15999 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16000 s&@builddir@&$ac_builddir&;t t
16001 s&@abs_builddir@&$ac_abs_builddir&;t t
16002 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16003 s&@INSTALL@&$ac_INSTALL&;t t
16004 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16005 $ac_datarootdir_hack
16006 "
16007 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16008 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16009
16010 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16011 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16012 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16013 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16015 which seems to be undefined. Please make sure it is defined" >&5
16016 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16017 which seems to be undefined. Please make sure it is defined" >&2;}
16018
16019 rm -f "$ac_tmp/stdin"
16020 case $ac_file in
16021 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16022 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16023 esac \
16024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16025 ;;
16026 :H)
16027 #
16028 # CONFIG_HEADER
16029 #
16030 if test x"$ac_file" != x-; then
16031 {
16032 printf "%s\n" "/* $configure_input */" >&1 \
16033 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16034 } >"$ac_tmp/config.h" \
16035 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16036 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16038 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16039 else
16040 rm -f "$ac_file"
16041 mv "$ac_tmp/config.h" "$ac_file" \
16042 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16043 fi
16044 else
16045 printf "%s\n" "/* $configure_input */" >&1 \
16046 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16047 || as_fn_error $? "could not create -" "$LINENO" 5
16048 fi
16049 # Compute "$ac_file"'s index in $config_headers.
16050 _am_arg="$ac_file"
16051 _am_stamp_count=1
16052 for _am_header in $config_headers :; do
16053 case $_am_header in
16054 $_am_arg | $_am_arg:* )
16055 break ;;
16056 * )
16057 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16058 esac
16059 done
16060 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16061 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16062 X"$_am_arg" : 'X\(//\)[^/]' \| \
16063 X"$_am_arg" : 'X\(//\)$' \| \
16064 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16065 printf "%s\n" X"$_am_arg" |
16066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16067 s//\1/
16068 q
16069 }
16070 /^X\(\/\/\)[^/].*/{
16071 s//\1/
16072 q
16073 }
16074 /^X\(\/\/\)$/{
16075 s//\1/
16076 q
16077 }
16078 /^X\(\/\).*/{
16079 s//\1/
16080 q
16081 }
16082 s/.*/./; q'`/stamp-h$_am_stamp_count
16083 ;;
16084
16085 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16086 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16087 ;;
16088 esac
16089
16090
16091 case $ac_file$ac_mode in
16092 "libtool":C)
16093
16094 # See if we are running on zsh, and set the options that allow our
16095 # commands through without removal of \ escapes.
16096 if test -n "${ZSH_VERSION+set}"; then
16097 setopt NO_GLOB_SUBST
16098 fi
16099
16100 cfgfile=${ofile}T
16101 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16102 $RM "$cfgfile"
16103
16104 cat <<_LT_EOF >> "$cfgfile"
16105 #! $SHELL
16106 # Generated automatically by $as_me ($PACKAGE) $VERSION
16107 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16108
16109 # Provide generalized library-building support services.
16110 # Written by Gordon Matzigkeit, 1996
16111
16112 # Copyright (C) 2014 Free Software Foundation, Inc.
16113 # This is free software; see the source for copying conditions. There is NO
16114 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16115
16116 # GNU Libtool is free software; you can redistribute it and/or modify
16117 # it under the terms of the GNU General Public License as published by
16118 # the Free Software Foundation; either version 2 of of the License, or
16119 # (at your option) any later version.
16120 #
16121 # As a special exception to the GNU General Public License, if you
16122 # distribute this file as part of a program or library that is built
16123 # using GNU Libtool, you may include this file under the same
16124 # distribution terms that you use for the rest of that program.
16125 #
16126 # GNU Libtool is distributed in the hope that it will be useful, but
16127 # WITHOUT ANY WARRANTY; without even the implied warranty of
16128 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16129 # GNU General Public License for more details.
16130 #
16131 # You should have received a copy of the GNU General Public License
16132 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16133
16134
16135 # The names of the tagged configurations supported by this script.
16136 available_tags=''
16137
16138 # Configured defaults for sys_lib_dlsearch_path munging.
16139 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16140
16141 # ### BEGIN LIBTOOL CONFIG
16142
16143 # Which release of libtool.m4 was used?
16144 macro_version=$macro_version
16145 macro_revision=$macro_revision
16146
16147 # Whether or not to build shared libraries.
16148 build_libtool_libs=$enable_shared
16149
16150 # Whether or not to build static libraries.
16151 build_old_libs=$enable_static
16152
16153 # What type of objects to build.
16154 pic_mode=$pic_mode
16155
16156 # Whether or not to optimize for fast installation.
16157 fast_install=$enable_fast_install
16158
16159 # Shared archive member basename,for filename based shared library versioning on AIX.
16160 shared_archive_member_spec=$shared_archive_member_spec
16161
16162 # Shell to use when invoking shell scripts.
16163 SHELL=$lt_SHELL
16164
16165 # An echo program that protects backslashes.
16166 ECHO=$lt_ECHO
16167
16168 # The PATH separator for the build system.
16169 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16170
16171 # The host system.
16172 host_alias=$host_alias
16173 host=$host
16174 host_os=$host_os
16175
16176 # The build system.
16177 build_alias=$build_alias
16178 build=$build
16179 build_os=$build_os
16180
16181 # A sed program that does not truncate output.
16182 SED=$lt_SED
16183
16184 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16185 Xsed="\$SED -e 1s/^X//"
16186
16187 # A grep program that handles long lines.
16188 GREP=$lt_GREP
16189
16190 # An ERE matcher.
16191 EGREP=$lt_EGREP
16192
16193 # A literal string matcher.
16194 FGREP=$lt_FGREP
16195
16196 # A BSD- or MS-compatible name lister.
16197 NM=$lt_NM
16198
16199 # Whether we need soft or hard links.
16200 LN_S=$lt_LN_S
16201
16202 # What is the maximum length of a command?
16203 max_cmd_len=$max_cmd_len
16204
16205 # Object file suffix (normally "o").
16206 objext=$ac_objext
16207
16208 # Executable file suffix (normally "").
16209 exeext=$exeext
16210
16211 # whether the shell understands "unset".
16212 lt_unset=$lt_unset
16213
16214 # turn spaces into newlines.
16215 SP2NL=$lt_lt_SP2NL
16216
16217 # turn newlines into spaces.
16218 NL2SP=$lt_lt_NL2SP
16219
16220 # convert \$build file names to \$host format.
16221 to_host_file_cmd=$lt_cv_to_host_file_cmd
16222
16223 # convert \$build files to toolchain format.
16224 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16225
16226 # A file(cmd) program that detects file types.
16227 FILECMD=$lt_FILECMD
16228
16229 # An object symbol dumper.
16230 OBJDUMP=$lt_OBJDUMP
16231
16232 # Method to check whether dependent libraries are shared objects.
16233 deplibs_check_method=$lt_deplibs_check_method
16234
16235 # Command to use when deplibs_check_method = "file_magic".
16236 file_magic_cmd=$lt_file_magic_cmd
16237
16238 # How to find potential files when deplibs_check_method = "file_magic".
16239 file_magic_glob=$lt_file_magic_glob
16240
16241 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16242 want_nocaseglob=$lt_want_nocaseglob
16243
16244 # DLL creation program.
16245 DLLTOOL=$lt_DLLTOOL
16246
16247 # Command to associate shared and link libraries.
16248 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16249
16250 # The archiver.
16251 AR=$lt_AR
16252
16253 # Flags to create an archive (by configure).
16254 lt_ar_flags=$lt_ar_flags
16255
16256 # Flags to create an archive.
16257 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16258
16259 # How to feed a file listing to the archiver.
16260 archiver_list_spec=$lt_archiver_list_spec
16261
16262 # A symbol stripping program.
16263 STRIP=$lt_STRIP
16264
16265 # Commands used to install an old-style archive.
16266 RANLIB=$lt_RANLIB
16267 old_postinstall_cmds=$lt_old_postinstall_cmds
16268 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16269
16270 # Whether to use a lock for old archive extraction.
16271 lock_old_archive_extraction=$lock_old_archive_extraction
16272
16273 # A C compiler.
16274 LTCC=$lt_CC
16275
16276 # LTCC compiler flags.
16277 LTCFLAGS=$lt_CFLAGS
16278
16279 # Take the output of nm and produce a listing of raw symbols and C names.
16280 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16281
16282 # Transform the output of nm in a proper C declaration.
16283 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16284
16285 # Transform the output of nm into a list of symbols to manually relocate.
16286 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16287
16288 # Transform the output of nm in a C name address pair.
16289 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16290
16291 # Transform the output of nm in a C name address pair when lib prefix is needed.
16292 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16293
16294 # The name lister interface.
16295 nm_interface=$lt_lt_cv_nm_interface
16296
16297 # Specify filename containing input files for \$NM.
16298 nm_file_list_spec=$lt_nm_file_list_spec
16299
16300 # The root where to search for dependent libraries,and where our libraries should be installed.
16301 lt_sysroot=$lt_sysroot
16302
16303 # Command to truncate a binary pipe.
16304 lt_truncate_bin=$lt_lt_cv_truncate_bin
16305
16306 # The name of the directory that contains temporary libtool files.
16307 objdir=$objdir
16308
16309 # Used to examine libraries when file_magic_cmd begins with "file".
16310 MAGIC_CMD=$MAGIC_CMD
16311
16312 # Must we lock files when doing compilation?
16313 need_locks=$lt_need_locks
16314
16315 # Manifest tool.
16316 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16317
16318 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16319 DSYMUTIL=$lt_DSYMUTIL
16320
16321 # Tool to change global to local symbols on Mac OS X.
16322 NMEDIT=$lt_NMEDIT
16323
16324 # Tool to manipulate fat objects and archives on Mac OS X.
16325 LIPO=$lt_LIPO
16326
16327 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16328 OTOOL=$lt_OTOOL
16329
16330 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16331 OTOOL64=$lt_OTOOL64
16332
16333 # Old archive suffix (normally "a").
16334 libext=$libext
16335
16336 # Shared library suffix (normally ".so").
16337 shrext_cmds=$lt_shrext_cmds
16338
16339 # The commands to extract the exported symbol list from a shared archive.
16340 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16341
16342 # Variables whose values should be saved in libtool wrapper scripts and
16343 # restored at link time.
16344 variables_saved_for_relink=$lt_variables_saved_for_relink
16345
16346 # Do we need the "lib" prefix for modules?
16347 need_lib_prefix=$need_lib_prefix
16348
16349 # Do we need a version for libraries?
16350 need_version=$need_version
16351
16352 # Library versioning type.
16353 version_type=$version_type
16354
16355 # Shared library runtime path variable.
16356 runpath_var=$runpath_var
16357
16358 # Shared library path variable.
16359 shlibpath_var=$shlibpath_var
16360
16361 # Is shlibpath searched before the hard-coded library search path?
16362 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16363
16364 # Format of library name prefix.
16365 libname_spec=$lt_libname_spec
16366
16367 # List of archive names. First name is the real one, the rest are links.
16368 # The last name is the one that the linker finds with -lNAME
16369 library_names_spec=$lt_library_names_spec
16370
16371 # The coded name of the library, if different from the real name.
16372 soname_spec=$lt_soname_spec
16373
16374 # Permission mode override for installation of shared libraries.
16375 install_override_mode=$lt_install_override_mode
16376
16377 # Command to use after installation of a shared archive.
16378 postinstall_cmds=$lt_postinstall_cmds
16379
16380 # Command to use after uninstallation of a shared archive.
16381 postuninstall_cmds=$lt_postuninstall_cmds
16382
16383 # Commands used to finish a libtool library installation in a directory.
16384 finish_cmds=$lt_finish_cmds
16385
16386 # As "finish_cmds", except a single script fragment to be evaled but
16387 # not shown.
16388 finish_eval=$lt_finish_eval
16389
16390 # Whether we should hardcode library paths into libraries.
16391 hardcode_into_libs=$hardcode_into_libs
16392
16393 # Compile-time system search path for libraries.
16394 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16395
16396 # Detected run-time system search path for libraries.
16397 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16398
16399 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16400 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16401
16402 # Whether dlopen is supported.
16403 dlopen_support=$enable_dlopen
16404
16405 # Whether dlopen of programs is supported.
16406 dlopen_self=$enable_dlopen_self
16407
16408 # Whether dlopen of statically linked programs is supported.
16409 dlopen_self_static=$enable_dlopen_self_static
16410
16411 # Commands to strip libraries.
16412 old_striplib=$lt_old_striplib
16413 striplib=$lt_striplib
16414
16415
16416 # The linker used to build libraries.
16417 LD=$lt_LD
16418
16419 # How to create reloadable object files.
16420 reload_flag=$lt_reload_flag
16421 reload_cmds=$lt_reload_cmds
16422
16423 # Commands used to build an old-style archive.
16424 old_archive_cmds=$lt_old_archive_cmds
16425
16426 # A language specific compiler.
16427 CC=$lt_compiler
16428
16429 # Is the compiler the GNU compiler?
16430 with_gcc=$GCC
16431
16432 # Compiler flag to turn off builtin functions.
16433 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16434
16435 # Additional compiler flags for building library objects.
16436 pic_flag=$lt_lt_prog_compiler_pic
16437
16438 # How to pass a linker flag through the compiler.
16439 wl=$lt_lt_prog_compiler_wl
16440
16441 # Compiler flag to prevent dynamic linking.
16442 link_static_flag=$lt_lt_prog_compiler_static
16443
16444 # Does compiler simultaneously support -c and -o options?
16445 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16446
16447 # Whether or not to add -lc for building shared libraries.
16448 build_libtool_need_lc=$archive_cmds_need_lc
16449
16450 # Whether or not to disallow shared libs when runtime libs are static.
16451 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16452
16453 # Compiler flag to allow reflexive dlopens.
16454 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16455
16456 # Compiler flag to generate shared objects directly from archives.
16457 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16458
16459 # Whether the compiler copes with passing no objects directly.
16460 compiler_needs_object=$lt_compiler_needs_object
16461
16462 # Create an old-style archive from a shared archive.
16463 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16464
16465 # Create a temporary old-style archive to link instead of a shared archive.
16466 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16467
16468 # Commands used to build a shared archive.
16469 archive_cmds=$lt_archive_cmds
16470 archive_expsym_cmds=$lt_archive_expsym_cmds
16471
16472 # Commands used to build a loadable module if different from building
16473 # a shared archive.
16474 module_cmds=$lt_module_cmds
16475 module_expsym_cmds=$lt_module_expsym_cmds
16476
16477 # Whether we are building with GNU ld or not.
16478 with_gnu_ld=$lt_with_gnu_ld
16479
16480 # Flag that allows shared libraries with undefined symbols to be built.
16481 allow_undefined_flag=$lt_allow_undefined_flag
16482
16483 # Flag that enforces no undefined symbols.
16484 no_undefined_flag=$lt_no_undefined_flag
16485
16486 # Flag to hardcode \$libdir into a binary during linking.
16487 # This must work even if \$libdir does not exist
16488 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16489
16490 # Whether we need a single "-rpath" flag with a separated argument.
16491 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16492
16493 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16494 # DIR into the resulting binary.
16495 hardcode_direct=$hardcode_direct
16496
16497 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16498 # DIR into the resulting binary and the resulting library dependency is
16499 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16500 # library is relocated.
16501 hardcode_direct_absolute=$hardcode_direct_absolute
16502
16503 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16504 # into the resulting binary.
16505 hardcode_minus_L=$hardcode_minus_L
16506
16507 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16508 # into the resulting binary.
16509 hardcode_shlibpath_var=$hardcode_shlibpath_var
16510
16511 # Set to "yes" if building a shared library automatically hardcodes DIR
16512 # into the library and all subsequent libraries and executables linked
16513 # against it.
16514 hardcode_automatic=$hardcode_automatic
16515
16516 # Set to yes if linker adds runtime paths of dependent libraries
16517 # to runtime path list.
16518 inherit_rpath=$inherit_rpath
16519
16520 # Whether libtool must link a program against all its dependency libraries.
16521 link_all_deplibs=$link_all_deplibs
16522
16523 # Set to "yes" if exported symbols are required.
16524 always_export_symbols=$always_export_symbols
16525
16526 # The commands to list exported symbols.
16527 export_symbols_cmds=$lt_export_symbols_cmds
16528
16529 # Symbols that should not be listed in the preloaded symbols.
16530 exclude_expsyms=$lt_exclude_expsyms
16531
16532 # Symbols that must always be exported.
16533 include_expsyms=$lt_include_expsyms
16534
16535 # Commands necessary for linking programs (against libraries) with templates.
16536 prelink_cmds=$lt_prelink_cmds
16537
16538 # Commands necessary for finishing linking programs.
16539 postlink_cmds=$lt_postlink_cmds
16540
16541 # Specify filename containing input files.
16542 file_list_spec=$lt_file_list_spec
16543
16544 # How to hardcode a shared library path into an executable.
16545 hardcode_action=$hardcode_action
16546
16547 # ### END LIBTOOL CONFIG
16548
16549 _LT_EOF
16550
16551 cat <<'_LT_EOF' >> "$cfgfile"
16552
16553 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16554
16555 # func_munge_path_list VARIABLE PATH
16556 # -----------------------------------
16557 # VARIABLE is name of variable containing _space_ separated list of
16558 # directories to be munged by the contents of PATH, which is string
16559 # having a format:
16560 # "DIR[:DIR]:"
16561 # string "DIR[ DIR]" will be prepended to VARIABLE
16562 # ":DIR[:DIR]"
16563 # string "DIR[ DIR]" will be appended to VARIABLE
16564 # "DIRP[:DIRP]::[DIRA:]DIRA"
16565 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16566 # "DIRA[ DIRA]" will be appended to VARIABLE
16567 # "DIR[:DIR]"
16568 # VARIABLE will be replaced by "DIR[ DIR]"
16569 func_munge_path_list ()
16570 {
16571 case x$2 in
16572 x)
16573 ;;
16574 *:)
16575 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16576 ;;
16577 x:*)
16578 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16579 ;;
16580 *::*)
16581 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16582 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16583 ;;
16584 *)
16585 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16586 ;;
16587 esac
16588 }
16589
16590
16591 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16592 func_cc_basename ()
16593 {
16594 for cc_temp in $*""; do
16595 case $cc_temp in
16596 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16597 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16598 \-*) ;;
16599 *) break;;
16600 esac
16601 done
16602 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16603 }
16604
16605
16606 # ### END FUNCTIONS SHARED WITH CONFIGURE
16607
16608 _LT_EOF
16609
16610 case $host_os in
16611 aix3*)
16612 cat <<\_LT_EOF >> "$cfgfile"
16613 # AIX sometimes has problems with the GCC collect2 program. For some
16614 # reason, if we set the COLLECT_NAMES environment variable, the problems
16615 # vanish in a puff of smoke.
16616 if test set != "${COLLECT_NAMES+set}"; then
16617 COLLECT_NAMES=
16618 export COLLECT_NAMES
16619 fi
16620 _LT_EOF
16621 ;;
16622 esac
16623
16624
16625
16626 ltmain=$ac_aux_dir/ltmain.sh
16627
16628
16629 # We use sed instead of cat because bash on DJGPP gets confused if
16630 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16631 # text mode, it properly converts lines to CR/LF. This bash problem
16632 # is reportedly fixed, but why not run on old versions too?
16633 $SED '$q' "$ltmain" >> "$cfgfile" \
16634 || (rm -f "$cfgfile"; exit 1)
16635
16636 mv -f "$cfgfile" "$ofile" ||
16637 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16638 chmod +x "$ofile"
16639
16640 ;;
16641 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16642 # Older Autoconf quotes --file arguments for eval, but not when files
16643 # are listed without --file. Let's play safe and only enable the eval
16644 # if we detect the quoting.
16645 # TODO: see whether this extra hack can be removed once we start
16646 # requiring Autoconf 2.70 or later.
16647 case $CONFIG_FILES in #(
16648 *\'*) :
16649 eval set x "$CONFIG_FILES" ;; #(
16650 *) :
16651 set x $CONFIG_FILES ;; #(
16652 *) :
16653 ;;
16654 esac
16655 shift
16656 # Used to flag and report bootstrapping failures.
16657 am_rc=0
16658 for am_mf
16659 do
16660 # Strip MF so we end up with the name of the file.
16661 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16662 # Check whether this is an Automake generated Makefile which includes
16663 # dependency-tracking related rules and includes.
16664 # Grep'ing the whole file directly is not great: AIX grep has a line
16665 # limit of 2048, but all sed's we know have understand at least 4000.
16666 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16667 || continue
16668 am_dirpart=`$as_dirname -- "$am_mf" ||
16669 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16670 X"$am_mf" : 'X\(//\)[^/]' \| \
16671 X"$am_mf" : 'X\(//\)$' \| \
16672 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16673 printf "%s\n" X"$am_mf" |
16674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16675 s//\1/
16676 q
16677 }
16678 /^X\(\/\/\)[^/].*/{
16679 s//\1/
16680 q
16681 }
16682 /^X\(\/\/\)$/{
16683 s//\1/
16684 q
16685 }
16686 /^X\(\/\).*/{
16687 s//\1/
16688 q
16689 }
16690 s/.*/./; q'`
16691 am_filepart=`$as_basename -- "$am_mf" ||
16692 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16693 X"$am_mf" : 'X\(//\)$' \| \
16694 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16695 printf "%s\n" X/"$am_mf" |
16696 sed '/^.*\/\([^/][^/]*\)\/*$/{
16697 s//\1/
16698 q
16699 }
16700 /^X\/\(\/\/\)$/{
16701 s//\1/
16702 q
16703 }
16704 /^X\/\(\/\).*/{
16705 s//\1/
16706 q
16707 }
16708 s/.*/./; q'`
16709 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16710 && sed -e '/# am--include-marker/d' "$am_filepart" \
16711 | $MAKE -f - am--depfiles" >&5
16712 (cd "$am_dirpart" \
16713 && sed -e '/# am--include-marker/d' "$am_filepart" \
16714 | $MAKE -f - am--depfiles) >&5 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } || am_rc=$?
16718 done
16719 if test $am_rc -ne 0; then
16720 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16721 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16722 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16723 for automatic dependency tracking. If GNU make was not used, consider
16724 re-running the configure script with MAKE=\"gmake\" (or whatever is
16725 necessary). You can also try re-running configure with the
16726 '--disable-dependency-tracking' option to at least be able to build
16727 the package (albeit without support for automatic dependency tracking).
16728 See \`config.log' for more details" "$LINENO" 5; }
16729 fi
16730 { am_dirpart=; unset am_dirpart;}
16731 { am_filepart=; unset am_filepart;}
16732 { am_mf=; unset am_mf;}
16733 { am_rc=; unset am_rc;}
16734 rm -f conftest-deps.mk
16735 }
16736 ;;
16737
16738 esac
16739 done # for ac_tag
16740
16741
16742 as_fn_exit 0
16743 _ACEOF
16744 ac_clean_files=$ac_clean_files_save
16745
16746 test $ac_write_fail = 0 ||
16747 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16748
16749
16750 # configure is writing to config.log, and then calls config.status.
16751 # config.status does its own redirection, appending to config.log.
16752 # Unfortunately, on DOS this fails, as config.log is still kept open
16753 # by configure, so config.status won't be able to write to it; its
16754 # output is simply discarded. So we exec the FD to /dev/null,
16755 # effectively closing config.log, so it can be properly (re)opened and
16756 # appended to by config.status. When coming back to configure, we
16757 # need to make the FD available again.
16758 if test "$no_create" != yes; then
16759 ac_cs_success=:
16760 ac_config_status_args=
16761 test "$silent" = yes &&
16762 ac_config_status_args="$ac_config_status_args --quiet"
16763 exec 5>/dev/null
16764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16765 exec 5>>config.log
16766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16767 # would make configure fail if this is the last instruction.
16768 $ac_cs_success || as_fn_exit 1
16769 fi
16770 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16772 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16773 fi
16774
16775