Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for TwoLAME 0.4.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: [email protected] about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='TwoLAME'
592 PACKAGE_TARNAME='twolame'
593 PACKAGE_VERSION='0.4.0'
594 PACKAGE_STRING='TwoLAME 0.4.0'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL='http://www.twolame.org/'
597
598 ac_unique_file="libtwolame/twolame.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 WARNING_CFLAGS
640 TWOLAME_BIN
641 SNDFILE_LIBS
642 SNDFILE_CFLAGS
643 PKG_CONFIG_LIBDIR
644 PKG_CONFIG_PATH
645 PKG_CONFIG
646 PERL
647 PATH_XMLTO
648 PATH_DOXYGEN
649 PATH_ASCIIDOC
650 CPP
651 LT_SYS_LIBRARY_PATH
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 MANIFEST_TOOL
658 RANLIB
659 NM
660 ac_ct_DUMPBIN
661 DUMPBIN
662 LD
663 FGREP
664 EGREP
665 GREP
666 SED
667 host_os
668 host_vendor
669 host_cpu
670 host
671 build_os
672 build_vendor
673 build_cpu
674 build
675 LIBTOOL
676 OBJDUMP
677 DLLTOOL
678 AS
679 LN_S
680 am__fastdepCC_FALSE
681 am__fastdepCC_TRUE
682 CCDEPMODE
683 am__nodep
684 AMDEPBACKSLASH
685 AMDEP_FALSE
686 AMDEP_TRUE
687 am__include
688 DEPDIR
689 OBJEXT
690 EXEEXT
691 ac_ct_CC
692 CPPFLAGS
693 LDFLAGS
694 CFLAGS
695 CC
696 ac_ct_AR
697 AR
698 TWOLAME_SO_VERSION
699 MAINT
700 MAINTAINER_MODE_FALSE
701 MAINTAINER_MODE_TRUE
702 AM_BACKSLASH
703 AM_DEFAULT_VERBOSITY
704 AM_DEFAULT_V
705 AM_V
706 am__untar
707 am__tar
708 AMTAR
709 am__leading_dot
710 SET_MAKE
711 AWK
712 mkdir_p
713 MKDIR_P
714 INSTALL_STRIP_PROGRAM
715 STRIP
716 install_sh
717 MAKEINFO
718 AUTOHEADER
719 AUTOMAKE
720 AUTOCONF
721 ACLOCAL
722 VERSION
723 PACKAGE
724 CYGPATH_W
725 am__isrc
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 runstatedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL
768 am__quote'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 enable_silent_rules
773 enable_maintainer_mode
774 enable_dependency_tracking
775 enable_shared
776 enable_static
777 with_pic
778 enable_fast_install
779 with_aix_soname
780 with_gnu_ld
781 with_sysroot
782 enable_libtool_lock
783 enable_sndfile
784 '
785 ac_precious_vars='build_alias
786 host_alias
787 target_alias
788 CC
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
793 LT_SYS_LIBRARY_PATH
794 CPP
795 PKG_CONFIG
796 PKG_CONFIG_PATH
797 PKG_CONFIG_LIBDIR
798 SNDFILE_CFLAGS
799 SNDFILE_LIBS'
800
801
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 runstatedir='${localstatedir}/run'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
850
851 ac_prev=
852 ac_dashdash=
853 for ac_option
854 do
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
858 ac_prev=
859 continue
860 fi
861
862 case $ac_option in
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *=) ac_optarg= ;;
865 *) ac_optarg=yes ;;
866 esac
867
868 # Accept the important Cygnus configure options, so we can diagnose typos.
869
870 case $ac_dashdash$ac_option in
871 --)
872 ac_dashdash=yes ;;
873
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 ac_prev=bindir ;;
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 bindir=$ac_optarg ;;
878
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
883
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
890
891 --config-cache | -C)
892 cache_file=config.cache ;;
893
894 -datadir | --datadir | --datadi | --datad)
895 ac_prev=datadir ;;
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
898
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
905
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=no ;;
921
922 -docdir | --docdir | --docdi | --doc | --do)
923 ac_prev=docdir ;;
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 docdir=$ac_optarg ;;
926
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 ac_prev=dvidir ;;
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 dvidir=$ac_optarg ;;
931
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=\$ac_optarg ;;
947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -runstatedir | --runstatedir | --runstatedi | --runstated \
1092 | --runstate | --runstat | --runsta | --runst | --runs \
1093 | --run | --ru | --r)
1094 ac_prev=runstatedir ;;
1095 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1096 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1097 | --run=* | --ru=* | --r=*)
1098 runstatedir=$ac_optarg ;;
1099
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 ac_prev=sbindir ;;
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 | --sbi=* | --sb=*)
1104 sbindir=$ac_optarg ;;
1105
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1109 | --sha | --sh)
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 | --sha=* | --sh=*)
1115 sharedstatedir=$ac_optarg ;;
1116
1117 -site | --site | --sit)
1118 ac_prev=site ;;
1119 -site=* | --site=* | --sit=*)
1120 site=$ac_optarg ;;
1121
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 ac_prev=srcdir ;;
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1126
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1133
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1138
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 verbose=yes ;;
1141
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1144
1145 -with-* | --with-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=\$ac_optarg ;;
1160
1161 -without-* | --without-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1169 *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=no ;;
1176
1177 --x)
1178 # Obsolete; use --with-x.
1179 with_x=yes ;;
1180
1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182 | --x-incl | --x-inc | --x-in | --x-i)
1183 ac_prev=x_includes ;;
1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186 x_includes=$ac_optarg ;;
1187
1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190 ac_prev=x_libraries ;;
1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193 x_libraries=$ac_optarg ;;
1194
1195 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1196 Try \`$0 --help' for more information"
1197 ;;
1198
1199 *=*)
1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201 # Reject names that are not valid shell variable names.
1202 case $ac_envvar in #(
1203 '' | [0-9]* | *[!_$as_cr_alnum]* )
1204 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1205 esac
1206 eval $ac_envvar=\$ac_optarg
1207 export $ac_envvar ;;
1208
1209 *)
1210 # FIXME: should be removed in autoconf 3.0.
1211 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215 ;;
1216
1217 esac
1218 done
1219
1220 if test -n "$ac_prev"; then
1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222 as_fn_error $? "missing argument to $ac_option"
1223 fi
1224
1225 if test -n "$ac_unrecognized_opts"; then
1226 case $enable_option_checking in
1227 no) ;;
1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230 esac
1231 fi
1232
1233 # Check all directory arguments for consistency.
1234 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir runstatedir
1238 do
1239 eval ac_val=\$$ac_var
1240 # Remove trailing slashes.
1241 case $ac_val in
1242 */ )
1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244 eval $ac_var=\$ac_val;;
1245 esac
1246 # Be sure to have absolute directory names.
1247 case $ac_val in
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250 esac
1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1252 done
1253
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1257 build=$build_alias
1258 host=$host_alias
1259 target=$target_alias
1260
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
1265 elif test "x$build_alias" != "x$host_alias"; then
1266 cross_compiling=yes
1267 fi
1268 fi
1269
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273 test "$silent" = yes && exec 6>/dev/null
1274
1275
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error $? "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error $? "pwd does not report name of working directory"
1282
1283
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 $as_echo X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)[^/].*/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\).*/{
1307 s//\1/
1308 q
1309 }
1310 s/.*/./; q'`
1311 srcdir=$ac_confdir
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 srcdir=..
1314 fi
1315 else
1316 ac_srcdir_defaulted=no
1317 fi
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1321 fi
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323 ac_abs_confdir=`(
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325 pwd)`
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 srcdir=.
1329 fi
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1333 case $srcdir in
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 esac
1336 for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 done
1342
1343 #
1344 # Report the --help message.
1345 #
1346 if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1349 cat <<_ACEOF
1350 \`configure' configures TwoLAME 0.4.0 to adapt to many kinds of systems.
1351
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1353
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE. See below for descriptions of some of the useful variables.
1356
1357 Defaults for the options are specified in brackets.
1358
1359 Configuration:
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print \`checking ...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for \`--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1369
1370 Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
1372 [$ac_default_prefix]
1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374 [PREFIX]
1375
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1380
1381 For better control, use the options below.
1382
1383 Fine tuning of the installation directories:
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/twolame]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
1404 _ACEOF
1405
1406 cat <<\_ACEOF
1407
1408 Program names:
1409 --program-prefix=PREFIX prepend PREFIX to installed program names
1410 --program-suffix=SUFFIX append SUFFIX to installed program names
1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1412
1413 System types:
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 _ACEOF
1417 fi
1418
1419 if test -n "$ac_init_help"; then
1420 case $ac_init_help in
1421 short | recursive ) echo "Configuration of TwoLAME 0.4.0:";;
1422 esac
1423 cat <<\_ACEOF
1424
1425 Optional Features:
1426 --disable-option-checking ignore unrecognized --enable/--with options
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --enable-silent-rules less verbose build output (undo: "make V=1")
1430 --disable-silent-rules verbose build output (undo: "make V=0")
1431 --enable-maintainer-mode
1432 enable make rules and dependencies not useful (and
1433 sometimes confusing) to the casual installer
1434 --enable-dependency-tracking
1435 do not reject slow dependency extractors
1436 --disable-dependency-tracking
1437 speeds up one-time build
1438 --enable-shared[=PKGS] build shared libraries [default=yes]
1439 --enable-static[=PKGS] build static libraries [default=yes]
1440 --enable-fast-install[=PKGS]
1441 optimize for fast installation [default=yes]
1442 --disable-libtool-lock avoid locking (might break parallel builds)
1443 --enable-sndfile libsndfile support (default: enabled)
1444
1445 Optional Packages:
1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1448 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1449 both]
1450 --with-aix-soname=aix|svr4|both
1451 shared library versioning (aka "SONAME") variant to
1452 provide on AIX, [default=aix].
1453 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1454 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1455 compiler's sysroot if not specified).
1456
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 LIBS libraries to pass to the linker, e.g. -l<library>
1463 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 LT_SYS_LIBRARY_PATH
1466 User-defined run-time library search path.
1467 CPP C preprocessor
1468 PKG_CONFIG path to pkg-config utility
1469 PKG_CONFIG_PATH
1470 directories to add to pkg-config's search path
1471 PKG_CONFIG_LIBDIR
1472 path overriding pkg-config's built-in search path
1473 SNDFILE_CFLAGS
1474 C compiler flags for SNDFILE, overriding pkg-config
1475 SNDFILE_LIBS
1476 linker flags for SNDFILE, overriding pkg-config
1477
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1480
1481 Report bugs to <[email protected]>.
1482 TwoLAME home page: <http://www.twolame.org/>.
1483 _ACEOF
1484 ac_status=$?
1485 fi
1486
1487 if test "$ac_init_help" = "recursive"; then
1488 # If there are subdirs, report their specific --help.
1489 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1490 test -d "$ac_dir" ||
1491 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1492 continue
1493 ac_builddir=.
1494
1495 case "$ac_dir" in
1496 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 *)
1498 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1499 # A ".." for each directory in $ac_dir_suffix.
1500 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1501 case $ac_top_builddir_sub in
1502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1504 esac ;;
1505 esac
1506 ac_abs_top_builddir=$ac_pwd
1507 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1508 # for backward compatibility:
1509 ac_top_builddir=$ac_top_build_prefix
1510
1511 case $srcdir in
1512 .) # We are building in place.
1513 ac_srcdir=.
1514 ac_top_srcdir=$ac_top_builddir_sub
1515 ac_abs_top_srcdir=$ac_pwd ;;
1516 [\\/]* | ?:[\\/]* ) # Absolute name.
1517 ac_srcdir=$srcdir$ac_dir_suffix;
1518 ac_top_srcdir=$srcdir
1519 ac_abs_top_srcdir=$srcdir ;;
1520 *) # Relative name.
1521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1522 ac_top_srcdir=$ac_top_build_prefix$srcdir
1523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1524 esac
1525 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526
1527 cd "$ac_dir" || { ac_status=$?; continue; }
1528 # Check for guested configure.
1529 if test -f "$ac_srcdir/configure.gnu"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532 elif test -f "$ac_srcdir/configure"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure" --help=recursive
1535 else
1536 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537 fi || ac_status=$?
1538 cd "$ac_pwd" || { ac_status=$?; break; }
1539 done
1540 fi
1541
1542 test -n "$ac_init_help" && exit $ac_status
1543 if $ac_init_version; then
1544 cat <<\_ACEOF
1545 TwoLAME configure 0.4.0
1546 generated by GNU Autoconf 2.69
1547
1548 Copyright (C) 2012 Free Software Foundation, Inc.
1549 This configure script is free software; the Free Software Foundation
1550 gives unlimited permission to copy, distribute and modify it.
1551 _ACEOF
1552 exit
1553 fi
1554
1555 ## ------------------------ ##
1556 ## Autoconf initialization. ##
1557 ## ------------------------ ##
1558
1559 # ac_fn_c_try_compile LINENO
1560 # --------------------------
1561 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_compile ()
1563 {
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext
1566 if { { ac_try="$ac_compile"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_compile") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest.$ac_objext; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591 fi
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1594
1595 } # ac_fn_c_try_compile
1596
1597 # ac_fn_c_try_link LINENO
1598 # -----------------------
1599 # Try to link conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_link ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext conftest$ac_exeext
1604 if { { ac_try="$ac_link"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_link") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1617 fi
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest$ac_exeext && {
1623 test "$cross_compiling" = yes ||
1624 test -x conftest$ac_exeext
1625 }; then :
1626 ac_retval=0
1627 else
1628 $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1630
1631 ac_retval=1
1632 fi
1633 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1634 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1635 # interfere with the next link command; also delete a directory that is
1636 # left behind by Apple's compiler. We do this before executing the actions.
1637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639 as_fn_set_status $ac_retval
1640
1641 } # ac_fn_c_try_link
1642
1643 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1644 # -------------------------------------------------------
1645 # Tests whether HEADER exists and can be compiled using the include files in
1646 # INCLUDES, setting the cache variable VAR accordingly.
1647 ac_fn_c_check_header_compile ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 $as_echo_n "checking for $2... " >&6; }
1652 if eval \${$3+:} false; then :
1653 $as_echo_n "(cached) " >&6
1654 else
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1657 $4
1658 #include <$2>
1659 _ACEOF
1660 if ac_fn_c_try_compile "$LINENO"; then :
1661 eval "$3=yes"
1662 else
1663 eval "$3=no"
1664 fi
1665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666 fi
1667 eval ac_res=\$$3
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 $as_echo "$ac_res" >&6; }
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671
1672 } # ac_fn_c_check_header_compile
1673
1674 # ac_fn_c_try_cpp LINENO
1675 # ----------------------
1676 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_cpp ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } > conftest.i && {
1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705 fi
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
1708
1709 } # ac_fn_c_try_cpp
1710
1711 # ac_fn_c_try_run LINENO
1712 # ----------------------
1713 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1714 # that executables *can* be run.
1715 ac_fn_c_try_run ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 if { { ac_try="$ac_link"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_link") 2>&5
1726 ac_status=$?
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1729 { { case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_try") 2>&5
1736 ac_status=$?
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; }; }; then :
1739 ac_retval=0
1740 else
1741 $as_echo "$as_me: program exited with status $ac_status" >&5
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=$ac_status
1746 fi
1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1750
1751 } # ac_fn_c_try_run
1752
1753 # ac_fn_c_check_func LINENO FUNC VAR
1754 # ----------------------------------
1755 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1756 ac_fn_c_check_func ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1763 else
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1766 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1768 #define $2 innocuous_$2
1769
1770 /* System header to define __stub macros and hopefully few prototypes,
1771 which can conflict with char $2 (); below.
1772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1773 <limits.h> exists even on freestanding compilers. */
1774
1775 #ifdef __STDC__
1776 # include <limits.h>
1777 #else
1778 # include <assert.h>
1779 #endif
1780
1781 #undef $2
1782
1783 /* Override any GCC internal prototype to avoid an error.
1784 Use char because int might match the return type of a GCC
1785 builtin and then its argument prototype would still apply. */
1786 #ifdef __cplusplus
1787 extern "C"
1788 #endif
1789 char $2 ();
1790 /* The GNU C library defines this for functions which it implements
1791 to always fail with ENOSYS. Some functions are actually named
1792 something starting with __ and the normal name is an alias. */
1793 #if defined __stub_$2 || defined __stub___$2
1794 choke me
1795 #endif
1796
1797 int
1798 main ()
1799 {
1800 return $2 ();
1801 ;
1802 return 0;
1803 }
1804 _ACEOF
1805 if ac_fn_c_try_link "$LINENO"; then :
1806 eval "$3=yes"
1807 else
1808 eval "$3=no"
1809 fi
1810 rm -f core conftest.err conftest.$ac_objext \
1811 conftest$ac_exeext conftest.$ac_ext
1812 fi
1813 eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817
1818 } # ac_fn_c_check_func
1819
1820 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1821 # --------------------------------------------
1822 # Tries to find the compile-time value of EXPR in a program that includes
1823 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1824 # computed
1825 ac_fn_c_compute_int ()
1826 {
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if test "$cross_compiling" = yes; then
1829 # Depending upon the size, compute the lo and hi bounds.
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 $4
1833 int
1834 main ()
1835 {
1836 static int test_array [1 - 2 * !(($2) >= 0)];
1837 test_array [0] = 0;
1838 return test_array [0];
1839
1840 ;
1841 return 0;
1842 }
1843 _ACEOF
1844 if ac_fn_c_try_compile "$LINENO"; then :
1845 ac_lo=0 ac_mid=0
1846 while :; do
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1849 $4
1850 int
1851 main ()
1852 {
1853 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1854 test_array [0] = 0;
1855 return test_array [0];
1856
1857 ;
1858 return 0;
1859 }
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862 ac_hi=$ac_mid; break
1863 else
1864 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1865 if test $ac_lo -le $ac_mid; then
1866 ac_lo= ac_hi=
1867 break
1868 fi
1869 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 done
1873 else
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 $4
1877 int
1878 main ()
1879 {
1880 static int test_array [1 - 2 * !(($2) < 0)];
1881 test_array [0] = 0;
1882 return test_array [0];
1883
1884 ;
1885 return 0;
1886 }
1887 _ACEOF
1888 if ac_fn_c_try_compile "$LINENO"; then :
1889 ac_hi=-1 ac_mid=-1
1890 while :; do
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1893 $4
1894 int
1895 main ()
1896 {
1897 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1898 test_array [0] = 0;
1899 return test_array [0];
1900
1901 ;
1902 return 0;
1903 }
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906 ac_lo=$ac_mid; break
1907 else
1908 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1909 if test $ac_mid -le $ac_hi; then
1910 ac_lo= ac_hi=
1911 break
1912 fi
1913 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1914 fi
1915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 done
1917 else
1918 ac_lo= ac_hi=
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 fi
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 # Binary search between lo and hi bounds.
1924 while test "x$ac_lo" != "x$ac_hi"; do
1925 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 $4
1929 int
1930 main ()
1931 {
1932 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1933 test_array [0] = 0;
1934 return test_array [0];
1935
1936 ;
1937 return 0;
1938 }
1939 _ACEOF
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941 ac_hi=$ac_mid
1942 else
1943 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 done
1947 case $ac_lo in #((
1948 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1949 '') ac_retval=1 ;;
1950 esac
1951 else
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1954 $4
1955 static long int longval () { return $2; }
1956 static unsigned long int ulongval () { return $2; }
1957 #include <stdio.h>
1958 #include <stdlib.h>
1959 int
1960 main ()
1961 {
1962
1963 FILE *f = fopen ("conftest.val", "w");
1964 if (! f)
1965 return 1;
1966 if (($2) < 0)
1967 {
1968 long int i = longval ();
1969 if (i != ($2))
1970 return 1;
1971 fprintf (f, "%ld", i);
1972 }
1973 else
1974 {
1975 unsigned long int i = ulongval ();
1976 if (i != ($2))
1977 return 1;
1978 fprintf (f, "%lu", i);
1979 }
1980 /* Do not output a trailing newline, as this causes \r\n confusion
1981 on some platforms. */
1982 return ferror (f) || fclose (f) != 0;
1983
1984 ;
1985 return 0;
1986 }
1987 _ACEOF
1988 if ac_fn_c_try_run "$LINENO"; then :
1989 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1990 else
1991 ac_retval=1
1992 fi
1993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1994 conftest.$ac_objext conftest.beam conftest.$ac_ext
1995 rm -f conftest.val
1996
1997 fi
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 as_fn_set_status $ac_retval
2000
2001 } # ac_fn_c_compute_int
2002
2003 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2004 # -------------------------------------------------------
2005 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2006 # the include files in INCLUDES and setting the cache variable VAR
2007 # accordingly.
2008 ac_fn_c_check_header_mongrel ()
2009 {
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 if eval \${$3+:} false; then :
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016 fi
2017 eval ac_res=\$$3
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 else
2021 # Is the header compilable?
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2023 $as_echo_n "checking $2 usability... " >&6; }
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2026 $4
2027 #include <$2>
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 ac_header_compiler=yes
2031 else
2032 ac_header_compiler=no
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2036 $as_echo "$ac_header_compiler" >&6; }
2037
2038 # Is the header present?
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2040 $as_echo_n "checking $2 presence... " >&6; }
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2043 #include <$2>
2044 _ACEOF
2045 if ac_fn_c_try_cpp "$LINENO"; then :
2046 ac_header_preproc=yes
2047 else
2048 ac_header_preproc=no
2049 fi
2050 rm -f conftest.err conftest.i conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2052 $as_echo "$ac_header_preproc" >&6; }
2053
2054 # So? What about this header?
2055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2056 yes:no: )
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2058 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2060 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2061 ;;
2062 no:yes:* )
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2064 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2066 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2068 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2070 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2072 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2073 ( $as_echo "## ---------------------------------------------------- ##
2074 ## Report this to [email protected] ##
2075 ## ---------------------------------------------------- ##"
2076 ) | sed "s/^/$as_me: WARNING: /" >&2
2077 ;;
2078 esac
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if eval \${$3+:} false; then :
2082 $as_echo_n "(cached) " >&6
2083 else
2084 eval "$3=\$ac_header_compiler"
2085 fi
2086 eval ac_res=\$$3
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089 fi
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091
2092 } # ac_fn_c_check_header_mongrel
2093 cat >config.log <<_ACEOF
2094 This file contains any messages produced by compilers while
2095 running configure, to aid debugging if configure makes a mistake.
2096
2097 It was created by TwoLAME $as_me 0.4.0, which was
2098 generated by GNU Autoconf 2.69. Invocation command line was
2099
2100 $ $0 $@
2101
2102 _ACEOF
2103 exec 5>>config.log
2104 {
2105 cat <<_ASUNAME
2106 ## --------- ##
2107 ## Platform. ##
2108 ## --------- ##
2109
2110 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2111 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2112 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2113 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2114 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2115
2116 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2117 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2118
2119 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2120 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2121 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2122 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2123 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2124 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2125 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2126
2127 _ASUNAME
2128
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2131 do
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 $as_echo "PATH: $as_dir"
2135 done
2136 IFS=$as_save_IFS
2137
2138 } >&5
2139
2140 cat >&5 <<_ACEOF
2141
2142
2143 ## ----------- ##
2144 ## Core tests. ##
2145 ## ----------- ##
2146
2147 _ACEOF
2148
2149
2150 # Keep a trace of the command line.
2151 # Strip out --no-create and --no-recursion so they do not pile up.
2152 # Strip out --silent because we don't want to record it for future runs.
2153 # Also quote any args containing shell meta-characters.
2154 # Make two passes to allow for proper duplicate-argument suppression.
2155 ac_configure_args=
2156 ac_configure_args0=
2157 ac_configure_args1=
2158 ac_must_keep_next=false
2159 for ac_pass in 1 2
2160 do
2161 for ac_arg
2162 do
2163 case $ac_arg in
2164 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2166 | -silent | --silent | --silen | --sile | --sil)
2167 continue ;;
2168 *\'*)
2169 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2170 esac
2171 case $ac_pass in
2172 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2173 2)
2174 as_fn_append ac_configure_args1 " '$ac_arg'"
2175 if test $ac_must_keep_next = true; then
2176 ac_must_keep_next=false # Got value, back to normal.
2177 else
2178 case $ac_arg in
2179 *=* | --config-cache | -C | -disable-* | --disable-* \
2180 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2181 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2182 | -with-* | --with-* | -without-* | --without-* | --x)
2183 case "$ac_configure_args0 " in
2184 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2185 esac
2186 ;;
2187 -* ) ac_must_keep_next=true ;;
2188 esac
2189 fi
2190 as_fn_append ac_configure_args " '$ac_arg'"
2191 ;;
2192 esac
2193 done
2194 done
2195 { ac_configure_args0=; unset ac_configure_args0;}
2196 { ac_configure_args1=; unset ac_configure_args1;}
2197
2198 # When interrupted or exit'd, cleanup temporary files, and complete
2199 # config.log. We remove comments because anyway the quotes in there
2200 # would cause problems or look ugly.
2201 # WARNING: Use '\'' to represent an apostrophe within the trap.
2202 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2203 trap 'exit_status=$?
2204 # Save into config.log some information that might help in debugging.
2205 {
2206 echo
2207
2208 $as_echo "## ---------------- ##
2209 ## Cache variables. ##
2210 ## ---------------- ##"
2211 echo
2212 # The following way of writing the cache mishandles newlines in values,
2213 (
2214 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2215 eval ac_val=\$$ac_var
2216 case $ac_val in #(
2217 *${as_nl}*)
2218 case $ac_var in #(
2219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2221 esac
2222 case $ac_var in #(
2223 _ | IFS | as_nl) ;; #(
2224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2225 *) { eval $ac_var=; unset $ac_var;} ;;
2226 esac ;;
2227 esac
2228 done
2229 (set) 2>&1 |
2230 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2231 *${as_nl}ac_space=\ *)
2232 sed -n \
2233 "s/'\''/'\''\\\\'\'''\''/g;
2234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2235 ;; #(
2236 *)
2237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2238 ;;
2239 esac |
2240 sort
2241 )
2242 echo
2243
2244 $as_echo "## ----------------- ##
2245 ## Output variables. ##
2246 ## ----------------- ##"
2247 echo
2248 for ac_var in $ac_subst_vars
2249 do
2250 eval ac_val=\$$ac_var
2251 case $ac_val in
2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253 esac
2254 $as_echo "$ac_var='\''$ac_val'\''"
2255 done | sort
2256 echo
2257
2258 if test -n "$ac_subst_files"; then
2259 $as_echo "## ------------------- ##
2260 ## File substitutions. ##
2261 ## ------------------- ##"
2262 echo
2263 for ac_var in $ac_subst_files
2264 do
2265 eval ac_val=\$$ac_var
2266 case $ac_val in
2267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268 esac
2269 $as_echo "$ac_var='\''$ac_val'\''"
2270 done | sort
2271 echo
2272 fi
2273
2274 if test -s confdefs.h; then
2275 $as_echo "## ----------- ##
2276 ## confdefs.h. ##
2277 ## ----------- ##"
2278 echo
2279 cat confdefs.h
2280 echo
2281 fi
2282 test "$ac_signal" != 0 &&
2283 $as_echo "$as_me: caught signal $ac_signal"
2284 $as_echo "$as_me: exit $exit_status"
2285 } >&5
2286 rm -f core *.core core.conftest.* &&
2287 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2288 exit $exit_status
2289 ' 0
2290 for ac_signal in 1 2 13 15; do
2291 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2292 done
2293 ac_signal=0
2294
2295 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2296 rm -f -r conftest* confdefs.h
2297
2298 $as_echo "/* confdefs.h */" > confdefs.h
2299
2300 # Predefined preprocessor variables.
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_NAME "$PACKAGE_NAME"
2304 _ACEOF
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2308 _ACEOF
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_STRING "$PACKAGE_STRING"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2320 _ACEOF
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_URL "$PACKAGE_URL"
2324 _ACEOF
2325
2326
2327 # Let the site file select an alternate cache file if it wants to.
2328 # Prefer an explicitly selected file to automatically selected ones.
2329 ac_site_file1=NONE
2330 ac_site_file2=NONE
2331 if test -n "$CONFIG_SITE"; then
2332 # We do not want a PATH search for config.site.
2333 case $CONFIG_SITE in #((
2334 -*) ac_site_file1=./$CONFIG_SITE;;
2335 */*) ac_site_file1=$CONFIG_SITE;;
2336 *) ac_site_file1=./$CONFIG_SITE;;
2337 esac
2338 elif test "x$prefix" != xNONE; then
2339 ac_site_file1=$prefix/share/config.site
2340 ac_site_file2=$prefix/etc/config.site
2341 else
2342 ac_site_file1=$ac_default_prefix/share/config.site
2343 ac_site_file2=$ac_default_prefix/etc/config.site
2344 fi
2345 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2346 do
2347 test "x$ac_site_file" = xNONE && continue
2348 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2350 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2351 sed 's/^/| /' "$ac_site_file" >&5
2352 . "$ac_site_file" \
2353 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355 as_fn_error $? "failed to load site script $ac_site_file
2356 See \`config.log' for more details" "$LINENO" 5; }
2357 fi
2358 done
2359
2360 if test -r "$cache_file"; then
2361 # Some versions of bash will fail to source /dev/null (special files
2362 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2363 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2365 $as_echo "$as_me: loading cache $cache_file" >&6;}
2366 case $cache_file in
2367 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2368 *) . "./$cache_file";;
2369 esac
2370 fi
2371 else
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2373 $as_echo "$as_me: creating cache $cache_file" >&6;}
2374 >$cache_file
2375 fi
2376
2377 # Check that the precious variables saved in the cache have kept the same
2378 # value.
2379 ac_cache_corrupted=false
2380 for ac_var in $ac_precious_vars; do
2381 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2382 eval ac_new_set=\$ac_env_${ac_var}_set
2383 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2384 eval ac_new_val=\$ac_env_${ac_var}_value
2385 case $ac_old_set,$ac_new_set in
2386 set,)
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2388 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2389 ac_cache_corrupted=: ;;
2390 ,set)
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2392 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2393 ac_cache_corrupted=: ;;
2394 ,);;
2395 *)
2396 if test "x$ac_old_val" != "x$ac_new_val"; then
2397 # differences in whitespace do not lead to failure.
2398 ac_old_val_w=`echo x $ac_old_val`
2399 ac_new_val_w=`echo x $ac_new_val`
2400 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2402 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2403 ac_cache_corrupted=:
2404 else
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2406 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2407 eval $ac_var=\$ac_old_val
2408 fi
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2410 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2412 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2413 fi;;
2414 esac
2415 # Pass precious variables to config.status.
2416 if test "$ac_new_set" = set; then
2417 case $ac_new_val in
2418 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2419 *) ac_arg=$ac_var=$ac_new_val ;;
2420 esac
2421 case " $ac_configure_args " in
2422 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2423 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2424 esac
2425 fi
2426 done
2427 if $ac_cache_corrupted; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2431 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2432 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2433 fi
2434 ## -------------------- ##
2435 ## Main body of script. ##
2436 ## -------------------- ##
2437
2438 ac_ext=c
2439 ac_cpp='$CPP $CPPFLAGS'
2440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2443
2444
2445
2446
2447 ac_aux_dir=
2448 for ac_dir in build-scripts "$srcdir"/build-scripts; do
2449 if test -f "$ac_dir/install-sh"; then
2450 ac_aux_dir=$ac_dir
2451 ac_install_sh="$ac_aux_dir/install-sh -c"
2452 break
2453 elif test -f "$ac_dir/install.sh"; then
2454 ac_aux_dir=$ac_dir
2455 ac_install_sh="$ac_aux_dir/install.sh -c"
2456 break
2457 elif test -f "$ac_dir/shtool"; then
2458 ac_aux_dir=$ac_dir
2459 ac_install_sh="$ac_aux_dir/shtool install -c"
2460 break
2461 fi
2462 done
2463 if test -z "$ac_aux_dir"; then
2464 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
2465 fi
2466
2467 # These three variables are undocumented and unsupported,
2468 # and are intended to be withdrawn in a future Autoconf release.
2469 # They can cause serious problems if a builder's source tree is in a directory
2470 # whose full name contains unusual characters.
2471 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2472 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2473 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2474
2475
2476
2477 am__api_version='1.16'
2478
2479 # Find a good install program. We prefer a C program (faster),
2480 # so one script is as good as another. But avoid the broken or
2481 # incompatible versions:
2482 # SysV /etc/install, /usr/sbin/install
2483 # SunOS /usr/etc/install
2484 # IRIX /sbin/install
2485 # AIX /bin/install
2486 # AmigaOS /C/install, which installs bootblocks on floppy discs
2487 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2488 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2489 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2490 # OS/2's system install, which has a completely different semantic
2491 # ./install, which can be erroneously created by make from ./install.sh.
2492 # Reject install programs that cannot install multiple files.
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2494 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2495 if test -z "$INSTALL"; then
2496 if ${ac_cv_path_install+:} false; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2501 do
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 # Account for people who put trailing slashes in PATH elements.
2505 case $as_dir/ in #((
2506 ./ | .// | /[cC]/* | \
2507 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2508 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2509 /usr/ucb/* ) ;;
2510 *)
2511 # OSF1 and SCO ODT 3.0 have their own names for install.
2512 # Don't use installbsd from OSF since it installs stuff as root
2513 # by default.
2514 for ac_prog in ginstall scoinst install; do
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2517 if test $ac_prog = install &&
2518 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2519 # AIX install. It has an incompatible calling convention.
2520 :
2521 elif test $ac_prog = install &&
2522 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2523 # program-specific install script used by HP pwplus--don't use.
2524 :
2525 else
2526 rm -rf conftest.one conftest.two conftest.dir
2527 echo one > conftest.one
2528 echo two > conftest.two
2529 mkdir conftest.dir
2530 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2531 test -s conftest.one && test -s conftest.two &&
2532 test -s conftest.dir/conftest.one &&
2533 test -s conftest.dir/conftest.two
2534 then
2535 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2536 break 3
2537 fi
2538 fi
2539 fi
2540 done
2541 done
2542 ;;
2543 esac
2544
2545 done
2546 IFS=$as_save_IFS
2547
2548 rm -rf conftest.one conftest.two conftest.dir
2549
2550 fi
2551 if test "${ac_cv_path_install+set}" = set; then
2552 INSTALL=$ac_cv_path_install
2553 else
2554 # As a last resort, use the slow shell script. Don't cache a
2555 # value for INSTALL within a source directory, because that will
2556 # break other packages using the cache if that directory is
2557 # removed, or if the value is a relative name.
2558 INSTALL=$ac_install_sh
2559 fi
2560 fi
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2562 $as_echo "$INSTALL" >&6; }
2563
2564 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2565 # It thinks the first close brace ends the variable substitution.
2566 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2567
2568 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2569
2570 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2571
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2573 $as_echo_n "checking whether build environment is sane... " >&6; }
2574 # Reject unsafe characters in $srcdir or the absolute working directory
2575 # name. Accept space and tab only in the latter.
2576 am_lf='
2577 '
2578 case `pwd` in
2579 *[\\\"\#\$\&\'\`$am_lf]*)
2580 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2581 esac
2582 case $srcdir in
2583 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2584 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2585 esac
2586
2587 # Do 'set' in a subshell so we don't clobber the current shell's
2588 # arguments. Must try -L first in case configure is actually a
2589 # symlink; some systems play weird games with the mod time of symlinks
2590 # (eg FreeBSD returns the mod time of the symlink's containing
2591 # directory).
2592 if (
2593 am_has_slept=no
2594 for am_try in 1 2; do
2595 echo "timestamp, slept: $am_has_slept" > conftest.file
2596 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2597 if test "$*" = "X"; then
2598 # -L didn't work.
2599 set X `ls -t "$srcdir/configure" conftest.file`
2600 fi
2601 if test "$*" != "X $srcdir/configure conftest.file" \
2602 && test "$*" != "X conftest.file $srcdir/configure"; then
2603
2604 # If neither matched, then we have a broken ls. This can happen
2605 # if, for instance, CONFIG_SHELL is bash and it inherits a
2606 # broken ls alias from the environment. This has actually
2607 # happened. Such a system could not be considered "sane".
2608 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2609 alias in your environment" "$LINENO" 5
2610 fi
2611 if test "$2" = conftest.file || test $am_try -eq 2; then
2612 break
2613 fi
2614 # Just in case.
2615 sleep 1
2616 am_has_slept=yes
2617 done
2618 test "$2" = conftest.file
2619 )
2620 then
2621 # Ok.
2622 :
2623 else
2624 as_fn_error $? "newly created file is older than distributed files!
2625 Check your system clock" "$LINENO" 5
2626 fi
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2628 $as_echo "yes" >&6; }
2629 # If we didn't sleep, we still need to ensure time stamps of config.status and
2630 # generated files are strictly newer.
2631 am_sleep_pid=
2632 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2633 ( sleep 1 ) &
2634 am_sleep_pid=$!
2635 fi
2636
2637 rm -f conftest.file
2638
2639 test "$program_prefix" != NONE &&
2640 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2641 # Use a double $ so make ignores it.
2642 test "$program_suffix" != NONE &&
2643 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2644 # Double any \ or $.
2645 # By default was `s,x,x', remove it if useless.
2646 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2647 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2648
2649 # Expand $ac_aux_dir to an absolute path.
2650 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2651
2652 if test x"${MISSING+set}" != xset; then
2653 case $am_aux_dir in
2654 *\ * | *\ *)
2655 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2656 *)
2657 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2658 esac
2659 fi
2660 # Use eval to expand $SHELL
2661 if eval "$MISSING --is-lightweight"; then
2662 am_missing_run="$MISSING "
2663 else
2664 am_missing_run=
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2666 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2667 fi
2668
2669 if test x"${install_sh+set}" != xset; then
2670 case $am_aux_dir in
2671 *\ * | *\ *)
2672 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2673 *)
2674 install_sh="\${SHELL} $am_aux_dir/install-sh"
2675 esac
2676 fi
2677
2678 # Installed binaries are usually stripped using 'strip' when the user
2679 # run "make install-strip". However 'strip' might not be the right
2680 # tool to use in cross-compilation environments, therefore Automake
2681 # will honor the 'STRIP' environment variable to overrule this program.
2682 if test "$cross_compiling" != no; then
2683 if test -n "$ac_tool_prefix"; then
2684 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2685 set dummy ${ac_tool_prefix}strip; ac_word=$2
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if ${ac_cv_prog_STRIP+:} false; then :
2689 $as_echo_n "(cached) " >&6
2690 else
2691 if test -n "$STRIP"; then
2692 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2701 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2704 fi
2705 done
2706 done
2707 IFS=$as_save_IFS
2708
2709 fi
2710 fi
2711 STRIP=$ac_cv_prog_STRIP
2712 if test -n "$STRIP"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2714 $as_echo "$STRIP" >&6; }
2715 else
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 $as_echo "no" >&6; }
2718 fi
2719
2720
2721 fi
2722 if test -z "$ac_cv_prog_STRIP"; then
2723 ac_ct_STRIP=$STRIP
2724 # Extract the first word of "strip", so it can be a program name with args.
2725 set dummy strip; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if test -n "$ac_ct_STRIP"; then
2732 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2736 do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_ac_ct_STRIP="strip"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2744 fi
2745 done
2746 done
2747 IFS=$as_save_IFS
2748
2749 fi
2750 fi
2751 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2752 if test -n "$ac_ct_STRIP"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2754 $as_echo "$ac_ct_STRIP" >&6; }
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2758 fi
2759
2760 if test "x$ac_ct_STRIP" = x; then
2761 STRIP=":"
2762 else
2763 case $cross_compiling:$ac_tool_warned in
2764 yes:)
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2767 ac_tool_warned=yes ;;
2768 esac
2769 STRIP=$ac_ct_STRIP
2770 fi
2771 else
2772 STRIP="$ac_cv_prog_STRIP"
2773 fi
2774
2775 fi
2776 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2777
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2779 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2780 if test -z "$MKDIR_P"; then
2781 if ${ac_cv_path_mkdir+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2786 do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_prog in mkdir gmkdir; do
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2792 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2793 'mkdir (GNU coreutils) '* | \
2794 'mkdir (coreutils) '* | \
2795 'mkdir (fileutils) '4.1*)
2796 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2797 break 3;;
2798 esac
2799 done
2800 done
2801 done
2802 IFS=$as_save_IFS
2803
2804 fi
2805
2806 test -d ./--version && rmdir ./--version
2807 if test "${ac_cv_path_mkdir+set}" = set; then
2808 MKDIR_P="$ac_cv_path_mkdir -p"
2809 else
2810 # As a last resort, use the slow shell script. Don't cache a
2811 # value for MKDIR_P within a source directory, because that will
2812 # break other packages using the cache if that directory is
2813 # removed, or if the value is a relative name.
2814 MKDIR_P="$ac_install_sh -d"
2815 fi
2816 fi
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2818 $as_echo "$MKDIR_P" >&6; }
2819
2820 for ac_prog in gawk mawk nawk awk
2821 do
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if ${ac_cv_prog_AWK+:} false; then :
2827 $as_echo_n "(cached) " >&6
2828 else
2829 if test -n "$AWK"; then
2830 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_AWK="$ac_prog"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2842 fi
2843 done
2844 done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 AWK=$ac_cv_prog_AWK
2850 if test -n "$AWK"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2852 $as_echo "$AWK" >&6; }
2853 else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2856 fi
2857
2858
2859 test -n "$AWK" && break
2860 done
2861
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2863 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2864 set x ${MAKE-make}
2865 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2866 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 cat >conftest.make <<\_ACEOF
2870 SHELL = /bin/sh
2871 all:
2872 @echo '@@@%%%=$(MAKE)=@@@%%%'
2873 _ACEOF
2874 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2875 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2876 *@@@%%%=?*=@@@%%%*)
2877 eval ac_cv_prog_make_${ac_make}_set=yes;;
2878 *)
2879 eval ac_cv_prog_make_${ac_make}_set=no;;
2880 esac
2881 rm -f conftest.make
2882 fi
2883 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2885 $as_echo "yes" >&6; }
2886 SET_MAKE=
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2890 SET_MAKE="MAKE=${MAKE-make}"
2891 fi
2892
2893 rm -rf .tst 2>/dev/null
2894 mkdir .tst 2>/dev/null
2895 if test -d .tst; then
2896 am__leading_dot=.
2897 else
2898 am__leading_dot=_
2899 fi
2900 rmdir .tst 2>/dev/null
2901
2902 # Check whether --enable-silent-rules was given.
2903 if test "${enable_silent_rules+set}" = set; then :
2904 enableval=$enable_silent_rules;
2905 fi
2906
2907 case $enable_silent_rules in # (((
2908 yes) AM_DEFAULT_VERBOSITY=0;;
2909 no) AM_DEFAULT_VERBOSITY=1;;
2910 *) AM_DEFAULT_VERBOSITY=1;;
2911 esac
2912 am_make=${MAKE-make}
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2914 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2915 if ${am_cv_make_support_nested_variables+:} false; then :
2916 $as_echo_n "(cached) " >&6
2917 else
2918 if $as_echo 'TRUE=$(BAR$(V))
2919 BAR0=false
2920 BAR1=true
2921 V=1
2922 am__doit:
2923 @$(TRUE)
2924 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2925 am_cv_make_support_nested_variables=yes
2926 else
2927 am_cv_make_support_nested_variables=no
2928 fi
2929 fi
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2931 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2932 if test $am_cv_make_support_nested_variables = yes; then
2933 AM_V='$(V)'
2934 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2935 else
2936 AM_V=$AM_DEFAULT_VERBOSITY
2937 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2938 fi
2939 AM_BACKSLASH='\'
2940
2941 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2942 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2943 # is not polluted with repeated "-I."
2944 am__isrc=' -I$(srcdir)'
2945 # test to see if srcdir already configured
2946 if test -f $srcdir/config.status; then
2947 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2948 fi
2949 fi
2950
2951 # test whether we have cygpath
2952 if test -z "$CYGPATH_W"; then
2953 if (cygpath --version) >/dev/null 2>/dev/null; then
2954 CYGPATH_W='cygpath -w'
2955 else
2956 CYGPATH_W=echo
2957 fi
2958 fi
2959
2960
2961 # Define the identity of the package.
2962 PACKAGE='twolame'
2963 VERSION='0.4.0'
2964
2965
2966 cat >>confdefs.h <<_ACEOF
2967 #define PACKAGE "$PACKAGE"
2968 _ACEOF
2969
2970
2971 cat >>confdefs.h <<_ACEOF
2972 #define VERSION "$VERSION"
2973 _ACEOF
2974
2975 # Some tools Automake needs.
2976
2977 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2978
2979
2980 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2981
2982
2983 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2984
2985
2986 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2987
2988
2989 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2990
2991 # For better backward compatibility. To be removed once Automake 1.9.x
2992 # dies out for good. For more background, see:
2993 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2994 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2995 mkdir_p='$(MKDIR_P)'
2996
2997 # We need awk for the "check" target (and possibly the TAP driver). The
2998 # system "awk" is bad on some platforms.
2999 # Always define AMTAR for backward compatibility. Yes, it's still used
3000 # in the wild :-( We should find a proper way to deprecate it ...
3001 AMTAR='$${TAR-tar}'
3002
3003
3004 # We'll loop over all known methods to create a tar archive until one works.
3005 _am_tools='gnutar pax cpio none'
3006
3007 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3008
3009
3010
3011
3012
3013
3014 # POSIX will say in a future version that running "rm -f" with no argument
3015 # is OK; and we want to be able to make that assumption in our Makefile
3016 # recipes. So use an aggressive probe to check that the usage we want is
3017 # actually supported "in the wild" to an acceptable degree.
3018 # See automake bug#10828.
3019 # To make any issue more visible, cause the running configure to be aborted
3020 # by default if the 'rm' program in use doesn't match our expectations; the
3021 # user can still override this though.
3022 if rm -f && rm -fr && rm -rf; then : OK; else
3023 cat >&2 <<'END'
3024 Oops!
3025
3026 Your 'rm' program seems unable to run without file operands specified
3027 on the command line, even when the '-f' option is present. This is contrary
3028 to the behaviour of most rm programs out there, and not conforming with
3029 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3030
3031 Please tell [email protected] about your system, including the value
3032 of your $PATH and any error possibly output before this message. This
3033 can help us improve future automake versions.
3034
3035 END
3036 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3037 echo 'Configuration will proceed anyway, since you have set the' >&2
3038 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3039 echo >&2
3040 else
3041 cat >&2 <<'END'
3042 Aborting the configuration process, to ensure you take notice of the issue.
3043
3044 You can download and install GNU coreutils to get an 'rm' implementation
3045 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3046
3047 If you want to complete the configuration process using your problematic
3048 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3049 to "yes", and re-run configure.
3050
3051 END
3052 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3053 fi
3054 fi
3055
3056
3057
3058
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3060 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3061 # Check whether --enable-maintainer-mode was given.
3062 if test "${enable_maintainer_mode+set}" = set; then :
3063 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3064 else
3065 USE_MAINTAINER_MODE=no
3066 fi
3067
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3069 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3070 if test $USE_MAINTAINER_MODE = yes; then
3071 MAINTAINER_MODE_TRUE=
3072 MAINTAINER_MODE_FALSE='#'
3073 else
3074 MAINTAINER_MODE_TRUE='#'
3075 MAINTAINER_MODE_FALSE=
3076 fi
3077
3078 MAINT=$MAINTAINER_MODE_TRUE
3079
3080
3081
3082
3083
3084
3085 TWOLAME_SO_VERSION=0:0:0
3086
3087
3088
3089
3090
3091 DEPDIR="${am__leading_dot}deps"
3092
3093 ac_config_commands="$ac_config_commands depfiles"
3094
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3096 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3097 cat > confinc.mk << 'END'
3098 am__doit:
3099 @echo this is the am__doit target >confinc.out
3100 .PHONY: am__doit
3101 END
3102 am__include="#"
3103 am__quote=
3104 # BSD make does it like this.
3105 echo '.include "confinc.mk" # ignored' > confmf.BSD
3106 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3107 echo 'include confinc.mk # ignored' > confmf.GNU
3108 _am_result=no
3109 for s in GNU BSD; do
3110 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3111 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }
3115 case $?:`cat confinc.out 2>/dev/null` in #(
3116 '0:this is the am__doit target') :
3117 case $s in #(
3118 BSD) :
3119 am__include='.include' am__quote='"' ;; #(
3120 *) :
3121 am__include='include' am__quote='' ;;
3122 esac ;; #(
3123 *) :
3124 ;;
3125 esac
3126 if test "$am__include" != "#"; then
3127 _am_result="yes ($s style)"
3128 break
3129 fi
3130 done
3131 rm -f confinc.* confmf.*
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3133 $as_echo "${_am_result}" >&6; }
3134
3135 # Check whether --enable-dependency-tracking was given.
3136 if test "${enable_dependency_tracking+set}" = set; then :
3137 enableval=$enable_dependency_tracking;
3138 fi
3139
3140 if test "x$enable_dependency_tracking" != xno; then
3141 am_depcomp="$ac_aux_dir/depcomp"
3142 AMDEPBACKSLASH='\'
3143 am__nodep='_no'
3144 fi
3145 if test "x$enable_dependency_tracking" != xno; then
3146 AMDEP_TRUE=
3147 AMDEP_FALSE='#'
3148 else
3149 AMDEP_TRUE='#'
3150 AMDEP_FALSE=
3151 fi
3152
3153
3154 ac_ext=c
3155 ac_cpp='$CPP $CPPFLAGS'
3156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3159 if test -n "$ac_tool_prefix"; then
3160 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3161 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_CC+:} false; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3180 fi
3181 done
3182 done
3183 IFS=$as_save_IFS
3184
3185 fi
3186 fi
3187 CC=$ac_cv_prog_CC
3188 if test -n "$CC"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190 $as_echo "$CC" >&6; }
3191 else
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194 fi
3195
3196
3197 fi
3198 if test -z "$ac_cv_prog_CC"; then
3199 ac_ct_CC=$CC
3200 # Extract the first word of "gcc", so it can be a program name with args.
3201 set dummy gcc; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3205 $as_echo_n "(cached) " >&6
3206 else
3207 if test -n "$ac_ct_CC"; then
3208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_ac_ct_CC="gcc"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221 done
3222 done
3223 IFS=$as_save_IFS
3224
3225 fi
3226 fi
3227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3228 if test -n "$ac_ct_CC"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3230 $as_echo "$ac_ct_CC" >&6; }
3231 else
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 fi
3235
3236 if test "x$ac_ct_CC" = x; then
3237 CC=""
3238 else
3239 case $cross_compiling:$ac_tool_warned in
3240 yes:)
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3243 ac_tool_warned=yes ;;
3244 esac
3245 CC=$ac_ct_CC
3246 fi
3247 else
3248 CC="$ac_cv_prog_CC"
3249 fi
3250
3251 if test -z "$CC"; then
3252 if test -n "$ac_tool_prefix"; then
3253 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3254 set dummy ${ac_tool_prefix}cc; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_CC+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test -n "$CC"; then
3261 ac_cv_prog_CC="$CC" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270 ac_cv_prog_CC="${ac_tool_prefix}cc"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 break 2
3273 fi
3274 done
3275 done
3276 IFS=$as_save_IFS
3277
3278 fi
3279 fi
3280 CC=$ac_cv_prog_CC
3281 if test -n "$CC"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283 $as_echo "$CC" >&6; }
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 fi
3288
3289
3290 fi
3291 fi
3292 if test -z "$CC"; then
3293 # Extract the first word of "cc", so it can be a program name with args.
3294 set dummy cc; ac_word=$2
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 $as_echo_n "checking for $ac_word... " >&6; }
3297 if ${ac_cv_prog_CC+:} false; then :
3298 $as_echo_n "(cached) " >&6
3299 else
3300 if test -n "$CC"; then
3301 ac_cv_prog_CC="$CC" # Let the user override the test.
3302 else
3303 ac_prog_rejected=no
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3311 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3312 ac_prog_rejected=yes
3313 continue
3314 fi
3315 ac_cv_prog_CC="cc"
3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 break 2
3318 fi
3319 done
3320 done
3321 IFS=$as_save_IFS
3322
3323 if test $ac_prog_rejected = yes; then
3324 # We found a bogon in the path, so make sure we never use it.
3325 set dummy $ac_cv_prog_CC
3326 shift
3327 if test $# != 0; then
3328 # We chose a different compiler from the bogus one.
3329 # However, it has the same basename, so the bogon will be chosen
3330 # first if we set CC to just the basename; use the full file name.
3331 shift
3332 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3333 fi
3334 fi
3335 fi
3336 fi
3337 CC=$ac_cv_prog_CC
3338 if test -n "$CC"; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3340 $as_echo "$CC" >&6; }
3341 else
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 fi
3345
3346
3347 fi
3348 if test -z "$CC"; then
3349 if test -n "$ac_tool_prefix"; then
3350 for ac_prog in cl.exe
3351 do
3352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if ${ac_cv_prog_CC+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373 done
3374 done
3375 IFS=$as_save_IFS
3376
3377 fi
3378 fi
3379 CC=$ac_cv_prog_CC
3380 if test -n "$CC"; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382 $as_echo "$CC" >&6; }
3383 else
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 fi
3387
3388
3389 test -n "$CC" && break
3390 done
3391 fi
3392 if test -z "$CC"; then
3393 ac_ct_CC=$CC
3394 for ac_prog in cl.exe
3395 do
3396 # Extract the first word of "$ac_prog", so it can be a program name with args.
3397 set dummy $ac_prog; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 if test -n "$ac_ct_CC"; then
3404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 ac_cv_prog_ac_ct_CC="$ac_prog"
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 break 2
3416 fi
3417 done
3418 done
3419 IFS=$as_save_IFS
3420
3421 fi
3422 fi
3423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3424 if test -n "$ac_ct_CC"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3426 $as_echo "$ac_ct_CC" >&6; }
3427 else
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 fi
3431
3432
3433 test -n "$ac_ct_CC" && break
3434 done
3435
3436 if test "x$ac_ct_CC" = x; then
3437 CC=""
3438 else
3439 case $cross_compiling:$ac_tool_warned in
3440 yes:)
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3443 ac_tool_warned=yes ;;
3444 esac
3445 CC=$ac_ct_CC
3446 fi
3447 fi
3448
3449 fi
3450
3451
3452 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error $? "no acceptable C compiler found in \$PATH
3455 See \`config.log' for more details" "$LINENO" 5; }
3456
3457 # Provide some information about the compiler.
3458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3459 set X $ac_compile
3460 ac_compiler=$2
3461 for ac_option in --version -v -V -qversion; do
3462 { { ac_try="$ac_compiler $ac_option >&5"
3463 case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466 esac
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3470 ac_status=$?
3471 if test -s conftest.err; then
3472 sed '10a\
3473 ... rest of stderr output deleted ...
3474 10q' conftest.err >conftest.er1
3475 cat conftest.er1 >&5
3476 fi
3477 rm -f conftest.er1 conftest.err
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }
3480 done
3481
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3484
3485 int
3486 main ()
3487 {
3488
3489 ;
3490 return 0;
3491 }
3492 _ACEOF
3493 ac_clean_files_save=$ac_clean_files
3494 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3495 # Try to create an executable without -o first, disregard a.out.
3496 # It will help us diagnose broken compilers, and finding out an intuition
3497 # of exeext.
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3499 $as_echo_n "checking whether the C compiler works... " >&6; }
3500 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3501
3502 # The possible output files:
3503 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3504
3505 ac_rmfiles=
3506 for ac_file in $ac_files
3507 do
3508 case $ac_file in
3509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3510 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3511 esac
3512 done
3513 rm -f $ac_rmfiles
3514
3515 if { { ac_try="$ac_link_default"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521 $as_echo "$ac_try_echo"; } >&5
3522 (eval "$ac_link_default") 2>&5
3523 ac_status=$?
3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525 test $ac_status = 0; }; then :
3526 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3527 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3528 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3529 # so that the user can short-circuit this test for compilers unknown to
3530 # Autoconf.
3531 for ac_file in $ac_files ''
3532 do
3533 test -f "$ac_file" || continue
3534 case $ac_file in
3535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3536 ;;
3537 [ab].out )
3538 # We found the default executable, but exeext='' is most
3539 # certainly right.
3540 break;;
3541 *.* )
3542 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3543 then :; else
3544 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3545 fi
3546 # We set ac_cv_exeext here because the later test for it is not
3547 # safe: cross compilers may not add the suffix if given an `-o'
3548 # argument, so we may need to know it at that point already.
3549 # Even if this section looks crufty: it has the advantage of
3550 # actually working.
3551 break;;
3552 * )
3553 break;;
3554 esac
3555 done
3556 test "$ac_cv_exeext" = no && ac_cv_exeext=
3557
3558 else
3559 ac_file=''
3560 fi
3561 if test -z "$ac_file"; then :
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3564 $as_echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3566
3567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569 as_fn_error 77 "C compiler cannot create executables
3570 See \`config.log' for more details" "$LINENO" 5; }
3571 else
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3573 $as_echo "yes" >&6; }
3574 fi
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3576 $as_echo_n "checking for C compiler default output file name... " >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3578 $as_echo "$ac_file" >&6; }
3579 ac_exeext=$ac_cv_exeext
3580
3581 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3582 ac_clean_files=$ac_clean_files_save
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3584 $as_echo_n "checking for suffix of executables... " >&6; }
3585 if { { ac_try="$ac_link"
3586 case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589 esac
3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 $as_echo "$ac_try_echo"; } >&5
3592 (eval "$ac_link") 2>&5
3593 ac_status=$?
3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 test $ac_status = 0; }; then :
3596 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3597 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3598 # work properly (i.e., refer to `conftest.exe'), while it won't with
3599 # `rm'.
3600 for ac_file in conftest.exe conftest conftest.*; do
3601 test -f "$ac_file" || continue
3602 case $ac_file in
3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3604 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3605 break;;
3606 * ) break;;
3607 esac
3608 done
3609 else
3610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3613 See \`config.log' for more details" "$LINENO" 5; }
3614 fi
3615 rm -f conftest conftest$ac_cv_exeext
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3617 $as_echo "$ac_cv_exeext" >&6; }
3618
3619 rm -f conftest.$ac_ext
3620 EXEEXT=$ac_cv_exeext
3621 ac_exeext=$EXEEXT
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3624 #include <stdio.h>
3625 int
3626 main ()
3627 {
3628 FILE *f = fopen ("conftest.out", "w");
3629 return ferror (f) || fclose (f) != 0;
3630
3631 ;
3632 return 0;
3633 }
3634 _ACEOF
3635 ac_clean_files="$ac_clean_files conftest.out"
3636 # Check that the compiler produces executables we can run. If not, either
3637 # the compiler is broken, or we cross compile.
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3639 $as_echo_n "checking whether we are cross compiling... " >&6; }
3640 if test "$cross_compiling" != yes; then
3641 { { ac_try="$ac_link"
3642 case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_link") 2>&5
3649 ac_status=$?
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }
3652 if { ac_try='./conftest$ac_cv_exeext'
3653 { { case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656 esac
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659 (eval "$ac_try") 2>&5
3660 ac_status=$?
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }; }; then
3663 cross_compiling=no
3664 else
3665 if test "$cross_compiling" = maybe; then
3666 cross_compiling=yes
3667 else
3668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670 as_fn_error $? "cannot run C compiled programs.
3671 If you meant to cross compile, use \`--host'.
3672 See \`config.log' for more details" "$LINENO" 5; }
3673 fi
3674 fi
3675 fi
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3677 $as_echo "$cross_compiling" >&6; }
3678
3679 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3680 ac_clean_files=$ac_clean_files_save
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3682 $as_echo_n "checking for suffix of object files... " >&6; }
3683 if ${ac_cv_objext+:} false; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688
3689 int
3690 main ()
3691 {
3692
3693 ;
3694 return 0;
3695 }
3696 _ACEOF
3697 rm -f conftest.o conftest.obj
3698 if { { ac_try="$ac_compile"
3699 case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702 esac
3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 $as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_compile") 2>&5
3706 ac_status=$?
3707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708 test $ac_status = 0; }; then :
3709 for ac_file in conftest.o conftest.obj conftest.*; do
3710 test -f "$ac_file" || continue;
3711 case $ac_file in
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3713 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3714 break;;
3715 esac
3716 done
3717 else
3718 $as_echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error $? "cannot compute suffix of object files: cannot compile
3724 See \`config.log' for more details" "$LINENO" 5; }
3725 fi
3726 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3729 $as_echo "$ac_cv_objext" >&6; }
3730 OBJEXT=$ac_cv_objext
3731 ac_objext=$OBJEXT
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3733 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3734 if ${ac_cv_c_compiler_gnu+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3739
3740 int
3741 main ()
3742 {
3743 #ifndef __GNUC__
3744 choke me
3745 #endif
3746
3747 ;
3748 return 0;
3749 }
3750 _ACEOF
3751 if ac_fn_c_try_compile "$LINENO"; then :
3752 ac_compiler_gnu=yes
3753 else
3754 ac_compiler_gnu=no
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3758
3759 fi
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3761 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3762 if test $ac_compiler_gnu = yes; then
3763 GCC=yes
3764 else
3765 GCC=
3766 fi
3767 ac_test_CFLAGS=${CFLAGS+set}
3768 ac_save_CFLAGS=$CFLAGS
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3770 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3771 if ${ac_cv_prog_cc_g+:} false; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 ac_save_c_werror_flag=$ac_c_werror_flag
3775 ac_c_werror_flag=yes
3776 ac_cv_prog_cc_g=no
3777 CFLAGS="-g"
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3780
3781 int
3782 main ()
3783 {
3784
3785 ;
3786 return 0;
3787 }
3788 _ACEOF
3789 if ac_fn_c_try_compile "$LINENO"; then :
3790 ac_cv_prog_cc_g=yes
3791 else
3792 CFLAGS=""
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795
3796 int
3797 main ()
3798 {
3799
3800 ;
3801 return 0;
3802 }
3803 _ACEOF
3804 if ac_fn_c_try_compile "$LINENO"; then :
3805
3806 else
3807 ac_c_werror_flag=$ac_save_c_werror_flag
3808 CFLAGS="-g"
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3811
3812 int
3813 main ()
3814 {
3815
3816 ;
3817 return 0;
3818 }
3819 _ACEOF
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821 ac_cv_prog_cc_g=yes
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 fi
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 fi
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 ac_c_werror_flag=$ac_save_c_werror_flag
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3831 $as_echo "$ac_cv_prog_cc_g" >&6; }
3832 if test "$ac_test_CFLAGS" = set; then
3833 CFLAGS=$ac_save_CFLAGS
3834 elif test $ac_cv_prog_cc_g = yes; then
3835 if test "$GCC" = yes; then
3836 CFLAGS="-g -O2"
3837 else
3838 CFLAGS="-g"
3839 fi
3840 else
3841 if test "$GCC" = yes; then
3842 CFLAGS="-O2"
3843 else
3844 CFLAGS=
3845 fi
3846 fi
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3848 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3849 if ${ac_cv_prog_cc_c89+:} false; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 ac_cv_prog_cc_c89=no
3853 ac_save_CC=$CC
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #include <stdarg.h>
3857 #include <stdio.h>
3858 struct stat;
3859 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3860 struct buf { int x; };
3861 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3862 static char *e (p, i)
3863 char **p;
3864 int i;
3865 {
3866 return p[i];
3867 }
3868 static char *f (char * (*g) (char **, int), char **p, ...)
3869 {
3870 char *s;
3871 va_list v;
3872 va_start (v,p);
3873 s = g (p, va_arg (v,int));
3874 va_end (v);
3875 return s;
3876 }
3877
3878 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3879 function prototypes and stuff, but not '\xHH' hex character constants.
3880 These don't provoke an error unfortunately, instead are silently treated
3881 as 'x'. The following induces an error, until -std is added to get
3882 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3883 array size at least. It's necessary to write '\x00'==0 to get something
3884 that's true only with -std. */
3885 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3886
3887 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3888 inside strings and character constants. */
3889 #define FOO(x) 'x'
3890 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3891
3892 int test (int i, double x);
3893 struct s1 {int (*f) (int a);};
3894 struct s2 {int (*f) (double a);};
3895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3896 int argc;
3897 char **argv;
3898 int
3899 main ()
3900 {
3901 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3902 ;
3903 return 0;
3904 }
3905 _ACEOF
3906 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3907 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3908 do
3909 CC="$ac_save_CC $ac_arg"
3910 if ac_fn_c_try_compile "$LINENO"; then :
3911 ac_cv_prog_cc_c89=$ac_arg
3912 fi
3913 rm -f core conftest.err conftest.$ac_objext
3914 test "x$ac_cv_prog_cc_c89" != "xno" && break
3915 done
3916 rm -f conftest.$ac_ext
3917 CC=$ac_save_CC
3918
3919 fi
3920 # AC_CACHE_VAL
3921 case "x$ac_cv_prog_cc_c89" in
3922 x)
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3924 $as_echo "none needed" >&6; } ;;
3925 xno)
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3927 $as_echo "unsupported" >&6; } ;;
3928 *)
3929 CC="$CC $ac_cv_prog_cc_c89"
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3931 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3932 esac
3933 if test "x$ac_cv_prog_cc_c89" != xno; then :
3934
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 ac_ext=c
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3949 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3950 if ${am_cv_prog_cc_c_o+:} false; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955
3956 int
3957 main ()
3958 {
3959
3960 ;
3961 return 0;
3962 }
3963 _ACEOF
3964 # Make sure it works both with $CC and with simple cc.
3965 # Following AC_PROG_CC_C_O, we do the test twice because some
3966 # compilers refuse to overwrite an existing .o file with -o,
3967 # though they will create one.
3968 am_cv_prog_cc_c_o=yes
3969 for am_i in 1 2; do
3970 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3971 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } \
3975 && test -f conftest2.$ac_objext; then
3976 : OK
3977 else
3978 am_cv_prog_cc_c_o=no
3979 break
3980 fi
3981 done
3982 rm -f core conftest*
3983 unset am_i
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3986 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3987 if test "$am_cv_prog_cc_c_o" != yes; then
3988 # Losing compiler, so override with the script.
3989 # FIXME: It is wrong to rewrite CC.
3990 # But if we don't then we get into trouble of one sort or another.
3991 # A longer-term fix would be to have automake use am__CC in this case,
3992 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3993 CC="$am_aux_dir/compile $CC"
3994 fi
3995 ac_ext=c
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000
4001
4002 depcc="$CC" am_compiler_list=
4003
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4005 $as_echo_n "checking dependency style of $depcc... " >&6; }
4006 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4010 # We make a subdir and do the tests there. Otherwise we can end up
4011 # making bogus files that we don't know about and never remove. For
4012 # instance it was reported that on HP-UX the gcc test will end up
4013 # making a dummy file named 'D' -- because '-MD' means "put the output
4014 # in D".
4015 rm -rf conftest.dir
4016 mkdir conftest.dir
4017 # Copy depcomp to subdir because otherwise we won't find it if we're
4018 # using a relative directory.
4019 cp "$am_depcomp" conftest.dir
4020 cd conftest.dir
4021 # We will build objects and dependencies in a subdirectory because
4022 # it helps to detect inapplicable dependency modes. For instance
4023 # both Tru64's cc and ICC support -MD to output dependencies as a
4024 # side effect of compilation, but ICC will put the dependencies in
4025 # the current directory while Tru64 will put them in the object
4026 # directory.
4027 mkdir sub
4028
4029 am_cv_CC_dependencies_compiler_type=none
4030 if test "$am_compiler_list" = ""; then
4031 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4032 fi
4033 am__universal=false
4034 case " $depcc " in #(
4035 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4036 esac
4037
4038 for depmode in $am_compiler_list; do
4039 # Setup a source with many dependencies, because some compilers
4040 # like to wrap large dependency lists on column 80 (with \), and
4041 # we should not choose a depcomp mode which is confused by this.
4042 #
4043 # We need to recreate these files for each test, as the compiler may
4044 # overwrite some of them when testing with obscure command lines.
4045 # This happens at least with the AIX C compiler.
4046 : > sub/conftest.c
4047 for i in 1 2 3 4 5 6; do
4048 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4049 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4050 # Solaris 10 /bin/sh.
4051 echo '/* dummy */' > sub/conftst$i.h
4052 done
4053 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4054
4055 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4056 # mode. It turns out that the SunPro C++ compiler does not properly
4057 # handle '-M -o', and we need to detect this. Also, some Intel
4058 # versions had trouble with output in subdirs.
4059 am__obj=sub/conftest.${OBJEXT-o}
4060 am__minus_obj="-o $am__obj"
4061 case $depmode in
4062 gcc)
4063 # This depmode causes a compiler race in universal mode.
4064 test "$am__universal" = false || continue
4065 ;;
4066 nosideeffect)
4067 # After this tag, mechanisms are not by side-effect, so they'll
4068 # only be used when explicitly requested.
4069 if test "x$enable_dependency_tracking" = xyes; then
4070 continue
4071 else
4072 break
4073 fi
4074 ;;
4075 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4076 # This compiler won't grok '-c -o', but also, the minuso test has
4077 # not run yet. These depmodes are late enough in the game, and
4078 # so weak that their functioning should not be impacted.
4079 am__obj=conftest.${OBJEXT-o}
4080 am__minus_obj=
4081 ;;
4082 none) break ;;
4083 esac
4084 if depmode=$depmode \
4085 source=sub/conftest.c object=$am__obj \
4086 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4087 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4088 >/dev/null 2>conftest.err &&
4089 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4090 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4091 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4092 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4093 # icc doesn't choke on unknown options, it will just issue warnings
4094 # or remarks (even with -Werror). So we grep stderr for any message
4095 # that says an option was ignored or not supported.
4096 # When given -MP, icc 7.0 and 7.1 complain thusly:
4097 # icc: Command line warning: ignoring option '-M'; no argument required
4098 # The diagnosis changed in icc 8.0:
4099 # icc: Command line remark: option '-MP' not supported
4100 if (grep 'ignoring option' conftest.err ||
4101 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4102 am_cv_CC_dependencies_compiler_type=$depmode
4103 break
4104 fi
4105 fi
4106 done
4107
4108 cd ..
4109 rm -rf conftest.dir
4110 else
4111 am_cv_CC_dependencies_compiler_type=none
4112 fi
4113
4114 fi
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4116 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4117 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4118
4119 if
4120 test "x$enable_dependency_tracking" != xno \
4121 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4122 am__fastdepCC_TRUE=
4123 am__fastdepCC_FALSE='#'
4124 else
4125 am__fastdepCC_TRUE='#'
4126 am__fastdepCC_FALSE=
4127 fi
4128
4129
4130
4131 if test -n "$ac_tool_prefix"; then
4132 for ac_prog in ar lib "link -lib"
4133 do
4134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_AR+:} false; then :
4139 $as_echo_n "(cached) " >&6
4140 else
4141 if test -n "$AR"; then
4142 ac_cv_prog_AR="$AR" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 break 2
4154 fi
4155 done
4156 done
4157 IFS=$as_save_IFS
4158
4159 fi
4160 fi
4161 AR=$ac_cv_prog_AR
4162 if test -n "$AR"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4164 $as_echo "$AR" >&6; }
4165 else
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4168 fi
4169
4170
4171 test -n "$AR" && break
4172 done
4173 fi
4174 if test -z "$AR"; then
4175 ac_ct_AR=$AR
4176 for ac_prog in ar lib "link -lib"
4177 do
4178 # Extract the first word of "$ac_prog", so it can be a program name with args.
4179 set dummy $ac_prog; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 if test -n "$ac_ct_AR"; then
4186 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4190 do
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_ac_ct_AR="$ac_prog"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 break 2
4198 fi
4199 done
4200 done
4201 IFS=$as_save_IFS
4202
4203 fi
4204 fi
4205 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4206 if test -n "$ac_ct_AR"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4208 $as_echo "$ac_ct_AR" >&6; }
4209 else
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4212 fi
4213
4214
4215 test -n "$ac_ct_AR" && break
4216 done
4217
4218 if test "x$ac_ct_AR" = x; then
4219 AR="false"
4220 else
4221 case $cross_compiling:$ac_tool_warned in
4222 yes:)
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4225 ac_tool_warned=yes ;;
4226 esac
4227 AR=$ac_ct_AR
4228 fi
4229 fi
4230
4231 : ${AR=ar}
4232
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4234 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4235 if ${am_cv_ar_interface+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 ac_ext=c
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243
4244 am_cv_ar_interface=ar
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 int some_variable = 0;
4248 _ACEOF
4249 if ac_fn_c_try_compile "$LINENO"; then :
4250 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4252 (eval $am_ar_try) 2>&5
4253 ac_status=$?
4254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4255 test $ac_status = 0; }
4256 if test "$ac_status" -eq 0; then
4257 am_cv_ar_interface=ar
4258 else
4259 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4261 (eval $am_ar_try) 2>&5
4262 ac_status=$?
4263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264 test $ac_status = 0; }
4265 if test "$ac_status" -eq 0; then
4266 am_cv_ar_interface=lib
4267 else
4268 am_cv_ar_interface=unknown
4269 fi
4270 fi
4271 rm -f conftest.lib libconftest.a
4272
4273 fi
4274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275 ac_ext=c
4276 ac_cpp='$CPP $CPPFLAGS'
4277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4280
4281 fi
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4283 $as_echo "$am_cv_ar_interface" >&6; }
4284
4285 case $am_cv_ar_interface in
4286 ar)
4287 ;;
4288 lib)
4289 # Microsoft lib, so override with the ar-lib wrapper script.
4290 # FIXME: It is wrong to rewrite AR.
4291 # But if we don't then we get into trouble of one sort or another.
4292 # A longer-term fix would be to have automake use am__AR in this case,
4293 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4294 # similar.
4295 AR="$am_aux_dir/ar-lib $AR"
4296 ;;
4297 unknown)
4298 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4299 ;;
4300 esac
4301
4302 ac_ext=c
4303 ac_cpp='$CPP $CPPFLAGS'
4304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307 if test -n "$ac_tool_prefix"; then
4308 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4309 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if ${ac_cv_prog_CC+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if test -n "$CC"; then
4316 ac_cv_prog_CC="$CC" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4320 do
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4328 fi
4329 done
4330 done
4331 IFS=$as_save_IFS
4332
4333 fi
4334 fi
4335 CC=$ac_cv_prog_CC
4336 if test -n "$CC"; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4338 $as_echo "$CC" >&6; }
4339 else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4342 fi
4343
4344
4345 fi
4346 if test -z "$ac_cv_prog_CC"; then
4347 ac_ct_CC=$CC
4348 # Extract the first word of "gcc", so it can be a program name with args.
4349 set dummy gcc; ac_word=$2
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4351 $as_echo_n "checking for $ac_word... " >&6; }
4352 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4353 $as_echo_n "(cached) " >&6
4354 else
4355 if test -n "$ac_ct_CC"; then
4356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365 ac_cv_prog_ac_ct_CC="gcc"
4366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 break 2
4368 fi
4369 done
4370 done
4371 IFS=$as_save_IFS
4372
4373 fi
4374 fi
4375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4376 if test -n "$ac_ct_CC"; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4378 $as_echo "$ac_ct_CC" >&6; }
4379 else
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4382 fi
4383
4384 if test "x$ac_ct_CC" = x; then
4385 CC=""
4386 else
4387 case $cross_compiling:$ac_tool_warned in
4388 yes:)
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4391 ac_tool_warned=yes ;;
4392 esac
4393 CC=$ac_ct_CC
4394 fi
4395 else
4396 CC="$ac_cv_prog_CC"
4397 fi
4398
4399 if test -z "$CC"; then
4400 if test -n "$ac_tool_prefix"; then
4401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4402 set dummy ${ac_tool_prefix}cc; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if ${ac_cv_prog_CC+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 if test -n "$CC"; then
4409 ac_cv_prog_CC="$CC" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4418 ac_cv_prog_CC="${ac_tool_prefix}cc"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422 done
4423 done
4424 IFS=$as_save_IFS
4425
4426 fi
4427 fi
4428 CC=$ac_cv_prog_CC
4429 if test -n "$CC"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4431 $as_echo "$CC" >&6; }
4432 else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4435 fi
4436
4437
4438 fi
4439 fi
4440 if test -z "$CC"; then
4441 # Extract the first word of "cc", so it can be a program name with args.
4442 set dummy cc; ac_word=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if ${ac_cv_prog_CC+:} false; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 if test -n "$CC"; then
4449 ac_cv_prog_CC="$CC" # Let the user override the test.
4450 else
4451 ac_prog_rejected=no
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4454 do
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4460 ac_prog_rejected=yes
4461 continue
4462 fi
4463 ac_cv_prog_CC="cc"
4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 break 2
4466 fi
4467 done
4468 done
4469 IFS=$as_save_IFS
4470
4471 if test $ac_prog_rejected = yes; then
4472 # We found a bogon in the path, so make sure we never use it.
4473 set dummy $ac_cv_prog_CC
4474 shift
4475 if test $# != 0; then
4476 # We chose a different compiler from the bogus one.
4477 # However, it has the same basename, so the bogon will be chosen
4478 # first if we set CC to just the basename; use the full file name.
4479 shift
4480 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4481 fi
4482 fi
4483 fi
4484 fi
4485 CC=$ac_cv_prog_CC
4486 if test -n "$CC"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4488 $as_echo "$CC" >&6; }
4489 else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4492 fi
4493
4494
4495 fi
4496 if test -z "$CC"; then
4497 if test -n "$ac_tool_prefix"; then
4498 for ac_prog in cl.exe
4499 do
4500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if ${ac_cv_prog_CC+:} false; then :
4505 $as_echo_n "(cached) " >&6
4506 else
4507 if test -n "$CC"; then
4508 ac_cv_prog_CC="$CC" # Let the user override the test.
4509 else
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
4520 fi
4521 done
4522 done
4523 IFS=$as_save_IFS
4524
4525 fi
4526 fi
4527 CC=$ac_cv_prog_CC
4528 if test -n "$CC"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4530 $as_echo "$CC" >&6; }
4531 else
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4534 fi
4535
4536
4537 test -n "$CC" && break
4538 done
4539 fi
4540 if test -z "$CC"; then
4541 ac_ct_CC=$CC
4542 for ac_prog in cl.exe
4543 do
4544 # Extract the first word of "$ac_prog", so it can be a program name with args.
4545 set dummy $ac_prog; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 if test -n "$ac_ct_CC"; then
4552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_prog_ac_ct_CC="$ac_prog"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4564 fi
4565 done
4566 done
4567 IFS=$as_save_IFS
4568
4569 fi
4570 fi
4571 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4572 if test -n "$ac_ct_CC"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4574 $as_echo "$ac_ct_CC" >&6; }
4575 else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4578 fi
4579
4580
4581 test -n "$ac_ct_CC" && break
4582 done
4583
4584 if test "x$ac_ct_CC" = x; then
4585 CC=""
4586 else
4587 case $cross_compiling:$ac_tool_warned in
4588 yes:)
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4591 ac_tool_warned=yes ;;
4592 esac
4593 CC=$ac_ct_CC
4594 fi
4595 fi
4596
4597 fi
4598
4599
4600 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4602 as_fn_error $? "no acceptable C compiler found in \$PATH
4603 See \`config.log' for more details" "$LINENO" 5; }
4604
4605 # Provide some information about the compiler.
4606 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4607 set X $ac_compile
4608 ac_compiler=$2
4609 for ac_option in --version -v -V -qversion; do
4610 { { ac_try="$ac_compiler $ac_option >&5"
4611 case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614 esac
4615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4616 $as_echo "$ac_try_echo"; } >&5
4617 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4618 ac_status=$?
4619 if test -s conftest.err; then
4620 sed '10a\
4621 ... rest of stderr output deleted ...
4622 10q' conftest.err >conftest.er1
4623 cat conftest.er1 >&5
4624 fi
4625 rm -f conftest.er1 conftest.err
4626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4627 test $ac_status = 0; }
4628 done
4629
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4631 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4632 if ${ac_cv_c_compiler_gnu+:} false; then :
4633 $as_echo_n "(cached) " >&6
4634 else
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4637
4638 int
4639 main ()
4640 {
4641 #ifndef __GNUC__
4642 choke me
4643 #endif
4644
4645 ;
4646 return 0;
4647 }
4648 _ACEOF
4649 if ac_fn_c_try_compile "$LINENO"; then :
4650 ac_compiler_gnu=yes
4651 else
4652 ac_compiler_gnu=no
4653 fi
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4656
4657 fi
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4659 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4660 if test $ac_compiler_gnu = yes; then
4661 GCC=yes
4662 else
4663 GCC=
4664 fi
4665 ac_test_CFLAGS=${CFLAGS+set}
4666 ac_save_CFLAGS=$CFLAGS
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4668 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4669 if ${ac_cv_prog_cc_g+:} false; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 ac_save_c_werror_flag=$ac_c_werror_flag
4673 ac_c_werror_flag=yes
4674 ac_cv_prog_cc_g=no
4675 CFLAGS="-g"
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4678
4679 int
4680 main ()
4681 {
4682
4683 ;
4684 return 0;
4685 }
4686 _ACEOF
4687 if ac_fn_c_try_compile "$LINENO"; then :
4688 ac_cv_prog_cc_g=yes
4689 else
4690 CFLAGS=""
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4693
4694 int
4695 main ()
4696 {
4697
4698 ;
4699 return 0;
4700 }
4701 _ACEOF
4702 if ac_fn_c_try_compile "$LINENO"; then :
4703
4704 else
4705 ac_c_werror_flag=$ac_save_c_werror_flag
4706 CFLAGS="-g"
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709
4710 int
4711 main ()
4712 {
4713
4714 ;
4715 return 0;
4716 }
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"; then :
4719 ac_cv_prog_cc_g=yes
4720 fi
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 fi
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 fi
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 ac_c_werror_flag=$ac_save_c_werror_flag
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4729 $as_echo "$ac_cv_prog_cc_g" >&6; }
4730 if test "$ac_test_CFLAGS" = set; then
4731 CFLAGS=$ac_save_CFLAGS
4732 elif test $ac_cv_prog_cc_g = yes; then
4733 if test "$GCC" = yes; then
4734 CFLAGS="-g -O2"
4735 else
4736 CFLAGS="-g"
4737 fi
4738 else
4739 if test "$GCC" = yes; then
4740 CFLAGS="-O2"
4741 else
4742 CFLAGS=
4743 fi
4744 fi
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4746 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4747 if ${ac_cv_prog_cc_c89+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 ac_cv_prog_cc_c89=no
4751 ac_save_CC=$CC
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754 #include <stdarg.h>
4755 #include <stdio.h>
4756 struct stat;
4757 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4758 struct buf { int x; };
4759 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4760 static char *e (p, i)
4761 char **p;
4762 int i;
4763 {
4764 return p[i];
4765 }
4766 static char *f (char * (*g) (char **, int), char **p, ...)
4767 {
4768 char *s;
4769 va_list v;
4770 va_start (v,p);
4771 s = g (p, va_arg (v,int));
4772 va_end (v);
4773 return s;
4774 }
4775
4776 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4777 function prototypes and stuff, but not '\xHH' hex character constants.
4778 These don't provoke an error unfortunately, instead are silently treated
4779 as 'x'. The following induces an error, until -std is added to get
4780 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4781 array size at least. It's necessary to write '\x00'==0 to get something
4782 that's true only with -std. */
4783 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4784
4785 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4786 inside strings and character constants. */
4787 #define FOO(x) 'x'
4788 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4789
4790 int test (int i, double x);
4791 struct s1 {int (*f) (int a);};
4792 struct s2 {int (*f) (double a);};
4793 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4794 int argc;
4795 char **argv;
4796 int
4797 main ()
4798 {
4799 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4800 ;
4801 return 0;
4802 }
4803 _ACEOF
4804 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4805 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4806 do
4807 CC="$ac_save_CC $ac_arg"
4808 if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_prog_cc_c89=$ac_arg
4810 fi
4811 rm -f core conftest.err conftest.$ac_objext
4812 test "x$ac_cv_prog_cc_c89" != "xno" && break
4813 done
4814 rm -f conftest.$ac_ext
4815 CC=$ac_save_CC
4816
4817 fi
4818 # AC_CACHE_VAL
4819 case "x$ac_cv_prog_cc_c89" in
4820 x)
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4822 $as_echo "none needed" >&6; } ;;
4823 xno)
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4825 $as_echo "unsupported" >&6; } ;;
4826 *)
4827 CC="$CC $ac_cv_prog_cc_c89"
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4829 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4830 esac
4831 if test "x$ac_cv_prog_cc_c89" != xno; then :
4832
4833 fi
4834
4835 ac_ext=c
4836 ac_cpp='$CPP $CPPFLAGS'
4837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4840
4841 ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4847 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4848 if ${am_cv_prog_cc_c_o+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853
4854 int
4855 main ()
4856 {
4857
4858 ;
4859 return 0;
4860 }
4861 _ACEOF
4862 # Make sure it works both with $CC and with simple cc.
4863 # Following AC_PROG_CC_C_O, we do the test twice because some
4864 # compilers refuse to overwrite an existing .o file with -o,
4865 # though they will create one.
4866 am_cv_prog_cc_c_o=yes
4867 for am_i in 1 2; do
4868 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4869 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4870 ac_status=$?
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } \
4873 && test -f conftest2.$ac_objext; then
4874 : OK
4875 else
4876 am_cv_prog_cc_c_o=no
4877 break
4878 fi
4879 done
4880 rm -f core conftest*
4881 unset am_i
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4884 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4885 if test "$am_cv_prog_cc_c_o" != yes; then
4886 # Losing compiler, so override with the script.
4887 # FIXME: It is wrong to rewrite CC.
4888 # But if we don't then we get into trouble of one sort or another.
4889 # A longer-term fix would be to have automake use am__CC in this case,
4890 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4891 CC="$am_aux_dir/compile $CC"
4892 fi
4893 ac_ext=c
4894 ac_cpp='$CPP $CPPFLAGS'
4895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4898
4899
4900 depcc="$CC" am_compiler_list=
4901
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4903 $as_echo_n "checking dependency style of $depcc... " >&6; }
4904 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4908 # We make a subdir and do the tests there. Otherwise we can end up
4909 # making bogus files that we don't know about and never remove. For
4910 # instance it was reported that on HP-UX the gcc test will end up
4911 # making a dummy file named 'D' -- because '-MD' means "put the output
4912 # in D".
4913 rm -rf conftest.dir
4914 mkdir conftest.dir
4915 # Copy depcomp to subdir because otherwise we won't find it if we're
4916 # using a relative directory.
4917 cp "$am_depcomp" conftest.dir
4918 cd conftest.dir
4919 # We will build objects and dependencies in a subdirectory because
4920 # it helps to detect inapplicable dependency modes. For instance
4921 # both Tru64's cc and ICC support -MD to output dependencies as a
4922 # side effect of compilation, but ICC will put the dependencies in
4923 # the current directory while Tru64 will put them in the object
4924 # directory.
4925 mkdir sub
4926
4927 am_cv_CC_dependencies_compiler_type=none
4928 if test "$am_compiler_list" = ""; then
4929 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4930 fi
4931 am__universal=false
4932 case " $depcc " in #(
4933 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4934 esac
4935
4936 for depmode in $am_compiler_list; do
4937 # Setup a source with many dependencies, because some compilers
4938 # like to wrap large dependency lists on column 80 (with \), and
4939 # we should not choose a depcomp mode which is confused by this.
4940 #
4941 # We need to recreate these files for each test, as the compiler may
4942 # overwrite some of them when testing with obscure command lines.
4943 # This happens at least with the AIX C compiler.
4944 : > sub/conftest.c
4945 for i in 1 2 3 4 5 6; do
4946 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4947 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4948 # Solaris 10 /bin/sh.
4949 echo '/* dummy */' > sub/conftst$i.h
4950 done
4951 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4952
4953 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4954 # mode. It turns out that the SunPro C++ compiler does not properly
4955 # handle '-M -o', and we need to detect this. Also, some Intel
4956 # versions had trouble with output in subdirs.
4957 am__obj=sub/conftest.${OBJEXT-o}
4958 am__minus_obj="-o $am__obj"
4959 case $depmode in
4960 gcc)
4961 # This depmode causes a compiler race in universal mode.
4962 test "$am__universal" = false || continue
4963 ;;
4964 nosideeffect)
4965 # After this tag, mechanisms are not by side-effect, so they'll
4966 # only be used when explicitly requested.
4967 if test "x$enable_dependency_tracking" = xyes; then
4968 continue
4969 else
4970 break
4971 fi
4972 ;;
4973 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4974 # This compiler won't grok '-c -o', but also, the minuso test has
4975 # not run yet. These depmodes are late enough in the game, and
4976 # so weak that their functioning should not be impacted.
4977 am__obj=conftest.${OBJEXT-o}
4978 am__minus_obj=
4979 ;;
4980 none) break ;;
4981 esac
4982 if depmode=$depmode \
4983 source=sub/conftest.c object=$am__obj \
4984 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4985 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4986 >/dev/null 2>conftest.err &&
4987 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4988 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4989 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4990 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4991 # icc doesn't choke on unknown options, it will just issue warnings
4992 # or remarks (even with -Werror). So we grep stderr for any message
4993 # that says an option was ignored or not supported.
4994 # When given -MP, icc 7.0 and 7.1 complain thusly:
4995 # icc: Command line warning: ignoring option '-M'; no argument required
4996 # The diagnosis changed in icc 8.0:
4997 # icc: Command line remark: option '-MP' not supported
4998 if (grep 'ignoring option' conftest.err ||
4999 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5000 am_cv_CC_dependencies_compiler_type=$depmode
5001 break
5002 fi
5003 fi
5004 done
5005
5006 cd ..
5007 rm -rf conftest.dir
5008 else
5009 am_cv_CC_dependencies_compiler_type=none
5010 fi
5011
5012 fi
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5014 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5015 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5016
5017 if
5018 test "x$enable_dependency_tracking" != xno \
5019 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5020 am__fastdepCC_TRUE=
5021 am__fastdepCC_FALSE='#'
5022 else
5023 am__fastdepCC_TRUE='#'
5024 am__fastdepCC_FALSE=
5025 fi
5026
5027
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5029 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5030 if ${ac_cv_prog_cc_c99+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 ac_cv_prog_cc_c99=no
5034 ac_save_CC=$CC
5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h. */
5037 #include <stdarg.h>
5038 #include <stdbool.h>
5039 #include <stdlib.h>
5040 #include <wchar.h>
5041 #include <stdio.h>
5042
5043 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5044 #define debug(...) fprintf (stderr, __VA_ARGS__)
5045 #define showlist(...) puts (#__VA_ARGS__)
5046 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5047 static void
5048 test_varargs_macros (void)
5049 {
5050 int x = 1234;
5051 int y = 5678;
5052 debug ("Flag");
5053 debug ("X = %d\n", x);
5054 showlist (The first, second, and third items.);
5055 report (x>y, "x is %d but y is %d", x, y);
5056 }
5057
5058 // Check long long types.
5059 #define BIG64 18446744073709551615ull
5060 #define BIG32 4294967295ul
5061 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5062 #if !BIG_OK
5063 your preprocessor is broken;
5064 #endif
5065 #if BIG_OK
5066 #else
5067 your preprocessor is broken;
5068 #endif
5069 static long long int bignum = -9223372036854775807LL;
5070 static unsigned long long int ubignum = BIG64;
5071
5072 struct incomplete_array
5073 {
5074 int datasize;
5075 double data[];
5076 };
5077
5078 struct named_init {
5079 int number;
5080 const wchar_t *name;
5081 double average;
5082 };
5083
5084 typedef const char *ccp;
5085
5086 static inline int
5087 test_restrict (ccp restrict text)
5088 {
5089 // See if C++-style comments work.
5090 // Iterate through items via the restricted pointer.
5091 // Also check for declarations in for loops.
5092 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5093 continue;
5094 return 0;
5095 }
5096
5097 // Check varargs and va_copy.
5098 static void
5099 test_varargs (const char *format, ...)
5100 {
5101 va_list args;
5102 va_start (args, format);
5103 va_list args_copy;
5104 va_copy (args_copy, args);
5105
5106 const char *str;
5107 int number;
5108 float fnumber;
5109
5110 while (*format)
5111 {
5112 switch (*format++)
5113 {
5114 case 's': // string
5115 str = va_arg (args_copy, const char *);
5116 break;
5117 case 'd': // int
5118 number = va_arg (args_copy, int);
5119 break;
5120 case 'f': // float
5121 fnumber = va_arg (args_copy, double);
5122 break;
5123 default:
5124 break;
5125 }
5126 }
5127 va_end (args_copy);
5128 va_end (args);
5129 }
5130
5131 int
5132 main ()
5133 {
5134
5135 // Check bool.
5136 _Bool success = false;
5137
5138 // Check restrict.
5139 if (test_restrict ("String literal") == 0)
5140 success = true;
5141 char *restrict newvar = "Another string";
5142
5143 // Check varargs.
5144 test_varargs ("s, d' f .", "string", 65, 34.234);
5145 test_varargs_macros ();
5146
5147 // Check flexible array members.
5148 struct incomplete_array *ia =
5149 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5150 ia->datasize = 10;
5151 for (int i = 0; i < ia->datasize; ++i)
5152 ia->data[i] = i * 1.234;
5153
5154 // Check named initializers.
5155 struct named_init ni = {
5156 .number = 34,
5157 .name = L"Test wide string",
5158 .average = 543.34343,
5159 };
5160
5161 ni.number = 58;
5162
5163 int dynamic_array[ni.number];
5164 dynamic_array[ni.number - 1] = 543;
5165
5166 // work around unused variable warnings
5167 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5168 || dynamic_array[ni.number - 1] != 543);
5169
5170 ;
5171 return 0;
5172 }
5173 _ACEOF
5174 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5175 do
5176 CC="$ac_save_CC $ac_arg"
5177 if ac_fn_c_try_compile "$LINENO"; then :
5178 ac_cv_prog_cc_c99=$ac_arg
5179 fi
5180 rm -f core conftest.err conftest.$ac_objext
5181 test "x$ac_cv_prog_cc_c99" != "xno" && break
5182 done
5183 rm -f conftest.$ac_ext
5184 CC=$ac_save_CC
5185
5186 fi
5187 # AC_CACHE_VAL
5188 case "x$ac_cv_prog_cc_c99" in
5189 x)
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5191 $as_echo "none needed" >&6; } ;;
5192 xno)
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5194 $as_echo "unsupported" >&6; } ;;
5195 *)
5196 CC="$CC $ac_cv_prog_cc_c99"
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5198 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5199 esac
5200 if test "x$ac_cv_prog_cc_c99" != xno; then :
5201
5202 fi
5203
5204
5205
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5207 $as_echo_n "checking whether ln -s works... " >&6; }
5208 LN_S=$as_ln_s
5209 if test "$LN_S" = "ln -s"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5211 $as_echo "yes" >&6; }
5212 else
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5214 $as_echo "no, using $LN_S" >&6; }
5215 fi
5216
5217 case `pwd` in
5218 *\ * | *\ *)
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5220 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5221 esac
5222
5223
5224
5225 macro_version='2.4.6'
5226 macro_revision='2.4.6'
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240 ltmain=$ac_aux_dir/ltmain.sh
5241
5242 # Make sure we can run config.sub.
5243 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5244 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5245
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5247 $as_echo_n "checking build system type... " >&6; }
5248 if ${ac_cv_build+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 ac_build_alias=$build_alias
5252 test "x$ac_build_alias" = x &&
5253 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5254 test "x$ac_build_alias" = x &&
5255 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5256 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5257 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5258
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5261 $as_echo "$ac_cv_build" >&6; }
5262 case $ac_cv_build in
5263 *-*-*) ;;
5264 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5265 esac
5266 build=$ac_cv_build
5267 ac_save_IFS=$IFS; IFS='-'
5268 set x $ac_cv_build
5269 shift
5270 build_cpu=$1
5271 build_vendor=$2
5272 shift; shift
5273 # Remember, the first character of IFS is used to create $*,
5274 # except with old shells:
5275 build_os=$*
5276 IFS=$ac_save_IFS
5277 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5278
5279
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5281 $as_echo_n "checking host system type... " >&6; }
5282 if ${ac_cv_host+:} false; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 if test "x$host_alias" = x; then
5286 ac_cv_host=$ac_cv_build
5287 else
5288 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5289 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5290 fi
5291
5292 fi
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5294 $as_echo "$ac_cv_host" >&6; }
5295 case $ac_cv_host in
5296 *-*-*) ;;
5297 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5298 esac
5299 host=$ac_cv_host
5300 ac_save_IFS=$IFS; IFS='-'
5301 set x $ac_cv_host
5302 shift
5303 host_cpu=$1
5304 host_vendor=$2
5305 shift; shift
5306 # Remember, the first character of IFS is used to create $*,
5307 # except with old shells:
5308 host_os=$*
5309 IFS=$ac_save_IFS
5310 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5311
5312
5313 # Backslashify metacharacters that are still active within
5314 # double-quoted strings.
5315 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5316
5317 # Same as above, but do not quote variable references.
5318 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5319
5320 # Sed substitution to delay expansion of an escaped shell variable in a
5321 # double_quote_subst'ed string.
5322 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5323
5324 # Sed substitution to delay expansion of an escaped single quote.
5325 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5326
5327 # Sed substitution to avoid accidental globbing in evaled expressions
5328 no_glob_subst='s/\*/\\\*/g'
5329
5330 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5331 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5332 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5333
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5335 $as_echo_n "checking how to print strings... " >&6; }
5336 # Test print first, because it will be a builtin if present.
5337 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5338 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5339 ECHO='print -r --'
5340 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5341 ECHO='printf %s\n'
5342 else
5343 # Use this function as a fallback that always works.
5344 func_fallback_echo ()
5345 {
5346 eval 'cat <<_LTECHO_EOF
5347 $1
5348 _LTECHO_EOF'
5349 }
5350 ECHO='func_fallback_echo'
5351 fi
5352
5353 # func_echo_all arg...
5354 # Invoke $ECHO with all args, space-separated.
5355 func_echo_all ()
5356 {
5357 $ECHO ""
5358 }
5359
5360 case $ECHO in
5361 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5362 $as_echo "printf" >&6; } ;;
5363 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5364 $as_echo "print -r" >&6; } ;;
5365 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5366 $as_echo "cat" >&6; } ;;
5367 esac
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5383 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5384 if ${ac_cv_path_SED+:} false; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5388 for ac_i in 1 2 3 4 5 6 7; do
5389 ac_script="$ac_script$as_nl$ac_script"
5390 done
5391 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5392 { ac_script=; unset ac_script;}
5393 if test -z "$SED"; then
5394 ac_path_SED_found=false
5395 # Loop through the user's path and test for each of PROGNAME-LIST
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_prog in sed gsed; do
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5404 as_fn_executable_p "$ac_path_SED" || continue
5405 # Check for GNU ac_path_SED and select it if it is found.
5406 # Check for GNU $ac_path_SED
5407 case `"$ac_path_SED" --version 2>&1` in
5408 *GNU*)
5409 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5410 *)
5411 ac_count=0
5412 $as_echo_n 0123456789 >"conftest.in"
5413 while :
5414 do
5415 cat "conftest.in" "conftest.in" >"conftest.tmp"
5416 mv "conftest.tmp" "conftest.in"
5417 cp "conftest.in" "conftest.nl"
5418 $as_echo '' >> "conftest.nl"
5419 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5420 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5421 as_fn_arith $ac_count + 1 && ac_count=$as_val
5422 if test $ac_count -gt ${ac_path_SED_max-0}; then
5423 # Best one so far, save it but keep looking for a better one
5424 ac_cv_path_SED="$ac_path_SED"
5425 ac_path_SED_max=$ac_count
5426 fi
5427 # 10*(2^10) chars as input seems more than enough
5428 test $ac_count -gt 10 && break
5429 done
5430 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5431 esac
5432
5433 $ac_path_SED_found && break 3
5434 done
5435 done
5436 done
5437 IFS=$as_save_IFS
5438 if test -z "$ac_cv_path_SED"; then
5439 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5440 fi
5441 else
5442 ac_cv_path_SED=$SED
5443 fi
5444
5445 fi
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5447 $as_echo "$ac_cv_path_SED" >&6; }
5448 SED="$ac_cv_path_SED"
5449 rm -f conftest.sed
5450
5451 test -z "$SED" && SED=sed
5452 Xsed="$SED -e 1s/^X//"
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5465 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5466 if ${ac_cv_path_GREP+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 if test -z "$GREP"; then
5470 ac_path_GREP_found=false
5471 # Loop through the user's path and test for each of PROGNAME-LIST
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5474 do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_prog in grep ggrep; do
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5480 as_fn_executable_p "$ac_path_GREP" || continue
5481 # Check for GNU ac_path_GREP and select it if it is found.
5482 # Check for GNU $ac_path_GREP
5483 case `"$ac_path_GREP" --version 2>&1` in
5484 *GNU*)
5485 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5486 *)
5487 ac_count=0
5488 $as_echo_n 0123456789 >"conftest.in"
5489 while :
5490 do
5491 cat "conftest.in" "conftest.in" >"conftest.tmp"
5492 mv "conftest.tmp" "conftest.in"
5493 cp "conftest.in" "conftest.nl"
5494 $as_echo 'GREP' >> "conftest.nl"
5495 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5496 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5497 as_fn_arith $ac_count + 1 && ac_count=$as_val
5498 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5499 # Best one so far, save it but keep looking for a better one
5500 ac_cv_path_GREP="$ac_path_GREP"
5501 ac_path_GREP_max=$ac_count
5502 fi
5503 # 10*(2^10) chars as input seems more than enough
5504 test $ac_count -gt 10 && break
5505 done
5506 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5507 esac
5508
5509 $ac_path_GREP_found && break 3
5510 done
5511 done
5512 done
5513 IFS=$as_save_IFS
5514 if test -z "$ac_cv_path_GREP"; then
5515 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5516 fi
5517 else
5518 ac_cv_path_GREP=$GREP
5519 fi
5520
5521 fi
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5523 $as_echo "$ac_cv_path_GREP" >&6; }
5524 GREP="$ac_cv_path_GREP"
5525
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5528 $as_echo_n "checking for egrep... " >&6; }
5529 if ${ac_cv_path_EGREP+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5533 then ac_cv_path_EGREP="$GREP -E"
5534 else
5535 if test -z "$EGREP"; then
5536 ac_path_EGREP_found=false
5537 # Loop through the user's path and test for each of PROGNAME-LIST
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5540 do
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_prog in egrep; do
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5546 as_fn_executable_p "$ac_path_EGREP" || continue
5547 # Check for GNU ac_path_EGREP and select it if it is found.
5548 # Check for GNU $ac_path_EGREP
5549 case `"$ac_path_EGREP" --version 2>&1` in
5550 *GNU*)
5551 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5552 *)
5553 ac_count=0
5554 $as_echo_n 0123456789 >"conftest.in"
5555 while :
5556 do
5557 cat "conftest.in" "conftest.in" >"conftest.tmp"
5558 mv "conftest.tmp" "conftest.in"
5559 cp "conftest.in" "conftest.nl"
5560 $as_echo 'EGREP' >> "conftest.nl"
5561 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5562 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5563 as_fn_arith $ac_count + 1 && ac_count=$as_val
5564 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5565 # Best one so far, save it but keep looking for a better one
5566 ac_cv_path_EGREP="$ac_path_EGREP"
5567 ac_path_EGREP_max=$ac_count
5568 fi
5569 # 10*(2^10) chars as input seems more than enough
5570 test $ac_count -gt 10 && break
5571 done
5572 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5573 esac
5574
5575 $ac_path_EGREP_found && break 3
5576 done
5577 done
5578 done
5579 IFS=$as_save_IFS
5580 if test -z "$ac_cv_path_EGREP"; then
5581 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5582 fi
5583 else
5584 ac_cv_path_EGREP=$EGREP
5585 fi
5586
5587 fi
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5590 $as_echo "$ac_cv_path_EGREP" >&6; }
5591 EGREP="$ac_cv_path_EGREP"
5592
5593
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5595 $as_echo_n "checking for fgrep... " >&6; }
5596 if ${ac_cv_path_FGREP+:} false; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5600 then ac_cv_path_FGREP="$GREP -F"
5601 else
5602 if test -z "$FGREP"; then
5603 ac_path_FGREP_found=false
5604 # Loop through the user's path and test for each of PROGNAME-LIST
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5607 do
5608 IFS=$as_save_IFS
5609 test -z "$as_dir" && as_dir=.
5610 for ac_prog in fgrep; do
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5613 as_fn_executable_p "$ac_path_FGREP" || continue
5614 # Check for GNU ac_path_FGREP and select it if it is found.
5615 # Check for GNU $ac_path_FGREP
5616 case `"$ac_path_FGREP" --version 2>&1` in
5617 *GNU*)
5618 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5619 *)
5620 ac_count=0
5621 $as_echo_n 0123456789 >"conftest.in"
5622 while :
5623 do
5624 cat "conftest.in" "conftest.in" >"conftest.tmp"
5625 mv "conftest.tmp" "conftest.in"
5626 cp "conftest.in" "conftest.nl"
5627 $as_echo 'FGREP' >> "conftest.nl"
5628 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5630 as_fn_arith $ac_count + 1 && ac_count=$as_val
5631 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5632 # Best one so far, save it but keep looking for a better one
5633 ac_cv_path_FGREP="$ac_path_FGREP"
5634 ac_path_FGREP_max=$ac_count
5635 fi
5636 # 10*(2^10) chars as input seems more than enough
5637 test $ac_count -gt 10 && break
5638 done
5639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5640 esac
5641
5642 $ac_path_FGREP_found && break 3
5643 done
5644 done
5645 done
5646 IFS=$as_save_IFS
5647 if test -z "$ac_cv_path_FGREP"; then
5648 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5649 fi
5650 else
5651 ac_cv_path_FGREP=$FGREP
5652 fi
5653
5654 fi
5655 fi
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5657 $as_echo "$ac_cv_path_FGREP" >&6; }
5658 FGREP="$ac_cv_path_FGREP"
5659
5660
5661 test -z "$GREP" && GREP=grep
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681 # Check whether --with-gnu-ld was given.
5682 if test "${with_gnu_ld+set}" = set; then :
5683 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5684 else
5685 with_gnu_ld=no
5686 fi
5687
5688 ac_prog=ld
5689 if test yes = "$GCC"; then
5690 # Check if gcc -print-prog-name=ld gives a path.
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5692 $as_echo_n "checking for ld used by $CC... " >&6; }
5693 case $host in
5694 *-*-mingw*)
5695 # gcc leaves a trailing carriage return, which upsets mingw
5696 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5697 *)
5698 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5699 esac
5700 case $ac_prog in
5701 # Accept absolute paths.
5702 [\\/]* | ?:[\\/]*)
5703 re_direlt='/[^/][^/]*/\.\./'
5704 # Canonicalize the pathname of ld
5705 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5706 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5707 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5708 done
5709 test -z "$LD" && LD=$ac_prog
5710 ;;
5711 "")
5712 # If it fails, then pretend we aren't using GCC.
5713 ac_prog=ld
5714 ;;
5715 *)
5716 # If it is relative, then search for the first ld in PATH.
5717 with_gnu_ld=unknown
5718 ;;
5719 esac
5720 elif test yes = "$with_gnu_ld"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5722 $as_echo_n "checking for GNU ld... " >&6; }
5723 else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5725 $as_echo_n "checking for non-GNU ld... " >&6; }
5726 fi
5727 if ${lt_cv_path_LD+:} false; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 if test -z "$LD"; then
5731 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5732 for ac_dir in $PATH; do
5733 IFS=$lt_save_ifs
5734 test -z "$ac_dir" && ac_dir=.
5735 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5736 lt_cv_path_LD=$ac_dir/$ac_prog
5737 # Check to see if the program is GNU ld. I'd rather use --version,
5738 # but apparently some variants of GNU ld only accept -v.
5739 # Break only if it was the GNU/non-GNU ld that we prefer.
5740 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5741 *GNU* | *'with BFD'*)
5742 test no != "$with_gnu_ld" && break
5743 ;;
5744 *)
5745 test yes != "$with_gnu_ld" && break
5746 ;;
5747 esac
5748 fi
5749 done
5750 IFS=$lt_save_ifs
5751 else
5752 lt_cv_path_LD=$LD # Let the user override the test with a path.
5753 fi
5754 fi
5755
5756 LD=$lt_cv_path_LD
5757 if test -n "$LD"; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5759 $as_echo "$LD" >&6; }
5760 else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 $as_echo "no" >&6; }
5763 fi
5764 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5766 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5767 if ${lt_cv_prog_gnu_ld+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5771 case `$LD -v 2>&1 </dev/null` in
5772 *GNU* | *'with BFD'*)
5773 lt_cv_prog_gnu_ld=yes
5774 ;;
5775 *)
5776 lt_cv_prog_gnu_ld=no
5777 ;;
5778 esac
5779 fi
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5781 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5782 with_gnu_ld=$lt_cv_prog_gnu_ld
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5793 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5794 if ${lt_cv_path_NM+:} false; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 if test -n "$NM"; then
5798 # Let the user override the test.
5799 lt_cv_path_NM=$NM
5800 else
5801 lt_nm_to_check=${ac_tool_prefix}nm
5802 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5803 lt_nm_to_check="$lt_nm_to_check nm"
5804 fi
5805 for lt_tmp_nm in $lt_nm_to_check; do
5806 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5807 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5808 IFS=$lt_save_ifs
5809 test -z "$ac_dir" && ac_dir=.
5810 tmp_nm=$ac_dir/$lt_tmp_nm
5811 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5812 # Check to see if the nm accepts a BSD-compat flag.
5813 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5814 # nm: unknown option "B" ignored
5815 # Tru64's nm complains that /dev/null is an invalid object file
5816 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5817 case $build_os in
5818 mingw*) lt_bad_file=conftest.nm/nofile ;;
5819 *) lt_bad_file=/dev/null ;;
5820 esac
5821 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5822 *$lt_bad_file* | *'Invalid file or object type'*)
5823 lt_cv_path_NM="$tmp_nm -B"
5824 break 2
5825 ;;
5826 *)
5827 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5828 */dev/null*)
5829 lt_cv_path_NM="$tmp_nm -p"
5830 break 2
5831 ;;
5832 *)
5833 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5834 continue # so that we can try to find one that supports BSD flags
5835 ;;
5836 esac
5837 ;;
5838 esac
5839 fi
5840 done
5841 IFS=$lt_save_ifs
5842 done
5843 : ${lt_cv_path_NM=no}
5844 fi
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5847 $as_echo "$lt_cv_path_NM" >&6; }
5848 if test no != "$lt_cv_path_NM"; then
5849 NM=$lt_cv_path_NM
5850 else
5851 # Didn't find any BSD compatible name lister, look for dumpbin.
5852 if test -n "$DUMPBIN"; then :
5853 # Let the user override the test.
5854 else
5855 if test -n "$ac_tool_prefix"; then
5856 for ac_prog in dumpbin "link -dump"
5857 do
5858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5859 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if ${ac_cv_prog_DUMPBIN+:} false; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 if test -n "$DUMPBIN"; then
5866 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 break 2
5878 fi
5879 done
5880 done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 DUMPBIN=$ac_cv_prog_DUMPBIN
5886 if test -n "$DUMPBIN"; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5888 $as_echo "$DUMPBIN" >&6; }
5889 else
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5892 fi
5893
5894
5895 test -n "$DUMPBIN" && break
5896 done
5897 fi
5898 if test -z "$DUMPBIN"; then
5899 ac_ct_DUMPBIN=$DUMPBIN
5900 for ac_prog in dumpbin "link -dump"
5901 do
5902 # Extract the first word of "$ac_prog", so it can be a program name with args.
5903 set dummy $ac_prog; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 if test -n "$ac_ct_DUMPBIN"; then
5910 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927 fi
5928 fi
5929 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5930 if test -n "$ac_ct_DUMPBIN"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5932 $as_echo "$ac_ct_DUMPBIN" >&6; }
5933 else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5936 fi
5937
5938
5939 test -n "$ac_ct_DUMPBIN" && break
5940 done
5941
5942 if test "x$ac_ct_DUMPBIN" = x; then
5943 DUMPBIN=":"
5944 else
5945 case $cross_compiling:$ac_tool_warned in
5946 yes:)
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5949 ac_tool_warned=yes ;;
5950 esac
5951 DUMPBIN=$ac_ct_DUMPBIN
5952 fi
5953 fi
5954
5955 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5956 *COFF*)
5957 DUMPBIN="$DUMPBIN -symbols -headers"
5958 ;;
5959 *)
5960 DUMPBIN=:
5961 ;;
5962 esac
5963 fi
5964
5965 if test : != "$DUMPBIN"; then
5966 NM=$DUMPBIN
5967 fi
5968 fi
5969 test -z "$NM" && NM=nm
5970
5971
5972
5973
5974
5975
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5977 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5978 if ${lt_cv_nm_interface+:} false; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 lt_cv_nm_interface="BSD nm"
5982 echo "int some_variable = 0;" > conftest.$ac_ext
5983 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5984 (eval "$ac_compile" 2>conftest.err)
5985 cat conftest.err >&5
5986 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5987 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5988 cat conftest.err >&5
5989 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5990 cat conftest.out >&5
5991 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5992 lt_cv_nm_interface="MS dumpbin"
5993 fi
5994 rm -f conftest*
5995 fi
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5997 $as_echo "$lt_cv_nm_interface" >&6; }
5998
5999 # find the maximum length of command line arguments
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6001 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6002 if ${lt_cv_sys_max_cmd_len+:} false; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 i=0
6006 teststring=ABCD
6007
6008 case $build_os in
6009 msdosdjgpp*)
6010 # On DJGPP, this test can blow up pretty badly due to problems in libc
6011 # (any single argument exceeding 2000 bytes causes a buffer overrun
6012 # during glob expansion). Even if it were fixed, the result of this
6013 # check would be larger than it should be.
6014 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6015 ;;
6016
6017 gnu*)
6018 # Under GNU Hurd, this test is not required because there is
6019 # no limit to the length of command line arguments.
6020 # Libtool will interpret -1 as no limit whatsoever
6021 lt_cv_sys_max_cmd_len=-1;
6022 ;;
6023
6024 cygwin* | mingw* | cegcc*)
6025 # On Win9x/ME, this test blows up -- it succeeds, but takes
6026 # about 5 minutes as the teststring grows exponentially.
6027 # Worse, since 9x/ME are not pre-emptively multitasking,
6028 # you end up with a "frozen" computer, even though with patience
6029 # the test eventually succeeds (with a max line length of 256k).
6030 # Instead, let's just punt: use the minimum linelength reported by
6031 # all of the supported platforms: 8192 (on NT/2K/XP).
6032 lt_cv_sys_max_cmd_len=8192;
6033 ;;
6034
6035 mint*)
6036 # On MiNT this can take a long time and run out of memory.
6037 lt_cv_sys_max_cmd_len=8192;
6038 ;;
6039
6040 amigaos*)
6041 # On AmigaOS with pdksh, this test takes hours, literally.
6042 # So we just punt and use a minimum line length of 8192.
6043 lt_cv_sys_max_cmd_len=8192;
6044 ;;
6045
6046 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6047 # This has been around since 386BSD, at least. Likely further.
6048 if test -x /sbin/sysctl; then
6049 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6050 elif test -x /usr/sbin/sysctl; then
6051 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6052 else
6053 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6054 fi
6055 # And add a safety zone
6056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6057 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6058 ;;
6059
6060 interix*)
6061 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6062 lt_cv_sys_max_cmd_len=196608
6063 ;;
6064
6065 os2*)
6066 # The test takes a long time on OS/2.
6067 lt_cv_sys_max_cmd_len=8192
6068 ;;
6069
6070 osf*)
6071 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6072 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6073 # nice to cause kernel panics so lets avoid the loop below.
6074 # First set a reasonable default.
6075 lt_cv_sys_max_cmd_len=16384
6076 #
6077 if test -x /sbin/sysconfig; then
6078 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6079 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6080 esac
6081 fi
6082 ;;
6083 sco3.2v5*)
6084 lt_cv_sys_max_cmd_len=102400
6085 ;;
6086 sysv5* | sco5v6* | sysv4.2uw2*)
6087 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6088 if test -n "$kargmax"; then
6089 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6090 else
6091 lt_cv_sys_max_cmd_len=32768
6092 fi
6093 ;;
6094 *)
6095 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6096 if test -n "$lt_cv_sys_max_cmd_len" && \
6097 test undefined != "$lt_cv_sys_max_cmd_len"; then
6098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6099 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6100 else
6101 # Make teststring a little bigger before we do anything with it.
6102 # a 1K string should be a reasonable start.
6103 for i in 1 2 3 4 5 6 7 8; do
6104 teststring=$teststring$teststring
6105 done
6106 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6107 # If test is not a shell built-in, we'll probably end up computing a
6108 # maximum length that is only half of the actual maximum length, but
6109 # we can't tell.
6110 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6111 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6112 test 17 != "$i" # 1/2 MB should be enough
6113 do
6114 i=`expr $i + 1`
6115 teststring=$teststring$teststring
6116 done
6117 # Only check the string length outside the loop.
6118 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6119 teststring=
6120 # Add a significant safety factor because C++ compilers can tack on
6121 # massive amounts of additional arguments before passing them to the
6122 # linker. It appears as though 1/2 is a usable value.
6123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6124 fi
6125 ;;
6126 esac
6127
6128 fi
6129
6130 if test -n "$lt_cv_sys_max_cmd_len"; then
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6132 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6133 else
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6135 $as_echo "none" >&6; }
6136 fi
6137 max_cmd_len=$lt_cv_sys_max_cmd_len
6138
6139
6140
6141
6142
6143
6144 : ${CP="cp -f"}
6145 : ${MV="mv -f"}
6146 : ${RM="rm -f"}
6147
6148 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6149 lt_unset=unset
6150 else
6151 lt_unset=false
6152 fi
6153
6154
6155
6156
6157
6158 # test EBCDIC or ASCII
6159 case `echo X|tr X '\101'` in
6160 A) # ASCII based system
6161 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6162 lt_SP2NL='tr \040 \012'
6163 lt_NL2SP='tr \015\012 \040\040'
6164 ;;
6165 *) # EBCDIC based system
6166 lt_SP2NL='tr \100 \n'
6167 lt_NL2SP='tr \r\n \100\100'
6168 ;;
6169 esac
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6180 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6181 if ${lt_cv_to_host_file_cmd+:} false; then :
6182 $as_echo_n "(cached) " >&6
6183 else
6184 case $host in
6185 *-*-mingw* )
6186 case $build in
6187 *-*-mingw* ) # actually msys
6188 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6189 ;;
6190 *-*-cygwin* )
6191 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6192 ;;
6193 * ) # otherwise, assume *nix
6194 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6195 ;;
6196 esac
6197 ;;
6198 *-*-cygwin* )
6199 case $build in
6200 *-*-mingw* ) # actually msys
6201 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6202 ;;
6203 *-*-cygwin* )
6204 lt_cv_to_host_file_cmd=func_convert_file_noop
6205 ;;
6206 * ) # otherwise, assume *nix
6207 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6208 ;;
6209 esac
6210 ;;
6211 * ) # unhandled hosts (and "normal" native builds)
6212 lt_cv_to_host_file_cmd=func_convert_file_noop
6213 ;;
6214 esac
6215
6216 fi
6217
6218 to_host_file_cmd=$lt_cv_to_host_file_cmd
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6220 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6221
6222
6223
6224
6225
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6227 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6228 if ${lt_cv_to_tool_file_cmd+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230 else
6231 #assume ordinary cross tools, or native build.
6232 lt_cv_to_tool_file_cmd=func_convert_file_noop
6233 case $host in
6234 *-*-mingw* )
6235 case $build in
6236 *-*-mingw* ) # actually msys
6237 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6238 ;;
6239 esac
6240 ;;
6241 esac
6242
6243 fi
6244
6245 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6247 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6248
6249
6250
6251
6252
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6254 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6255 if ${lt_cv_ld_reload_flag+:} false; then :
6256 $as_echo_n "(cached) " >&6
6257 else
6258 lt_cv_ld_reload_flag='-r'
6259 fi
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6261 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6262 reload_flag=$lt_cv_ld_reload_flag
6263 case $reload_flag in
6264 "" | " "*) ;;
6265 *) reload_flag=" $reload_flag" ;;
6266 esac
6267 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6268 case $host_os in
6269 cygwin* | mingw* | pw32* | cegcc*)
6270 if test yes != "$GCC"; then
6271 reload_cmds=false
6272 fi
6273 ;;
6274 darwin*)
6275 if test yes = "$GCC"; then
6276 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6277 else
6278 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6279 fi
6280 ;;
6281 esac
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291 if test -n "$ac_tool_prefix"; then
6292 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6293 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295 $as_echo_n "checking for $ac_word... " >&6; }
6296 if ${ac_cv_prog_OBJDUMP+:} false; then :
6297 $as_echo_n "(cached) " >&6
6298 else
6299 if test -n "$OBJDUMP"; then
6300 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6301 else
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH
6304 do
6305 IFS=$as_save_IFS
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6309 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 break 2
6312 fi
6313 done
6314 done
6315 IFS=$as_save_IFS
6316
6317 fi
6318 fi
6319 OBJDUMP=$ac_cv_prog_OBJDUMP
6320 if test -n "$OBJDUMP"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6322 $as_echo "$OBJDUMP" >&6; }
6323 else
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6326 fi
6327
6328
6329 fi
6330 if test -z "$ac_cv_prog_OBJDUMP"; then
6331 ac_ct_OBJDUMP=$OBJDUMP
6332 # Extract the first word of "objdump", so it can be a program name with args.
6333 set dummy objdump; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6337 $as_echo_n "(cached) " >&6
6338 else
6339 if test -n "$ac_ct_OBJDUMP"; then
6340 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353 done
6354 done
6355 IFS=$as_save_IFS
6356
6357 fi
6358 fi
6359 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6360 if test -n "$ac_ct_OBJDUMP"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6362 $as_echo "$ac_ct_OBJDUMP" >&6; }
6363 else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6366 fi
6367
6368 if test "x$ac_ct_OBJDUMP" = x; then
6369 OBJDUMP="false"
6370 else
6371 case $cross_compiling:$ac_tool_warned in
6372 yes:)
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375 ac_tool_warned=yes ;;
6376 esac
6377 OBJDUMP=$ac_ct_OBJDUMP
6378 fi
6379 else
6380 OBJDUMP="$ac_cv_prog_OBJDUMP"
6381 fi
6382
6383 test -z "$OBJDUMP" && OBJDUMP=objdump
6384
6385
6386
6387
6388
6389
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6391 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6392 if ${lt_cv_deplibs_check_method+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 lt_cv_file_magic_cmd='$MAGIC_CMD'
6396 lt_cv_file_magic_test_file=
6397 lt_cv_deplibs_check_method='unknown'
6398 # Need to set the preceding variable on all platforms that support
6399 # interlibrary dependencies.
6400 # 'none' -- dependencies not supported.
6401 # 'unknown' -- same as none, but documents that we really don't know.
6402 # 'pass_all' -- all dependencies passed with no checks.
6403 # 'test_compile' -- check by making test program.
6404 # 'file_magic [[regex]]' -- check by looking for files in library path
6405 # that responds to the $file_magic_cmd with a given extended regex.
6406 # If you have 'file' or equivalent on your system and you're not sure
6407 # whether 'pass_all' will *always* work, you probably want this one.
6408
6409 case $host_os in
6410 aix[4-9]*)
6411 lt_cv_deplibs_check_method=pass_all
6412 ;;
6413
6414 beos*)
6415 lt_cv_deplibs_check_method=pass_all
6416 ;;
6417
6418 bsdi[45]*)
6419 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6420 lt_cv_file_magic_cmd='/usr/bin/file -L'
6421 lt_cv_file_magic_test_file=/shlib/libc.so
6422 ;;
6423
6424 cygwin*)
6425 # func_win32_libid is a shell function defined in ltmain.sh
6426 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6427 lt_cv_file_magic_cmd='func_win32_libid'
6428 ;;
6429
6430 mingw* | pw32*)
6431 # Base MSYS/MinGW do not provide the 'file' command needed by
6432 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6433 # unless we find 'file', for example because we are cross-compiling.
6434 if ( file / ) >/dev/null 2>&1; then
6435 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6436 lt_cv_file_magic_cmd='func_win32_libid'
6437 else
6438 # Keep this pattern in sync with the one in func_win32_libid.
6439 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6440 lt_cv_file_magic_cmd='$OBJDUMP -f'
6441 fi
6442 ;;
6443
6444 cegcc*)
6445 # use the weaker test based on 'objdump'. See mingw*.
6446 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6447 lt_cv_file_magic_cmd='$OBJDUMP -f'
6448 ;;
6449
6450 darwin* | rhapsody*)
6451 lt_cv_deplibs_check_method=pass_all
6452 ;;
6453
6454 freebsd* | dragonfly*)
6455 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6456 case $host_cpu in
6457 i*86 )
6458 # Not sure whether the presence of OpenBSD here was a mistake.
6459 # Let's accept both of them until this is cleared up.
6460 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6461 lt_cv_file_magic_cmd=/usr/bin/file
6462 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6463 ;;
6464 esac
6465 else
6466 lt_cv_deplibs_check_method=pass_all
6467 fi
6468 ;;
6469
6470 haiku*)
6471 lt_cv_deplibs_check_method=pass_all
6472 ;;
6473
6474 hpux10.20* | hpux11*)
6475 lt_cv_file_magic_cmd=/usr/bin/file
6476 case $host_cpu in
6477 ia64*)
6478 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6479 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6480 ;;
6481 hppa*64*)
6482 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]'
6483 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6484 ;;
6485 *)
6486 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6487 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6488 ;;
6489 esac
6490 ;;
6491
6492 interix[3-9]*)
6493 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6495 ;;
6496
6497 irix5* | irix6* | nonstopux*)
6498 case $LD in
6499 *-32|*"-32 ") libmagic=32-bit;;
6500 *-n32|*"-n32 ") libmagic=N32;;
6501 *-64|*"-64 ") libmagic=64-bit;;
6502 *) libmagic=never-match;;
6503 esac
6504 lt_cv_deplibs_check_method=pass_all
6505 ;;
6506
6507 # This must be glibc/ELF.
6508 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6509 lt_cv_deplibs_check_method=pass_all
6510 ;;
6511
6512 netbsd* | netbsdelf*-gnu)
6513 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6515 else
6516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6517 fi
6518 ;;
6519
6520 newos6*)
6521 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6522 lt_cv_file_magic_cmd=/usr/bin/file
6523 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6524 ;;
6525
6526 *nto* | *qnx*)
6527 lt_cv_deplibs_check_method=pass_all
6528 ;;
6529
6530 openbsd* | bitrig*)
6531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6533 else
6534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6535 fi
6536 ;;
6537
6538 osf3* | osf4* | osf5*)
6539 lt_cv_deplibs_check_method=pass_all
6540 ;;
6541
6542 rdos*)
6543 lt_cv_deplibs_check_method=pass_all
6544 ;;
6545
6546 solaris*)
6547 lt_cv_deplibs_check_method=pass_all
6548 ;;
6549
6550 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6551 lt_cv_deplibs_check_method=pass_all
6552 ;;
6553
6554 sysv4 | sysv4.3*)
6555 case $host_vendor in
6556 motorola)
6557 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]'
6558 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6559 ;;
6560 ncr)
6561 lt_cv_deplibs_check_method=pass_all
6562 ;;
6563 sequent)
6564 lt_cv_file_magic_cmd='/bin/file'
6565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6566 ;;
6567 sni)
6568 lt_cv_file_magic_cmd='/bin/file'
6569 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6570 lt_cv_file_magic_test_file=/lib/libc.so
6571 ;;
6572 siemens)
6573 lt_cv_deplibs_check_method=pass_all
6574 ;;
6575 pc)
6576 lt_cv_deplibs_check_method=pass_all
6577 ;;
6578 esac
6579 ;;
6580
6581 tpf*)
6582 lt_cv_deplibs_check_method=pass_all
6583 ;;
6584 os2*)
6585 lt_cv_deplibs_check_method=pass_all
6586 ;;
6587 esac
6588
6589 fi
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6591 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6592
6593 file_magic_glob=
6594 want_nocaseglob=no
6595 if test "$build" = "$host"; then
6596 case $host_os in
6597 mingw* | pw32*)
6598 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6599 want_nocaseglob=yes
6600 else
6601 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6602 fi
6603 ;;
6604 esac
6605 fi
6606
6607 file_magic_cmd=$lt_cv_file_magic_cmd
6608 deplibs_check_method=$lt_cv_deplibs_check_method
6609 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632 if test -n "$ac_tool_prefix"; then
6633 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_prog_DLLTOOL+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 if test -n "$DLLTOOL"; then
6641 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 DLLTOOL=$ac_cv_prog_DLLTOOL
6661 if test -n "$DLLTOOL"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6663 $as_echo "$DLLTOOL" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668
6669
6670 fi
6671 if test -z "$ac_cv_prog_DLLTOOL"; then
6672 ac_ct_DLLTOOL=$DLLTOOL
6673 # Extract the first word of "dlltool", so it can be a program name with args.
6674 set dummy dlltool; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 if test -n "$ac_ct_DLLTOOL"; then
6681 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6693 fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6701 if test -n "$ac_ct_DLLTOOL"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6703 $as_echo "$ac_ct_DLLTOOL" >&6; }
6704 else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709 if test "x$ac_ct_DLLTOOL" = x; then
6710 DLLTOOL="false"
6711 else
6712 case $cross_compiling:$ac_tool_warned in
6713 yes:)
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716 ac_tool_warned=yes ;;
6717 esac
6718 DLLTOOL=$ac_ct_DLLTOOL
6719 fi
6720 else
6721 DLLTOOL="$ac_cv_prog_DLLTOOL"
6722 fi
6723
6724 test -z "$DLLTOOL" && DLLTOOL=dlltool
6725
6726
6727
6728
6729
6730
6731
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6733 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6734 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 lt_cv_sharedlib_from_linklib_cmd='unknown'
6738
6739 case $host_os in
6740 cygwin* | mingw* | pw32* | cegcc*)
6741 # two different shell functions defined in ltmain.sh;
6742 # decide which one to use based on capabilities of $DLLTOOL
6743 case `$DLLTOOL --help 2>&1` in
6744 *--identify-strict*)
6745 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6746 ;;
6747 *)
6748 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6749 ;;
6750 esac
6751 ;;
6752 *)
6753 # fallback: assume linklib IS sharedlib
6754 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6755 ;;
6756 esac
6757
6758 fi
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6760 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6761 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6762 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6763
6764
6765
6766
6767
6768
6769
6770 if test -n "$ac_tool_prefix"; then
6771 for ac_prog in ar
6772 do
6773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if ${ac_cv_prog_AR+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 if test -n "$AR"; then
6781 ac_cv_prog_AR="$AR" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798 fi
6799 fi
6800 AR=$ac_cv_prog_AR
6801 if test -n "$AR"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6803 $as_echo "$AR" >&6; }
6804 else
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6807 fi
6808
6809
6810 test -n "$AR" && break
6811 done
6812 fi
6813 if test -z "$AR"; then
6814 ac_ct_AR=$AR
6815 for ac_prog in ar
6816 do
6817 # Extract the first word of "$ac_prog", so it can be a program name with args.
6818 set dummy $ac_prog; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 if test -n "$ac_ct_AR"; then
6825 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6834 ac_cv_prog_ac_ct_AR="$ac_prog"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6845 if test -n "$ac_ct_AR"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6847 $as_echo "$ac_ct_AR" >&6; }
6848 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6851 fi
6852
6853
6854 test -n "$ac_ct_AR" && break
6855 done
6856
6857 if test "x$ac_ct_AR" = x; then
6858 AR="false"
6859 else
6860 case $cross_compiling:$ac_tool_warned in
6861 yes:)
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866 AR=$ac_ct_AR
6867 fi
6868 fi
6869
6870 : ${AR=ar}
6871 : ${AR_FLAGS=cru}
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6884 $as_echo_n "checking for archiver @FILE support... " >&6; }
6885 if ${lt_cv_ar_at_file+:} false; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 lt_cv_ar_at_file=no
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891
6892 int
6893 main ()
6894 {
6895
6896 ;
6897 return 0;
6898 }
6899 _ACEOF
6900 if ac_fn_c_try_compile "$LINENO"; then :
6901 echo conftest.$ac_objext > conftest.lst
6902 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6904 (eval $lt_ar_try) 2>&5
6905 ac_status=$?
6906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6907 test $ac_status = 0; }
6908 if test 0 -eq "$ac_status"; then
6909 # Ensure the archiver fails upon bogus file names.
6910 rm -f conftest.$ac_objext libconftest.a
6911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6912 (eval $lt_ar_try) 2>&5
6913 ac_status=$?
6914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6915 test $ac_status = 0; }
6916 if test 0 -ne "$ac_status"; then
6917 lt_cv_ar_at_file=@
6918 fi
6919 fi
6920 rm -f conftest.* libconftest.a
6921
6922 fi
6923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924
6925 fi
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6927 $as_echo "$lt_cv_ar_at_file" >&6; }
6928
6929 if test no = "$lt_cv_ar_at_file"; then
6930 archiver_list_spec=
6931 else
6932 archiver_list_spec=$lt_cv_ar_at_file
6933 fi
6934
6935
6936
6937
6938
6939
6940
6941 if test -n "$ac_tool_prefix"; then
6942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6943 set dummy ${ac_tool_prefix}strip; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if ${ac_cv_prog_STRIP+:} false; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 if test -n "$STRIP"; then
6950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963 done
6964 done
6965 IFS=$as_save_IFS
6966
6967 fi
6968 fi
6969 STRIP=$ac_cv_prog_STRIP
6970 if test -n "$STRIP"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6972 $as_echo "$STRIP" >&6; }
6973 else
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6976 fi
6977
6978
6979 fi
6980 if test -z "$ac_cv_prog_STRIP"; then
6981 ac_ct_STRIP=$STRIP
6982 # Extract the first word of "strip", so it can be a program name with args.
6983 set dummy strip; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 if test -n "$ac_ct_STRIP"; then
6990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_ac_ct_STRIP="strip"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7002 fi
7003 done
7004 done
7005 IFS=$as_save_IFS
7006
7007 fi
7008 fi
7009 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7010 if test -n "$ac_ct_STRIP"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7012 $as_echo "$ac_ct_STRIP" >&6; }
7013 else
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7016 fi
7017
7018 if test "x$ac_ct_STRIP" = x; then
7019 STRIP=":"
7020 else
7021 case $cross_compiling:$ac_tool_warned in
7022 yes:)
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7025 ac_tool_warned=yes ;;
7026 esac
7027 STRIP=$ac_ct_STRIP
7028 fi
7029 else
7030 STRIP="$ac_cv_prog_STRIP"
7031 fi
7032
7033 test -z "$STRIP" && STRIP=:
7034
7035
7036
7037
7038
7039
7040 if test -n "$ac_tool_prefix"; then
7041 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7042 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 $as_echo_n "checking for $ac_word... " >&6; }
7045 if ${ac_cv_prog_RANLIB+:} false; then :
7046 $as_echo_n "(cached) " >&6
7047 else
7048 if test -n "$RANLIB"; then
7049 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7050 else
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7053 do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7058 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7061 fi
7062 done
7063 done
7064 IFS=$as_save_IFS
7065
7066 fi
7067 fi
7068 RANLIB=$ac_cv_prog_RANLIB
7069 if test -n "$RANLIB"; then
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7071 $as_echo "$RANLIB" >&6; }
7072 else
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074 $as_echo "no" >&6; }
7075 fi
7076
7077
7078 fi
7079 if test -z "$ac_cv_prog_RANLIB"; then
7080 ac_ct_RANLIB=$RANLIB
7081 # Extract the first word of "ranlib", so it can be a program name with args.
7082 set dummy ranlib; ac_word=$2
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084 $as_echo_n "checking for $ac_word... " >&6; }
7085 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088 if test -n "$ac_ct_RANLIB"; then
7089 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7090 else
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7098 ac_cv_prog_ac_ct_RANLIB="ranlib"
7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 break 2
7101 fi
7102 done
7103 done
7104 IFS=$as_save_IFS
7105
7106 fi
7107 fi
7108 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7109 if test -n "$ac_ct_RANLIB"; then
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7111 $as_echo "$ac_ct_RANLIB" >&6; }
7112 else
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114 $as_echo "no" >&6; }
7115 fi
7116
7117 if test "x$ac_ct_RANLIB" = x; then
7118 RANLIB=":"
7119 else
7120 case $cross_compiling:$ac_tool_warned in
7121 yes:)
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7124 ac_tool_warned=yes ;;
7125 esac
7126 RANLIB=$ac_ct_RANLIB
7127 fi
7128 else
7129 RANLIB="$ac_cv_prog_RANLIB"
7130 fi
7131
7132 test -z "$RANLIB" && RANLIB=:
7133
7134
7135
7136
7137
7138
7139 # Determine commands to create old-style static archives.
7140 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7141 old_postinstall_cmds='chmod 644 $oldlib'
7142 old_postuninstall_cmds=
7143
7144 if test -n "$RANLIB"; then
7145 case $host_os in
7146 bitrig* | openbsd*)
7147 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7148 ;;
7149 *)
7150 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7151 ;;
7152 esac
7153 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7154 fi
7155
7156 case $host_os in
7157 darwin*)
7158 lock_old_archive_extraction=yes ;;
7159 *)
7160 lock_old_archive_extraction=no ;;
7161 esac
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201 # If no C compiler was specified, use CC.
7202 LTCC=${LTCC-"$CC"}
7203
7204 # If no C compiler flags were specified, use CFLAGS.
7205 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7206
7207 # Allow CC to be a program name with arguments.
7208 compiler=$CC
7209
7210
7211 # Check for command to grab the raw symbol name followed by C symbol from nm.
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7213 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7214 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217
7218 # These are sane defaults that work on at least a few old systems.
7219 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7220
7221 # Character class describing NM global symbol codes.
7222 symcode='[BCDEGRST]'
7223
7224 # Regexp to match symbols that can be accessed directly from C.
7225 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7226
7227 # Define system-specific variables.
7228 case $host_os in
7229 aix*)
7230 symcode='[BCDT]'
7231 ;;
7232 cygwin* | mingw* | pw32* | cegcc*)
7233 symcode='[ABCDGISTW]'
7234 ;;
7235 hpux*)
7236 if test ia64 = "$host_cpu"; then
7237 symcode='[ABCDEGRST]'
7238 fi
7239 ;;
7240 irix* | nonstopux*)
7241 symcode='[BCDEGRST]'
7242 ;;
7243 osf*)
7244 symcode='[BCDEGQRST]'
7245 ;;
7246 solaris*)
7247 symcode='[BDRT]'
7248 ;;
7249 sco3.2v5*)
7250 symcode='[DT]'
7251 ;;
7252 sysv4.2uw2*)
7253 symcode='[DT]'
7254 ;;
7255 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7256 symcode='[ABDT]'
7257 ;;
7258 sysv4)
7259 symcode='[DFNSTU]'
7260 ;;
7261 esac
7262
7263 # If we're using GNU nm, then use its standard symbol codes.
7264 case `$NM -V 2>&1` in
7265 *GNU* | *'with BFD'*)
7266 symcode='[ABCDGIRSTW]' ;;
7267 esac
7268
7269 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7270 # Gets list of data symbols to import.
7271 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7272 # Adjust the below global symbol transforms to fixup imported variables.
7273 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7274 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7275 lt_c_name_lib_hook="\
7276 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7277 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7278 else
7279 # Disable hooks by default.
7280 lt_cv_sys_global_symbol_to_import=
7281 lt_cdecl_hook=
7282 lt_c_name_hook=
7283 lt_c_name_lib_hook=
7284 fi
7285
7286 # Transform an extracted symbol line into a proper C declaration.
7287 # Some systems (esp. on ia64) link data and code symbols differently,
7288 # so use this general approach.
7289 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7290 $lt_cdecl_hook\
7291 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7292 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7293
7294 # Transform an extracted symbol line into symbol name and symbol address
7295 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7296 $lt_c_name_hook\
7297 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7298 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7299
7300 # Transform an extracted symbol line into symbol name with lib prefix and
7301 # symbol address.
7302 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7303 $lt_c_name_lib_hook\
7304 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7305 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7306 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7307
7308 # Handle CRLF in mingw tool chain
7309 opt_cr=
7310 case $build_os in
7311 mingw*)
7312 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7313 ;;
7314 esac
7315
7316 # Try without a prefix underscore, then with it.
7317 for ac_symprfx in "" "_"; do
7318
7319 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7320 symxfrm="\\1 $ac_symprfx\\2 \\2"
7321
7322 # Write the raw and C identifiers.
7323 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7324 # Fake it for dumpbin and say T for any non-static function,
7325 # D for any global variable and I for any imported variable.
7326 # Also find C++ and __fastcall symbols from MSVC++,
7327 # which start with @ or ?.
7328 lt_cv_sys_global_symbol_pipe="$AWK '"\
7329 " {last_section=section; section=\$ 3};"\
7330 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7331 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7332 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7333 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7334 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7335 " \$ 0!~/External *\|/{next};"\
7336 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7337 " {if(hide[section]) next};"\
7338 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7339 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7340 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7341 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7342 " ' prfx=^$ac_symprfx"
7343 else
7344 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7345 fi
7346 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7347
7348 # Check to see that the pipe works correctly.
7349 pipe_works=no
7350
7351 rm -f conftest*
7352 cat > conftest.$ac_ext <<_LT_EOF
7353 #ifdef __cplusplus
7354 extern "C" {
7355 #endif
7356 char nm_test_var;
7357 void nm_test_func(void);
7358 void nm_test_func(void){}
7359 #ifdef __cplusplus
7360 }
7361 #endif
7362 int main(){nm_test_var='a';nm_test_func();return(0);}
7363 _LT_EOF
7364
7365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7366 (eval $ac_compile) 2>&5
7367 ac_status=$?
7368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7369 test $ac_status = 0; }; then
7370 # Now try to grab the symbols.
7371 nlist=conftest.nm
7372 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7373 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7374 # Try sorting and uniquifying the output.
7375 if sort "$nlist" | uniq > "$nlist"T; then
7376 mv -f "$nlist"T "$nlist"
7377 else
7378 rm -f "$nlist"T
7379 fi
7380
7381 # Make sure that we snagged all the symbols we need.
7382 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7383 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7384 cat <<_LT_EOF > conftest.$ac_ext
7385 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7386 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7387 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7388 relocations are performed -- see ld's documentation on pseudo-relocs. */
7389 # define LT_DLSYM_CONST
7390 #elif defined __osf__
7391 /* This system does not cope well with relocations in const data. */
7392 # define LT_DLSYM_CONST
7393 #else
7394 # define LT_DLSYM_CONST const
7395 #endif
7396
7397 #ifdef __cplusplus
7398 extern "C" {
7399 #endif
7400
7401 _LT_EOF
7402 # Now generate the symbol file.
7403 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7404
7405 cat <<_LT_EOF >> conftest.$ac_ext
7406
7407 /* The mapping between symbol names and symbols. */
7408 LT_DLSYM_CONST struct {
7409 const char *name;
7410 void *address;
7411 }
7412 lt__PROGRAM__LTX_preloaded_symbols[] =
7413 {
7414 { "@PROGRAM@", (void *) 0 },
7415 _LT_EOF
7416 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7417 cat <<\_LT_EOF >> conftest.$ac_ext
7418 {0, (void *) 0}
7419 };
7420
7421 /* This works around a problem in FreeBSD linker */
7422 #ifdef FREEBSD_WORKAROUND
7423 static const void *lt_preloaded_setup() {
7424 return lt__PROGRAM__LTX_preloaded_symbols;
7425 }
7426 #endif
7427
7428 #ifdef __cplusplus
7429 }
7430 #endif
7431 _LT_EOF
7432 # Now try linking the two files.
7433 mv conftest.$ac_objext conftstm.$ac_objext
7434 lt_globsym_save_LIBS=$LIBS
7435 lt_globsym_save_CFLAGS=$CFLAGS
7436 LIBS=conftstm.$ac_objext
7437 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7439 (eval $ac_link) 2>&5
7440 ac_status=$?
7441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7442 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7443 pipe_works=yes
7444 fi
7445 LIBS=$lt_globsym_save_LIBS
7446 CFLAGS=$lt_globsym_save_CFLAGS
7447 else
7448 echo "cannot find nm_test_func in $nlist" >&5
7449 fi
7450 else
7451 echo "cannot find nm_test_var in $nlist" >&5
7452 fi
7453 else
7454 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7455 fi
7456 else
7457 echo "$progname: failed program was:" >&5
7458 cat conftest.$ac_ext >&5
7459 fi
7460 rm -rf conftest* conftst*
7461
7462 # Do not use the global_symbol_pipe unless it works.
7463 if test yes = "$pipe_works"; then
7464 break
7465 else
7466 lt_cv_sys_global_symbol_pipe=
7467 fi
7468 done
7469
7470 fi
7471
7472 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7473 lt_cv_sys_global_symbol_to_cdecl=
7474 fi
7475 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7477 $as_echo "failed" >&6; }
7478 else
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7480 $as_echo "ok" >&6; }
7481 fi
7482
7483 # Response file support.
7484 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7485 nm_file_list_spec='@'
7486 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7487 nm_file_list_spec='@'
7488 fi
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7527 $as_echo_n "checking for sysroot... " >&6; }
7528
7529 # Check whether --with-sysroot was given.
7530 if test "${with_sysroot+set}" = set; then :
7531 withval=$with_sysroot;
7532 else
7533 with_sysroot=no
7534 fi
7535
7536
7537 lt_sysroot=
7538 case $with_sysroot in #(
7539 yes)
7540 if test yes = "$GCC"; then
7541 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7542 fi
7543 ;; #(
7544 /*)
7545 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7546 ;; #(
7547 no|'')
7548 ;; #(
7549 *)
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7551 $as_echo "$with_sysroot" >&6; }
7552 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7553 ;;
7554 esac
7555
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7557 $as_echo "${lt_sysroot:-no}" >&6; }
7558
7559
7560
7561
7562
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7564 $as_echo_n "checking for a working dd... " >&6; }
7565 if ${ac_cv_path_lt_DD+:} false; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 printf 0123456789abcdef0123456789abcdef >conftest.i
7569 cat conftest.i conftest.i >conftest2.i
7570 : ${lt_DD:=$DD}
7571 if test -z "$lt_DD"; then
7572 ac_path_lt_DD_found=false
7573 # Loop through the user's path and test for each of PROGNAME-LIST
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH
7576 do
7577 IFS=$as_save_IFS
7578 test -z "$as_dir" && as_dir=.
7579 for ac_prog in dd; do
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7582 as_fn_executable_p "$ac_path_lt_DD" || continue
7583 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7584 cmp -s conftest.i conftest.out \
7585 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7586 fi
7587 $ac_path_lt_DD_found && break 3
7588 done
7589 done
7590 done
7591 IFS=$as_save_IFS
7592 if test -z "$ac_cv_path_lt_DD"; then
7593 :
7594 fi
7595 else
7596 ac_cv_path_lt_DD=$lt_DD
7597 fi
7598
7599 rm -f conftest.i conftest2.i conftest.out
7600 fi
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7602 $as_echo "$ac_cv_path_lt_DD" >&6; }
7603
7604
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7606 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7607 if ${lt_cv_truncate_bin+:} false; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7610 printf 0123456789abcdef0123456789abcdef >conftest.i
7611 cat conftest.i conftest.i >conftest2.i
7612 lt_cv_truncate_bin=
7613 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7614 cmp -s conftest.i conftest.out \
7615 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7616 fi
7617 rm -f conftest.i conftest2.i conftest.out
7618 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7619 fi
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7621 $as_echo "$lt_cv_truncate_bin" >&6; }
7622
7623
7624
7625
7626
7627
7628
7629 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7630 func_cc_basename ()
7631 {
7632 for cc_temp in $*""; do
7633 case $cc_temp in
7634 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7635 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7636 \-*) ;;
7637 *) break;;
7638 esac
7639 done
7640 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7641 }
7642
7643 # Check whether --enable-libtool-lock was given.
7644 if test "${enable_libtool_lock+set}" = set; then :
7645 enableval=$enable_libtool_lock;
7646 fi
7647
7648 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7649
7650 # Some flags need to be propagated to the compiler or linker for good
7651 # libtool support.
7652 case $host in
7653 ia64-*-hpux*)
7654 # Find out what ABI is being produced by ac_compile, and set mode
7655 # options accordingly.
7656 echo 'int i;' > conftest.$ac_ext
7657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7658 (eval $ac_compile) 2>&5
7659 ac_status=$?
7660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7661 test $ac_status = 0; }; then
7662 case `/usr/bin/file conftest.$ac_objext` in
7663 *ELF-32*)
7664 HPUX_IA64_MODE=32
7665 ;;
7666 *ELF-64*)
7667 HPUX_IA64_MODE=64
7668 ;;
7669 esac
7670 fi
7671 rm -rf conftest*
7672 ;;
7673 *-*-irix6*)
7674 # Find out what ABI is being produced by ac_compile, and set linker
7675 # options accordingly.
7676 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7678 (eval $ac_compile) 2>&5
7679 ac_status=$?
7680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7681 test $ac_status = 0; }; then
7682 if test yes = "$lt_cv_prog_gnu_ld"; then
7683 case `/usr/bin/file conftest.$ac_objext` in
7684 *32-bit*)
7685 LD="${LD-ld} -melf32bsmip"
7686 ;;
7687 *N32*)
7688 LD="${LD-ld} -melf32bmipn32"
7689 ;;
7690 *64-bit*)
7691 LD="${LD-ld} -melf64bmip"
7692 ;;
7693 esac
7694 else
7695 case `/usr/bin/file conftest.$ac_objext` in
7696 *32-bit*)
7697 LD="${LD-ld} -32"
7698 ;;
7699 *N32*)
7700 LD="${LD-ld} -n32"
7701 ;;
7702 *64-bit*)
7703 LD="${LD-ld} -64"
7704 ;;
7705 esac
7706 fi
7707 fi
7708 rm -rf conftest*
7709 ;;
7710
7711 mips64*-*linux*)
7712 # Find out what ABI is being produced by ac_compile, and set linker
7713 # options accordingly.
7714 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7716 (eval $ac_compile) 2>&5
7717 ac_status=$?
7718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7719 test $ac_status = 0; }; then
7720 emul=elf
7721 case `/usr/bin/file conftest.$ac_objext` in
7722 *32-bit*)
7723 emul="${emul}32"
7724 ;;
7725 *64-bit*)
7726 emul="${emul}64"
7727 ;;
7728 esac
7729 case `/usr/bin/file conftest.$ac_objext` in
7730 *MSB*)
7731 emul="${emul}btsmip"
7732 ;;
7733 *LSB*)
7734 emul="${emul}ltsmip"
7735 ;;
7736 esac
7737 case `/usr/bin/file conftest.$ac_objext` in
7738 *N32*)
7739 emul="${emul}n32"
7740 ;;
7741 esac
7742 LD="${LD-ld} -m $emul"
7743 fi
7744 rm -rf conftest*
7745 ;;
7746
7747 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7748 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7749 # Find out what ABI is being produced by ac_compile, and set linker
7750 # options accordingly. Note that the listed cases only cover the
7751 # situations where additional linker options are needed (such as when
7752 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7753 # vice versa); the common cases where no linker options are needed do
7754 # not appear in the list.
7755 echo 'int i;' > conftest.$ac_ext
7756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7757 (eval $ac_compile) 2>&5
7758 ac_status=$?
7759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7760 test $ac_status = 0; }; then
7761 case `/usr/bin/file conftest.o` in
7762 *32-bit*)
7763 case $host in
7764 x86_64-*kfreebsd*-gnu)
7765 LD="${LD-ld} -m elf_i386_fbsd"
7766 ;;
7767 x86_64-*linux*)
7768 case `/usr/bin/file conftest.o` in
7769 *x86-64*)
7770 LD="${LD-ld} -m elf32_x86_64"
7771 ;;
7772 *)
7773 LD="${LD-ld} -m elf_i386"
7774 ;;
7775 esac
7776 ;;
7777 powerpc64le-*linux*)
7778 LD="${LD-ld} -m elf32lppclinux"
7779 ;;
7780 powerpc64-*linux*)
7781 LD="${LD-ld} -m elf32ppclinux"
7782 ;;
7783 s390x-*linux*)
7784 LD="${LD-ld} -m elf_s390"
7785 ;;
7786 sparc64-*linux*)
7787 LD="${LD-ld} -m elf32_sparc"
7788 ;;
7789 esac
7790 ;;
7791 *64-bit*)
7792 case $host in
7793 x86_64-*kfreebsd*-gnu)
7794 LD="${LD-ld} -m elf_x86_64_fbsd"
7795 ;;
7796 x86_64-*linux*)
7797 LD="${LD-ld} -m elf_x86_64"
7798 ;;
7799 powerpcle-*linux*)
7800 LD="${LD-ld} -m elf64lppc"
7801 ;;
7802 powerpc-*linux*)
7803 LD="${LD-ld} -m elf64ppc"
7804 ;;
7805 s390*-*linux*|s390*-*tpf*)
7806 LD="${LD-ld} -m elf64_s390"
7807 ;;
7808 sparc*-*linux*)
7809 LD="${LD-ld} -m elf64_sparc"
7810 ;;
7811 esac
7812 ;;
7813 esac
7814 fi
7815 rm -rf conftest*
7816 ;;
7817
7818 *-*-sco3.2v5*)
7819 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7820 SAVE_CFLAGS=$CFLAGS
7821 CFLAGS="$CFLAGS -belf"
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7823 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7824 if ${lt_cv_cc_needs_belf+:} false; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 ac_ext=c
7828 ac_cpp='$CPP $CPPFLAGS'
7829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7832
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835
7836 int
7837 main ()
7838 {
7839
7840 ;
7841 return 0;
7842 }
7843 _ACEOF
7844 if ac_fn_c_try_link "$LINENO"; then :
7845 lt_cv_cc_needs_belf=yes
7846 else
7847 lt_cv_cc_needs_belf=no
7848 fi
7849 rm -f core conftest.err conftest.$ac_objext \
7850 conftest$ac_exeext conftest.$ac_ext
7851 ac_ext=c
7852 ac_cpp='$CPP $CPPFLAGS'
7853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7856
7857 fi
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7859 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7860 if test yes != "$lt_cv_cc_needs_belf"; then
7861 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7862 CFLAGS=$SAVE_CFLAGS
7863 fi
7864 ;;
7865 *-*solaris*)
7866 # Find out what ABI is being produced by ac_compile, and set linker
7867 # options accordingly.
7868 echo 'int i;' > conftest.$ac_ext
7869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7870 (eval $ac_compile) 2>&5
7871 ac_status=$?
7872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873 test $ac_status = 0; }; then
7874 case `/usr/bin/file conftest.o` in
7875 *64-bit*)
7876 case $lt_cv_prog_gnu_ld in
7877 yes*)
7878 case $host in
7879 i?86-*-solaris*|x86_64-*-solaris*)
7880 LD="${LD-ld} -m elf_x86_64"
7881 ;;
7882 sparc*-*-solaris*)
7883 LD="${LD-ld} -m elf64_sparc"
7884 ;;
7885 esac
7886 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7887 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7888 LD=${LD-ld}_sol2
7889 fi
7890 ;;
7891 *)
7892 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7893 LD="${LD-ld} -64"
7894 fi
7895 ;;
7896 esac
7897 ;;
7898 esac
7899 fi
7900 rm -rf conftest*
7901 ;;
7902 esac
7903
7904 need_locks=$enable_libtool_lock
7905
7906 if test -n "$ac_tool_prefix"; then
7907 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7908 set dummy ${ac_tool_prefix}mt; ac_word=$2
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7910 $as_echo_n "checking for $ac_word... " >&6; }
7911 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 if test -n "$MANIFEST_TOOL"; then
7915 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7916 else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7919 do
7920 IFS=$as_save_IFS
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
7923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7924 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7926 break 2
7927 fi
7928 done
7929 done
7930 IFS=$as_save_IFS
7931
7932 fi
7933 fi
7934 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7935 if test -n "$MANIFEST_TOOL"; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7937 $as_echo "$MANIFEST_TOOL" >&6; }
7938 else
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940 $as_echo "no" >&6; }
7941 fi
7942
7943
7944 fi
7945 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7946 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7947 # Extract the first word of "mt", so it can be a program name with args.
7948 set dummy mt; ac_word=$2
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7950 $as_echo_n "checking for $ac_word... " >&6; }
7951 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7952 $as_echo_n "(cached) " >&6
7953 else
7954 if test -n "$ac_ct_MANIFEST_TOOL"; then
7955 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7956 else
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7959 do
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7964 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 break 2
7967 fi
7968 done
7969 done
7970 IFS=$as_save_IFS
7971
7972 fi
7973 fi
7974 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7975 if test -n "$ac_ct_MANIFEST_TOOL"; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7977 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7978 else
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980 $as_echo "no" >&6; }
7981 fi
7982
7983 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7984 MANIFEST_TOOL=":"
7985 else
7986 case $cross_compiling:$ac_tool_warned in
7987 yes:)
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7990 ac_tool_warned=yes ;;
7991 esac
7992 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7993 fi
7994 else
7995 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7996 fi
7997
7998 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8000 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8001 if ${lt_cv_path_mainfest_tool+:} false; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004 lt_cv_path_mainfest_tool=no
8005 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8006 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8007 cat conftest.err >&5
8008 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8009 lt_cv_path_mainfest_tool=yes
8010 fi
8011 rm -f conftest*
8012 fi
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8014 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8015 if test yes != "$lt_cv_path_mainfest_tool"; then
8016 MANIFEST_TOOL=:
8017 fi
8018
8019
8020
8021
8022
8023
8024 case $host_os in
8025 rhapsody* | darwin*)
8026 if test -n "$ac_tool_prefix"; then
8027 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8028 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030 $as_echo_n "checking for $ac_word... " >&6; }
8031 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 if test -n "$DSYMUTIL"; then
8035 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8036 else
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 for as_dir in $PATH
8039 do
8040 IFS=$as_save_IFS
8041 test -z "$as_dir" && as_dir=.
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8044 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 break 2
8047 fi
8048 done
8049 done
8050 IFS=$as_save_IFS
8051
8052 fi
8053 fi
8054 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8055 if test -n "$DSYMUTIL"; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8057 $as_echo "$DSYMUTIL" >&6; }
8058 else
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }
8061 fi
8062
8063
8064 fi
8065 if test -z "$ac_cv_prog_DSYMUTIL"; then
8066 ac_ct_DSYMUTIL=$DSYMUTIL
8067 # Extract the first word of "dsymutil", so it can be a program name with args.
8068 set dummy dsymutil; ac_word=$2
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070 $as_echo_n "checking for $ac_word... " >&6; }
8071 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 if test -n "$ac_ct_DSYMUTIL"; then
8075 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8079 do
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8084 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 break 2
8087 fi
8088 done
8089 done
8090 IFS=$as_save_IFS
8091
8092 fi
8093 fi
8094 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8095 if test -n "$ac_ct_DSYMUTIL"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8097 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8098 else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8101 fi
8102
8103 if test "x$ac_ct_DSYMUTIL" = x; then
8104 DSYMUTIL=":"
8105 else
8106 case $cross_compiling:$ac_tool_warned in
8107 yes:)
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8110 ac_tool_warned=yes ;;
8111 esac
8112 DSYMUTIL=$ac_ct_DSYMUTIL
8113 fi
8114 else
8115 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8116 fi
8117
8118 if test -n "$ac_tool_prefix"; then
8119 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8120 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if ${ac_cv_prog_NMEDIT+:} false; then :
8124 $as_echo_n "(cached) " >&6
8125 else
8126 if test -n "$NMEDIT"; then
8127 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8131 do
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8136 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 break 2
8139 fi
8140 done
8141 done
8142 IFS=$as_save_IFS
8143
8144 fi
8145 fi
8146 NMEDIT=$ac_cv_prog_NMEDIT
8147 if test -n "$NMEDIT"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8149 $as_echo "$NMEDIT" >&6; }
8150 else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8153 fi
8154
8155
8156 fi
8157 if test -z "$ac_cv_prog_NMEDIT"; then
8158 ac_ct_NMEDIT=$NMEDIT
8159 # Extract the first word of "nmedit", so it can be a program name with args.
8160 set dummy nmedit; ac_word=$2
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162 $as_echo_n "checking for $ac_word... " >&6; }
8163 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 if test -n "$ac_ct_NMEDIT"; then
8167 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8168 else
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8171 do
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8176 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 break 2
8179 fi
8180 done
8181 done
8182 IFS=$as_save_IFS
8183
8184 fi
8185 fi
8186 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8187 if test -n "$ac_ct_NMEDIT"; then
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8189 $as_echo "$ac_ct_NMEDIT" >&6; }
8190 else
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8193 fi
8194
8195 if test "x$ac_ct_NMEDIT" = x; then
8196 NMEDIT=":"
8197 else
8198 case $cross_compiling:$ac_tool_warned in
8199 yes:)
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8202 ac_tool_warned=yes ;;
8203 esac
8204 NMEDIT=$ac_ct_NMEDIT
8205 fi
8206 else
8207 NMEDIT="$ac_cv_prog_NMEDIT"
8208 fi
8209
8210 if test -n "$ac_tool_prefix"; then
8211 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8212 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if ${ac_cv_prog_LIPO+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 if test -n "$LIPO"; then
8219 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8223 do
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8228 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 break 2
8231 fi
8232 done
8233 done
8234 IFS=$as_save_IFS
8235
8236 fi
8237 fi
8238 LIPO=$ac_cv_prog_LIPO
8239 if test -n "$LIPO"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8241 $as_echo "$LIPO" >&6; }
8242 else
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8245 fi
8246
8247
8248 fi
8249 if test -z "$ac_cv_prog_LIPO"; then
8250 ac_ct_LIPO=$LIPO
8251 # Extract the first word of "lipo", so it can be a program name with args.
8252 set dummy lipo; ac_word=$2
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8254 $as_echo_n "checking for $ac_word... " >&6; }
8255 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8256 $as_echo_n "(cached) " >&6
8257 else
8258 if test -n "$ac_ct_LIPO"; then
8259 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8260 else
8261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262 for as_dir in $PATH
8263 do
8264 IFS=$as_save_IFS
8265 test -z "$as_dir" && as_dir=.
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8268 ac_cv_prog_ac_ct_LIPO="lipo"
8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8270 break 2
8271 fi
8272 done
8273 done
8274 IFS=$as_save_IFS
8275
8276 fi
8277 fi
8278 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8279 if test -n "$ac_ct_LIPO"; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8281 $as_echo "$ac_ct_LIPO" >&6; }
8282 else
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8285 fi
8286
8287 if test "x$ac_ct_LIPO" = x; then
8288 LIPO=":"
8289 else
8290 case $cross_compiling:$ac_tool_warned in
8291 yes:)
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8294 ac_tool_warned=yes ;;
8295 esac
8296 LIPO=$ac_ct_LIPO
8297 fi
8298 else
8299 LIPO="$ac_cv_prog_LIPO"
8300 fi
8301
8302 if test -n "$ac_tool_prefix"; then
8303 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8304 set dummy ${ac_tool_prefix}otool; ac_word=$2
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306 $as_echo_n "checking for $ac_word... " >&6; }
8307 if ${ac_cv_prog_OTOOL+:} false; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 if test -n "$OTOOL"; then
8311 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8312 else
8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 for as_dir in $PATH
8315 do
8316 IFS=$as_save_IFS
8317 test -z "$as_dir" && as_dir=.
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8320 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 break 2
8323 fi
8324 done
8325 done
8326 IFS=$as_save_IFS
8327
8328 fi
8329 fi
8330 OTOOL=$ac_cv_prog_OTOOL
8331 if test -n "$OTOOL"; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8333 $as_echo "$OTOOL" >&6; }
8334 else
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8337 fi
8338
8339
8340 fi
8341 if test -z "$ac_cv_prog_OTOOL"; then
8342 ac_ct_OTOOL=$OTOOL
8343 # Extract the first word of "otool", so it can be a program name with args.
8344 set dummy otool; ac_word=$2
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 $as_echo_n "checking for $ac_word... " >&6; }
8347 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 if test -n "$ac_ct_OTOOL"; then
8351 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8352 else
8353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354 for as_dir in $PATH
8355 do
8356 IFS=$as_save_IFS
8357 test -z "$as_dir" && as_dir=.
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8360 ac_cv_prog_ac_ct_OTOOL="otool"
8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362 break 2
8363 fi
8364 done
8365 done
8366 IFS=$as_save_IFS
8367
8368 fi
8369 fi
8370 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8371 if test -n "$ac_ct_OTOOL"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8373 $as_echo "$ac_ct_OTOOL" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8377 fi
8378
8379 if test "x$ac_ct_OTOOL" = x; then
8380 OTOOL=":"
8381 else
8382 case $cross_compiling:$ac_tool_warned in
8383 yes:)
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8386 ac_tool_warned=yes ;;
8387 esac
8388 OTOOL=$ac_ct_OTOOL
8389 fi
8390 else
8391 OTOOL="$ac_cv_prog_OTOOL"
8392 fi
8393
8394 if test -n "$ac_tool_prefix"; then
8395 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8396 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 $as_echo_n "checking for $ac_word... " >&6; }
8399 if ${ac_cv_prog_OTOOL64+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 if test -n "$OTOOL64"; then
8403 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8404 else
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 for as_dir in $PATH
8407 do
8408 IFS=$as_save_IFS
8409 test -z "$as_dir" && as_dir=.
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8412 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414 break 2
8415 fi
8416 done
8417 done
8418 IFS=$as_save_IFS
8419
8420 fi
8421 fi
8422 OTOOL64=$ac_cv_prog_OTOOL64
8423 if test -n "$OTOOL64"; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8425 $as_echo "$OTOOL64" >&6; }
8426 else
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8429 fi
8430
8431
8432 fi
8433 if test -z "$ac_cv_prog_OTOOL64"; then
8434 ac_ct_OTOOL64=$OTOOL64
8435 # Extract the first word of "otool64", so it can be a program name with args.
8436 set dummy otool64; ac_word=$2
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 $as_echo_n "checking for $ac_word... " >&6; }
8439 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8440 $as_echo_n "(cached) " >&6
8441 else
8442 if test -n "$ac_ct_OTOOL64"; then
8443 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8444 else
8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 for as_dir in $PATH
8447 do
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8452 ac_cv_prog_ac_ct_OTOOL64="otool64"
8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 break 2
8455 fi
8456 done
8457 done
8458 IFS=$as_save_IFS
8459
8460 fi
8461 fi
8462 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8463 if test -n "$ac_ct_OTOOL64"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8465 $as_echo "$ac_ct_OTOOL64" >&6; }
8466 else
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8469 fi
8470
8471 if test "x$ac_ct_OTOOL64" = x; then
8472 OTOOL64=":"
8473 else
8474 case $cross_compiling:$ac_tool_warned in
8475 yes:)
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8478 ac_tool_warned=yes ;;
8479 esac
8480 OTOOL64=$ac_ct_OTOOL64
8481 fi
8482 else
8483 OTOOL64="$ac_cv_prog_OTOOL64"
8484 fi
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8513 $as_echo_n "checking for -single_module linker flag... " >&6; }
8514 if ${lt_cv_apple_cc_single_mod+:} false; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 lt_cv_apple_cc_single_mod=no
8518 if test -z "$LT_MULTI_MODULE"; then
8519 # By default we will add the -single_module flag. You can override
8520 # by either setting the environment variable LT_MULTI_MODULE
8521 # non-empty at configure time, or by adding -multi_module to the
8522 # link flags.
8523 rm -rf libconftest.dylib*
8524 echo "int foo(void){return 1;}" > conftest.c
8525 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8526 -dynamiclib -Wl,-single_module conftest.c" >&5
8527 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8528 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8529 _lt_result=$?
8530 # If there is a non-empty error log, and "single_module"
8531 # appears in it, assume the flag caused a linker warning
8532 if test -s conftest.err && $GREP single_module conftest.err; then
8533 cat conftest.err >&5
8534 # Otherwise, if the output was created with a 0 exit code from
8535 # the compiler, it worked.
8536 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8537 lt_cv_apple_cc_single_mod=yes
8538 else
8539 cat conftest.err >&5
8540 fi
8541 rm -rf libconftest.dylib*
8542 rm -f conftest.*
8543 fi
8544 fi
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8546 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8547
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8549 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8550 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8551 $as_echo_n "(cached) " >&6
8552 else
8553 lt_cv_ld_exported_symbols_list=no
8554 save_LDFLAGS=$LDFLAGS
8555 echo "_main" > conftest.sym
8556 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559
8560 int
8561 main ()
8562 {
8563
8564 ;
8565 return 0;
8566 }
8567 _ACEOF
8568 if ac_fn_c_try_link "$LINENO"; then :
8569 lt_cv_ld_exported_symbols_list=yes
8570 else
8571 lt_cv_ld_exported_symbols_list=no
8572 fi
8573 rm -f core conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575 LDFLAGS=$save_LDFLAGS
8576
8577 fi
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8579 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8580
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8582 $as_echo_n "checking for -force_load linker flag... " >&6; }
8583 if ${lt_cv_ld_force_load+:} false; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 lt_cv_ld_force_load=no
8587 cat > conftest.c << _LT_EOF
8588 int forced_loaded() { return 2;}
8589 _LT_EOF
8590 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8591 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8592 echo "$AR cru libconftest.a conftest.o" >&5
8593 $AR cru libconftest.a conftest.o 2>&5
8594 echo "$RANLIB libconftest.a" >&5
8595 $RANLIB libconftest.a 2>&5
8596 cat > conftest.c << _LT_EOF
8597 int main() { return 0;}
8598 _LT_EOF
8599 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8600 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8601 _lt_result=$?
8602 if test -s conftest.err && $GREP force_load conftest.err; then
8603 cat conftest.err >&5
8604 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8605 lt_cv_ld_force_load=yes
8606 else
8607 cat conftest.err >&5
8608 fi
8609 rm -f conftest.err libconftest.a conftest conftest.c
8610 rm -rf conftest.dSYM
8611
8612 fi
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8614 $as_echo "$lt_cv_ld_force_load" >&6; }
8615 case $host_os in
8616 rhapsody* | darwin1.[012])
8617 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8618 darwin1.*)
8619 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8620 darwin*) # darwin 5.x on
8621 # if running on 10.5 or later, the deployment target defaults
8622 # to the OS version, if on x86, and 10.4, the deployment
8623 # target defaults to 10.4. Don't you love it?
8624 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8625 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8626 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8627 10.[012][,.]*)
8628 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8629 10.*)
8630 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8631 esac
8632 ;;
8633 esac
8634 if test yes = "$lt_cv_apple_cc_single_mod"; then
8635 _lt_dar_single_mod='$single_module'
8636 fi
8637 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8638 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8639 else
8640 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8641 fi
8642 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8643 _lt_dsymutil='~$DSYMUTIL $lib || :'
8644 else
8645 _lt_dsymutil=
8646 fi
8647 ;;
8648 esac
8649
8650 # func_munge_path_list VARIABLE PATH
8651 # -----------------------------------
8652 # VARIABLE is name of variable containing _space_ separated list of
8653 # directories to be munged by the contents of PATH, which is string
8654 # having a format:
8655 # "DIR[:DIR]:"
8656 # string "DIR[ DIR]" will be prepended to VARIABLE
8657 # ":DIR[:DIR]"
8658 # string "DIR[ DIR]" will be appended to VARIABLE
8659 # "DIRP[:DIRP]::[DIRA:]DIRA"
8660 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8661 # "DIRA[ DIRA]" will be appended to VARIABLE
8662 # "DIR[:DIR]"
8663 # VARIABLE will be replaced by "DIR[ DIR]"
8664 func_munge_path_list ()
8665 {
8666 case x$2 in
8667 x)
8668 ;;
8669 *:)
8670 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8671 ;;
8672 x:*)
8673 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8674 ;;
8675 *::*)
8676 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8677 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8678 ;;
8679 *)
8680 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8681 ;;
8682 esac
8683 }
8684
8685 ac_ext=c
8686 ac_cpp='$CPP $CPPFLAGS'
8687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8691 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8692 # On Suns, sometimes $CPP names a directory.
8693 if test -n "$CPP" && test -d "$CPP"; then
8694 CPP=
8695 fi
8696 if test -z "$CPP"; then
8697 if ${ac_cv_prog_CPP+:} false; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 # Double quotes because CPP needs to be expanded
8701 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8702 do
8703 ac_preproc_ok=false
8704 for ac_c_preproc_warn_flag in '' yes
8705 do
8706 # Use a header file that comes with gcc, so configuring glibc
8707 # with a fresh cross-compiler works.
8708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8709 # <limits.h> exists even on freestanding compilers.
8710 # On the NeXT, cc -E runs the code through the compiler's parser,
8711 # not just through cpp. "Syntax error" is here to catch this case.
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 #ifdef __STDC__
8715 # include <limits.h>
8716 #else
8717 # include <assert.h>
8718 #endif
8719 Syntax error
8720 _ACEOF
8721 if ac_fn_c_try_cpp "$LINENO"; then :
8722
8723 else
8724 # Broken: fails on valid input.
8725 continue
8726 fi
8727 rm -f conftest.err conftest.i conftest.$ac_ext
8728
8729 # OK, works on sane cases. Now check whether nonexistent headers
8730 # can be detected and how.
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 #include <ac_nonexistent.h>
8734 _ACEOF
8735 if ac_fn_c_try_cpp "$LINENO"; then :
8736 # Broken: success on invalid input.
8737 continue
8738 else
8739 # Passes both tests.
8740 ac_preproc_ok=:
8741 break
8742 fi
8743 rm -f conftest.err conftest.i conftest.$ac_ext
8744
8745 done
8746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8747 rm -f conftest.i conftest.err conftest.$ac_ext
8748 if $ac_preproc_ok; then :
8749 break
8750 fi
8751
8752 done
8753 ac_cv_prog_CPP=$CPP
8754
8755 fi
8756 CPP=$ac_cv_prog_CPP
8757 else
8758 ac_cv_prog_CPP=$CPP
8759 fi
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8761 $as_echo "$CPP" >&6; }
8762 ac_preproc_ok=false
8763 for ac_c_preproc_warn_flag in '' yes
8764 do
8765 # Use a header file that comes with gcc, so configuring glibc
8766 # with a fresh cross-compiler works.
8767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8768 # <limits.h> exists even on freestanding compilers.
8769 # On the NeXT, cc -E runs the code through the compiler's parser,
8770 # not just through cpp. "Syntax error" is here to catch this case.
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8773 #ifdef __STDC__
8774 # include <limits.h>
8775 #else
8776 # include <assert.h>
8777 #endif
8778 Syntax error
8779 _ACEOF
8780 if ac_fn_c_try_cpp "$LINENO"; then :
8781
8782 else
8783 # Broken: fails on valid input.
8784 continue
8785 fi
8786 rm -f conftest.err conftest.i conftest.$ac_ext
8787
8788 # OK, works on sane cases. Now check whether nonexistent headers
8789 # can be detected and how.
8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8792 #include <ac_nonexistent.h>
8793 _ACEOF
8794 if ac_fn_c_try_cpp "$LINENO"; then :
8795 # Broken: success on invalid input.
8796 continue
8797 else
8798 # Passes both tests.
8799 ac_preproc_ok=:
8800 break
8801 fi
8802 rm -f conftest.err conftest.i conftest.$ac_ext
8803
8804 done
8805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8806 rm -f conftest.i conftest.err conftest.$ac_ext
8807 if $ac_preproc_ok; then :
8808
8809 else
8810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8812 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8813 See \`config.log' for more details" "$LINENO" 5; }
8814 fi
8815
8816 ac_ext=c
8817 ac_cpp='$CPP $CPPFLAGS'
8818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8821
8822
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8824 $as_echo_n "checking for ANSI C header files... " >&6; }
8825 if ${ac_cv_header_stdc+:} false; then :
8826 $as_echo_n "(cached) " >&6
8827 else
8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829 /* end confdefs.h. */
8830 #include <stdlib.h>
8831 #include <stdarg.h>
8832 #include <string.h>
8833 #include <float.h>
8834
8835 int
8836 main ()
8837 {
8838
8839 ;
8840 return 0;
8841 }
8842 _ACEOF
8843 if ac_fn_c_try_compile "$LINENO"; then :
8844 ac_cv_header_stdc=yes
8845 else
8846 ac_cv_header_stdc=no
8847 fi
8848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8849
8850 if test $ac_cv_header_stdc = yes; then
8851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 #include <string.h>
8855
8856 _ACEOF
8857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8858 $EGREP "memchr" >/dev/null 2>&1; then :
8859
8860 else
8861 ac_cv_header_stdc=no
8862 fi
8863 rm -f conftest*
8864
8865 fi
8866
8867 if test $ac_cv_header_stdc = yes; then
8868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8871 #include <stdlib.h>
8872
8873 _ACEOF
8874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8875 $EGREP "free" >/dev/null 2>&1; then :
8876
8877 else
8878 ac_cv_header_stdc=no
8879 fi
8880 rm -f conftest*
8881
8882 fi
8883
8884 if test $ac_cv_header_stdc = yes; then
8885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8886 if test "$cross_compiling" = yes; then :
8887 :
8888 else
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8891 #include <ctype.h>
8892 #include <stdlib.h>
8893 #if ((' ' & 0x0FF) == 0x020)
8894 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8895 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8896 #else
8897 # define ISLOWER(c) \
8898 (('a' <= (c) && (c) <= 'i') \
8899 || ('j' <= (c) && (c) <= 'r') \
8900 || ('s' <= (c) && (c) <= 'z'))
8901 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8902 #endif
8903
8904 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8905 int
8906 main ()
8907 {
8908 int i;
8909 for (i = 0; i < 256; i++)
8910 if (XOR (islower (i), ISLOWER (i))
8911 || toupper (i) != TOUPPER (i))
8912 return 2;
8913 return 0;
8914 }
8915 _ACEOF
8916 if ac_fn_c_try_run "$LINENO"; then :
8917
8918 else
8919 ac_cv_header_stdc=no
8920 fi
8921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8922 conftest.$ac_objext conftest.beam conftest.$ac_ext
8923 fi
8924
8925 fi
8926 fi
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8928 $as_echo "$ac_cv_header_stdc" >&6; }
8929 if test $ac_cv_header_stdc = yes; then
8930
8931 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8932
8933 fi
8934
8935 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8936 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8937 inttypes.h stdint.h unistd.h
8938 do :
8939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8940 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8941 "
8942 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8943 cat >>confdefs.h <<_ACEOF
8944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8945 _ACEOF
8946
8947 fi
8948
8949 done
8950
8951
8952 for ac_header in dlfcn.h
8953 do :
8954 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8955 "
8956 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8957 cat >>confdefs.h <<_ACEOF
8958 #define HAVE_DLFCN_H 1
8959 _ACEOF
8960
8961 fi
8962
8963 done
8964
8965
8966
8967
8968
8969 # Set options
8970 enable_win32_dll=yes
8971
8972 case $host in
8973 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8974 if test -n "$ac_tool_prefix"; then
8975 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8976 set dummy ${ac_tool_prefix}as; ac_word=$2
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978 $as_echo_n "checking for $ac_word... " >&6; }
8979 if ${ac_cv_prog_AS+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 if test -n "$AS"; then
8983 ac_cv_prog_AS="$AS" # Let the user override the test.
8984 else
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986 for as_dir in $PATH
8987 do
8988 IFS=$as_save_IFS
8989 test -z "$as_dir" && as_dir=.
8990 for ac_exec_ext in '' $ac_executable_extensions; do
8991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8992 ac_cv_prog_AS="${ac_tool_prefix}as"
8993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8994 break 2
8995 fi
8996 done
8997 done
8998 IFS=$as_save_IFS
8999
9000 fi
9001 fi
9002 AS=$ac_cv_prog_AS
9003 if test -n "$AS"; then
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9005 $as_echo "$AS" >&6; }
9006 else
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9008 $as_echo "no" >&6; }
9009 fi
9010
9011
9012 fi
9013 if test -z "$ac_cv_prog_AS"; then
9014 ac_ct_AS=$AS
9015 # Extract the first word of "as", so it can be a program name with args.
9016 set dummy as; ac_word=$2
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9018 $as_echo_n "checking for $ac_word... " >&6; }
9019 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 if test -n "$ac_ct_AS"; then
9023 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9024 else
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 for as_dir in $PATH
9027 do
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9032 ac_cv_prog_ac_ct_AS="as"
9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9035 fi
9036 done
9037 done
9038 IFS=$as_save_IFS
9039
9040 fi
9041 fi
9042 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9043 if test -n "$ac_ct_AS"; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9045 $as_echo "$ac_ct_AS" >&6; }
9046 else
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; }
9049 fi
9050
9051 if test "x$ac_ct_AS" = x; then
9052 AS="false"
9053 else
9054 case $cross_compiling:$ac_tool_warned in
9055 yes:)
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9058 ac_tool_warned=yes ;;
9059 esac
9060 AS=$ac_ct_AS
9061 fi
9062 else
9063 AS="$ac_cv_prog_AS"
9064 fi
9065
9066 if test -n "$ac_tool_prefix"; then
9067 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9068 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if ${ac_cv_prog_DLLTOOL+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 if test -n "$DLLTOOL"; then
9075 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9076 else
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078 for as_dir in $PATH
9079 do
9080 IFS=$as_save_IFS
9081 test -z "$as_dir" && as_dir=.
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9084 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9086 break 2
9087 fi
9088 done
9089 done
9090 IFS=$as_save_IFS
9091
9092 fi
9093 fi
9094 DLLTOOL=$ac_cv_prog_DLLTOOL
9095 if test -n "$DLLTOOL"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9097 $as_echo "$DLLTOOL" >&6; }
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9101 fi
9102
9103
9104 fi
9105 if test -z "$ac_cv_prog_DLLTOOL"; then
9106 ac_ct_DLLTOOL=$DLLTOOL
9107 # Extract the first word of "dlltool", so it can be a program name with args.
9108 set dummy dlltool; ac_word=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 if test -n "$ac_ct_DLLTOOL"; then
9115 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9116 else
9117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9118 for as_dir in $PATH
9119 do
9120 IFS=$as_save_IFS
9121 test -z "$as_dir" && as_dir=.
9122 for ac_exec_ext in '' $ac_executable_extensions; do
9123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9124 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9126 break 2
9127 fi
9128 done
9129 done
9130 IFS=$as_save_IFS
9131
9132 fi
9133 fi
9134 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9135 if test -n "$ac_ct_DLLTOOL"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9137 $as_echo "$ac_ct_DLLTOOL" >&6; }
9138 else
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9141 fi
9142
9143 if test "x$ac_ct_DLLTOOL" = x; then
9144 DLLTOOL="false"
9145 else
9146 case $cross_compiling:$ac_tool_warned in
9147 yes:)
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9150 ac_tool_warned=yes ;;
9151 esac
9152 DLLTOOL=$ac_ct_DLLTOOL
9153 fi
9154 else
9155 DLLTOOL="$ac_cv_prog_DLLTOOL"
9156 fi
9157
9158 if test -n "$ac_tool_prefix"; then
9159 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9160 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9162 $as_echo_n "checking for $ac_word... " >&6; }
9163 if ${ac_cv_prog_OBJDUMP+:} false; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 if test -n "$OBJDUMP"; then
9167 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9168 else
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 for as_dir in $PATH
9171 do
9172 IFS=$as_save_IFS
9173 test -z "$as_dir" && as_dir=.
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9176 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9178 break 2
9179 fi
9180 done
9181 done
9182 IFS=$as_save_IFS
9183
9184 fi
9185 fi
9186 OBJDUMP=$ac_cv_prog_OBJDUMP
9187 if test -n "$OBJDUMP"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9189 $as_echo "$OBJDUMP" >&6; }
9190 else
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 $as_echo "no" >&6; }
9193 fi
9194
9195
9196 fi
9197 if test -z "$ac_cv_prog_OBJDUMP"; then
9198 ac_ct_OBJDUMP=$OBJDUMP
9199 # Extract the first word of "objdump", so it can be a program name with args.
9200 set dummy objdump; ac_word=$2
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9202 $as_echo_n "checking for $ac_word... " >&6; }
9203 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206 if test -n "$ac_ct_OBJDUMP"; then
9207 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9208 else
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 for as_dir in $PATH
9211 do
9212 IFS=$as_save_IFS
9213 test -z "$as_dir" && as_dir=.
9214 for ac_exec_ext in '' $ac_executable_extensions; do
9215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9216 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9218 break 2
9219 fi
9220 done
9221 done
9222 IFS=$as_save_IFS
9223
9224 fi
9225 fi
9226 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9227 if test -n "$ac_ct_OBJDUMP"; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9229 $as_echo "$ac_ct_OBJDUMP" >&6; }
9230 else
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9232 $as_echo "no" >&6; }
9233 fi
9234
9235 if test "x$ac_ct_OBJDUMP" = x; then
9236 OBJDUMP="false"
9237 else
9238 case $cross_compiling:$ac_tool_warned in
9239 yes:)
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9242 ac_tool_warned=yes ;;
9243 esac
9244 OBJDUMP=$ac_ct_OBJDUMP
9245 fi
9246 else
9247 OBJDUMP="$ac_cv_prog_OBJDUMP"
9248 fi
9249
9250 ;;
9251 esac
9252
9253 test -z "$AS" && AS=as
9254
9255
9256
9257
9258
9259 test -z "$DLLTOOL" && DLLTOOL=dlltool
9260
9261
9262
9263
9264
9265 test -z "$OBJDUMP" && OBJDUMP=objdump
9266
9267
9268
9269
9270
9271
9272
9273 enable_dlopen=no
9274
9275
9276
9277 # Check whether --enable-shared was given.
9278 if test "${enable_shared+set}" = set; then :
9279 enableval=$enable_shared; p=${PACKAGE-default}
9280 case $enableval in
9281 yes) enable_shared=yes ;;
9282 no) enable_shared=no ;;
9283 *)
9284 enable_shared=no
9285 # Look at the argument we got. We use all the common list separators.
9286 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9287 for pkg in $enableval; do
9288 IFS=$lt_save_ifs
9289 if test "X$pkg" = "X$p"; then
9290 enable_shared=yes
9291 fi
9292 done
9293 IFS=$lt_save_ifs
9294 ;;
9295 esac
9296 else
9297 enable_shared=yes
9298 fi
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308 # Check whether --enable-static was given.
9309 if test "${enable_static+set}" = set; then :
9310 enableval=$enable_static; p=${PACKAGE-default}
9311 case $enableval in
9312 yes) enable_static=yes ;;
9313 no) enable_static=no ;;
9314 *)
9315 enable_static=no
9316 # Look at the argument we got. We use all the common list separators.
9317 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9318 for pkg in $enableval; do
9319 IFS=$lt_save_ifs
9320 if test "X$pkg" = "X$p"; then
9321 enable_static=yes
9322 fi
9323 done
9324 IFS=$lt_save_ifs
9325 ;;
9326 esac
9327 else
9328 enable_static=yes
9329 fi
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340 # Check whether --with-pic was given.
9341 if test "${with_pic+set}" = set; then :
9342 withval=$with_pic; lt_p=${PACKAGE-default}
9343 case $withval in
9344 yes|no) pic_mode=$withval ;;
9345 *)
9346 pic_mode=default
9347 # Look at the argument we got. We use all the common list separators.
9348 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9349 for lt_pkg in $withval; do
9350 IFS=$lt_save_ifs
9351 if test "X$lt_pkg" = "X$lt_p"; then
9352 pic_mode=yes
9353 fi
9354 done
9355 IFS=$lt_save_ifs
9356 ;;
9357 esac
9358 else
9359 pic_mode=default
9360 fi
9361
9362
9363
9364
9365
9366
9367
9368
9369 # Check whether --enable-fast-install was given.
9370 if test "${enable_fast_install+set}" = set; then :
9371 enableval=$enable_fast_install; p=${PACKAGE-default}
9372 case $enableval in
9373 yes) enable_fast_install=yes ;;
9374 no) enable_fast_install=no ;;
9375 *)
9376 enable_fast_install=no
9377 # Look at the argument we got. We use all the common list separators.
9378 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9379 for pkg in $enableval; do
9380 IFS=$lt_save_ifs
9381 if test "X$pkg" = "X$p"; then
9382 enable_fast_install=yes
9383 fi
9384 done
9385 IFS=$lt_save_ifs
9386 ;;
9387 esac
9388 else
9389 enable_fast_install=yes
9390 fi
9391
9392
9393
9394
9395
9396
9397
9398
9399 shared_archive_member_spec=
9400 case $host,$enable_shared in
9401 power*-*-aix[5-9]*,yes)
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9403 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9404
9405 # Check whether --with-aix-soname was given.
9406 if test "${with_aix_soname+set}" = set; then :
9407 withval=$with_aix_soname; case $withval in
9408 aix|svr4|both)
9409 ;;
9410 *)
9411 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9412 ;;
9413 esac
9414 lt_cv_with_aix_soname=$with_aix_soname
9415 else
9416 if ${lt_cv_with_aix_soname+:} false; then :
9417 $as_echo_n "(cached) " >&6
9418 else
9419 lt_cv_with_aix_soname=aix
9420 fi
9421
9422 with_aix_soname=$lt_cv_with_aix_soname
9423 fi
9424
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9426 $as_echo "$with_aix_soname" >&6; }
9427 if test aix != "$with_aix_soname"; then
9428 # For the AIX way of multilib, we name the shared archive member
9429 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9430 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9431 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9432 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9433 if test 64 = "${OBJECT_MODE-32}"; then
9434 shared_archive_member_spec=shr_64
9435 else
9436 shared_archive_member_spec=shr
9437 fi
9438 fi
9439 ;;
9440 *)
9441 with_aix_soname=aix
9442 ;;
9443 esac
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454 # This can be used to rebuild libtool when needed
9455 LIBTOOL_DEPS=$ltmain
9456
9457 # Always use our own libtool.
9458 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489 test -z "$LN_S" && LN_S="ln -s"
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504 if test -n "${ZSH_VERSION+set}"; then
9505 setopt NO_GLOB_SUBST
9506 fi
9507
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9509 $as_echo_n "checking for objdir... " >&6; }
9510 if ${lt_cv_objdir+:} false; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 rm -f .libs 2>/dev/null
9514 mkdir .libs 2>/dev/null
9515 if test -d .libs; then
9516 lt_cv_objdir=.libs
9517 else
9518 # MS-DOS does not allow filenames that begin with a dot.
9519 lt_cv_objdir=_libs
9520 fi
9521 rmdir .libs 2>/dev/null
9522 fi
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9524 $as_echo "$lt_cv_objdir" >&6; }
9525 objdir=$lt_cv_objdir
9526
9527
9528
9529
9530
9531 cat >>confdefs.h <<_ACEOF
9532 #define LT_OBJDIR "$lt_cv_objdir/"
9533 _ACEOF
9534
9535
9536
9537
9538 case $host_os in
9539 aix3*)
9540 # AIX sometimes has problems with the GCC collect2 program. For some
9541 # reason, if we set the COLLECT_NAMES environment variable, the problems
9542 # vanish in a puff of smoke.
9543 if test set != "${COLLECT_NAMES+set}"; then
9544 COLLECT_NAMES=
9545 export COLLECT_NAMES
9546 fi
9547 ;;
9548 esac
9549
9550 # Global variables:
9551 ofile=libtool
9552 can_build_shared=yes
9553
9554 # All known linkers require a '.a' archive for static linking (except MSVC,
9555 # which needs '.lib').
9556 libext=a
9557
9558 with_gnu_ld=$lt_cv_prog_gnu_ld
9559
9560 old_CC=$CC
9561 old_CFLAGS=$CFLAGS
9562
9563 # Set sane defaults for various variables
9564 test -z "$CC" && CC=cc
9565 test -z "$LTCC" && LTCC=$CC
9566 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9567 test -z "$LD" && LD=ld
9568 test -z "$ac_objext" && ac_objext=o
9569
9570 func_cc_basename $compiler
9571 cc_basename=$func_cc_basename_result
9572
9573
9574 # Only perform the check for file, if the check method requires it
9575 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9576 case $deplibs_check_method in
9577 file_magic*)
9578 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9580 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9581 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584 case $MAGIC_CMD in
9585 [\\/*] | ?:[\\/]*)
9586 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9587 ;;
9588 *)
9589 lt_save_MAGIC_CMD=$MAGIC_CMD
9590 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9591 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9592 for ac_dir in $ac_dummy; do
9593 IFS=$lt_save_ifs
9594 test -z "$ac_dir" && ac_dir=.
9595 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9596 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9597 if test -n "$file_magic_test_file"; then
9598 case $deplibs_check_method in
9599 "file_magic "*)
9600 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9601 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9602 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9603 $EGREP "$file_magic_regex" > /dev/null; then
9604 :
9605 else
9606 cat <<_LT_EOF 1>&2
9607
9608 *** Warning: the command libtool uses to detect shared libraries,
9609 *** $file_magic_cmd, produces output that libtool cannot recognize.
9610 *** The result is that libtool may fail to recognize shared libraries
9611 *** as such. This will affect the creation of libtool libraries that
9612 *** depend on shared libraries, but programs linked with such libtool
9613 *** libraries will work regardless of this problem. Nevertheless, you
9614 *** may want to report the problem to your system manager and/or to
9615 *** [email protected]
9616
9617 _LT_EOF
9618 fi ;;
9619 esac
9620 fi
9621 break
9622 fi
9623 done
9624 IFS=$lt_save_ifs
9625 MAGIC_CMD=$lt_save_MAGIC_CMD
9626 ;;
9627 esac
9628 fi
9629
9630 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9631 if test -n "$MAGIC_CMD"; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9633 $as_echo "$MAGIC_CMD" >&6; }
9634 else
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636 $as_echo "no" >&6; }
9637 fi
9638
9639
9640
9641
9642
9643 if test -z "$lt_cv_path_MAGIC_CMD"; then
9644 if test -n "$ac_tool_prefix"; then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9646 $as_echo_n "checking for file... " >&6; }
9647 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 case $MAGIC_CMD in
9651 [\\/*] | ?:[\\/]*)
9652 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9653 ;;
9654 *)
9655 lt_save_MAGIC_CMD=$MAGIC_CMD
9656 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9657 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9658 for ac_dir in $ac_dummy; do
9659 IFS=$lt_save_ifs
9660 test -z "$ac_dir" && ac_dir=.
9661 if test -f "$ac_dir/file"; then
9662 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9663 if test -n "$file_magic_test_file"; then
9664 case $deplibs_check_method in
9665 "file_magic "*)
9666 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9667 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9668 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9669 $EGREP "$file_magic_regex" > /dev/null; then
9670 :
9671 else
9672 cat <<_LT_EOF 1>&2
9673
9674 *** Warning: the command libtool uses to detect shared libraries,
9675 *** $file_magic_cmd, produces output that libtool cannot recognize.
9676 *** The result is that libtool may fail to recognize shared libraries
9677 *** as such. This will affect the creation of libtool libraries that
9678 *** depend on shared libraries, but programs linked with such libtool
9679 *** libraries will work regardless of this problem. Nevertheless, you
9680 *** may want to report the problem to your system manager and/or to
9681 *** [email protected]
9682
9683 _LT_EOF
9684 fi ;;
9685 esac
9686 fi
9687 break
9688 fi
9689 done
9690 IFS=$lt_save_ifs
9691 MAGIC_CMD=$lt_save_MAGIC_CMD
9692 ;;
9693 esac
9694 fi
9695
9696 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9697 if test -n "$MAGIC_CMD"; then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9699 $as_echo "$MAGIC_CMD" >&6; }
9700 else
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9702 $as_echo "no" >&6; }
9703 fi
9704
9705
9706 else
9707 MAGIC_CMD=:
9708 fi
9709 fi
9710
9711 fi
9712 ;;
9713 esac
9714
9715 # Use C for the default configuration in the libtool script
9716
9717 lt_save_CC=$CC
9718 ac_ext=c
9719 ac_cpp='$CPP $CPPFLAGS'
9720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9723
9724
9725 # Source file extension for C test sources.
9726 ac_ext=c
9727
9728 # Object file extension for compiled C test sources.
9729 objext=o
9730 objext=$objext
9731
9732 # Code to be used in simple compile tests
9733 lt_simple_compile_test_code="int some_variable = 0;"
9734
9735 # Code to be used in simple link tests
9736 lt_simple_link_test_code='int main(){return(0);}'
9737
9738
9739
9740
9741
9742
9743
9744 # If no C compiler was specified, use CC.
9745 LTCC=${LTCC-"$CC"}
9746
9747 # If no C compiler flags were specified, use CFLAGS.
9748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9749
9750 # Allow CC to be a program name with arguments.
9751 compiler=$CC
9752
9753 # Save the default compiler, since it gets overwritten when the other
9754 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9755 compiler_DEFAULT=$CC
9756
9757 # save warnings/boilerplate of simple test code
9758 ac_outfile=conftest.$ac_objext
9759 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9760 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9761 _lt_compiler_boilerplate=`cat conftest.err`
9762 $RM conftest*
9763
9764 ac_outfile=conftest.$ac_objext
9765 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9766 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9767 _lt_linker_boilerplate=`cat conftest.err`
9768 $RM -r conftest*
9769
9770
9771 ## CAVEAT EMPTOR:
9772 ## There is no encapsulation within the following macros, do not change
9773 ## the running order or otherwise move them around unless you know exactly
9774 ## what you are doing...
9775 if test -n "$compiler"; then
9776
9777 lt_prog_compiler_no_builtin_flag=
9778
9779 if test yes = "$GCC"; then
9780 case $cc_basename in
9781 nvcc*)
9782 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9783 *)
9784 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9785 esac
9786
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9788 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9789 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 lt_cv_prog_compiler_rtti_exceptions=no
9793 ac_outfile=conftest.$ac_objext
9794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9795 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9796 # Insert the option either (1) after the last *FLAGS variable, or
9797 # (2) before a word containing "conftest.", or (3) at the end.
9798 # Note that $ac_compile itself does not contain backslashes and begins
9799 # with a dollar sign (not a hyphen), so the echo should work correctly.
9800 # The option is referenced via a variable to avoid confusing sed.
9801 lt_compile=`echo "$ac_compile" | $SED \
9802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9804 -e 's:$: $lt_compiler_flag:'`
9805 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9806 (eval "$lt_compile" 2>conftest.err)
9807 ac_status=$?
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 if (exit $ac_status) && test -s "$ac_outfile"; then
9811 # The compiler can only warn and ignore the option if not recognized
9812 # So say no if there are warnings other than the usual output.
9813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9816 lt_cv_prog_compiler_rtti_exceptions=yes
9817 fi
9818 fi
9819 $RM conftest*
9820
9821 fi
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9823 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9824
9825 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9826 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9827 else
9828 :
9829 fi
9830
9831 fi
9832
9833
9834
9835
9836
9837
9838 lt_prog_compiler_wl=
9839 lt_prog_compiler_pic=
9840 lt_prog_compiler_static=
9841
9842
9843 if test yes = "$GCC"; then
9844 lt_prog_compiler_wl='-Wl,'
9845 lt_prog_compiler_static='-static'
9846
9847 case $host_os in
9848 aix*)
9849 # All AIX code is PIC.
9850 if test ia64 = "$host_cpu"; then
9851 # AIX 5 now supports IA64 processor
9852 lt_prog_compiler_static='-Bstatic'
9853 fi
9854 lt_prog_compiler_pic='-fPIC'
9855 ;;
9856
9857 amigaos*)
9858 case $host_cpu in
9859 powerpc)
9860 # see comment about AmigaOS4 .so support
9861 lt_prog_compiler_pic='-fPIC'
9862 ;;
9863 m68k)
9864 # FIXME: we need at least 68020 code to build shared libraries, but
9865 # adding the '-m68020' flag to GCC prevents building anything better,
9866 # like '-m68040'.
9867 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9868 ;;
9869 esac
9870 ;;
9871
9872 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9873 # PIC is the default for these OSes.
9874 ;;
9875
9876 mingw* | cygwin* | pw32* | os2* | cegcc*)
9877 # This hack is so that the source file can tell whether it is being
9878 # built for inclusion in a dll (and should export symbols for example).
9879 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9880 # (--disable-auto-import) libraries
9881 lt_prog_compiler_pic='-DDLL_EXPORT'
9882 case $host_os in
9883 os2*)
9884 lt_prog_compiler_static='$wl-static'
9885 ;;
9886 esac
9887 ;;
9888
9889 darwin* | rhapsody*)
9890 # PIC is the default on this platform
9891 # Common symbols not allowed in MH_DYLIB files
9892 lt_prog_compiler_pic='-fno-common'
9893 ;;
9894
9895 haiku*)
9896 # PIC is the default for Haiku.
9897 # The "-static" flag exists, but is broken.
9898 lt_prog_compiler_static=
9899 ;;
9900
9901 hpux*)
9902 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9903 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9904 # sets the default TLS model and affects inlining.
9905 case $host_cpu in
9906 hppa*64*)
9907 # +Z the default
9908 ;;
9909 *)
9910 lt_prog_compiler_pic='-fPIC'
9911 ;;
9912 esac
9913 ;;
9914
9915 interix[3-9]*)
9916 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9917 # Instead, we relocate shared libraries at runtime.
9918 ;;
9919
9920 msdosdjgpp*)
9921 # Just because we use GCC doesn't mean we suddenly get shared libraries
9922 # on systems that don't support them.
9923 lt_prog_compiler_can_build_shared=no
9924 enable_shared=no
9925 ;;
9926
9927 *nto* | *qnx*)
9928 # QNX uses GNU C++, but need to define -shared option too, otherwise
9929 # it will coredump.
9930 lt_prog_compiler_pic='-fPIC -shared'
9931 ;;
9932
9933 sysv4*MP*)
9934 if test -d /usr/nec; then
9935 lt_prog_compiler_pic=-Kconform_pic
9936 fi
9937 ;;
9938
9939 *)
9940 lt_prog_compiler_pic='-fPIC'
9941 ;;
9942 esac
9943
9944 case $cc_basename in
9945 nvcc*) # Cuda Compiler Driver 2.2
9946 lt_prog_compiler_wl='-Xlinker '
9947 if test -n "$lt_prog_compiler_pic"; then
9948 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9949 fi
9950 ;;
9951 esac
9952 else
9953 # PORTME Check for flag to pass linker flags through the system compiler.
9954 case $host_os in
9955 aix*)
9956 lt_prog_compiler_wl='-Wl,'
9957 if test ia64 = "$host_cpu"; then
9958 # AIX 5 now supports IA64 processor
9959 lt_prog_compiler_static='-Bstatic'
9960 else
9961 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9962 fi
9963 ;;
9964
9965 darwin* | rhapsody*)
9966 # PIC is the default on this platform
9967 # Common symbols not allowed in MH_DYLIB files
9968 lt_prog_compiler_pic='-fno-common'
9969 case $cc_basename in
9970 nagfor*)
9971 # NAG Fortran compiler
9972 lt_prog_compiler_wl='-Wl,-Wl,,'
9973 lt_prog_compiler_pic='-PIC'
9974 lt_prog_compiler_static='-Bstatic'
9975 ;;
9976 esac
9977 ;;
9978
9979 mingw* | cygwin* | pw32* | os2* | cegcc*)
9980 # This hack is so that the source file can tell whether it is being
9981 # built for inclusion in a dll (and should export symbols for example).
9982 lt_prog_compiler_pic='-DDLL_EXPORT'
9983 case $host_os in
9984 os2*)
9985 lt_prog_compiler_static='$wl-static'
9986 ;;
9987 esac
9988 ;;
9989
9990 hpux9* | hpux10* | hpux11*)
9991 lt_prog_compiler_wl='-Wl,'
9992 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9993 # not for PA HP-UX.
9994 case $host_cpu in
9995 hppa*64*|ia64*)
9996 # +Z the default
9997 ;;
9998 *)
9999 lt_prog_compiler_pic='+Z'
10000 ;;
10001 esac
10002 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10003 lt_prog_compiler_static='$wl-a ${wl}archive'
10004 ;;
10005
10006 irix5* | irix6* | nonstopux*)
10007 lt_prog_compiler_wl='-Wl,'
10008 # PIC (with -KPIC) is the default.
10009 lt_prog_compiler_static='-non_shared'
10010 ;;
10011
10012 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10013 case $cc_basename in
10014 # old Intel for x86_64, which still supported -KPIC.
10015 ecc*)
10016 lt_prog_compiler_wl='-Wl,'
10017 lt_prog_compiler_pic='-KPIC'
10018 lt_prog_compiler_static='-static'
10019 ;;
10020 # icc used to be incompatible with GCC.
10021 # ICC 10 doesn't accept -KPIC any more.
10022 icc* | ifort*)
10023 lt_prog_compiler_wl='-Wl,'
10024 lt_prog_compiler_pic='-fPIC'
10025 lt_prog_compiler_static='-static'
10026 ;;
10027 # Lahey Fortran 8.1.
10028 lf95*)
10029 lt_prog_compiler_wl='-Wl,'
10030 lt_prog_compiler_pic='--shared'
10031 lt_prog_compiler_static='--static'
10032 ;;
10033 nagfor*)
10034 # NAG Fortran compiler
10035 lt_prog_compiler_wl='-Wl,-Wl,,'
10036 lt_prog_compiler_pic='-PIC'
10037 lt_prog_compiler_static='-Bstatic'
10038 ;;
10039 tcc*)
10040 # Fabrice Bellard et al's Tiny C Compiler
10041 lt_prog_compiler_wl='-Wl,'
10042 lt_prog_compiler_pic='-fPIC'
10043 lt_prog_compiler_static='-static'
10044 ;;
10045 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10046 # Portland Group compilers (*not* the Pentium gcc compiler,
10047 # which looks to be a dead project)
10048 lt_prog_compiler_wl='-Wl,'
10049 lt_prog_compiler_pic='-fpic'
10050 lt_prog_compiler_static='-Bstatic'
10051 ;;
10052 ccc*)
10053 lt_prog_compiler_wl='-Wl,'
10054 # All Alpha code is PIC.
10055 lt_prog_compiler_static='-non_shared'
10056 ;;
10057 xl* | bgxl* | bgf* | mpixl*)
10058 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10059 lt_prog_compiler_wl='-Wl,'
10060 lt_prog_compiler_pic='-qpic'
10061 lt_prog_compiler_static='-qstaticlink'
10062 ;;
10063 *)
10064 case `$CC -V 2>&1 | sed 5q` in
10065 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10066 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10067 lt_prog_compiler_pic='-KPIC'
10068 lt_prog_compiler_static='-Bstatic'
10069 lt_prog_compiler_wl=''
10070 ;;
10071 *Sun\ F* | *Sun*Fortran*)
10072 lt_prog_compiler_pic='-KPIC'
10073 lt_prog_compiler_static='-Bstatic'
10074 lt_prog_compiler_wl='-Qoption ld '
10075 ;;
10076 *Sun\ C*)
10077 # Sun C 5.9
10078 lt_prog_compiler_pic='-KPIC'
10079 lt_prog_compiler_static='-Bstatic'
10080 lt_prog_compiler_wl='-Wl,'
10081 ;;
10082 *Intel*\ [CF]*Compiler*)
10083 lt_prog_compiler_wl='-Wl,'
10084 lt_prog_compiler_pic='-fPIC'
10085 lt_prog_compiler_static='-static'
10086 ;;
10087 *Portland\ Group*)
10088 lt_prog_compiler_wl='-Wl,'
10089 lt_prog_compiler_pic='-fpic'
10090 lt_prog_compiler_static='-Bstatic'
10091 ;;
10092 esac
10093 ;;
10094 esac
10095 ;;
10096
10097 newsos6)
10098 lt_prog_compiler_pic='-KPIC'
10099 lt_prog_compiler_static='-Bstatic'
10100 ;;
10101
10102 *nto* | *qnx*)
10103 # QNX uses GNU C++, but need to define -shared option too, otherwise
10104 # it will coredump.
10105 lt_prog_compiler_pic='-fPIC -shared'
10106 ;;
10107
10108 osf3* | osf4* | osf5*)
10109 lt_prog_compiler_wl='-Wl,'
10110 # All OSF/1 code is PIC.
10111 lt_prog_compiler_static='-non_shared'
10112 ;;
10113
10114 rdos*)
10115 lt_prog_compiler_static='-non_shared'
10116 ;;
10117
10118 solaris*)
10119 lt_prog_compiler_pic='-KPIC'
10120 lt_prog_compiler_static='-Bstatic'
10121 case $cc_basename in
10122 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10123 lt_prog_compiler_wl='-Qoption ld ';;
10124 *)
10125 lt_prog_compiler_wl='-Wl,';;
10126 esac
10127 ;;
10128
10129 sunos4*)
10130 lt_prog_compiler_wl='-Qoption ld '
10131 lt_prog_compiler_pic='-PIC'
10132 lt_prog_compiler_static='-Bstatic'
10133 ;;
10134
10135 sysv4 | sysv4.2uw2* | sysv4.3*)
10136 lt_prog_compiler_wl='-Wl,'
10137 lt_prog_compiler_pic='-KPIC'
10138 lt_prog_compiler_static='-Bstatic'
10139 ;;
10140
10141 sysv4*MP*)
10142 if test -d /usr/nec; then
10143 lt_prog_compiler_pic='-Kconform_pic'
10144 lt_prog_compiler_static='-Bstatic'
10145 fi
10146 ;;
10147
10148 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10149 lt_prog_compiler_wl='-Wl,'
10150 lt_prog_compiler_pic='-KPIC'
10151 lt_prog_compiler_static='-Bstatic'
10152 ;;
10153
10154 unicos*)
10155 lt_prog_compiler_wl='-Wl,'
10156 lt_prog_compiler_can_build_shared=no
10157 ;;
10158
10159 uts4*)
10160 lt_prog_compiler_pic='-pic'
10161 lt_prog_compiler_static='-Bstatic'
10162 ;;
10163
10164 *)
10165 lt_prog_compiler_can_build_shared=no
10166 ;;
10167 esac
10168 fi
10169
10170 case $host_os in
10171 # For platforms that do not support PIC, -DPIC is meaningless:
10172 *djgpp*)
10173 lt_prog_compiler_pic=
10174 ;;
10175 *)
10176 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10177 ;;
10178 esac
10179
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10181 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10182 if ${lt_cv_prog_compiler_pic+:} false; then :
10183 $as_echo_n "(cached) " >&6
10184 else
10185 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10186 fi
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10188 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10189 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10190
10191 #
10192 # Check to make sure the PIC flag actually works.
10193 #
10194 if test -n "$lt_prog_compiler_pic"; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10196 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10197 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10198 $as_echo_n "(cached) " >&6
10199 else
10200 lt_cv_prog_compiler_pic_works=no
10201 ac_outfile=conftest.$ac_objext
10202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10203 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10204 # Insert the option either (1) after the last *FLAGS variable, or
10205 # (2) before a word containing "conftest.", or (3) at the end.
10206 # Note that $ac_compile itself does not contain backslashes and begins
10207 # with a dollar sign (not a hyphen), so the echo should work correctly.
10208 # The option is referenced via a variable to avoid confusing sed.
10209 lt_compile=`echo "$ac_compile" | $SED \
10210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10212 -e 's:$: $lt_compiler_flag:'`
10213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10214 (eval "$lt_compile" 2>conftest.err)
10215 ac_status=$?
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 if (exit $ac_status) && test -s "$ac_outfile"; then
10219 # The compiler can only warn and ignore the option if not recognized
10220 # So say no if there are warnings other than the usual output.
10221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10223 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10224 lt_cv_prog_compiler_pic_works=yes
10225 fi
10226 fi
10227 $RM conftest*
10228
10229 fi
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10231 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10232
10233 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10234 case $lt_prog_compiler_pic in
10235 "" | " "*) ;;
10236 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10237 esac
10238 else
10239 lt_prog_compiler_pic=
10240 lt_prog_compiler_can_build_shared=no
10241 fi
10242
10243 fi
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255 #
10256 # Check to make sure the static flag actually works.
10257 #
10258 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10260 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10261 if ${lt_cv_prog_compiler_static_works+:} false; then :
10262 $as_echo_n "(cached) " >&6
10263 else
10264 lt_cv_prog_compiler_static_works=no
10265 save_LDFLAGS=$LDFLAGS
10266 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10267 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10268 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10269 # The linker can only warn and ignore the option if not recognized
10270 # So say no if there are warnings
10271 if test -s conftest.err; then
10272 # Append any errors to the config.log.
10273 cat conftest.err 1>&5
10274 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10276 if diff conftest.exp conftest.er2 >/dev/null; then
10277 lt_cv_prog_compiler_static_works=yes
10278 fi
10279 else
10280 lt_cv_prog_compiler_static_works=yes
10281 fi
10282 fi
10283 $RM -r conftest*
10284 LDFLAGS=$save_LDFLAGS
10285
10286 fi
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10288 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10289
10290 if test yes = "$lt_cv_prog_compiler_static_works"; then
10291 :
10292 else
10293 lt_prog_compiler_static=
10294 fi
10295
10296
10297
10298
10299
10300
10301
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10303 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10304 if ${lt_cv_prog_compiler_c_o+:} false; then :
10305 $as_echo_n "(cached) " >&6
10306 else
10307 lt_cv_prog_compiler_c_o=no
10308 $RM -r conftest 2>/dev/null
10309 mkdir conftest
10310 cd conftest
10311 mkdir out
10312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10313
10314 lt_compiler_flag="-o out/conftest2.$ac_objext"
10315 # Insert the option either (1) after the last *FLAGS variable, or
10316 # (2) before a word containing "conftest.", or (3) at the end.
10317 # Note that $ac_compile itself does not contain backslashes and begins
10318 # with a dollar sign (not a hyphen), so the echo should work correctly.
10319 lt_compile=`echo "$ac_compile" | $SED \
10320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10322 -e 's:$: $lt_compiler_flag:'`
10323 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10324 (eval "$lt_compile" 2>out/conftest.err)
10325 ac_status=$?
10326 cat out/conftest.err >&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10329 then
10330 # The compiler can only warn and ignore the option if not recognized
10331 # So say no if there are warnings
10332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10335 lt_cv_prog_compiler_c_o=yes
10336 fi
10337 fi
10338 chmod u+w . 2>&5
10339 $RM conftest*
10340 # SGI C++ compiler will create directory out/ii_files/ for
10341 # template instantiation
10342 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10343 $RM out/* && rmdir out
10344 cd ..
10345 $RM -r conftest
10346 $RM conftest*
10347
10348 fi
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10350 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10351
10352
10353
10354
10355
10356
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10358 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10359 if ${lt_cv_prog_compiler_c_o+:} false; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 lt_cv_prog_compiler_c_o=no
10363 $RM -r conftest 2>/dev/null
10364 mkdir conftest
10365 cd conftest
10366 mkdir out
10367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10368
10369 lt_compiler_flag="-o out/conftest2.$ac_objext"
10370 # Insert the option either (1) after the last *FLAGS variable, or
10371 # (2) before a word containing "conftest.", or (3) at the end.
10372 # Note that $ac_compile itself does not contain backslashes and begins
10373 # with a dollar sign (not a hyphen), so the echo should work correctly.
10374 lt_compile=`echo "$ac_compile" | $SED \
10375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10377 -e 's:$: $lt_compiler_flag:'`
10378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10379 (eval "$lt_compile" 2>out/conftest.err)
10380 ac_status=$?
10381 cat out/conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10384 then
10385 # The compiler can only warn and ignore the option if not recognized
10386 # So say no if there are warnings
10387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10390 lt_cv_prog_compiler_c_o=yes
10391 fi
10392 fi
10393 chmod u+w . 2>&5
10394 $RM conftest*
10395 # SGI C++ compiler will create directory out/ii_files/ for
10396 # template instantiation
10397 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10398 $RM out/* && rmdir out
10399 cd ..
10400 $RM -r conftest
10401 $RM conftest*
10402
10403 fi
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10405 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10406
10407
10408
10409
10410 hard_links=nottested
10411 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10412 # do not overwrite the value of need_locks provided by the user
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10414 $as_echo_n "checking if we can lock with hard links... " >&6; }
10415 hard_links=yes
10416 $RM conftest*
10417 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10418 touch conftest.a
10419 ln conftest.a conftest.b 2>&5 || hard_links=no
10420 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10422 $as_echo "$hard_links" >&6; }
10423 if test no = "$hard_links"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10425 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10426 need_locks=warn
10427 fi
10428 else
10429 need_locks=no
10430 fi
10431
10432
10433
10434
10435
10436
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10438 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10439
10440 runpath_var=
10441 allow_undefined_flag=
10442 always_export_symbols=no
10443 archive_cmds=
10444 archive_expsym_cmds=
10445 compiler_needs_object=no
10446 enable_shared_with_static_runtimes=no
10447 export_dynamic_flag_spec=
10448 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10449 hardcode_automatic=no
10450 hardcode_direct=no
10451 hardcode_direct_absolute=no
10452 hardcode_libdir_flag_spec=
10453 hardcode_libdir_separator=
10454 hardcode_minus_L=no
10455 hardcode_shlibpath_var=unsupported
10456 inherit_rpath=no
10457 link_all_deplibs=unknown
10458 module_cmds=
10459 module_expsym_cmds=
10460 old_archive_from_new_cmds=
10461 old_archive_from_expsyms_cmds=
10462 thread_safe_flag_spec=
10463 whole_archive_flag_spec=
10464 # include_expsyms should be a list of space-separated symbols to be *always*
10465 # included in the symbol list
10466 include_expsyms=
10467 # exclude_expsyms can be an extended regexp of symbols to exclude
10468 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10469 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10470 # as well as any symbol that contains 'd'.
10471 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10472 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10473 # platforms (ab)use it in PIC code, but their linkers get confused if
10474 # the symbol is explicitly referenced. Since portable code cannot
10475 # rely on this symbol name, it's probably fine to never include it in
10476 # preloaded symbol tables.
10477 # Exclude shared library initialization/finalization symbols.
10478 extract_expsyms_cmds=
10479
10480 case $host_os in
10481 cygwin* | mingw* | pw32* | cegcc*)
10482 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10483 # When not using gcc, we currently assume that we are using
10484 # Microsoft Visual C++.
10485 if test yes != "$GCC"; then
10486 with_gnu_ld=no
10487 fi
10488 ;;
10489 interix*)
10490 # we just hope/assume this is gcc and not c89 (= MSVC++)
10491 with_gnu_ld=yes
10492 ;;
10493 openbsd* | bitrig*)
10494 with_gnu_ld=no
10495 ;;
10496 linux* | k*bsd*-gnu | gnu*)
10497 link_all_deplibs=no
10498 ;;
10499 esac
10500
10501 ld_shlibs=yes
10502
10503 # On some targets, GNU ld is compatible enough with the native linker
10504 # that we're better off using the native interface for both.
10505 lt_use_gnu_ld_interface=no
10506 if test yes = "$with_gnu_ld"; then
10507 case $host_os in
10508 aix*)
10509 # The AIX port of GNU ld has always aspired to compatibility
10510 # with the native linker. However, as the warning in the GNU ld
10511 # block says, versions before 2.19.5* couldn't really create working
10512 # shared libraries, regardless of the interface used.
10513 case `$LD -v 2>&1` in
10514 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10515 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10516 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10517 *)
10518 lt_use_gnu_ld_interface=yes
10519 ;;
10520 esac
10521 ;;
10522 *)
10523 lt_use_gnu_ld_interface=yes
10524 ;;
10525 esac
10526 fi
10527
10528 if test yes = "$lt_use_gnu_ld_interface"; then
10529 # If archive_cmds runs LD, not CC, wlarc should be empty
10530 wlarc='$wl'
10531
10532 # Set some defaults for GNU ld with shared library support. These
10533 # are reset later if shared libraries are not supported. Putting them
10534 # here allows them to be overridden if necessary.
10535 runpath_var=LD_RUN_PATH
10536 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10537 export_dynamic_flag_spec='$wl--export-dynamic'
10538 # ancient GNU ld didn't support --whole-archive et. al.
10539 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10540 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10541 else
10542 whole_archive_flag_spec=
10543 fi
10544 supports_anon_versioning=no
10545 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10546 *GNU\ gold*) supports_anon_versioning=yes ;;
10547 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10548 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10549 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10550 *\ 2.11.*) ;; # other 2.11 versions
10551 *) supports_anon_versioning=yes ;;
10552 esac
10553
10554 # See if GNU ld supports shared libraries.
10555 case $host_os in
10556 aix[3-9]*)
10557 # On AIX/PPC, the GNU linker is very broken
10558 if test ia64 != "$host_cpu"; then
10559 ld_shlibs=no
10560 cat <<_LT_EOF 1>&2
10561
10562 *** Warning: the GNU linker, at least up to release 2.19, is reported
10563 *** to be unable to reliably create shared libraries on AIX.
10564 *** Therefore, libtool is disabling shared libraries support. If you
10565 *** really care for shared libraries, you may want to install binutils
10566 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10567 *** You will then need to restart the configuration process.
10568
10569 _LT_EOF
10570 fi
10571 ;;
10572
10573 amigaos*)
10574 case $host_cpu in
10575 powerpc)
10576 # see comment about AmigaOS4 .so support
10577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10578 archive_expsym_cmds=''
10579 ;;
10580 m68k)
10581 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)'
10582 hardcode_libdir_flag_spec='-L$libdir'
10583 hardcode_minus_L=yes
10584 ;;
10585 esac
10586 ;;
10587
10588 beos*)
10589 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10590 allow_undefined_flag=unsupported
10591 # Joseph Beckenbach <[email protected]> says some releases of gcc
10592 # support --undefined. This deserves some investigation. FIXME
10593 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10594 else
10595 ld_shlibs=no
10596 fi
10597 ;;
10598
10599 cygwin* | mingw* | pw32* | cegcc*)
10600 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10601 # as there is no search path for DLLs.
10602 hardcode_libdir_flag_spec='-L$libdir'
10603 export_dynamic_flag_spec='$wl--export-all-symbols'
10604 allow_undefined_flag=unsupported
10605 always_export_symbols=no
10606 enable_shared_with_static_runtimes=yes
10607 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'
10608 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10609
10610 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10612 # If the export-symbols file already is a .def file, use it as
10613 # is; otherwise, prepend EXPORTS...
10614 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10615 cp $export_symbols $output_objdir/$soname.def;
10616 else
10617 echo EXPORTS > $output_objdir/$soname.def;
10618 cat $export_symbols >> $output_objdir/$soname.def;
10619 fi~
10620 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10621 else
10622 ld_shlibs=no
10623 fi
10624 ;;
10625
10626 haiku*)
10627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10628 link_all_deplibs=yes
10629 ;;
10630
10631 os2*)
10632 hardcode_libdir_flag_spec='-L$libdir'
10633 hardcode_minus_L=yes
10634 allow_undefined_flag=unsupported
10635 shrext_cmds=.dll
10636 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10637 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10638 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10639 $ECHO EXPORTS >> $output_objdir/$libname.def~
10640 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10641 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10642 emximp -o $lib $output_objdir/$libname.def'
10643 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10644 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10645 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10646 $ECHO EXPORTS >> $output_objdir/$libname.def~
10647 prefix_cmds="$SED"~
10648 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10649 prefix_cmds="$prefix_cmds -e 1d";
10650 fi~
10651 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10652 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10653 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10654 emximp -o $lib $output_objdir/$libname.def'
10655 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10656 enable_shared_with_static_runtimes=yes
10657 ;;
10658
10659 interix[3-9]*)
10660 hardcode_direct=no
10661 hardcode_shlibpath_var=no
10662 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10663 export_dynamic_flag_spec='$wl-E'
10664 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10665 # Instead, shared libraries are loaded at an image base (0x10000000 by
10666 # default) and relocated if they conflict, which is a slow very memory
10667 # consuming and fragmenting process. To avoid this, we pick a random,
10668 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10669 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10670 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10671 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'
10672 ;;
10673
10674 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10675 tmp_diet=no
10676 if test linux-dietlibc = "$host_os"; then
10677 case $cc_basename in
10678 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10679 esac
10680 fi
10681 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10682 && test no = "$tmp_diet"
10683 then
10684 tmp_addflag=' $pic_flag'
10685 tmp_sharedflag='-shared'
10686 case $cc_basename,$host_cpu in
10687 pgcc*) # Portland Group C compiler
10688 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'
10689 tmp_addflag=' $pic_flag'
10690 ;;
10691 pgf77* | pgf90* | pgf95* | pgfortran*)
10692 # Portland Group f77 and f90 compilers
10693 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'
10694 tmp_addflag=' $pic_flag -Mnomain' ;;
10695 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10696 tmp_addflag=' -i_dynamic' ;;
10697 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10698 tmp_addflag=' -i_dynamic -nofor_main' ;;
10699 ifc* | ifort*) # Intel Fortran compiler
10700 tmp_addflag=' -nofor_main' ;;
10701 lf95*) # Lahey Fortran 8.1
10702 whole_archive_flag_spec=
10703 tmp_sharedflag='--shared' ;;
10704 nagfor*) # NAGFOR 5.3
10705 tmp_sharedflag='-Wl,-shared' ;;
10706 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10707 tmp_sharedflag='-qmkshrobj'
10708 tmp_addflag= ;;
10709 nvcc*) # Cuda Compiler Driver 2.2
10710 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'
10711 compiler_needs_object=yes
10712 ;;
10713 esac
10714 case `$CC -V 2>&1 | sed 5q` in
10715 *Sun\ C*) # Sun C 5.9
10716 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'
10717 compiler_needs_object=yes
10718 tmp_sharedflag='-G' ;;
10719 *Sun\ F*) # Sun Fortran 8.3
10720 tmp_sharedflag='-G' ;;
10721 esac
10722 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10723
10724 if test yes = "$supports_anon_versioning"; then
10725 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10726 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10727 echo "local: *; };" >> $output_objdir/$libname.ver~
10728 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10729 fi
10730
10731 case $cc_basename in
10732 tcc*)
10733 export_dynamic_flag_spec='-rdynamic'
10734 ;;
10735 xlf* | bgf* | bgxlf* | mpixlf*)
10736 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10737 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10738 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10739 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10740 if test yes = "$supports_anon_versioning"; then
10741 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10742 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10743 echo "local: *; };" >> $output_objdir/$libname.ver~
10744 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10745 fi
10746 ;;
10747 esac
10748 else
10749 ld_shlibs=no
10750 fi
10751 ;;
10752
10753 netbsd* | netbsdelf*-gnu)
10754 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10755 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10756 wlarc=
10757 else
10758 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10759 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10760 fi
10761 ;;
10762
10763 solaris*)
10764 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10765 ld_shlibs=no
10766 cat <<_LT_EOF 1>&2
10767
10768 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10769 *** create shared libraries on Solaris systems. Therefore, libtool
10770 *** is disabling shared libraries support. We urge you to upgrade GNU
10771 *** binutils to release 2.9.1 or newer. Another option is to modify
10772 *** your PATH or compiler configuration so that the native linker is
10773 *** used, and then restart.
10774
10775 _LT_EOF
10776 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10777 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10778 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10779 else
10780 ld_shlibs=no
10781 fi
10782 ;;
10783
10784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10785 case `$LD -v 2>&1` in
10786 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10787 ld_shlibs=no
10788 cat <<_LT_EOF 1>&2
10789
10790 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10791 *** reliably create shared libraries on SCO systems. Therefore, libtool
10792 *** is disabling shared libraries support. We urge you to upgrade GNU
10793 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10794 *** your PATH or compiler configuration so that the native linker is
10795 *** used, and then restart.
10796
10797 _LT_EOF
10798 ;;
10799 *)
10800 # For security reasons, it is highly recommended that you always
10801 # use absolute paths for naming shared libraries, and exclude the
10802 # DT_RUNPATH tag from executables and libraries. But doing so
10803 # requires that you compile everything twice, which is a pain.
10804 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10805 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10807 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10808 else
10809 ld_shlibs=no
10810 fi
10811 ;;
10812 esac
10813 ;;
10814
10815 sunos4*)
10816 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10817 wlarc=
10818 hardcode_direct=yes
10819 hardcode_shlibpath_var=no
10820 ;;
10821
10822 *)
10823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10824 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10825 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10826 else
10827 ld_shlibs=no
10828 fi
10829 ;;
10830 esac
10831
10832 if test no = "$ld_shlibs"; then
10833 runpath_var=
10834 hardcode_libdir_flag_spec=
10835 export_dynamic_flag_spec=
10836 whole_archive_flag_spec=
10837 fi
10838 else
10839 # PORTME fill in a description of your system's linker (not GNU ld)
10840 case $host_os in
10841 aix3*)
10842 allow_undefined_flag=unsupported
10843 always_export_symbols=yes
10844 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'
10845 # Note: this linker hardcodes the directories in LIBPATH if there
10846 # are no directories specified by -L.
10847 hardcode_minus_L=yes
10848 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10849 # Neither direct hardcoding nor static linking is supported with a
10850 # broken collect2.
10851 hardcode_direct=unsupported
10852 fi
10853 ;;
10854
10855 aix[4-9]*)
10856 if test ia64 = "$host_cpu"; then
10857 # On IA64, the linker does run time linking by default, so we don't
10858 # have to do anything special.
10859 aix_use_runtimelinking=no
10860 exp_sym_flag='-Bexport'
10861 no_entry_flag=
10862 else
10863 # If we're using GNU nm, then we don't want the "-C" option.
10864 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10865 # Without the "-l" option, or with the "-B" option, AIX nm treats
10866 # weak defined symbols like other global defined symbols, whereas
10867 # GNU nm marks them as "W".
10868 # While the 'weak' keyword is ignored in the Export File, we need
10869 # it in the Import File for the 'aix-soname' feature, so we have
10870 # to replace the "-B" option with "-P" for AIX nm.
10871 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10872 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'
10873 else
10874 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10875 fi
10876 aix_use_runtimelinking=no
10877
10878 # Test if we are trying to use run time linking or normal
10879 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10880 # have runtime linking enabled, and use it for executables.
10881 # For shared libraries, we enable/disable runtime linking
10882 # depending on the kind of the shared library created -
10883 # when "with_aix_soname,aix_use_runtimelinking" is:
10884 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10885 # "aix,yes" lib.so shared, rtl:yes, for executables
10886 # lib.a static archive
10887 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10888 # lib.a(lib.so.V) shared, rtl:no, for executables
10889 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10890 # lib.a(lib.so.V) shared, rtl:no
10891 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10892 # lib.a static archive
10893 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10894 for ld_flag in $LDFLAGS; do
10895 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10896 aix_use_runtimelinking=yes
10897 break
10898 fi
10899 done
10900 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10901 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10902 # so we don't have lib.a shared libs to link our executables.
10903 # We have to force runtime linking in this case.
10904 aix_use_runtimelinking=yes
10905 LDFLAGS="$LDFLAGS -Wl,-brtl"
10906 fi
10907 ;;
10908 esac
10909
10910 exp_sym_flag='-bexport'
10911 no_entry_flag='-bnoentry'
10912 fi
10913
10914 # When large executables or shared objects are built, AIX ld can
10915 # have problems creating the table of contents. If linking a library
10916 # or program results in "error TOC overflow" add -mminimal-toc to
10917 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10918 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10919
10920 archive_cmds=''
10921 hardcode_direct=yes
10922 hardcode_direct_absolute=yes
10923 hardcode_libdir_separator=':'
10924 link_all_deplibs=yes
10925 file_list_spec='$wl-f,'
10926 case $with_aix_soname,$aix_use_runtimelinking in
10927 aix,*) ;; # traditional, no import file
10928 svr4,* | *,yes) # use import file
10929 # The Import File defines what to hardcode.
10930 hardcode_direct=no
10931 hardcode_direct_absolute=no
10932 ;;
10933 esac
10934
10935 if test yes = "$GCC"; then
10936 case $host_os in aix4.[012]|aix4.[012].*)
10937 # We only want to do this on AIX 4.2 and lower, the check
10938 # below for broken collect2 doesn't work under 4.3+
10939 collect2name=`$CC -print-prog-name=collect2`
10940 if test -f "$collect2name" &&
10941 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10942 then
10943 # We have reworked collect2
10944 :
10945 else
10946 # We have old collect2
10947 hardcode_direct=unsupported
10948 # It fails to find uninstalled libraries when the uninstalled
10949 # path is not listed in the libpath. Setting hardcode_minus_L
10950 # to unsupported forces relinking
10951 hardcode_minus_L=yes
10952 hardcode_libdir_flag_spec='-L$libdir'
10953 hardcode_libdir_separator=
10954 fi
10955 ;;
10956 esac
10957 shared_flag='-shared'
10958 if test yes = "$aix_use_runtimelinking"; then
10959 shared_flag="$shared_flag "'$wl-G'
10960 fi
10961 # Need to ensure runtime linking is disabled for the traditional
10962 # shared library, or the linker may eventually find shared libraries
10963 # /with/ Import File - we do not want to mix them.
10964 shared_flag_aix='-shared'
10965 shared_flag_svr4='-shared $wl-G'
10966 else
10967 # not using gcc
10968 if test ia64 = "$host_cpu"; then
10969 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10970 # chokes on -Wl,-G. The following line is correct:
10971 shared_flag='-G'
10972 else
10973 if test yes = "$aix_use_runtimelinking"; then
10974 shared_flag='$wl-G'
10975 else
10976 shared_flag='$wl-bM:SRE'
10977 fi
10978 shared_flag_aix='$wl-bM:SRE'
10979 shared_flag_svr4='$wl-G'
10980 fi
10981 fi
10982
10983 export_dynamic_flag_spec='$wl-bexpall'
10984 # It seems that -bexpall does not export symbols beginning with
10985 # underscore (_), so it is better to generate a list of symbols to export.
10986 always_export_symbols=yes
10987 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10988 # Warning - without using the other runtime loading flags (-brtl),
10989 # -berok will link without error, but may produce a broken library.
10990 allow_undefined_flag='-berok'
10991 # Determine the default libpath from the value encoded in an
10992 # empty executable.
10993 if test set = "${lt_cv_aix_libpath+set}"; then
10994 aix_libpath=$lt_cv_aix_libpath
10995 else
10996 if ${lt_cv_aix_libpath_+:} false; then :
10997 $as_echo_n "(cached) " >&6
10998 else
10999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h. */
11001
11002 int
11003 main ()
11004 {
11005
11006 ;
11007 return 0;
11008 }
11009 _ACEOF
11010 if ac_fn_c_try_link "$LINENO"; then :
11011
11012 lt_aix_libpath_sed='
11013 /Import File Strings/,/^$/ {
11014 /^0/ {
11015 s/^0 *\([^ ]*\) *$/\1/
11016 p
11017 }
11018 }'
11019 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11020 # Check for a 64-bit object if we didn't find anything.
11021 if test -z "$lt_cv_aix_libpath_"; then
11022 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11023 fi
11024 fi
11025 rm -f core conftest.err conftest.$ac_objext \
11026 conftest$ac_exeext conftest.$ac_ext
11027 if test -z "$lt_cv_aix_libpath_"; then
11028 lt_cv_aix_libpath_=/usr/lib:/lib
11029 fi
11030
11031 fi
11032
11033 aix_libpath=$lt_cv_aix_libpath_
11034 fi
11035
11036 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11037 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
11038 else
11039 if test ia64 = "$host_cpu"; then
11040 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11041 allow_undefined_flag="-z nodefs"
11042 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"
11043 else
11044 # Determine the default libpath from the value encoded in an
11045 # empty executable.
11046 if test set = "${lt_cv_aix_libpath+set}"; then
11047 aix_libpath=$lt_cv_aix_libpath
11048 else
11049 if ${lt_cv_aix_libpath_+:} false; then :
11050 $as_echo_n "(cached) " >&6
11051 else
11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11054
11055 int
11056 main ()
11057 {
11058
11059 ;
11060 return 0;
11061 }
11062 _ACEOF
11063 if ac_fn_c_try_link "$LINENO"; then :
11064
11065 lt_aix_libpath_sed='
11066 /Import File Strings/,/^$/ {
11067 /^0/ {
11068 s/^0 *\([^ ]*\) *$/\1/
11069 p
11070 }
11071 }'
11072 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11073 # Check for a 64-bit object if we didn't find anything.
11074 if test -z "$lt_cv_aix_libpath_"; then
11075 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11076 fi
11077 fi
11078 rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11080 if test -z "$lt_cv_aix_libpath_"; then
11081 lt_cv_aix_libpath_=/usr/lib:/lib
11082 fi
11083
11084 fi
11085
11086 aix_libpath=$lt_cv_aix_libpath_
11087 fi
11088
11089 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11090 # Warning - without using the other run time loading flags,
11091 # -berok will link without error, but may produce a broken library.
11092 no_undefined_flag=' $wl-bernotok'
11093 allow_undefined_flag=' $wl-berok'
11094 if test yes = "$with_gnu_ld"; then
11095 # We only use this code for GNU lds that support --whole-archive.
11096 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11097 else
11098 # Exported symbols can be pulled into shared objects from archives
11099 whole_archive_flag_spec='$convenience'
11100 fi
11101 archive_cmds_need_lc=yes
11102 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11103 # -brtl affects multiple linker settings, -berok does not and is overridden later
11104 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11105 if test svr4 != "$with_aix_soname"; then
11106 # This is similar to how AIX traditionally builds its shared libraries.
11107 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'
11108 fi
11109 if test aix != "$with_aix_soname"; then
11110 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'
11111 else
11112 # used by -dlpreopen to get the symbols
11113 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11114 fi
11115 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11116 fi
11117 fi
11118 ;;
11119
11120 amigaos*)
11121 case $host_cpu in
11122 powerpc)
11123 # see comment about AmigaOS4 .so support
11124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11125 archive_expsym_cmds=''
11126 ;;
11127 m68k)
11128 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)'
11129 hardcode_libdir_flag_spec='-L$libdir'
11130 hardcode_minus_L=yes
11131 ;;
11132 esac
11133 ;;
11134
11135 bsdi[45]*)
11136 export_dynamic_flag_spec=-rdynamic
11137 ;;
11138
11139 cygwin* | mingw* | pw32* | cegcc*)
11140 # When not using gcc, we currently assume that we are using
11141 # Microsoft Visual C++.
11142 # hardcode_libdir_flag_spec is actually meaningless, as there is
11143 # no search path for DLLs.
11144 case $cc_basename in
11145 cl*)
11146 # Native MSVC
11147 hardcode_libdir_flag_spec=' '
11148 allow_undefined_flag=unsupported
11149 always_export_symbols=yes
11150 file_list_spec='@'
11151 # Tell ltmain to make .lib files, not .a files.
11152 libext=lib
11153 # Tell ltmain to make .dll files, not .so files.
11154 shrext_cmds=.dll
11155 # FIXME: Setting linknames here is a bad hack.
11156 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11157 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11158 cp "$export_symbols" "$output_objdir/$soname.def";
11159 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11160 else
11161 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11162 fi~
11163 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11164 linknames='
11165 # The linker will not automatically build a static lib if we build a DLL.
11166 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11167 enable_shared_with_static_runtimes=yes
11168 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11169 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11170 # Don't use ranlib
11171 old_postinstall_cmds='chmod 644 $oldlib'
11172 postlink_cmds='lt_outputfile="@OUTPUT@"~
11173 lt_tool_outputfile="@TOOL_OUTPUT@"~
11174 case $lt_outputfile in
11175 *.exe|*.EXE) ;;
11176 *)
11177 lt_outputfile=$lt_outputfile.exe
11178 lt_tool_outputfile=$lt_tool_outputfile.exe
11179 ;;
11180 esac~
11181 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11182 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11183 $RM "$lt_outputfile.manifest";
11184 fi'
11185 ;;
11186 *)
11187 # Assume MSVC wrapper
11188 hardcode_libdir_flag_spec=' '
11189 allow_undefined_flag=unsupported
11190 # Tell ltmain to make .lib files, not .a files.
11191 libext=lib
11192 # Tell ltmain to make .dll files, not .so files.
11193 shrext_cmds=.dll
11194 # FIXME: Setting linknames here is a bad hack.
11195 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11196 # The linker will automatically build a .lib file if we build a DLL.
11197 old_archive_from_new_cmds='true'
11198 # FIXME: Should let the user specify the lib program.
11199 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11200 enable_shared_with_static_runtimes=yes
11201 ;;
11202 esac
11203 ;;
11204
11205 darwin* | rhapsody*)
11206
11207
11208 archive_cmds_need_lc=no
11209 hardcode_direct=no
11210 hardcode_automatic=yes
11211 hardcode_shlibpath_var=unsupported
11212 if test yes = "$lt_cv_ld_force_load"; then
11213 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\"`'
11214
11215 else
11216 whole_archive_flag_spec=''
11217 fi
11218 link_all_deplibs=yes
11219 allow_undefined_flag=$_lt_dar_allow_undefined
11220 case $cc_basename in
11221 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11222 *) _lt_dar_can_shared=$GCC ;;
11223 esac
11224 if test yes = "$_lt_dar_can_shared"; then
11225 output_verbose_link_cmd=func_echo_all
11226 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11227 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11228 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"
11229 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"
11230
11231 else
11232 ld_shlibs=no
11233 fi
11234
11235 ;;
11236
11237 dgux*)
11238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11239 hardcode_libdir_flag_spec='-L$libdir'
11240 hardcode_shlibpath_var=no
11241 ;;
11242
11243 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11244 # support. Future versions do this automatically, but an explicit c++rt0.o
11245 # does not break anything, and helps significantly (at the cost of a little
11246 # extra space).
11247 freebsd2.2*)
11248 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11249 hardcode_libdir_flag_spec='-R$libdir'
11250 hardcode_direct=yes
11251 hardcode_shlibpath_var=no
11252 ;;
11253
11254 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11255 freebsd2.*)
11256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11257 hardcode_direct=yes
11258 hardcode_minus_L=yes
11259 hardcode_shlibpath_var=no
11260 ;;
11261
11262 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11263 freebsd* | dragonfly*)
11264 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11265 hardcode_libdir_flag_spec='-R$libdir'
11266 hardcode_direct=yes
11267 hardcode_shlibpath_var=no
11268 ;;
11269
11270 hpux9*)
11271 if test yes = "$GCC"; then
11272 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'
11273 else
11274 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'
11275 fi
11276 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11277 hardcode_libdir_separator=:
11278 hardcode_direct=yes
11279
11280 # hardcode_minus_L: Not really in the search PATH,
11281 # but as the default location of the library.
11282 hardcode_minus_L=yes
11283 export_dynamic_flag_spec='$wl-E'
11284 ;;
11285
11286 hpux10*)
11287 if test yes,no = "$GCC,$with_gnu_ld"; then
11288 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11289 else
11290 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11291 fi
11292 if test no = "$with_gnu_ld"; then
11293 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11294 hardcode_libdir_separator=:
11295 hardcode_direct=yes
11296 hardcode_direct_absolute=yes
11297 export_dynamic_flag_spec='$wl-E'
11298 # hardcode_minus_L: Not really in the search PATH,
11299 # but as the default location of the library.
11300 hardcode_minus_L=yes
11301 fi
11302 ;;
11303
11304 hpux11*)
11305 if test yes,no = "$GCC,$with_gnu_ld"; then
11306 case $host_cpu in
11307 hppa*64*)
11308 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11309 ;;
11310 ia64*)
11311 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11312 ;;
11313 *)
11314 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11315 ;;
11316 esac
11317 else
11318 case $host_cpu in
11319 hppa*64*)
11320 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11321 ;;
11322 ia64*)
11323 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11324 ;;
11325 *)
11326
11327 # Older versions of the 11.00 compiler do not understand -b yet
11328 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11330 $as_echo_n "checking if $CC understands -b... " >&6; }
11331 if ${lt_cv_prog_compiler__b+:} false; then :
11332 $as_echo_n "(cached) " >&6
11333 else
11334 lt_cv_prog_compiler__b=no
11335 save_LDFLAGS=$LDFLAGS
11336 LDFLAGS="$LDFLAGS -b"
11337 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11338 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11339 # The linker can only warn and ignore the option if not recognized
11340 # So say no if there are warnings
11341 if test -s conftest.err; then
11342 # Append any errors to the config.log.
11343 cat conftest.err 1>&5
11344 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11346 if diff conftest.exp conftest.er2 >/dev/null; then
11347 lt_cv_prog_compiler__b=yes
11348 fi
11349 else
11350 lt_cv_prog_compiler__b=yes
11351 fi
11352 fi
11353 $RM -r conftest*
11354 LDFLAGS=$save_LDFLAGS
11355
11356 fi
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11358 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11359
11360 if test yes = "$lt_cv_prog_compiler__b"; then
11361 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11362 else
11363 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11364 fi
11365
11366 ;;
11367 esac
11368 fi
11369 if test no = "$with_gnu_ld"; then
11370 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11371 hardcode_libdir_separator=:
11372
11373 case $host_cpu in
11374 hppa*64*|ia64*)
11375 hardcode_direct=no
11376 hardcode_shlibpath_var=no
11377 ;;
11378 *)
11379 hardcode_direct=yes
11380 hardcode_direct_absolute=yes
11381 export_dynamic_flag_spec='$wl-E'
11382
11383 # hardcode_minus_L: Not really in the search PATH,
11384 # but as the default location of the library.
11385 hardcode_minus_L=yes
11386 ;;
11387 esac
11388 fi
11389 ;;
11390
11391 irix5* | irix6* | nonstopux*)
11392 if test yes = "$GCC"; then
11393 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'
11394 # Try to use the -exported_symbol ld option, if it does not
11395 # work, assume that -exports_file does not work either and
11396 # implicitly export all symbols.
11397 # This should be the same for all languages, so no per-tag cache variable.
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11399 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11400 if ${lt_cv_irix_exported_symbol+:} false; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11403 save_LDFLAGS=$LDFLAGS
11404 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11407 int foo (void) { return 0; }
11408 _ACEOF
11409 if ac_fn_c_try_link "$LINENO"; then :
11410 lt_cv_irix_exported_symbol=yes
11411 else
11412 lt_cv_irix_exported_symbol=no
11413 fi
11414 rm -f core conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext conftest.$ac_ext
11416 LDFLAGS=$save_LDFLAGS
11417 fi
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11419 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11420 if test yes = "$lt_cv_irix_exported_symbol"; then
11421 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'
11422 fi
11423 link_all_deplibs=no
11424 else
11425 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'
11426 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'
11427 fi
11428 archive_cmds_need_lc='no'
11429 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11430 hardcode_libdir_separator=:
11431 inherit_rpath=yes
11432 link_all_deplibs=yes
11433 ;;
11434
11435 linux*)
11436 case $cc_basename in
11437 tcc*)
11438 # Fabrice Bellard et al's Tiny C Compiler
11439 ld_shlibs=yes
11440 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11441 ;;
11442 esac
11443 ;;
11444
11445 netbsd* | netbsdelf*-gnu)
11446 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11447 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11448 else
11449 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11450 fi
11451 hardcode_libdir_flag_spec='-R$libdir'
11452 hardcode_direct=yes
11453 hardcode_shlibpath_var=no
11454 ;;
11455
11456 newsos6)
11457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11458 hardcode_direct=yes
11459 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11460 hardcode_libdir_separator=:
11461 hardcode_shlibpath_var=no
11462 ;;
11463
11464 *nto* | *qnx*)
11465 ;;
11466
11467 openbsd* | bitrig*)
11468 if test -f /usr/libexec/ld.so; then
11469 hardcode_direct=yes
11470 hardcode_shlibpath_var=no
11471 hardcode_direct_absolute=yes
11472 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11473 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11474 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11475 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11476 export_dynamic_flag_spec='$wl-E'
11477 else
11478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11479 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11480 fi
11481 else
11482 ld_shlibs=no
11483 fi
11484 ;;
11485
11486 os2*)
11487 hardcode_libdir_flag_spec='-L$libdir'
11488 hardcode_minus_L=yes
11489 allow_undefined_flag=unsupported
11490 shrext_cmds=.dll
11491 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11492 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11493 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11494 $ECHO EXPORTS >> $output_objdir/$libname.def~
11495 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11496 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11497 emximp -o $lib $output_objdir/$libname.def'
11498 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11499 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11500 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11501 $ECHO EXPORTS >> $output_objdir/$libname.def~
11502 prefix_cmds="$SED"~
11503 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11504 prefix_cmds="$prefix_cmds -e 1d";
11505 fi~
11506 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11507 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11508 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11509 emximp -o $lib $output_objdir/$libname.def'
11510 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11511 enable_shared_with_static_runtimes=yes
11512 ;;
11513
11514 osf3*)
11515 if test yes = "$GCC"; then
11516 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11517 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'
11518 else
11519 allow_undefined_flag=' -expect_unresolved \*'
11520 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'
11521 fi
11522 archive_cmds_need_lc='no'
11523 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11524 hardcode_libdir_separator=:
11525 ;;
11526
11527 osf4* | osf5*) # as osf3* with the addition of -msym flag
11528 if test yes = "$GCC"; then
11529 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11530 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'
11531 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11532 else
11533 allow_undefined_flag=' -expect_unresolved \*'
11534 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'
11535 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~
11536 $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'
11537
11538 # Both c and cxx compiler support -rpath directly
11539 hardcode_libdir_flag_spec='-rpath $libdir'
11540 fi
11541 archive_cmds_need_lc='no'
11542 hardcode_libdir_separator=:
11543 ;;
11544
11545 solaris*)
11546 no_undefined_flag=' -z defs'
11547 if test yes = "$GCC"; then
11548 wlarc='$wl'
11549 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11550 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11551 $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'
11552 else
11553 case `$CC -V 2>&1` in
11554 *"Compilers 5.0"*)
11555 wlarc=''
11556 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11557 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11558 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11559 ;;
11560 *)
11561 wlarc='$wl'
11562 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11563 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11564 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11565 ;;
11566 esac
11567 fi
11568 hardcode_libdir_flag_spec='-R$libdir'
11569 hardcode_shlibpath_var=no
11570 case $host_os in
11571 solaris2.[0-5] | solaris2.[0-5].*) ;;
11572 *)
11573 # The compiler driver will combine and reorder linker options,
11574 # but understands '-z linker_flag'. GCC discards it without '$wl',
11575 # but is careful enough not to reorder.
11576 # Supported since Solaris 2.6 (maybe 2.5.1?)
11577 if test yes = "$GCC"; then
11578 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11579 else
11580 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11581 fi
11582 ;;
11583 esac
11584 link_all_deplibs=yes
11585 ;;
11586
11587 sunos4*)
11588 if test sequent = "$host_vendor"; then
11589 # Use $CC to link under sequent, because it throws in some extra .o
11590 # files that make .init and .fini sections work.
11591 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11592 else
11593 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11594 fi
11595 hardcode_libdir_flag_spec='-L$libdir'
11596 hardcode_direct=yes
11597 hardcode_minus_L=yes
11598 hardcode_shlibpath_var=no
11599 ;;
11600
11601 sysv4)
11602 case $host_vendor in
11603 sni)
11604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11605 hardcode_direct=yes # is this really true???
11606 ;;
11607 siemens)
11608 ## LD is ld it makes a PLAMLIB
11609 ## CC just makes a GrossModule.
11610 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11611 reload_cmds='$CC -r -o $output$reload_objs'
11612 hardcode_direct=no
11613 ;;
11614 motorola)
11615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11616 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11617 ;;
11618 esac
11619 runpath_var='LD_RUN_PATH'
11620 hardcode_shlibpath_var=no
11621 ;;
11622
11623 sysv4.3*)
11624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11625 hardcode_shlibpath_var=no
11626 export_dynamic_flag_spec='-Bexport'
11627 ;;
11628
11629 sysv4*MP*)
11630 if test -d /usr/nec; then
11631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11632 hardcode_shlibpath_var=no
11633 runpath_var=LD_RUN_PATH
11634 hardcode_runpath_var=yes
11635 ld_shlibs=yes
11636 fi
11637 ;;
11638
11639 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11640 no_undefined_flag='$wl-z,text'
11641 archive_cmds_need_lc=no
11642 hardcode_shlibpath_var=no
11643 runpath_var='LD_RUN_PATH'
11644
11645 if test yes = "$GCC"; then
11646 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11647 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11648 else
11649 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11650 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11651 fi
11652 ;;
11653
11654 sysv5* | sco3.2v5* | sco5v6*)
11655 # Note: We CANNOT use -z defs as we might desire, because we do not
11656 # link with -lc, and that would cause any symbols used from libc to
11657 # always be unresolved, which means just about no library would
11658 # ever link correctly. If we're not using GNU ld we use -z text
11659 # though, which does catch some bad symbols but isn't as heavy-handed
11660 # as -z defs.
11661 no_undefined_flag='$wl-z,text'
11662 allow_undefined_flag='$wl-z,nodefs'
11663 archive_cmds_need_lc=no
11664 hardcode_shlibpath_var=no
11665 hardcode_libdir_flag_spec='$wl-R,$libdir'
11666 hardcode_libdir_separator=':'
11667 link_all_deplibs=yes
11668 export_dynamic_flag_spec='$wl-Bexport'
11669 runpath_var='LD_RUN_PATH'
11670
11671 if test yes = "$GCC"; then
11672 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11673 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11674 else
11675 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11676 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11677 fi
11678 ;;
11679
11680 uts4*)
11681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11682 hardcode_libdir_flag_spec='-L$libdir'
11683 hardcode_shlibpath_var=no
11684 ;;
11685
11686 *)
11687 ld_shlibs=no
11688 ;;
11689 esac
11690
11691 if test sni = "$host_vendor"; then
11692 case $host in
11693 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11694 export_dynamic_flag_spec='$wl-Blargedynsym'
11695 ;;
11696 esac
11697 fi
11698 fi
11699
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11701 $as_echo "$ld_shlibs" >&6; }
11702 test no = "$ld_shlibs" && can_build_shared=no
11703
11704 with_gnu_ld=$with_gnu_ld
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720 #
11721 # Do we need to explicitly link libc?
11722 #
11723 case "x$archive_cmds_need_lc" in
11724 x|xyes)
11725 # Assume -lc should be added
11726 archive_cmds_need_lc=yes
11727
11728 if test yes,yes = "$GCC,$enable_shared"; then
11729 case $archive_cmds in
11730 *'~'*)
11731 # FIXME: we may have to deal with multi-command sequences.
11732 ;;
11733 '$CC '*)
11734 # Test whether the compiler implicitly links with -lc since on some
11735 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11736 # to ld, don't add -lc before -lgcc.
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11738 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11739 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11740 $as_echo_n "(cached) " >&6
11741 else
11742 $RM conftest*
11743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11744
11745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11746 (eval $ac_compile) 2>&5
11747 ac_status=$?
11748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11749 test $ac_status = 0; } 2>conftest.err; then
11750 soname=conftest
11751 lib=conftest
11752 libobjs=conftest.$ac_objext
11753 deplibs=
11754 wl=$lt_prog_compiler_wl
11755 pic_flag=$lt_prog_compiler_pic
11756 compiler_flags=-v
11757 linker_flags=-v
11758 verstring=
11759 output_objdir=.
11760 libname=conftest
11761 lt_save_allow_undefined_flag=$allow_undefined_flag
11762 allow_undefined_flag=
11763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11764 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11765 ac_status=$?
11766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11767 test $ac_status = 0; }
11768 then
11769 lt_cv_archive_cmds_need_lc=no
11770 else
11771 lt_cv_archive_cmds_need_lc=yes
11772 fi
11773 allow_undefined_flag=$lt_save_allow_undefined_flag
11774 else
11775 cat conftest.err 1>&5
11776 fi
11777 $RM conftest*
11778
11779 fi
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11781 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11782 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11783 ;;
11784 esac
11785 fi
11786 ;;
11787 esac
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11941 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11942
11943 if test yes = "$GCC"; then
11944 case $host_os in
11945 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11946 *) lt_awk_arg='/^libraries:/' ;;
11947 esac
11948 case $host_os in
11949 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11950 *) lt_sed_strip_eq='s|=/|/|g' ;;
11951 esac
11952 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11953 case $lt_search_path_spec in
11954 *\;*)
11955 # if the path contains ";" then we assume it to be the separator
11956 # otherwise default to the standard path separator (i.e. ":") - it is
11957 # assumed that no part of a normal pathname contains ";" but that should
11958 # okay in the real world where ";" in dirpaths is itself problematic.
11959 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11960 ;;
11961 *)
11962 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11963 ;;
11964 esac
11965 # Ok, now we have the path, separated by spaces, we can step through it
11966 # and add multilib dir if necessary...
11967 lt_tmp_lt_search_path_spec=
11968 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11969 # ...but if some path component already ends with the multilib dir we assume
11970 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11971 case "$lt_multi_os_dir; $lt_search_path_spec " in
11972 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11973 lt_multi_os_dir=
11974 ;;
11975 esac
11976 for lt_sys_path in $lt_search_path_spec; do
11977 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11978 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11979 elif test -n "$lt_multi_os_dir"; then
11980 test -d "$lt_sys_path" && \
11981 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11982 fi
11983 done
11984 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11985 BEGIN {RS = " "; FS = "/|\n";} {
11986 lt_foo = "";
11987 lt_count = 0;
11988 for (lt_i = NF; lt_i > 0; lt_i--) {
11989 if ($lt_i != "" && $lt_i != ".") {
11990 if ($lt_i == "..") {
11991 lt_count++;
11992 } else {
11993 if (lt_count == 0) {
11994 lt_foo = "/" $lt_i lt_foo;
11995 } else {
11996 lt_count--;
11997 }
11998 }
11999 }
12000 }
12001 if (lt_foo != "") { lt_freq[lt_foo]++; }
12002 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12003 }'`
12004 # AWK program above erroneously prepends '/' to C:/dos/paths
12005 # for these hosts.
12006 case $host_os in
12007 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12008 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12009 esac
12010 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12011 else
12012 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12013 fi
12014 library_names_spec=
12015 libname_spec='lib$name'
12016 soname_spec=
12017 shrext_cmds=.so
12018 postinstall_cmds=
12019 postuninstall_cmds=
12020 finish_cmds=
12021 finish_eval=
12022 shlibpath_var=
12023 shlibpath_overrides_runpath=unknown
12024 version_type=none
12025 dynamic_linker="$host_os ld.so"
12026 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12027 need_lib_prefix=unknown
12028 hardcode_into_libs=no
12029
12030 # when you set need_version to no, make sure it does not cause -set_version
12031 # flags to be left without arguments
12032 need_version=unknown
12033
12034
12035
12036 case $host_os in
12037 aix3*)
12038 version_type=linux # correct to gnu/linux during the next big refactor
12039 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12040 shlibpath_var=LIBPATH
12041
12042 # AIX 3 has no versioning support, so we append a major version to the name.
12043 soname_spec='$libname$release$shared_ext$major'
12044 ;;
12045
12046 aix[4-9]*)
12047 version_type=linux # correct to gnu/linux during the next big refactor
12048 need_lib_prefix=no
12049 need_version=no
12050 hardcode_into_libs=yes
12051 if test ia64 = "$host_cpu"; then
12052 # AIX 5 supports IA64
12053 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12054 shlibpath_var=LD_LIBRARY_PATH
12055 else
12056 # With GCC up to 2.95.x, collect2 would create an import file
12057 # for dependence libraries. The import file would start with
12058 # the line '#! .'. This would cause the generated library to
12059 # depend on '.', always an invalid library. This was fixed in
12060 # development snapshots of GCC prior to 3.0.
12061 case $host_os in
12062 aix4 | aix4.[01] | aix4.[01].*)
12063 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12064 echo ' yes '
12065 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12066 :
12067 else
12068 can_build_shared=no
12069 fi
12070 ;;
12071 esac
12072 # Using Import Files as archive members, it is possible to support
12073 # filename-based versioning of shared library archives on AIX. While
12074 # this would work for both with and without runtime linking, it will
12075 # prevent static linking of such archives. So we do filename-based
12076 # shared library versioning with .so extension only, which is used
12077 # when both runtime linking and shared linking is enabled.
12078 # Unfortunately, runtime linking may impact performance, so we do
12079 # not want this to be the default eventually. Also, we use the
12080 # versioned .so libs for executables only if there is the -brtl
12081 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12082 # To allow for filename-based versioning support, we need to create
12083 # libNAME.so.V as an archive file, containing:
12084 # *) an Import File, referring to the versioned filename of the
12085 # archive as well as the shared archive member, telling the
12086 # bitwidth (32 or 64) of that shared object, and providing the
12087 # list of exported symbols of that shared object, eventually
12088 # decorated with the 'weak' keyword
12089 # *) the shared object with the F_LOADONLY flag set, to really avoid
12090 # it being seen by the linker.
12091 # At run time we better use the real file rather than another symlink,
12092 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12093
12094 case $with_aix_soname,$aix_use_runtimelinking in
12095 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12096 # soname into executable. Probably we can add versioning support to
12097 # collect2, so additional links can be useful in future.
12098 aix,yes) # traditional libtool
12099 dynamic_linker='AIX unversionable lib.so'
12100 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12101 # instead of lib<name>.a to let people know that these are not
12102 # typical AIX shared libraries.
12103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12104 ;;
12105 aix,no) # traditional AIX only
12106 dynamic_linker='AIX lib.a(lib.so.V)'
12107 # We preserve .a as extension for shared libraries through AIX4.2
12108 # and later when we are not doing run time linking.
12109 library_names_spec='$libname$release.a $libname.a'
12110 soname_spec='$libname$release$shared_ext$major'
12111 ;;
12112 svr4,*) # full svr4 only
12113 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12114 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12115 # We do not specify a path in Import Files, so LIBPATH fires.
12116 shlibpath_overrides_runpath=yes
12117 ;;
12118 *,yes) # both, prefer svr4
12119 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12120 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12121 # unpreferred sharedlib libNAME.a needs extra handling
12122 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"'
12123 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"'
12124 # We do not specify a path in Import Files, so LIBPATH fires.
12125 shlibpath_overrides_runpath=yes
12126 ;;
12127 *,no) # both, prefer aix
12128 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12129 library_names_spec='$libname$release.a $libname.a'
12130 soname_spec='$libname$release$shared_ext$major'
12131 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12132 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)'
12133 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"'
12134 ;;
12135 esac
12136 shlibpath_var=LIBPATH
12137 fi
12138 ;;
12139
12140 amigaos*)
12141 case $host_cpu in
12142 powerpc)
12143 # Since July 2007 AmigaOS4 officially supports .so libraries.
12144 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12146 ;;
12147 m68k)
12148 library_names_spec='$libname.ixlibrary $libname.a'
12149 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12150 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'
12151 ;;
12152 esac
12153 ;;
12154
12155 beos*)
12156 library_names_spec='$libname$shared_ext'
12157 dynamic_linker="$host_os ld.so"
12158 shlibpath_var=LIBRARY_PATH
12159 ;;
12160
12161 bsdi[45]*)
12162 version_type=linux # correct to gnu/linux during the next big refactor
12163 need_version=no
12164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12165 soname_spec='$libname$release$shared_ext$major'
12166 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12167 shlibpath_var=LD_LIBRARY_PATH
12168 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12169 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12170 # the default ld.so.conf also contains /usr/contrib/lib and
12171 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12172 # libtool to hard-code these into programs
12173 ;;
12174
12175 cygwin* | mingw* | pw32* | cegcc*)
12176 version_type=windows
12177 shrext_cmds=.dll
12178 need_version=no
12179 need_lib_prefix=no
12180
12181 case $GCC,$cc_basename in
12182 yes,*)
12183 # gcc
12184 library_names_spec='$libname.dll.a'
12185 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12186 postinstall_cmds='base_file=`basename \$file`~
12187 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12188 dldir=$destdir/`dirname \$dlpath`~
12189 test -d \$dldir || mkdir -p \$dldir~
12190 $install_prog $dir/$dlname \$dldir/$dlname~
12191 chmod a+x \$dldir/$dlname~
12192 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12193 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12194 fi'
12195 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12196 dlpath=$dir/\$dldll~
12197 $RM \$dlpath'
12198 shlibpath_overrides_runpath=yes
12199
12200 case $host_os in
12201 cygwin*)
12202 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12203 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12204
12205 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12206 ;;
12207 mingw* | cegcc*)
12208 # MinGW DLLs use traditional 'lib' prefix
12209 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12210 ;;
12211 pw32*)
12212 # pw32 DLLs use 'pw' prefix rather than 'lib'
12213 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12214 ;;
12215 esac
12216 dynamic_linker='Win32 ld.exe'
12217 ;;
12218
12219 *,cl*)
12220 # Native MSVC
12221 libname_spec='$name'
12222 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12223 library_names_spec='$libname.dll.lib'
12224
12225 case $build_os in
12226 mingw*)
12227 sys_lib_search_path_spec=
12228 lt_save_ifs=$IFS
12229 IFS=';'
12230 for lt_path in $LIB
12231 do
12232 IFS=$lt_save_ifs
12233 # Let DOS variable expansion print the short 8.3 style file name.
12234 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12235 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12236 done
12237 IFS=$lt_save_ifs
12238 # Convert to MSYS style.
12239 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12240 ;;
12241 cygwin*)
12242 # Convert to unix form, then to dos form, then back to unix form
12243 # but this time dos style (no spaces!) so that the unix form looks
12244 # like /cygdrive/c/PROGRA~1:/cygdr...
12245 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12246 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12247 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12248 ;;
12249 *)
12250 sys_lib_search_path_spec=$LIB
12251 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12252 # It is most probably a Windows format PATH.
12253 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12254 else
12255 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12256 fi
12257 # FIXME: find the short name or the path components, as spaces are
12258 # common. (e.g. "Program Files" -> "PROGRA~1")
12259 ;;
12260 esac
12261
12262 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12263 postinstall_cmds='base_file=`basename \$file`~
12264 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12265 dldir=$destdir/`dirname \$dlpath`~
12266 test -d \$dldir || mkdir -p \$dldir~
12267 $install_prog $dir/$dlname \$dldir/$dlname'
12268 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12269 dlpath=$dir/\$dldll~
12270 $RM \$dlpath'
12271 shlibpath_overrides_runpath=yes
12272 dynamic_linker='Win32 link.exe'
12273 ;;
12274
12275 *)
12276 # Assume MSVC wrapper
12277 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12278 dynamic_linker='Win32 ld.exe'
12279 ;;
12280 esac
12281 # FIXME: first we should search . and the directory the executable is in
12282 shlibpath_var=PATH
12283 ;;
12284
12285 darwin* | rhapsody*)
12286 dynamic_linker="$host_os dyld"
12287 version_type=darwin
12288 need_lib_prefix=no
12289 need_version=no
12290 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12291 soname_spec='$libname$release$major$shared_ext'
12292 shlibpath_overrides_runpath=yes
12293 shlibpath_var=DYLD_LIBRARY_PATH
12294 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12295
12296 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12297 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12298 ;;
12299
12300 dgux*)
12301 version_type=linux # correct to gnu/linux during the next big refactor
12302 need_lib_prefix=no
12303 need_version=no
12304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12305 soname_spec='$libname$release$shared_ext$major'
12306 shlibpath_var=LD_LIBRARY_PATH
12307 ;;
12308
12309 freebsd* | dragonfly*)
12310 # DragonFly does not have aout. When/if they implement a new
12311 # versioning mechanism, adjust this.
12312 if test -x /usr/bin/objformat; then
12313 objformat=`/usr/bin/objformat`
12314 else
12315 case $host_os in
12316 freebsd[23].*) objformat=aout ;;
12317 *) objformat=elf ;;
12318 esac
12319 fi
12320 version_type=freebsd-$objformat
12321 case $version_type in
12322 freebsd-elf*)
12323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12324 soname_spec='$libname$release$shared_ext$major'
12325 need_version=no
12326 need_lib_prefix=no
12327 ;;
12328 freebsd-*)
12329 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12330 need_version=yes
12331 ;;
12332 esac
12333 shlibpath_var=LD_LIBRARY_PATH
12334 case $host_os in
12335 freebsd2.*)
12336 shlibpath_overrides_runpath=yes
12337 ;;
12338 freebsd3.[01]* | freebsdelf3.[01]*)
12339 shlibpath_overrides_runpath=yes
12340 hardcode_into_libs=yes
12341 ;;
12342 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12343 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12344 shlibpath_overrides_runpath=no
12345 hardcode_into_libs=yes
12346 ;;
12347 *) # from 4.6 on, and DragonFly
12348 shlibpath_overrides_runpath=yes
12349 hardcode_into_libs=yes
12350 ;;
12351 esac
12352 ;;
12353
12354 haiku*)
12355 version_type=linux # correct to gnu/linux during the next big refactor
12356 need_lib_prefix=no
12357 need_version=no
12358 dynamic_linker="$host_os runtime_loader"
12359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12360 soname_spec='$libname$release$shared_ext$major'
12361 shlibpath_var=LIBRARY_PATH
12362 shlibpath_overrides_runpath=no
12363 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12364 hardcode_into_libs=yes
12365 ;;
12366
12367 hpux9* | hpux10* | hpux11*)
12368 # Give a soname corresponding to the major version so that dld.sl refuses to
12369 # link against other versions.
12370 version_type=sunos
12371 need_lib_prefix=no
12372 need_version=no
12373 case $host_cpu in
12374 ia64*)
12375 shrext_cmds='.so'
12376 hardcode_into_libs=yes
12377 dynamic_linker="$host_os dld.so"
12378 shlibpath_var=LD_LIBRARY_PATH
12379 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12381 soname_spec='$libname$release$shared_ext$major'
12382 if test 32 = "$HPUX_IA64_MODE"; then
12383 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12384 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12385 else
12386 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12387 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12388 fi
12389 ;;
12390 hppa*64*)
12391 shrext_cmds='.sl'
12392 hardcode_into_libs=yes
12393 dynamic_linker="$host_os dld.sl"
12394 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12395 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12397 soname_spec='$libname$release$shared_ext$major'
12398 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12400 ;;
12401 *)
12402 shrext_cmds='.sl'
12403 dynamic_linker="$host_os dld.sl"
12404 shlibpath_var=SHLIB_PATH
12405 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12407 soname_spec='$libname$release$shared_ext$major'
12408 ;;
12409 esac
12410 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12411 postinstall_cmds='chmod 555 $lib'
12412 # or fails outright, so override atomically:
12413 install_override_mode=555
12414 ;;
12415
12416 interix[3-9]*)
12417 version_type=linux # correct to gnu/linux during the next big refactor
12418 need_lib_prefix=no
12419 need_version=no
12420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12421 soname_spec='$libname$release$shared_ext$major'
12422 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12423 shlibpath_var=LD_LIBRARY_PATH
12424 shlibpath_overrides_runpath=no
12425 hardcode_into_libs=yes
12426 ;;
12427
12428 irix5* | irix6* | nonstopux*)
12429 case $host_os in
12430 nonstopux*) version_type=nonstopux ;;
12431 *)
12432 if test yes = "$lt_cv_prog_gnu_ld"; then
12433 version_type=linux # correct to gnu/linux during the next big refactor
12434 else
12435 version_type=irix
12436 fi ;;
12437 esac
12438 need_lib_prefix=no
12439 need_version=no
12440 soname_spec='$libname$release$shared_ext$major'
12441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12442 case $host_os in
12443 irix5* | nonstopux*)
12444 libsuff= shlibsuff=
12445 ;;
12446 *)
12447 case $LD in # libtool.m4 will add one of these switches to LD
12448 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12449 libsuff= shlibsuff= libmagic=32-bit;;
12450 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12451 libsuff=32 shlibsuff=N32 libmagic=N32;;
12452 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12453 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12454 *) libsuff= shlibsuff= libmagic=never-match;;
12455 esac
12456 ;;
12457 esac
12458 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12459 shlibpath_overrides_runpath=no
12460 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12461 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12462 hardcode_into_libs=yes
12463 ;;
12464
12465 # No shared lib support for Linux oldld, aout, or coff.
12466 linux*oldld* | linux*aout* | linux*coff*)
12467 dynamic_linker=no
12468 ;;
12469
12470 linux*android*)
12471 version_type=none # Android doesn't support versioned libraries.
12472 need_lib_prefix=no
12473 need_version=no
12474 library_names_spec='$libname$release$shared_ext'
12475 soname_spec='$libname$release$shared_ext'
12476 finish_cmds=
12477 shlibpath_var=LD_LIBRARY_PATH
12478 shlibpath_overrides_runpath=yes
12479
12480 # This implies no fast_install, which is unacceptable.
12481 # Some rework will be needed to allow for fast_install
12482 # before this can be enabled.
12483 hardcode_into_libs=yes
12484
12485 dynamic_linker='Android linker'
12486 # Don't embed -rpath directories since the linker doesn't support them.
12487 hardcode_libdir_flag_spec='-L$libdir'
12488 ;;
12489
12490 # This must be glibc/ELF.
12491 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12492 version_type=linux # correct to gnu/linux during the next big refactor
12493 need_lib_prefix=no
12494 need_version=no
12495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12496 soname_spec='$libname$release$shared_ext$major'
12497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12498 shlibpath_var=LD_LIBRARY_PATH
12499 shlibpath_overrides_runpath=no
12500
12501 # Some binutils ld are patched to set DT_RUNPATH
12502 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12503 $as_echo_n "(cached) " >&6
12504 else
12505 lt_cv_shlibpath_overrides_runpath=no
12506 save_LDFLAGS=$LDFLAGS
12507 save_libdir=$libdir
12508 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12509 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511 /* end confdefs.h. */
12512
12513 int
12514 main ()
12515 {
12516
12517 ;
12518 return 0;
12519 }
12520 _ACEOF
12521 if ac_fn_c_try_link "$LINENO"; then :
12522 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12523 lt_cv_shlibpath_overrides_runpath=yes
12524 fi
12525 fi
12526 rm -f core conftest.err conftest.$ac_objext \
12527 conftest$ac_exeext conftest.$ac_ext
12528 LDFLAGS=$save_LDFLAGS
12529 libdir=$save_libdir
12530
12531 fi
12532
12533 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12534
12535 # This implies no fast_install, which is unacceptable.
12536 # Some rework will be needed to allow for fast_install
12537 # before this can be enabled.
12538 hardcode_into_libs=yes
12539
12540 # Ideally, we could use ldconfig to report *all* directores which are
12541 # searched for libraries, however this is still not possible. Aside from not
12542 # being certain /sbin/ldconfig is available, command
12543 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12544 # even though it is searched at run-time. Try to do the best guess by
12545 # appending ld.so.conf contents (and includes) to the search path.
12546 if test -f /etc/ld.so.conf; then
12547 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' ' '`
12548 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12549 fi
12550
12551 # We used to test for /lib/ld.so.1 and disable shared libraries on
12552 # powerpc, because MkLinux only supported shared libraries with the
12553 # GNU dynamic linker. Since this was broken with cross compilers,
12554 # most powerpc-linux boxes support dynamic linking these days and
12555 # people can always --disable-shared, the test was removed, and we
12556 # assume the GNU/Linux dynamic linker is in use.
12557 dynamic_linker='GNU/Linux ld.so'
12558 ;;
12559
12560 netbsdelf*-gnu)
12561 version_type=linux
12562 need_lib_prefix=no
12563 need_version=no
12564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12565 soname_spec='${libname}${release}${shared_ext}$major'
12566 shlibpath_var=LD_LIBRARY_PATH
12567 shlibpath_overrides_runpath=no
12568 hardcode_into_libs=yes
12569 dynamic_linker='NetBSD ld.elf_so'
12570 ;;
12571
12572 netbsd*)
12573 version_type=sunos
12574 need_lib_prefix=no
12575 need_version=no
12576 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12577 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12579 dynamic_linker='NetBSD (a.out) ld.so'
12580 else
12581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12582 soname_spec='$libname$release$shared_ext$major'
12583 dynamic_linker='NetBSD ld.elf_so'
12584 fi
12585 shlibpath_var=LD_LIBRARY_PATH
12586 shlibpath_overrides_runpath=yes
12587 hardcode_into_libs=yes
12588 ;;
12589
12590 newsos6)
12591 version_type=linux # correct to gnu/linux during the next big refactor
12592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12593 shlibpath_var=LD_LIBRARY_PATH
12594 shlibpath_overrides_runpath=yes
12595 ;;
12596
12597 *nto* | *qnx*)
12598 version_type=qnx
12599 need_lib_prefix=no
12600 need_version=no
12601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12602 soname_spec='$libname$release$shared_ext$major'
12603 shlibpath_var=LD_LIBRARY_PATH
12604 shlibpath_overrides_runpath=no
12605 hardcode_into_libs=yes
12606 dynamic_linker='ldqnx.so'
12607 ;;
12608
12609 openbsd* | bitrig*)
12610 version_type=sunos
12611 sys_lib_dlsearch_path_spec=/usr/lib
12612 need_lib_prefix=no
12613 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12614 need_version=no
12615 else
12616 need_version=yes
12617 fi
12618 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12620 shlibpath_var=LD_LIBRARY_PATH
12621 shlibpath_overrides_runpath=yes
12622 ;;
12623
12624 os2*)
12625 libname_spec='$name'
12626 version_type=windows
12627 shrext_cmds=.dll
12628 need_version=no
12629 need_lib_prefix=no
12630 # OS/2 can only load a DLL with a base name of 8 characters or less.
12631 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12632 v=$($ECHO $release$versuffix | tr -d .-);
12633 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12634 $ECHO $n$v`$shared_ext'
12635 library_names_spec='${libname}_dll.$libext'
12636 dynamic_linker='OS/2 ld.exe'
12637 shlibpath_var=BEGINLIBPATH
12638 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12639 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12640 postinstall_cmds='base_file=`basename \$file`~
12641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12642 dldir=$destdir/`dirname \$dlpath`~
12643 test -d \$dldir || mkdir -p \$dldir~
12644 $install_prog $dir/$dlname \$dldir/$dlname~
12645 chmod a+x \$dldir/$dlname~
12646 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12647 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12648 fi'
12649 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12650 dlpath=$dir/\$dldll~
12651 $RM \$dlpath'
12652 ;;
12653
12654 osf3* | osf4* | osf5*)
12655 version_type=osf
12656 need_lib_prefix=no
12657 need_version=no
12658 soname_spec='$libname$release$shared_ext$major'
12659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12660 shlibpath_var=LD_LIBRARY_PATH
12661 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12662 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12663 ;;
12664
12665 rdos*)
12666 dynamic_linker=no
12667 ;;
12668
12669 solaris*)
12670 version_type=linux # correct to gnu/linux during the next big refactor
12671 need_lib_prefix=no
12672 need_version=no
12673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12674 soname_spec='$libname$release$shared_ext$major'
12675 shlibpath_var=LD_LIBRARY_PATH
12676 shlibpath_overrides_runpath=yes
12677 hardcode_into_libs=yes
12678 # ldd complains unless libraries are executable
12679 postinstall_cmds='chmod +x $lib'
12680 ;;
12681
12682 sunos4*)
12683 version_type=sunos
12684 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12685 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12686 shlibpath_var=LD_LIBRARY_PATH
12687 shlibpath_overrides_runpath=yes
12688 if test yes = "$with_gnu_ld"; then
12689 need_lib_prefix=no
12690 fi
12691 need_version=yes
12692 ;;
12693
12694 sysv4 | sysv4.3*)
12695 version_type=linux # correct to gnu/linux during the next big refactor
12696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12697 soname_spec='$libname$release$shared_ext$major'
12698 shlibpath_var=LD_LIBRARY_PATH
12699 case $host_vendor in
12700 sni)
12701 shlibpath_overrides_runpath=no
12702 need_lib_prefix=no
12703 runpath_var=LD_RUN_PATH
12704 ;;
12705 siemens)
12706 need_lib_prefix=no
12707 ;;
12708 motorola)
12709 need_lib_prefix=no
12710 need_version=no
12711 shlibpath_overrides_runpath=no
12712 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12713 ;;
12714 esac
12715 ;;
12716
12717 sysv4*MP*)
12718 if test -d /usr/nec; then
12719 version_type=linux # correct to gnu/linux during the next big refactor
12720 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12721 soname_spec='$libname$shared_ext.$major'
12722 shlibpath_var=LD_LIBRARY_PATH
12723 fi
12724 ;;
12725
12726 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12727 version_type=sco
12728 need_lib_prefix=no
12729 need_version=no
12730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12731 soname_spec='$libname$release$shared_ext$major'
12732 shlibpath_var=LD_LIBRARY_PATH
12733 shlibpath_overrides_runpath=yes
12734 hardcode_into_libs=yes
12735 if test yes = "$with_gnu_ld"; then
12736 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12737 else
12738 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12739 case $host_os in
12740 sco3.2v5*)
12741 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12742 ;;
12743 esac
12744 fi
12745 sys_lib_dlsearch_path_spec='/usr/lib'
12746 ;;
12747
12748 tpf*)
12749 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12750 version_type=linux # correct to gnu/linux during the next big refactor
12751 need_lib_prefix=no
12752 need_version=no
12753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12754 shlibpath_var=LD_LIBRARY_PATH
12755 shlibpath_overrides_runpath=no
12756 hardcode_into_libs=yes
12757 ;;
12758
12759 uts4*)
12760 version_type=linux # correct to gnu/linux during the next big refactor
12761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12762 soname_spec='$libname$release$shared_ext$major'
12763 shlibpath_var=LD_LIBRARY_PATH
12764 ;;
12765
12766 *)
12767 dynamic_linker=no
12768 ;;
12769 esac
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12771 $as_echo "$dynamic_linker" >&6; }
12772 test no = "$dynamic_linker" && can_build_shared=no
12773
12774 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12775 if test yes = "$GCC"; then
12776 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12777 fi
12778
12779 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12780 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12781 fi
12782
12783 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12784 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12785 fi
12786
12787 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12788 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12789
12790 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12791 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12792
12793 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12794 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12893 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12894 hardcode_action=
12895 if test -n "$hardcode_libdir_flag_spec" ||
12896 test -n "$runpath_var" ||
12897 test yes = "$hardcode_automatic"; then
12898
12899 # We can hardcode non-existent directories.
12900 if test no != "$hardcode_direct" &&
12901 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12902 # have to relink, otherwise we might link with an installed library
12903 # when we should be linking with a yet-to-be-installed one
12904 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12905 test no != "$hardcode_minus_L"; then
12906 # Linking always hardcodes the temporary library directory.
12907 hardcode_action=relink
12908 else
12909 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12910 hardcode_action=immediate
12911 fi
12912 else
12913 # We cannot hardcode anything, or else we can only hardcode existing
12914 # directories.
12915 hardcode_action=unsupported
12916 fi
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12918 $as_echo "$hardcode_action" >&6; }
12919
12920 if test relink = "$hardcode_action" ||
12921 test yes = "$inherit_rpath"; then
12922 # Fast installation is not supported
12923 enable_fast_install=no
12924 elif test yes = "$shlibpath_overrides_runpath" ||
12925 test no = "$enable_shared"; then
12926 # Fast installation is not necessary
12927 enable_fast_install=needless
12928 fi
12929
12930
12931
12932
12933
12934
12935 if test yes != "$enable_dlopen"; then
12936 enable_dlopen=unknown
12937 enable_dlopen_self=unknown
12938 enable_dlopen_self_static=unknown
12939 else
12940 lt_cv_dlopen=no
12941 lt_cv_dlopen_libs=
12942
12943 case $host_os in
12944 beos*)
12945 lt_cv_dlopen=load_add_on
12946 lt_cv_dlopen_libs=
12947 lt_cv_dlopen_self=yes
12948 ;;
12949
12950 mingw* | pw32* | cegcc*)
12951 lt_cv_dlopen=LoadLibrary
12952 lt_cv_dlopen_libs=
12953 ;;
12954
12955 cygwin*)
12956 lt_cv_dlopen=dlopen
12957 lt_cv_dlopen_libs=
12958 ;;
12959
12960 darwin*)
12961 # if libdl is installed we need to link against it
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12963 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12964 if ${ac_cv_lib_dl_dlopen+:} false; then :
12965 $as_echo_n "(cached) " >&6
12966 else
12967 ac_check_lib_save_LIBS=$LIBS
12968 LIBS="-ldl $LIBS"
12969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970 /* end confdefs.h. */
12971
12972 /* Override any GCC internal prototype to avoid an error.
12973 Use char because int might match the return type of a GCC
12974 builtin and then its argument prototype would still apply. */
12975 #ifdef __cplusplus
12976 extern "C"
12977 #endif
12978 char dlopen ();
12979 int
12980 main ()
12981 {
12982 return dlopen ();
12983 ;
12984 return 0;
12985 }
12986 _ACEOF
12987 if ac_fn_c_try_link "$LINENO"; then :
12988 ac_cv_lib_dl_dlopen=yes
12989 else
12990 ac_cv_lib_dl_dlopen=no
12991 fi
12992 rm -f core conftest.err conftest.$ac_objext \
12993 conftest$ac_exeext conftest.$ac_ext
12994 LIBS=$ac_check_lib_save_LIBS
12995 fi
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12997 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12998 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12999 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13000 else
13001
13002 lt_cv_dlopen=dyld
13003 lt_cv_dlopen_libs=
13004 lt_cv_dlopen_self=yes
13005
13006 fi
13007
13008 ;;
13009
13010 tpf*)
13011 # Don't try to run any link tests for TPF. We know it's impossible
13012 # because TPF is a cross-compiler, and we know how we open DSOs.
13013 lt_cv_dlopen=dlopen
13014 lt_cv_dlopen_libs=
13015 lt_cv_dlopen_self=no
13016 ;;
13017
13018 *)
13019 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13020 if test "x$ac_cv_func_shl_load" = xyes; then :
13021 lt_cv_dlopen=shl_load
13022 else
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13024 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13025 if ${ac_cv_lib_dld_shl_load+:} false; then :
13026 $as_echo_n "(cached) " >&6
13027 else
13028 ac_check_lib_save_LIBS=$LIBS
13029 LIBS="-ldld $LIBS"
13030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h. */
13032
13033 /* Override any GCC internal prototype to avoid an error.
13034 Use char because int might match the return type of a GCC
13035 builtin and then its argument prototype would still apply. */
13036 #ifdef __cplusplus
13037 extern "C"
13038 #endif
13039 char shl_load ();
13040 int
13041 main ()
13042 {
13043 return shl_load ();
13044 ;
13045 return 0;
13046 }
13047 _ACEOF
13048 if ac_fn_c_try_link "$LINENO"; then :
13049 ac_cv_lib_dld_shl_load=yes
13050 else
13051 ac_cv_lib_dld_shl_load=no
13052 fi
13053 rm -f core conftest.err conftest.$ac_objext \
13054 conftest$ac_exeext conftest.$ac_ext
13055 LIBS=$ac_check_lib_save_LIBS
13056 fi
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13058 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13059 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13060 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13061 else
13062 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13063 if test "x$ac_cv_func_dlopen" = xyes; then :
13064 lt_cv_dlopen=dlopen
13065 else
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13067 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13068 if ${ac_cv_lib_dl_dlopen+:} false; then :
13069 $as_echo_n "(cached) " >&6
13070 else
13071 ac_check_lib_save_LIBS=$LIBS
13072 LIBS="-ldl $LIBS"
13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h. */
13075
13076 /* Override any GCC internal prototype to avoid an error.
13077 Use char because int might match the return type of a GCC
13078 builtin and then its argument prototype would still apply. */
13079 #ifdef __cplusplus
13080 extern "C"
13081 #endif
13082 char dlopen ();
13083 int
13084 main ()
13085 {
13086 return dlopen ();
13087 ;
13088 return 0;
13089 }
13090 _ACEOF
13091 if ac_fn_c_try_link "$LINENO"; then :
13092 ac_cv_lib_dl_dlopen=yes
13093 else
13094 ac_cv_lib_dl_dlopen=no
13095 fi
13096 rm -f core conftest.err conftest.$ac_objext \
13097 conftest$ac_exeext conftest.$ac_ext
13098 LIBS=$ac_check_lib_save_LIBS
13099 fi
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13101 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13102 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13103 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13104 else
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13106 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13107 if ${ac_cv_lib_svld_dlopen+:} false; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110 ac_check_lib_save_LIBS=$LIBS
13111 LIBS="-lsvld $LIBS"
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13114
13115 /* Override any GCC internal prototype to avoid an error.
13116 Use char because int might match the return type of a GCC
13117 builtin and then its argument prototype would still apply. */
13118 #ifdef __cplusplus
13119 extern "C"
13120 #endif
13121 char dlopen ();
13122 int
13123 main ()
13124 {
13125 return dlopen ();
13126 ;
13127 return 0;
13128 }
13129 _ACEOF
13130 if ac_fn_c_try_link "$LINENO"; then :
13131 ac_cv_lib_svld_dlopen=yes
13132 else
13133 ac_cv_lib_svld_dlopen=no
13134 fi
13135 rm -f core conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13137 LIBS=$ac_check_lib_save_LIBS
13138 fi
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13140 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13141 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13142 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13143 else
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13145 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13146 if ${ac_cv_lib_dld_dld_link+:} false; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 ac_check_lib_save_LIBS=$LIBS
13150 LIBS="-ldld $LIBS"
13151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13152 /* end confdefs.h. */
13153
13154 /* Override any GCC internal prototype to avoid an error.
13155 Use char because int might match the return type of a GCC
13156 builtin and then its argument prototype would still apply. */
13157 #ifdef __cplusplus
13158 extern "C"
13159 #endif
13160 char dld_link ();
13161 int
13162 main ()
13163 {
13164 return dld_link ();
13165 ;
13166 return 0;
13167 }
13168 _ACEOF
13169 if ac_fn_c_try_link "$LINENO"; then :
13170 ac_cv_lib_dld_dld_link=yes
13171 else
13172 ac_cv_lib_dld_dld_link=no
13173 fi
13174 rm -f core conftest.err conftest.$ac_objext \
13175 conftest$ac_exeext conftest.$ac_ext
13176 LIBS=$ac_check_lib_save_LIBS
13177 fi
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13179 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13180 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13181 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13182 fi
13183
13184
13185 fi
13186
13187
13188 fi
13189
13190
13191 fi
13192
13193
13194 fi
13195
13196
13197 fi
13198
13199 ;;
13200 esac
13201
13202 if test no = "$lt_cv_dlopen"; then
13203 enable_dlopen=no
13204 else
13205 enable_dlopen=yes
13206 fi
13207
13208 case $lt_cv_dlopen in
13209 dlopen)
13210 save_CPPFLAGS=$CPPFLAGS
13211 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13212
13213 save_LDFLAGS=$LDFLAGS
13214 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13215
13216 save_LIBS=$LIBS
13217 LIBS="$lt_cv_dlopen_libs $LIBS"
13218
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13220 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13221 if ${lt_cv_dlopen_self+:} false; then :
13222 $as_echo_n "(cached) " >&6
13223 else
13224 if test yes = "$cross_compiling"; then :
13225 lt_cv_dlopen_self=cross
13226 else
13227 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13228 lt_status=$lt_dlunknown
13229 cat > conftest.$ac_ext <<_LT_EOF
13230 #line $LINENO "configure"
13231 #include "confdefs.h"
13232
13233 #if HAVE_DLFCN_H
13234 #include <dlfcn.h>
13235 #endif
13236
13237 #include <stdio.h>
13238
13239 #ifdef RTLD_GLOBAL
13240 # define LT_DLGLOBAL RTLD_GLOBAL
13241 #else
13242 # ifdef DL_GLOBAL
13243 # define LT_DLGLOBAL DL_GLOBAL
13244 # else
13245 # define LT_DLGLOBAL 0
13246 # endif
13247 #endif
13248
13249 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13250 find out it does not work in some platform. */
13251 #ifndef LT_DLLAZY_OR_NOW
13252 # ifdef RTLD_LAZY
13253 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13254 # else
13255 # ifdef DL_LAZY
13256 # define LT_DLLAZY_OR_NOW DL_LAZY
13257 # else
13258 # ifdef RTLD_NOW
13259 # define LT_DLLAZY_OR_NOW RTLD_NOW
13260 # else
13261 # ifdef DL_NOW
13262 # define LT_DLLAZY_OR_NOW DL_NOW
13263 # else
13264 # define LT_DLLAZY_OR_NOW 0
13265 # endif
13266 # endif
13267 # endif
13268 # endif
13269 #endif
13270
13271 /* When -fvisibility=hidden is used, assume the code has been annotated
13272 correspondingly for the symbols needed. */
13273 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13274 int fnord () __attribute__((visibility("default")));
13275 #endif
13276
13277 int fnord () { return 42; }
13278 int main ()
13279 {
13280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13281 int status = $lt_dlunknown;
13282
13283 if (self)
13284 {
13285 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13286 else
13287 {
13288 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13289 else puts (dlerror ());
13290 }
13291 /* dlclose (self); */
13292 }
13293 else
13294 puts (dlerror ());
13295
13296 return status;
13297 }
13298 _LT_EOF
13299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13300 (eval $ac_link) 2>&5
13301 ac_status=$?
13302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13303 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13304 (./conftest; exit; ) >&5 2>/dev/null
13305 lt_status=$?
13306 case x$lt_status in
13307 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13308 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13309 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13310 esac
13311 else :
13312 # compilation failed
13313 lt_cv_dlopen_self=no
13314 fi
13315 fi
13316 rm -fr conftest*
13317
13318
13319 fi
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13321 $as_echo "$lt_cv_dlopen_self" >&6; }
13322
13323 if test yes = "$lt_cv_dlopen_self"; then
13324 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13326 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13327 if ${lt_cv_dlopen_self_static+:} false; then :
13328 $as_echo_n "(cached) " >&6
13329 else
13330 if test yes = "$cross_compiling"; then :
13331 lt_cv_dlopen_self_static=cross
13332 else
13333 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13334 lt_status=$lt_dlunknown
13335 cat > conftest.$ac_ext <<_LT_EOF
13336 #line $LINENO "configure"
13337 #include "confdefs.h"
13338
13339 #if HAVE_DLFCN_H
13340 #include <dlfcn.h>
13341 #endif
13342
13343 #include <stdio.h>
13344
13345 #ifdef RTLD_GLOBAL
13346 # define LT_DLGLOBAL RTLD_GLOBAL
13347 #else
13348 # ifdef DL_GLOBAL
13349 # define LT_DLGLOBAL DL_GLOBAL
13350 # else
13351 # define LT_DLGLOBAL 0
13352 # endif
13353 #endif
13354
13355 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13356 find out it does not work in some platform. */
13357 #ifndef LT_DLLAZY_OR_NOW
13358 # ifdef RTLD_LAZY
13359 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13360 # else
13361 # ifdef DL_LAZY
13362 # define LT_DLLAZY_OR_NOW DL_LAZY
13363 # else
13364 # ifdef RTLD_NOW
13365 # define LT_DLLAZY_OR_NOW RTLD_NOW
13366 # else
13367 # ifdef DL_NOW
13368 # define LT_DLLAZY_OR_NOW DL_NOW
13369 # else
13370 # define LT_DLLAZY_OR_NOW 0
13371 # endif
13372 # endif
13373 # endif
13374 # endif
13375 #endif
13376
13377 /* When -fvisibility=hidden is used, assume the code has been annotated
13378 correspondingly for the symbols needed. */
13379 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13380 int fnord () __attribute__((visibility("default")));
13381 #endif
13382
13383 int fnord () { return 42; }
13384 int main ()
13385 {
13386 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13387 int status = $lt_dlunknown;
13388
13389 if (self)
13390 {
13391 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13392 else
13393 {
13394 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13395 else puts (dlerror ());
13396 }
13397 /* dlclose (self); */
13398 }
13399 else
13400 puts (dlerror ());
13401
13402 return status;
13403 }
13404 _LT_EOF
13405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13406 (eval $ac_link) 2>&5
13407 ac_status=$?
13408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13409 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13410 (./conftest; exit; ) >&5 2>/dev/null
13411 lt_status=$?
13412 case x$lt_status in
13413 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13414 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13415 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13416 esac
13417 else :
13418 # compilation failed
13419 lt_cv_dlopen_self_static=no
13420 fi
13421 fi
13422 rm -fr conftest*
13423
13424
13425 fi
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13427 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13428 fi
13429
13430 CPPFLAGS=$save_CPPFLAGS
13431 LDFLAGS=$save_LDFLAGS
13432 LIBS=$save_LIBS
13433 ;;
13434 esac
13435
13436 case $lt_cv_dlopen_self in
13437 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13438 *) enable_dlopen_self=unknown ;;
13439 esac
13440
13441 case $lt_cv_dlopen_self_static in
13442 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13443 *) enable_dlopen_self_static=unknown ;;
13444 esac
13445 fi
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463 striplib=
13464 old_striplib=
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13466 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13467 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13468 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13469 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13471 $as_echo "yes" >&6; }
13472 else
13473 # FIXME - insert some real tests, host_os isn't really good enough
13474 case $host_os in
13475 darwin*)
13476 if test -n "$STRIP"; then
13477 striplib="$STRIP -x"
13478 old_striplib="$STRIP -S"
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13480 $as_echo "yes" >&6; }
13481 else
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483 $as_echo "no" >&6; }
13484 fi
13485 ;;
13486 *)
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13488 $as_echo "no" >&6; }
13489 ;;
13490 esac
13491 fi
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504 # Report what library types will actually be built
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13506 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13508 $as_echo "$can_build_shared" >&6; }
13509
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13511 $as_echo_n "checking whether to build shared libraries... " >&6; }
13512 test no = "$can_build_shared" && enable_shared=no
13513
13514 # On AIX, shared libraries and static libraries use the same namespace, and
13515 # are all built from PIC.
13516 case $host_os in
13517 aix3*)
13518 test yes = "$enable_shared" && enable_static=no
13519 if test -n "$RANLIB"; then
13520 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13521 postinstall_cmds='$RANLIB $lib'
13522 fi
13523 ;;
13524
13525 aix[4-9]*)
13526 if test ia64 != "$host_cpu"; then
13527 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13528 yes,aix,yes) ;; # shared object as lib.so file only
13529 yes,svr4,*) ;; # shared object as lib.so archive member only
13530 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13531 esac
13532 fi
13533 ;;
13534 esac
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13536 $as_echo "$enable_shared" >&6; }
13537
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13539 $as_echo_n "checking whether to build static libraries... " >&6; }
13540 # Make sure either enable_shared or enable_static is yes.
13541 test yes = "$enable_shared" || enable_static=yes
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13543 $as_echo "$enable_static" >&6; }
13544
13545
13546
13547
13548 fi
13549 ac_ext=c
13550 ac_cpp='$CPP $CPPFLAGS'
13551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13554
13555 CC=$lt_save_CC
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571 ac_config_commands="$ac_config_commands libtool"
13572
13573
13574
13575
13576 # Only expand once:
13577
13578
13579
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13581 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13582 if ${ac_cv_c_bigendian+:} false; then :
13583 $as_echo_n "(cached) " >&6
13584 else
13585 ac_cv_c_bigendian=unknown
13586 # See if we're dealing with a universal compiler.
13587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13589 #ifndef __APPLE_CC__
13590 not a universal capable compiler
13591 #endif
13592 typedef int dummy;
13593
13594 _ACEOF
13595 if ac_fn_c_try_compile "$LINENO"; then :
13596
13597 # Check for potential -arch flags. It is not universal unless
13598 # there are at least two -arch flags with different values.
13599 ac_arch=
13600 ac_prev=
13601 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13602 if test -n "$ac_prev"; then
13603 case $ac_word in
13604 i?86 | x86_64 | ppc | ppc64)
13605 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13606 ac_arch=$ac_word
13607 else
13608 ac_cv_c_bigendian=universal
13609 break
13610 fi
13611 ;;
13612 esac
13613 ac_prev=
13614 elif test "x$ac_word" = "x-arch"; then
13615 ac_prev=arch
13616 fi
13617 done
13618 fi
13619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13620 if test $ac_cv_c_bigendian = unknown; then
13621 # See if sys/param.h defines the BYTE_ORDER macro.
13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h. */
13624 #include <sys/types.h>
13625 #include <sys/param.h>
13626
13627 int
13628 main ()
13629 {
13630 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13631 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13632 && LITTLE_ENDIAN)
13633 bogus endian macros
13634 #endif
13635
13636 ;
13637 return 0;
13638 }
13639 _ACEOF
13640 if ac_fn_c_try_compile "$LINENO"; then :
13641 # It does; now see whether it defined to BIG_ENDIAN or not.
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13644 #include <sys/types.h>
13645 #include <sys/param.h>
13646
13647 int
13648 main ()
13649 {
13650 #if BYTE_ORDER != BIG_ENDIAN
13651 not big endian
13652 #endif
13653
13654 ;
13655 return 0;
13656 }
13657 _ACEOF
13658 if ac_fn_c_try_compile "$LINENO"; then :
13659 ac_cv_c_bigendian=yes
13660 else
13661 ac_cv_c_bigendian=no
13662 fi
13663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13664 fi
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 fi
13667 if test $ac_cv_c_bigendian = unknown; then
13668 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h. */
13671 #include <limits.h>
13672
13673 int
13674 main ()
13675 {
13676 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13677 bogus endian macros
13678 #endif
13679
13680 ;
13681 return 0;
13682 }
13683 _ACEOF
13684 if ac_fn_c_try_compile "$LINENO"; then :
13685 # It does; now see whether it defined to _BIG_ENDIAN or not.
13686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h. */
13688 #include <limits.h>
13689
13690 int
13691 main ()
13692 {
13693 #ifndef _BIG_ENDIAN
13694 not big endian
13695 #endif
13696
13697 ;
13698 return 0;
13699 }
13700 _ACEOF
13701 if ac_fn_c_try_compile "$LINENO"; then :
13702 ac_cv_c_bigendian=yes
13703 else
13704 ac_cv_c_bigendian=no
13705 fi
13706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13707 fi
13708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13709 fi
13710 if test $ac_cv_c_bigendian = unknown; then
13711 # Compile a test program.
13712 if test "$cross_compiling" = yes; then :
13713 # Try to guess by grepping values from an object file.
13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h. */
13716 short int ascii_mm[] =
13717 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13718 short int ascii_ii[] =
13719 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13720 int use_ascii (int i) {
13721 return ascii_mm[i] + ascii_ii[i];
13722 }
13723 short int ebcdic_ii[] =
13724 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13725 short int ebcdic_mm[] =
13726 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13727 int use_ebcdic (int i) {
13728 return ebcdic_mm[i] + ebcdic_ii[i];
13729 }
13730 extern int foo;
13731
13732 int
13733 main ()
13734 {
13735 return use_ascii (foo) == use_ebcdic (foo);
13736 ;
13737 return 0;
13738 }
13739 _ACEOF
13740 if ac_fn_c_try_compile "$LINENO"; then :
13741 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13742 ac_cv_c_bigendian=yes
13743 fi
13744 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13745 if test "$ac_cv_c_bigendian" = unknown; then
13746 ac_cv_c_bigendian=no
13747 else
13748 # finding both strings is unlikely to happen, but who knows?
13749 ac_cv_c_bigendian=unknown
13750 fi
13751 fi
13752 fi
13753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13754 else
13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13757 $ac_includes_default
13758 int
13759 main ()
13760 {
13761
13762 /* Are we little or big endian? From Harbison&Steele. */
13763 union
13764 {
13765 long int l;
13766 char c[sizeof (long int)];
13767 } u;
13768 u.l = 1;
13769 return u.c[sizeof (long int) - 1] == 1;
13770
13771 ;
13772 return 0;
13773 }
13774 _ACEOF
13775 if ac_fn_c_try_run "$LINENO"; then :
13776 ac_cv_c_bigendian=no
13777 else
13778 ac_cv_c_bigendian=yes
13779 fi
13780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13781 conftest.$ac_objext conftest.beam conftest.$ac_ext
13782 fi
13783
13784 fi
13785 fi
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13787 $as_echo "$ac_cv_c_bigendian" >&6; }
13788 case $ac_cv_c_bigendian in #(
13789 yes)
13790 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13791 ;; #(
13792 no)
13793 ;; #(
13794 universal)
13795
13796 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13797
13798 ;; #(
13799 *)
13800 as_fn_error $? "unknown endianness
13801 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13802 esac
13803
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13805 $as_echo_n "checking for inline... " >&6; }
13806 if ${ac_cv_c_inline+:} false; then :
13807 $as_echo_n "(cached) " >&6
13808 else
13809 ac_cv_c_inline=no
13810 for ac_kw in inline __inline__ __inline; do
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13813 #ifndef __cplusplus
13814 typedef int foo_t;
13815 static $ac_kw foo_t static_foo () {return 0; }
13816 $ac_kw foo_t foo () {return 0; }
13817 #endif
13818
13819 _ACEOF
13820 if ac_fn_c_try_compile "$LINENO"; then :
13821 ac_cv_c_inline=$ac_kw
13822 fi
13823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13824 test "$ac_cv_c_inline" != no && break
13825 done
13826
13827 fi
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13829 $as_echo "$ac_cv_c_inline" >&6; }
13830
13831 case $ac_cv_c_inline in
13832 inline | yes) ;;
13833 *)
13834 case $ac_cv_c_inline in
13835 no) ac_val=;;
13836 *) ac_val=$ac_cv_c_inline;;
13837 esac
13838 cat >>confdefs.h <<_ACEOF
13839 #ifndef __cplusplus
13840 #define inline $ac_val
13841 #endif
13842 _ACEOF
13843 ;;
13844 esac
13845
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13847 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13848 if ${ac_cv_c_const+:} false; then :
13849 $as_echo_n "(cached) " >&6
13850 else
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853
13854 int
13855 main ()
13856 {
13857
13858 #ifndef __cplusplus
13859 /* Ultrix mips cc rejects this sort of thing. */
13860 typedef int charset[2];
13861 const charset cs = { 0, 0 };
13862 /* SunOS 4.1.1 cc rejects this. */
13863 char const *const *pcpcc;
13864 char **ppc;
13865 /* NEC SVR4.0.2 mips cc rejects this. */
13866 struct point {int x, y;};
13867 static struct point const zero = {0,0};
13868 /* AIX XL C 1.02.0.0 rejects this.
13869 It does not let you subtract one const X* pointer from another in
13870 an arm of an if-expression whose if-part is not a constant
13871 expression */
13872 const char *g = "string";
13873 pcpcc = &g + (g ? g-g : 0);
13874 /* HPUX 7.0 cc rejects these. */
13875 ++pcpcc;
13876 ppc = (char**) pcpcc;
13877 pcpcc = (char const *const *) ppc;
13878 { /* SCO 3.2v4 cc rejects this sort of thing. */
13879 char tx;
13880 char *t = &tx;
13881 char const *s = 0 ? (char *) 0 : (char const *) 0;
13882
13883 *t++ = 0;
13884 if (s) return 0;
13885 }
13886 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13887 int x[] = {25, 17};
13888 const int *foo = &x[0];
13889 ++foo;
13890 }
13891 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13892 typedef const int *iptr;
13893 iptr p = 0;
13894 ++p;
13895 }
13896 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13897 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13898 struct s { int j; const int *ap[3]; } bx;
13899 struct s *b = &bx; b->j = 5;
13900 }
13901 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13902 const int foo = 10;
13903 if (!foo) return 0;
13904 }
13905 return !cs[0] && !zero.x;
13906 #endif
13907
13908 ;
13909 return 0;
13910 }
13911 _ACEOF
13912 if ac_fn_c_try_compile "$LINENO"; then :
13913 ac_cv_c_const=yes
13914 else
13915 ac_cv_c_const=no
13916 fi
13917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 fi
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13920 $as_echo "$ac_cv_c_const" >&6; }
13921 if test $ac_cv_c_const = no; then
13922
13923 $as_echo "#define const /**/" >>confdefs.h
13924
13925 fi
13926
13927
13928 if test "$USE_MAINTAINER_MODE" = yes; then
13929 # Extract the first word of "asciidoc", so it can be a program name with args.
13930 set dummy asciidoc; ac_word=$2
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13932 $as_echo_n "checking for $ac_word... " >&6; }
13933 if ${ac_cv_path_PATH_ASCIIDOC+:} false; then :
13934 $as_echo_n "(cached) " >&6
13935 else
13936 case $PATH_ASCIIDOC in
13937 [\\/]* | ?:[\\/]*)
13938 ac_cv_path_PATH_ASCIIDOC="$PATH_ASCIIDOC" # Let the user override the test with a path.
13939 ;;
13940 *)
13941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13942 for as_dir in $PATH
13943 do
13944 IFS=$as_save_IFS
13945 test -z "$as_dir" && as_dir=.
13946 for ac_exec_ext in '' $ac_executable_extensions; do
13947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13948 ac_cv_path_PATH_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
13949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13950 break 2
13951 fi
13952 done
13953 done
13954 IFS=$as_save_IFS
13955
13956 ;;
13957 esac
13958 fi
13959 PATH_ASCIIDOC=$ac_cv_path_PATH_ASCIIDOC
13960 if test -n "$PATH_ASCIIDOC"; then
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_ASCIIDOC" >&5
13962 $as_echo "$PATH_ASCIIDOC" >&6; }
13963 else
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13965 $as_echo "no" >&6; }
13966 fi
13967
13968
13969 if test -z "$PATH_ASCIIDOC"; then
13970 as_fn_error $? "asciidoc is not available and maintainer mode is enabled" "$LINENO" 5
13971 fi
13972
13973 # Extract the first word of "doxygen", so it can be a program name with args.
13974 set dummy doxygen; ac_word=$2
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13976 $as_echo_n "checking for $ac_word... " >&6; }
13977 if ${ac_cv_path_PATH_DOXYGEN+:} false; then :
13978 $as_echo_n "(cached) " >&6
13979 else
13980 case $PATH_DOXYGEN in
13981 [\\/]* | ?:[\\/]*)
13982 ac_cv_path_PATH_DOXYGEN="$PATH_DOXYGEN" # Let the user override the test with a path.
13983 ;;
13984 *)
13985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13986 for as_dir in $PATH
13987 do
13988 IFS=$as_save_IFS
13989 test -z "$as_dir" && as_dir=.
13990 for ac_exec_ext in '' $ac_executable_extensions; do
13991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13992 ac_cv_path_PATH_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
13993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13994 break 2
13995 fi
13996 done
13997 done
13998 IFS=$as_save_IFS
13999
14000 ;;
14001 esac
14002 fi
14003 PATH_DOXYGEN=$ac_cv_path_PATH_DOXYGEN
14004 if test -n "$PATH_DOXYGEN"; then
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_DOXYGEN" >&5
14006 $as_echo "$PATH_DOXYGEN" >&6; }
14007 else
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 $as_echo "no" >&6; }
14010 fi
14011
14012
14013 if test -z "$PATH_DOXYGEN"; then
14014 as_fn_error $? "doxygen is not available and maintainer mode is enabled" "$LINENO" 5
14015 fi
14016
14017 # Extract the first word of "xmlto", so it can be a program name with args.
14018 set dummy xmlto; ac_word=$2
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14020 $as_echo_n "checking for $ac_word... " >&6; }
14021 if ${ac_cv_path_PATH_XMLTO+:} false; then :
14022 $as_echo_n "(cached) " >&6
14023 else
14024 case $PATH_XMLTO in
14025 [\\/]* | ?:[\\/]*)
14026 ac_cv_path_PATH_XMLTO="$PATH_XMLTO" # Let the user override the test with a path.
14027 ;;
14028 *)
14029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14030 for as_dir in $PATH
14031 do
14032 IFS=$as_save_IFS
14033 test -z "$as_dir" && as_dir=.
14034 for ac_exec_ext in '' $ac_executable_extensions; do
14035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14036 ac_cv_path_PATH_XMLTO="$as_dir/$ac_word$ac_exec_ext"
14037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14038 break 2
14039 fi
14040 done
14041 done
14042 IFS=$as_save_IFS
14043
14044 ;;
14045 esac
14046 fi
14047 PATH_XMLTO=$ac_cv_path_PATH_XMLTO
14048 if test -n "$PATH_XMLTO"; then
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_XMLTO" >&5
14050 $as_echo "$PATH_XMLTO" >&6; }
14051 else
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053 $as_echo "no" >&6; }
14054 fi
14055
14056
14057 if test -z "$PATH_XMLTO"; then
14058 as_fn_error $? "xmlto is not available and maintainer mode is enabled" "$LINENO" 5
14059 fi
14060 fi
14061
14062 # Extract the first word of "perl", so it can be a program name with args.
14063 set dummy perl; ac_word=$2
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14065 $as_echo_n "checking for $ac_word... " >&6; }
14066 if ${ac_cv_path_PERL+:} false; then :
14067 $as_echo_n "(cached) " >&6
14068 else
14069 case $PERL in
14070 [\\/]* | ?:[\\/]*)
14071 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
14072 ;;
14073 *)
14074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14075 for as_dir in $PATH
14076 do
14077 IFS=$as_save_IFS
14078 test -z "$as_dir" && as_dir=.
14079 for ac_exec_ext in '' $ac_executable_extensions; do
14080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14081 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
14082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14083 break 2
14084 fi
14085 done
14086 done
14087 IFS=$as_save_IFS
14088
14089 ;;
14090 esac
14091 fi
14092 PERL=$ac_cv_path_PERL
14093 if test -n "$PERL"; then
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
14095 $as_echo "$PERL" >&6; }
14096 else
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14098 $as_echo "no" >&6; }
14099 fi
14100
14101
14102 if test -z "$PERL"; then
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl is needed to run the test suite" >&5
14104 $as_echo "$as_me: WARNING: perl is needed to run the test suite" >&2;}
14105 fi
14106
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14114 $as_echo_n "checking size of short... " >&6; }
14115 if ${ac_cv_sizeof_short+:} false; then :
14116 $as_echo_n "(cached) " >&6
14117 else
14118 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14119
14120 else
14121 if test "$ac_cv_type_short" = yes; then
14122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14124 as_fn_error 77 "cannot compute sizeof (short)
14125 See \`config.log' for more details" "$LINENO" 5; }
14126 else
14127 ac_cv_sizeof_short=0
14128 fi
14129 fi
14130
14131 fi
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14133 $as_echo "$ac_cv_sizeof_short" >&6; }
14134
14135
14136
14137 cat >>confdefs.h <<_ACEOF
14138 #define SIZEOF_SHORT $ac_cv_sizeof_short
14139 _ACEOF
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
14147 $as_echo_n "checking size of float... " >&6; }
14148 if ${ac_cv_sizeof_float+:} false; then :
14149 $as_echo_n "(cached) " >&6
14150 else
14151 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
14152
14153 else
14154 if test "$ac_cv_type_float" = yes; then
14155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14157 as_fn_error 77 "cannot compute sizeof (float)
14158 See \`config.log' for more details" "$LINENO" 5; }
14159 else
14160 ac_cv_sizeof_float=0
14161 fi
14162 fi
14163
14164 fi
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
14166 $as_echo "$ac_cv_sizeof_float" >&6; }
14167
14168
14169
14170 cat >>confdefs.h <<_ACEOF
14171 #define SIZEOF_FLOAT $ac_cv_sizeof_float
14172 _ACEOF
14173
14174
14175
14176 if test "$ac_cv_sizeof_short" != "2"; then
14177 as_fn_error $? "Size of short isn't 16-bits - please report this to $PACKAGE_BUGREPORT" "$LINENO" 5
14178 fi
14179
14180 if test "$ac_cv_sizeof_float" != "4"; then
14181 as_fn_error $? "Size of float isn't 32-bits - please report this to $PACKAGE_BUGREPORT" "$LINENO" 5
14182 fi
14183
14184
14185
14186
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14188 $as_echo_n "checking for sqrt in -lm... " >&6; }
14189 if ${ac_cv_lib_m_sqrt+:} false; then :
14190 $as_echo_n "(cached) " >&6
14191 else
14192 ac_check_lib_save_LIBS=$LIBS
14193 LIBS="-lm $LIBS"
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196
14197 /* Override any GCC internal prototype to avoid an error.
14198 Use char because int might match the return type of a GCC
14199 builtin and then its argument prototype would still apply. */
14200 #ifdef __cplusplus
14201 extern "C"
14202 #endif
14203 char sqrt ();
14204 int
14205 main ()
14206 {
14207 return sqrt ();
14208 ;
14209 return 0;
14210 }
14211 _ACEOF
14212 if ac_fn_c_try_link "$LINENO"; then :
14213 ac_cv_lib_m_sqrt=yes
14214 else
14215 ac_cv_lib_m_sqrt=no
14216 fi
14217 rm -f core conftest.err conftest.$ac_objext \
14218 conftest$ac_exeext conftest.$ac_ext
14219 LIBS=$ac_check_lib_save_LIBS
14220 fi
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14222 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14223 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
14224 cat >>confdefs.h <<_ACEOF
14225 #define HAVE_LIBM 1
14226 _ACEOF
14227
14228 LIBS="-lm $LIBS"
14229
14230 fi
14231
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrintf in -lm" >&5
14233 $as_echo_n "checking for lrintf in -lm... " >&6; }
14234 if ${ac_cv_lib_m_lrintf+:} false; then :
14235 $as_echo_n "(cached) " >&6
14236 else
14237 ac_check_lib_save_LIBS=$LIBS
14238 LIBS="-lm $LIBS"
14239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240 /* end confdefs.h. */
14241
14242 /* Override any GCC internal prototype to avoid an error.
14243 Use char because int might match the return type of a GCC
14244 builtin and then its argument prototype would still apply. */
14245 #ifdef __cplusplus
14246 extern "C"
14247 #endif
14248 char lrintf ();
14249 int
14250 main ()
14251 {
14252 return lrintf ();
14253 ;
14254 return 0;
14255 }
14256 _ACEOF
14257 if ac_fn_c_try_link "$LINENO"; then :
14258 ac_cv_lib_m_lrintf=yes
14259 else
14260 ac_cv_lib_m_lrintf=no
14261 fi
14262 rm -f core conftest.err conftest.$ac_objext \
14263 conftest$ac_exeext conftest.$ac_ext
14264 LIBS=$ac_check_lib_save_LIBS
14265 fi
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lrintf" >&5
14267 $as_echo "$ac_cv_lib_m_lrintf" >&6; }
14268 if test "x$ac_cv_lib_m_lrintf" = xyes; then :
14269 cat >>confdefs.h <<_ACEOF
14270 #define HAVE_LIBM 1
14271 _ACEOF
14272
14273 LIBS="-lm $LIBS"
14274
14275 fi
14276
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf in -lmx" >&5
14278 $as_echo_n "checking for powf in -lmx... " >&6; }
14279 if ${ac_cv_lib_mx_powf+:} false; then :
14280 $as_echo_n "(cached) " >&6
14281 else
14282 ac_check_lib_save_LIBS=$LIBS
14283 LIBS="-lmx $LIBS"
14284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h. */
14286
14287 /* Override any GCC internal prototype to avoid an error.
14288 Use char because int might match the return type of a GCC
14289 builtin and then its argument prototype would still apply. */
14290 #ifdef __cplusplus
14291 extern "C"
14292 #endif
14293 char powf ();
14294 int
14295 main ()
14296 {
14297 return powf ();
14298 ;
14299 return 0;
14300 }
14301 _ACEOF
14302 if ac_fn_c_try_link "$LINENO"; then :
14303 ac_cv_lib_mx_powf=yes
14304 else
14305 ac_cv_lib_mx_powf=no
14306 fi
14307 rm -f core conftest.err conftest.$ac_objext \
14308 conftest$ac_exeext conftest.$ac_ext
14309 LIBS=$ac_check_lib_save_LIBS
14310 fi
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mx_powf" >&5
14312 $as_echo "$ac_cv_lib_mx_powf" >&6; }
14313 if test "x$ac_cv_lib_mx_powf" = xyes; then :
14314 cat >>confdefs.h <<_ACEOF
14315 #define HAVE_LIBMX 1
14316 _ACEOF
14317
14318 LIBS="-lmx $LIBS"
14319
14320 fi
14321
14322
14323 # Check whether --enable-sndfile was given.
14324 if test "${enable_sndfile+set}" = set; then :
14325 enableval=$enable_sndfile;
14326 fi
14327
14328
14329 if test "${enable_sndfile}" != "no" ; then
14330
14331
14332
14333
14334
14335
14336
14337 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14338 if test -n "$ac_tool_prefix"; then
14339 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14340 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14342 $as_echo_n "checking for $ac_word... " >&6; }
14343 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14344 $as_echo_n "(cached) " >&6
14345 else
14346 case $PKG_CONFIG in
14347 [\\/]* | ?:[\\/]*)
14348 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14349 ;;
14350 *)
14351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352 for as_dir in $PATH
14353 do
14354 IFS=$as_save_IFS
14355 test -z "$as_dir" && as_dir=.
14356 for ac_exec_ext in '' $ac_executable_extensions; do
14357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14358 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14360 break 2
14361 fi
14362 done
14363 done
14364 IFS=$as_save_IFS
14365
14366 ;;
14367 esac
14368 fi
14369 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14370 if test -n "$PKG_CONFIG"; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14372 $as_echo "$PKG_CONFIG" >&6; }
14373 else
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14375 $as_echo "no" >&6; }
14376 fi
14377
14378
14379 fi
14380 if test -z "$ac_cv_path_PKG_CONFIG"; then
14381 ac_pt_PKG_CONFIG=$PKG_CONFIG
14382 # Extract the first word of "pkg-config", so it can be a program name with args.
14383 set dummy pkg-config; ac_word=$2
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14385 $as_echo_n "checking for $ac_word... " >&6; }
14386 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14387 $as_echo_n "(cached) " >&6
14388 else
14389 case $ac_pt_PKG_CONFIG in
14390 [\\/]* | ?:[\\/]*)
14391 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14392 ;;
14393 *)
14394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395 for as_dir in $PATH
14396 do
14397 IFS=$as_save_IFS
14398 test -z "$as_dir" && as_dir=.
14399 for ac_exec_ext in '' $ac_executable_extensions; do
14400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14401 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14403 break 2
14404 fi
14405 done
14406 done
14407 IFS=$as_save_IFS
14408
14409 ;;
14410 esac
14411 fi
14412 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14413 if test -n "$ac_pt_PKG_CONFIG"; then
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14415 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14416 else
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14418 $as_echo "no" >&6; }
14419 fi
14420
14421 if test "x$ac_pt_PKG_CONFIG" = x; then
14422 PKG_CONFIG=""
14423 else
14424 case $cross_compiling:$ac_tool_warned in
14425 yes:)
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14428 ac_tool_warned=yes ;;
14429 esac
14430 PKG_CONFIG=$ac_pt_PKG_CONFIG
14431 fi
14432 else
14433 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14434 fi
14435
14436 fi
14437 if test -n "$PKG_CONFIG"; then
14438 _pkg_min_version=0.9.0
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14440 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14441 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14443 $as_echo "yes" >&6; }
14444 else
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14446 $as_echo "no" >&6; }
14447 PKG_CONFIG=""
14448 fi
14449 fi
14450
14451 pkg_failed=no
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5
14453 $as_echo_n "checking for SNDFILE... " >&6; }
14454
14455 if test -n "$SNDFILE_CFLAGS"; then
14456 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
14457 elif test -n "$PKG_CONFIG"; then
14458 if test -n "$PKG_CONFIG" && \
14459 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.0\""; } >&5
14460 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.0") 2>&5
14461 ac_status=$?
14462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14463 test $ac_status = 0; }; then
14464 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.0" 2>/dev/null`
14465 test "x$?" != "x0" && pkg_failed=yes
14466 else
14467 pkg_failed=yes
14468 fi
14469 else
14470 pkg_failed=untried
14471 fi
14472 if test -n "$SNDFILE_LIBS"; then
14473 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
14474 elif test -n "$PKG_CONFIG"; then
14475 if test -n "$PKG_CONFIG" && \
14476 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.0\""; } >&5
14477 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.0") 2>&5
14478 ac_status=$?
14479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14480 test $ac_status = 0; }; then
14481 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.0" 2>/dev/null`
14482 test "x$?" != "x0" && pkg_failed=yes
14483 else
14484 pkg_failed=yes
14485 fi
14486 else
14487 pkg_failed=untried
14488 fi
14489
14490
14491
14492 if test $pkg_failed = yes; then
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14494 $as_echo "no" >&6; }
14495
14496 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14497 _pkg_short_errors_supported=yes
14498 else
14499 _pkg_short_errors_supported=no
14500 fi
14501 if test $_pkg_short_errors_supported = yes; then
14502 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.0" 2>&1`
14503 else
14504 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.0" 2>&1`
14505 fi
14506 # Put the nasty error message in config.log where it belongs
14507 echo "$SNDFILE_PKG_ERRORS" >&5
14508
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sf_command in -lsndfile" >&5
14510 $as_echo_n "checking for sf_command in -lsndfile... " >&6; }
14511 if ${ac_cv_lib_sndfile_sf_command+:} false; then :
14512 $as_echo_n "(cached) " >&6
14513 else
14514 ac_check_lib_save_LIBS=$LIBS
14515 LIBS="-lsndfile $LIBS"
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14518
14519 /* Override any GCC internal prototype to avoid an error.
14520 Use char because int might match the return type of a GCC
14521 builtin and then its argument prototype would still apply. */
14522 #ifdef __cplusplus
14523 extern "C"
14524 #endif
14525 char sf_command ();
14526 int
14527 main ()
14528 {
14529 return sf_command ();
14530 ;
14531 return 0;
14532 }
14533 _ACEOF
14534 if ac_fn_c_try_link "$LINENO"; then :
14535 ac_cv_lib_sndfile_sf_command=yes
14536 else
14537 ac_cv_lib_sndfile_sf_command=no
14538 fi
14539 rm -f core conftest.err conftest.$ac_objext \
14540 conftest$ac_exeext conftest.$ac_ext
14541 LIBS=$ac_check_lib_save_LIBS
14542 fi
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndfile_sf_command" >&5
14544 $as_echo "$ac_cv_lib_sndfile_sf_command" >&6; }
14545 if test "x$ac_cv_lib_sndfile_sf_command" = xyes; then :
14546 ac_fn_c_check_header_mongrel "$LINENO" "sndfile.h" "ac_cv_header_sndfile_h" "$ac_includes_default"
14547 if test "x$ac_cv_header_sndfile_h" = xyes; then :
14548 HAVE_SNDFILE="yes"
14549 SNDFILE_CFLAGS=""
14550 SNDFILE_LIBS="-lsndfile"
14551 else
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find sndfile.h on your system" >&5
14553 $as_echo "$as_me: WARNING: Can't find sndfile.h on your system" >&2;}
14554 fi
14555
14556
14557 else
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find libsndfile library on your system" >&5
14559 $as_echo "$as_me: WARNING: Can't find libsndfile library on your system" >&2;}
14560
14561 fi
14562
14563
14564 elif test $pkg_failed = untried; then
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14566 $as_echo "no" >&6; }
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sf_command in -lsndfile" >&5
14568 $as_echo_n "checking for sf_command in -lsndfile... " >&6; }
14569 if ${ac_cv_lib_sndfile_sf_command+:} false; then :
14570 $as_echo_n "(cached) " >&6
14571 else
14572 ac_check_lib_save_LIBS=$LIBS
14573 LIBS="-lsndfile $LIBS"
14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575 /* end confdefs.h. */
14576
14577 /* Override any GCC internal prototype to avoid an error.
14578 Use char because int might match the return type of a GCC
14579 builtin and then its argument prototype would still apply. */
14580 #ifdef __cplusplus
14581 extern "C"
14582 #endif
14583 char sf_command ();
14584 int
14585 main ()
14586 {
14587 return sf_command ();
14588 ;
14589 return 0;
14590 }
14591 _ACEOF
14592 if ac_fn_c_try_link "$LINENO"; then :
14593 ac_cv_lib_sndfile_sf_command=yes
14594 else
14595 ac_cv_lib_sndfile_sf_command=no
14596 fi
14597 rm -f core conftest.err conftest.$ac_objext \
14598 conftest$ac_exeext conftest.$ac_ext
14599 LIBS=$ac_check_lib_save_LIBS
14600 fi
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndfile_sf_command" >&5
14602 $as_echo "$ac_cv_lib_sndfile_sf_command" >&6; }
14603 if test "x$ac_cv_lib_sndfile_sf_command" = xyes; then :
14604 ac_fn_c_check_header_mongrel "$LINENO" "sndfile.h" "ac_cv_header_sndfile_h" "$ac_includes_default"
14605 if test "x$ac_cv_header_sndfile_h" = xyes; then :
14606 HAVE_SNDFILE="yes"
14607 SNDFILE_CFLAGS=""
14608 SNDFILE_LIBS="-lsndfile"
14609 else
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find sndfile.h on your system" >&5
14611 $as_echo "$as_me: WARNING: Can't find sndfile.h on your system" >&2;}
14612 fi
14613
14614
14615 else
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find libsndfile library on your system" >&5
14617 $as_echo "$as_me: WARNING: Can't find libsndfile library on your system" >&2;}
14618
14619 fi
14620
14621
14622 else
14623 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
14624 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14626 $as_echo "yes" >&6; }
14627 HAVE_SNDFILE="yes"
14628 fi
14629 fi
14630
14631
14632
14633
14634
14635
14636
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14638 $as_echo_n "checking for ANSI C header files... " >&6; }
14639 if ${ac_cv_header_stdc+:} false; then :
14640 $as_echo_n "(cached) " >&6
14641 else
14642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643 /* end confdefs.h. */
14644 #include <stdlib.h>
14645 #include <stdarg.h>
14646 #include <string.h>
14647 #include <float.h>
14648
14649 int
14650 main ()
14651 {
14652
14653 ;
14654 return 0;
14655 }
14656 _ACEOF
14657 if ac_fn_c_try_compile "$LINENO"; then :
14658 ac_cv_header_stdc=yes
14659 else
14660 ac_cv_header_stdc=no
14661 fi
14662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14663
14664 if test $ac_cv_header_stdc = yes; then
14665 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h. */
14668 #include <string.h>
14669
14670 _ACEOF
14671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14672 $EGREP "memchr" >/dev/null 2>&1; then :
14673
14674 else
14675 ac_cv_header_stdc=no
14676 fi
14677 rm -f conftest*
14678
14679 fi
14680
14681 if test $ac_cv_header_stdc = yes; then
14682 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h. */
14685 #include <stdlib.h>
14686
14687 _ACEOF
14688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14689 $EGREP "free" >/dev/null 2>&1; then :
14690
14691 else
14692 ac_cv_header_stdc=no
14693 fi
14694 rm -f conftest*
14695
14696 fi
14697
14698 if test $ac_cv_header_stdc = yes; then
14699 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14700 if test "$cross_compiling" = yes; then :
14701 :
14702 else
14703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h. */
14705 #include <ctype.h>
14706 #include <stdlib.h>
14707 #if ((' ' & 0x0FF) == 0x020)
14708 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14709 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14710 #else
14711 # define ISLOWER(c) \
14712 (('a' <= (c) && (c) <= 'i') \
14713 || ('j' <= (c) && (c) <= 'r') \
14714 || ('s' <= (c) && (c) <= 'z'))
14715 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14716 #endif
14717
14718 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14719 int
14720 main ()
14721 {
14722 int i;
14723 for (i = 0; i < 256; i++)
14724 if (XOR (islower (i), ISLOWER (i))
14725 || toupper (i) != TOUPPER (i))
14726 return 2;
14727 return 0;
14728 }
14729 _ACEOF
14730 if ac_fn_c_try_run "$LINENO"; then :
14731
14732 else
14733 ac_cv_header_stdc=no
14734 fi
14735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14736 conftest.$ac_objext conftest.beam conftest.$ac_ext
14737 fi
14738
14739 fi
14740 fi
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14742 $as_echo "$ac_cv_header_stdc" >&6; }
14743 if test $ac_cv_header_stdc = yes; then
14744
14745 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14746
14747 fi
14748
14749 for ac_header in malloc.h assert.h unistd.h inttypes.h
14750 do :
14751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14752 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14753 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14754 cat >>confdefs.h <<_ACEOF
14755 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14756 _ACEOF
14757
14758 fi
14759
14760 done
14761
14762 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14763 if test "x$ac_cv_header_getopt_h" = xyes; then :
14764 HAVE_GETOPT_H="yes"
14765 else
14766 HAVE_GETOPT_H="no"
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h is unavailable on your system" >&5
14768 $as_echo "$as_me: WARNING: getopt.h is unavailable on your system" >&2;}
14769
14770 fi
14771
14772
14773
14774
14775
14776
14777 TWOLAME_BIN=""
14778 if test "x$HAVE_SNDFILE" = "xyes"; then
14779 if test "$HAVE_GETOPT_H" = "yes"; then
14780 TWOLAME_BIN="twolame${EXEEXT}"
14781 else
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building twolame frontend because getopt.h is missing." >&5
14783 $as_echo "$as_me: WARNING: Not building twolame frontend because getopt.h is missing." >&2;}
14784 fi
14785 else
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building twolame frontend because libsndfile is missing." >&5
14787 $as_echo "$as_me: WARNING: Not building twolame frontend because libsndfile is missing." >&2;}
14788 fi
14789
14790
14791
14792
14793
14794 # If maintainer mode is enabled then make warnings errors
14795 if test "$USE_MAINTAINER_MODE" = yes; then
14796 WARNING_CFLAGS="-Wall -Werror -pedantic -Wunused"
14797 WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-prototypes -Wmissing-declarations"
14798
14799 fi
14800
14801 if test $enable_static = yes; then
14802 CFLAGS+=" -DLIBTWOLAME_STATIC"
14803 fi
14804
14805
14806 ac_config_headers="$ac_config_headers libtwolame/config.h"
14807
14808
14809 ac_config_files="$ac_config_files Makefile twolame.pc twolame.spec doc/Makefile doc/html/Makefile doc/html/Doxyfile libtwolame/Makefile frontend/Makefile simplefrontend/Makefile tests/Makefile"
14810
14811
14812 cat >confcache <<\_ACEOF
14813 # This file is a shell script that caches the results of configure
14814 # tests run on this system so they can be shared between configure
14815 # scripts and configure runs, see configure's option --config-cache.
14816 # It is not useful on other systems. If it contains results you don't
14817 # want to keep, you may remove or edit it.
14818 #
14819 # config.status only pays attention to the cache file if you give it
14820 # the --recheck option to rerun configure.
14821 #
14822 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14823 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14824 # following values.
14825
14826 _ACEOF
14827
14828 # The following way of writing the cache mishandles newlines in values,
14829 # but we know of no workaround that is simple, portable, and efficient.
14830 # So, we kill variables containing newlines.
14831 # Ultrix sh set writes to stderr and can't be redirected directly,
14832 # and sets the high bit in the cache file unless we assign to the vars.
14833 (
14834 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14835 eval ac_val=\$$ac_var
14836 case $ac_val in #(
14837 *${as_nl}*)
14838 case $ac_var in #(
14839 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14840 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14841 esac
14842 case $ac_var in #(
14843 _ | IFS | as_nl) ;; #(
14844 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14845 *) { eval $ac_var=; unset $ac_var;} ;;
14846 esac ;;
14847 esac
14848 done
14849
14850 (set) 2>&1 |
14851 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14852 *${as_nl}ac_space=\ *)
14853 # `set' does not quote correctly, so add quotes: double-quote
14854 # substitution turns \\\\ into \\, and sed turns \\ into \.
14855 sed -n \
14856 "s/'/'\\\\''/g;
14857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14858 ;; #(
14859 *)
14860 # `set' quotes correctly as required by POSIX, so do not add quotes.
14861 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14862 ;;
14863 esac |
14864 sort
14865 ) |
14866 sed '
14867 /^ac_cv_env_/b end
14868 t clear
14869 :clear
14870 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14871 t end
14872 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14873 :end' >>confcache
14874 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14875 if test -w "$cache_file"; then
14876 if test "x$cache_file" != "x/dev/null"; then
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14878 $as_echo "$as_me: updating cache $cache_file" >&6;}
14879 if test ! -f "$cache_file" || test -h "$cache_file"; then
14880 cat confcache >"$cache_file"
14881 else
14882 case $cache_file in #(
14883 */* | ?:*)
14884 mv -f confcache "$cache_file"$$ &&
14885 mv -f "$cache_file"$$ "$cache_file" ;; #(
14886 *)
14887 mv -f confcache "$cache_file" ;;
14888 esac
14889 fi
14890 fi
14891 else
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14893 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14894 fi
14895 fi
14896 rm -f confcache
14897
14898 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14899 # Let make expand exec_prefix.
14900 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14901
14902 DEFS=-DHAVE_CONFIG_H
14903
14904 ac_libobjs=
14905 ac_ltlibobjs=
14906 U=
14907 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14908 # 1. Remove the extension, and $U if already installed.
14909 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14910 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14911 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14912 # will be set to the directory where LIBOBJS objects are built.
14913 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14914 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14915 done
14916 LIBOBJS=$ac_libobjs
14917
14918 LTLIBOBJS=$ac_ltlibobjs
14919
14920
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14922 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14923 if test -n "$am_sleep_pid"; then
14924 # Hide warnings about reused PIDs.
14925 wait $am_sleep_pid 2>/dev/null
14926 fi
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14928 $as_echo "done" >&6; }
14929 if test -n "$EXEEXT"; then
14930 am__EXEEXT_TRUE=
14931 am__EXEEXT_FALSE='#'
14932 else
14933 am__EXEEXT_TRUE='#'
14934 am__EXEEXT_FALSE=
14935 fi
14936
14937 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14938 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14940 fi
14941 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14942 as_fn_error $? "conditional \"AMDEP\" was never defined.
14943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14944 fi
14945 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14946 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14948 fi
14949 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14950 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14952 fi
14953
14954
14955 : "${CONFIG_STATUS=./config.status}"
14956 ac_write_fail=0
14957 ac_clean_files_save=$ac_clean_files
14958 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14960 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14961 as_write_fail=0
14962 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14963 #! $SHELL
14964 # Generated by $as_me.
14965 # Run this file to recreate the current configuration.
14966 # Compiler output produced by configure, useful for debugging
14967 # configure, is in config.log if it exists.
14968
14969 debug=false
14970 ac_cs_recheck=false
14971 ac_cs_silent=false
14972
14973 SHELL=\${CONFIG_SHELL-$SHELL}
14974 export SHELL
14975 _ASEOF
14976 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14977 ## -------------------- ##
14978 ## M4sh Initialization. ##
14979 ## -------------------- ##
14980
14981 # Be more Bourne compatible
14982 DUALCASE=1; export DUALCASE # for MKS sh
14983 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14984 emulate sh
14985 NULLCMD=:
14986 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14987 # is contrary to our usage. Disable this feature.
14988 alias -g '${1+"$@"}'='"$@"'
14989 setopt NO_GLOB_SUBST
14990 else
14991 case `(set -o) 2>/dev/null` in #(
14992 *posix*) :
14993 set -o posix ;; #(
14994 *) :
14995 ;;
14996 esac
14997 fi
14998
14999
15000 as_nl='
15001 '
15002 export as_nl
15003 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15004 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15005 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15006 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15007 # Prefer a ksh shell builtin over an external printf program on Solaris,
15008 # but without wasting forks for bash or zsh.
15009 if test -z "$BASH_VERSION$ZSH_VERSION" \
15010 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15011 as_echo='print -r --'
15012 as_echo_n='print -rn --'
15013 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15014 as_echo='printf %s\n'
15015 as_echo_n='printf %s'
15016 else
15017 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15018 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15019 as_echo_n='/usr/ucb/echo -n'
15020 else
15021 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15022 as_echo_n_body='eval
15023 arg=$1;
15024 case $arg in #(
15025 *"$as_nl"*)
15026 expr "X$arg" : "X\\(.*\\)$as_nl";
15027 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15028 esac;
15029 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15030 '
15031 export as_echo_n_body
15032 as_echo_n='sh -c $as_echo_n_body as_echo'
15033 fi
15034 export as_echo_body
15035 as_echo='sh -c $as_echo_body as_echo'
15036 fi
15037
15038 # The user is always right.
15039 if test "${PATH_SEPARATOR+set}" != set; then
15040 PATH_SEPARATOR=:
15041 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15042 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15043 PATH_SEPARATOR=';'
15044 }
15045 fi
15046
15047
15048 # IFS
15049 # We need space, tab and new line, in precisely that order. Quoting is
15050 # there to prevent editors from complaining about space-tab.
15051 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15052 # splitting by setting IFS to empty value.)
15053 IFS=" "" $as_nl"
15054
15055 # Find who we are. Look in the path if we contain no directory separator.
15056 as_myself=
15057 case $0 in #((
15058 *[\\/]* ) as_myself=$0 ;;
15059 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15060 for as_dir in $PATH
15061 do
15062 IFS=$as_save_IFS
15063 test -z "$as_dir" && as_dir=.
15064 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15065 done
15066 IFS=$as_save_IFS
15067
15068 ;;
15069 esac
15070 # We did not find ourselves, most probably we were run as `sh COMMAND'
15071 # in which case we are not to be found in the path.
15072 if test "x$as_myself" = x; then
15073 as_myself=$0
15074 fi
15075 if test ! -f "$as_myself"; then
15076 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15077 exit 1
15078 fi
15079
15080 # Unset variables that we do not need and which cause bugs (e.g. in
15081 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15082 # suppresses any "Segmentation fault" message there. '((' could
15083 # trigger a bug in pdksh 5.2.14.
15084 for as_var in BASH_ENV ENV MAIL MAILPATH
15085 do eval test x\${$as_var+set} = xset \
15086 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15087 done
15088 PS1='$ '
15089 PS2='> '
15090 PS4='+ '
15091
15092 # NLS nuisances.
15093 LC_ALL=C
15094 export LC_ALL
15095 LANGUAGE=C
15096 export LANGUAGE
15097
15098 # CDPATH.
15099 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15100
15101
15102 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15103 # ----------------------------------------
15104 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15105 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15106 # script with STATUS, using 1 if that was 0.
15107 as_fn_error ()
15108 {
15109 as_status=$1; test $as_status -eq 0 && as_status=1
15110 if test "$4"; then
15111 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15112 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15113 fi
15114 $as_echo "$as_me: error: $2" >&2
15115 as_fn_exit $as_status
15116 } # as_fn_error
15117
15118
15119 # as_fn_set_status STATUS
15120 # -----------------------
15121 # Set $? to STATUS, without forking.
15122 as_fn_set_status ()
15123 {
15124 return $1
15125 } # as_fn_set_status
15126
15127 # as_fn_exit STATUS
15128 # -----------------
15129 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15130 as_fn_exit ()
15131 {
15132 set +e
15133 as_fn_set_status $1
15134 exit $1
15135 } # as_fn_exit
15136
15137 # as_fn_unset VAR
15138 # ---------------
15139 # Portably unset VAR.
15140 as_fn_unset ()
15141 {
15142 { eval $1=; unset $1;}
15143 }
15144 as_unset=as_fn_unset
15145 # as_fn_append VAR VALUE
15146 # ----------------------
15147 # Append the text in VALUE to the end of the definition contained in VAR. Take
15148 # advantage of any shell optimizations that allow amortized linear growth over
15149 # repeated appends, instead of the typical quadratic growth present in naive
15150 # implementations.
15151 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15152 eval 'as_fn_append ()
15153 {
15154 eval $1+=\$2
15155 }'
15156 else
15157 as_fn_append ()
15158 {
15159 eval $1=\$$1\$2
15160 }
15161 fi # as_fn_append
15162
15163 # as_fn_arith ARG...
15164 # ------------------
15165 # Perform arithmetic evaluation on the ARGs, and store the result in the
15166 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15167 # must be portable across $(()) and expr.
15168 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15169 eval 'as_fn_arith ()
15170 {
15171 as_val=$(( $* ))
15172 }'
15173 else
15174 as_fn_arith ()
15175 {
15176 as_val=`expr "$@" || test $? -eq 1`
15177 }
15178 fi # as_fn_arith
15179
15180
15181 if expr a : '\(a\)' >/dev/null 2>&1 &&
15182 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15183 as_expr=expr
15184 else
15185 as_expr=false
15186 fi
15187
15188 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15189 as_basename=basename
15190 else
15191 as_basename=false
15192 fi
15193
15194 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15195 as_dirname=dirname
15196 else
15197 as_dirname=false
15198 fi
15199
15200 as_me=`$as_basename -- "$0" ||
15201 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15202 X"$0" : 'X\(//\)$' \| \
15203 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15204 $as_echo X/"$0" |
15205 sed '/^.*\/\([^/][^/]*\)\/*$/{
15206 s//\1/
15207 q
15208 }
15209 /^X\/\(\/\/\)$/{
15210 s//\1/
15211 q
15212 }
15213 /^X\/\(\/\).*/{
15214 s//\1/
15215 q
15216 }
15217 s/.*/./; q'`
15218
15219 # Avoid depending upon Character Ranges.
15220 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15221 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15222 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15223 as_cr_digits='0123456789'
15224 as_cr_alnum=$as_cr_Letters$as_cr_digits
15225
15226 ECHO_C= ECHO_N= ECHO_T=
15227 case `echo -n x` in #(((((
15228 -n*)
15229 case `echo 'xy\c'` in
15230 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15231 xy) ECHO_C='\c';;
15232 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15233 ECHO_T=' ';;
15234 esac;;
15235 *)
15236 ECHO_N='-n';;
15237 esac
15238
15239 rm -f conf$$ conf$$.exe conf$$.file
15240 if test -d conf$$.dir; then
15241 rm -f conf$$.dir/conf$$.file
15242 else
15243 rm -f conf$$.dir
15244 mkdir conf$$.dir 2>/dev/null
15245 fi
15246 if (echo >conf$$.file) 2>/dev/null; then
15247 if ln -s conf$$.file conf$$ 2>/dev/null; then
15248 as_ln_s='ln -s'
15249 # ... but there are two gotchas:
15250 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15251 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15252 # In both cases, we have to default to `cp -pR'.
15253 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15254 as_ln_s='cp -pR'
15255 elif ln conf$$.file conf$$ 2>/dev/null; then
15256 as_ln_s=ln
15257 else
15258 as_ln_s='cp -pR'
15259 fi
15260 else
15261 as_ln_s='cp -pR'
15262 fi
15263 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15264 rmdir conf$$.dir 2>/dev/null
15265
15266
15267 # as_fn_mkdir_p
15268 # -------------
15269 # Create "$as_dir" as a directory, including parents if necessary.
15270 as_fn_mkdir_p ()
15271 {
15272
15273 case $as_dir in #(
15274 -*) as_dir=./$as_dir;;
15275 esac
15276 test -d "$as_dir" || eval $as_mkdir_p || {
15277 as_dirs=
15278 while :; do
15279 case $as_dir in #(
15280 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15281 *) as_qdir=$as_dir;;
15282 esac
15283 as_dirs="'$as_qdir' $as_dirs"
15284 as_dir=`$as_dirname -- "$as_dir" ||
15285 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15286 X"$as_dir" : 'X\(//\)[^/]' \| \
15287 X"$as_dir" : 'X\(//\)$' \| \
15288 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15289 $as_echo X"$as_dir" |
15290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15291 s//\1/
15292 q
15293 }
15294 /^X\(\/\/\)[^/].*/{
15295 s//\1/
15296 q
15297 }
15298 /^X\(\/\/\)$/{
15299 s//\1/
15300 q
15301 }
15302 /^X\(\/\).*/{
15303 s//\1/
15304 q
15305 }
15306 s/.*/./; q'`
15307 test -d "$as_dir" && break
15308 done
15309 test -z "$as_dirs" || eval "mkdir $as_dirs"
15310 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15311
15312
15313 } # as_fn_mkdir_p
15314 if mkdir -p . 2>/dev/null; then
15315 as_mkdir_p='mkdir -p "$as_dir"'
15316 else
15317 test -d ./-p && rmdir ./-p
15318 as_mkdir_p=false
15319 fi
15320
15321
15322 # as_fn_executable_p FILE
15323 # -----------------------
15324 # Test if FILE is an executable regular file.
15325 as_fn_executable_p ()
15326 {
15327 test -f "$1" && test -x "$1"
15328 } # as_fn_executable_p
15329 as_test_x='test -x'
15330 as_executable_p=as_fn_executable_p
15331
15332 # Sed expression to map a string onto a valid CPP name.
15333 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15334
15335 # Sed expression to map a string onto a valid variable name.
15336 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15337
15338
15339 exec 6>&1
15340 ## ----------------------------------- ##
15341 ## Main body of $CONFIG_STATUS script. ##
15342 ## ----------------------------------- ##
15343 _ASEOF
15344 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15345
15346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15347 # Save the log message, to keep $0 and so on meaningful, and to
15348 # report actual input values of CONFIG_FILES etc. instead of their
15349 # values after options handling.
15350 ac_log="
15351 This file was extended by TwoLAME $as_me 0.4.0, which was
15352 generated by GNU Autoconf 2.69. Invocation command line was
15353
15354 CONFIG_FILES = $CONFIG_FILES
15355 CONFIG_HEADERS = $CONFIG_HEADERS
15356 CONFIG_LINKS = $CONFIG_LINKS
15357 CONFIG_COMMANDS = $CONFIG_COMMANDS
15358 $ $0 $@
15359
15360 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15361 "
15362
15363 _ACEOF
15364
15365 case $ac_config_files in *"
15366 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15367 esac
15368
15369 case $ac_config_headers in *"
15370 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15371 esac
15372
15373
15374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15375 # Files that config.status was made for.
15376 config_files="$ac_config_files"
15377 config_headers="$ac_config_headers"
15378 config_commands="$ac_config_commands"
15379
15380 _ACEOF
15381
15382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15383 ac_cs_usage="\
15384 \`$as_me' instantiates files and other configuration actions
15385 from templates according to the current configuration. Unless the files
15386 and actions are specified as TAGs, all are instantiated by default.
15387
15388 Usage: $0 [OPTION]... [TAG]...
15389
15390 -h, --help print this help, then exit
15391 -V, --version print version number and configuration settings, then exit
15392 --config print configuration, then exit
15393 -q, --quiet, --silent
15394 do not print progress messages
15395 -d, --debug don't remove temporary files
15396 --recheck update $as_me by reconfiguring in the same conditions
15397 --file=FILE[:TEMPLATE]
15398 instantiate the configuration file FILE
15399 --header=FILE[:TEMPLATE]
15400 instantiate the configuration header FILE
15401
15402 Configuration files:
15403 $config_files
15404
15405 Configuration headers:
15406 $config_headers
15407
15408 Configuration commands:
15409 $config_commands
15410
15411 Report bugs to <[email protected]>.
15412 TwoLAME home page: <http://www.twolame.org/>."
15413
15414 _ACEOF
15415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15416 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15417 ac_cs_version="\\
15418 TwoLAME config.status 0.4.0
15419 configured by $0, generated by GNU Autoconf 2.69,
15420 with options \\"\$ac_cs_config\\"
15421
15422 Copyright (C) 2012 Free Software Foundation, Inc.
15423 This config.status script is free software; the Free Software Foundation
15424 gives unlimited permission to copy, distribute and modify it."
15425
15426 ac_pwd='$ac_pwd'
15427 srcdir='$srcdir'
15428 INSTALL='$INSTALL'
15429 MKDIR_P='$MKDIR_P'
15430 AWK='$AWK'
15431 test -n "\$AWK" || AWK=awk
15432 _ACEOF
15433
15434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15435 # The default lists apply if the user does not specify any file.
15436 ac_need_defaults=:
15437 while test $# != 0
15438 do
15439 case $1 in
15440 --*=?*)
15441 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15442 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15443 ac_shift=:
15444 ;;
15445 --*=)
15446 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15447 ac_optarg=
15448 ac_shift=:
15449 ;;
15450 *)
15451 ac_option=$1
15452 ac_optarg=$2
15453 ac_shift=shift
15454 ;;
15455 esac
15456
15457 case $ac_option in
15458 # Handling of the options.
15459 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15460 ac_cs_recheck=: ;;
15461 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15462 $as_echo "$ac_cs_version"; exit ;;
15463 --config | --confi | --conf | --con | --co | --c )
15464 $as_echo "$ac_cs_config"; exit ;;
15465 --debug | --debu | --deb | --de | --d | -d )
15466 debug=: ;;
15467 --file | --fil | --fi | --f )
15468 $ac_shift
15469 case $ac_optarg in
15470 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15471 '') as_fn_error $? "missing file argument" ;;
15472 esac
15473 as_fn_append CONFIG_FILES " '$ac_optarg'"
15474 ac_need_defaults=false;;
15475 --header | --heade | --head | --hea )
15476 $ac_shift
15477 case $ac_optarg in
15478 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15479 esac
15480 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15481 ac_need_defaults=false;;
15482 --he | --h)
15483 # Conflict between --help and --header
15484 as_fn_error $? "ambiguous option: \`$1'
15485 Try \`$0 --help' for more information.";;
15486 --help | --hel | -h )
15487 $as_echo "$ac_cs_usage"; exit ;;
15488 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15489 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15490 ac_cs_silent=: ;;
15491
15492 # This is an error.
15493 -*) as_fn_error $? "unrecognized option: \`$1'
15494 Try \`$0 --help' for more information." ;;
15495
15496 *) as_fn_append ac_config_targets " $1"
15497 ac_need_defaults=false ;;
15498
15499 esac
15500 shift
15501 done
15502
15503 ac_configure_extra_args=
15504
15505 if $ac_cs_silent; then
15506 exec 6>/dev/null
15507 ac_configure_extra_args="$ac_configure_extra_args --silent"
15508 fi
15509
15510 _ACEOF
15511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15512 if \$ac_cs_recheck; then
15513 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15514 shift
15515 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15516 CONFIG_SHELL='$SHELL'
15517 export CONFIG_SHELL
15518 exec "\$@"
15519 fi
15520
15521 _ACEOF
15522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15523 exec 5>>config.log
15524 {
15525 echo
15526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15527 ## Running $as_me. ##
15528 _ASBOX
15529 $as_echo "$ac_log"
15530 } >&5
15531
15532 _ACEOF
15533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15534 #
15535 # INIT-COMMANDS
15536 #
15537 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15538
15539
15540 # The HP-UX ksh and POSIX shell print the target directory to stdout
15541 # if CDPATH is set.
15542 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15543
15544 sed_quote_subst='$sed_quote_subst'
15545 double_quote_subst='$double_quote_subst'
15546 delay_variable_subst='$delay_variable_subst'
15547 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15548 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15549 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15550 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15551 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15552 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15553 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15554 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15555 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15556 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15557 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15558 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15559 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15560 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15561 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15562 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15563 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15564 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15565 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15566 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15567 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15568 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15569 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15570 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15571 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15572 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15573 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15574 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15575 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15576 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15577 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15578 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15579 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15580 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15581 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15582 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15583 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15584 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15585 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15586 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15587 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15588 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15589 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15590 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15591 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15592 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15593 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15594 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15595 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15596 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15597 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15598 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15599 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15600 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15601 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15602 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15603 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15604 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15605 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15606 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"`'
15607 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15608 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15609 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15610 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15611 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15612 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15613 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15614 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15615 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15616 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15617 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15618 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15619 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15620 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15621 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15622 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15623 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15624 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15625 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15626 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15627 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15628 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15629 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15630 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15631 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15632 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15633 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15634 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15635 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15636 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15637 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15638 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15639 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15640 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15641 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15642 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15643 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15644 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15645 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15646 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15647 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15648 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15649 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15650 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15651 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15652 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15653 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15654 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15655 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15656 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15657 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15658 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15659 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15660 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15661 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15662 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15663 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15664 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15665 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15666 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15667 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15668 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15669 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15670 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15671 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15672 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15673 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15674 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15675 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15676 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15677 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15678 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15679 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15680 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15681 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15682 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15683
15684 LTCC='$LTCC'
15685 LTCFLAGS='$LTCFLAGS'
15686 compiler='$compiler_DEFAULT'
15687
15688 # A function that is used when there is no print builtin or printf.
15689 func_fallback_echo ()
15690 {
15691 eval 'cat <<_LTECHO_EOF
15692 \$1
15693 _LTECHO_EOF'
15694 }
15695
15696 # Quote evaled strings.
15697 for var in AS \
15698 DLLTOOL \
15699 OBJDUMP \
15700 SHELL \
15701 ECHO \
15702 PATH_SEPARATOR \
15703 SED \
15704 GREP \
15705 EGREP \
15706 FGREP \
15707 LD \
15708 NM \
15709 LN_S \
15710 lt_SP2NL \
15711 lt_NL2SP \
15712 reload_flag \
15713 deplibs_check_method \
15714 file_magic_cmd \
15715 file_magic_glob \
15716 want_nocaseglob \
15717 sharedlib_from_linklib_cmd \
15718 AR \
15719 AR_FLAGS \
15720 archiver_list_spec \
15721 STRIP \
15722 RANLIB \
15723 CC \
15724 CFLAGS \
15725 compiler \
15726 lt_cv_sys_global_symbol_pipe \
15727 lt_cv_sys_global_symbol_to_cdecl \
15728 lt_cv_sys_global_symbol_to_import \
15729 lt_cv_sys_global_symbol_to_c_name_address \
15730 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15731 lt_cv_nm_interface \
15732 nm_file_list_spec \
15733 lt_cv_truncate_bin \
15734 lt_prog_compiler_no_builtin_flag \
15735 lt_prog_compiler_pic \
15736 lt_prog_compiler_wl \
15737 lt_prog_compiler_static \
15738 lt_cv_prog_compiler_c_o \
15739 need_locks \
15740 MANIFEST_TOOL \
15741 DSYMUTIL \
15742 NMEDIT \
15743 LIPO \
15744 OTOOL \
15745 OTOOL64 \
15746 shrext_cmds \
15747 export_dynamic_flag_spec \
15748 whole_archive_flag_spec \
15749 compiler_needs_object \
15750 with_gnu_ld \
15751 allow_undefined_flag \
15752 no_undefined_flag \
15753 hardcode_libdir_flag_spec \
15754 hardcode_libdir_separator \
15755 exclude_expsyms \
15756 include_expsyms \
15757 file_list_spec \
15758 variables_saved_for_relink \
15759 libname_spec \
15760 library_names_spec \
15761 soname_spec \
15762 install_override_mode \
15763 finish_eval \
15764 old_striplib \
15765 striplib; do
15766 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15767 *[\\\\\\\`\\"\\\$]*)
15768 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15769 ;;
15770 *)
15771 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15772 ;;
15773 esac
15774 done
15775
15776 # Double-quote double-evaled strings.
15777 for var in reload_cmds \
15778 old_postinstall_cmds \
15779 old_postuninstall_cmds \
15780 old_archive_cmds \
15781 extract_expsyms_cmds \
15782 old_archive_from_new_cmds \
15783 old_archive_from_expsyms_cmds \
15784 archive_cmds \
15785 archive_expsym_cmds \
15786 module_cmds \
15787 module_expsym_cmds \
15788 export_symbols_cmds \
15789 prelink_cmds \
15790 postlink_cmds \
15791 postinstall_cmds \
15792 postuninstall_cmds \
15793 finish_cmds \
15794 sys_lib_search_path_spec \
15795 configure_time_dlsearch_path \
15796 configure_time_lt_sys_library_path; do
15797 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15798 *[\\\\\\\`\\"\\\$]*)
15799 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15800 ;;
15801 *)
15802 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15803 ;;
15804 esac
15805 done
15806
15807 ac_aux_dir='$ac_aux_dir'
15808
15809 # See if we are running on zsh, and set the options that allow our
15810 # commands through without removal of \ escapes INIT.
15811 if test -n "\${ZSH_VERSION+set}"; then
15812 setopt NO_GLOB_SUBST
15813 fi
15814
15815
15816 PACKAGE='$PACKAGE'
15817 VERSION='$VERSION'
15818 RM='$RM'
15819 ofile='$ofile'
15820
15821
15822
15823
15824 _ACEOF
15825
15826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15827
15828 # Handling of arguments.
15829 for ac_config_target in $ac_config_targets
15830 do
15831 case $ac_config_target in
15832 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15833 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15834 "libtwolame/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtwolame/config.h" ;;
15835 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15836 "twolame.pc") CONFIG_FILES="$CONFIG_FILES twolame.pc" ;;
15837 "twolame.spec") CONFIG_FILES="$CONFIG_FILES twolame.spec" ;;
15838 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15839 "doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;;
15840 "doc/html/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/html/Doxyfile" ;;
15841 "libtwolame/Makefile") CONFIG_FILES="$CONFIG_FILES libtwolame/Makefile" ;;
15842 "frontend/Makefile") CONFIG_FILES="$CONFIG_FILES frontend/Makefile" ;;
15843 "simplefrontend/Makefile") CONFIG_FILES="$CONFIG_FILES simplefrontend/Makefile" ;;
15844 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15845
15846 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15847 esac
15848 done
15849
15850
15851 # If the user did not use the arguments to specify the items to instantiate,
15852 # then the envvar interface is used. Set only those that are not.
15853 # We use the long form for the default assignment because of an extremely
15854 # bizarre bug on SunOS 4.1.3.
15855 if $ac_need_defaults; then
15856 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15857 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15858 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15859 fi
15860
15861 # Have a temporary directory for convenience. Make it in the build tree
15862 # simply because there is no reason against having it here, and in addition,
15863 # creating and moving files from /tmp can sometimes cause problems.
15864 # Hook for its removal unless debugging.
15865 # Note that there is a small window in which the directory will not be cleaned:
15866 # after its creation but before its name has been assigned to `$tmp'.
15867 $debug ||
15868 {
15869 tmp= ac_tmp=
15870 trap 'exit_status=$?
15871 : "${ac_tmp:=$tmp}"
15872 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15873 ' 0
15874 trap 'as_fn_exit 1' 1 2 13 15
15875 }
15876 # Create a (secure) tmp directory for tmp files.
15877
15878 {
15879 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15880 test -d "$tmp"
15881 } ||
15882 {
15883 tmp=./conf$$-$RANDOM
15884 (umask 077 && mkdir "$tmp")
15885 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15886 ac_tmp=$tmp
15887
15888 # Set up the scripts for CONFIG_FILES section.
15889 # No need to generate them if there are no CONFIG_FILES.
15890 # This happens for instance with `./config.status config.h'.
15891 if test -n "$CONFIG_FILES"; then
15892
15893
15894 ac_cr=`echo X | tr X '\015'`
15895 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15896 # But we know of no other shell where ac_cr would be empty at this
15897 # point, so we can use a bashism as a fallback.
15898 if test "x$ac_cr" = x; then
15899 eval ac_cr=\$\'\\r\'
15900 fi
15901 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15902 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15903 ac_cs_awk_cr='\\r'
15904 else
15905 ac_cs_awk_cr=$ac_cr
15906 fi
15907
15908 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15909 _ACEOF
15910
15911
15912 {
15913 echo "cat >conf$$subs.awk <<_ACEOF" &&
15914 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15915 echo "_ACEOF"
15916 } >conf$$subs.sh ||
15917 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15918 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15919 ac_delim='%!_!# '
15920 for ac_last_try in false false false false false :; do
15921 . ./conf$$subs.sh ||
15922 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15923
15924 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15925 if test $ac_delim_n = $ac_delim_num; then
15926 break
15927 elif $ac_last_try; then
15928 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15929 else
15930 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15931 fi
15932 done
15933 rm -f conf$$subs.sh
15934
15935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15936 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15937 _ACEOF
15938 sed -n '
15939 h
15940 s/^/S["/; s/!.*/"]=/
15941 p
15942 g
15943 s/^[^!]*!//
15944 :repl
15945 t repl
15946 s/'"$ac_delim"'$//
15947 t delim
15948 :nl
15949 h
15950 s/\(.\{148\}\)..*/\1/
15951 t more1
15952 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15953 p
15954 n
15955 b repl
15956 :more1
15957 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15958 p
15959 g
15960 s/.\{148\}//
15961 t nl
15962 :delim
15963 h
15964 s/\(.\{148\}\)..*/\1/
15965 t more2
15966 s/["\\]/\\&/g; s/^/"/; s/$/"/
15967 p
15968 b
15969 :more2
15970 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15971 p
15972 g
15973 s/.\{148\}//
15974 t delim
15975 ' <conf$$subs.awk | sed '
15976 /^[^""]/{
15977 N
15978 s/\n//
15979 }
15980 ' >>$CONFIG_STATUS || ac_write_fail=1
15981 rm -f conf$$subs.awk
15982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15983 _ACAWK
15984 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15985 for (key in S) S_is_set[key] = 1
15986 FS = ""
15987
15988 }
15989 {
15990 line = $ 0
15991 nfields = split(line, field, "@")
15992 substed = 0
15993 len = length(field[1])
15994 for (i = 2; i < nfields; i++) {
15995 key = field[i]
15996 keylen = length(key)
15997 if (S_is_set[key]) {
15998 value = S[key]
15999 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16000 len += length(value) + length(field[++i])
16001 substed = 1
16002 } else
16003 len += 1 + keylen
16004 }
16005
16006 print line
16007 }
16008
16009 _ACAWK
16010 _ACEOF
16011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16012 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16013 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16014 else
16015 cat
16016 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16017 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16018 _ACEOF
16019
16020 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16021 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16022 # trailing colons and then remove the whole line if VPATH becomes empty
16023 # (actually we leave an empty line to preserve line numbers).
16024 if test "x$srcdir" = x.; then
16025 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16026 h
16027 s///
16028 s/^/:/
16029 s/[ ]*$/:/
16030 s/:\$(srcdir):/:/g
16031 s/:\${srcdir}:/:/g
16032 s/:@srcdir@:/:/g
16033 s/^:*//
16034 s/:*$//
16035 x
16036 s/\(=[ ]*\).*/\1/
16037 G
16038 s/\n//
16039 s/^[^=]*=[ ]*$//
16040 }'
16041 fi
16042
16043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16044 fi # test -n "$CONFIG_FILES"
16045
16046 # Set up the scripts for CONFIG_HEADERS section.
16047 # No need to generate them if there are no CONFIG_HEADERS.
16048 # This happens for instance with `./config.status Makefile'.
16049 if test -n "$CONFIG_HEADERS"; then
16050 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16051 BEGIN {
16052 _ACEOF
16053
16054 # Transform confdefs.h into an awk script `defines.awk', embedded as
16055 # here-document in config.status, that substitutes the proper values into
16056 # config.h.in to produce config.h.
16057
16058 # Create a delimiter string that does not exist in confdefs.h, to ease
16059 # handling of long lines.
16060 ac_delim='%!_!# '
16061 for ac_last_try in false false :; do
16062 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16063 if test -z "$ac_tt"; then
16064 break
16065 elif $ac_last_try; then
16066 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16067 else
16068 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16069 fi
16070 done
16071
16072 # For the awk script, D is an array of macro values keyed by name,
16073 # likewise P contains macro parameters if any. Preserve backslash
16074 # newline sequences.
16075
16076 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16077 sed -n '
16078 s/.\{148\}/&'"$ac_delim"'/g
16079 t rset
16080 :rset
16081 s/^[ ]*#[ ]*define[ ][ ]*/ /
16082 t def
16083 d
16084 :def
16085 s/\\$//
16086 t bsnl
16087 s/["\\]/\\&/g
16088 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16089 D["\1"]=" \3"/p
16090 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16091 d
16092 :bsnl
16093 s/["\\]/\\&/g
16094 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16095 D["\1"]=" \3\\\\\\n"\\/p
16096 t cont
16097 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16098 t cont
16099 d
16100 :cont
16101 n
16102 s/.\{148\}/&'"$ac_delim"'/g
16103 t clear
16104 :clear
16105 s/\\$//
16106 t bsnlc
16107 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16108 d
16109 :bsnlc
16110 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16111 b cont
16112 ' <confdefs.h | sed '
16113 s/'"$ac_delim"'/"\\\
16114 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16115
16116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16117 for (key in D) D_is_set[key] = 1
16118 FS = ""
16119 }
16120 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16121 line = \$ 0
16122 split(line, arg, " ")
16123 if (arg[1] == "#") {
16124 defundef = arg[2]
16125 mac1 = arg[3]
16126 } else {
16127 defundef = substr(arg[1], 2)
16128 mac1 = arg[2]
16129 }
16130 split(mac1, mac2, "(") #)
16131 macro = mac2[1]
16132 prefix = substr(line, 1, index(line, defundef) - 1)
16133 if (D_is_set[macro]) {
16134 # Preserve the white space surrounding the "#".
16135 print prefix "define", macro P[macro] D[macro]
16136 next
16137 } else {
16138 # Replace #undef with comments. This is necessary, for example,
16139 # in the case of _POSIX_SOURCE, which is predefined and required
16140 # on some systems where configure will not decide to define it.
16141 if (defundef == "undef") {
16142 print "/*", prefix defundef, macro, "*/"
16143 next
16144 }
16145 }
16146 }
16147 { print }
16148 _ACAWK
16149 _ACEOF
16150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16151 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16152 fi # test -n "$CONFIG_HEADERS"
16153
16154
16155 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16156 shift
16157 for ac_tag
16158 do
16159 case $ac_tag in
16160 :[FHLC]) ac_mode=$ac_tag; continue;;
16161 esac
16162 case $ac_mode$ac_tag in
16163 :[FHL]*:*);;
16164 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16165 :[FH]-) ac_tag=-:-;;
16166 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16167 esac
16168 ac_save_IFS=$IFS
16169 IFS=:
16170 set x $ac_tag
16171 IFS=$ac_save_IFS
16172 shift
16173 ac_file=$1
16174 shift
16175
16176 case $ac_mode in
16177 :L) ac_source=$1;;
16178 :[FH])
16179 ac_file_inputs=
16180 for ac_f
16181 do
16182 case $ac_f in
16183 -) ac_f="$ac_tmp/stdin";;
16184 *) # Look for the file first in the build tree, then in the source tree
16185 # (if the path is not absolute). The absolute path cannot be DOS-style,
16186 # because $ac_f cannot contain `:'.
16187 test -f "$ac_f" ||
16188 case $ac_f in
16189 [\\/$]*) false;;
16190 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16191 esac ||
16192 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16193 esac
16194 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16195 as_fn_append ac_file_inputs " '$ac_f'"
16196 done
16197
16198 # Let's still pretend it is `configure' which instantiates (i.e., don't
16199 # use $as_me), people would be surprised to read:
16200 # /* config.h. Generated by config.status. */
16201 configure_input='Generated from '`
16202 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16203 `' by configure.'
16204 if test x"$ac_file" != x-; then
16205 configure_input="$ac_file. $configure_input"
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16207 $as_echo "$as_me: creating $ac_file" >&6;}
16208 fi
16209 # Neutralize special characters interpreted by sed in replacement strings.
16210 case $configure_input in #(
16211 *\&* | *\|* | *\\* )
16212 ac_sed_conf_input=`$as_echo "$configure_input" |
16213 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16214 *) ac_sed_conf_input=$configure_input;;
16215 esac
16216
16217 case $ac_tag in
16218 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16220 esac
16221 ;;
16222 esac
16223
16224 ac_dir=`$as_dirname -- "$ac_file" ||
16225 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16226 X"$ac_file" : 'X\(//\)[^/]' \| \
16227 X"$ac_file" : 'X\(//\)$' \| \
16228 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16229 $as_echo X"$ac_file" |
16230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16231 s//\1/
16232 q
16233 }
16234 /^X\(\/\/\)[^/].*/{
16235 s//\1/
16236 q
16237 }
16238 /^X\(\/\/\)$/{
16239 s//\1/
16240 q
16241 }
16242 /^X\(\/\).*/{
16243 s//\1/
16244 q
16245 }
16246 s/.*/./; q'`
16247 as_dir="$ac_dir"; as_fn_mkdir_p
16248 ac_builddir=.
16249
16250 case "$ac_dir" in
16251 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16252 *)
16253 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16254 # A ".." for each directory in $ac_dir_suffix.
16255 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16256 case $ac_top_builddir_sub in
16257 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16258 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16259 esac ;;
16260 esac
16261 ac_abs_top_builddir=$ac_pwd
16262 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16263 # for backward compatibility:
16264 ac_top_builddir=$ac_top_build_prefix
16265
16266 case $srcdir in
16267 .) # We are building in place.
16268 ac_srcdir=.
16269 ac_top_srcdir=$ac_top_builddir_sub
16270 ac_abs_top_srcdir=$ac_pwd ;;
16271 [\\/]* | ?:[\\/]* ) # Absolute name.
16272 ac_srcdir=$srcdir$ac_dir_suffix;
16273 ac_top_srcdir=$srcdir
16274 ac_abs_top_srcdir=$srcdir ;;
16275 *) # Relative name.
16276 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16277 ac_top_srcdir=$ac_top_build_prefix$srcdir
16278 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16279 esac
16280 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16281
16282
16283 case $ac_mode in
16284 :F)
16285 #
16286 # CONFIG_FILE
16287 #
16288
16289 case $INSTALL in
16290 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16291 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16292 esac
16293 ac_MKDIR_P=$MKDIR_P
16294 case $MKDIR_P in
16295 [\\/$]* | ?:[\\/]* ) ;;
16296 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16297 esac
16298 _ACEOF
16299
16300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16301 # If the template does not know about datarootdir, expand it.
16302 # FIXME: This hack should be removed a few years after 2.60.
16303 ac_datarootdir_hack=; ac_datarootdir_seen=
16304 ac_sed_dataroot='
16305 /datarootdir/ {
16306 p
16307 q
16308 }
16309 /@datadir@/p
16310 /@docdir@/p
16311 /@infodir@/p
16312 /@localedir@/p
16313 /@mandir@/p'
16314 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16315 *datarootdir*) ac_datarootdir_seen=yes;;
16316 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16318 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16319 _ACEOF
16320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16321 ac_datarootdir_hack='
16322 s&@datadir@&$datadir&g
16323 s&@docdir@&$docdir&g
16324 s&@infodir@&$infodir&g
16325 s&@localedir@&$localedir&g
16326 s&@mandir@&$mandir&g
16327 s&\\\${datarootdir}&$datarootdir&g' ;;
16328 esac
16329 _ACEOF
16330
16331 # Neutralize VPATH when `$srcdir' = `.'.
16332 # Shell code in configure.ac might set extrasub.
16333 # FIXME: do we really want to maintain this feature?
16334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16335 ac_sed_extra="$ac_vpsub
16336 $extrasub
16337 _ACEOF
16338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16339 :t
16340 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16341 s|@configure_input@|$ac_sed_conf_input|;t t
16342 s&@top_builddir@&$ac_top_builddir_sub&;t t
16343 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16344 s&@srcdir@&$ac_srcdir&;t t
16345 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16346 s&@top_srcdir@&$ac_top_srcdir&;t t
16347 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16348 s&@builddir@&$ac_builddir&;t t
16349 s&@abs_builddir@&$ac_abs_builddir&;t t
16350 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16351 s&@INSTALL@&$ac_INSTALL&;t t
16352 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16353 $ac_datarootdir_hack
16354 "
16355 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16356 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16357
16358 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16359 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16360 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16361 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16363 which seems to be undefined. Please make sure it is defined" >&5
16364 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16365 which seems to be undefined. Please make sure it is defined" >&2;}
16366
16367 rm -f "$ac_tmp/stdin"
16368 case $ac_file in
16369 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16370 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16371 esac \
16372 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16373 ;;
16374 :H)
16375 #
16376 # CONFIG_HEADER
16377 #
16378 if test x"$ac_file" != x-; then
16379 {
16380 $as_echo "/* $configure_input */" \
16381 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16382 } >"$ac_tmp/config.h" \
16383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16384 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16386 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16387 else
16388 rm -f "$ac_file"
16389 mv "$ac_tmp/config.h" "$ac_file" \
16390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16391 fi
16392 else
16393 $as_echo "/* $configure_input */" \
16394 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16395 || as_fn_error $? "could not create -" "$LINENO" 5
16396 fi
16397 # Compute "$ac_file"'s index in $config_headers.
16398 _am_arg="$ac_file"
16399 _am_stamp_count=1
16400 for _am_header in $config_headers :; do
16401 case $_am_header in
16402 $_am_arg | $_am_arg:* )
16403 break ;;
16404 * )
16405 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16406 esac
16407 done
16408 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16409 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16410 X"$_am_arg" : 'X\(//\)[^/]' \| \
16411 X"$_am_arg" : 'X\(//\)$' \| \
16412 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16413 $as_echo X"$_am_arg" |
16414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16415 s//\1/
16416 q
16417 }
16418 /^X\(\/\/\)[^/].*/{
16419 s//\1/
16420 q
16421 }
16422 /^X\(\/\/\)$/{
16423 s//\1/
16424 q
16425 }
16426 /^X\(\/\).*/{
16427 s//\1/
16428 q
16429 }
16430 s/.*/./; q'`/stamp-h$_am_stamp_count
16431 ;;
16432
16433 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16434 $as_echo "$as_me: executing $ac_file commands" >&6;}
16435 ;;
16436 esac
16437
16438
16439 case $ac_file$ac_mode in
16440 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16441 # Older Autoconf quotes --file arguments for eval, but not when files
16442 # are listed without --file. Let's play safe and only enable the eval
16443 # if we detect the quoting.
16444 # TODO: see whether this extra hack can be removed once we start
16445 # requiring Autoconf 2.70 or later.
16446 case $CONFIG_FILES in #(
16447 *\'*) :
16448 eval set x "$CONFIG_FILES" ;; #(
16449 *) :
16450 set x $CONFIG_FILES ;; #(
16451 *) :
16452 ;;
16453 esac
16454 shift
16455 # Used to flag and report bootstrapping failures.
16456 am_rc=0
16457 for am_mf
16458 do
16459 # Strip MF so we end up with the name of the file.
16460 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16461 # Check whether this is an Automake generated Makefile which includes
16462 # dependency-tracking related rules and includes.
16463 # Grep'ing the whole file directly is not great: AIX grep has a line
16464 # limit of 2048, but all sed's we know have understand at least 4000.
16465 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16466 || continue
16467 am_dirpart=`$as_dirname -- "$am_mf" ||
16468 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16469 X"$am_mf" : 'X\(//\)[^/]' \| \
16470 X"$am_mf" : 'X\(//\)$' \| \
16471 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16472 $as_echo X"$am_mf" |
16473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16474 s//\1/
16475 q
16476 }
16477 /^X\(\/\/\)[^/].*/{
16478 s//\1/
16479 q
16480 }
16481 /^X\(\/\/\)$/{
16482 s//\1/
16483 q
16484 }
16485 /^X\(\/\).*/{
16486 s//\1/
16487 q
16488 }
16489 s/.*/./; q'`
16490 am_filepart=`$as_basename -- "$am_mf" ||
16491 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16492 X"$am_mf" : 'X\(//\)$' \| \
16493 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16494 $as_echo X/"$am_mf" |
16495 sed '/^.*\/\([^/][^/]*\)\/*$/{
16496 s//\1/
16497 q
16498 }
16499 /^X\/\(\/\/\)$/{
16500 s//\1/
16501 q
16502 }
16503 /^X\/\(\/\).*/{
16504 s//\1/
16505 q
16506 }
16507 s/.*/./; q'`
16508 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16509 && sed -e '/# am--include-marker/d' "$am_filepart" \
16510 | $MAKE -f - am--depfiles" >&5
16511 (cd "$am_dirpart" \
16512 && sed -e '/# am--include-marker/d' "$am_filepart" \
16513 | $MAKE -f - am--depfiles) >&5 2>&5
16514 ac_status=$?
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } || am_rc=$?
16517 done
16518 if test $am_rc -ne 0; then
16519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16521 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16522 for automatic dependency tracking. Try re-running configure with the
16523 '--disable-dependency-tracking' option to at least be able to build
16524 the package (albeit without support for automatic dependency tracking).
16525 See \`config.log' for more details" "$LINENO" 5; }
16526 fi
16527 { am_dirpart=; unset am_dirpart;}
16528 { am_filepart=; unset am_filepart;}
16529 { am_mf=; unset am_mf;}
16530 { am_rc=; unset am_rc;}
16531 rm -f conftest-deps.mk
16532 }
16533 ;;
16534 "libtool":C)
16535
16536 # See if we are running on zsh, and set the options that allow our
16537 # commands through without removal of \ escapes.
16538 if test -n "${ZSH_VERSION+set}"; then
16539 setopt NO_GLOB_SUBST
16540 fi
16541
16542 cfgfile=${ofile}T
16543 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16544 $RM "$cfgfile"
16545
16546 cat <<_LT_EOF >> "$cfgfile"
16547 #! $SHELL
16548 # Generated automatically by $as_me ($PACKAGE) $VERSION
16549 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16550
16551 # Provide generalized library-building support services.
16552 # Written by Gordon Matzigkeit, 1996
16553
16554 # Copyright (C) 2014 Free Software Foundation, Inc.
16555 # This is free software; see the source for copying conditions. There is NO
16556 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16557
16558 # GNU Libtool is free software; you can redistribute it and/or modify
16559 # it under the terms of the GNU General Public License as published by
16560 # the Free Software Foundation; either version 2 of of the License, or
16561 # (at your option) any later version.
16562 #
16563 # As a special exception to the GNU General Public License, if you
16564 # distribute this file as part of a program or library that is built
16565 # using GNU Libtool, you may include this file under the same
16566 # distribution terms that you use for the rest of that program.
16567 #
16568 # GNU Libtool is distributed in the hope that it will be useful, but
16569 # WITHOUT ANY WARRANTY; without even the implied warranty of
16570 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16571 # GNU General Public License for more details.
16572 #
16573 # You should have received a copy of the GNU General Public License
16574 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16575
16576
16577 # The names of the tagged configurations supported by this script.
16578 available_tags=''
16579
16580 # Configured defaults for sys_lib_dlsearch_path munging.
16581 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16582
16583 # ### BEGIN LIBTOOL CONFIG
16584
16585 # Which release of libtool.m4 was used?
16586 macro_version=$macro_version
16587 macro_revision=$macro_revision
16588
16589 # Assembler program.
16590 AS=$lt_AS
16591
16592 # DLL creation program.
16593 DLLTOOL=$lt_DLLTOOL
16594
16595 # Object dumper program.
16596 OBJDUMP=$lt_OBJDUMP
16597
16598 # Whether or not to build shared libraries.
16599 build_libtool_libs=$enable_shared
16600
16601 # Whether or not to build static libraries.
16602 build_old_libs=$enable_static
16603
16604 # What type of objects to build.
16605 pic_mode=$pic_mode
16606
16607 # Whether or not to optimize for fast installation.
16608 fast_install=$enable_fast_install
16609
16610 # Shared archive member basename,for filename based shared library versioning on AIX.
16611 shared_archive_member_spec=$shared_archive_member_spec
16612
16613 # Shell to use when invoking shell scripts.
16614 SHELL=$lt_SHELL
16615
16616 # An echo program that protects backslashes.
16617 ECHO=$lt_ECHO
16618
16619 # The PATH separator for the build system.
16620 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16621
16622 # The host system.
16623 host_alias=$host_alias
16624 host=$host
16625 host_os=$host_os
16626
16627 # The build system.
16628 build_alias=$build_alias
16629 build=$build
16630 build_os=$build_os
16631
16632 # A sed program that does not truncate output.
16633 SED=$lt_SED
16634
16635 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16636 Xsed="\$SED -e 1s/^X//"
16637
16638 # A grep program that handles long lines.
16639 GREP=$lt_GREP
16640
16641 # An ERE matcher.
16642 EGREP=$lt_EGREP
16643
16644 # A literal string matcher.
16645 FGREP=$lt_FGREP
16646
16647 # A BSD- or MS-compatible name lister.
16648 NM=$lt_NM
16649
16650 # Whether we need soft or hard links.
16651 LN_S=$lt_LN_S
16652
16653 # What is the maximum length of a command?
16654 max_cmd_len=$max_cmd_len
16655
16656 # Object file suffix (normally "o").
16657 objext=$ac_objext
16658
16659 # Executable file suffix (normally "").
16660 exeext=$exeext
16661
16662 # whether the shell understands "unset".
16663 lt_unset=$lt_unset
16664
16665 # turn spaces into newlines.
16666 SP2NL=$lt_lt_SP2NL
16667
16668 # turn newlines into spaces.
16669 NL2SP=$lt_lt_NL2SP
16670
16671 # convert \$build file names to \$host format.
16672 to_host_file_cmd=$lt_cv_to_host_file_cmd
16673
16674 # convert \$build files to toolchain format.
16675 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16676
16677 # Method to check whether dependent libraries are shared objects.
16678 deplibs_check_method=$lt_deplibs_check_method
16679
16680 # Command to use when deplibs_check_method = "file_magic".
16681 file_magic_cmd=$lt_file_magic_cmd
16682
16683 # How to find potential files when deplibs_check_method = "file_magic".
16684 file_magic_glob=$lt_file_magic_glob
16685
16686 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16687 want_nocaseglob=$lt_want_nocaseglob
16688
16689 # Command to associate shared and link libraries.
16690 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16691
16692 # The archiver.
16693 AR=$lt_AR
16694
16695 # Flags to create an archive.
16696 AR_FLAGS=$lt_AR_FLAGS
16697
16698 # How to feed a file listing to the archiver.
16699 archiver_list_spec=$lt_archiver_list_spec
16700
16701 # A symbol stripping program.
16702 STRIP=$lt_STRIP
16703
16704 # Commands used to install an old-style archive.
16705 RANLIB=$lt_RANLIB
16706 old_postinstall_cmds=$lt_old_postinstall_cmds
16707 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16708
16709 # Whether to use a lock for old archive extraction.
16710 lock_old_archive_extraction=$lock_old_archive_extraction
16711
16712 # A C compiler.
16713 LTCC=$lt_CC
16714
16715 # LTCC compiler flags.
16716 LTCFLAGS=$lt_CFLAGS
16717
16718 # Take the output of nm and produce a listing of raw symbols and C names.
16719 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16720
16721 # Transform the output of nm in a proper C declaration.
16722 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16723
16724 # Transform the output of nm into a list of symbols to manually relocate.
16725 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16726
16727 # Transform the output of nm in a C name address pair.
16728 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16729
16730 # Transform the output of nm in a C name address pair when lib prefix is needed.
16731 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16732
16733 # The name lister interface.
16734 nm_interface=$lt_lt_cv_nm_interface
16735
16736 # Specify filename containing input files for \$NM.
16737 nm_file_list_spec=$lt_nm_file_list_spec
16738
16739 # The root where to search for dependent libraries,and where our libraries should be installed.
16740 lt_sysroot=$lt_sysroot
16741
16742 # Command to truncate a binary pipe.
16743 lt_truncate_bin=$lt_lt_cv_truncate_bin
16744
16745 # The name of the directory that contains temporary libtool files.
16746 objdir=$objdir
16747
16748 # Used to examine libraries when file_magic_cmd begins with "file".
16749 MAGIC_CMD=$MAGIC_CMD
16750
16751 # Must we lock files when doing compilation?
16752 need_locks=$lt_need_locks
16753
16754 # Manifest tool.
16755 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16756
16757 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16758 DSYMUTIL=$lt_DSYMUTIL
16759
16760 # Tool to change global to local symbols on Mac OS X.
16761 NMEDIT=$lt_NMEDIT
16762
16763 # Tool to manipulate fat objects and archives on Mac OS X.
16764 LIPO=$lt_LIPO
16765
16766 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16767 OTOOL=$lt_OTOOL
16768
16769 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16770 OTOOL64=$lt_OTOOL64
16771
16772 # Old archive suffix (normally "a").
16773 libext=$libext
16774
16775 # Shared library suffix (normally ".so").
16776 shrext_cmds=$lt_shrext_cmds
16777
16778 # The commands to extract the exported symbol list from a shared archive.
16779 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16780
16781 # Variables whose values should be saved in libtool wrapper scripts and
16782 # restored at link time.
16783 variables_saved_for_relink=$lt_variables_saved_for_relink
16784
16785 # Do we need the "lib" prefix for modules?
16786 need_lib_prefix=$need_lib_prefix
16787
16788 # Do we need a version for libraries?
16789 need_version=$need_version
16790
16791 # Library versioning type.
16792 version_type=$version_type
16793
16794 # Shared library runtime path variable.
16795 runpath_var=$runpath_var
16796
16797 # Shared library path variable.
16798 shlibpath_var=$shlibpath_var
16799
16800 # Is shlibpath searched before the hard-coded library search path?
16801 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16802
16803 # Format of library name prefix.
16804 libname_spec=$lt_libname_spec
16805
16806 # List of archive names. First name is the real one, the rest are links.
16807 # The last name is the one that the linker finds with -lNAME
16808 library_names_spec=$lt_library_names_spec
16809
16810 # The coded name of the library, if different from the real name.
16811 soname_spec=$lt_soname_spec
16812
16813 # Permission mode override for installation of shared libraries.
16814 install_override_mode=$lt_install_override_mode
16815
16816 # Command to use after installation of a shared archive.
16817 postinstall_cmds=$lt_postinstall_cmds
16818
16819 # Command to use after uninstallation of a shared archive.
16820 postuninstall_cmds=$lt_postuninstall_cmds
16821
16822 # Commands used to finish a libtool library installation in a directory.
16823 finish_cmds=$lt_finish_cmds
16824
16825 # As "finish_cmds", except a single script fragment to be evaled but
16826 # not shown.
16827 finish_eval=$lt_finish_eval
16828
16829 # Whether we should hardcode library paths into libraries.
16830 hardcode_into_libs=$hardcode_into_libs
16831
16832 # Compile-time system search path for libraries.
16833 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16834
16835 # Detected run-time system search path for libraries.
16836 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16837
16838 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16839 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16840
16841 # Whether dlopen is supported.
16842 dlopen_support=$enable_dlopen
16843
16844 # Whether dlopen of programs is supported.
16845 dlopen_self=$enable_dlopen_self
16846
16847 # Whether dlopen of statically linked programs is supported.
16848 dlopen_self_static=$enable_dlopen_self_static
16849
16850 # Commands to strip libraries.
16851 old_striplib=$lt_old_striplib
16852 striplib=$lt_striplib
16853
16854
16855 # The linker used to build libraries.
16856 LD=$lt_LD
16857
16858 # How to create reloadable object files.
16859 reload_flag=$lt_reload_flag
16860 reload_cmds=$lt_reload_cmds
16861
16862 # Commands used to build an old-style archive.
16863 old_archive_cmds=$lt_old_archive_cmds
16864
16865 # A language specific compiler.
16866 CC=$lt_compiler
16867
16868 # Is the compiler the GNU compiler?
16869 with_gcc=$GCC
16870
16871 # Compiler flag to turn off builtin functions.
16872 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16873
16874 # Additional compiler flags for building library objects.
16875 pic_flag=$lt_lt_prog_compiler_pic
16876
16877 # How to pass a linker flag through the compiler.
16878 wl=$lt_lt_prog_compiler_wl
16879
16880 # Compiler flag to prevent dynamic linking.
16881 link_static_flag=$lt_lt_prog_compiler_static
16882
16883 # Does compiler simultaneously support -c and -o options?
16884 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16885
16886 # Whether or not to add -lc for building shared libraries.
16887 build_libtool_need_lc=$archive_cmds_need_lc
16888
16889 # Whether or not to disallow shared libs when runtime libs are static.
16890 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16891
16892 # Compiler flag to allow reflexive dlopens.
16893 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16894
16895 # Compiler flag to generate shared objects directly from archives.
16896 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16897
16898 # Whether the compiler copes with passing no objects directly.
16899 compiler_needs_object=$lt_compiler_needs_object
16900
16901 # Create an old-style archive from a shared archive.
16902 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16903
16904 # Create a temporary old-style archive to link instead of a shared archive.
16905 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16906
16907 # Commands used to build a shared archive.
16908 archive_cmds=$lt_archive_cmds
16909 archive_expsym_cmds=$lt_archive_expsym_cmds
16910
16911 # Commands used to build a loadable module if different from building
16912 # a shared archive.
16913 module_cmds=$lt_module_cmds
16914 module_expsym_cmds=$lt_module_expsym_cmds
16915
16916 # Whether we are building with GNU ld or not.
16917 with_gnu_ld=$lt_with_gnu_ld
16918
16919 # Flag that allows shared libraries with undefined symbols to be built.
16920 allow_undefined_flag=$lt_allow_undefined_flag
16921
16922 # Flag that enforces no undefined symbols.
16923 no_undefined_flag=$lt_no_undefined_flag
16924
16925 # Flag to hardcode \$libdir into a binary during linking.
16926 # This must work even if \$libdir does not exist
16927 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16928
16929 # Whether we need a single "-rpath" flag with a separated argument.
16930 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16931
16932 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16933 # DIR into the resulting binary.
16934 hardcode_direct=$hardcode_direct
16935
16936 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16937 # DIR into the resulting binary and the resulting library dependency is
16938 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16939 # library is relocated.
16940 hardcode_direct_absolute=$hardcode_direct_absolute
16941
16942 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16943 # into the resulting binary.
16944 hardcode_minus_L=$hardcode_minus_L
16945
16946 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16947 # into the resulting binary.
16948 hardcode_shlibpath_var=$hardcode_shlibpath_var
16949
16950 # Set to "yes" if building a shared library automatically hardcodes DIR
16951 # into the library and all subsequent libraries and executables linked
16952 # against it.
16953 hardcode_automatic=$hardcode_automatic
16954
16955 # Set to yes if linker adds runtime paths of dependent libraries
16956 # to runtime path list.
16957 inherit_rpath=$inherit_rpath
16958
16959 # Whether libtool must link a program against all its dependency libraries.
16960 link_all_deplibs=$link_all_deplibs
16961
16962 # Set to "yes" if exported symbols are required.
16963 always_export_symbols=$always_export_symbols
16964
16965 # The commands to list exported symbols.
16966 export_symbols_cmds=$lt_export_symbols_cmds
16967
16968 # Symbols that should not be listed in the preloaded symbols.
16969 exclude_expsyms=$lt_exclude_expsyms
16970
16971 # Symbols that must always be exported.
16972 include_expsyms=$lt_include_expsyms
16973
16974 # Commands necessary for linking programs (against libraries) with templates.
16975 prelink_cmds=$lt_prelink_cmds
16976
16977 # Commands necessary for finishing linking programs.
16978 postlink_cmds=$lt_postlink_cmds
16979
16980 # Specify filename containing input files.
16981 file_list_spec=$lt_file_list_spec
16982
16983 # How to hardcode a shared library path into an executable.
16984 hardcode_action=$hardcode_action
16985
16986 # ### END LIBTOOL CONFIG
16987
16988 _LT_EOF
16989
16990 cat <<'_LT_EOF' >> "$cfgfile"
16991
16992 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16993
16994 # func_munge_path_list VARIABLE PATH
16995 # -----------------------------------
16996 # VARIABLE is name of variable containing _space_ separated list of
16997 # directories to be munged by the contents of PATH, which is string
16998 # having a format:
16999 # "DIR[:DIR]:"
17000 # string "DIR[ DIR]" will be prepended to VARIABLE
17001 # ":DIR[:DIR]"
17002 # string "DIR[ DIR]" will be appended to VARIABLE
17003 # "DIRP[:DIRP]::[DIRA:]DIRA"
17004 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17005 # "DIRA[ DIRA]" will be appended to VARIABLE
17006 # "DIR[:DIR]"
17007 # VARIABLE will be replaced by "DIR[ DIR]"
17008 func_munge_path_list ()
17009 {
17010 case x$2 in
17011 x)
17012 ;;
17013 *:)
17014 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17015 ;;
17016 x:*)
17017 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17018 ;;
17019 *::*)
17020 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17021 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17022 ;;
17023 *)
17024 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17025 ;;
17026 esac
17027 }
17028
17029
17030 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17031 func_cc_basename ()
17032 {
17033 for cc_temp in $*""; do
17034 case $cc_temp in
17035 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17036 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17037 \-*) ;;
17038 *) break;;
17039 esac
17040 done
17041 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17042 }
17043
17044
17045 # ### END FUNCTIONS SHARED WITH CONFIGURE
17046
17047 _LT_EOF
17048
17049 case $host_os in
17050 aix3*)
17051 cat <<\_LT_EOF >> "$cfgfile"
17052 # AIX sometimes has problems with the GCC collect2 program. For some
17053 # reason, if we set the COLLECT_NAMES environment variable, the problems
17054 # vanish in a puff of smoke.
17055 if test set != "${COLLECT_NAMES+set}"; then
17056 COLLECT_NAMES=
17057 export COLLECT_NAMES
17058 fi
17059 _LT_EOF
17060 ;;
17061 esac
17062
17063
17064 ltmain=$ac_aux_dir/ltmain.sh
17065
17066
17067 # We use sed instead of cat because bash on DJGPP gets confused if
17068 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17069 # text mode, it properly converts lines to CR/LF. This bash problem
17070 # is reportedly fixed, but why not run on old versions too?
17071 sed '$q' "$ltmain" >> "$cfgfile" \
17072 || (rm -f "$cfgfile"; exit 1)
17073
17074 mv -f "$cfgfile" "$ofile" ||
17075 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17076 chmod +x "$ofile"
17077
17078 ;;
17079
17080 esac
17081 done # for ac_tag
17082
17083
17084 as_fn_exit 0
17085 _ACEOF
17086 ac_clean_files=$ac_clean_files_save
17087
17088 test $ac_write_fail = 0 ||
17089 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17090
17091
17092 # configure is writing to config.log, and then calls config.status.
17093 # config.status does its own redirection, appending to config.log.
17094 # Unfortunately, on DOS this fails, as config.log is still kept open
17095 # by configure, so config.status won't be able to write to it; its
17096 # output is simply discarded. So we exec the FD to /dev/null,
17097 # effectively closing config.log, so it can be properly (re)opened and
17098 # appended to by config.status. When coming back to configure, we
17099 # need to make the FD available again.
17100 if test "$no_create" != yes; then
17101 ac_cs_success=:
17102 ac_config_status_args=
17103 test "$silent" = yes &&
17104 ac_config_status_args="$ac_config_status_args --quiet"
17105 exec 5>/dev/null
17106 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17107 exec 5>>config.log
17108 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17109 # would make configure fail if this is the last instruction.
17110 $ac_cs_success || as_fn_exit 1
17111 fi
17112 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17114 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17115 fi
17116