configure revision 1.22 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for file 5.38.
4 #
5 # Report bugs to <christos (at] astron.com>.
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 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: christos (at] astron.com about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: 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='file'
592 PACKAGE_TARNAME='file'
593 PACKAGE_VERSION='5.38'
594 PACKAGE_STRING='file 5.38'
595 PACKAGE_BUGREPORT='christos (at] astron.com'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_header_list=
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 IS_CROSS_COMPILE_FALSE
639 IS_CROSS_COMPILE_TRUE
640 LIBOBJS
641 HAVE_VISIBILITY
642 CFLAG_VISIBILITY
643 LT_SYS_LIBRARY_PATH
644 OTOOL64
645 OTOOL
646 LIPO
647 NMEDIT
648 DSYMUTIL
649 MANIFEST_TOOL
650 RANLIB
651 ac_ct_AR
652 AR
653 DLLTOOL
654 OBJDUMP
655 NM
656 ac_ct_DUMPBIN
657 DUMPBIN
658 LD
659 FGREP
660 SED
661 LIBTOOL
662 LN_S
663 EGREP
664 GREP
665 CPP
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 am__nodep
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__include
674 DEPDIR
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
681 CC
682 WARNINGS
683 FSECT5_FALSE
684 FSECT5_TRUE
685 fsect
686 pkgdatadir
687 MINGW_FALSE
688 MINGW_TRUE
689 MINGW
690 host_os
691 host_vendor
692 host_cpu
693 host
694 build_os
695 build_vendor
696 build_cpu
697 build
698 MAINT
699 MAINTAINER_MODE_FALSE
700 MAINTAINER_MODE_TRUE
701 AM_BACKSLASH
702 AM_DEFAULT_VERBOSITY
703 AM_DEFAULT_V
704 AM_V
705 am__untar
706 am__tar
707 AMTAR
708 am__leading_dot
709 SET_MAKE
710 AWK
711 mkdir_p
712 MKDIR_P
713 INSTALL_STRIP_PROGRAM
714 STRIP
715 install_sh
716 MAKEINFO
717 AUTOHEADER
718 AUTOMAKE
719 AUTOCONF
720 ACLOCAL
721 VERSION
722 PACKAGE
723 CYGPATH_W
724 am__isrc
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 target_alias
729 host_alias
730 build_alias
731 LIBS
732 ECHO_T
733 ECHO_N
734 ECHO_C
735 DEFS
736 mandir
737 localedir
738 libdir
739 psdir
740 pdfdir
741 dvidir
742 htmldir
743 infodir
744 docdir
745 oldincludedir
746 includedir
747 localstatedir
748 sharedstatedir
749 sysconfdir
750 datadir
751 datarootdir
752 libexecdir
753 sbindir
754 bindir
755 program_transform_name
756 prefix
757 exec_prefix
758 PACKAGE_URL
759 PACKAGE_BUGREPORT
760 PACKAGE_STRING
761 PACKAGE_VERSION
762 PACKAGE_TARNAME
763 PACKAGE_NAME
764 PATH_SEPARATOR
765 SHELL
766 am__quote'
767 ac_subst_files=''
768 ac_user_opts='
769 enable_option_checking
770 enable_silent_rules
771 enable_maintainer_mode
772 enable_elf
773 enable_elf_core
774 enable_zlib
775 enable_bzlib
776 enable_xzlib
777 enable_libseccomp
778 enable_fsect_man5
779 enable_dependency_tracking
780 enable_static
781 with_pic
782 enable_shared
783 enable_fast_install
784 with_aix_soname
785 with_gnu_ld
786 with_sysroot
787 enable_libtool_lock
788 enable_largefile
789 enable_warnings
790 '
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
799 CPP
800 LT_SYS_LIBRARY_PATH'
801
802
803 # Initialize some variables set by options.
804 ac_init_help=
805 ac_init_version=false
806 ac_unrecognized_opts=
807 ac_unrecognized_sep=
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
810 cache_file=/dev/null
811 exec_prefix=NONE
812 no_create=
813 no_recursion=
814 prefix=NONE
815 program_prefix=NONE
816 program_suffix=NONE
817 program_transform_name=s,x,x,
818 silent=
819 site=
820 srcdir=
821 verbose=
822 x_includes=NONE
823 x_libraries=NONE
824
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
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 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1096
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1107
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1112
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1117
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1124
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1129
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1132
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1135
1136 -with-* | --with-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=\$ac_optarg ;;
1151
1152 -without-* | --without-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=no ;;
1167
1168 --x)
1169 # Obsolete; use --with-x.
1170 with_x=yes ;;
1171
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1178
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1185
1186 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187 Try \`$0 --help' for more information"
1188 ;;
1189
1190 *=*)
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 case $ac_envvar in #(
1194 '' | [0-9]* | *[!_$as_cr_alnum]* )
1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1196 esac
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1199
1200 *)
1201 # FIXME: should be removed in autoconf 3.0.
1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1206 ;;
1207
1208 esac
1209 done
1210
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 as_fn_error $? "missing argument to $ac_option"
1214 fi
1215
1216 if test -n "$ac_unrecognized_opts"; then
1217 case $enable_option_checking in
1218 no) ;;
1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221 esac
1222 fi
1223
1224 # Check all directory arguments for consistency.
1225 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226 datadir sysconfdir sharedstatedir localstatedir includedir \
1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228 libdir localedir mandir
1229 do
1230 eval ac_val=\$$ac_var
1231 # Remove trailing slashes.
1232 case $ac_val in
1233 */ )
1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235 eval $ac_var=\$ac_val;;
1236 esac
1237 # Be sure to have absolute directory names.
1238 case $ac_val in
1239 [\\/$]* | ?:[\\/]* ) continue;;
1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241 esac
1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1243 done
1244
1245 # There might be people who depend on the old broken behavior: `$host'
1246 # used to hold the argument of --host etc.
1247 # FIXME: To remove some day.
1248 build=$build_alias
1249 host=$host_alias
1250 target=$target_alias
1251
1252 # FIXME: To remove some day.
1253 if test "x$host_alias" != x; then
1254 if test "x$build_alias" = x; then
1255 cross_compiling=maybe
1256 elif test "x$build_alias" != "x$host_alias"; then
1257 cross_compiling=yes
1258 fi
1259 fi
1260
1261 ac_tool_prefix=
1262 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263
1264 test "$silent" = yes && exec 6>/dev/null
1265
1266
1267 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268 ac_ls_di=`ls -di .` &&
1269 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270 as_fn_error $? "working directory cannot be determined"
1271 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272 as_fn_error $? "pwd does not report name of working directory"
1273
1274
1275 # Find the source files, if location was not specified.
1276 if test -z "$srcdir"; then
1277 ac_srcdir_defaulted=yes
1278 # Try the directory containing this script, then the parent directory.
1279 ac_confdir=`$as_dirname -- "$as_myself" ||
1280 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281 X"$as_myself" : 'X\(//\)[^/]' \| \
1282 X"$as_myself" : 'X\(//\)$' \| \
1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284 $as_echo X"$as_myself" |
1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\/\)[^/].*/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)$/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\).*/{
1298 s//\1/
1299 q
1300 }
1301 s/.*/./; q'`
1302 srcdir=$ac_confdir
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 srcdir=..
1305 fi
1306 else
1307 ac_srcdir_defaulted=no
1308 fi
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1311 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1312 fi
1313 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 ac_abs_confdir=`(
1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1316 pwd)`
1317 # When building in place, set srcdir=.
1318 if test "$ac_abs_confdir" = "$ac_pwd"; then
1319 srcdir=.
1320 fi
1321 # Remove unnecessary trailing slashes from srcdir.
1322 # Double slashes in file names in object file debugging info
1323 # mess up M-x gdb in Emacs.
1324 case $srcdir in
1325 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326 esac
1327 for ac_var in $ac_precious_vars; do
1328 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_env_${ac_var}_value=\$${ac_var}
1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 done
1333
1334 #
1335 # Report the --help message.
1336 #
1337 if test "$ac_init_help" = "long"; then
1338 # Omit some internal or obsolete options to make the list less imposing.
1339 # This message is too long to be a string in the A/UX 3.1 sh.
1340 cat <<_ACEOF
1341 \`configure' configures file 5.38 to adapt to many kinds of systems.
1342
1343 Usage: $0 [OPTION]... [VAR=VALUE]...
1344
1345 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346 VAR=VALUE. See below for descriptions of some of the useful variables.
1347
1348 Defaults for the options are specified in brackets.
1349
1350 Configuration:
1351 -h, --help display this help and exit
1352 --help=short display options specific to this package
1353 --help=recursive display the short help of all the included packages
1354 -V, --version display version information and exit
1355 -q, --quiet, --silent do not print \`checking ...' messages
1356 --cache-file=FILE cache test results in FILE [disabled]
1357 -C, --config-cache alias for \`--cache-file=config.cache'
1358 -n, --no-create do not create output files
1359 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360
1361 Installation directories:
1362 --prefix=PREFIX install architecture-independent files in PREFIX
1363 [$ac_default_prefix]
1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365 [PREFIX]
1366
1367 By default, \`make install' will install all the files in
1368 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370 for instance \`--prefix=\$HOME'.
1371
1372 For better control, use the options below.
1373
1374 Fine tuning of the installation directories:
1375 --bindir=DIR user executables [EPREFIX/bin]
1376 --sbindir=DIR system admin executables [EPREFIX/sbin]
1377 --libexecdir=DIR program executables [EPREFIX/libexec]
1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/file]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394 _ACEOF
1395
1396 cat <<\_ACEOF
1397
1398 Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402
1403 System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 _ACEOF
1407 fi
1408
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of file 5.38:";;
1412 esac
1413 cat <<\_ACEOF
1414
1415 Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --enable-silent-rules less verbose build output (undo: "make V=1")
1420 --disable-silent-rules verbose build output (undo: "make V=0")
1421 --enable-maintainer-mode
1422 enable make rules and dependencies not useful (and
1423 sometimes confusing) to the casual installer
1424 --disable-elf disable builtin ELF support
1425 --disable-elf-core disable ELF core file support
1426 --disable-zlib disable zlib compression support [default=auto]
1427 --disable-bzlib disable bz2lib compression support [default=auto]
1428 --disable-xzlib disable liblzma/xz compression support
1429 [default=auto]
1430 --disable-libseccomp disable libseccomp sandboxing [default=auto]
1431 --enable-fsect-man5 enable file formats in man section 5
1432 --enable-dependency-tracking
1433 do not reject slow dependency extractors
1434 --disable-dependency-tracking
1435 speeds up one-time build
1436 --enable-static[=PKGS] build static libraries [default=no]
1437 --enable-shared[=PKGS] build shared libraries [default=yes]
1438 --enable-fast-install[=PKGS]
1439 optimize for fast installation [default=yes]
1440 --disable-libtool-lock avoid locking (might break parallel builds)
1441 --disable-largefile omit support for large files
1442 --disable-warnings disable compiler warnings
1443
1444 Optional Packages:
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1448 both]
1449 --with-aix-soname=aix|svr4|both
1450 shared library versioning (aka "SONAME") variant to
1451 provide on AIX, [default=aix].
1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1453 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1454 compiler's sysroot if not specified).
1455
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
1462 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 CPP C preprocessor
1465 LT_SYS_LIBRARY_PATH
1466 User-defined run-time library search path.
1467
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to <christos (at] astron.com>.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" ||
1480 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481 continue
1482 ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501 .) # We are building in place.
1502 ac_srcdir=.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1524 else
1525 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526 fi || ac_status=$?
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1528 done
1529 fi
1530
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533 cat <<\_ACEOF
1534 file configure 5.38
1535 generated by GNU Autoconf 2.69
1536
1537 Copyright (C) 2012 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1540 _ACEOF
1541 exit
1542 fi
1543
1544 ## ------------------------ ##
1545 ## Autoconf initialization. ##
1546 ## ------------------------ ##
1547
1548 # ac_fn_c_try_compile LINENO
1549 # --------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_compile ()
1552 {
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext
1555 if { { ac_try="$ac_compile"
1556 case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_compile") 2>conftest.err
1563 ac_status=$?
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1568 fi
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest.$ac_objext; then :
1574 ac_retval=0
1575 else
1576 $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1578
1579 ac_retval=1
1580 fi
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582 as_fn_set_status $ac_retval
1583
1584 } # ac_fn_c_try_compile
1585
1586 # ac_fn_c_try_cpp LINENO
1587 # ----------------------
1588 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_cpp ()
1590 {
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 if { { ac_try="$ac_cpp conftest.$ac_ext"
1593 case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1600 ac_status=$?
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1605 fi
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } > conftest.i && {
1608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 }; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1
1617 fi
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_cpp
1622
1623 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1626 # the include files in INCLUDES and setting the cache variable VAR
1627 # accordingly.
1628 ac_fn_c_check_header_mongrel ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if eval \${$3+:} false; then :
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 $as_echo_n "checking for $2... " >&6; }
1634 if eval \${$3+:} false; then :
1635 $as_echo_n "(cached) " >&6
1636 fi
1637 eval ac_res=\$$3
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 $as_echo "$ac_res" >&6; }
1640 else
1641 # Is the header compilable?
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1643 $as_echo_n "checking $2 usability... " >&6; }
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1646 $4
1647 #include <$2>
1648 _ACEOF
1649 if ac_fn_c_try_compile "$LINENO"; then :
1650 ac_header_compiler=yes
1651 else
1652 ac_header_compiler=no
1653 fi
1654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1656 $as_echo "$ac_header_compiler" >&6; }
1657
1658 # Is the header present?
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1660 $as_echo_n "checking $2 presence... " >&6; }
1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h. */
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_cpp "$LINENO"; then :
1666 ac_header_preproc=yes
1667 else
1668 ac_header_preproc=no
1669 fi
1670 rm -f conftest.err conftest.i conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1672 $as_echo "$ac_header_preproc" >&6; }
1673
1674 # So? What about this header?
1675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1676 yes:no: )
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1678 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1680 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1681 ;;
1682 no:yes:* )
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1684 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1686 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1688 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1690 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1692 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1693 ( $as_echo "## ---------------------------------- ##
1694 ## Report this to christos (at] astron.com ##
1695 ## ---------------------------------- ##"
1696 ) | sed "s/^/$as_me: WARNING: /" >&2
1697 ;;
1698 esac
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 $as_echo_n "checking for $2... " >&6; }
1701 if eval \${$3+:} false; then :
1702 $as_echo_n "(cached) " >&6
1703 else
1704 eval "$3=\$ac_header_compiler"
1705 fi
1706 eval ac_res=\$$3
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708 $as_echo "$ac_res" >&6; }
1709 fi
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711
1712 } # ac_fn_c_check_header_mongrel
1713
1714 # ac_fn_c_try_run LINENO
1715 # ----------------------
1716 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717 # that executables *can* be run.
1718 ac_fn_c_try_run ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_link"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732 { { case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_try") 2>&5
1739 ac_status=$?
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; }; }; then :
1742 ac_retval=0
1743 else
1744 $as_echo "$as_me: program exited with status $ac_status" >&5
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=$ac_status
1749 fi
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_run
1755
1756 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists and can be compiled using the include files in
1759 # INCLUDES, setting the cache variable VAR accordingly.
1760 ac_fn_c_check_header_compile ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1767 else
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1770 $4
1771 #include <$2>
1772 _ACEOF
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774 eval "$3=yes"
1775 else
1776 eval "$3=no"
1777 fi
1778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779 fi
1780 eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785 } # ac_fn_c_check_header_compile
1786
1787 # ac_fn_c_try_link LINENO
1788 # -----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_link ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext conftest$ac_exeext
1794 if { { ac_try="$ac_link"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1807 fi
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest$ac_exeext && {
1813 test "$cross_compiling" = yes ||
1814 test -x conftest$ac_exeext
1815 }; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821 ac_retval=1
1822 fi
1823 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825 # interfere with the next link command; also delete a directory that is
1826 # left behind by Apple's compiler. We do this before executing the actions.
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1830
1831 } # ac_fn_c_try_link
1832
1833 # ac_fn_c_check_func LINENO FUNC VAR
1834 # ----------------------------------
1835 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1836 ac_fn_c_check_func ()
1837 {
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1843 else
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1846 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1848 #define $2 innocuous_$2
1849
1850 /* System header to define __stub macros and hopefully few prototypes,
1851 which can conflict with char $2 (); below.
1852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1853 <limits.h> exists even on freestanding compilers. */
1854
1855 #ifdef __STDC__
1856 # include <limits.h>
1857 #else
1858 # include <assert.h>
1859 #endif
1860
1861 #undef $2
1862
1863 /* Override any GCC internal prototype to avoid an error.
1864 Use char because int might match the return type of a GCC
1865 builtin and then its argument prototype would still apply. */
1866 #ifdef __cplusplus
1867 extern "C"
1868 #endif
1869 char $2 ();
1870 /* The GNU C library defines this for functions which it implements
1871 to always fail with ENOSYS. Some functions are actually named
1872 something starting with __ and the normal name is an alias. */
1873 #if defined __stub_$2 || defined __stub___$2
1874 choke me
1875 #endif
1876
1877 int
1878 main ()
1879 {
1880 return $2 ();
1881 ;
1882 return 0;
1883 }
1884 _ACEOF
1885 if ac_fn_c_try_link "$LINENO"; then :
1886 eval "$3=yes"
1887 else
1888 eval "$3=no"
1889 fi
1890 rm -f core conftest.err conftest.$ac_objext \
1891 conftest$ac_exeext conftest.$ac_ext
1892 fi
1893 eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897
1898 } # ac_fn_c_check_func
1899
1900 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1901 # -------------------------------------------
1902 # Tests whether TYPE exists after having included INCLUDES, setting cache
1903 # variable VAR accordingly.
1904 ac_fn_c_check_type ()
1905 {
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
1910 $as_echo_n "(cached) " >&6
1911 else
1912 eval "$3=no"
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 $4
1916 int
1917 main ()
1918 {
1919 if (sizeof ($2))
1920 return 0;
1921 ;
1922 return 0;
1923 }
1924 _ACEOF
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1928 $4
1929 int
1930 main ()
1931 {
1932 if (sizeof (($2)))
1933 return 0;
1934 ;
1935 return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939
1940 else
1941 eval "$3=yes"
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 fi
1947 eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952 } # ac_fn_c_check_type
1953
1954 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1955 # ----------------------------------------------------
1956 # Tries to find if the field MEMBER exists in type AGGR, after including
1957 # INCLUDES, setting cache variable VAR accordingly.
1958 ac_fn_c_check_member ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1962 $as_echo_n "checking for $2.$3... " >&6; }
1963 if eval \${$4+:} false; then :
1964 $as_echo_n "(cached) " >&6
1965 else
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 $5
1969 int
1970 main ()
1971 {
1972 static $2 ac_aggr;
1973 if (ac_aggr.$3)
1974 return 0;
1975 ;
1976 return 0;
1977 }
1978 _ACEOF
1979 if ac_fn_c_try_compile "$LINENO"; then :
1980 eval "$4=yes"
1981 else
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1984 $5
1985 int
1986 main ()
1987 {
1988 static $2 ac_aggr;
1989 if (sizeof ac_aggr.$3)
1990 return 0;
1991 ;
1992 return 0;
1993 }
1994 _ACEOF
1995 if ac_fn_c_try_compile "$LINENO"; then :
1996 eval "$4=yes"
1997 else
1998 eval "$4=no"
1999 fi
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 fi
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 fi
2004 eval ac_res=\$$4
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008
2009 } # ac_fn_c_check_member
2010
2011 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2012 # ---------------------------------------------
2013 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2014 # accordingly.
2015 ac_fn_c_check_decl ()
2016 {
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 as_decl_name=`echo $2|sed 's/ *(.*//'`
2019 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2021 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2022 if eval \${$3+:} false; then :
2023 $as_echo_n "(cached) " >&6
2024 else
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 $4
2028 int
2029 main ()
2030 {
2031 #ifndef $as_decl_name
2032 #ifdef __cplusplus
2033 (void) $as_decl_use;
2034 #else
2035 (void) $as_decl_name;
2036 #endif
2037 #endif
2038
2039 ;
2040 return 0;
2041 }
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 eval "$3=yes"
2045 else
2046 eval "$3=no"
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 fi
2050 eval ac_res=\$$3
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054
2055 } # ac_fn_c_check_decl
2056
2057 # ac_fn_c_find_uintX_t LINENO BITS VAR
2058 # ------------------------------------
2059 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2060 # accordingly.
2061 ac_fn_c_find_uintX_t ()
2062 {
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2065 $as_echo_n "checking for uint$2_t... " >&6; }
2066 if eval \${$3+:} false; then :
2067 $as_echo_n "(cached) " >&6
2068 else
2069 eval "$3=no"
2070 # Order is important - never check a type that is potentially smaller
2071 # than half of the expected target width.
2072 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2073 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2076 $ac_includes_default
2077 int
2078 main ()
2079 {
2080 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2081 test_array [0] = 0;
2082 return test_array [0];
2083
2084 ;
2085 return 0;
2086 }
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 case $ac_type in #(
2090 uint$2_t) :
2091 eval "$3=yes" ;; #(
2092 *) :
2093 eval "$3=\$ac_type" ;;
2094 esac
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 if eval test \"x\$"$3"\" = x"no"; then :
2098
2099 else
2100 break
2101 fi
2102 done
2103 fi
2104 eval ac_res=\$$3
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108
2109 } # ac_fn_c_find_uintX_t
2110
2111 # ac_fn_c_find_intX_t LINENO BITS VAR
2112 # -----------------------------------
2113 # Finds a signed integer type with width BITS, setting cache variable VAR
2114 # accordingly.
2115 ac_fn_c_find_intX_t ()
2116 {
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2119 $as_echo_n "checking for int$2_t... " >&6; }
2120 if eval \${$3+:} false; then :
2121 $as_echo_n "(cached) " >&6
2122 else
2123 eval "$3=no"
2124 # Order is important - never check a type that is potentially smaller
2125 # than half of the expected target width.
2126 for ac_type in int$2_t 'int' 'long int' \
2127 'long long int' 'short int' 'signed char'; do
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2130 $ac_includes_default
2131 enum { N = $2 / 2 - 1 };
2132 int
2133 main ()
2134 {
2135 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2136 test_array [0] = 0;
2137 return test_array [0];
2138
2139 ;
2140 return 0;
2141 }
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2146 $ac_includes_default
2147 enum { N = $2 / 2 - 1 };
2148 int
2149 main ()
2150 {
2151 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2152 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2153 test_array [0] = 0;
2154 return test_array [0];
2155
2156 ;
2157 return 0;
2158 }
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161
2162 else
2163 case $ac_type in #(
2164 int$2_t) :
2165 eval "$3=yes" ;; #(
2166 *) :
2167 eval "$3=\$ac_type" ;;
2168 esac
2169 fi
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 fi
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 if eval test \"x\$"$3"\" = x"no"; then :
2174
2175 else
2176 break
2177 fi
2178 done
2179 fi
2180 eval ac_res=\$$3
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2183 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184
2185 } # ac_fn_c_find_intX_t
2186 cat >config.log <<_ACEOF
2187 This file contains any messages produced by compilers while
2188 running configure, to aid debugging if configure makes a mistake.
2189
2190 It was created by file $as_me 5.38, which was
2191 generated by GNU Autoconf 2.69. Invocation command line was
2192
2193 $ $0 $@
2194
2195 _ACEOF
2196 exec 5>>config.log
2197 {
2198 cat <<_ASUNAME
2199 ## --------- ##
2200 ## Platform. ##
2201 ## --------- ##
2202
2203 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2204 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2205 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2206 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2207 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2208
2209 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2210 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2211
2212 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2213 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2214 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2215 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2216 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2217 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2218 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2219
2220 _ASUNAME
2221
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2224 do
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 $as_echo "PATH: $as_dir"
2228 done
2229 IFS=$as_save_IFS
2230
2231 } >&5
2232
2233 cat >&5 <<_ACEOF
2234
2235
2236 ## ----------- ##
2237 ## Core tests. ##
2238 ## ----------- ##
2239
2240 _ACEOF
2241
2242
2243 # Keep a trace of the command line.
2244 # Strip out --no-create and --no-recursion so they do not pile up.
2245 # Strip out --silent because we don't want to record it for future runs.
2246 # Also quote any args containing shell meta-characters.
2247 # Make two passes to allow for proper duplicate-argument suppression.
2248 ac_configure_args=
2249 ac_configure_args0=
2250 ac_configure_args1=
2251 ac_must_keep_next=false
2252 for ac_pass in 1 2
2253 do
2254 for ac_arg
2255 do
2256 case $ac_arg in
2257 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2259 | -silent | --silent | --silen | --sile | --sil)
2260 continue ;;
2261 *\'*)
2262 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2263 esac
2264 case $ac_pass in
2265 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2266 2)
2267 as_fn_append ac_configure_args1 " '$ac_arg'"
2268 if test $ac_must_keep_next = true; then
2269 ac_must_keep_next=false # Got value, back to normal.
2270 else
2271 case $ac_arg in
2272 *=* | --config-cache | -C | -disable-* | --disable-* \
2273 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2274 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2275 | -with-* | --with-* | -without-* | --without-* | --x)
2276 case "$ac_configure_args0 " in
2277 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2278 esac
2279 ;;
2280 -* ) ac_must_keep_next=true ;;
2281 esac
2282 fi
2283 as_fn_append ac_configure_args " '$ac_arg'"
2284 ;;
2285 esac
2286 done
2287 done
2288 { ac_configure_args0=; unset ac_configure_args0;}
2289 { ac_configure_args1=; unset ac_configure_args1;}
2290
2291 # When interrupted or exit'd, cleanup temporary files, and complete
2292 # config.log. We remove comments because anyway the quotes in there
2293 # would cause problems or look ugly.
2294 # WARNING: Use '\'' to represent an apostrophe within the trap.
2295 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2296 trap 'exit_status=$?
2297 # Save into config.log some information that might help in debugging.
2298 {
2299 echo
2300
2301 $as_echo "## ---------------- ##
2302 ## Cache variables. ##
2303 ## ---------------- ##"
2304 echo
2305 # The following way of writing the cache mishandles newlines in values,
2306 (
2307 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2308 eval ac_val=\$$ac_var
2309 case $ac_val in #(
2310 *${as_nl}*)
2311 case $ac_var in #(
2312 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2313 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2314 esac
2315 case $ac_var in #(
2316 _ | IFS | as_nl) ;; #(
2317 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2318 *) { eval $ac_var=; unset $ac_var;} ;;
2319 esac ;;
2320 esac
2321 done
2322 (set) 2>&1 |
2323 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2324 *${as_nl}ac_space=\ *)
2325 sed -n \
2326 "s/'\''/'\''\\\\'\'''\''/g;
2327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2328 ;; #(
2329 *)
2330 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2331 ;;
2332 esac |
2333 sort
2334 )
2335 echo
2336
2337 $as_echo "## ----------------- ##
2338 ## Output variables. ##
2339 ## ----------------- ##"
2340 echo
2341 for ac_var in $ac_subst_vars
2342 do
2343 eval ac_val=\$$ac_var
2344 case $ac_val in
2345 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2346 esac
2347 $as_echo "$ac_var='\''$ac_val'\''"
2348 done | sort
2349 echo
2350
2351 if test -n "$ac_subst_files"; then
2352 $as_echo "## ------------------- ##
2353 ## File substitutions. ##
2354 ## ------------------- ##"
2355 echo
2356 for ac_var in $ac_subst_files
2357 do
2358 eval ac_val=\$$ac_var
2359 case $ac_val in
2360 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2361 esac
2362 $as_echo "$ac_var='\''$ac_val'\''"
2363 done | sort
2364 echo
2365 fi
2366
2367 if test -s confdefs.h; then
2368 $as_echo "## ----------- ##
2369 ## confdefs.h. ##
2370 ## ----------- ##"
2371 echo
2372 cat confdefs.h
2373 echo
2374 fi
2375 test "$ac_signal" != 0 &&
2376 $as_echo "$as_me: caught signal $ac_signal"
2377 $as_echo "$as_me: exit $exit_status"
2378 } >&5
2379 rm -f core *.core core.conftest.* &&
2380 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2381 exit $exit_status
2382 ' 0
2383 for ac_signal in 1 2 13 15; do
2384 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2385 done
2386 ac_signal=0
2387
2388 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2389 rm -f -r conftest* confdefs.h
2390
2391 $as_echo "/* confdefs.h */" > confdefs.h
2392
2393 # Predefined preprocessor variables.
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_NAME "$PACKAGE_NAME"
2397 _ACEOF
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2401 _ACEOF
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2405 _ACEOF
2406
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_STRING "$PACKAGE_STRING"
2409 _ACEOF
2410
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2413 _ACEOF
2414
2415 cat >>confdefs.h <<_ACEOF
2416 #define PACKAGE_URL "$PACKAGE_URL"
2417 _ACEOF
2418
2419
2420 # Let the site file select an alternate cache file if it wants to.
2421 # Prefer an explicitly selected file to automatically selected ones.
2422 ac_site_file1=NONE
2423 ac_site_file2=NONE
2424 if test -n "$CONFIG_SITE"; then
2425 # We do not want a PATH search for config.site.
2426 case $CONFIG_SITE in #((
2427 -*) ac_site_file1=./$CONFIG_SITE;;
2428 */*) ac_site_file1=$CONFIG_SITE;;
2429 *) ac_site_file1=./$CONFIG_SITE;;
2430 esac
2431 elif test "x$prefix" != xNONE; then
2432 ac_site_file1=$prefix/share/config.site
2433 ac_site_file2=$prefix/etc/config.site
2434 else
2435 ac_site_file1=$ac_default_prefix/share/config.site
2436 ac_site_file2=$ac_default_prefix/etc/config.site
2437 fi
2438 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2439 do
2440 test "x$ac_site_file" = xNONE && continue
2441 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2443 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2444 sed 's/^/| /' "$ac_site_file" >&5
2445 . "$ac_site_file" \
2446 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 as_fn_error $? "failed to load site script $ac_site_file
2449 See \`config.log' for more details" "$LINENO" 5; }
2450 fi
2451 done
2452
2453 if test -r "$cache_file"; then
2454 # Some versions of bash will fail to source /dev/null (special files
2455 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2456 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2458 $as_echo "$as_me: loading cache $cache_file" >&6;}
2459 case $cache_file in
2460 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2461 *) . "./$cache_file";;
2462 esac
2463 fi
2464 else
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2466 $as_echo "$as_me: creating cache $cache_file" >&6;}
2467 >$cache_file
2468 fi
2469
2470 as_fn_append ac_header_list " stdlib.h"
2471 as_fn_append ac_header_list " unistd.h"
2472 as_fn_append ac_header_list " sys/param.h"
2473 # Check that the precious variables saved in the cache have kept the same
2474 # value.
2475 ac_cache_corrupted=false
2476 for ac_var in $ac_precious_vars; do
2477 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2478 eval ac_new_set=\$ac_env_${ac_var}_set
2479 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2480 eval ac_new_val=\$ac_env_${ac_var}_value
2481 case $ac_old_set,$ac_new_set in
2482 set,)
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2484 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2485 ac_cache_corrupted=: ;;
2486 ,set)
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2488 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2489 ac_cache_corrupted=: ;;
2490 ,);;
2491 *)
2492 if test "x$ac_old_val" != "x$ac_new_val"; then
2493 # differences in whitespace do not lead to failure.
2494 ac_old_val_w=`echo x $ac_old_val`
2495 ac_new_val_w=`echo x $ac_new_val`
2496 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2498 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2499 ac_cache_corrupted=:
2500 else
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2502 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2503 eval $ac_var=\$ac_old_val
2504 fi
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2506 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2508 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2509 fi;;
2510 esac
2511 # Pass precious variables to config.status.
2512 if test "$ac_new_set" = set; then
2513 case $ac_new_val in
2514 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2515 *) ac_arg=$ac_var=$ac_new_val ;;
2516 esac
2517 case " $ac_configure_args " in
2518 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2519 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2520 esac
2521 fi
2522 done
2523 if $ac_cache_corrupted; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2527 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2528 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2529 fi
2530 ## -------------------- ##
2531 ## Main body of script. ##
2532 ## -------------------- ##
2533
2534 ac_ext=c
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539
2540
2541 am__api_version='1.16'
2542
2543 ac_aux_dir=
2544 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2545 if test -f "$ac_dir/install-sh"; then
2546 ac_aux_dir=$ac_dir
2547 ac_install_sh="$ac_aux_dir/install-sh -c"
2548 break
2549 elif test -f "$ac_dir/install.sh"; then
2550 ac_aux_dir=$ac_dir
2551 ac_install_sh="$ac_aux_dir/install.sh -c"
2552 break
2553 elif test -f "$ac_dir/shtool"; then
2554 ac_aux_dir=$ac_dir
2555 ac_install_sh="$ac_aux_dir/shtool install -c"
2556 break
2557 fi
2558 done
2559 if test -z "$ac_aux_dir"; then
2560 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2561 fi
2562
2563 # These three variables are undocumented and unsupported,
2564 # and are intended to be withdrawn in a future Autoconf release.
2565 # They can cause serious problems if a builder's source tree is in a directory
2566 # whose full name contains unusual characters.
2567 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2568 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2569 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2570
2571
2572 # Find a good install program. We prefer a C program (faster),
2573 # so one script is as good as another. But avoid the broken or
2574 # incompatible versions:
2575 # SysV /etc/install, /usr/sbin/install
2576 # SunOS /usr/etc/install
2577 # IRIX /sbin/install
2578 # AIX /bin/install
2579 # AmigaOS /C/install, which installs bootblocks on floppy discs
2580 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2583 # OS/2's system install, which has a completely different semantic
2584 # ./install, which can be erroneously created by make from ./install.sh.
2585 # Reject install programs that cannot install multiple files.
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2587 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2588 if test -z "$INSTALL"; then
2589 if ${ac_cv_path_install+:} false; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 # Account for people who put trailing slashes in PATH elements.
2598 case $as_dir/ in #((
2599 ./ | .// | /[cC]/* | \
2600 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2601 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2602 /usr/ucb/* ) ;;
2603 *)
2604 # OSF1 and SCO ODT 3.0 have their own names for install.
2605 # Don't use installbsd from OSF since it installs stuff as root
2606 # by default.
2607 for ac_prog in ginstall scoinst install; do
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2610 if test $ac_prog = install &&
2611 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2612 # AIX install. It has an incompatible calling convention.
2613 :
2614 elif test $ac_prog = install &&
2615 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2616 # program-specific install script used by HP pwplus--don't use.
2617 :
2618 else
2619 rm -rf conftest.one conftest.two conftest.dir
2620 echo one > conftest.one
2621 echo two > conftest.two
2622 mkdir conftest.dir
2623 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2624 test -s conftest.one && test -s conftest.two &&
2625 test -s conftest.dir/conftest.one &&
2626 test -s conftest.dir/conftest.two
2627 then
2628 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2629 break 3
2630 fi
2631 fi
2632 fi
2633 done
2634 done
2635 ;;
2636 esac
2637
2638 done
2639 IFS=$as_save_IFS
2640
2641 rm -rf conftest.one conftest.two conftest.dir
2642
2643 fi
2644 if test "${ac_cv_path_install+set}" = set; then
2645 INSTALL=$ac_cv_path_install
2646 else
2647 # As a last resort, use the slow shell script. Don't cache a
2648 # value for INSTALL within a source directory, because that will
2649 # break other packages using the cache if that directory is
2650 # removed, or if the value is a relative name.
2651 INSTALL=$ac_install_sh
2652 fi
2653 fi
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2655 $as_echo "$INSTALL" >&6; }
2656
2657 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2658 # It thinks the first close brace ends the variable substitution.
2659 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2660
2661 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2662
2663 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2664
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2666 $as_echo_n "checking whether build environment is sane... " >&6; }
2667 # Reject unsafe characters in $srcdir or the absolute working directory
2668 # name. Accept space and tab only in the latter.
2669 am_lf='
2670 '
2671 case `pwd` in
2672 *[\\\"\#\$\&\'\`$am_lf]*)
2673 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2674 esac
2675 case $srcdir in
2676 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2677 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2678 esac
2679
2680 # Do 'set' in a subshell so we don't clobber the current shell's
2681 # arguments. Must try -L first in case configure is actually a
2682 # symlink; some systems play weird games with the mod time of symlinks
2683 # (eg FreeBSD returns the mod time of the symlink's containing
2684 # directory).
2685 if (
2686 am_has_slept=no
2687 for am_try in 1 2; do
2688 echo "timestamp, slept: $am_has_slept" > conftest.file
2689 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2690 if test "$*" = "X"; then
2691 # -L didn't work.
2692 set X `ls -t "$srcdir/configure" conftest.file`
2693 fi
2694 if test "$*" != "X $srcdir/configure conftest.file" \
2695 && test "$*" != "X conftest.file $srcdir/configure"; then
2696
2697 # If neither matched, then we have a broken ls. This can happen
2698 # if, for instance, CONFIG_SHELL is bash and it inherits a
2699 # broken ls alias from the environment. This has actually
2700 # happened. Such a system could not be considered "sane".
2701 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2702 alias in your environment" "$LINENO" 5
2703 fi
2704 if test "$2" = conftest.file || test $am_try -eq 2; then
2705 break
2706 fi
2707 # Just in case.
2708 sleep 1
2709 am_has_slept=yes
2710 done
2711 test "$2" = conftest.file
2712 )
2713 then
2714 # Ok.
2715 :
2716 else
2717 as_fn_error $? "newly created file is older than distributed files!
2718 Check your system clock" "$LINENO" 5
2719 fi
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2721 $as_echo "yes" >&6; }
2722 # If we didn't sleep, we still need to ensure time stamps of config.status and
2723 # generated files are strictly newer.
2724 am_sleep_pid=
2725 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2726 ( sleep 1 ) &
2727 am_sleep_pid=$!
2728 fi
2729
2730 rm -f conftest.file
2731
2732 test "$program_prefix" != NONE &&
2733 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2734 # Use a double $ so make ignores it.
2735 test "$program_suffix" != NONE &&
2736 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2737 # Double any \ or $.
2738 # By default was `s,x,x', remove it if useless.
2739 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2740 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2741
2742 # Expand $ac_aux_dir to an absolute path.
2743 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2744
2745 if test x"${MISSING+set}" != xset; then
2746 case $am_aux_dir in
2747 *\ * | *\ *)
2748 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2749 *)
2750 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2751 esac
2752 fi
2753 # Use eval to expand $SHELL
2754 if eval "$MISSING --is-lightweight"; then
2755 am_missing_run="$MISSING "
2756 else
2757 am_missing_run=
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2759 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2760 fi
2761
2762 if test x"${install_sh+set}" != xset; then
2763 case $am_aux_dir in
2764 *\ * | *\ *)
2765 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2766 *)
2767 install_sh="\${SHELL} $am_aux_dir/install-sh"
2768 esac
2769 fi
2770
2771 # Installed binaries are usually stripped using 'strip' when the user
2772 # run "make install-strip". However 'strip' might not be the right
2773 # tool to use in cross-compilation environments, therefore Automake
2774 # will honor the 'STRIP' environment variable to overrule this program.
2775 if test "$cross_compiling" != no; then
2776 if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2778 set dummy ${ac_tool_prefix}strip; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if ${ac_cv_prog_STRIP+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783 else
2784 if test -n "$STRIP"; then
2785 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798 done
2799 done
2800 IFS=$as_save_IFS
2801
2802 fi
2803 fi
2804 STRIP=$ac_cv_prog_STRIP
2805 if test -n "$STRIP"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2807 $as_echo "$STRIP" >&6; }
2808 else
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2811 fi
2812
2813
2814 fi
2815 if test -z "$ac_cv_prog_STRIP"; then
2816 ac_ct_STRIP=$STRIP
2817 # Extract the first word of "strip", so it can be a program name with args.
2818 set dummy strip; ac_word=$2
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 if test -n "$ac_ct_STRIP"; then
2825 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2829 do
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834 ac_cv_prog_ac_ct_STRIP="strip"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2837 fi
2838 done
2839 done
2840 IFS=$as_save_IFS
2841
2842 fi
2843 fi
2844 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2845 if test -n "$ac_ct_STRIP"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2847 $as_echo "$ac_ct_STRIP" >&6; }
2848 else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2851 fi
2852
2853 if test "x$ac_ct_STRIP" = x; then
2854 STRIP=":"
2855 else
2856 case $cross_compiling:$ac_tool_warned in
2857 yes:)
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860 ac_tool_warned=yes ;;
2861 esac
2862 STRIP=$ac_ct_STRIP
2863 fi
2864 else
2865 STRIP="$ac_cv_prog_STRIP"
2866 fi
2867
2868 fi
2869 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2870
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2872 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2873 if test -z "$MKDIR_P"; then
2874 if ${ac_cv_path_mkdir+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2879 do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_prog in mkdir gmkdir; do
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2885 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2886 'mkdir (GNU coreutils) '* | \
2887 'mkdir (coreutils) '* | \
2888 'mkdir (fileutils) '4.1*)
2889 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2890 break 3;;
2891 esac
2892 done
2893 done
2894 done
2895 IFS=$as_save_IFS
2896
2897 fi
2898
2899 test -d ./--version && rmdir ./--version
2900 if test "${ac_cv_path_mkdir+set}" = set; then
2901 MKDIR_P="$ac_cv_path_mkdir -p"
2902 else
2903 # As a last resort, use the slow shell script. Don't cache a
2904 # value for MKDIR_P within a source directory, because that will
2905 # break other packages using the cache if that directory is
2906 # removed, or if the value is a relative name.
2907 MKDIR_P="$ac_install_sh -d"
2908 fi
2909 fi
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2911 $as_echo "$MKDIR_P" >&6; }
2912
2913 for ac_prog in gawk mawk nawk awk
2914 do
2915 # Extract the first word of "$ac_prog", so it can be a program name with args.
2916 set dummy $ac_prog; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if ${ac_cv_prog_AWK+:} false; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test -n "$AWK"; then
2923 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932 ac_cv_prog_AWK="$ac_prog"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2939
2940 fi
2941 fi
2942 AWK=$ac_cv_prog_AWK
2943 if test -n "$AWK"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2945 $as_echo "$AWK" >&6; }
2946 else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951
2952 test -n "$AWK" && break
2953 done
2954
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2956 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2957 set x ${MAKE-make}
2958 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2959 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 cat >conftest.make <<\_ACEOF
2963 SHELL = /bin/sh
2964 all:
2965 @echo '@@@%%%=$(MAKE)=@@@%%%'
2966 _ACEOF
2967 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2968 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2969 *@@@%%%=?*=@@@%%%*)
2970 eval ac_cv_prog_make_${ac_make}_set=yes;;
2971 *)
2972 eval ac_cv_prog_make_${ac_make}_set=no;;
2973 esac
2974 rm -f conftest.make
2975 fi
2976 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2978 $as_echo "yes" >&6; }
2979 SET_MAKE=
2980 else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2983 SET_MAKE="MAKE=${MAKE-make}"
2984 fi
2985
2986 rm -rf .tst 2>/dev/null
2987 mkdir .tst 2>/dev/null
2988 if test -d .tst; then
2989 am__leading_dot=.
2990 else
2991 am__leading_dot=_
2992 fi
2993 rmdir .tst 2>/dev/null
2994
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2996 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2997 # Check whether --enable-maintainer-mode was given.
2998 if test "${enable_maintainer_mode+set}" = set; then :
2999 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3000 else
3001 USE_MAINTAINER_MODE=no
3002 fi
3003
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3005 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3006 if test $USE_MAINTAINER_MODE = yes; then
3007 MAINTAINER_MODE_TRUE=
3008 MAINTAINER_MODE_FALSE='#'
3009 else
3010 MAINTAINER_MODE_TRUE='#'
3011 MAINTAINER_MODE_FALSE=
3012 fi
3013
3014 MAINT=$MAINTAINER_MODE_TRUE
3015
3016
3017 # Check whether --enable-silent-rules was given.
3018 if test "${enable_silent_rules+set}" = set; then :
3019 enableval=$enable_silent_rules;
3020 fi
3021
3022 case $enable_silent_rules in # (((
3023 yes) AM_DEFAULT_VERBOSITY=0;;
3024 no) AM_DEFAULT_VERBOSITY=1;;
3025 *) AM_DEFAULT_VERBOSITY=1;;
3026 esac
3027 am_make=${MAKE-make}
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3029 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3030 if ${am_cv_make_support_nested_variables+:} false; then :
3031 $as_echo_n "(cached) " >&6
3032 else
3033 if $as_echo 'TRUE=$(BAR$(V))
3034 BAR0=false
3035 BAR1=true
3036 V=1
3037 am__doit:
3038 @$(TRUE)
3039 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3040 am_cv_make_support_nested_variables=yes
3041 else
3042 am_cv_make_support_nested_variables=no
3043 fi
3044 fi
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3046 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3047 if test $am_cv_make_support_nested_variables = yes; then
3048 AM_V='$(V)'
3049 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3050 else
3051 AM_V=$AM_DEFAULT_VERBOSITY
3052 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3053 fi
3054 AM_BACKSLASH='\'
3055
3056 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3057 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3058 # is not polluted with repeated "-I."
3059 am__isrc=' -I$(srcdir)'
3060 # test to see if srcdir already configured
3061 if test -f $srcdir/config.status; then
3062 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3063 fi
3064 fi
3065
3066 # test whether we have cygpath
3067 if test -z "$CYGPATH_W"; then
3068 if (cygpath --version) >/dev/null 2>/dev/null; then
3069 CYGPATH_W='cygpath -w'
3070 else
3071 CYGPATH_W=echo
3072 fi
3073 fi
3074
3075
3076 # Define the identity of the package.
3077 PACKAGE='file'
3078 VERSION='5.38'
3079
3080
3081 cat >>confdefs.h <<_ACEOF
3082 #define PACKAGE "$PACKAGE"
3083 _ACEOF
3084
3085
3086 cat >>confdefs.h <<_ACEOF
3087 #define VERSION "$VERSION"
3088 _ACEOF
3089
3090 # Some tools Automake needs.
3091
3092 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3093
3094
3095 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3096
3097
3098 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3099
3100
3101 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3102
3103
3104 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3105
3106 # For better backward compatibility. To be removed once Automake 1.9.x
3107 # dies out for good. For more background, see:
3108 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3109 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3110 mkdir_p='$(MKDIR_P)'
3111
3112 # We need awk for the "check" target (and possibly the TAP driver). The
3113 # system "awk" is bad on some platforms.
3114 # Always define AMTAR for backward compatibility. Yes, it's still used
3115 # in the wild :-( We should find a proper way to deprecate it ...
3116 AMTAR='$${TAR-tar}'
3117
3118
3119 # We'll loop over all known methods to create a tar archive until one works.
3120 _am_tools='gnutar pax cpio none'
3121
3122 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3123
3124
3125
3126
3127
3128
3129 # POSIX will say in a future version that running "rm -f" with no argument
3130 # is OK; and we want to be able to make that assumption in our Makefile
3131 # recipes. So use an aggressive probe to check that the usage we want is
3132 # actually supported "in the wild" to an acceptable degree.
3133 # See automake bug#10828.
3134 # To make any issue more visible, cause the running configure to be aborted
3135 # by default if the 'rm' program in use doesn't match our expectations; the
3136 # user can still override this though.
3137 if rm -f && rm -fr && rm -rf; then : OK; else
3138 cat >&2 <<'END'
3139 Oops!
3140
3141 Your 'rm' program seems unable to run without file operands specified
3142 on the command line, even when the '-f' option is present. This is contrary
3143 to the behaviour of most rm programs out there, and not conforming with
3144 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3145
3146 Please tell bug-automake@gnu.org about your system, including the value
3147 of your $PATH and any error possibly output before this message. This
3148 can help us improve future automake versions.
3149
3150 END
3151 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3152 echo 'Configuration will proceed anyway, since you have set the' >&2
3153 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3154 echo >&2
3155 else
3156 cat >&2 <<'END'
3157 Aborting the configuration process, to ensure you take notice of the issue.
3158
3159 You can download and install GNU coreutils to get an 'rm' implementation
3160 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3161
3162 If you want to complete the configuration process using your problematic
3163 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3164 to "yes", and re-run configure.
3165
3166 END
3167 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3168 fi
3169 fi
3170
3171 # Check whether --enable-silent-rules was given.
3172 if test "${enable_silent_rules+set}" = set; then :
3173 enableval=$enable_silent_rules;
3174 fi
3175
3176 case $enable_silent_rules in # (((
3177 yes) AM_DEFAULT_VERBOSITY=0;;
3178 no) AM_DEFAULT_VERBOSITY=1;;
3179 *) AM_DEFAULT_VERBOSITY=0;;
3180 esac
3181 am_make=${MAKE-make}
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3183 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3184 if ${am_cv_make_support_nested_variables+:} false; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if $as_echo 'TRUE=$(BAR$(V))
3188 BAR0=false
3189 BAR1=true
3190 V=1
3191 am__doit:
3192 @$(TRUE)
3193 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3194 am_cv_make_support_nested_variables=yes
3195 else
3196 am_cv_make_support_nested_variables=no
3197 fi
3198 fi
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3200 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3201 if test $am_cv_make_support_nested_variables = yes; then
3202 AM_V='$(V)'
3203 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3204 else
3205 AM_V=$AM_DEFAULT_VERBOSITY
3206 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3207 fi
3208 AM_BACKSLASH='\'
3209
3210
3211 ac_config_headers="$ac_config_headers config.h"
3212
3213
3214
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
3216 $as_echo_n "checking for builtin ELF support... " >&6; }
3217 # Check whether --enable-elf was given.
3218 if test "${enable_elf+set}" = set; then :
3219 enableval=$enable_elf; if test "${enableval}" = yes; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3221 $as_echo "yes" >&6; }
3222
3223 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3224
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 fi
3229 else
3230
3231 # enable by default
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233 $as_echo "yes" >&6; }
3234
3235 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3236
3237
3238 fi
3239
3240
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
3242 $as_echo_n "checking for ELF core file support... " >&6; }
3243 # Check whether --enable-elf-core was given.
3244 if test "${enable_elf_core+set}" = set; then :
3245 enableval=$enable_elf_core; if test "${enableval}" = yes; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247 $as_echo "yes" >&6; }
3248
3249 $as_echo "#define ELFCORE 1" >>confdefs.h
3250
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 fi
3255 else
3256
3257 # enable by default
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259 $as_echo "yes" >&6; }
3260
3261 $as_echo "#define ELFCORE 1" >>confdefs.h
3262
3263
3264 fi
3265
3266
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
3268 $as_echo_n "checking for zlib support... " >&6; }
3269 # Check whether --enable-zlib was given.
3270 if test "${enable_zlib+set}" = set; then :
3271 enableval=$enable_zlib;
3272 fi
3273
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
3275 $as_echo "$enable_zlib" >&6; }
3276
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5
3278 $as_echo_n "checking for bzlib support... " >&6; }
3279 # Check whether --enable-bzlib was given.
3280 if test "${enable_bzlib+set}" = set; then :
3281 enableval=$enable_bzlib;
3282 fi
3283
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5
3285 $as_echo "$enable_bzlib" >&6; }
3286
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5
3288 $as_echo_n "checking for xzlib support... " >&6; }
3289 # Check whether --enable-xzlib was given.
3290 if test "${enable_xzlib+set}" = set; then :
3291 enableval=$enable_xzlib;
3292 fi
3293
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5
3295 $as_echo "$enable_xzlib" >&6; }
3296
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
3298 $as_echo_n "checking for libseccomp support... " >&6; }
3299 # Check whether --enable-libseccomp was given.
3300 if test "${enable_libseccomp+set}" = set; then :
3301 enableval=$enable_libseccomp;
3302 fi
3303
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
3305 $as_echo "$enable_libseccomp" >&6; }
3306
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
3308 $as_echo_n "checking for file formats in man section 5... " >&6; }
3309 # Check whether --enable-fsect-man5 was given.
3310 if test "${enable_fsect_man5+set}" = set; then :
3311 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313 $as_echo "yes" >&6; }
3314 fsect=5
3315 else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3318 fsect=4
3319 fi
3320 else
3321
3322 # disable by default
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 fsect=4
3326
3327 fi
3328
3329
3330 # Make sure we can run config.sub.
3331 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3332 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3333
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3335 $as_echo_n "checking build system type... " >&6; }
3336 if ${ac_cv_build+:} false; then :
3337 $as_echo_n "(cached) " >&6
3338 else
3339 ac_build_alias=$build_alias
3340 test "x$ac_build_alias" = x &&
3341 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3342 test "x$ac_build_alias" = x &&
3343 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3344 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3345 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3346
3347 fi
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3349 $as_echo "$ac_cv_build" >&6; }
3350 case $ac_cv_build in
3351 *-*-*) ;;
3352 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3353 esac
3354 build=$ac_cv_build
3355 ac_save_IFS=$IFS; IFS='-'
3356 set x $ac_cv_build
3357 shift
3358 build_cpu=$1
3359 build_vendor=$2
3360 shift; shift
3361 # Remember, the first character of IFS is used to create $*,
3362 # except with old shells:
3363 build_os=$*
3364 IFS=$ac_save_IFS
3365 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3366
3367
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3369 $as_echo_n "checking host system type... " >&6; }
3370 if ${ac_cv_host+:} false; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 if test "x$host_alias" = x; then
3374 ac_cv_host=$ac_cv_build
3375 else
3376 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3377 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3378 fi
3379
3380 fi
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3382 $as_echo "$ac_cv_host" >&6; }
3383 case $ac_cv_host in
3384 *-*-*) ;;
3385 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3386 esac
3387 host=$ac_cv_host
3388 ac_save_IFS=$IFS; IFS='-'
3389 set x $ac_cv_host
3390 shift
3391 host_cpu=$1
3392 host_vendor=$2
3393 shift; shift
3394 # Remember, the first character of IFS is used to create $*,
3395 # except with old shells:
3396 host_os=$*
3397 IFS=$ac_save_IFS
3398 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3399
3400
3401 case "$host_os" in
3402 mingw32*)
3403 MINGW=1
3404 ;;
3405 *)
3406 MINGW=0
3407 ;;
3408 esac
3409
3410 if test "$MINGW" = 1; then
3411 MINGW_TRUE=
3412 MINGW_FALSE='#'
3413 else
3414 MINGW_TRUE='#'
3415 MINGW_FALSE=
3416 fi
3417
3418
3419 pkgdatadir='$(datadir)/misc'
3420
3421
3422 if test x$fsect = x5; then
3423 FSECT5_TRUE=
3424 FSECT5_FALSE='#'
3425 else
3426 FSECT5_TRUE='#'
3427 FSECT5_FALSE=
3428 fi
3429
3430
3431
3432
3433 DEPDIR="${am__leading_dot}deps"
3434
3435 ac_config_commands="$ac_config_commands depfiles"
3436
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3438 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3439 cat > confinc.mk << 'END'
3440 am__doit:
3441 @echo this is the am__doit target >confinc.out
3442 .PHONY: am__doit
3443 END
3444 am__include="#"
3445 am__quote=
3446 # BSD make does it like this.
3447 echo '.include "confinc.mk" # ignored' > confmf.BSD
3448 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3449 echo 'include confinc.mk # ignored' > confmf.GNU
3450 _am_result=no
3451 for s in GNU BSD; do
3452 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3453 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }
3457 case $?:`cat confinc.out 2>/dev/null` in #(
3458 '0:this is the am__doit target') :
3459 case $s in #(
3460 BSD) :
3461 am__include='.include' am__quote='"' ;; #(
3462 *) :
3463 am__include='include' am__quote='' ;;
3464 esac ;; #(
3465 *) :
3466 ;;
3467 esac
3468 if test "$am__include" != "#"; then
3469 _am_result="yes ($s style)"
3470 break
3471 fi
3472 done
3473 rm -f confinc.* confmf.*
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3475 $as_echo "${_am_result}" >&6; }
3476
3477 # Check whether --enable-dependency-tracking was given.
3478 if test "${enable_dependency_tracking+set}" = set; then :
3479 enableval=$enable_dependency_tracking;
3480 fi
3481
3482 if test "x$enable_dependency_tracking" != xno; then
3483 am_depcomp="$ac_aux_dir/depcomp"
3484 AMDEPBACKSLASH='\'
3485 am__nodep='_no'
3486 fi
3487 if test "x$enable_dependency_tracking" != xno; then
3488 AMDEP_TRUE=
3489 AMDEP_FALSE='#'
3490 else
3491 AMDEP_TRUE='#'
3492 AMDEP_FALSE=
3493 fi
3494
3495
3496 ac_ext=c
3497 ac_cpp='$CPP $CPPFLAGS'
3498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3501 if test -n "$ac_tool_prefix"; then
3502 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3503 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if ${ac_cv_prog_CC+:} false; then :
3507 $as_echo_n "(cached) " >&6
3508 else
3509 if test -n "$CC"; then
3510 ac_cv_prog_CC="$CC" # Let the user override the test.
3511 else
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515 IFS=$as_save_IFS
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 break 2
3522 fi
3523 done
3524 done
3525 IFS=$as_save_IFS
3526
3527 fi
3528 fi
3529 CC=$ac_cv_prog_CC
3530 if test -n "$CC"; then
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3532 $as_echo "$CC" >&6; }
3533 else
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3536 fi
3537
3538
3539 fi
3540 if test -z "$ac_cv_prog_CC"; then
3541 ac_ct_CC=$CC
3542 # Extract the first word of "gcc", so it can be a program name with args.
3543 set dummy gcc; ac_word=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 if test -n "$ac_ct_CC"; then
3550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3551 else
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3554 do
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_ac_ct_CC="gcc"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 break 2
3562 fi
3563 done
3564 done
3565 IFS=$as_save_IFS
3566
3567 fi
3568 fi
3569 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3570 if test -n "$ac_ct_CC"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3572 $as_echo "$ac_ct_CC" >&6; }
3573 else
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3576 fi
3577
3578 if test "x$ac_ct_CC" = x; then
3579 CC=""
3580 else
3581 case $cross_compiling:$ac_tool_warned in
3582 yes:)
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3585 ac_tool_warned=yes ;;
3586 esac
3587 CC=$ac_ct_CC
3588 fi
3589 else
3590 CC="$ac_cv_prog_CC"
3591 fi
3592
3593 if test -z "$CC"; then
3594 if test -n "$ac_tool_prefix"; then
3595 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3596 set dummy ${ac_tool_prefix}cc; ac_word=$2
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598 $as_echo_n "checking for $ac_word... " >&6; }
3599 if ${ac_cv_prog_CC+:} false; then :
3600 $as_echo_n "(cached) " >&6
3601 else
3602 if test -n "$CC"; then
3603 ac_cv_prog_CC="$CC" # Let the user override the test.
3604 else
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH
3607 do
3608 IFS=$as_save_IFS
3609 test -z "$as_dir" && as_dir=.
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3612 ac_cv_prog_CC="${ac_tool_prefix}cc"
3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 break 2
3615 fi
3616 done
3617 done
3618 IFS=$as_save_IFS
3619
3620 fi
3621 fi
3622 CC=$ac_cv_prog_CC
3623 if test -n "$CC"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3625 $as_echo "$CC" >&6; }
3626 else
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3629 fi
3630
3631
3632 fi
3633 fi
3634 if test -z "$CC"; then
3635 # Extract the first word of "cc", so it can be a program name with args.
3636 set dummy cc; ac_word=$2
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 $as_echo_n "checking for $ac_word... " >&6; }
3639 if ${ac_cv_prog_CC+:} false; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 if test -n "$CC"; then
3643 ac_cv_prog_CC="$CC" # Let the user override the test.
3644 else
3645 ac_prog_rejected=no
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH
3648 do
3649 IFS=$as_save_IFS
3650 test -z "$as_dir" && as_dir=.
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3653 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3654 ac_prog_rejected=yes
3655 continue
3656 fi
3657 ac_cv_prog_CC="cc"
3658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 break 2
3660 fi
3661 done
3662 done
3663 IFS=$as_save_IFS
3664
3665 if test $ac_prog_rejected = yes; then
3666 # We found a bogon in the path, so make sure we never use it.
3667 set dummy $ac_cv_prog_CC
3668 shift
3669 if test $# != 0; then
3670 # We chose a different compiler from the bogus one.
3671 # However, it has the same basename, so the bogon will be chosen
3672 # first if we set CC to just the basename; use the full file name.
3673 shift
3674 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3675 fi
3676 fi
3677 fi
3678 fi
3679 CC=$ac_cv_prog_CC
3680 if test -n "$CC"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682 $as_echo "$CC" >&6; }
3683 else
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3686 fi
3687
3688
3689 fi
3690 if test -z "$CC"; then
3691 if test -n "$ac_tool_prefix"; then
3692 for ac_prog in cl.exe
3693 do
3694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if ${ac_cv_prog_CC+:} false; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 if test -n "$CC"; then
3702 ac_cv_prog_CC="$CC" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3711 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3714 fi
3715 done
3716 done
3717 IFS=$as_save_IFS
3718
3719 fi
3720 fi
3721 CC=$ac_cv_prog_CC
3722 if test -n "$CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3724 $as_echo "$CC" >&6; }
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 fi
3729
3730
3731 test -n "$CC" && break
3732 done
3733 fi
3734 if test -z "$CC"; then
3735 ac_ct_CC=$CC
3736 for ac_prog in cl.exe
3737 do
3738 # Extract the first word of "$ac_prog", so it can be a program name with args.
3739 set dummy $ac_prog; ac_word=$2
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 $as_echo_n "checking for $ac_word... " >&6; }
3742 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3743 $as_echo_n "(cached) " >&6
3744 else
3745 if test -n "$ac_ct_CC"; then
3746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3747 else
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3750 do
3751 IFS=$as_save_IFS
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3755 ac_cv_prog_ac_ct_CC="$ac_prog"
3756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 break 2
3758 fi
3759 done
3760 done
3761 IFS=$as_save_IFS
3762
3763 fi
3764 fi
3765 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3766 if test -n "$ac_ct_CC"; then
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3768 $as_echo "$ac_ct_CC" >&6; }
3769 else
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3772 fi
3773
3774
3775 test -n "$ac_ct_CC" && break
3776 done
3777
3778 if test "x$ac_ct_CC" = x; then
3779 CC=""
3780 else
3781 case $cross_compiling:$ac_tool_warned in
3782 yes:)
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3785 ac_tool_warned=yes ;;
3786 esac
3787 CC=$ac_ct_CC
3788 fi
3789 fi
3790
3791 fi
3792
3793
3794 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796 as_fn_error $? "no acceptable C compiler found in \$PATH
3797 See \`config.log' for more details" "$LINENO" 5; }
3798
3799 # Provide some information about the compiler.
3800 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3801 set X $ac_compile
3802 ac_compiler=$2
3803 for ac_option in --version -v -V -qversion; do
3804 { { ac_try="$ac_compiler $ac_option >&5"
3805 case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808 esac
3809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3810 $as_echo "$ac_try_echo"; } >&5
3811 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3812 ac_status=$?
3813 if test -s conftest.err; then
3814 sed '10a\
3815 ... rest of stderr output deleted ...
3816 10q' conftest.err >conftest.er1
3817 cat conftest.er1 >&5
3818 fi
3819 rm -f conftest.er1 conftest.err
3820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }
3822 done
3823
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3826
3827 int
3828 main ()
3829 {
3830
3831 ;
3832 return 0;
3833 }
3834 _ACEOF
3835 ac_clean_files_save=$ac_clean_files
3836 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3837 # Try to create an executable without -o first, disregard a.out.
3838 # It will help us diagnose broken compilers, and finding out an intuition
3839 # of exeext.
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3841 $as_echo_n "checking whether the C compiler works... " >&6; }
3842 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3843
3844 # The possible output files:
3845 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3846
3847 ac_rmfiles=
3848 for ac_file in $ac_files
3849 do
3850 case $ac_file in
3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3852 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3853 esac
3854 done
3855 rm -f $ac_rmfiles
3856
3857 if { { ac_try="$ac_link_default"
3858 case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3863 $as_echo "$ac_try_echo"; } >&5
3864 (eval "$ac_link_default") 2>&5
3865 ac_status=$?
3866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867 test $ac_status = 0; }; then :
3868 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3869 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3870 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3871 # so that the user can short-circuit this test for compilers unknown to
3872 # Autoconf.
3873 for ac_file in $ac_files ''
3874 do
3875 test -f "$ac_file" || continue
3876 case $ac_file in
3877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3878 ;;
3879 [ab].out )
3880 # We found the default executable, but exeext='' is most
3881 # certainly right.
3882 break;;
3883 *.* )
3884 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3885 then :; else
3886 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3887 fi
3888 # We set ac_cv_exeext here because the later test for it is not
3889 # safe: cross compilers may not add the suffix if given an `-o'
3890 # argument, so we may need to know it at that point already.
3891 # Even if this section looks crufty: it has the advantage of
3892 # actually working.
3893 break;;
3894 * )
3895 break;;
3896 esac
3897 done
3898 test "$ac_cv_exeext" = no && ac_cv_exeext=
3899
3900 else
3901 ac_file=''
3902 fi
3903 if test -z "$ac_file"; then :
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 $as_echo "no" >&6; }
3906 $as_echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3908
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error 77 "C compiler cannot create executables
3912 See \`config.log' for more details" "$LINENO" 5; }
3913 else
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3915 $as_echo "yes" >&6; }
3916 fi
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3918 $as_echo_n "checking for C compiler default output file name... " >&6; }
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3920 $as_echo "$ac_file" >&6; }
3921 ac_exeext=$ac_cv_exeext
3922
3923 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3924 ac_clean_files=$ac_clean_files_save
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3926 $as_echo_n "checking for suffix of executables... " >&6; }
3927 if { { ac_try="$ac_link"
3928 case "(($ac_try" in
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3931 esac
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 $as_echo "$ac_try_echo"; } >&5
3934 (eval "$ac_link") 2>&5
3935 ac_status=$?
3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }; then :
3938 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3939 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3940 # work properly (i.e., refer to `conftest.exe'), while it won't with
3941 # `rm'.
3942 for ac_file in conftest.exe conftest conftest.*; do
3943 test -f "$ac_file" || continue
3944 case $ac_file in
3945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3946 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3947 break;;
3948 * ) break;;
3949 esac
3950 done
3951 else
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3955 See \`config.log' for more details" "$LINENO" 5; }
3956 fi
3957 rm -f conftest conftest$ac_cv_exeext
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3959 $as_echo "$ac_cv_exeext" >&6; }
3960
3961 rm -f conftest.$ac_ext
3962 EXEEXT=$ac_cv_exeext
3963 ac_exeext=$EXEEXT
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966 #include <stdio.h>
3967 int
3968 main ()
3969 {
3970 FILE *f = fopen ("conftest.out", "w");
3971 return ferror (f) || fclose (f) != 0;
3972
3973 ;
3974 return 0;
3975 }
3976 _ACEOF
3977 ac_clean_files="$ac_clean_files conftest.out"
3978 # Check that the compiler produces executables we can run. If not, either
3979 # the compiler is broken, or we cross compile.
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3981 $as_echo_n "checking whether we are cross compiling... " >&6; }
3982 if test "$cross_compiling" != yes; then
3983 { { ac_try="$ac_link"
3984 case "(($ac_try" in
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3987 esac
3988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3989 $as_echo "$ac_try_echo"; } >&5
3990 (eval "$ac_link") 2>&5
3991 ac_status=$?
3992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3993 test $ac_status = 0; }
3994 if { ac_try='./conftest$ac_cv_exeext'
3995 { { case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001 (eval "$ac_try") 2>&5
4002 ac_status=$?
4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }; }; then
4005 cross_compiling=no
4006 else
4007 if test "$cross_compiling" = maybe; then
4008 cross_compiling=yes
4009 else
4010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4012 as_fn_error $? "cannot run C compiled programs.
4013 If you meant to cross compile, use \`--host'.
4014 See \`config.log' for more details" "$LINENO" 5; }
4015 fi
4016 fi
4017 fi
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4019 $as_echo "$cross_compiling" >&6; }
4020
4021 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4022 ac_clean_files=$ac_clean_files_save
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4024 $as_echo_n "checking for suffix of object files... " >&6; }
4025 if ${ac_cv_objext+:} false; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4030
4031 int
4032 main ()
4033 {
4034
4035 ;
4036 return 0;
4037 }
4038 _ACEOF
4039 rm -f conftest.o conftest.obj
4040 if { { ac_try="$ac_compile"
4041 case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046 $as_echo "$ac_try_echo"; } >&5
4047 (eval "$ac_compile") 2>&5
4048 ac_status=$?
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }; then :
4051 for ac_file in conftest.o conftest.obj conftest.*; do
4052 test -f "$ac_file" || continue;
4053 case $ac_file in
4054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4055 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4056 break;;
4057 esac
4058 done
4059 else
4060 $as_echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4062
4063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4065 as_fn_error $? "cannot compute suffix of object files: cannot compile
4066 See \`config.log' for more details" "$LINENO" 5; }
4067 fi
4068 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4071 $as_echo "$ac_cv_objext" >&6; }
4072 OBJEXT=$ac_cv_objext
4073 ac_objext=$OBJEXT
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4075 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4076 if ${ac_cv_c_compiler_gnu+:} false; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4081
4082 int
4083 main ()
4084 {
4085 #ifndef __GNUC__
4086 choke me
4087 #endif
4088
4089 ;
4090 return 0;
4091 }
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_compiler_gnu=yes
4095 else
4096 ac_compiler_gnu=no
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4100
4101 fi
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4103 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4104 if test $ac_compiler_gnu = yes; then
4105 GCC=yes
4106 else
4107 GCC=
4108 fi
4109 ac_test_CFLAGS=${CFLAGS+set}
4110 ac_save_CFLAGS=$CFLAGS
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4112 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4113 if ${ac_cv_prog_cc_g+:} false; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 ac_save_c_werror_flag=$ac_c_werror_flag
4117 ac_c_werror_flag=yes
4118 ac_cv_prog_cc_g=no
4119 CFLAGS="-g"
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122
4123 int
4124 main ()
4125 {
4126
4127 ;
4128 return 0;
4129 }
4130 _ACEOF
4131 if ac_fn_c_try_compile "$LINENO"; then :
4132 ac_cv_prog_cc_g=yes
4133 else
4134 CFLAGS=""
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137
4138 int
4139 main ()
4140 {
4141
4142 ;
4143 return 0;
4144 }
4145 _ACEOF
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147
4148 else
4149 ac_c_werror_flag=$ac_save_c_werror_flag
4150 CFLAGS="-g"
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4153
4154 int
4155 main ()
4156 {
4157
4158 ;
4159 return 0;
4160 }
4161 _ACEOF
4162 if ac_fn_c_try_compile "$LINENO"; then :
4163 ac_cv_prog_cc_g=yes
4164 fi
4165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166 fi
4167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168 fi
4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 ac_c_werror_flag=$ac_save_c_werror_flag
4171 fi
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4173 $as_echo "$ac_cv_prog_cc_g" >&6; }
4174 if test "$ac_test_CFLAGS" = set; then
4175 CFLAGS=$ac_save_CFLAGS
4176 elif test $ac_cv_prog_cc_g = yes; then
4177 if test "$GCC" = yes; then
4178 CFLAGS="-g -O2"
4179 else
4180 CFLAGS="-g"
4181 fi
4182 else
4183 if test "$GCC" = yes; then
4184 CFLAGS="-O2"
4185 else
4186 CFLAGS=
4187 fi
4188 fi
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4190 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4191 if ${ac_cv_prog_cc_c89+:} false; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 ac_cv_prog_cc_c89=no
4195 ac_save_CC=$CC
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198 #include <stdarg.h>
4199 #include <stdio.h>
4200 struct stat;
4201 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4202 struct buf { int x; };
4203 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4204 static char *e (p, i)
4205 char **p;
4206 int i;
4207 {
4208 return p[i];
4209 }
4210 static char *f (char * (*g) (char **, int), char **p, ...)
4211 {
4212 char *s;
4213 va_list v;
4214 va_start (v,p);
4215 s = g (p, va_arg (v,int));
4216 va_end (v);
4217 return s;
4218 }
4219
4220 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4221 function prototypes and stuff, but not '\xHH' hex character constants.
4222 These don't provoke an error unfortunately, instead are silently treated
4223 as 'x'. The following induces an error, until -std is added to get
4224 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4225 array size at least. It's necessary to write '\x00'==0 to get something
4226 that's true only with -std. */
4227 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4228
4229 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4230 inside strings and character constants. */
4231 #define FOO(x) 'x'
4232 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4233
4234 int test (int i, double x);
4235 struct s1 {int (*f) (int a);};
4236 struct s2 {int (*f) (double a);};
4237 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4238 int argc;
4239 char **argv;
4240 int
4241 main ()
4242 {
4243 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4244 ;
4245 return 0;
4246 }
4247 _ACEOF
4248 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4249 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4250 do
4251 CC="$ac_save_CC $ac_arg"
4252 if ac_fn_c_try_compile "$LINENO"; then :
4253 ac_cv_prog_cc_c89=$ac_arg
4254 fi
4255 rm -f core conftest.err conftest.$ac_objext
4256 test "x$ac_cv_prog_cc_c89" != "xno" && break
4257 done
4258 rm -f conftest.$ac_ext
4259 CC=$ac_save_CC
4260
4261 fi
4262 # AC_CACHE_VAL
4263 case "x$ac_cv_prog_cc_c89" in
4264 x)
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4266 $as_echo "none needed" >&6; } ;;
4267 xno)
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4269 $as_echo "unsupported" >&6; } ;;
4270 *)
4271 CC="$CC $ac_cv_prog_cc_c89"
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4273 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4274 esac
4275 if test "x$ac_cv_prog_cc_c89" != xno; then :
4276
4277 fi
4278
4279 ac_ext=c
4280 ac_cpp='$CPP $CPPFLAGS'
4281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4284
4285 ac_ext=c
4286 ac_cpp='$CPP $CPPFLAGS'
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4291 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4292 if ${am_cv_prog_cc_c_o+:} false; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4297
4298 int
4299 main ()
4300 {
4301
4302 ;
4303 return 0;
4304 }
4305 _ACEOF
4306 # Make sure it works both with $CC and with simple cc.
4307 # Following AC_PROG_CC_C_O, we do the test twice because some
4308 # compilers refuse to overwrite an existing .o file with -o,
4309 # though they will create one.
4310 am_cv_prog_cc_c_o=yes
4311 for am_i in 1 2; do
4312 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4313 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } \
4317 && test -f conftest2.$ac_objext; then
4318 : OK
4319 else
4320 am_cv_prog_cc_c_o=no
4321 break
4322 fi
4323 done
4324 rm -f core conftest*
4325 unset am_i
4326 fi
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4328 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4329 if test "$am_cv_prog_cc_c_o" != yes; then
4330 # Losing compiler, so override with the script.
4331 # FIXME: It is wrong to rewrite CC.
4332 # But if we don't then we get into trouble of one sort or another.
4333 # A longer-term fix would be to have automake use am__CC in this case,
4334 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4335 CC="$am_aux_dir/compile $CC"
4336 fi
4337 ac_ext=c
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342
4343
4344 depcc="$CC" am_compiler_list=
4345
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4347 $as_echo_n "checking dependency style of $depcc... " >&6; }
4348 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4349 $as_echo_n "(cached) " >&6
4350 else
4351 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4352 # We make a subdir and do the tests there. Otherwise we can end up
4353 # making bogus files that we don't know about and never remove. For
4354 # instance it was reported that on HP-UX the gcc test will end up
4355 # making a dummy file named 'D' -- because '-MD' means "put the output
4356 # in D".
4357 rm -rf conftest.dir
4358 mkdir conftest.dir
4359 # Copy depcomp to subdir because otherwise we won't find it if we're
4360 # using a relative directory.
4361 cp "$am_depcomp" conftest.dir
4362 cd conftest.dir
4363 # We will build objects and dependencies in a subdirectory because
4364 # it helps to detect inapplicable dependency modes. For instance
4365 # both Tru64's cc and ICC support -MD to output dependencies as a
4366 # side effect of compilation, but ICC will put the dependencies in
4367 # the current directory while Tru64 will put them in the object
4368 # directory.
4369 mkdir sub
4370
4371 am_cv_CC_dependencies_compiler_type=none
4372 if test "$am_compiler_list" = ""; then
4373 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4374 fi
4375 am__universal=false
4376 case " $depcc " in #(
4377 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4378 esac
4379
4380 for depmode in $am_compiler_list; do
4381 # Setup a source with many dependencies, because some compilers
4382 # like to wrap large dependency lists on column 80 (with \), and
4383 # we should not choose a depcomp mode which is confused by this.
4384 #
4385 # We need to recreate these files for each test, as the compiler may
4386 # overwrite some of them when testing with obscure command lines.
4387 # This happens at least with the AIX C compiler.
4388 : > sub/conftest.c
4389 for i in 1 2 3 4 5 6; do
4390 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4391 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4392 # Solaris 10 /bin/sh.
4393 echo '/* dummy */' > sub/conftst$i.h
4394 done
4395 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4396
4397 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4398 # mode. It turns out that the SunPro C++ compiler does not properly
4399 # handle '-M -o', and we need to detect this. Also, some Intel
4400 # versions had trouble with output in subdirs.
4401 am__obj=sub/conftest.${OBJEXT-o}
4402 am__minus_obj="-o $am__obj"
4403 case $depmode in
4404 gcc)
4405 # This depmode causes a compiler race in universal mode.
4406 test "$am__universal" = false || continue
4407 ;;
4408 nosideeffect)
4409 # After this tag, mechanisms are not by side-effect, so they'll
4410 # only be used when explicitly requested.
4411 if test "x$enable_dependency_tracking" = xyes; then
4412 continue
4413 else
4414 break
4415 fi
4416 ;;
4417 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4418 # This compiler won't grok '-c -o', but also, the minuso test has
4419 # not run yet. These depmodes are late enough in the game, and
4420 # so weak that their functioning should not be impacted.
4421 am__obj=conftest.${OBJEXT-o}
4422 am__minus_obj=
4423 ;;
4424 none) break ;;
4425 esac
4426 if depmode=$depmode \
4427 source=sub/conftest.c object=$am__obj \
4428 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4429 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4430 >/dev/null 2>conftest.err &&
4431 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4432 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4433 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4434 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4435 # icc doesn't choke on unknown options, it will just issue warnings
4436 # or remarks (even with -Werror). So we grep stderr for any message
4437 # that says an option was ignored or not supported.
4438 # When given -MP, icc 7.0 and 7.1 complain thusly:
4439 # icc: Command line warning: ignoring option '-M'; no argument required
4440 # The diagnosis changed in icc 8.0:
4441 # icc: Command line remark: option '-MP' not supported
4442 if (grep 'ignoring option' conftest.err ||
4443 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4444 am_cv_CC_dependencies_compiler_type=$depmode
4445 break
4446 fi
4447 fi
4448 done
4449
4450 cd ..
4451 rm -rf conftest.dir
4452 else
4453 am_cv_CC_dependencies_compiler_type=none
4454 fi
4455
4456 fi
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4458 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4459 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4460
4461 if
4462 test "x$enable_dependency_tracking" != xno \
4463 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4464 am__fastdepCC_TRUE=
4465 am__fastdepCC_FALSE='#'
4466 else
4467 am__fastdepCC_TRUE='#'
4468 am__fastdepCC_FALSE=
4469 fi
4470
4471
4472 case $ac_cv_prog_cc_stdc in #(
4473 no) :
4474 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4475 *) :
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4477 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4478 if ${ac_cv_prog_cc_c99+:} false; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 ac_cv_prog_cc_c99=no
4482 ac_save_CC=$CC
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485 #include <stdarg.h>
4486 #include <stdbool.h>
4487 #include <stdlib.h>
4488 #include <wchar.h>
4489 #include <stdio.h>
4490
4491 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4492 #define debug(...) fprintf (stderr, __VA_ARGS__)
4493 #define showlist(...) puts (#__VA_ARGS__)
4494 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4495 static void
4496 test_varargs_macros (void)
4497 {
4498 int x = 1234;
4499 int y = 5678;
4500 debug ("Flag");
4501 debug ("X = %d\n", x);
4502 showlist (The first, second, and third items.);
4503 report (x>y, "x is %d but y is %d", x, y);
4504 }
4505
4506 // Check long long types.
4507 #define BIG64 18446744073709551615ull
4508 #define BIG32 4294967295ul
4509 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4510 #if !BIG_OK
4511 your preprocessor is broken;
4512 #endif
4513 #if BIG_OK
4514 #else
4515 your preprocessor is broken;
4516 #endif
4517 static long long int bignum = -9223372036854775807LL;
4518 static unsigned long long int ubignum = BIG64;
4519
4520 struct incomplete_array
4521 {
4522 int datasize;
4523 double data[];
4524 };
4525
4526 struct named_init {
4527 int number;
4528 const wchar_t *name;
4529 double average;
4530 };
4531
4532 typedef const char *ccp;
4533
4534 static inline int
4535 test_restrict (ccp restrict text)
4536 {
4537 // See if C++-style comments work.
4538 // Iterate through items via the restricted pointer.
4539 // Also check for declarations in for loops.
4540 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4541 continue;
4542 return 0;
4543 }
4544
4545 // Check varargs and va_copy.
4546 static void
4547 test_varargs (const char *format, ...)
4548 {
4549 va_list args;
4550 va_start (args, format);
4551 va_list args_copy;
4552 va_copy (args_copy, args);
4553
4554 const char *str;
4555 int number;
4556 float fnumber;
4557
4558 while (*format)
4559 {
4560 switch (*format++)
4561 {
4562 case 's': // string
4563 str = va_arg (args_copy, const char *);
4564 break;
4565 case 'd': // int
4566 number = va_arg (args_copy, int);
4567 break;
4568 case 'f': // float
4569 fnumber = va_arg (args_copy, double);
4570 break;
4571 default:
4572 break;
4573 }
4574 }
4575 va_end (args_copy);
4576 va_end (args);
4577 }
4578
4579 int
4580 main ()
4581 {
4582
4583 // Check bool.
4584 _Bool success = false;
4585
4586 // Check restrict.
4587 if (test_restrict ("String literal") == 0)
4588 success = true;
4589 char *restrict newvar = "Another string";
4590
4591 // Check varargs.
4592 test_varargs ("s, d' f .", "string", 65, 34.234);
4593 test_varargs_macros ();
4594
4595 // Check flexible array members.
4596 struct incomplete_array *ia =
4597 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4598 ia->datasize = 10;
4599 for (int i = 0; i < ia->datasize; ++i)
4600 ia->data[i] = i * 1.234;
4601
4602 // Check named initializers.
4603 struct named_init ni = {
4604 .number = 34,
4605 .name = L"Test wide string",
4606 .average = 543.34343,
4607 };
4608
4609 ni.number = 58;
4610
4611 int dynamic_array[ni.number];
4612 dynamic_array[ni.number - 1] = 543;
4613
4614 // work around unused variable warnings
4615 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4616 || dynamic_array[ni.number - 1] != 543);
4617
4618 ;
4619 return 0;
4620 }
4621 _ACEOF
4622 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4623 do
4624 CC="$ac_save_CC $ac_arg"
4625 if ac_fn_c_try_compile "$LINENO"; then :
4626 ac_cv_prog_cc_c99=$ac_arg
4627 fi
4628 rm -f core conftest.err conftest.$ac_objext
4629 test "x$ac_cv_prog_cc_c99" != "xno" && break
4630 done
4631 rm -f conftest.$ac_ext
4632 CC=$ac_save_CC
4633
4634 fi
4635 # AC_CACHE_VAL
4636 case "x$ac_cv_prog_cc_c99" in
4637 x)
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4639 $as_echo "none needed" >&6; } ;;
4640 xno)
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4642 $as_echo "unsupported" >&6; } ;;
4643 *)
4644 CC="$CC $ac_cv_prog_cc_c99"
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4646 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4647 esac
4648 if test "x$ac_cv_prog_cc_c99" != xno; then :
4649 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4650 else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4652 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4653 if ${ac_cv_prog_cc_c89+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 ac_cv_prog_cc_c89=no
4657 ac_save_CC=$CC
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660 #include <stdarg.h>
4661 #include <stdio.h>
4662 struct stat;
4663 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4664 struct buf { int x; };
4665 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4666 static char *e (p, i)
4667 char **p;
4668 int i;
4669 {
4670 return p[i];
4671 }
4672 static char *f (char * (*g) (char **, int), char **p, ...)
4673 {
4674 char *s;
4675 va_list v;
4676 va_start (v,p);
4677 s = g (p, va_arg (v,int));
4678 va_end (v);
4679 return s;
4680 }
4681
4682 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4683 function prototypes and stuff, but not '\xHH' hex character constants.
4684 These don't provoke an error unfortunately, instead are silently treated
4685 as 'x'. The following induces an error, until -std is added to get
4686 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4687 array size at least. It's necessary to write '\x00'==0 to get something
4688 that's true only with -std. */
4689 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4690
4691 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4692 inside strings and character constants. */
4693 #define FOO(x) 'x'
4694 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4695
4696 int test (int i, double x);
4697 struct s1 {int (*f) (int a);};
4698 struct s2 {int (*f) (double a);};
4699 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4700 int argc;
4701 char **argv;
4702 int
4703 main ()
4704 {
4705 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4706 ;
4707 return 0;
4708 }
4709 _ACEOF
4710 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4711 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4712 do
4713 CC="$ac_save_CC $ac_arg"
4714 if ac_fn_c_try_compile "$LINENO"; then :
4715 ac_cv_prog_cc_c89=$ac_arg
4716 fi
4717 rm -f core conftest.err conftest.$ac_objext
4718 test "x$ac_cv_prog_cc_c89" != "xno" && break
4719 done
4720 rm -f conftest.$ac_ext
4721 CC=$ac_save_CC
4722
4723 fi
4724 # AC_CACHE_VAL
4725 case "x$ac_cv_prog_cc_c89" in
4726 x)
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4728 $as_echo "none needed" >&6; } ;;
4729 xno)
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4731 $as_echo "unsupported" >&6; } ;;
4732 *)
4733 CC="$CC $ac_cv_prog_cc_c89"
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4735 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4736 esac
4737 if test "x$ac_cv_prog_cc_c89" != xno; then :
4738 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4739 else
4740 ac_cv_prog_cc_stdc=no
4741 fi
4742
4743 fi
4744 ;;
4745 esac
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4747 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4748 if ${ac_cv_prog_cc_stdc+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750 fi
4751
4752 case $ac_cv_prog_cc_stdc in #(
4753 no) :
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4755 $as_echo "unsupported" >&6; } ;; #(
4756 '') :
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4758 $as_echo "none needed" >&6; } ;; #(
4759 *) :
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4761 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4762 esac
4763
4764
4765 ac_ext=c
4766 ac_cpp='$CPP $CPPFLAGS'
4767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4771 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4772 # On Suns, sometimes $CPP names a directory.
4773 if test -n "$CPP" && test -d "$CPP"; then
4774 CPP=
4775 fi
4776 if test -z "$CPP"; then
4777 if ${ac_cv_prog_CPP+:} false; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 # Double quotes because CPP needs to be expanded
4781 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4782 do
4783 ac_preproc_ok=false
4784 for ac_c_preproc_warn_flag in '' yes
4785 do
4786 # Use a header file that comes with gcc, so configuring glibc
4787 # with a fresh cross-compiler works.
4788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4789 # <limits.h> exists even on freestanding compilers.
4790 # On the NeXT, cc -E runs the code through the compiler's parser,
4791 # not just through cpp. "Syntax error" is here to catch this case.
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 #ifdef __STDC__
4795 # include <limits.h>
4796 #else
4797 # include <assert.h>
4798 #endif
4799 Syntax error
4800 _ACEOF
4801 if ac_fn_c_try_cpp "$LINENO"; then :
4802
4803 else
4804 # Broken: fails on valid input.
4805 continue
4806 fi
4807 rm -f conftest.err conftest.i conftest.$ac_ext
4808
4809 # OK, works on sane cases. Now check whether nonexistent headers
4810 # can be detected and how.
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813 #include <ac_nonexistent.h>
4814 _ACEOF
4815 if ac_fn_c_try_cpp "$LINENO"; then :
4816 # Broken: success on invalid input.
4817 continue
4818 else
4819 # Passes both tests.
4820 ac_preproc_ok=:
4821 break
4822 fi
4823 rm -f conftest.err conftest.i conftest.$ac_ext
4824
4825 done
4826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4827 rm -f conftest.i conftest.err conftest.$ac_ext
4828 if $ac_preproc_ok; then :
4829 break
4830 fi
4831
4832 done
4833 ac_cv_prog_CPP=$CPP
4834
4835 fi
4836 CPP=$ac_cv_prog_CPP
4837 else
4838 ac_cv_prog_CPP=$CPP
4839 fi
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4841 $as_echo "$CPP" >&6; }
4842 ac_preproc_ok=false
4843 for ac_c_preproc_warn_flag in '' yes
4844 do
4845 # Use a header file that comes with gcc, so configuring glibc
4846 # with a fresh cross-compiler works.
4847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4848 # <limits.h> exists even on freestanding compilers.
4849 # On the NeXT, cc -E runs the code through the compiler's parser,
4850 # not just through cpp. "Syntax error" is here to catch this case.
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853 #ifdef __STDC__
4854 # include <limits.h>
4855 #else
4856 # include <assert.h>
4857 #endif
4858 Syntax error
4859 _ACEOF
4860 if ac_fn_c_try_cpp "$LINENO"; then :
4861
4862 else
4863 # Broken: fails on valid input.
4864 continue
4865 fi
4866 rm -f conftest.err conftest.i conftest.$ac_ext
4867
4868 # OK, works on sane cases. Now check whether nonexistent headers
4869 # can be detected and how.
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4872 #include <ac_nonexistent.h>
4873 _ACEOF
4874 if ac_fn_c_try_cpp "$LINENO"; then :
4875 # Broken: success on invalid input.
4876 continue
4877 else
4878 # Passes both tests.
4879 ac_preproc_ok=:
4880 break
4881 fi
4882 rm -f conftest.err conftest.i conftest.$ac_ext
4883
4884 done
4885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4886 rm -f conftest.i conftest.err conftest.$ac_ext
4887 if $ac_preproc_ok; then :
4888
4889 else
4890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4892 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4893 See \`config.log' for more details" "$LINENO" 5; }
4894 fi
4895
4896 ac_ext=c
4897 ac_cpp='$CPP $CPPFLAGS'
4898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4901
4902
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4904 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4905 if ${ac_cv_path_GREP+:} false; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 if test -z "$GREP"; then
4909 ac_path_GREP_found=false
4910 # Loop through the user's path and test for each of PROGNAME-LIST
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4913 do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_prog in grep ggrep; do
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4919 as_fn_executable_p "$ac_path_GREP" || continue
4920 # Check for GNU ac_path_GREP and select it if it is found.
4921 # Check for GNU $ac_path_GREP
4922 case `"$ac_path_GREP" --version 2>&1` in
4923 *GNU*)
4924 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4925 *)
4926 ac_count=0
4927 $as_echo_n 0123456789 >"conftest.in"
4928 while :
4929 do
4930 cat "conftest.in" "conftest.in" >"conftest.tmp"
4931 mv "conftest.tmp" "conftest.in"
4932 cp "conftest.in" "conftest.nl"
4933 $as_echo 'GREP' >> "conftest.nl"
4934 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4936 as_fn_arith $ac_count + 1 && ac_count=$as_val
4937 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4938 # Best one so far, save it but keep looking for a better one
4939 ac_cv_path_GREP="$ac_path_GREP"
4940 ac_path_GREP_max=$ac_count
4941 fi
4942 # 10*(2^10) chars as input seems more than enough
4943 test $ac_count -gt 10 && break
4944 done
4945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4946 esac
4947
4948 $ac_path_GREP_found && break 3
4949 done
4950 done
4951 done
4952 IFS=$as_save_IFS
4953 if test -z "$ac_cv_path_GREP"; then
4954 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4955 fi
4956 else
4957 ac_cv_path_GREP=$GREP
4958 fi
4959
4960 fi
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4962 $as_echo "$ac_cv_path_GREP" >&6; }
4963 GREP="$ac_cv_path_GREP"
4964
4965
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4967 $as_echo_n "checking for egrep... " >&6; }
4968 if ${ac_cv_path_EGREP+:} false; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4971 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4972 then ac_cv_path_EGREP="$GREP -E"
4973 else
4974 if test -z "$EGREP"; then
4975 ac_path_EGREP_found=false
4976 # Loop through the user's path and test for each of PROGNAME-LIST
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4979 do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_prog in egrep; do
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4985 as_fn_executable_p "$ac_path_EGREP" || continue
4986 # Check for GNU ac_path_EGREP and select it if it is found.
4987 # Check for GNU $ac_path_EGREP
4988 case `"$ac_path_EGREP" --version 2>&1` in
4989 *GNU*)
4990 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4991 *)
4992 ac_count=0
4993 $as_echo_n 0123456789 >"conftest.in"
4994 while :
4995 do
4996 cat "conftest.in" "conftest.in" >"conftest.tmp"
4997 mv "conftest.tmp" "conftest.in"
4998 cp "conftest.in" "conftest.nl"
4999 $as_echo 'EGREP' >> "conftest.nl"
5000 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5002 as_fn_arith $ac_count + 1 && ac_count=$as_val
5003 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5004 # Best one so far, save it but keep looking for a better one
5005 ac_cv_path_EGREP="$ac_path_EGREP"
5006 ac_path_EGREP_max=$ac_count
5007 fi
5008 # 10*(2^10) chars as input seems more than enough
5009 test $ac_count -gt 10 && break
5010 done
5011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5012 esac
5013
5014 $ac_path_EGREP_found && break 3
5015 done
5016 done
5017 done
5018 IFS=$as_save_IFS
5019 if test -z "$ac_cv_path_EGREP"; then
5020 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5021 fi
5022 else
5023 ac_cv_path_EGREP=$EGREP
5024 fi
5025
5026 fi
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5029 $as_echo "$ac_cv_path_EGREP" >&6; }
5030 EGREP="$ac_cv_path_EGREP"
5031
5032
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5034 $as_echo_n "checking for ANSI C header files... " >&6; }
5035 if ${ac_cv_header_stdc+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5040 #include <stdlib.h>
5041 #include <stdarg.h>
5042 #include <string.h>
5043 #include <float.h>
5044
5045 int
5046 main ()
5047 {
5048
5049 ;
5050 return 0;
5051 }
5052 _ACEOF
5053 if ac_fn_c_try_compile "$LINENO"; then :
5054 ac_cv_header_stdc=yes
5055 else
5056 ac_cv_header_stdc=no
5057 fi
5058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5059
5060 if test $ac_cv_header_stdc = yes; then
5061 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5064 #include <string.h>
5065
5066 _ACEOF
5067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5068 $EGREP "memchr" >/dev/null 2>&1; then :
5069
5070 else
5071 ac_cv_header_stdc=no
5072 fi
5073 rm -f conftest*
5074
5075 fi
5076
5077 if test $ac_cv_header_stdc = yes; then
5078 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081 #include <stdlib.h>
5082
5083 _ACEOF
5084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5085 $EGREP "free" >/dev/null 2>&1; then :
5086
5087 else
5088 ac_cv_header_stdc=no
5089 fi
5090 rm -f conftest*
5091
5092 fi
5093
5094 if test $ac_cv_header_stdc = yes; then
5095 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5096 if test "$cross_compiling" = yes; then :
5097 :
5098 else
5099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5101 #include <ctype.h>
5102 #include <stdlib.h>
5103 #if ((' ' & 0x0FF) == 0x020)
5104 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5105 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5106 #else
5107 # define ISLOWER(c) \
5108 (('a' <= (c) && (c) <= 'i') \
5109 || ('j' <= (c) && (c) <= 'r') \
5110 || ('s' <= (c) && (c) <= 'z'))
5111 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5112 #endif
5113
5114 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5115 int
5116 main ()
5117 {
5118 int i;
5119 for (i = 0; i < 256; i++)
5120 if (XOR (islower (i), ISLOWER (i))
5121 || toupper (i) != TOUPPER (i))
5122 return 2;
5123 return 0;
5124 }
5125 _ACEOF
5126 if ac_fn_c_try_run "$LINENO"; then :
5127
5128 else
5129 ac_cv_header_stdc=no
5130 fi
5131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5132 conftest.$ac_objext conftest.beam conftest.$ac_ext
5133 fi
5134
5135 fi
5136 fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5138 $as_echo "$ac_cv_header_stdc" >&6; }
5139 if test $ac_cv_header_stdc = yes; then
5140
5141 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5142
5143 fi
5144
5145 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5146 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5147 inttypes.h stdint.h unistd.h
5148 do :
5149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5150 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5151 "
5152 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5153 cat >>confdefs.h <<_ACEOF
5154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5155 _ACEOF
5156
5157 fi
5158
5159 done
5160
5161
5162
5163 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5164 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5165 MINIX=yes
5166 else
5167 MINIX=
5168 fi
5169
5170
5171 if test "$MINIX" = yes; then
5172
5173 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5174
5175
5176 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5177
5178
5179 $as_echo "#define _MINIX 1" >>confdefs.h
5180
5181 fi
5182
5183
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5185 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5186 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5191
5192 # define __EXTENSIONS__ 1
5193 $ac_includes_default
5194 int
5195 main ()
5196 {
5197
5198 ;
5199 return 0;
5200 }
5201 _ACEOF
5202 if ac_fn_c_try_compile "$LINENO"; then :
5203 ac_cv_safe_to_define___extensions__=yes
5204 else
5205 ac_cv_safe_to_define___extensions__=no
5206 fi
5207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208 fi
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5210 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5211 test $ac_cv_safe_to_define___extensions__ = yes &&
5212 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5213
5214 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5215
5216 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5217
5218 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5219
5220 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5221
5222
5223
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5225 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5226 if ${ac_cv_c_bigendian+:} false; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 ac_cv_c_bigendian=unknown
5230 # See if we're dealing with a universal compiler.
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5233 #ifndef __APPLE_CC__
5234 not a universal capable compiler
5235 #endif
5236 typedef int dummy;
5237
5238 _ACEOF
5239 if ac_fn_c_try_compile "$LINENO"; then :
5240
5241 # Check for potential -arch flags. It is not universal unless
5242 # there are at least two -arch flags with different values.
5243 ac_arch=
5244 ac_prev=
5245 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5246 if test -n "$ac_prev"; then
5247 case $ac_word in
5248 i?86 | x86_64 | ppc | ppc64)
5249 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5250 ac_arch=$ac_word
5251 else
5252 ac_cv_c_bigendian=universal
5253 break
5254 fi
5255 ;;
5256 esac
5257 ac_prev=
5258 elif test "x$ac_word" = "x-arch"; then
5259 ac_prev=arch
5260 fi
5261 done
5262 fi
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 if test $ac_cv_c_bigendian = unknown; then
5265 # See if sys/param.h defines the BYTE_ORDER macro.
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5268 #include <sys/types.h>
5269 #include <sys/param.h>
5270
5271 int
5272 main ()
5273 {
5274 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5275 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5276 && LITTLE_ENDIAN)
5277 bogus endian macros
5278 #endif
5279
5280 ;
5281 return 0;
5282 }
5283 _ACEOF
5284 if ac_fn_c_try_compile "$LINENO"; then :
5285 # It does; now see whether it defined to BIG_ENDIAN or not.
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 #include <sys/types.h>
5289 #include <sys/param.h>
5290
5291 int
5292 main ()
5293 {
5294 #if BYTE_ORDER != BIG_ENDIAN
5295 not big endian
5296 #endif
5297
5298 ;
5299 return 0;
5300 }
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303 ac_cv_c_bigendian=yes
5304 else
5305 ac_cv_c_bigendian=no
5306 fi
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308 fi
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310 fi
5311 if test $ac_cv_c_bigendian = unknown; then
5312 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5315 #include <limits.h>
5316
5317 int
5318 main ()
5319 {
5320 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5321 bogus endian macros
5322 #endif
5323
5324 ;
5325 return 0;
5326 }
5327 _ACEOF
5328 if ac_fn_c_try_compile "$LINENO"; then :
5329 # It does; now see whether it defined to _BIG_ENDIAN or not.
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 #include <limits.h>
5333
5334 int
5335 main ()
5336 {
5337 #ifndef _BIG_ENDIAN
5338 not big endian
5339 #endif
5340
5341 ;
5342 return 0;
5343 }
5344 _ACEOF
5345 if ac_fn_c_try_compile "$LINENO"; then :
5346 ac_cv_c_bigendian=yes
5347 else
5348 ac_cv_c_bigendian=no
5349 fi
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 fi
5354 if test $ac_cv_c_bigendian = unknown; then
5355 # Compile a test program.
5356 if test "$cross_compiling" = yes; then :
5357 # Try to guess by grepping values from an object file.
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5360 short int ascii_mm[] =
5361 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5362 short int ascii_ii[] =
5363 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5364 int use_ascii (int i) {
5365 return ascii_mm[i] + ascii_ii[i];
5366 }
5367 short int ebcdic_ii[] =
5368 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5369 short int ebcdic_mm[] =
5370 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5371 int use_ebcdic (int i) {
5372 return ebcdic_mm[i] + ebcdic_ii[i];
5373 }
5374 extern int foo;
5375
5376 int
5377 main ()
5378 {
5379 return use_ascii (foo) == use_ebcdic (foo);
5380 ;
5381 return 0;
5382 }
5383 _ACEOF
5384 if ac_fn_c_try_compile "$LINENO"; then :
5385 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5386 ac_cv_c_bigendian=yes
5387 fi
5388 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5389 if test "$ac_cv_c_bigendian" = unknown; then
5390 ac_cv_c_bigendian=no
5391 else
5392 # finding both strings is unlikely to happen, but who knows?
5393 ac_cv_c_bigendian=unknown
5394 fi
5395 fi
5396 fi
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 else
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5401 $ac_includes_default
5402 int
5403 main ()
5404 {
5405
5406 /* Are we little or big endian? From Harbison&Steele. */
5407 union
5408 {
5409 long int l;
5410 char c[sizeof (long int)];
5411 } u;
5412 u.l = 1;
5413 return u.c[sizeof (long int) - 1] == 1;
5414
5415 ;
5416 return 0;
5417 }
5418 _ACEOF
5419 if ac_fn_c_try_run "$LINENO"; then :
5420 ac_cv_c_bigendian=no
5421 else
5422 ac_cv_c_bigendian=yes
5423 fi
5424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5425 conftest.$ac_objext conftest.beam conftest.$ac_ext
5426 fi
5427
5428 fi
5429 fi
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5431 $as_echo "$ac_cv_c_bigendian" >&6; }
5432 case $ac_cv_c_bigendian in #(
5433 yes)
5434 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5435 ;; #(
5436 no)
5437 ;; #(
5438 universal)
5439
5440 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5441
5442 ;; #(
5443 *)
5444 as_fn_error $? "unknown endianness
5445 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5446 esac
5447
5448
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5450 $as_echo_n "checking whether ln -s works... " >&6; }
5451 LN_S=$as_ln_s
5452 if test "$LN_S" = "ln -s"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5454 $as_echo "yes" >&6; }
5455 else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5457 $as_echo "no, using $LN_S" >&6; }
5458 fi
5459
5460 case `pwd` in
5461 *\ * | *\ *)
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5463 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5464 esac
5465
5466
5467
5468 macro_version='2.4.6'
5469 macro_revision='2.4.6'
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483 ltmain=$ac_aux_dir/ltmain.sh
5484
5485 # Backslashify metacharacters that are still active within
5486 # double-quoted strings.
5487 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5488
5489 # Same as above, but do not quote variable references.
5490 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5491
5492 # Sed substitution to delay expansion of an escaped shell variable in a
5493 # double_quote_subst'ed string.
5494 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5495
5496 # Sed substitution to delay expansion of an escaped single quote.
5497 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5498
5499 # Sed substitution to avoid accidental globbing in evaled expressions
5500 no_glob_subst='s/\*/\\\*/g'
5501
5502 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5503 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5504 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5505
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5507 $as_echo_n "checking how to print strings... " >&6; }
5508 # Test print first, because it will be a builtin if present.
5509 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5510 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5511 ECHO='print -r --'
5512 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5513 ECHO='printf %s\n'
5514 else
5515 # Use this function as a fallback that always works.
5516 func_fallback_echo ()
5517 {
5518 eval 'cat <<_LTECHO_EOF
5519 $1
5520 _LTECHO_EOF'
5521 }
5522 ECHO='func_fallback_echo'
5523 fi
5524
5525 # func_echo_all arg...
5526 # Invoke $ECHO with all args, space-separated.
5527 func_echo_all ()
5528 {
5529 $ECHO ""
5530 }
5531
5532 case $ECHO in
5533 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5534 $as_echo "printf" >&6; } ;;
5535 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5536 $as_echo "print -r" >&6; } ;;
5537 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5538 $as_echo "cat" >&6; } ;;
5539 esac
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5555 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5556 if ${ac_cv_path_SED+:} false; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5560 for ac_i in 1 2 3 4 5 6 7; do
5561 ac_script="$ac_script$as_nl$ac_script"
5562 done
5563 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5564 { ac_script=; unset ac_script;}
5565 if test -z "$SED"; then
5566 ac_path_SED_found=false
5567 # Loop through the user's path and test for each of PROGNAME-LIST
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5570 do
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_prog in sed gsed; do
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5576 as_fn_executable_p "$ac_path_SED" || continue
5577 # Check for GNU ac_path_SED and select it if it is found.
5578 # Check for GNU $ac_path_SED
5579 case `"$ac_path_SED" --version 2>&1` in
5580 *GNU*)
5581 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5582 *)
5583 ac_count=0
5584 $as_echo_n 0123456789 >"conftest.in"
5585 while :
5586 do
5587 cat "conftest.in" "conftest.in" >"conftest.tmp"
5588 mv "conftest.tmp" "conftest.in"
5589 cp "conftest.in" "conftest.nl"
5590 $as_echo '' >> "conftest.nl"
5591 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5592 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5593 as_fn_arith $ac_count + 1 && ac_count=$as_val
5594 if test $ac_count -gt ${ac_path_SED_max-0}; then
5595 # Best one so far, save it but keep looking for a better one
5596 ac_cv_path_SED="$ac_path_SED"
5597 ac_path_SED_max=$ac_count
5598 fi
5599 # 10*(2^10) chars as input seems more than enough
5600 test $ac_count -gt 10 && break
5601 done
5602 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5603 esac
5604
5605 $ac_path_SED_found && break 3
5606 done
5607 done
5608 done
5609 IFS=$as_save_IFS
5610 if test -z "$ac_cv_path_SED"; then
5611 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5612 fi
5613 else
5614 ac_cv_path_SED=$SED
5615 fi
5616
5617 fi
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5619 $as_echo "$ac_cv_path_SED" >&6; }
5620 SED="$ac_cv_path_SED"
5621 rm -f conftest.sed
5622
5623 test -z "$SED" && SED=sed
5624 Xsed="$SED -e 1s/^X//"
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5637 $as_echo_n "checking for fgrep... " >&6; }
5638 if ${ac_cv_path_FGREP+:} false; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5642 then ac_cv_path_FGREP="$GREP -F"
5643 else
5644 if test -z "$FGREP"; then
5645 ac_path_FGREP_found=false
5646 # Loop through the user's path and test for each of PROGNAME-LIST
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5649 do
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_prog in fgrep; do
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5655 as_fn_executable_p "$ac_path_FGREP" || continue
5656 # Check for GNU ac_path_FGREP and select it if it is found.
5657 # Check for GNU $ac_path_FGREP
5658 case `"$ac_path_FGREP" --version 2>&1` in
5659 *GNU*)
5660 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5661 *)
5662 ac_count=0
5663 $as_echo_n 0123456789 >"conftest.in"
5664 while :
5665 do
5666 cat "conftest.in" "conftest.in" >"conftest.tmp"
5667 mv "conftest.tmp" "conftest.in"
5668 cp "conftest.in" "conftest.nl"
5669 $as_echo 'FGREP' >> "conftest.nl"
5670 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5672 as_fn_arith $ac_count + 1 && ac_count=$as_val
5673 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5674 # Best one so far, save it but keep looking for a better one
5675 ac_cv_path_FGREP="$ac_path_FGREP"
5676 ac_path_FGREP_max=$ac_count
5677 fi
5678 # 10*(2^10) chars as input seems more than enough
5679 test $ac_count -gt 10 && break
5680 done
5681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5682 esac
5683
5684 $ac_path_FGREP_found && break 3
5685 done
5686 done
5687 done
5688 IFS=$as_save_IFS
5689 if test -z "$ac_cv_path_FGREP"; then
5690 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5691 fi
5692 else
5693 ac_cv_path_FGREP=$FGREP
5694 fi
5695
5696 fi
5697 fi
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5699 $as_echo "$ac_cv_path_FGREP" >&6; }
5700 FGREP="$ac_cv_path_FGREP"
5701
5702
5703 test -z "$GREP" && GREP=grep
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723 # Check whether --with-gnu-ld was given.
5724 if test "${with_gnu_ld+set}" = set; then :
5725 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5726 else
5727 with_gnu_ld=no
5728 fi
5729
5730 ac_prog=ld
5731 if test yes = "$GCC"; then
5732 # Check if gcc -print-prog-name=ld gives a path.
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5734 $as_echo_n "checking for ld used by $CC... " >&6; }
5735 case $host in
5736 *-*-mingw*)
5737 # gcc leaves a trailing carriage return, which upsets mingw
5738 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5739 *)
5740 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5741 esac
5742 case $ac_prog in
5743 # Accept absolute paths.
5744 [\\/]* | ?:[\\/]*)
5745 re_direlt='/[^/][^/]*/\.\./'
5746 # Canonicalize the pathname of ld
5747 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5748 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5749 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5750 done
5751 test -z "$LD" && LD=$ac_prog
5752 ;;
5753 "")
5754 # If it fails, then pretend we aren't using GCC.
5755 ac_prog=ld
5756 ;;
5757 *)
5758 # If it is relative, then search for the first ld in PATH.
5759 with_gnu_ld=unknown
5760 ;;
5761 esac
5762 elif test yes = "$with_gnu_ld"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5764 $as_echo_n "checking for GNU ld... " >&6; }
5765 else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5767 $as_echo_n "checking for non-GNU ld... " >&6; }
5768 fi
5769 if ${lt_cv_path_LD+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 if test -z "$LD"; then
5773 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5774 for ac_dir in $PATH; do
5775 IFS=$lt_save_ifs
5776 test -z "$ac_dir" && ac_dir=.
5777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5778 lt_cv_path_LD=$ac_dir/$ac_prog
5779 # Check to see if the program is GNU ld. I'd rather use --version,
5780 # but apparently some variants of GNU ld only accept -v.
5781 # Break only if it was the GNU/non-GNU ld that we prefer.
5782 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5783 *GNU* | *'with BFD'*)
5784 test no != "$with_gnu_ld" && break
5785 ;;
5786 *)
5787 test yes != "$with_gnu_ld" && break
5788 ;;
5789 esac
5790 fi
5791 done
5792 IFS=$lt_save_ifs
5793 else
5794 lt_cv_path_LD=$LD # Let the user override the test with a path.
5795 fi
5796 fi
5797
5798 LD=$lt_cv_path_LD
5799 if test -n "$LD"; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5801 $as_echo "$LD" >&6; }
5802 else
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804 $as_echo "no" >&6; }
5805 fi
5806 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5808 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5809 if ${lt_cv_prog_gnu_ld+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5813 case `$LD -v 2>&1 </dev/null` in
5814 *GNU* | *'with BFD'*)
5815 lt_cv_prog_gnu_ld=yes
5816 ;;
5817 *)
5818 lt_cv_prog_gnu_ld=no
5819 ;;
5820 esac
5821 fi
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5823 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5824 with_gnu_ld=$lt_cv_prog_gnu_ld
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5835 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5836 if ${lt_cv_path_NM+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if test -n "$NM"; then
5840 # Let the user override the test.
5841 lt_cv_path_NM=$NM
5842 else
5843 lt_nm_to_check=${ac_tool_prefix}nm
5844 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5845 lt_nm_to_check="$lt_nm_to_check nm"
5846 fi
5847 for lt_tmp_nm in $lt_nm_to_check; do
5848 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5849 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5850 IFS=$lt_save_ifs
5851 test -z "$ac_dir" && ac_dir=.
5852 tmp_nm=$ac_dir/$lt_tmp_nm
5853 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5854 # Check to see if the nm accepts a BSD-compat flag.
5855 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5856 # nm: unknown option "B" ignored
5857 # Tru64's nm complains that /dev/null is an invalid object file
5858 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5859 case $build_os in
5860 mingw*) lt_bad_file=conftest.nm/nofile ;;
5861 *) lt_bad_file=/dev/null ;;
5862 esac
5863 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5864 *$lt_bad_file* | *'Invalid file or object type'*)
5865 lt_cv_path_NM="$tmp_nm -B"
5866 break 2
5867 ;;
5868 *)
5869 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5870 */dev/null*)
5871 lt_cv_path_NM="$tmp_nm -p"
5872 break 2
5873 ;;
5874 *)
5875 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5876 continue # so that we can try to find one that supports BSD flags
5877 ;;
5878 esac
5879 ;;
5880 esac
5881 fi
5882 done
5883 IFS=$lt_save_ifs
5884 done
5885 : ${lt_cv_path_NM=no}
5886 fi
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5889 $as_echo "$lt_cv_path_NM" >&6; }
5890 if test no != "$lt_cv_path_NM"; then
5891 NM=$lt_cv_path_NM
5892 else
5893 # Didn't find any BSD compatible name lister, look for dumpbin.
5894 if test -n "$DUMPBIN"; then :
5895 # Let the user override the test.
5896 else
5897 if test -n "$ac_tool_prefix"; then
5898 for ac_prog in dumpbin "link -dump"
5899 do
5900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5901 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903 $as_echo_n "checking for $ac_word... " >&6; }
5904 if ${ac_cv_prog_DUMPBIN+:} false; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 if test -n "$DUMPBIN"; then
5908 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 break 2
5920 fi
5921 done
5922 done
5923 IFS=$as_save_IFS
5924
5925 fi
5926 fi
5927 DUMPBIN=$ac_cv_prog_DUMPBIN
5928 if test -n "$DUMPBIN"; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5930 $as_echo "$DUMPBIN" >&6; }
5931 else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5934 fi
5935
5936
5937 test -n "$DUMPBIN" && break
5938 done
5939 fi
5940 if test -z "$DUMPBIN"; then
5941 ac_ct_DUMPBIN=$DUMPBIN
5942 for ac_prog in dumpbin "link -dump"
5943 do
5944 # Extract the first word of "$ac_prog", so it can be a program name with args.
5945 set dummy $ac_prog; ac_word=$2
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947 $as_echo_n "checking for $ac_word... " >&6; }
5948 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 if test -n "$ac_ct_DUMPBIN"; then
5952 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5964 fi
5965 done
5966 done
5967 IFS=$as_save_IFS
5968
5969 fi
5970 fi
5971 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5972 if test -n "$ac_ct_DUMPBIN"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5974 $as_echo "$ac_ct_DUMPBIN" >&6; }
5975 else
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977 $as_echo "no" >&6; }
5978 fi
5979
5980
5981 test -n "$ac_ct_DUMPBIN" && break
5982 done
5983
5984 if test "x$ac_ct_DUMPBIN" = x; then
5985 DUMPBIN=":"
5986 else
5987 case $cross_compiling:$ac_tool_warned in
5988 yes:)
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5991 ac_tool_warned=yes ;;
5992 esac
5993 DUMPBIN=$ac_ct_DUMPBIN
5994 fi
5995 fi
5996
5997 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5998 *COFF*)
5999 DUMPBIN="$DUMPBIN -symbols -headers"
6000 ;;
6001 *)
6002 DUMPBIN=:
6003 ;;
6004 esac
6005 fi
6006
6007 if test : != "$DUMPBIN"; then
6008 NM=$DUMPBIN
6009 fi
6010 fi
6011 test -z "$NM" && NM=nm
6012
6013
6014
6015
6016
6017
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6019 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6020 if ${lt_cv_nm_interface+:} false; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6023 lt_cv_nm_interface="BSD nm"
6024 echo "int some_variable = 0;" > conftest.$ac_ext
6025 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6026 (eval "$ac_compile" 2>conftest.err)
6027 cat conftest.err >&5
6028 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6029 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6030 cat conftest.err >&5
6031 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6032 cat conftest.out >&5
6033 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6034 lt_cv_nm_interface="MS dumpbin"
6035 fi
6036 rm -f conftest*
6037 fi
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6039 $as_echo "$lt_cv_nm_interface" >&6; }
6040
6041 # find the maximum length of command line arguments
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6043 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6044 if ${lt_cv_sys_max_cmd_len+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 i=0
6048 teststring=ABCD
6049
6050 case $build_os in
6051 msdosdjgpp*)
6052 # On DJGPP, this test can blow up pretty badly due to problems in libc
6053 # (any single argument exceeding 2000 bytes causes a buffer overrun
6054 # during glob expansion). Even if it were fixed, the result of this
6055 # check would be larger than it should be.
6056 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6057 ;;
6058
6059 gnu*)
6060 # Under GNU Hurd, this test is not required because there is
6061 # no limit to the length of command line arguments.
6062 # Libtool will interpret -1 as no limit whatsoever
6063 lt_cv_sys_max_cmd_len=-1;
6064 ;;
6065
6066 cygwin* | mingw* | cegcc*)
6067 # On Win9x/ME, this test blows up -- it succeeds, but takes
6068 # about 5 minutes as the teststring grows exponentially.
6069 # Worse, since 9x/ME are not pre-emptively multitasking,
6070 # you end up with a "frozen" computer, even though with patience
6071 # the test eventually succeeds (with a max line length of 256k).
6072 # Instead, let's just punt: use the minimum linelength reported by
6073 # all of the supported platforms: 8192 (on NT/2K/XP).
6074 lt_cv_sys_max_cmd_len=8192;
6075 ;;
6076
6077 mint*)
6078 # On MiNT this can take a long time and run out of memory.
6079 lt_cv_sys_max_cmd_len=8192;
6080 ;;
6081
6082 amigaos*)
6083 # On AmigaOS with pdksh, this test takes hours, literally.
6084 # So we just punt and use a minimum line length of 8192.
6085 lt_cv_sys_max_cmd_len=8192;
6086 ;;
6087
6088 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6089 # This has been around since 386BSD, at least. Likely further.
6090 if test -x /sbin/sysctl; then
6091 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6092 elif test -x /usr/sbin/sysctl; then
6093 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6094 else
6095 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6096 fi
6097 # And add a safety zone
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 ;;
6101
6102 interix*)
6103 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6104 lt_cv_sys_max_cmd_len=196608
6105 ;;
6106
6107 os2*)
6108 # The test takes a long time on OS/2.
6109 lt_cv_sys_max_cmd_len=8192
6110 ;;
6111
6112 osf*)
6113 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6114 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6115 # nice to cause kernel panics so lets avoid the loop below.
6116 # First set a reasonable default.
6117 lt_cv_sys_max_cmd_len=16384
6118 #
6119 if test -x /sbin/sysconfig; then
6120 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6121 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6122 esac
6123 fi
6124 ;;
6125 sco3.2v5*)
6126 lt_cv_sys_max_cmd_len=102400
6127 ;;
6128 sysv5* | sco5v6* | sysv4.2uw2*)
6129 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6130 if test -n "$kargmax"; then
6131 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6132 else
6133 lt_cv_sys_max_cmd_len=32768
6134 fi
6135 ;;
6136 *)
6137 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6138 if test -n "$lt_cv_sys_max_cmd_len" && \
6139 test undefined != "$lt_cv_sys_max_cmd_len"; then
6140 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6141 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6142 else
6143 # Make teststring a little bigger before we do anything with it.
6144 # a 1K string should be a reasonable start.
6145 for i in 1 2 3 4 5 6 7 8; do
6146 teststring=$teststring$teststring
6147 done
6148 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6149 # If test is not a shell built-in, we'll probably end up computing a
6150 # maximum length that is only half of the actual maximum length, but
6151 # we can't tell.
6152 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6153 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6154 test 17 != "$i" # 1/2 MB should be enough
6155 do
6156 i=`expr $i + 1`
6157 teststring=$teststring$teststring
6158 done
6159 # Only check the string length outside the loop.
6160 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6161 teststring=
6162 # Add a significant safety factor because C++ compilers can tack on
6163 # massive amounts of additional arguments before passing them to the
6164 # linker. It appears as though 1/2 is a usable value.
6165 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6166 fi
6167 ;;
6168 esac
6169
6170 fi
6171
6172 if test -n "$lt_cv_sys_max_cmd_len"; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6174 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6175 else
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6177 $as_echo "none" >&6; }
6178 fi
6179 max_cmd_len=$lt_cv_sys_max_cmd_len
6180
6181
6182
6183
6184
6185
6186 : ${CP="cp -f"}
6187 : ${MV="mv -f"}
6188 : ${RM="rm -f"}
6189
6190 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6191 lt_unset=unset
6192 else
6193 lt_unset=false
6194 fi
6195
6196
6197
6198
6199
6200 # test EBCDIC or ASCII
6201 case `echo X|tr X '\101'` in
6202 A) # ASCII based system
6203 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6204 lt_SP2NL='tr \040 \012'
6205 lt_NL2SP='tr \015\012 \040\040'
6206 ;;
6207 *) # EBCDIC based system
6208 lt_SP2NL='tr \100 \n'
6209 lt_NL2SP='tr \r\n \100\100'
6210 ;;
6211 esac
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6222 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6223 if ${lt_cv_to_host_file_cmd+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 case $host in
6227 *-*-mingw* )
6228 case $build in
6229 *-*-mingw* ) # actually msys
6230 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6231 ;;
6232 *-*-cygwin* )
6233 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6234 ;;
6235 * ) # otherwise, assume *nix
6236 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6237 ;;
6238 esac
6239 ;;
6240 *-*-cygwin* )
6241 case $build in
6242 *-*-mingw* ) # actually msys
6243 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6244 ;;
6245 *-*-cygwin* )
6246 lt_cv_to_host_file_cmd=func_convert_file_noop
6247 ;;
6248 * ) # otherwise, assume *nix
6249 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6250 ;;
6251 esac
6252 ;;
6253 * ) # unhandled hosts (and "normal" native builds)
6254 lt_cv_to_host_file_cmd=func_convert_file_noop
6255 ;;
6256 esac
6257
6258 fi
6259
6260 to_host_file_cmd=$lt_cv_to_host_file_cmd
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6262 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6263
6264
6265
6266
6267
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6269 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6270 if ${lt_cv_to_tool_file_cmd+:} false; then :
6271 $as_echo_n "(cached) " >&6
6272 else
6273 #assume ordinary cross tools, or native build.
6274 lt_cv_to_tool_file_cmd=func_convert_file_noop
6275 case $host in
6276 *-*-mingw* )
6277 case $build in
6278 *-*-mingw* ) # actually msys
6279 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6280 ;;
6281 esac
6282 ;;
6283 esac
6284
6285 fi
6286
6287 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6289 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6290
6291
6292
6293
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6296 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6297 if ${lt_cv_ld_reload_flag+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 lt_cv_ld_reload_flag='-r'
6301 fi
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6303 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6304 reload_flag=$lt_cv_ld_reload_flag
6305 case $reload_flag in
6306 "" | " "*) ;;
6307 *) reload_flag=" $reload_flag" ;;
6308 esac
6309 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6310 case $host_os in
6311 cygwin* | mingw* | pw32* | cegcc*)
6312 if test yes != "$GCC"; then
6313 reload_cmds=false
6314 fi
6315 ;;
6316 darwin*)
6317 if test yes = "$GCC"; then
6318 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6319 else
6320 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6321 fi
6322 ;;
6323 esac
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333 if test -n "$ac_tool_prefix"; then
6334 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6335 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_OBJDUMP+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 if test -n "$OBJDUMP"; then
6342 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6343 else
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6346 do
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6354 fi
6355 done
6356 done
6357 IFS=$as_save_IFS
6358
6359 fi
6360 fi
6361 OBJDUMP=$ac_cv_prog_OBJDUMP
6362 if test -n "$OBJDUMP"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6364 $as_echo "$OBJDUMP" >&6; }
6365 else
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6368 fi
6369
6370
6371 fi
6372 if test -z "$ac_cv_prog_OBJDUMP"; then
6373 ac_ct_OBJDUMP=$OBJDUMP
6374 # Extract the first word of "objdump", so it can be a program name with args.
6375 set dummy objdump; ac_word=$2
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6377 $as_echo_n "checking for $ac_word... " >&6; }
6378 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 if test -n "$ac_ct_OBJDUMP"; then
6382 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6383 else
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 for as_dir in $PATH
6386 do
6387 IFS=$as_save_IFS
6388 test -z "$as_dir" && as_dir=.
6389 for ac_exec_ext in '' $ac_executable_extensions; do
6390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6391 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 break 2
6394 fi
6395 done
6396 done
6397 IFS=$as_save_IFS
6398
6399 fi
6400 fi
6401 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6402 if test -n "$ac_ct_OBJDUMP"; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6404 $as_echo "$ac_ct_OBJDUMP" >&6; }
6405 else
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407 $as_echo "no" >&6; }
6408 fi
6409
6410 if test "x$ac_ct_OBJDUMP" = x; then
6411 OBJDUMP="false"
6412 else
6413 case $cross_compiling:$ac_tool_warned in
6414 yes:)
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6417 ac_tool_warned=yes ;;
6418 esac
6419 OBJDUMP=$ac_ct_OBJDUMP
6420 fi
6421 else
6422 OBJDUMP="$ac_cv_prog_OBJDUMP"
6423 fi
6424
6425 test -z "$OBJDUMP" && OBJDUMP=objdump
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6436 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6437 if ${lt_cv_deplibs_check_method+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 lt_cv_file_magic_cmd='$MAGIC_CMD'
6441 lt_cv_file_magic_test_file=
6442 lt_cv_deplibs_check_method='unknown'
6443 # Need to set the preceding variable on all platforms that support
6444 # interlibrary dependencies.
6445 # 'none' -- dependencies not supported.
6446 # 'unknown' -- same as none, but documents that we really don't know.
6447 # 'pass_all' -- all dependencies passed with no checks.
6448 # 'test_compile' -- check by making test program.
6449 # 'file_magic [[regex]]' -- check by looking for files in library path
6450 # that responds to the $file_magic_cmd with a given extended regex.
6451 # If you have 'file' or equivalent on your system and you're not sure
6452 # whether 'pass_all' will *always* work, you probably want this one.
6453
6454 case $host_os in
6455 aix[4-9]*)
6456 lt_cv_deplibs_check_method=pass_all
6457 ;;
6458
6459 beos*)
6460 lt_cv_deplibs_check_method=pass_all
6461 ;;
6462
6463 bsdi[45]*)
6464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6465 lt_cv_file_magic_cmd='/usr/bin/file -L'
6466 lt_cv_file_magic_test_file=/shlib/libc.so
6467 ;;
6468
6469 cygwin*)
6470 # func_win32_libid is a shell function defined in ltmain.sh
6471 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6472 lt_cv_file_magic_cmd='func_win32_libid'
6473 ;;
6474
6475 mingw* | pw32*)
6476 # Base MSYS/MinGW do not provide the 'file' command needed by
6477 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6478 # unless we find 'file', for example because we are cross-compiling.
6479 if ( file / ) >/dev/null 2>&1; then
6480 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6481 lt_cv_file_magic_cmd='func_win32_libid'
6482 else
6483 # Keep this pattern in sync with the one in func_win32_libid.
6484 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6485 lt_cv_file_magic_cmd='$OBJDUMP -f'
6486 fi
6487 ;;
6488
6489 cegcc*)
6490 # use the weaker test based on 'objdump'. See mingw*.
6491 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6492 lt_cv_file_magic_cmd='$OBJDUMP -f'
6493 ;;
6494
6495 darwin* | rhapsody*)
6496 lt_cv_deplibs_check_method=pass_all
6497 ;;
6498
6499 freebsd* | dragonfly*)
6500 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6501 case $host_cpu in
6502 i*86 )
6503 # Not sure whether the presence of OpenBSD here was a mistake.
6504 # Let's accept both of them until this is cleared up.
6505 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6506 lt_cv_file_magic_cmd=/usr/bin/file
6507 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6508 ;;
6509 esac
6510 else
6511 lt_cv_deplibs_check_method=pass_all
6512 fi
6513 ;;
6514
6515 haiku*)
6516 lt_cv_deplibs_check_method=pass_all
6517 ;;
6518
6519 hpux10.20* | hpux11*)
6520 lt_cv_file_magic_cmd=/usr/bin/file
6521 case $host_cpu in
6522 ia64*)
6523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6524 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6525 ;;
6526 hppa*64*)
6527 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]'
6528 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6529 ;;
6530 *)
6531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6532 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6533 ;;
6534 esac
6535 ;;
6536
6537 interix[3-9]*)
6538 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6539 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6540 ;;
6541
6542 irix5* | irix6* | nonstopux*)
6543 case $LD in
6544 *-32|*"-32 ") libmagic=32-bit;;
6545 *-n32|*"-n32 ") libmagic=N32;;
6546 *-64|*"-64 ") libmagic=64-bit;;
6547 *) libmagic=never-match;;
6548 esac
6549 lt_cv_deplibs_check_method=pass_all
6550 ;;
6551
6552 # This must be glibc/ELF.
6553 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6554 lt_cv_deplibs_check_method=pass_all
6555 ;;
6556
6557 netbsd*)
6558 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6560 else
6561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6562 fi
6563 ;;
6564
6565 newos6*)
6566 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6567 lt_cv_file_magic_cmd=/usr/bin/file
6568 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6569 ;;
6570
6571 *nto* | *qnx*)
6572 lt_cv_deplibs_check_method=pass_all
6573 ;;
6574
6575 openbsd* | bitrig*)
6576 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6578 else
6579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6580 fi
6581 ;;
6582
6583 osf3* | osf4* | osf5*)
6584 lt_cv_deplibs_check_method=pass_all
6585 ;;
6586
6587 rdos*)
6588 lt_cv_deplibs_check_method=pass_all
6589 ;;
6590
6591 solaris*)
6592 lt_cv_deplibs_check_method=pass_all
6593 ;;
6594
6595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6596 lt_cv_deplibs_check_method=pass_all
6597 ;;
6598
6599 sysv4 | sysv4.3*)
6600 case $host_vendor in
6601 motorola)
6602 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]'
6603 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6604 ;;
6605 ncr)
6606 lt_cv_deplibs_check_method=pass_all
6607 ;;
6608 sequent)
6609 lt_cv_file_magic_cmd='/bin/file'
6610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6611 ;;
6612 sni)
6613 lt_cv_file_magic_cmd='/bin/file'
6614 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6615 lt_cv_file_magic_test_file=/lib/libc.so
6616 ;;
6617 siemens)
6618 lt_cv_deplibs_check_method=pass_all
6619 ;;
6620 pc)
6621 lt_cv_deplibs_check_method=pass_all
6622 ;;
6623 esac
6624 ;;
6625
6626 tpf*)
6627 lt_cv_deplibs_check_method=pass_all
6628 ;;
6629 os2*)
6630 lt_cv_deplibs_check_method=pass_all
6631 ;;
6632 esac
6633
6634 fi
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6636 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6637
6638 file_magic_glob=
6639 want_nocaseglob=no
6640 if test "$build" = "$host"; then
6641 case $host_os in
6642 mingw* | pw32*)
6643 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6644 want_nocaseglob=yes
6645 else
6646 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6647 fi
6648 ;;
6649 esac
6650 fi
6651
6652 file_magic_cmd=$lt_cv_file_magic_cmd
6653 deplibs_check_method=$lt_cv_deplibs_check_method
6654 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677 if test -n "$ac_tool_prefix"; then
6678 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6679 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if ${ac_cv_prog_DLLTOOL+:} false; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685 if test -n "$DLLTOOL"; then
6686 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691 IFS=$as_save_IFS
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 break 2
6698 fi
6699 done
6700 done
6701 IFS=$as_save_IFS
6702
6703 fi
6704 fi
6705 DLLTOOL=$ac_cv_prog_DLLTOOL
6706 if test -n "$DLLTOOL"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6708 $as_echo "$DLLTOOL" >&6; }
6709 else
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6712 fi
6713
6714
6715 fi
6716 if test -z "$ac_cv_prog_DLLTOOL"; then
6717 ac_ct_DLLTOOL=$DLLTOOL
6718 # Extract the first word of "dlltool", so it can be a program name with args.
6719 set dummy dlltool; ac_word=$2
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 $as_echo_n "checking for $ac_word... " >&6; }
6722 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6723 $as_echo_n "(cached) " >&6
6724 else
6725 if test -n "$ac_ct_DLLTOOL"; then
6726 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6735 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6738 fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743 fi
6744 fi
6745 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6746 if test -n "$ac_ct_DLLTOOL"; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6748 $as_echo "$ac_ct_DLLTOOL" >&6; }
6749 else
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751 $as_echo "no" >&6; }
6752 fi
6753
6754 if test "x$ac_ct_DLLTOOL" = x; then
6755 DLLTOOL="false"
6756 else
6757 case $cross_compiling:$ac_tool_warned in
6758 yes:)
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6761 ac_tool_warned=yes ;;
6762 esac
6763 DLLTOOL=$ac_ct_DLLTOOL
6764 fi
6765 else
6766 DLLTOOL="$ac_cv_prog_DLLTOOL"
6767 fi
6768
6769 test -z "$DLLTOOL" && DLLTOOL=dlltool
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6781 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6782 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6783 $as_echo_n "(cached) " >&6
6784 else
6785 lt_cv_sharedlib_from_linklib_cmd='unknown'
6786
6787 case $host_os in
6788 cygwin* | mingw* | pw32* | cegcc*)
6789 # two different shell functions defined in ltmain.sh;
6790 # decide which one to use based on capabilities of $DLLTOOL
6791 case `$DLLTOOL --help 2>&1` in
6792 *--identify-strict*)
6793 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6794 ;;
6795 *)
6796 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6797 ;;
6798 esac
6799 ;;
6800 *)
6801 # fallback: assume linklib IS sharedlib
6802 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6803 ;;
6804 esac
6805
6806 fi
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6808 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6809 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6810 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6811
6812
6813
6814
6815
6816
6817
6818 if test -n "$ac_tool_prefix"; then
6819 for ac_prog in ar
6820 do
6821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_AR+:} false; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 if test -n "$AR"; then
6829 ac_cv_prog_AR="$AR" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 AR=$ac_cv_prog_AR
6849 if test -n "$AR"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6851 $as_echo "$AR" >&6; }
6852 else
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857
6858 test -n "$AR" && break
6859 done
6860 fi
6861 if test -z "$AR"; then
6862 ac_ct_AR=$AR
6863 for ac_prog in ar
6864 do
6865 # Extract the first word of "$ac_prog", so it can be a program name with args.
6866 set dummy $ac_prog; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6870 $as_echo_n "(cached) " >&6
6871 else
6872 if test -n "$ac_ct_AR"; then
6873 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6882 ac_cv_prog_ac_ct_AR="$ac_prog"
6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 break 2
6885 fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6893 if test -n "$ac_ct_AR"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6895 $as_echo "$ac_ct_AR" >&6; }
6896 else
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6899 fi
6900
6901
6902 test -n "$ac_ct_AR" && break
6903 done
6904
6905 if test "x$ac_ct_AR" = x; then
6906 AR="false"
6907 else
6908 case $cross_compiling:$ac_tool_warned in
6909 yes:)
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6912 ac_tool_warned=yes ;;
6913 esac
6914 AR=$ac_ct_AR
6915 fi
6916 fi
6917
6918 : ${AR=ar}
6919 : ${AR_FLAGS=cru}
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6932 $as_echo_n "checking for archiver @FILE support... " >&6; }
6933 if ${lt_cv_ar_at_file+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 lt_cv_ar_at_file=no
6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6939
6940 int
6941 main ()
6942 {
6943
6944 ;
6945 return 0;
6946 }
6947 _ACEOF
6948 if ac_fn_c_try_compile "$LINENO"; then :
6949 echo conftest.$ac_objext > conftest.lst
6950 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6952 (eval $lt_ar_try) 2>&5
6953 ac_status=$?
6954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6955 test $ac_status = 0; }
6956 if test 0 -eq "$ac_status"; then
6957 # Ensure the archiver fails upon bogus file names.
6958 rm -f conftest.$ac_objext libconftest.a
6959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6960 (eval $lt_ar_try) 2>&5
6961 ac_status=$?
6962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6963 test $ac_status = 0; }
6964 if test 0 -ne "$ac_status"; then
6965 lt_cv_ar_at_file=@
6966 fi
6967 fi
6968 rm -f conftest.* libconftest.a
6969
6970 fi
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6972
6973 fi
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6975 $as_echo "$lt_cv_ar_at_file" >&6; }
6976
6977 if test no = "$lt_cv_ar_at_file"; then
6978 archiver_list_spec=
6979 else
6980 archiver_list_spec=$lt_cv_ar_at_file
6981 fi
6982
6983
6984
6985
6986
6987
6988
6989 if test -n "$ac_tool_prefix"; then
6990 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6991 set dummy ${ac_tool_prefix}strip; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if ${ac_cv_prog_STRIP+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 if test -n "$STRIP"; then
6998 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6999 else
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 break 2
7010 fi
7011 done
7012 done
7013 IFS=$as_save_IFS
7014
7015 fi
7016 fi
7017 STRIP=$ac_cv_prog_STRIP
7018 if test -n "$STRIP"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7020 $as_echo "$STRIP" >&6; }
7021 else
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7024 fi
7025
7026
7027 fi
7028 if test -z "$ac_cv_prog_STRIP"; then
7029 ac_ct_STRIP=$STRIP
7030 # Extract the first word of "strip", so it can be a program name with args.
7031 set dummy strip; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 if test -n "$ac_ct_STRIP"; then
7038 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047 ac_cv_prog_ac_ct_STRIP="strip"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051 done
7052 done
7053 IFS=$as_save_IFS
7054
7055 fi
7056 fi
7057 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7058 if test -n "$ac_ct_STRIP"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7060 $as_echo "$ac_ct_STRIP" >&6; }
7061 else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7064 fi
7065
7066 if test "x$ac_ct_STRIP" = x; then
7067 STRIP=":"
7068 else
7069 case $cross_compiling:$ac_tool_warned in
7070 yes:)
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073 ac_tool_warned=yes ;;
7074 esac
7075 STRIP=$ac_ct_STRIP
7076 fi
7077 else
7078 STRIP="$ac_cv_prog_STRIP"
7079 fi
7080
7081 test -z "$STRIP" && STRIP=:
7082
7083
7084
7085
7086
7087
7088 if test -n "$ac_tool_prefix"; then
7089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7090 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092 $as_echo_n "checking for $ac_word... " >&6; }
7093 if ${ac_cv_prog_RANLIB+:} false; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 if test -n "$RANLIB"; then
7097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7098 else
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 for as_dir in $PATH
7101 do
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 break 2
7109 fi
7110 done
7111 done
7112 IFS=$as_save_IFS
7113
7114 fi
7115 fi
7116 RANLIB=$ac_cv_prog_RANLIB
7117 if test -n "$RANLIB"; then
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7119 $as_echo "$RANLIB" >&6; }
7120 else
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 $as_echo "no" >&6; }
7123 fi
7124
7125
7126 fi
7127 if test -z "$ac_cv_prog_RANLIB"; then
7128 ac_ct_RANLIB=$RANLIB
7129 # Extract the first word of "ranlib", so it can be a program name with args.
7130 set dummy ranlib; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7136 if test -n "$ac_ct_RANLIB"; then
7137 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142 IFS=$as_save_IFS
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_ac_ct_RANLIB="ranlib"
7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 break 2
7149 fi
7150 done
7151 done
7152 IFS=$as_save_IFS
7153
7154 fi
7155 fi
7156 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7157 if test -n "$ac_ct_RANLIB"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7159 $as_echo "$ac_ct_RANLIB" >&6; }
7160 else
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7163 fi
7164
7165 if test "x$ac_ct_RANLIB" = x; then
7166 RANLIB=":"
7167 else
7168 case $cross_compiling:$ac_tool_warned in
7169 yes:)
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7172 ac_tool_warned=yes ;;
7173 esac
7174 RANLIB=$ac_ct_RANLIB
7175 fi
7176 else
7177 RANLIB="$ac_cv_prog_RANLIB"
7178 fi
7179
7180 test -z "$RANLIB" && RANLIB=:
7181
7182
7183
7184
7185
7186
7187 # Determine commands to create old-style static archives.
7188 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7189 old_postinstall_cmds='chmod 644 $oldlib'
7190 old_postuninstall_cmds=
7191
7192 if test -n "$RANLIB"; then
7193 case $host_os in
7194 bitrig* | openbsd*)
7195 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7196 ;;
7197 *)
7198 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7199 ;;
7200 esac
7201 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7202 fi
7203
7204 case $host_os in
7205 darwin*)
7206 lock_old_archive_extraction=yes ;;
7207 *)
7208 lock_old_archive_extraction=no ;;
7209 esac
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249 # If no C compiler was specified, use CC.
7250 LTCC=${LTCC-"$CC"}
7251
7252 # If no C compiler flags were specified, use CFLAGS.
7253 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7254
7255 # Allow CC to be a program name with arguments.
7256 compiler=$CC
7257
7258
7259 # Check for command to grab the raw symbol name followed by C symbol from nm.
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7261 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7262 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7263 $as_echo_n "(cached) " >&6
7264 else
7265
7266 # These are sane defaults that work on at least a few old systems.
7267 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7268
7269 # Character class describing NM global symbol codes.
7270 symcode='[BCDEGRST]'
7271
7272 # Regexp to match symbols that can be accessed directly from C.
7273 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7274
7275 # Define system-specific variables.
7276 case $host_os in
7277 aix*)
7278 symcode='[BCDT]'
7279 ;;
7280 cygwin* | mingw* | pw32* | cegcc*)
7281 symcode='[ABCDGISTW]'
7282 ;;
7283 hpux*)
7284 if test ia64 = "$host_cpu"; then
7285 symcode='[ABCDEGRST]'
7286 fi
7287 ;;
7288 irix* | nonstopux*)
7289 symcode='[BCDEGRST]'
7290 ;;
7291 osf*)
7292 symcode='[BCDEGQRST]'
7293 ;;
7294 solaris*)
7295 symcode='[BDRT]'
7296 ;;
7297 sco3.2v5*)
7298 symcode='[DT]'
7299 ;;
7300 sysv4.2uw2*)
7301 symcode='[DT]'
7302 ;;
7303 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7304 symcode='[ABDT]'
7305 ;;
7306 sysv4)
7307 symcode='[DFNSTU]'
7308 ;;
7309 esac
7310
7311 # If we're using GNU nm, then use its standard symbol codes.
7312 case `$NM -V 2>&1` in
7313 *GNU* | *'with BFD'*)
7314 symcode='[ABCDGIRSTW]' ;;
7315 esac
7316
7317 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7318 # Gets list of data symbols to import.
7319 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7320 # Adjust the below global symbol transforms to fixup imported variables.
7321 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7322 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7323 lt_c_name_lib_hook="\
7324 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7325 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7326 else
7327 # Disable hooks by default.
7328 lt_cv_sys_global_symbol_to_import=
7329 lt_cdecl_hook=
7330 lt_c_name_hook=
7331 lt_c_name_lib_hook=
7332 fi
7333
7334 # Transform an extracted symbol line into a proper C declaration.
7335 # Some systems (esp. on ia64) link data and code symbols differently,
7336 # so use this general approach.
7337 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7338 $lt_cdecl_hook\
7339 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7340 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7341
7342 # Transform an extracted symbol line into symbol name and symbol address
7343 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7344 $lt_c_name_hook\
7345 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7346 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7347
7348 # Transform an extracted symbol line into symbol name with lib prefix and
7349 # symbol address.
7350 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7351 $lt_c_name_lib_hook\
7352 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7353 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7354 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7355
7356 # Handle CRLF in mingw tool chain
7357 opt_cr=
7358 case $build_os in
7359 mingw*)
7360 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7361 ;;
7362 esac
7363
7364 # Try without a prefix underscore, then with it.
7365 for ac_symprfx in "" "_"; do
7366
7367 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7368 symxfrm="\\1 $ac_symprfx\\2 \\2"
7369
7370 # Write the raw and C identifiers.
7371 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7372 # Fake it for dumpbin and say T for any non-static function,
7373 # D for any global variable and I for any imported variable.
7374 # Also find C++ and __fastcall symbols from MSVC++,
7375 # which start with @ or ?.
7376 lt_cv_sys_global_symbol_pipe="$AWK '"\
7377 " {last_section=section; section=\$ 3};"\
7378 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7379 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7380 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7381 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7382 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7383 " \$ 0!~/External *\|/{next};"\
7384 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7385 " {if(hide[section]) next};"\
7386 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7387 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7388 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7389 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7390 " ' prfx=^$ac_symprfx"
7391 else
7392 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7393 fi
7394 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7395
7396 # Check to see that the pipe works correctly.
7397 pipe_works=no
7398
7399 rm -f conftest*
7400 cat > conftest.$ac_ext <<_LT_EOF
7401 #ifdef __cplusplus
7402 extern "C" {
7403 #endif
7404 char nm_test_var;
7405 void nm_test_func(void);
7406 void nm_test_func(void){}
7407 #ifdef __cplusplus
7408 }
7409 #endif
7410 int main(){nm_test_var='a';nm_test_func();return(0);}
7411 _LT_EOF
7412
7413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7414 (eval $ac_compile) 2>&5
7415 ac_status=$?
7416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7417 test $ac_status = 0; }; then
7418 # Now try to grab the symbols.
7419 nlist=conftest.nm
7420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7421 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7422 ac_status=$?
7423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7424 test $ac_status = 0; } && test -s "$nlist"; then
7425 # Try sorting and uniquifying the output.
7426 if sort "$nlist" | uniq > "$nlist"T; then
7427 mv -f "$nlist"T "$nlist"
7428 else
7429 rm -f "$nlist"T
7430 fi
7431
7432 # Make sure that we snagged all the symbols we need.
7433 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7434 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7435 cat <<_LT_EOF > conftest.$ac_ext
7436 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7437 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7438 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7439 relocations are performed -- see ld's documentation on pseudo-relocs. */
7440 # define LT_DLSYM_CONST
7441 #elif defined __osf__
7442 /* This system does not cope well with relocations in const data. */
7443 # define LT_DLSYM_CONST
7444 #else
7445 # define LT_DLSYM_CONST const
7446 #endif
7447
7448 #ifdef __cplusplus
7449 extern "C" {
7450 #endif
7451
7452 _LT_EOF
7453 # Now generate the symbol file.
7454 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7455
7456 cat <<_LT_EOF >> conftest.$ac_ext
7457
7458 /* The mapping between symbol names and symbols. */
7459 LT_DLSYM_CONST struct {
7460 const char *name;
7461 void *address;
7462 }
7463 lt__PROGRAM__LTX_preloaded_symbols[] =
7464 {
7465 { "@PROGRAM@", (void *) 0 },
7466 _LT_EOF
7467 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7468 cat <<\_LT_EOF >> conftest.$ac_ext
7469 {0, (void *) 0}
7470 };
7471
7472 /* This works around a problem in FreeBSD linker */
7473 #ifdef FREEBSD_WORKAROUND
7474 static const void *lt_preloaded_setup() {
7475 return lt__PROGRAM__LTX_preloaded_symbols;
7476 }
7477 #endif
7478
7479 #ifdef __cplusplus
7480 }
7481 #endif
7482 _LT_EOF
7483 # Now try linking the two files.
7484 mv conftest.$ac_objext conftstm.$ac_objext
7485 lt_globsym_save_LIBS=$LIBS
7486 lt_globsym_save_CFLAGS=$CFLAGS
7487 LIBS=conftstm.$ac_objext
7488 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7490 (eval $ac_link) 2>&5
7491 ac_status=$?
7492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7494 pipe_works=yes
7495 fi
7496 LIBS=$lt_globsym_save_LIBS
7497 CFLAGS=$lt_globsym_save_CFLAGS
7498 else
7499 echo "cannot find nm_test_func in $nlist" >&5
7500 fi
7501 else
7502 echo "cannot find nm_test_var in $nlist" >&5
7503 fi
7504 else
7505 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7506 fi
7507 else
7508 echo "$progname: failed program was:" >&5
7509 cat conftest.$ac_ext >&5
7510 fi
7511 rm -rf conftest* conftst*
7512
7513 # Do not use the global_symbol_pipe unless it works.
7514 if test yes = "$pipe_works"; then
7515 break
7516 else
7517 lt_cv_sys_global_symbol_pipe=
7518 fi
7519 done
7520
7521 fi
7522
7523 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7524 lt_cv_sys_global_symbol_to_cdecl=
7525 fi
7526 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7528 $as_echo "failed" >&6; }
7529 else
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7531 $as_echo "ok" >&6; }
7532 fi
7533
7534 # Response file support.
7535 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7536 nm_file_list_spec='@'
7537 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7538 nm_file_list_spec='@'
7539 fi
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7578 $as_echo_n "checking for sysroot... " >&6; }
7579
7580 # Check whether --with-sysroot was given.
7581 if test "${with_sysroot+set}" = set; then :
7582 withval=$with_sysroot;
7583 else
7584 with_sysroot=no
7585 fi
7586
7587
7588 lt_sysroot=
7589 case $with_sysroot in #(
7590 yes)
7591 if test yes = "$GCC"; then
7592 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7593 fi
7594 ;; #(
7595 /*)
7596 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7597 ;; #(
7598 no|'')
7599 ;; #(
7600 *)
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7602 $as_echo "$with_sysroot" >&6; }
7603 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7604 ;;
7605 esac
7606
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7608 $as_echo "${lt_sysroot:-no}" >&6; }
7609
7610
7611
7612
7613
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7615 $as_echo_n "checking for a working dd... " >&6; }
7616 if ${ac_cv_path_lt_DD+:} false; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 printf 0123456789abcdef0123456789abcdef >conftest.i
7620 cat conftest.i conftest.i >conftest2.i
7621 : ${lt_DD:=$DD}
7622 if test -z "$lt_DD"; then
7623 ac_path_lt_DD_found=false
7624 # Loop through the user's path and test for each of PROGNAME-LIST
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7627 do
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
7630 for ac_prog in dd; do
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7633 as_fn_executable_p "$ac_path_lt_DD" || continue
7634 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7635 cmp -s conftest.i conftest.out \
7636 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7637 fi
7638 $ac_path_lt_DD_found && break 3
7639 done
7640 done
7641 done
7642 IFS=$as_save_IFS
7643 if test -z "$ac_cv_path_lt_DD"; then
7644 :
7645 fi
7646 else
7647 ac_cv_path_lt_DD=$lt_DD
7648 fi
7649
7650 rm -f conftest.i conftest2.i conftest.out
7651 fi
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7653 $as_echo "$ac_cv_path_lt_DD" >&6; }
7654
7655
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7657 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7658 if ${lt_cv_truncate_bin+:} false; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 printf 0123456789abcdef0123456789abcdef >conftest.i
7662 cat conftest.i conftest.i >conftest2.i
7663 lt_cv_truncate_bin=
7664 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7665 cmp -s conftest.i conftest.out \
7666 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7667 fi
7668 rm -f conftest.i conftest2.i conftest.out
7669 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7670 fi
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7672 $as_echo "$lt_cv_truncate_bin" >&6; }
7673
7674
7675
7676
7677
7678
7679
7680 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7681 func_cc_basename ()
7682 {
7683 for cc_temp in $*""; do
7684 case $cc_temp in
7685 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7686 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7687 \-*) ;;
7688 *) break;;
7689 esac
7690 done
7691 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7692 }
7693
7694 # Check whether --enable-libtool-lock was given.
7695 if test "${enable_libtool_lock+set}" = set; then :
7696 enableval=$enable_libtool_lock;
7697 fi
7698
7699 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7700
7701 # Some flags need to be propagated to the compiler or linker for good
7702 # libtool support.
7703 case $host in
7704 ia64-*-hpux*)
7705 # Find out what ABI is being produced by ac_compile, and set mode
7706 # options accordingly.
7707 echo 'int i;' > conftest.$ac_ext
7708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7709 (eval $ac_compile) 2>&5
7710 ac_status=$?
7711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7712 test $ac_status = 0; }; then
7713 case `/usr/bin/file conftest.$ac_objext` in
7714 *ELF-32*)
7715 HPUX_IA64_MODE=32
7716 ;;
7717 *ELF-64*)
7718 HPUX_IA64_MODE=64
7719 ;;
7720 esac
7721 fi
7722 rm -rf conftest*
7723 ;;
7724 *-*-irix6*)
7725 # Find out what ABI is being produced by ac_compile, and set linker
7726 # options accordingly.
7727 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7729 (eval $ac_compile) 2>&5
7730 ac_status=$?
7731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7732 test $ac_status = 0; }; then
7733 if test yes = "$lt_cv_prog_gnu_ld"; then
7734 case `/usr/bin/file conftest.$ac_objext` in
7735 *32-bit*)
7736 LD="${LD-ld} -melf32bsmip"
7737 ;;
7738 *N32*)
7739 LD="${LD-ld} -melf32bmipn32"
7740 ;;
7741 *64-bit*)
7742 LD="${LD-ld} -melf64bmip"
7743 ;;
7744 esac
7745 else
7746 case `/usr/bin/file conftest.$ac_objext` in
7747 *32-bit*)
7748 LD="${LD-ld} -32"
7749 ;;
7750 *N32*)
7751 LD="${LD-ld} -n32"
7752 ;;
7753 *64-bit*)
7754 LD="${LD-ld} -64"
7755 ;;
7756 esac
7757 fi
7758 fi
7759 rm -rf conftest*
7760 ;;
7761
7762 mips64*-*linux*)
7763 # Find out what ABI is being produced by ac_compile, and set linker
7764 # options accordingly.
7765 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7767 (eval $ac_compile) 2>&5
7768 ac_status=$?
7769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7770 test $ac_status = 0; }; then
7771 emul=elf
7772 case `/usr/bin/file conftest.$ac_objext` in
7773 *32-bit*)
7774 emul="${emul}32"
7775 ;;
7776 *64-bit*)
7777 emul="${emul}64"
7778 ;;
7779 esac
7780 case `/usr/bin/file conftest.$ac_objext` in
7781 *MSB*)
7782 emul="${emul}btsmip"
7783 ;;
7784 *LSB*)
7785 emul="${emul}ltsmip"
7786 ;;
7787 esac
7788 case `/usr/bin/file conftest.$ac_objext` in
7789 *N32*)
7790 emul="${emul}n32"
7791 ;;
7792 esac
7793 LD="${LD-ld} -m $emul"
7794 fi
7795 rm -rf conftest*
7796 ;;
7797
7798 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7799 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7800 # Find out what ABI is being produced by ac_compile, and set linker
7801 # options accordingly. Note that the listed cases only cover the
7802 # situations where additional linker options are needed (such as when
7803 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7804 # vice versa); the common cases where no linker options are needed do
7805 # not appear in the list.
7806 echo 'int i;' > conftest.$ac_ext
7807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7808 (eval $ac_compile) 2>&5
7809 ac_status=$?
7810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7811 test $ac_status = 0; }; then
7812 case `/usr/bin/file conftest.o` in
7813 *32-bit*)
7814 case $host in
7815 x86_64-*kfreebsd*-gnu)
7816 LD="${LD-ld} -m elf_i386_fbsd"
7817 ;;
7818 x86_64-*linux*)
7819 case `/usr/bin/file conftest.o` in
7820 *x86-64*)
7821 LD="${LD-ld} -m elf32_x86_64"
7822 ;;
7823 *)
7824 LD="${LD-ld} -m elf_i386"
7825 ;;
7826 esac
7827 ;;
7828 powerpc64le-*linux*)
7829 LD="${LD-ld} -m elf32lppclinux"
7830 ;;
7831 powerpc64-*linux*)
7832 LD="${LD-ld} -m elf32ppclinux"
7833 ;;
7834 s390x-*linux*)
7835 LD="${LD-ld} -m elf_s390"
7836 ;;
7837 sparc64-*linux*)
7838 LD="${LD-ld} -m elf32_sparc"
7839 ;;
7840 esac
7841 ;;
7842 *64-bit*)
7843 case $host in
7844 x86_64-*kfreebsd*-gnu)
7845 LD="${LD-ld} -m elf_x86_64_fbsd"
7846 ;;
7847 x86_64-*linux*)
7848 LD="${LD-ld} -m elf_x86_64"
7849 ;;
7850 powerpcle-*linux*)
7851 LD="${LD-ld} -m elf64lppc"
7852 ;;
7853 powerpc-*linux*)
7854 LD="${LD-ld} -m elf64ppc"
7855 ;;
7856 s390*-*linux*|s390*-*tpf*)
7857 LD="${LD-ld} -m elf64_s390"
7858 ;;
7859 sparc*-*linux*)
7860 LD="${LD-ld} -m elf64_sparc"
7861 ;;
7862 esac
7863 ;;
7864 esac
7865 fi
7866 rm -rf conftest*
7867 ;;
7868
7869 *-*-sco3.2v5*)
7870 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7871 SAVE_CFLAGS=$CFLAGS
7872 CFLAGS="$CFLAGS -belf"
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7874 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7875 if ${lt_cv_cc_needs_belf+:} false; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 ac_ext=c
7879 ac_cpp='$CPP $CPPFLAGS'
7880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7883
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7886
7887 int
7888 main ()
7889 {
7890
7891 ;
7892 return 0;
7893 }
7894 _ACEOF
7895 if ac_fn_c_try_link "$LINENO"; then :
7896 lt_cv_cc_needs_belf=yes
7897 else
7898 lt_cv_cc_needs_belf=no
7899 fi
7900 rm -f core conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7902 ac_ext=c
7903 ac_cpp='$CPP $CPPFLAGS'
7904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907
7908 fi
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7910 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7911 if test yes != "$lt_cv_cc_needs_belf"; then
7912 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7913 CFLAGS=$SAVE_CFLAGS
7914 fi
7915 ;;
7916 *-*solaris*)
7917 # Find out what ABI is being produced by ac_compile, and set linker
7918 # options accordingly.
7919 echo 'int i;' > conftest.$ac_ext
7920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7921 (eval $ac_compile) 2>&5
7922 ac_status=$?
7923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7924 test $ac_status = 0; }; then
7925 case `/usr/bin/file conftest.o` in
7926 *64-bit*)
7927 case $lt_cv_prog_gnu_ld in
7928 yes*)
7929 case $host in
7930 i?86-*-solaris*|x86_64-*-solaris*)
7931 LD="${LD-ld} -m elf_x86_64"
7932 ;;
7933 sparc*-*-solaris*)
7934 LD="${LD-ld} -m elf64_sparc"
7935 ;;
7936 esac
7937 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7938 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7939 LD=${LD-ld}_sol2
7940 fi
7941 ;;
7942 *)
7943 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7944 LD="${LD-ld} -64"
7945 fi
7946 ;;
7947 esac
7948 ;;
7949 esac
7950 fi
7951 rm -rf conftest*
7952 ;;
7953 esac
7954
7955 need_locks=$enable_libtool_lock
7956
7957 if test -n "$ac_tool_prefix"; then
7958 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7959 set dummy ${ac_tool_prefix}mt; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 if test -n "$MANIFEST_TOOL"; then
7966 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7970 do
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7975 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7978 fi
7979 done
7980 done
7981 IFS=$as_save_IFS
7982
7983 fi
7984 fi
7985 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7986 if test -n "$MANIFEST_TOOL"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7988 $as_echo "$MANIFEST_TOOL" >&6; }
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7992 fi
7993
7994
7995 fi
7996 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7997 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7998 # Extract the first word of "mt", so it can be a program name with args.
7999 set dummy mt; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 if test -n "$ac_ct_MANIFEST_TOOL"; then
8006 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8010 do
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8015 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 break 2
8018 fi
8019 done
8020 done
8021 IFS=$as_save_IFS
8022
8023 fi
8024 fi
8025 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8026 if test -n "$ac_ct_MANIFEST_TOOL"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8028 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8029 else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033
8034 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8035 MANIFEST_TOOL=":"
8036 else
8037 case $cross_compiling:$ac_tool_warned in
8038 yes:)
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8041 ac_tool_warned=yes ;;
8042 esac
8043 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8044 fi
8045 else
8046 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8047 fi
8048
8049 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8051 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8052 if ${lt_cv_path_mainfest_tool+:} false; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 lt_cv_path_mainfest_tool=no
8056 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8057 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8058 cat conftest.err >&5
8059 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8060 lt_cv_path_mainfest_tool=yes
8061 fi
8062 rm -f conftest*
8063 fi
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8065 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8066 if test yes != "$lt_cv_path_mainfest_tool"; then
8067 MANIFEST_TOOL=:
8068 fi
8069
8070
8071
8072
8073
8074
8075 case $host_os in
8076 rhapsody* | darwin*)
8077 if test -n "$ac_tool_prefix"; then
8078 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8079 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081 $as_echo_n "checking for $ac_word... " >&6; }
8082 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 if test -n "$DSYMUTIL"; then
8086 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8087 else
8088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089 for as_dir in $PATH
8090 do
8091 IFS=$as_save_IFS
8092 test -z "$as_dir" && as_dir=.
8093 for ac_exec_ext in '' $ac_executable_extensions; do
8094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8095 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8097 break 2
8098 fi
8099 done
8100 done
8101 IFS=$as_save_IFS
8102
8103 fi
8104 fi
8105 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8106 if test -n "$DSYMUTIL"; then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8108 $as_echo "$DSYMUTIL" >&6; }
8109 else
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 $as_echo "no" >&6; }
8112 fi
8113
8114
8115 fi
8116 if test -z "$ac_cv_prog_DSYMUTIL"; then
8117 ac_ct_DSYMUTIL=$DSYMUTIL
8118 # Extract the first word of "dsymutil", so it can be a program name with args.
8119 set dummy dsymutil; ac_word=$2
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 $as_echo_n "checking for $ac_word... " >&6; }
8122 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 if test -n "$ac_ct_DSYMUTIL"; then
8126 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8127 else
8128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8130 do
8131 IFS=$as_save_IFS
8132 test -z "$as_dir" && as_dir=.
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8135 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 break 2
8138 fi
8139 done
8140 done
8141 IFS=$as_save_IFS
8142
8143 fi
8144 fi
8145 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8146 if test -n "$ac_ct_DSYMUTIL"; then
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8148 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8149 else
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 $as_echo "no" >&6; }
8152 fi
8153
8154 if test "x$ac_ct_DSYMUTIL" = x; then
8155 DSYMUTIL=":"
8156 else
8157 case $cross_compiling:$ac_tool_warned in
8158 yes:)
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8161 ac_tool_warned=yes ;;
8162 esac
8163 DSYMUTIL=$ac_ct_DSYMUTIL
8164 fi
8165 else
8166 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8167 fi
8168
8169 if test -n "$ac_tool_prefix"; then
8170 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8171 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173 $as_echo_n "checking for $ac_word... " >&6; }
8174 if ${ac_cv_prog_NMEDIT+:} false; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 if test -n "$NMEDIT"; then
8178 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8179 else
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 for as_dir in $PATH
8182 do
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8187 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 break 2
8190 fi
8191 done
8192 done
8193 IFS=$as_save_IFS
8194
8195 fi
8196 fi
8197 NMEDIT=$ac_cv_prog_NMEDIT
8198 if test -n "$NMEDIT"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8200 $as_echo "$NMEDIT" >&6; }
8201 else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8204 fi
8205
8206
8207 fi
8208 if test -z "$ac_cv_prog_NMEDIT"; then
8209 ac_ct_NMEDIT=$NMEDIT
8210 # Extract the first word of "nmedit", so it can be a program name with args.
8211 set dummy nmedit; ac_word=$2
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 $as_echo_n "checking for $ac_word... " >&6; }
8214 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 if test -n "$ac_ct_NMEDIT"; then
8218 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8219 else
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8222 do
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8227 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 break 2
8230 fi
8231 done
8232 done
8233 IFS=$as_save_IFS
8234
8235 fi
8236 fi
8237 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8238 if test -n "$ac_ct_NMEDIT"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8240 $as_echo "$ac_ct_NMEDIT" >&6; }
8241 else
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8244 fi
8245
8246 if test "x$ac_ct_NMEDIT" = x; then
8247 NMEDIT=":"
8248 else
8249 case $cross_compiling:$ac_tool_warned in
8250 yes:)
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8253 ac_tool_warned=yes ;;
8254 esac
8255 NMEDIT=$ac_ct_NMEDIT
8256 fi
8257 else
8258 NMEDIT="$ac_cv_prog_NMEDIT"
8259 fi
8260
8261 if test -n "$ac_tool_prefix"; then
8262 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8263 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8265 $as_echo_n "checking for $ac_word... " >&6; }
8266 if ${ac_cv_prog_LIPO+:} false; then :
8267 $as_echo_n "(cached) " >&6
8268 else
8269 if test -n "$LIPO"; then
8270 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8271 else
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $PATH
8274 do
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8279 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 break 2
8282 fi
8283 done
8284 done
8285 IFS=$as_save_IFS
8286
8287 fi
8288 fi
8289 LIPO=$ac_cv_prog_LIPO
8290 if test -n "$LIPO"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8292 $as_echo "$LIPO" >&6; }
8293 else
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 $as_echo "no" >&6; }
8296 fi
8297
8298
8299 fi
8300 if test -z "$ac_cv_prog_LIPO"; then
8301 ac_ct_LIPO=$LIPO
8302 # Extract the first word of "lipo", so it can be a program name with args.
8303 set dummy lipo; ac_word=$2
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 $as_echo_n "checking for $ac_word... " >&6; }
8306 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 if test -n "$ac_ct_LIPO"; then
8310 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8311 else
8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 for as_dir in $PATH
8314 do
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8319 ac_cv_prog_ac_ct_LIPO="lipo"
8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 break 2
8322 fi
8323 done
8324 done
8325 IFS=$as_save_IFS
8326
8327 fi
8328 fi
8329 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8330 if test -n "$ac_ct_LIPO"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8332 $as_echo "$ac_ct_LIPO" >&6; }
8333 else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8336 fi
8337
8338 if test "x$ac_ct_LIPO" = x; then
8339 LIPO=":"
8340 else
8341 case $cross_compiling:$ac_tool_warned in
8342 yes:)
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8345 ac_tool_warned=yes ;;
8346 esac
8347 LIPO=$ac_ct_LIPO
8348 fi
8349 else
8350 LIPO="$ac_cv_prog_LIPO"
8351 fi
8352
8353 if test -n "$ac_tool_prefix"; then
8354 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8355 set dummy ${ac_tool_prefix}otool; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_prog_OTOOL+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 if test -n "$OTOOL"; then
8362 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8366 do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8371 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8374 fi
8375 done
8376 done
8377 IFS=$as_save_IFS
8378
8379 fi
8380 fi
8381 OTOOL=$ac_cv_prog_OTOOL
8382 if test -n "$OTOOL"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8384 $as_echo "$OTOOL" >&6; }
8385 else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8388 fi
8389
8390
8391 fi
8392 if test -z "$ac_cv_prog_OTOOL"; then
8393 ac_ct_OTOOL=$OTOOL
8394 # Extract the first word of "otool", so it can be a program name with args.
8395 set dummy otool; ac_word=$2
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397 $as_echo_n "checking for $ac_word... " >&6; }
8398 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 if test -n "$ac_ct_OTOOL"; then
8402 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8403 else
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8406 do
8407 IFS=$as_save_IFS
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8411 ac_cv_prog_ac_ct_OTOOL="otool"
8412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 break 2
8414 fi
8415 done
8416 done
8417 IFS=$as_save_IFS
8418
8419 fi
8420 fi
8421 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8422 if test -n "$ac_ct_OTOOL"; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8424 $as_echo "$ac_ct_OTOOL" >&6; }
8425 else
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8428 fi
8429
8430 if test "x$ac_ct_OTOOL" = x; then
8431 OTOOL=":"
8432 else
8433 case $cross_compiling:$ac_tool_warned in
8434 yes:)
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8437 ac_tool_warned=yes ;;
8438 esac
8439 OTOOL=$ac_ct_OTOOL
8440 fi
8441 else
8442 OTOOL="$ac_cv_prog_OTOOL"
8443 fi
8444
8445 if test -n "$ac_tool_prefix"; then
8446 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8447 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8449 $as_echo_n "checking for $ac_word... " >&6; }
8450 if ${ac_cv_prog_OTOOL64+:} false; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 if test -n "$OTOOL64"; then
8454 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8455 else
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 for as_dir in $PATH
8458 do
8459 IFS=$as_save_IFS
8460 test -z "$as_dir" && as_dir=.
8461 for ac_exec_ext in '' $ac_executable_extensions; do
8462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8463 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8465 break 2
8466 fi
8467 done
8468 done
8469 IFS=$as_save_IFS
8470
8471 fi
8472 fi
8473 OTOOL64=$ac_cv_prog_OTOOL64
8474 if test -n "$OTOOL64"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8476 $as_echo "$OTOOL64" >&6; }
8477 else
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8480 fi
8481
8482
8483 fi
8484 if test -z "$ac_cv_prog_OTOOL64"; then
8485 ac_ct_OTOOL64=$OTOOL64
8486 # Extract the first word of "otool64", so it can be a program name with args.
8487 set dummy otool64; ac_word=$2
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8489 $as_echo_n "checking for $ac_word... " >&6; }
8490 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 if test -n "$ac_ct_OTOOL64"; then
8494 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8495 else
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 for as_dir in $PATH
8498 do
8499 IFS=$as_save_IFS
8500 test -z "$as_dir" && as_dir=.
8501 for ac_exec_ext in '' $ac_executable_extensions; do
8502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8503 ac_cv_prog_ac_ct_OTOOL64="otool64"
8504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 break 2
8506 fi
8507 done
8508 done
8509 IFS=$as_save_IFS
8510
8511 fi
8512 fi
8513 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8514 if test -n "$ac_ct_OTOOL64"; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8516 $as_echo "$ac_ct_OTOOL64" >&6; }
8517 else
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8520 fi
8521
8522 if test "x$ac_ct_OTOOL64" = x; then
8523 OTOOL64=":"
8524 else
8525 case $cross_compiling:$ac_tool_warned in
8526 yes:)
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8529 ac_tool_warned=yes ;;
8530 esac
8531 OTOOL64=$ac_ct_OTOOL64
8532 fi
8533 else
8534 OTOOL64="$ac_cv_prog_OTOOL64"
8535 fi
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8564 $as_echo_n "checking for -single_module linker flag... " >&6; }
8565 if ${lt_cv_apple_cc_single_mod+:} false; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 lt_cv_apple_cc_single_mod=no
8569 if test -z "$LT_MULTI_MODULE"; then
8570 # By default we will add the -single_module flag. You can override
8571 # by either setting the environment variable LT_MULTI_MODULE
8572 # non-empty at configure time, or by adding -multi_module to the
8573 # link flags.
8574 rm -rf libconftest.dylib*
8575 echo "int foo(void){return 1;}" > conftest.c
8576 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8577 -dynamiclib -Wl,-single_module conftest.c" >&5
8578 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8579 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8580 _lt_result=$?
8581 # If there is a non-empty error log, and "single_module"
8582 # appears in it, assume the flag caused a linker warning
8583 if test -s conftest.err && $GREP single_module conftest.err; then
8584 cat conftest.err >&5
8585 # Otherwise, if the output was created with a 0 exit code from
8586 # the compiler, it worked.
8587 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8588 lt_cv_apple_cc_single_mod=yes
8589 else
8590 cat conftest.err >&5
8591 fi
8592 rm -rf libconftest.dylib*
8593 rm -f conftest.*
8594 fi
8595 fi
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8597 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8598
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8600 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8601 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 lt_cv_ld_exported_symbols_list=no
8605 save_LDFLAGS=$LDFLAGS
8606 echo "_main" > conftest.sym
8607 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8610
8611 int
8612 main ()
8613 {
8614
8615 ;
8616 return 0;
8617 }
8618 _ACEOF
8619 if ac_fn_c_try_link "$LINENO"; then :
8620 lt_cv_ld_exported_symbols_list=yes
8621 else
8622 lt_cv_ld_exported_symbols_list=no
8623 fi
8624 rm -f core conftest.err conftest.$ac_objext \
8625 conftest$ac_exeext conftest.$ac_ext
8626 LDFLAGS=$save_LDFLAGS
8627
8628 fi
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8630 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8631
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8633 $as_echo_n "checking for -force_load linker flag... " >&6; }
8634 if ${lt_cv_ld_force_load+:} false; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 lt_cv_ld_force_load=no
8638 cat > conftest.c << _LT_EOF
8639 int forced_loaded() { return 2;}
8640 _LT_EOF
8641 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8642 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8643 echo "$AR cru libconftest.a conftest.o" >&5
8644 $AR cru libconftest.a conftest.o 2>&5
8645 echo "$RANLIB libconftest.a" >&5
8646 $RANLIB libconftest.a 2>&5
8647 cat > conftest.c << _LT_EOF
8648 int main() { return 0;}
8649 _LT_EOF
8650 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8651 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8652 _lt_result=$?
8653 if test -s conftest.err && $GREP force_load conftest.err; then
8654 cat conftest.err >&5
8655 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8656 lt_cv_ld_force_load=yes
8657 else
8658 cat conftest.err >&5
8659 fi
8660 rm -f conftest.err libconftest.a conftest conftest.c
8661 rm -rf conftest.dSYM
8662
8663 fi
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8665 $as_echo "$lt_cv_ld_force_load" >&6; }
8666 case $host_os in
8667 rhapsody* | darwin1.[012])
8668 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8669 darwin1.*)
8670 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8671 darwin*) # darwin 5.x on
8672 # if running on 10.5 or later, the deployment target defaults
8673 # to the OS version, if on x86, and 10.4, the deployment
8674 # target defaults to 10.4. Don't you love it?
8675 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8676 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8677 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8678 10.[012][,.]*)
8679 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8680 10.*)
8681 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8682 esac
8683 ;;
8684 esac
8685 if test yes = "$lt_cv_apple_cc_single_mod"; then
8686 _lt_dar_single_mod='$single_module'
8687 fi
8688 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8689 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8690 else
8691 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8692 fi
8693 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8694 _lt_dsymutil='~$DSYMUTIL $lib || :'
8695 else
8696 _lt_dsymutil=
8697 fi
8698 ;;
8699 esac
8700
8701 # func_munge_path_list VARIABLE PATH
8702 # -----------------------------------
8703 # VARIABLE is name of variable containing _space_ separated list of
8704 # directories to be munged by the contents of PATH, which is string
8705 # having a format:
8706 # "DIR[:DIR]:"
8707 # string "DIR[ DIR]" will be prepended to VARIABLE
8708 # ":DIR[:DIR]"
8709 # string "DIR[ DIR]" will be appended to VARIABLE
8710 # "DIRP[:DIRP]::[DIRA:]DIRA"
8711 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8712 # "DIRA[ DIRA]" will be appended to VARIABLE
8713 # "DIR[:DIR]"
8714 # VARIABLE will be replaced by "DIR[ DIR]"
8715 func_munge_path_list ()
8716 {
8717 case x$2 in
8718 x)
8719 ;;
8720 *:)
8721 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8722 ;;
8723 x:*)
8724 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8725 ;;
8726 *::*)
8727 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8728 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8729 ;;
8730 *)
8731 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8732 ;;
8733 esac
8734 }
8735
8736 for ac_header in dlfcn.h
8737 do :
8738 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8739 "
8740 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8741 cat >>confdefs.h <<_ACEOF
8742 #define HAVE_DLFCN_H 1
8743 _ACEOF
8744
8745 fi
8746
8747 done
8748
8749
8750
8751
8752
8753 # Set options
8754 # Check whether --enable-static was given.
8755 if test "${enable_static+set}" = set; then :
8756 enableval=$enable_static; p=${PACKAGE-default}
8757 case $enableval in
8758 yes) enable_static=yes ;;
8759 no) enable_static=no ;;
8760 *)
8761 enable_static=no
8762 # Look at the argument we got. We use all the common list separators.
8763 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8764 for pkg in $enableval; do
8765 IFS=$lt_save_ifs
8766 if test "X$pkg" = "X$p"; then
8767 enable_static=yes
8768 fi
8769 done
8770 IFS=$lt_save_ifs
8771 ;;
8772 esac
8773 else
8774 enable_static=no
8775 fi
8776
8777
8778
8779
8780
8781
8782
8783
8784 # Check whether --with-pic was given.
8785 if test "${with_pic+set}" = set; then :
8786 withval=$with_pic; lt_p=${PACKAGE-default}
8787 case $withval in
8788 yes|no) pic_mode=$withval ;;
8789 *)
8790 pic_mode=default
8791 # Look at the argument we got. We use all the common list separators.
8792 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8793 for lt_pkg in $withval; do
8794 IFS=$lt_save_ifs
8795 if test "X$lt_pkg" = "X$lt_p"; then
8796 pic_mode=yes
8797 fi
8798 done
8799 IFS=$lt_save_ifs
8800 ;;
8801 esac
8802 else
8803 pic_mode=yes
8804 fi
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814 enable_dlopen=no
8815
8816
8817 enable_win32_dll=no
8818
8819
8820 # Check whether --enable-shared was given.
8821 if test "${enable_shared+set}" = set; then :
8822 enableval=$enable_shared; p=${PACKAGE-default}
8823 case $enableval in
8824 yes) enable_shared=yes ;;
8825 no) enable_shared=no ;;
8826 *)
8827 enable_shared=no
8828 # Look at the argument we got. We use all the common list separators.
8829 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8830 for pkg in $enableval; do
8831 IFS=$lt_save_ifs
8832 if test "X$pkg" = "X$p"; then
8833 enable_shared=yes
8834 fi
8835 done
8836 IFS=$lt_save_ifs
8837 ;;
8838 esac
8839 else
8840 enable_shared=yes
8841 fi
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853 # Check whether --enable-fast-install was given.
8854 if test "${enable_fast_install+set}" = set; then :
8855 enableval=$enable_fast_install; p=${PACKAGE-default}
8856 case $enableval in
8857 yes) enable_fast_install=yes ;;
8858 no) enable_fast_install=no ;;
8859 *)
8860 enable_fast_install=no
8861 # Look at the argument we got. We use all the common list separators.
8862 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8863 for pkg in $enableval; do
8864 IFS=$lt_save_ifs
8865 if test "X$pkg" = "X$p"; then
8866 enable_fast_install=yes
8867 fi
8868 done
8869 IFS=$lt_save_ifs
8870 ;;
8871 esac
8872 else
8873 enable_fast_install=yes
8874 fi
8875
8876
8877
8878
8879
8880
8881
8882
8883 shared_archive_member_spec=
8884 case $host,$enable_shared in
8885 power*-*-aix[5-9]*,yes)
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8887 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8888
8889 # Check whether --with-aix-soname was given.
8890 if test "${with_aix_soname+set}" = set; then :
8891 withval=$with_aix_soname; case $withval in
8892 aix|svr4|both)
8893 ;;
8894 *)
8895 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8896 ;;
8897 esac
8898 lt_cv_with_aix_soname=$with_aix_soname
8899 else
8900 if ${lt_cv_with_aix_soname+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 lt_cv_with_aix_soname=aix
8904 fi
8905
8906 with_aix_soname=$lt_cv_with_aix_soname
8907 fi
8908
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8910 $as_echo "$with_aix_soname" >&6; }
8911 if test aix != "$with_aix_soname"; then
8912 # For the AIX way of multilib, we name the shared archive member
8913 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8914 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8915 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8916 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8917 if test 64 = "${OBJECT_MODE-32}"; then
8918 shared_archive_member_spec=shr_64
8919 else
8920 shared_archive_member_spec=shr
8921 fi
8922 fi
8923 ;;
8924 *)
8925 with_aix_soname=aix
8926 ;;
8927 esac
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938 # This can be used to rebuild libtool when needed
8939 LIBTOOL_DEPS=$ltmain
8940
8941 # Always use our own libtool.
8942 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973 test -z "$LN_S" && LN_S="ln -s"
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988 if test -n "${ZSH_VERSION+set}"; then
8989 setopt NO_GLOB_SUBST
8990 fi
8991
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8993 $as_echo_n "checking for objdir... " >&6; }
8994 if ${lt_cv_objdir+:} false; then :
8995 $as_echo_n "(cached) " >&6
8996 else
8997 rm -f .libs 2>/dev/null
8998 mkdir .libs 2>/dev/null
8999 if test -d .libs; then
9000 lt_cv_objdir=.libs
9001 else
9002 # MS-DOS does not allow filenames that begin with a dot.
9003 lt_cv_objdir=_libs
9004 fi
9005 rmdir .libs 2>/dev/null
9006 fi
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9008 $as_echo "$lt_cv_objdir" >&6; }
9009 objdir=$lt_cv_objdir
9010
9011
9012
9013
9014
9015 cat >>confdefs.h <<_ACEOF
9016 #define LT_OBJDIR "$lt_cv_objdir/"
9017 _ACEOF
9018
9019
9020
9021
9022 case $host_os in
9023 aix3*)
9024 # AIX sometimes has problems with the GCC collect2 program. For some
9025 # reason, if we set the COLLECT_NAMES environment variable, the problems
9026 # vanish in a puff of smoke.
9027 if test set != "${COLLECT_NAMES+set}"; then
9028 COLLECT_NAMES=
9029 export COLLECT_NAMES
9030 fi
9031 ;;
9032 esac
9033
9034 # Global variables:
9035 ofile=libtool
9036 can_build_shared=yes
9037
9038 # All known linkers require a '.a' archive for static linking (except MSVC,
9039 # which needs '.lib').
9040 libext=a
9041
9042 with_gnu_ld=$lt_cv_prog_gnu_ld
9043
9044 old_CC=$CC
9045 old_CFLAGS=$CFLAGS
9046
9047 # Set sane defaults for various variables
9048 test -z "$CC" && CC=cc
9049 test -z "$LTCC" && LTCC=$CC
9050 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9051 test -z "$LD" && LD=ld
9052 test -z "$ac_objext" && ac_objext=o
9053
9054 func_cc_basename $compiler
9055 cc_basename=$func_cc_basename_result
9056
9057
9058 # Only perform the check for file, if the check method requires it
9059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9060 case $deplibs_check_method in
9061 file_magic*)
9062 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9064 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9065 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 case $MAGIC_CMD in
9069 [\\/*] | ?:[\\/]*)
9070 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9071 ;;
9072 *)
9073 lt_save_MAGIC_CMD=$MAGIC_CMD
9074 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9075 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9076 for ac_dir in $ac_dummy; do
9077 IFS=$lt_save_ifs
9078 test -z "$ac_dir" && ac_dir=.
9079 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9080 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9081 if test -n "$file_magic_test_file"; then
9082 case $deplibs_check_method in
9083 "file_magic "*)
9084 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9085 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9086 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9087 $EGREP "$file_magic_regex" > /dev/null; then
9088 :
9089 else
9090 cat <<_LT_EOF 1>&2
9091
9092 *** Warning: the command libtool uses to detect shared libraries,
9093 *** $file_magic_cmd, produces output that libtool cannot recognize.
9094 *** The result is that libtool may fail to recognize shared libraries
9095 *** as such. This will affect the creation of libtool libraries that
9096 *** depend on shared libraries, but programs linked with such libtool
9097 *** libraries will work regardless of this problem. Nevertheless, you
9098 *** may want to report the problem to your system manager and/or to
9099 *** bug-libtool (at] gnu.org
9100
9101 _LT_EOF
9102 fi ;;
9103 esac
9104 fi
9105 break
9106 fi
9107 done
9108 IFS=$lt_save_ifs
9109 MAGIC_CMD=$lt_save_MAGIC_CMD
9110 ;;
9111 esac
9112 fi
9113
9114 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9115 if test -n "$MAGIC_CMD"; then
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9117 $as_echo "$MAGIC_CMD" >&6; }
9118 else
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120 $as_echo "no" >&6; }
9121 fi
9122
9123
9124
9125
9126
9127 if test -z "$lt_cv_path_MAGIC_CMD"; then
9128 if test -n "$ac_tool_prefix"; then
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9130 $as_echo_n "checking for file... " >&6; }
9131 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9132 $as_echo_n "(cached) " >&6
9133 else
9134 case $MAGIC_CMD in
9135 [\\/*] | ?:[\\/]*)
9136 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9137 ;;
9138 *)
9139 lt_save_MAGIC_CMD=$MAGIC_CMD
9140 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9141 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9142 for ac_dir in $ac_dummy; do
9143 IFS=$lt_save_ifs
9144 test -z "$ac_dir" && ac_dir=.
9145 if test -f "$ac_dir/file"; then
9146 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9147 if test -n "$file_magic_test_file"; then
9148 case $deplibs_check_method in
9149 "file_magic "*)
9150 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9151 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9152 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9153 $EGREP "$file_magic_regex" > /dev/null; then
9154 :
9155 else
9156 cat <<_LT_EOF 1>&2
9157
9158 *** Warning: the command libtool uses to detect shared libraries,
9159 *** $file_magic_cmd, produces output that libtool cannot recognize.
9160 *** The result is that libtool may fail to recognize shared libraries
9161 *** as such. This will affect the creation of libtool libraries that
9162 *** depend on shared libraries, but programs linked with such libtool
9163 *** libraries will work regardless of this problem. Nevertheless, you
9164 *** may want to report the problem to your system manager and/or to
9165 *** bug-libtool (at] gnu.org
9166
9167 _LT_EOF
9168 fi ;;
9169 esac
9170 fi
9171 break
9172 fi
9173 done
9174 IFS=$lt_save_ifs
9175 MAGIC_CMD=$lt_save_MAGIC_CMD
9176 ;;
9177 esac
9178 fi
9179
9180 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9181 if test -n "$MAGIC_CMD"; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9183 $as_echo "$MAGIC_CMD" >&6; }
9184 else
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186 $as_echo "no" >&6; }
9187 fi
9188
9189
9190 else
9191 MAGIC_CMD=:
9192 fi
9193 fi
9194
9195 fi
9196 ;;
9197 esac
9198
9199 # Use C for the default configuration in the libtool script
9200
9201 lt_save_CC=$CC
9202 ac_ext=c
9203 ac_cpp='$CPP $CPPFLAGS'
9204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9207
9208
9209 # Source file extension for C test sources.
9210 ac_ext=c
9211
9212 # Object file extension for compiled C test sources.
9213 objext=o
9214 objext=$objext
9215
9216 # Code to be used in simple compile tests
9217 lt_simple_compile_test_code="int some_variable = 0;"
9218
9219 # Code to be used in simple link tests
9220 lt_simple_link_test_code='int main(){return(0);}'
9221
9222
9223
9224
9225
9226
9227
9228 # If no C compiler was specified, use CC.
9229 LTCC=${LTCC-"$CC"}
9230
9231 # If no C compiler flags were specified, use CFLAGS.
9232 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9233
9234 # Allow CC to be a program name with arguments.
9235 compiler=$CC
9236
9237 # Save the default compiler, since it gets overwritten when the other
9238 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9239 compiler_DEFAULT=$CC
9240
9241 # save warnings/boilerplate of simple test code
9242 ac_outfile=conftest.$ac_objext
9243 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9244 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9245 _lt_compiler_boilerplate=`cat conftest.err`
9246 $RM conftest*
9247
9248 ac_outfile=conftest.$ac_objext
9249 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9250 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9251 _lt_linker_boilerplate=`cat conftest.err`
9252 $RM -r conftest*
9253
9254
9255 ## CAVEAT EMPTOR:
9256 ## There is no encapsulation within the following macros, do not change
9257 ## the running order or otherwise move them around unless you know exactly
9258 ## what you are doing...
9259 if test -n "$compiler"; then
9260
9261 lt_prog_compiler_no_builtin_flag=
9262
9263 if test yes = "$GCC"; then
9264 case $cc_basename in
9265 nvcc*)
9266 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9267 *)
9268 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9269 esac
9270
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9272 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9273 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9274 $as_echo_n "(cached) " >&6
9275 else
9276 lt_cv_prog_compiler_rtti_exceptions=no
9277 ac_outfile=conftest.$ac_objext
9278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9279 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9280 # Insert the option either (1) after the last *FLAGS variable, or
9281 # (2) before a word containing "conftest.", or (3) at the end.
9282 # Note that $ac_compile itself does not contain backslashes and begins
9283 # with a dollar sign (not a hyphen), so the echo should work correctly.
9284 # The option is referenced via a variable to avoid confusing sed.
9285 lt_compile=`echo "$ac_compile" | $SED \
9286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9288 -e 's:$: $lt_compiler_flag:'`
9289 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9290 (eval "$lt_compile" 2>conftest.err)
9291 ac_status=$?
9292 cat conftest.err >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 if (exit $ac_status) && test -s "$ac_outfile"; then
9295 # The compiler can only warn and ignore the option if not recognized
9296 # So say no if there are warnings other than the usual output.
9297 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9299 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9300 lt_cv_prog_compiler_rtti_exceptions=yes
9301 fi
9302 fi
9303 $RM conftest*
9304
9305 fi
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9307 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9308
9309 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9310 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9311 else
9312 :
9313 fi
9314
9315 fi
9316
9317
9318
9319
9320
9321
9322 lt_prog_compiler_wl=
9323 lt_prog_compiler_pic=
9324 lt_prog_compiler_static=
9325
9326
9327 if test yes = "$GCC"; then
9328 lt_prog_compiler_wl='-Wl,'
9329 lt_prog_compiler_static='-static'
9330
9331 case $host_os in
9332 aix*)
9333 # All AIX code is PIC.
9334 if test ia64 = "$host_cpu"; then
9335 # AIX 5 now supports IA64 processor
9336 lt_prog_compiler_static='-Bstatic'
9337 fi
9338 lt_prog_compiler_pic='-fPIC'
9339 ;;
9340
9341 amigaos*)
9342 case $host_cpu in
9343 powerpc)
9344 # see comment about AmigaOS4 .so support
9345 lt_prog_compiler_pic='-fPIC'
9346 ;;
9347 m68k)
9348 # FIXME: we need at least 68020 code to build shared libraries, but
9349 # adding the '-m68020' flag to GCC prevents building anything better,
9350 # like '-m68040'.
9351 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9352 ;;
9353 esac
9354 ;;
9355
9356 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9357 # PIC is the default for these OSes.
9358 ;;
9359
9360 mingw* | cygwin* | pw32* | os2* | cegcc*)
9361 # This hack is so that the source file can tell whether it is being
9362 # built for inclusion in a dll (and should export symbols for example).
9363 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9364 # (--disable-auto-import) libraries
9365 lt_prog_compiler_pic='-DDLL_EXPORT'
9366 case $host_os in
9367 os2*)
9368 lt_prog_compiler_static='$wl-static'
9369 ;;
9370 esac
9371 ;;
9372
9373 darwin* | rhapsody*)
9374 # PIC is the default on this platform
9375 # Common symbols not allowed in MH_DYLIB files
9376 lt_prog_compiler_pic='-fno-common'
9377 ;;
9378
9379 haiku*)
9380 # PIC is the default for Haiku.
9381 # The "-static" flag exists, but is broken.
9382 lt_prog_compiler_static=
9383 ;;
9384
9385 hpux*)
9386 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9387 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9388 # sets the default TLS model and affects inlining.
9389 case $host_cpu in
9390 hppa*64*)
9391 # +Z the default
9392 ;;
9393 *)
9394 lt_prog_compiler_pic='-fPIC'
9395 ;;
9396 esac
9397 ;;
9398
9399 interix[3-9]*)
9400 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9401 # Instead, we relocate shared libraries at runtime.
9402 ;;
9403
9404 msdosdjgpp*)
9405 # Just because we use GCC doesn't mean we suddenly get shared libraries
9406 # on systems that don't support them.
9407 lt_prog_compiler_can_build_shared=no
9408 enable_shared=no
9409 ;;
9410
9411 *nto* | *qnx*)
9412 # QNX uses GNU C++, but need to define -shared option too, otherwise
9413 # it will coredump.
9414 lt_prog_compiler_pic='-fPIC -shared'
9415 ;;
9416
9417 sysv4*MP*)
9418 if test -d /usr/nec; then
9419 lt_prog_compiler_pic=-Kconform_pic
9420 fi
9421 ;;
9422
9423 *)
9424 lt_prog_compiler_pic='-fPIC'
9425 ;;
9426 esac
9427
9428 case $cc_basename in
9429 nvcc*) # Cuda Compiler Driver 2.2
9430 lt_prog_compiler_wl='-Xlinker '
9431 if test -n "$lt_prog_compiler_pic"; then
9432 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9433 fi
9434 ;;
9435 esac
9436 else
9437 # PORTME Check for flag to pass linker flags through the system compiler.
9438 case $host_os in
9439 aix*)
9440 lt_prog_compiler_wl='-Wl,'
9441 if test ia64 = "$host_cpu"; then
9442 # AIX 5 now supports IA64 processor
9443 lt_prog_compiler_static='-Bstatic'
9444 else
9445 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9446 fi
9447 ;;
9448
9449 darwin* | rhapsody*)
9450 # PIC is the default on this platform
9451 # Common symbols not allowed in MH_DYLIB files
9452 lt_prog_compiler_pic='-fno-common'
9453 case $cc_basename in
9454 nagfor*)
9455 # NAG Fortran compiler
9456 lt_prog_compiler_wl='-Wl,-Wl,,'
9457 lt_prog_compiler_pic='-PIC'
9458 lt_prog_compiler_static='-Bstatic'
9459 ;;
9460 esac
9461 ;;
9462
9463 mingw* | cygwin* | pw32* | os2* | cegcc*)
9464 # This hack is so that the source file can tell whether it is being
9465 # built for inclusion in a dll (and should export symbols for example).
9466 lt_prog_compiler_pic='-DDLL_EXPORT'
9467 case $host_os in
9468 os2*)
9469 lt_prog_compiler_static='$wl-static'
9470 ;;
9471 esac
9472 ;;
9473
9474 hpux9* | hpux10* | hpux11*)
9475 lt_prog_compiler_wl='-Wl,'
9476 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9477 # not for PA HP-UX.
9478 case $host_cpu in
9479 hppa*64*|ia64*)
9480 # +Z the default
9481 ;;
9482 *)
9483 lt_prog_compiler_pic='+Z'
9484 ;;
9485 esac
9486 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9487 lt_prog_compiler_static='$wl-a ${wl}archive'
9488 ;;
9489
9490 irix5* | irix6* | nonstopux*)
9491 lt_prog_compiler_wl='-Wl,'
9492 # PIC (with -KPIC) is the default.
9493 lt_prog_compiler_static='-non_shared'
9494 ;;
9495
9496 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9497 case $cc_basename in
9498 # old Intel for x86_64, which still supported -KPIC.
9499 ecc*)
9500 lt_prog_compiler_wl='-Wl,'
9501 lt_prog_compiler_pic='-KPIC'
9502 lt_prog_compiler_static='-static'
9503 ;;
9504 # icc used to be incompatible with GCC.
9505 # ICC 10 doesn't accept -KPIC any more.
9506 icc* | ifort*)
9507 lt_prog_compiler_wl='-Wl,'
9508 lt_prog_compiler_pic='-fPIC'
9509 lt_prog_compiler_static='-static'
9510 ;;
9511 # Lahey Fortran 8.1.
9512 lf95*)
9513 lt_prog_compiler_wl='-Wl,'
9514 lt_prog_compiler_pic='--shared'
9515 lt_prog_compiler_static='--static'
9516 ;;
9517 nagfor*)
9518 # NAG Fortran compiler
9519 lt_prog_compiler_wl='-Wl,-Wl,,'
9520 lt_prog_compiler_pic='-PIC'
9521 lt_prog_compiler_static='-Bstatic'
9522 ;;
9523 tcc*)
9524 # Fabrice Bellard et al's Tiny C Compiler
9525 lt_prog_compiler_wl='-Wl,'
9526 lt_prog_compiler_pic='-fPIC'
9527 lt_prog_compiler_static='-static'
9528 ;;
9529 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9530 # Portland Group compilers (*not* the Pentium gcc compiler,
9531 # which looks to be a dead project)
9532 lt_prog_compiler_wl='-Wl,'
9533 lt_prog_compiler_pic='-fpic'
9534 lt_prog_compiler_static='-Bstatic'
9535 ;;
9536 ccc*)
9537 lt_prog_compiler_wl='-Wl,'
9538 # All Alpha code is PIC.
9539 lt_prog_compiler_static='-non_shared'
9540 ;;
9541 xl* | bgxl* | bgf* | mpixl*)
9542 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9543 lt_prog_compiler_wl='-Wl,'
9544 lt_prog_compiler_pic='-qpic'
9545 lt_prog_compiler_static='-qstaticlink'
9546 ;;
9547 *)
9548 case `$CC -V 2>&1 | sed 5q` in
9549 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9550 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9551 lt_prog_compiler_pic='-KPIC'
9552 lt_prog_compiler_static='-Bstatic'
9553 lt_prog_compiler_wl=''
9554 ;;
9555 *Sun\ F* | *Sun*Fortran*)
9556 lt_prog_compiler_pic='-KPIC'
9557 lt_prog_compiler_static='-Bstatic'
9558 lt_prog_compiler_wl='-Qoption ld '
9559 ;;
9560 *Sun\ C*)
9561 # Sun C 5.9
9562 lt_prog_compiler_pic='-KPIC'
9563 lt_prog_compiler_static='-Bstatic'
9564 lt_prog_compiler_wl='-Wl,'
9565 ;;
9566 *Intel*\ [CF]*Compiler*)
9567 lt_prog_compiler_wl='-Wl,'
9568 lt_prog_compiler_pic='-fPIC'
9569 lt_prog_compiler_static='-static'
9570 ;;
9571 *Portland\ Group*)
9572 lt_prog_compiler_wl='-Wl,'
9573 lt_prog_compiler_pic='-fpic'
9574 lt_prog_compiler_static='-Bstatic'
9575 ;;
9576 esac
9577 ;;
9578 esac
9579 ;;
9580
9581 newsos6)
9582 lt_prog_compiler_pic='-KPIC'
9583 lt_prog_compiler_static='-Bstatic'
9584 ;;
9585
9586 *nto* | *qnx*)
9587 # QNX uses GNU C++, but need to define -shared option too, otherwise
9588 # it will coredump.
9589 lt_prog_compiler_pic='-fPIC -shared'
9590 ;;
9591
9592 osf3* | osf4* | osf5*)
9593 lt_prog_compiler_wl='-Wl,'
9594 # All OSF/1 code is PIC.
9595 lt_prog_compiler_static='-non_shared'
9596 ;;
9597
9598 rdos*)
9599 lt_prog_compiler_static='-non_shared'
9600 ;;
9601
9602 solaris*)
9603 lt_prog_compiler_pic='-KPIC'
9604 lt_prog_compiler_static='-Bstatic'
9605 case $cc_basename in
9606 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9607 lt_prog_compiler_wl='-Qoption ld ';;
9608 *)
9609 lt_prog_compiler_wl='-Wl,';;
9610 esac
9611 ;;
9612
9613 sunos4*)
9614 lt_prog_compiler_wl='-Qoption ld '
9615 lt_prog_compiler_pic='-PIC'
9616 lt_prog_compiler_static='-Bstatic'
9617 ;;
9618
9619 sysv4 | sysv4.2uw2* | sysv4.3*)
9620 lt_prog_compiler_wl='-Wl,'
9621 lt_prog_compiler_pic='-KPIC'
9622 lt_prog_compiler_static='-Bstatic'
9623 ;;
9624
9625 sysv4*MP*)
9626 if test -d /usr/nec; then
9627 lt_prog_compiler_pic='-Kconform_pic'
9628 lt_prog_compiler_static='-Bstatic'
9629 fi
9630 ;;
9631
9632 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9633 lt_prog_compiler_wl='-Wl,'
9634 lt_prog_compiler_pic='-KPIC'
9635 lt_prog_compiler_static='-Bstatic'
9636 ;;
9637
9638 unicos*)
9639 lt_prog_compiler_wl='-Wl,'
9640 lt_prog_compiler_can_build_shared=no
9641 ;;
9642
9643 uts4*)
9644 lt_prog_compiler_pic='-pic'
9645 lt_prog_compiler_static='-Bstatic'
9646 ;;
9647
9648 *)
9649 lt_prog_compiler_can_build_shared=no
9650 ;;
9651 esac
9652 fi
9653
9654 case $host_os in
9655 # For platforms that do not support PIC, -DPIC is meaningless:
9656 *djgpp*)
9657 lt_prog_compiler_pic=
9658 ;;
9659 *)
9660 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9661 ;;
9662 esac
9663
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9665 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9666 if ${lt_cv_prog_compiler_pic+:} false; then :
9667 $as_echo_n "(cached) " >&6
9668 else
9669 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9670 fi
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9672 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9673 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9674
9675 #
9676 # Check to make sure the PIC flag actually works.
9677 #
9678 if test -n "$lt_prog_compiler_pic"; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9680 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9681 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9684 lt_cv_prog_compiler_pic_works=no
9685 ac_outfile=conftest.$ac_objext
9686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9687 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9688 # Insert the option either (1) after the last *FLAGS variable, or
9689 # (2) before a word containing "conftest.", or (3) at the end.
9690 # Note that $ac_compile itself does not contain backslashes and begins
9691 # with a dollar sign (not a hyphen), so the echo should work correctly.
9692 # The option is referenced via a variable to avoid confusing sed.
9693 lt_compile=`echo "$ac_compile" | $SED \
9694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9696 -e 's:$: $lt_compiler_flag:'`
9697 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9698 (eval "$lt_compile" 2>conftest.err)
9699 ac_status=$?
9700 cat conftest.err >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 if (exit $ac_status) && test -s "$ac_outfile"; then
9703 # The compiler can only warn and ignore the option if not recognized
9704 # So say no if there are warnings other than the usual output.
9705 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9708 lt_cv_prog_compiler_pic_works=yes
9709 fi
9710 fi
9711 $RM conftest*
9712
9713 fi
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9715 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9716
9717 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9718 case $lt_prog_compiler_pic in
9719 "" | " "*) ;;
9720 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9721 esac
9722 else
9723 lt_prog_compiler_pic=
9724 lt_prog_compiler_can_build_shared=no
9725 fi
9726
9727 fi
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739 #
9740 # Check to make sure the static flag actually works.
9741 #
9742 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9744 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9745 if ${lt_cv_prog_compiler_static_works+:} false; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9748 lt_cv_prog_compiler_static_works=no
9749 save_LDFLAGS=$LDFLAGS
9750 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9751 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9753 # The linker can only warn and ignore the option if not recognized
9754 # So say no if there are warnings
9755 if test -s conftest.err; then
9756 # Append any errors to the config.log.
9757 cat conftest.err 1>&5
9758 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9760 if diff conftest.exp conftest.er2 >/dev/null; then
9761 lt_cv_prog_compiler_static_works=yes
9762 fi
9763 else
9764 lt_cv_prog_compiler_static_works=yes
9765 fi
9766 fi
9767 $RM -r conftest*
9768 LDFLAGS=$save_LDFLAGS
9769
9770 fi
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9772 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9773
9774 if test yes = "$lt_cv_prog_compiler_static_works"; then
9775 :
9776 else
9777 lt_prog_compiler_static=
9778 fi
9779
9780
9781
9782
9783
9784
9785
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9787 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9788 if ${lt_cv_prog_compiler_c_o+:} false; then :
9789 $as_echo_n "(cached) " >&6
9790 else
9791 lt_cv_prog_compiler_c_o=no
9792 $RM -r conftest 2>/dev/null
9793 mkdir conftest
9794 cd conftest
9795 mkdir out
9796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9797
9798 lt_compiler_flag="-o out/conftest2.$ac_objext"
9799 # Insert the option either (1) after the last *FLAGS variable, or
9800 # (2) before a word containing "conftest.", or (3) at the end.
9801 # Note that $ac_compile itself does not contain backslashes and begins
9802 # with a dollar sign (not a hyphen), so the echo should work correctly.
9803 lt_compile=`echo "$ac_compile" | $SED \
9804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9806 -e 's:$: $lt_compiler_flag:'`
9807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9808 (eval "$lt_compile" 2>out/conftest.err)
9809 ac_status=$?
9810 cat out/conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9813 then
9814 # The compiler can only warn and ignore the option if not recognized
9815 # So say no if there are warnings
9816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9819 lt_cv_prog_compiler_c_o=yes
9820 fi
9821 fi
9822 chmod u+w . 2>&5
9823 $RM conftest*
9824 # SGI C++ compiler will create directory out/ii_files/ for
9825 # template instantiation
9826 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9827 $RM out/* && rmdir out
9828 cd ..
9829 $RM -r conftest
9830 $RM conftest*
9831
9832 fi
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9834 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9835
9836
9837
9838
9839
9840
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9842 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9843 if ${lt_cv_prog_compiler_c_o+:} false; then :
9844 $as_echo_n "(cached) " >&6
9845 else
9846 lt_cv_prog_compiler_c_o=no
9847 $RM -r conftest 2>/dev/null
9848 mkdir conftest
9849 cd conftest
9850 mkdir out
9851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9852
9853 lt_compiler_flag="-o out/conftest2.$ac_objext"
9854 # Insert the option either (1) after the last *FLAGS variable, or
9855 # (2) before a word containing "conftest.", or (3) at the end.
9856 # Note that $ac_compile itself does not contain backslashes and begins
9857 # with a dollar sign (not a hyphen), so the echo should work correctly.
9858 lt_compile=`echo "$ac_compile" | $SED \
9859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9861 -e 's:$: $lt_compiler_flag:'`
9862 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9863 (eval "$lt_compile" 2>out/conftest.err)
9864 ac_status=$?
9865 cat out/conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9868 then
9869 # The compiler can only warn and ignore the option if not recognized
9870 # So say no if there are warnings
9871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9872 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9873 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9874 lt_cv_prog_compiler_c_o=yes
9875 fi
9876 fi
9877 chmod u+w . 2>&5
9878 $RM conftest*
9879 # SGI C++ compiler will create directory out/ii_files/ for
9880 # template instantiation
9881 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9882 $RM out/* && rmdir out
9883 cd ..
9884 $RM -r conftest
9885 $RM conftest*
9886
9887 fi
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9889 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9890
9891
9892
9893
9894 hard_links=nottested
9895 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9896 # do not overwrite the value of need_locks provided by the user
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9898 $as_echo_n "checking if we can lock with hard links... " >&6; }
9899 hard_links=yes
9900 $RM conftest*
9901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9902 touch conftest.a
9903 ln conftest.a conftest.b 2>&5 || hard_links=no
9904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9906 $as_echo "$hard_links" >&6; }
9907 if test no = "$hard_links"; then
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9909 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9910 need_locks=warn
9911 fi
9912 else
9913 need_locks=no
9914 fi
9915
9916
9917
9918
9919
9920
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9922 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9923
9924 runpath_var=
9925 allow_undefined_flag=
9926 always_export_symbols=no
9927 archive_cmds=
9928 archive_expsym_cmds=
9929 compiler_needs_object=no
9930 enable_shared_with_static_runtimes=no
9931 export_dynamic_flag_spec=
9932 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9933 hardcode_automatic=no
9934 hardcode_direct=no
9935 hardcode_direct_absolute=no
9936 hardcode_libdir_flag_spec=
9937 hardcode_libdir_separator=
9938 hardcode_minus_L=no
9939 hardcode_shlibpath_var=unsupported
9940 inherit_rpath=no
9941 link_all_deplibs=unknown
9942 module_cmds=
9943 module_expsym_cmds=
9944 old_archive_from_new_cmds=
9945 old_archive_from_expsyms_cmds=
9946 thread_safe_flag_spec=
9947 whole_archive_flag_spec=
9948 # include_expsyms should be a list of space-separated symbols to be *always*
9949 # included in the symbol list
9950 include_expsyms=
9951 # exclude_expsyms can be an extended regexp of symbols to exclude
9952 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9953 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9954 # as well as any symbol that contains 'd'.
9955 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9956 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9957 # platforms (ab)use it in PIC code, but their linkers get confused if
9958 # the symbol is explicitly referenced. Since portable code cannot
9959 # rely on this symbol name, it's probably fine to never include it in
9960 # preloaded symbol tables.
9961 # Exclude shared library initialization/finalization symbols.
9962 extract_expsyms_cmds=
9963
9964 case $host_os in
9965 cygwin* | mingw* | pw32* | cegcc*)
9966 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9967 # When not using gcc, we currently assume that we are using
9968 # Microsoft Visual C++.
9969 if test yes != "$GCC"; then
9970 with_gnu_ld=no
9971 fi
9972 ;;
9973 interix*)
9974 # we just hope/assume this is gcc and not c89 (= MSVC++)
9975 with_gnu_ld=yes
9976 ;;
9977 openbsd* | bitrig*)
9978 with_gnu_ld=no
9979 ;;
9980 esac
9981
9982 ld_shlibs=yes
9983
9984 # On some targets, GNU ld is compatible enough with the native linker
9985 # that we're better off using the native interface for both.
9986 lt_use_gnu_ld_interface=no
9987 if test yes = "$with_gnu_ld"; then
9988 case $host_os in
9989 aix*)
9990 # The AIX port of GNU ld has always aspired to compatibility
9991 # with the native linker. However, as the warning in the GNU ld
9992 # block says, versions before 2.19.5* couldn't really create working
9993 # shared libraries, regardless of the interface used.
9994 case `$LD -v 2>&1` in
9995 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9996 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9997 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9998 *)
9999 lt_use_gnu_ld_interface=yes
10000 ;;
10001 esac
10002 ;;
10003 *)
10004 lt_use_gnu_ld_interface=yes
10005 ;;
10006 esac
10007 fi
10008
10009 if test yes = "$lt_use_gnu_ld_interface"; then
10010 # If archive_cmds runs LD, not CC, wlarc should be empty
10011 wlarc='$wl'
10012
10013 # Set some defaults for GNU ld with shared library support. These
10014 # are reset later if shared libraries are not supported. Putting them
10015 # here allows them to be overridden if necessary.
10016 runpath_var=LD_RUN_PATH
10017 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10018 export_dynamic_flag_spec='$wl--export-dynamic'
10019 # ancient GNU ld didn't support --whole-archive et. al.
10020 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10021 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10022 else
10023 whole_archive_flag_spec=
10024 fi
10025 supports_anon_versioning=no
10026 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10027 *GNU\ gold*) supports_anon_versioning=yes ;;
10028 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10029 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10030 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10031 *\ 2.11.*) ;; # other 2.11 versions
10032 *) supports_anon_versioning=yes ;;
10033 esac
10034
10035 # See if GNU ld supports shared libraries.
10036 case $host_os in
10037 aix[3-9]*)
10038 # On AIX/PPC, the GNU linker is very broken
10039 if test ia64 != "$host_cpu"; then
10040 ld_shlibs=no
10041 cat <<_LT_EOF 1>&2
10042
10043 *** Warning: the GNU linker, at least up to release 2.19, is reported
10044 *** to be unable to reliably create shared libraries on AIX.
10045 *** Therefore, libtool is disabling shared libraries support. If you
10046 *** really care for shared libraries, you may want to install binutils
10047 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10048 *** You will then need to restart the configuration process.
10049
10050 _LT_EOF
10051 fi
10052 ;;
10053
10054 amigaos*)
10055 case $host_cpu in
10056 powerpc)
10057 # see comment about AmigaOS4 .so support
10058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10059 archive_expsym_cmds=''
10060 ;;
10061 m68k)
10062 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)'
10063 hardcode_libdir_flag_spec='-L$libdir'
10064 hardcode_minus_L=yes
10065 ;;
10066 esac
10067 ;;
10068
10069 beos*)
10070 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10071 allow_undefined_flag=unsupported
10072 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10073 # support --undefined. This deserves some investigation. FIXME
10074 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10075 else
10076 ld_shlibs=no
10077 fi
10078 ;;
10079
10080 cygwin* | mingw* | pw32* | cegcc*)
10081 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10082 # as there is no search path for DLLs.
10083 hardcode_libdir_flag_spec='-L$libdir'
10084 export_dynamic_flag_spec='$wl--export-all-symbols'
10085 allow_undefined_flag=unsupported
10086 always_export_symbols=no
10087 enable_shared_with_static_runtimes=yes
10088 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'
10089 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10090
10091 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10093 # If the export-symbols file already is a .def file, use it as
10094 # is; otherwise, prepend EXPORTS...
10095 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10096 cp $export_symbols $output_objdir/$soname.def;
10097 else
10098 echo EXPORTS > $output_objdir/$soname.def;
10099 cat $export_symbols >> $output_objdir/$soname.def;
10100 fi~
10101 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10102 else
10103 ld_shlibs=no
10104 fi
10105 ;;
10106
10107 haiku*)
10108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10109 link_all_deplibs=yes
10110 ;;
10111
10112 os2*)
10113 hardcode_libdir_flag_spec='-L$libdir'
10114 hardcode_minus_L=yes
10115 allow_undefined_flag=unsupported
10116 shrext_cmds=.dll
10117 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10118 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10119 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10120 $ECHO EXPORTS >> $output_objdir/$libname.def~
10121 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10122 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10123 emximp -o $lib $output_objdir/$libname.def'
10124 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10125 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10126 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10127 $ECHO EXPORTS >> $output_objdir/$libname.def~
10128 prefix_cmds="$SED"~
10129 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10130 prefix_cmds="$prefix_cmds -e 1d";
10131 fi~
10132 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10133 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10134 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10135 emximp -o $lib $output_objdir/$libname.def'
10136 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10137 enable_shared_with_static_runtimes=yes
10138 ;;
10139
10140 interix[3-9]*)
10141 hardcode_direct=no
10142 hardcode_shlibpath_var=no
10143 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10144 export_dynamic_flag_spec='$wl-E'
10145 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10146 # Instead, shared libraries are loaded at an image base (0x10000000 by
10147 # default) and relocated if they conflict, which is a slow very memory
10148 # consuming and fragmenting process. To avoid this, we pick a random,
10149 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10150 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10151 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10152 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'
10153 ;;
10154
10155 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10156 tmp_diet=no
10157 if test linux-dietlibc = "$host_os"; then
10158 case $cc_basename in
10159 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10160 esac
10161 fi
10162 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10163 && test no = "$tmp_diet"
10164 then
10165 tmp_addflag=' $pic_flag'
10166 tmp_sharedflag='-shared'
10167 case $cc_basename,$host_cpu in
10168 pgcc*) # Portland Group C compiler
10169 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'
10170 tmp_addflag=' $pic_flag'
10171 ;;
10172 pgf77* | pgf90* | pgf95* | pgfortran*)
10173 # Portland Group f77 and f90 compilers
10174 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'
10175 tmp_addflag=' $pic_flag -Mnomain' ;;
10176 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10177 tmp_addflag=' -i_dynamic' ;;
10178 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10179 tmp_addflag=' -i_dynamic -nofor_main' ;;
10180 ifc* | ifort*) # Intel Fortran compiler
10181 tmp_addflag=' -nofor_main' ;;
10182 lf95*) # Lahey Fortran 8.1
10183 whole_archive_flag_spec=
10184 tmp_sharedflag='--shared' ;;
10185 nagfor*) # NAGFOR 5.3
10186 tmp_sharedflag='-Wl,-shared' ;;
10187 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10188 tmp_sharedflag='-qmkshrobj'
10189 tmp_addflag= ;;
10190 nvcc*) # Cuda Compiler Driver 2.2
10191 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'
10192 compiler_needs_object=yes
10193 ;;
10194 esac
10195 case `$CC -V 2>&1 | sed 5q` in
10196 *Sun\ C*) # Sun C 5.9
10197 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'
10198 compiler_needs_object=yes
10199 tmp_sharedflag='-G' ;;
10200 *Sun\ F*) # Sun Fortran 8.3
10201 tmp_sharedflag='-G' ;;
10202 esac
10203 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10204
10205 if test yes = "$supports_anon_versioning"; then
10206 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10207 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10208 echo "local: *; };" >> $output_objdir/$libname.ver~
10209 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10210 fi
10211
10212 case $cc_basename in
10213 tcc*)
10214 export_dynamic_flag_spec='-rdynamic'
10215 ;;
10216 xlf* | bgf* | bgxlf* | mpixlf*)
10217 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10218 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10219 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10220 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10221 if test yes = "$supports_anon_versioning"; then
10222 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10224 echo "local: *; };" >> $output_objdir/$libname.ver~
10225 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10226 fi
10227 ;;
10228 esac
10229 else
10230 ld_shlibs=no
10231 fi
10232 ;;
10233
10234 netbsd*)
10235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10236 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10237 wlarc=
10238 else
10239 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10240 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10241 fi
10242 ;;
10243
10244 solaris*)
10245 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10246 ld_shlibs=no
10247 cat <<_LT_EOF 1>&2
10248
10249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10250 *** create shared libraries on Solaris systems. Therefore, libtool
10251 *** is disabling shared libraries support. We urge you to upgrade GNU
10252 *** binutils to release 2.9.1 or newer. Another option is to modify
10253 *** your PATH or compiler configuration so that the native linker is
10254 *** used, and then restart.
10255
10256 _LT_EOF
10257 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10258 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10259 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10260 else
10261 ld_shlibs=no
10262 fi
10263 ;;
10264
10265 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10266 case `$LD -v 2>&1` in
10267 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10268 ld_shlibs=no
10269 cat <<_LT_EOF 1>&2
10270
10271 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10272 *** reliably create shared libraries on SCO systems. Therefore, libtool
10273 *** is disabling shared libraries support. We urge you to upgrade GNU
10274 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10275 *** your PATH or compiler configuration so that the native linker is
10276 *** used, and then restart.
10277
10278 _LT_EOF
10279 ;;
10280 *)
10281 # For security reasons, it is highly recommended that you always
10282 # use absolute paths for naming shared libraries, and exclude the
10283 # DT_RUNPATH tag from executables and libraries. But doing so
10284 # requires that you compile everything twice, which is a pain.
10285 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10286 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10289 else
10290 ld_shlibs=no
10291 fi
10292 ;;
10293 esac
10294 ;;
10295
10296 sunos4*)
10297 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10298 wlarc=
10299 hardcode_direct=yes
10300 hardcode_shlibpath_var=no
10301 ;;
10302
10303 *)
10304 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10305 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10306 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10307 else
10308 ld_shlibs=no
10309 fi
10310 ;;
10311 esac
10312
10313 if test no = "$ld_shlibs"; then
10314 runpath_var=
10315 hardcode_libdir_flag_spec=
10316 export_dynamic_flag_spec=
10317 whole_archive_flag_spec=
10318 fi
10319 else
10320 # PORTME fill in a description of your system's linker (not GNU ld)
10321 case $host_os in
10322 aix3*)
10323 allow_undefined_flag=unsupported
10324 always_export_symbols=yes
10325 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'
10326 # Note: this linker hardcodes the directories in LIBPATH if there
10327 # are no directories specified by -L.
10328 hardcode_minus_L=yes
10329 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10330 # Neither direct hardcoding nor static linking is supported with a
10331 # broken collect2.
10332 hardcode_direct=unsupported
10333 fi
10334 ;;
10335
10336 aix[4-9]*)
10337 if test ia64 = "$host_cpu"; then
10338 # On IA64, the linker does run time linking by default, so we don't
10339 # have to do anything special.
10340 aix_use_runtimelinking=no
10341 exp_sym_flag='-Bexport'
10342 no_entry_flag=
10343 else
10344 # If we're using GNU nm, then we don't want the "-C" option.
10345 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10346 # Without the "-l" option, or with the "-B" option, AIX nm treats
10347 # weak defined symbols like other global defined symbols, whereas
10348 # GNU nm marks them as "W".
10349 # While the 'weak' keyword is ignored in the Export File, we need
10350 # it in the Import File for the 'aix-soname' feature, so we have
10351 # to replace the "-B" option with "-P" for AIX nm.
10352 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10353 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'
10354 else
10355 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'
10356 fi
10357 aix_use_runtimelinking=no
10358
10359 # Test if we are trying to use run time linking or normal
10360 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10361 # have runtime linking enabled, and use it for executables.
10362 # For shared libraries, we enable/disable runtime linking
10363 # depending on the kind of the shared library created -
10364 # when "with_aix_soname,aix_use_runtimelinking" is:
10365 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10366 # "aix,yes" lib.so shared, rtl:yes, for executables
10367 # lib.a static archive
10368 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10369 # lib.a(lib.so.V) shared, rtl:no, for executables
10370 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10371 # lib.a(lib.so.V) shared, rtl:no
10372 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10373 # lib.a static archive
10374 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10375 for ld_flag in $LDFLAGS; do
10376 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10377 aix_use_runtimelinking=yes
10378 break
10379 fi
10380 done
10381 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10382 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10383 # so we don't have lib.a shared libs to link our executables.
10384 # We have to force runtime linking in this case.
10385 aix_use_runtimelinking=yes
10386 LDFLAGS="$LDFLAGS -Wl,-brtl"
10387 fi
10388 ;;
10389 esac
10390
10391 exp_sym_flag='-bexport'
10392 no_entry_flag='-bnoentry'
10393 fi
10394
10395 # When large executables or shared objects are built, AIX ld can
10396 # have problems creating the table of contents. If linking a library
10397 # or program results in "error TOC overflow" add -mminimal-toc to
10398 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10399 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10400
10401 archive_cmds=''
10402 hardcode_direct=yes
10403 hardcode_direct_absolute=yes
10404 hardcode_libdir_separator=':'
10405 link_all_deplibs=yes
10406 file_list_spec='$wl-f,'
10407 case $with_aix_soname,$aix_use_runtimelinking in
10408 aix,*) ;; # traditional, no import file
10409 svr4,* | *,yes) # use import file
10410 # The Import File defines what to hardcode.
10411 hardcode_direct=no
10412 hardcode_direct_absolute=no
10413 ;;
10414 esac
10415
10416 if test yes = "$GCC"; then
10417 case $host_os in aix4.[012]|aix4.[012].*)
10418 # We only want to do this on AIX 4.2 and lower, the check
10419 # below for broken collect2 doesn't work under 4.3+
10420 collect2name=`$CC -print-prog-name=collect2`
10421 if test -f "$collect2name" &&
10422 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10423 then
10424 # We have reworked collect2
10425 :
10426 else
10427 # We have old collect2
10428 hardcode_direct=unsupported
10429 # It fails to find uninstalled libraries when the uninstalled
10430 # path is not listed in the libpath. Setting hardcode_minus_L
10431 # to unsupported forces relinking
10432 hardcode_minus_L=yes
10433 hardcode_libdir_flag_spec='-L$libdir'
10434 hardcode_libdir_separator=
10435 fi
10436 ;;
10437 esac
10438 shared_flag='-shared'
10439 if test yes = "$aix_use_runtimelinking"; then
10440 shared_flag="$shared_flag "'$wl-G'
10441 fi
10442 # Need to ensure runtime linking is disabled for the traditional
10443 # shared library, or the linker may eventually find shared libraries
10444 # /with/ Import File - we do not want to mix them.
10445 shared_flag_aix='-shared'
10446 shared_flag_svr4='-shared $wl-G'
10447 else
10448 # not using gcc
10449 if test ia64 = "$host_cpu"; then
10450 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10451 # chokes on -Wl,-G. The following line is correct:
10452 shared_flag='-G'
10453 else
10454 if test yes = "$aix_use_runtimelinking"; then
10455 shared_flag='$wl-G'
10456 else
10457 shared_flag='$wl-bM:SRE'
10458 fi
10459 shared_flag_aix='$wl-bM:SRE'
10460 shared_flag_svr4='$wl-G'
10461 fi
10462 fi
10463
10464 export_dynamic_flag_spec='$wl-bexpall'
10465 # It seems that -bexpall does not export symbols beginning with
10466 # underscore (_), so it is better to generate a list of symbols to export.
10467 always_export_symbols=yes
10468 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10469 # Warning - without using the other runtime loading flags (-brtl),
10470 # -berok will link without error, but may produce a broken library.
10471 allow_undefined_flag='-berok'
10472 # Determine the default libpath from the value encoded in an
10473 # empty executable.
10474 if test set = "${lt_cv_aix_libpath+set}"; then
10475 aix_libpath=$lt_cv_aix_libpath
10476 else
10477 if ${lt_cv_aix_libpath_+:} false; then :
10478 $as_echo_n "(cached) " >&6
10479 else
10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h. */
10482
10483 int
10484 main ()
10485 {
10486
10487 ;
10488 return 0;
10489 }
10490 _ACEOF
10491 if ac_fn_c_try_link "$LINENO"; then :
10492
10493 lt_aix_libpath_sed='
10494 /Import File Strings/,/^$/ {
10495 /^0/ {
10496 s/^0 *\([^ ]*\) *$/\1/
10497 p
10498 }
10499 }'
10500 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10501 # Check for a 64-bit object if we didn't find anything.
10502 if test -z "$lt_cv_aix_libpath_"; then
10503 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10504 fi
10505 fi
10506 rm -f core conftest.err conftest.$ac_objext \
10507 conftest$ac_exeext conftest.$ac_ext
10508 if test -z "$lt_cv_aix_libpath_"; then
10509 lt_cv_aix_libpath_=/usr/lib:/lib
10510 fi
10511
10512 fi
10513
10514 aix_libpath=$lt_cv_aix_libpath_
10515 fi
10516
10517 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10518 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
10519 else
10520 if test ia64 = "$host_cpu"; then
10521 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10522 allow_undefined_flag="-z nodefs"
10523 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"
10524 else
10525 # Determine the default libpath from the value encoded in an
10526 # empty executable.
10527 if test set = "${lt_cv_aix_libpath+set}"; then
10528 aix_libpath=$lt_cv_aix_libpath
10529 else
10530 if ${lt_cv_aix_libpath_+:} false; then :
10531 $as_echo_n "(cached) " >&6
10532 else
10533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534 /* end confdefs.h. */
10535
10536 int
10537 main ()
10538 {
10539
10540 ;
10541 return 0;
10542 }
10543 _ACEOF
10544 if ac_fn_c_try_link "$LINENO"; then :
10545
10546 lt_aix_libpath_sed='
10547 /Import File Strings/,/^$/ {
10548 /^0/ {
10549 s/^0 *\([^ ]*\) *$/\1/
10550 p
10551 }
10552 }'
10553 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10554 # Check for a 64-bit object if we didn't find anything.
10555 if test -z "$lt_cv_aix_libpath_"; then
10556 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10557 fi
10558 fi
10559 rm -f core conftest.err conftest.$ac_objext \
10560 conftest$ac_exeext conftest.$ac_ext
10561 if test -z "$lt_cv_aix_libpath_"; then
10562 lt_cv_aix_libpath_=/usr/lib:/lib
10563 fi
10564
10565 fi
10566
10567 aix_libpath=$lt_cv_aix_libpath_
10568 fi
10569
10570 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10571 # Warning - without using the other run time loading flags,
10572 # -berok will link without error, but may produce a broken library.
10573 no_undefined_flag=' $wl-bernotok'
10574 allow_undefined_flag=' $wl-berok'
10575 if test yes = "$with_gnu_ld"; then
10576 # We only use this code for GNU lds that support --whole-archive.
10577 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10578 else
10579 # Exported symbols can be pulled into shared objects from archives
10580 whole_archive_flag_spec='$convenience'
10581 fi
10582 archive_cmds_need_lc=yes
10583 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10584 # -brtl affects multiple linker settings, -berok does not and is overridden later
10585 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10586 if test svr4 != "$with_aix_soname"; then
10587 # This is similar to how AIX traditionally builds its shared libraries.
10588 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'
10589 fi
10590 if test aix != "$with_aix_soname"; then
10591 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'
10592 else
10593 # used by -dlpreopen to get the symbols
10594 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10595 fi
10596 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10597 fi
10598 fi
10599 ;;
10600
10601 amigaos*)
10602 case $host_cpu in
10603 powerpc)
10604 # see comment about AmigaOS4 .so support
10605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10606 archive_expsym_cmds=''
10607 ;;
10608 m68k)
10609 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)'
10610 hardcode_libdir_flag_spec='-L$libdir'
10611 hardcode_minus_L=yes
10612 ;;
10613 esac
10614 ;;
10615
10616 bsdi[45]*)
10617 export_dynamic_flag_spec=-rdynamic
10618 ;;
10619
10620 cygwin* | mingw* | pw32* | cegcc*)
10621 # When not using gcc, we currently assume that we are using
10622 # Microsoft Visual C++.
10623 # hardcode_libdir_flag_spec is actually meaningless, as there is
10624 # no search path for DLLs.
10625 case $cc_basename in
10626 cl*)
10627 # Native MSVC
10628 hardcode_libdir_flag_spec=' '
10629 allow_undefined_flag=unsupported
10630 always_export_symbols=yes
10631 file_list_spec='@'
10632 # Tell ltmain to make .lib files, not .a files.
10633 libext=lib
10634 # Tell ltmain to make .dll files, not .so files.
10635 shrext_cmds=.dll
10636 # FIXME: Setting linknames here is a bad hack.
10637 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10638 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10639 cp "$export_symbols" "$output_objdir/$soname.def";
10640 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10641 else
10642 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10643 fi~
10644 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10645 linknames='
10646 # The linker will not automatically build a static lib if we build a DLL.
10647 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10648 enable_shared_with_static_runtimes=yes
10649 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10650 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10651 # Don't use ranlib
10652 old_postinstall_cmds='chmod 644 $oldlib'
10653 postlink_cmds='lt_outputfile="@OUTPUT@"~
10654 lt_tool_outputfile="@TOOL_OUTPUT@"~
10655 case $lt_outputfile in
10656 *.exe|*.EXE) ;;
10657 *)
10658 lt_outputfile=$lt_outputfile.exe
10659 lt_tool_outputfile=$lt_tool_outputfile.exe
10660 ;;
10661 esac~
10662 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10663 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10664 $RM "$lt_outputfile.manifest";
10665 fi'
10666 ;;
10667 *)
10668 # Assume MSVC wrapper
10669 hardcode_libdir_flag_spec=' '
10670 allow_undefined_flag=unsupported
10671 # Tell ltmain to make .lib files, not .a files.
10672 libext=lib
10673 # Tell ltmain to make .dll files, not .so files.
10674 shrext_cmds=.dll
10675 # FIXME: Setting linknames here is a bad hack.
10676 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10677 # The linker will automatically build a .lib file if we build a DLL.
10678 old_archive_from_new_cmds='true'
10679 # FIXME: Should let the user specify the lib program.
10680 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10681 enable_shared_with_static_runtimes=yes
10682 ;;
10683 esac
10684 ;;
10685
10686 darwin* | rhapsody*)
10687
10688
10689 archive_cmds_need_lc=no
10690 hardcode_direct=no
10691 hardcode_automatic=yes
10692 hardcode_shlibpath_var=unsupported
10693 if test yes = "$lt_cv_ld_force_load"; then
10694 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\"`'
10695
10696 else
10697 whole_archive_flag_spec=''
10698 fi
10699 link_all_deplibs=yes
10700 allow_undefined_flag=$_lt_dar_allow_undefined
10701 case $cc_basename in
10702 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10703 *) _lt_dar_can_shared=$GCC ;;
10704 esac
10705 if test yes = "$_lt_dar_can_shared"; then
10706 output_verbose_link_cmd=func_echo_all
10707 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10708 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10709 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"
10710 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"
10711
10712 else
10713 ld_shlibs=no
10714 fi
10715
10716 ;;
10717
10718 dgux*)
10719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10720 hardcode_libdir_flag_spec='-L$libdir'
10721 hardcode_shlibpath_var=no
10722 ;;
10723
10724 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10725 # support. Future versions do this automatically, but an explicit c++rt0.o
10726 # does not break anything, and helps significantly (at the cost of a little
10727 # extra space).
10728 freebsd2.2*)
10729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10730 hardcode_libdir_flag_spec='-R$libdir'
10731 hardcode_direct=yes
10732 hardcode_shlibpath_var=no
10733 ;;
10734
10735 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10736 freebsd2.*)
10737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10738 hardcode_direct=yes
10739 hardcode_minus_L=yes
10740 hardcode_shlibpath_var=no
10741 ;;
10742
10743 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10744 freebsd* | dragonfly*)
10745 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10746 hardcode_libdir_flag_spec='-R$libdir'
10747 hardcode_direct=yes
10748 hardcode_shlibpath_var=no
10749 ;;
10750
10751 hpux9*)
10752 if test yes = "$GCC"; then
10753 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'
10754 else
10755 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'
10756 fi
10757 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10758 hardcode_libdir_separator=:
10759 hardcode_direct=yes
10760
10761 # hardcode_minus_L: Not really in the search PATH,
10762 # but as the default location of the library.
10763 hardcode_minus_L=yes
10764 export_dynamic_flag_spec='$wl-E'
10765 ;;
10766
10767 hpux10*)
10768 if test yes,no = "$GCC,$with_gnu_ld"; then
10769 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10770 else
10771 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10772 fi
10773 if test no = "$with_gnu_ld"; then
10774 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10775 hardcode_libdir_separator=:
10776 hardcode_direct=yes
10777 hardcode_direct_absolute=yes
10778 export_dynamic_flag_spec='$wl-E'
10779 # hardcode_minus_L: Not really in the search PATH,
10780 # but as the default location of the library.
10781 hardcode_minus_L=yes
10782 fi
10783 ;;
10784
10785 hpux11*)
10786 if test yes,no = "$GCC,$with_gnu_ld"; then
10787 case $host_cpu in
10788 hppa*64*)
10789 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10790 ;;
10791 ia64*)
10792 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10793 ;;
10794 *)
10795 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10796 ;;
10797 esac
10798 else
10799 case $host_cpu in
10800 hppa*64*)
10801 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10802 ;;
10803 ia64*)
10804 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10805 ;;
10806 *)
10807
10808 # Older versions of the 11.00 compiler do not understand -b yet
10809 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10811 $as_echo_n "checking if $CC understands -b... " >&6; }
10812 if ${lt_cv_prog_compiler__b+:} false; then :
10813 $as_echo_n "(cached) " >&6
10814 else
10815 lt_cv_prog_compiler__b=no
10816 save_LDFLAGS=$LDFLAGS
10817 LDFLAGS="$LDFLAGS -b"
10818 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10819 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10820 # The linker can only warn and ignore the option if not recognized
10821 # So say no if there are warnings
10822 if test -s conftest.err; then
10823 # Append any errors to the config.log.
10824 cat conftest.err 1>&5
10825 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10827 if diff conftest.exp conftest.er2 >/dev/null; then
10828 lt_cv_prog_compiler__b=yes
10829 fi
10830 else
10831 lt_cv_prog_compiler__b=yes
10832 fi
10833 fi
10834 $RM -r conftest*
10835 LDFLAGS=$save_LDFLAGS
10836
10837 fi
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10839 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10840
10841 if test yes = "$lt_cv_prog_compiler__b"; then
10842 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10843 else
10844 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10845 fi
10846
10847 ;;
10848 esac
10849 fi
10850 if test no = "$with_gnu_ld"; then
10851 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10852 hardcode_libdir_separator=:
10853
10854 case $host_cpu in
10855 hppa*64*|ia64*)
10856 hardcode_direct=no
10857 hardcode_shlibpath_var=no
10858 ;;
10859 *)
10860 hardcode_direct=yes
10861 hardcode_direct_absolute=yes
10862 export_dynamic_flag_spec='$wl-E'
10863
10864 # hardcode_minus_L: Not really in the search PATH,
10865 # but as the default location of the library.
10866 hardcode_minus_L=yes
10867 ;;
10868 esac
10869 fi
10870 ;;
10871
10872 irix5* | irix6* | nonstopux*)
10873 if test yes = "$GCC"; then
10874 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'
10875 # Try to use the -exported_symbol ld option, if it does not
10876 # work, assume that -exports_file does not work either and
10877 # implicitly export all symbols.
10878 # This should be the same for all languages, so no per-tag cache variable.
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10880 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10881 if ${lt_cv_irix_exported_symbol+:} false; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 save_LDFLAGS=$LDFLAGS
10885 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10888 int foo (void) { return 0; }
10889 _ACEOF
10890 if ac_fn_c_try_link "$LINENO"; then :
10891 lt_cv_irix_exported_symbol=yes
10892 else
10893 lt_cv_irix_exported_symbol=no
10894 fi
10895 rm -f core conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
10897 LDFLAGS=$save_LDFLAGS
10898 fi
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10900 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10901 if test yes = "$lt_cv_irix_exported_symbol"; then
10902 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'
10903 fi
10904 else
10905 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'
10906 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'
10907 fi
10908 archive_cmds_need_lc='no'
10909 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10910 hardcode_libdir_separator=:
10911 inherit_rpath=yes
10912 link_all_deplibs=yes
10913 ;;
10914
10915 linux*)
10916 case $cc_basename in
10917 tcc*)
10918 # Fabrice Bellard et al's Tiny C Compiler
10919 ld_shlibs=yes
10920 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10921 ;;
10922 esac
10923 ;;
10924
10925 netbsd*)
10926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10927 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10928 else
10929 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10930 fi
10931 hardcode_libdir_flag_spec='-R$libdir'
10932 hardcode_direct=yes
10933 hardcode_shlibpath_var=no
10934 ;;
10935
10936 newsos6)
10937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10938 hardcode_direct=yes
10939 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10940 hardcode_libdir_separator=:
10941 hardcode_shlibpath_var=no
10942 ;;
10943
10944 *nto* | *qnx*)
10945 ;;
10946
10947 openbsd* | bitrig*)
10948 if test -f /usr/libexec/ld.so; then
10949 hardcode_direct=yes
10950 hardcode_shlibpath_var=no
10951 hardcode_direct_absolute=yes
10952 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10953 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10954 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10955 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10956 export_dynamic_flag_spec='$wl-E'
10957 else
10958 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10959 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10960 fi
10961 else
10962 ld_shlibs=no
10963 fi
10964 ;;
10965
10966 os2*)
10967 hardcode_libdir_flag_spec='-L$libdir'
10968 hardcode_minus_L=yes
10969 allow_undefined_flag=unsupported
10970 shrext_cmds=.dll
10971 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10972 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10973 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10974 $ECHO EXPORTS >> $output_objdir/$libname.def~
10975 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10976 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10977 emximp -o $lib $output_objdir/$libname.def'
10978 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10979 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10980 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10981 $ECHO EXPORTS >> $output_objdir/$libname.def~
10982 prefix_cmds="$SED"~
10983 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10984 prefix_cmds="$prefix_cmds -e 1d";
10985 fi~
10986 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10987 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10988 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10989 emximp -o $lib $output_objdir/$libname.def'
10990 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10991 enable_shared_with_static_runtimes=yes
10992 ;;
10993
10994 osf3*)
10995 if test yes = "$GCC"; then
10996 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10997 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'
10998 else
10999 allow_undefined_flag=' -expect_unresolved \*'
11000 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'
11001 fi
11002 archive_cmds_need_lc='no'
11003 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11004 hardcode_libdir_separator=:
11005 ;;
11006
11007 osf4* | osf5*) # as osf3* with the addition of -msym flag
11008 if test yes = "$GCC"; then
11009 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11010 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'
11011 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11012 else
11013 allow_undefined_flag=' -expect_unresolved \*'
11014 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'
11015 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~
11016 $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'
11017
11018 # Both c and cxx compiler support -rpath directly
11019 hardcode_libdir_flag_spec='-rpath $libdir'
11020 fi
11021 archive_cmds_need_lc='no'
11022 hardcode_libdir_separator=:
11023 ;;
11024
11025 solaris*)
11026 no_undefined_flag=' -z defs'
11027 if test yes = "$GCC"; then
11028 wlarc='$wl'
11029 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11030 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11031 $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'
11032 else
11033 case `$CC -V 2>&1` in
11034 *"Compilers 5.0"*)
11035 wlarc=''
11036 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11037 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11038 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11039 ;;
11040 *)
11041 wlarc='$wl'
11042 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11043 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11044 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11045 ;;
11046 esac
11047 fi
11048 hardcode_libdir_flag_spec='-R$libdir'
11049 hardcode_shlibpath_var=no
11050 case $host_os in
11051 solaris2.[0-5] | solaris2.[0-5].*) ;;
11052 *)
11053 # The compiler driver will combine and reorder linker options,
11054 # but understands '-z linker_flag'. GCC discards it without '$wl',
11055 # but is careful enough not to reorder.
11056 # Supported since Solaris 2.6 (maybe 2.5.1?)
11057 if test yes = "$GCC"; then
11058 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11059 else
11060 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11061 fi
11062 ;;
11063 esac
11064 link_all_deplibs=yes
11065 ;;
11066
11067 sunos4*)
11068 if test sequent = "$host_vendor"; then
11069 # Use $CC to link under sequent, because it throws in some extra .o
11070 # files that make .init and .fini sections work.
11071 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11072 else
11073 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11074 fi
11075 hardcode_libdir_flag_spec='-L$libdir'
11076 hardcode_direct=yes
11077 hardcode_minus_L=yes
11078 hardcode_shlibpath_var=no
11079 ;;
11080
11081 sysv4)
11082 case $host_vendor in
11083 sni)
11084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11085 hardcode_direct=yes # is this really true???
11086 ;;
11087 siemens)
11088 ## LD is ld it makes a PLAMLIB
11089 ## CC just makes a GrossModule.
11090 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11091 reload_cmds='$CC -r -o $output$reload_objs'
11092 hardcode_direct=no
11093 ;;
11094 motorola)
11095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11096 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11097 ;;
11098 esac
11099 runpath_var='LD_RUN_PATH'
11100 hardcode_shlibpath_var=no
11101 ;;
11102
11103 sysv4.3*)
11104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11105 hardcode_shlibpath_var=no
11106 export_dynamic_flag_spec='-Bexport'
11107 ;;
11108
11109 sysv4*MP*)
11110 if test -d /usr/nec; then
11111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11112 hardcode_shlibpath_var=no
11113 runpath_var=LD_RUN_PATH
11114 hardcode_runpath_var=yes
11115 ld_shlibs=yes
11116 fi
11117 ;;
11118
11119 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11120 no_undefined_flag='$wl-z,text'
11121 archive_cmds_need_lc=no
11122 hardcode_shlibpath_var=no
11123 runpath_var='LD_RUN_PATH'
11124
11125 if test yes = "$GCC"; then
11126 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11127 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11128 else
11129 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11130 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11131 fi
11132 ;;
11133
11134 sysv5* | sco3.2v5* | sco5v6*)
11135 # Note: We CANNOT use -z defs as we might desire, because we do not
11136 # link with -lc, and that would cause any symbols used from libc to
11137 # always be unresolved, which means just about no library would
11138 # ever link correctly. If we're not using GNU ld we use -z text
11139 # though, which does catch some bad symbols but isn't as heavy-handed
11140 # as -z defs.
11141 no_undefined_flag='$wl-z,text'
11142 allow_undefined_flag='$wl-z,nodefs'
11143 archive_cmds_need_lc=no
11144 hardcode_shlibpath_var=no
11145 hardcode_libdir_flag_spec='$wl-R,$libdir'
11146 hardcode_libdir_separator=':'
11147 link_all_deplibs=yes
11148 export_dynamic_flag_spec='$wl-Bexport'
11149 runpath_var='LD_RUN_PATH'
11150
11151 if test yes = "$GCC"; then
11152 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11153 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11154 else
11155 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11156 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11157 fi
11158 ;;
11159
11160 uts4*)
11161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11162 hardcode_libdir_flag_spec='-L$libdir'
11163 hardcode_shlibpath_var=no
11164 ;;
11165
11166 *)
11167 ld_shlibs=no
11168 ;;
11169 esac
11170
11171 if test sni = "$host_vendor"; then
11172 case $host in
11173 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11174 export_dynamic_flag_spec='$wl-Blargedynsym'
11175 ;;
11176 esac
11177 fi
11178 fi
11179
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11181 $as_echo "$ld_shlibs" >&6; }
11182 test no = "$ld_shlibs" && can_build_shared=no
11183
11184 with_gnu_ld=$with_gnu_ld
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200 #
11201 # Do we need to explicitly link libc?
11202 #
11203 case "x$archive_cmds_need_lc" in
11204 x|xyes)
11205 # Assume -lc should be added
11206 archive_cmds_need_lc=yes
11207
11208 if test yes,yes = "$GCC,$enable_shared"; then
11209 case $archive_cmds in
11210 *'~'*)
11211 # FIXME: we may have to deal with multi-command sequences.
11212 ;;
11213 '$CC '*)
11214 # Test whether the compiler implicitly links with -lc since on some
11215 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11216 # to ld, don't add -lc before -lgcc.
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11218 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11219 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11220 $as_echo_n "(cached) " >&6
11221 else
11222 $RM conftest*
11223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11224
11225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11226 (eval $ac_compile) 2>&5
11227 ac_status=$?
11228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11229 test $ac_status = 0; } 2>conftest.err; then
11230 soname=conftest
11231 lib=conftest
11232 libobjs=conftest.$ac_objext
11233 deplibs=
11234 wl=$lt_prog_compiler_wl
11235 pic_flag=$lt_prog_compiler_pic
11236 compiler_flags=-v
11237 linker_flags=-v
11238 verstring=
11239 output_objdir=.
11240 libname=conftest
11241 lt_save_allow_undefined_flag=$allow_undefined_flag
11242 allow_undefined_flag=
11243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11244 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11245 ac_status=$?
11246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11247 test $ac_status = 0; }
11248 then
11249 lt_cv_archive_cmds_need_lc=no
11250 else
11251 lt_cv_archive_cmds_need_lc=yes
11252 fi
11253 allow_undefined_flag=$lt_save_allow_undefined_flag
11254 else
11255 cat conftest.err 1>&5
11256 fi
11257 $RM conftest*
11258
11259 fi
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11261 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11262 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11263 ;;
11264 esac
11265 fi
11266 ;;
11267 esac
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11421 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11422
11423 if test yes = "$GCC"; then
11424 case $host_os in
11425 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11426 *) lt_awk_arg='/^libraries:/' ;;
11427 esac
11428 case $host_os in
11429 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11430 *) lt_sed_strip_eq='s|=/|/|g' ;;
11431 esac
11432 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11433 case $lt_search_path_spec in
11434 *\;*)
11435 # if the path contains ";" then we assume it to be the separator
11436 # otherwise default to the standard path separator (i.e. ":") - it is
11437 # assumed that no part of a normal pathname contains ";" but that should
11438 # okay in the real world where ";" in dirpaths is itself problematic.
11439 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11440 ;;
11441 *)
11442 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11443 ;;
11444 esac
11445 # Ok, now we have the path, separated by spaces, we can step through it
11446 # and add multilib dir if necessary...
11447 lt_tmp_lt_search_path_spec=
11448 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11449 # ...but if some path component already ends with the multilib dir we assume
11450 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11451 case "$lt_multi_os_dir; $lt_search_path_spec " in
11452 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11453 lt_multi_os_dir=
11454 ;;
11455 esac
11456 for lt_sys_path in $lt_search_path_spec; do
11457 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11458 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11459 elif test -n "$lt_multi_os_dir"; then
11460 test -d "$lt_sys_path" && \
11461 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11462 fi
11463 done
11464 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11465 BEGIN {RS = " "; FS = "/|\n";} {
11466 lt_foo = "";
11467 lt_count = 0;
11468 for (lt_i = NF; lt_i > 0; lt_i--) {
11469 if ($lt_i != "" && $lt_i != ".") {
11470 if ($lt_i == "..") {
11471 lt_count++;
11472 } else {
11473 if (lt_count == 0) {
11474 lt_foo = "/" $lt_i lt_foo;
11475 } else {
11476 lt_count--;
11477 }
11478 }
11479 }
11480 }
11481 if (lt_foo != "") { lt_freq[lt_foo]++; }
11482 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11483 }'`
11484 # AWK program above erroneously prepends '/' to C:/dos/paths
11485 # for these hosts.
11486 case $host_os in
11487 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11488 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11489 esac
11490 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11491 else
11492 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11493 fi
11494 library_names_spec=
11495 libname_spec='lib$name'
11496 soname_spec=
11497 shrext_cmds=.so
11498 postinstall_cmds=
11499 postuninstall_cmds=
11500 finish_cmds=
11501 finish_eval=
11502 shlibpath_var=
11503 shlibpath_overrides_runpath=unknown
11504 version_type=none
11505 dynamic_linker="$host_os ld.so"
11506 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11507 need_lib_prefix=unknown
11508 hardcode_into_libs=no
11509
11510 # when you set need_version to no, make sure it does not cause -set_version
11511 # flags to be left without arguments
11512 need_version=unknown
11513
11514
11515
11516 case $host_os in
11517 aix3*)
11518 version_type=linux # correct to gnu/linux during the next big refactor
11519 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11520 shlibpath_var=LIBPATH
11521
11522 # AIX 3 has no versioning support, so we append a major version to the name.
11523 soname_spec='$libname$release$shared_ext$major'
11524 ;;
11525
11526 aix[4-9]*)
11527 version_type=linux # correct to gnu/linux during the next big refactor
11528 need_lib_prefix=no
11529 need_version=no
11530 hardcode_into_libs=yes
11531 if test ia64 = "$host_cpu"; then
11532 # AIX 5 supports IA64
11533 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11534 shlibpath_var=LD_LIBRARY_PATH
11535 else
11536 # With GCC up to 2.95.x, collect2 would create an import file
11537 # for dependence libraries. The import file would start with
11538 # the line '#! .'. This would cause the generated library to
11539 # depend on '.', always an invalid library. This was fixed in
11540 # development snapshots of GCC prior to 3.0.
11541 case $host_os in
11542 aix4 | aix4.[01] | aix4.[01].*)
11543 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11544 echo ' yes '
11545 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11546 :
11547 else
11548 can_build_shared=no
11549 fi
11550 ;;
11551 esac
11552 # Using Import Files as archive members, it is possible to support
11553 # filename-based versioning of shared library archives on AIX. While
11554 # this would work for both with and without runtime linking, it will
11555 # prevent static linking of such archives. So we do filename-based
11556 # shared library versioning with .so extension only, which is used
11557 # when both runtime linking and shared linking is enabled.
11558 # Unfortunately, runtime linking may impact performance, so we do
11559 # not want this to be the default eventually. Also, we use the
11560 # versioned .so libs for executables only if there is the -brtl
11561 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11562 # To allow for filename-based versioning support, we need to create
11563 # libNAME.so.V as an archive file, containing:
11564 # *) an Import File, referring to the versioned filename of the
11565 # archive as well as the shared archive member, telling the
11566 # bitwidth (32 or 64) of that shared object, and providing the
11567 # list of exported symbols of that shared object, eventually
11568 # decorated with the 'weak' keyword
11569 # *) the shared object with the F_LOADONLY flag set, to really avoid
11570 # it being seen by the linker.
11571 # At run time we better use the real file rather than another symlink,
11572 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11573
11574 case $with_aix_soname,$aix_use_runtimelinking in
11575 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11576 # soname into executable. Probably we can add versioning support to
11577 # collect2, so additional links can be useful in future.
11578 aix,yes) # traditional libtool
11579 dynamic_linker='AIX unversionable lib.so'
11580 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11581 # instead of lib<name>.a to let people know that these are not
11582 # typical AIX shared libraries.
11583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11584 ;;
11585 aix,no) # traditional AIX only
11586 dynamic_linker='AIX lib.a(lib.so.V)'
11587 # We preserve .a as extension for shared libraries through AIX4.2
11588 # and later when we are not doing run time linking.
11589 library_names_spec='$libname$release.a $libname.a'
11590 soname_spec='$libname$release$shared_ext$major'
11591 ;;
11592 svr4,*) # full svr4 only
11593 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11594 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11595 # We do not specify a path in Import Files, so LIBPATH fires.
11596 shlibpath_overrides_runpath=yes
11597 ;;
11598 *,yes) # both, prefer svr4
11599 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11600 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11601 # unpreferred sharedlib libNAME.a needs extra handling
11602 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"'
11603 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"'
11604 # We do not specify a path in Import Files, so LIBPATH fires.
11605 shlibpath_overrides_runpath=yes
11606 ;;
11607 *,no) # both, prefer aix
11608 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11609 library_names_spec='$libname$release.a $libname.a'
11610 soname_spec='$libname$release$shared_ext$major'
11611 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11612 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)'
11613 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"'
11614 ;;
11615 esac
11616 shlibpath_var=LIBPATH
11617 fi
11618 ;;
11619
11620 amigaos*)
11621 case $host_cpu in
11622 powerpc)
11623 # Since July 2007 AmigaOS4 officially supports .so libraries.
11624 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11626 ;;
11627 m68k)
11628 library_names_spec='$libname.ixlibrary $libname.a'
11629 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11630 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'
11631 ;;
11632 esac
11633 ;;
11634
11635 beos*)
11636 library_names_spec='$libname$shared_ext'
11637 dynamic_linker="$host_os ld.so"
11638 shlibpath_var=LIBRARY_PATH
11639 ;;
11640
11641 bsdi[45]*)
11642 version_type=linux # correct to gnu/linux during the next big refactor
11643 need_version=no
11644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11645 soname_spec='$libname$release$shared_ext$major'
11646 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11647 shlibpath_var=LD_LIBRARY_PATH
11648 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11649 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11650 # the default ld.so.conf also contains /usr/contrib/lib and
11651 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11652 # libtool to hard-code these into programs
11653 ;;
11654
11655 cygwin* | mingw* | pw32* | cegcc*)
11656 version_type=windows
11657 shrext_cmds=.dll
11658 need_version=no
11659 need_lib_prefix=no
11660
11661 case $GCC,$cc_basename in
11662 yes,*)
11663 # gcc
11664 library_names_spec='$libname.dll.a'
11665 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11666 postinstall_cmds='base_file=`basename \$file`~
11667 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11668 dldir=$destdir/`dirname \$dlpath`~
11669 test -d \$dldir || mkdir -p \$dldir~
11670 $install_prog $dir/$dlname \$dldir/$dlname~
11671 chmod a+x \$dldir/$dlname~
11672 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11673 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11674 fi'
11675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11676 dlpath=$dir/\$dldll~
11677 $RM \$dlpath'
11678 shlibpath_overrides_runpath=yes
11679
11680 case $host_os in
11681 cygwin*)
11682 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11683 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11684
11685 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11686 ;;
11687 mingw* | cegcc*)
11688 # MinGW DLLs use traditional 'lib' prefix
11689 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11690 ;;
11691 pw32*)
11692 # pw32 DLLs use 'pw' prefix rather than 'lib'
11693 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11694 ;;
11695 esac
11696 dynamic_linker='Win32 ld.exe'
11697 ;;
11698
11699 *,cl*)
11700 # Native MSVC
11701 libname_spec='$name'
11702 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11703 library_names_spec='$libname.dll.lib'
11704
11705 case $build_os in
11706 mingw*)
11707 sys_lib_search_path_spec=
11708 lt_save_ifs=$IFS
11709 IFS=';'
11710 for lt_path in $LIB
11711 do
11712 IFS=$lt_save_ifs
11713 # Let DOS variable expansion print the short 8.3 style file name.
11714 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11715 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11716 done
11717 IFS=$lt_save_ifs
11718 # Convert to MSYS style.
11719 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11720 ;;
11721 cygwin*)
11722 # Convert to unix form, then to dos form, then back to unix form
11723 # but this time dos style (no spaces!) so that the unix form looks
11724 # like /cygdrive/c/PROGRA~1:/cygdr...
11725 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11726 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11727 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11728 ;;
11729 *)
11730 sys_lib_search_path_spec=$LIB
11731 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11732 # It is most probably a Windows format PATH.
11733 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11734 else
11735 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11736 fi
11737 # FIXME: find the short name or the path components, as spaces are
11738 # common. (e.g. "Program Files" -> "PROGRA~1")
11739 ;;
11740 esac
11741
11742 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11743 postinstall_cmds='base_file=`basename \$file`~
11744 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11745 dldir=$destdir/`dirname \$dlpath`~
11746 test -d \$dldir || mkdir -p \$dldir~
11747 $install_prog $dir/$dlname \$dldir/$dlname'
11748 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11749 dlpath=$dir/\$dldll~
11750 $RM \$dlpath'
11751 shlibpath_overrides_runpath=yes
11752 dynamic_linker='Win32 link.exe'
11753 ;;
11754
11755 *)
11756 # Assume MSVC wrapper
11757 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11758 dynamic_linker='Win32 ld.exe'
11759 ;;
11760 esac
11761 # FIXME: first we should search . and the directory the executable is in
11762 shlibpath_var=PATH
11763 ;;
11764
11765 darwin* | rhapsody*)
11766 dynamic_linker="$host_os dyld"
11767 version_type=darwin
11768 need_lib_prefix=no
11769 need_version=no
11770 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11771 soname_spec='$libname$release$major$shared_ext'
11772 shlibpath_overrides_runpath=yes
11773 shlibpath_var=DYLD_LIBRARY_PATH
11774 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11775
11776 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11777 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11778 ;;
11779
11780 dgux*)
11781 version_type=linux # correct to gnu/linux during the next big refactor
11782 need_lib_prefix=no
11783 need_version=no
11784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11785 soname_spec='$libname$release$shared_ext$major'
11786 shlibpath_var=LD_LIBRARY_PATH
11787 ;;
11788
11789 freebsd* | dragonfly*)
11790 # DragonFly does not have aout. When/if they implement a new
11791 # versioning mechanism, adjust this.
11792 if test -x /usr/bin/objformat; then
11793 objformat=`/usr/bin/objformat`
11794 else
11795 case $host_os in
11796 freebsd[23].*) objformat=aout ;;
11797 *) objformat=elf ;;
11798 esac
11799 fi
11800 version_type=freebsd-$objformat
11801 case $version_type in
11802 freebsd-elf*)
11803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11804 soname_spec='$libname$release$shared_ext$major'
11805 need_version=no
11806 need_lib_prefix=no
11807 ;;
11808 freebsd-*)
11809 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11810 need_version=yes
11811 ;;
11812 esac
11813 shlibpath_var=LD_LIBRARY_PATH
11814 case $host_os in
11815 freebsd2.*)
11816 shlibpath_overrides_runpath=yes
11817 ;;
11818 freebsd3.[01]* | freebsdelf3.[01]*)
11819 shlibpath_overrides_runpath=yes
11820 hardcode_into_libs=yes
11821 ;;
11822 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11823 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11824 shlibpath_overrides_runpath=no
11825 hardcode_into_libs=yes
11826 ;;
11827 *) # from 4.6 on, and DragonFly
11828 shlibpath_overrides_runpath=yes
11829 hardcode_into_libs=yes
11830 ;;
11831 esac
11832 ;;
11833
11834 haiku*)
11835 version_type=linux # correct to gnu/linux during the next big refactor
11836 need_lib_prefix=no
11837 need_version=no
11838 dynamic_linker="$host_os runtime_loader"
11839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11840 soname_spec='$libname$release$shared_ext$major'
11841 shlibpath_var=LIBRARY_PATH
11842 shlibpath_overrides_runpath=no
11843 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11844 hardcode_into_libs=yes
11845 ;;
11846
11847 hpux9* | hpux10* | hpux11*)
11848 # Give a soname corresponding to the major version so that dld.sl refuses to
11849 # link against other versions.
11850 version_type=sunos
11851 need_lib_prefix=no
11852 need_version=no
11853 case $host_cpu in
11854 ia64*)
11855 shrext_cmds='.so'
11856 hardcode_into_libs=yes
11857 dynamic_linker="$host_os dld.so"
11858 shlibpath_var=LD_LIBRARY_PATH
11859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11861 soname_spec='$libname$release$shared_ext$major'
11862 if test 32 = "$HPUX_IA64_MODE"; then
11863 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11864 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11865 else
11866 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11867 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11868 fi
11869 ;;
11870 hppa*64*)
11871 shrext_cmds='.sl'
11872 hardcode_into_libs=yes
11873 dynamic_linker="$host_os dld.sl"
11874 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11877 soname_spec='$libname$release$shared_ext$major'
11878 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11880 ;;
11881 *)
11882 shrext_cmds='.sl'
11883 dynamic_linker="$host_os dld.sl"
11884 shlibpath_var=SHLIB_PATH
11885 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11887 soname_spec='$libname$release$shared_ext$major'
11888 ;;
11889 esac
11890 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11891 postinstall_cmds='chmod 555 $lib'
11892 # or fails outright, so override atomically:
11893 install_override_mode=555
11894 ;;
11895
11896 interix[3-9]*)
11897 version_type=linux # correct to gnu/linux during the next big refactor
11898 need_lib_prefix=no
11899 need_version=no
11900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11901 soname_spec='$libname$release$shared_ext$major'
11902 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11903 shlibpath_var=LD_LIBRARY_PATH
11904 shlibpath_overrides_runpath=no
11905 hardcode_into_libs=yes
11906 ;;
11907
11908 irix5* | irix6* | nonstopux*)
11909 case $host_os in
11910 nonstopux*) version_type=nonstopux ;;
11911 *)
11912 if test yes = "$lt_cv_prog_gnu_ld"; then
11913 version_type=linux # correct to gnu/linux during the next big refactor
11914 else
11915 version_type=irix
11916 fi ;;
11917 esac
11918 need_lib_prefix=no
11919 need_version=no
11920 soname_spec='$libname$release$shared_ext$major'
11921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11922 case $host_os in
11923 irix5* | nonstopux*)
11924 libsuff= shlibsuff=
11925 ;;
11926 *)
11927 case $LD in # libtool.m4 will add one of these switches to LD
11928 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11929 libsuff= shlibsuff= libmagic=32-bit;;
11930 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11931 libsuff=32 shlibsuff=N32 libmagic=N32;;
11932 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11933 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11934 *) libsuff= shlibsuff= libmagic=never-match;;
11935 esac
11936 ;;
11937 esac
11938 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11939 shlibpath_overrides_runpath=no
11940 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11941 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11942 hardcode_into_libs=yes
11943 ;;
11944
11945 # No shared lib support for Linux oldld, aout, or coff.
11946 linux*oldld* | linux*aout* | linux*coff*)
11947 dynamic_linker=no
11948 ;;
11949
11950 linux*android*)
11951 version_type=none # Android doesn't support versioned libraries.
11952 need_lib_prefix=no
11953 need_version=no
11954 library_names_spec='$libname$release$shared_ext'
11955 soname_spec='$libname$release$shared_ext'
11956 finish_cmds=
11957 shlibpath_var=LD_LIBRARY_PATH
11958 shlibpath_overrides_runpath=yes
11959
11960 # This implies no fast_install, which is unacceptable.
11961 # Some rework will be needed to allow for fast_install
11962 # before this can be enabled.
11963 hardcode_into_libs=yes
11964
11965 dynamic_linker='Android linker'
11966 # Don't embed -rpath directories since the linker doesn't support them.
11967 hardcode_libdir_flag_spec='-L$libdir'
11968 ;;
11969
11970 # This must be glibc/ELF.
11971 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11972 version_type=linux # correct to gnu/linux during the next big refactor
11973 need_lib_prefix=no
11974 need_version=no
11975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11976 soname_spec='$libname$release$shared_ext$major'
11977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11978 shlibpath_var=LD_LIBRARY_PATH
11979 shlibpath_overrides_runpath=no
11980
11981 # Some binutils ld are patched to set DT_RUNPATH
11982 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11983 $as_echo_n "(cached) " >&6
11984 else
11985 lt_cv_shlibpath_overrides_runpath=no
11986 save_LDFLAGS=$LDFLAGS
11987 save_libdir=$libdir
11988 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11989 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
11992
11993 int
11994 main ()
11995 {
11996
11997 ;
11998 return 0;
11999 }
12000 _ACEOF
12001 if ac_fn_c_try_link "$LINENO"; then :
12002 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12003 lt_cv_shlibpath_overrides_runpath=yes
12004 fi
12005 fi
12006 rm -f core conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12008 LDFLAGS=$save_LDFLAGS
12009 libdir=$save_libdir
12010
12011 fi
12012
12013 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12014
12015 # This implies no fast_install, which is unacceptable.
12016 # Some rework will be needed to allow for fast_install
12017 # before this can be enabled.
12018 hardcode_into_libs=yes
12019
12020 # Ideally, we could use ldconfig to report *all* directores which are
12021 # searched for libraries, however this is still not possible. Aside from not
12022 # being certain /sbin/ldconfig is available, command
12023 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12024 # even though it is searched at run-time. Try to do the best guess by
12025 # appending ld.so.conf contents (and includes) to the search path.
12026 if test -f /etc/ld.so.conf; then
12027 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' ' '`
12028 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12029 fi
12030
12031 # We used to test for /lib/ld.so.1 and disable shared libraries on
12032 # powerpc, because MkLinux only supported shared libraries with the
12033 # GNU dynamic linker. Since this was broken with cross compilers,
12034 # most powerpc-linux boxes support dynamic linking these days and
12035 # people can always --disable-shared, the test was removed, and we
12036 # assume the GNU/Linux dynamic linker is in use.
12037 dynamic_linker='GNU/Linux ld.so'
12038 ;;
12039
12040 netbsd*)
12041 version_type=sunos
12042 need_lib_prefix=no
12043 need_version=no
12044 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12045 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12047 dynamic_linker='NetBSD (a.out) ld.so'
12048 else
12049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12050 soname_spec='$libname$release$shared_ext$major'
12051 dynamic_linker='NetBSD ld.elf_so'
12052 fi
12053 shlibpath_var=LD_LIBRARY_PATH
12054 shlibpath_overrides_runpath=yes
12055 hardcode_into_libs=yes
12056 ;;
12057
12058 newsos6)
12059 version_type=linux # correct to gnu/linux during the next big refactor
12060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12061 shlibpath_var=LD_LIBRARY_PATH
12062 shlibpath_overrides_runpath=yes
12063 ;;
12064
12065 *nto* | *qnx*)
12066 version_type=qnx
12067 need_lib_prefix=no
12068 need_version=no
12069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12070 soname_spec='$libname$release$shared_ext$major'
12071 shlibpath_var=LD_LIBRARY_PATH
12072 shlibpath_overrides_runpath=no
12073 hardcode_into_libs=yes
12074 dynamic_linker='ldqnx.so'
12075 ;;
12076
12077 openbsd* | bitrig*)
12078 version_type=sunos
12079 sys_lib_dlsearch_path_spec=/usr/lib
12080 need_lib_prefix=no
12081 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12082 need_version=no
12083 else
12084 need_version=yes
12085 fi
12086 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12088 shlibpath_var=LD_LIBRARY_PATH
12089 shlibpath_overrides_runpath=yes
12090 ;;
12091
12092 os2*)
12093 libname_spec='$name'
12094 version_type=windows
12095 shrext_cmds=.dll
12096 need_version=no
12097 need_lib_prefix=no
12098 # OS/2 can only load a DLL with a base name of 8 characters or less.
12099 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12100 v=$($ECHO $release$versuffix | tr -d .-);
12101 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12102 $ECHO $n$v`$shared_ext'
12103 library_names_spec='${libname}_dll.$libext'
12104 dynamic_linker='OS/2 ld.exe'
12105 shlibpath_var=BEGINLIBPATH
12106 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12108 postinstall_cmds='base_file=`basename \$file`~
12109 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12110 dldir=$destdir/`dirname \$dlpath`~
12111 test -d \$dldir || mkdir -p \$dldir~
12112 $install_prog $dir/$dlname \$dldir/$dlname~
12113 chmod a+x \$dldir/$dlname~
12114 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12115 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12116 fi'
12117 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12118 dlpath=$dir/\$dldll~
12119 $RM \$dlpath'
12120 ;;
12121
12122 osf3* | osf4* | osf5*)
12123 version_type=osf
12124 need_lib_prefix=no
12125 need_version=no
12126 soname_spec='$libname$release$shared_ext$major'
12127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12128 shlibpath_var=LD_LIBRARY_PATH
12129 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12131 ;;
12132
12133 rdos*)
12134 dynamic_linker=no
12135 ;;
12136
12137 solaris*)
12138 version_type=linux # correct to gnu/linux during the next big refactor
12139 need_lib_prefix=no
12140 need_version=no
12141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12142 soname_spec='$libname$release$shared_ext$major'
12143 shlibpath_var=LD_LIBRARY_PATH
12144 shlibpath_overrides_runpath=yes
12145 hardcode_into_libs=yes
12146 # ldd complains unless libraries are executable
12147 postinstall_cmds='chmod +x $lib'
12148 ;;
12149
12150 sunos4*)
12151 version_type=sunos
12152 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12154 shlibpath_var=LD_LIBRARY_PATH
12155 shlibpath_overrides_runpath=yes
12156 if test yes = "$with_gnu_ld"; then
12157 need_lib_prefix=no
12158 fi
12159 need_version=yes
12160 ;;
12161
12162 sysv4 | sysv4.3*)
12163 version_type=linux # correct to gnu/linux during the next big refactor
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 shlibpath_var=LD_LIBRARY_PATH
12167 case $host_vendor in
12168 sni)
12169 shlibpath_overrides_runpath=no
12170 need_lib_prefix=no
12171 runpath_var=LD_RUN_PATH
12172 ;;
12173 siemens)
12174 need_lib_prefix=no
12175 ;;
12176 motorola)
12177 need_lib_prefix=no
12178 need_version=no
12179 shlibpath_overrides_runpath=no
12180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12181 ;;
12182 esac
12183 ;;
12184
12185 sysv4*MP*)
12186 if test -d /usr/nec; then
12187 version_type=linux # correct to gnu/linux during the next big refactor
12188 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12189 soname_spec='$libname$shared_ext.$major'
12190 shlibpath_var=LD_LIBRARY_PATH
12191 fi
12192 ;;
12193
12194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12195 version_type=sco
12196 need_lib_prefix=no
12197 need_version=no
12198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12199 soname_spec='$libname$release$shared_ext$major'
12200 shlibpath_var=LD_LIBRARY_PATH
12201 shlibpath_overrides_runpath=yes
12202 hardcode_into_libs=yes
12203 if test yes = "$with_gnu_ld"; then
12204 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12205 else
12206 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12207 case $host_os in
12208 sco3.2v5*)
12209 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12210 ;;
12211 esac
12212 fi
12213 sys_lib_dlsearch_path_spec='/usr/lib'
12214 ;;
12215
12216 tpf*)
12217 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12218 version_type=linux # correct to gnu/linux during the next big refactor
12219 need_lib_prefix=no
12220 need_version=no
12221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12222 shlibpath_var=LD_LIBRARY_PATH
12223 shlibpath_overrides_runpath=no
12224 hardcode_into_libs=yes
12225 ;;
12226
12227 uts4*)
12228 version_type=linux # correct to gnu/linux during the next big refactor
12229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12230 soname_spec='$libname$release$shared_ext$major'
12231 shlibpath_var=LD_LIBRARY_PATH
12232 ;;
12233
12234 *)
12235 dynamic_linker=no
12236 ;;
12237 esac
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12239 $as_echo "$dynamic_linker" >&6; }
12240 test no = "$dynamic_linker" && can_build_shared=no
12241
12242 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12243 if test yes = "$GCC"; then
12244 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12245 fi
12246
12247 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12248 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12249 fi
12250
12251 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12252 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12253 fi
12254
12255 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12256 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12257
12258 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12259 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12260
12261 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12262 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12361 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12362 hardcode_action=
12363 if test -n "$hardcode_libdir_flag_spec" ||
12364 test -n "$runpath_var" ||
12365 test yes = "$hardcode_automatic"; then
12366
12367 # We can hardcode non-existent directories.
12368 if test no != "$hardcode_direct" &&
12369 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12370 # have to relink, otherwise we might link with an installed library
12371 # when we should be linking with a yet-to-be-installed one
12372 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12373 test no != "$hardcode_minus_L"; then
12374 # Linking always hardcodes the temporary library directory.
12375 hardcode_action=relink
12376 else
12377 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12378 hardcode_action=immediate
12379 fi
12380 else
12381 # We cannot hardcode anything, or else we can only hardcode existing
12382 # directories.
12383 hardcode_action=unsupported
12384 fi
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12386 $as_echo "$hardcode_action" >&6; }
12387
12388 if test relink = "$hardcode_action" ||
12389 test yes = "$inherit_rpath"; then
12390 # Fast installation is not supported
12391 enable_fast_install=no
12392 elif test yes = "$shlibpath_overrides_runpath" ||
12393 test no = "$enable_shared"; then
12394 # Fast installation is not necessary
12395 enable_fast_install=needless
12396 fi
12397
12398
12399
12400
12401
12402
12403 if test yes != "$enable_dlopen"; then
12404 enable_dlopen=unknown
12405 enable_dlopen_self=unknown
12406 enable_dlopen_self_static=unknown
12407 else
12408 lt_cv_dlopen=no
12409 lt_cv_dlopen_libs=
12410
12411 case $host_os in
12412 beos*)
12413 lt_cv_dlopen=load_add_on
12414 lt_cv_dlopen_libs=
12415 lt_cv_dlopen_self=yes
12416 ;;
12417
12418 mingw* | pw32* | cegcc*)
12419 lt_cv_dlopen=LoadLibrary
12420 lt_cv_dlopen_libs=
12421 ;;
12422
12423 cygwin*)
12424 lt_cv_dlopen=dlopen
12425 lt_cv_dlopen_libs=
12426 ;;
12427
12428 darwin*)
12429 # if libdl is installed we need to link against it
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12431 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12432 if ${ac_cv_lib_dl_dlopen+:} false; then :
12433 $as_echo_n "(cached) " >&6
12434 else
12435 ac_check_lib_save_LIBS=$LIBS
12436 LIBS="-ldl $LIBS"
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h. */
12439
12440 /* Override any GCC internal prototype to avoid an error.
12441 Use char because int might match the return type of a GCC
12442 builtin and then its argument prototype would still apply. */
12443 #ifdef __cplusplus
12444 extern "C"
12445 #endif
12446 char dlopen ();
12447 int
12448 main ()
12449 {
12450 return dlopen ();
12451 ;
12452 return 0;
12453 }
12454 _ACEOF
12455 if ac_fn_c_try_link "$LINENO"; then :
12456 ac_cv_lib_dl_dlopen=yes
12457 else
12458 ac_cv_lib_dl_dlopen=no
12459 fi
12460 rm -f core conftest.err conftest.$ac_objext \
12461 conftest$ac_exeext conftest.$ac_ext
12462 LIBS=$ac_check_lib_save_LIBS
12463 fi
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12465 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12466 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12467 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12468 else
12469
12470 lt_cv_dlopen=dyld
12471 lt_cv_dlopen_libs=
12472 lt_cv_dlopen_self=yes
12473
12474 fi
12475
12476 ;;
12477
12478 tpf*)
12479 # Don't try to run any link tests for TPF. We know it's impossible
12480 # because TPF is a cross-compiler, and we know how we open DSOs.
12481 lt_cv_dlopen=dlopen
12482 lt_cv_dlopen_libs=
12483 lt_cv_dlopen_self=no
12484 ;;
12485
12486 *)
12487 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12488 if test "x$ac_cv_func_shl_load" = xyes; then :
12489 lt_cv_dlopen=shl_load
12490 else
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12492 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12493 if ${ac_cv_lib_dld_shl_load+:} false; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 ac_check_lib_save_LIBS=$LIBS
12497 LIBS="-ldld $LIBS"
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12500
12501 /* Override any GCC internal prototype to avoid an error.
12502 Use char because int might match the return type of a GCC
12503 builtin and then its argument prototype would still apply. */
12504 #ifdef __cplusplus
12505 extern "C"
12506 #endif
12507 char shl_load ();
12508 int
12509 main ()
12510 {
12511 return shl_load ();
12512 ;
12513 return 0;
12514 }
12515 _ACEOF
12516 if ac_fn_c_try_link "$LINENO"; then :
12517 ac_cv_lib_dld_shl_load=yes
12518 else
12519 ac_cv_lib_dld_shl_load=no
12520 fi
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12523 LIBS=$ac_check_lib_save_LIBS
12524 fi
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12526 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12527 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12528 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12529 else
12530 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12531 if test "x$ac_cv_func_dlopen" = xyes; then :
12532 lt_cv_dlopen=dlopen
12533 else
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12535 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12536 if ${ac_cv_lib_dl_dlopen+:} false; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12539 ac_check_lib_save_LIBS=$LIBS
12540 LIBS="-ldl $LIBS"
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12543
12544 /* Override any GCC internal prototype to avoid an error.
12545 Use char because int might match the return type of a GCC
12546 builtin and then its argument prototype would still apply. */
12547 #ifdef __cplusplus
12548 extern "C"
12549 #endif
12550 char dlopen ();
12551 int
12552 main ()
12553 {
12554 return dlopen ();
12555 ;
12556 return 0;
12557 }
12558 _ACEOF
12559 if ac_fn_c_try_link "$LINENO"; then :
12560 ac_cv_lib_dl_dlopen=yes
12561 else
12562 ac_cv_lib_dl_dlopen=no
12563 fi
12564 rm -f core conftest.err conftest.$ac_objext \
12565 conftest$ac_exeext conftest.$ac_ext
12566 LIBS=$ac_check_lib_save_LIBS
12567 fi
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12569 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12570 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12571 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12572 else
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12574 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12575 if ${ac_cv_lib_svld_dlopen+:} false; then :
12576 $as_echo_n "(cached) " >&6
12577 else
12578 ac_check_lib_save_LIBS=$LIBS
12579 LIBS="-lsvld $LIBS"
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12582
12583 /* Override any GCC internal prototype to avoid an error.
12584 Use char because int might match the return type of a GCC
12585 builtin and then its argument prototype would still apply. */
12586 #ifdef __cplusplus
12587 extern "C"
12588 #endif
12589 char dlopen ();
12590 int
12591 main ()
12592 {
12593 return dlopen ();
12594 ;
12595 return 0;
12596 }
12597 _ACEOF
12598 if ac_fn_c_try_link "$LINENO"; then :
12599 ac_cv_lib_svld_dlopen=yes
12600 else
12601 ac_cv_lib_svld_dlopen=no
12602 fi
12603 rm -f core conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
12605 LIBS=$ac_check_lib_save_LIBS
12606 fi
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12608 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12609 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12610 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12611 else
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12613 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12614 if ${ac_cv_lib_dld_dld_link+:} false; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617 ac_check_lib_save_LIBS=$LIBS
12618 LIBS="-ldld $LIBS"
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12621
12622 /* Override any GCC internal prototype to avoid an error.
12623 Use char because int might match the return type of a GCC
12624 builtin and then its argument prototype would still apply. */
12625 #ifdef __cplusplus
12626 extern "C"
12627 #endif
12628 char dld_link ();
12629 int
12630 main ()
12631 {
12632 return dld_link ();
12633 ;
12634 return 0;
12635 }
12636 _ACEOF
12637 if ac_fn_c_try_link "$LINENO"; then :
12638 ac_cv_lib_dld_dld_link=yes
12639 else
12640 ac_cv_lib_dld_dld_link=no
12641 fi
12642 rm -f core conftest.err conftest.$ac_objext \
12643 conftest$ac_exeext conftest.$ac_ext
12644 LIBS=$ac_check_lib_save_LIBS
12645 fi
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12647 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12648 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12649 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12650 fi
12651
12652
12653 fi
12654
12655
12656 fi
12657
12658
12659 fi
12660
12661
12662 fi
12663
12664
12665 fi
12666
12667 ;;
12668 esac
12669
12670 if test no = "$lt_cv_dlopen"; then
12671 enable_dlopen=no
12672 else
12673 enable_dlopen=yes
12674 fi
12675
12676 case $lt_cv_dlopen in
12677 dlopen)
12678 save_CPPFLAGS=$CPPFLAGS
12679 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12680
12681 save_LDFLAGS=$LDFLAGS
12682 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12683
12684 save_LIBS=$LIBS
12685 LIBS="$lt_cv_dlopen_libs $LIBS"
12686
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12688 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12689 if ${lt_cv_dlopen_self+:} false; then :
12690 $as_echo_n "(cached) " >&6
12691 else
12692 if test yes = "$cross_compiling"; then :
12693 lt_cv_dlopen_self=cross
12694 else
12695 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12696 lt_status=$lt_dlunknown
12697 cat > conftest.$ac_ext <<_LT_EOF
12698 #line $LINENO "configure"
12699 #include "confdefs.h"
12700
12701 #if HAVE_DLFCN_H
12702 #include <dlfcn.h>
12703 #endif
12704
12705 #include <stdio.h>
12706
12707 #ifdef RTLD_GLOBAL
12708 # define LT_DLGLOBAL RTLD_GLOBAL
12709 #else
12710 # ifdef DL_GLOBAL
12711 # define LT_DLGLOBAL DL_GLOBAL
12712 # else
12713 # define LT_DLGLOBAL 0
12714 # endif
12715 #endif
12716
12717 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12718 find out it does not work in some platform. */
12719 #ifndef LT_DLLAZY_OR_NOW
12720 # ifdef RTLD_LAZY
12721 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12722 # else
12723 # ifdef DL_LAZY
12724 # define LT_DLLAZY_OR_NOW DL_LAZY
12725 # else
12726 # ifdef RTLD_NOW
12727 # define LT_DLLAZY_OR_NOW RTLD_NOW
12728 # else
12729 # ifdef DL_NOW
12730 # define LT_DLLAZY_OR_NOW DL_NOW
12731 # else
12732 # define LT_DLLAZY_OR_NOW 0
12733 # endif
12734 # endif
12735 # endif
12736 # endif
12737 #endif
12738
12739 /* When -fvisibility=hidden is used, assume the code has been annotated
12740 correspondingly for the symbols needed. */
12741 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12742 int fnord () __attribute__((visibility("default")));
12743 #endif
12744
12745 int fnord () { return 42; }
12746 int main ()
12747 {
12748 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12749 int status = $lt_dlunknown;
12750
12751 if (self)
12752 {
12753 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12754 else
12755 {
12756 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12757 else puts (dlerror ());
12758 }
12759 /* dlclose (self); */
12760 }
12761 else
12762 puts (dlerror ());
12763
12764 return status;
12765 }
12766 _LT_EOF
12767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12768 (eval $ac_link) 2>&5
12769 ac_status=$?
12770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12771 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12772 (./conftest; exit; ) >&5 2>/dev/null
12773 lt_status=$?
12774 case x$lt_status in
12775 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12776 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12777 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12778 esac
12779 else :
12780 # compilation failed
12781 lt_cv_dlopen_self=no
12782 fi
12783 fi
12784 rm -fr conftest*
12785
12786
12787 fi
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12789 $as_echo "$lt_cv_dlopen_self" >&6; }
12790
12791 if test yes = "$lt_cv_dlopen_self"; then
12792 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12794 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12795 if ${lt_cv_dlopen_self_static+:} false; then :
12796 $as_echo_n "(cached) " >&6
12797 else
12798 if test yes = "$cross_compiling"; then :
12799 lt_cv_dlopen_self_static=cross
12800 else
12801 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12802 lt_status=$lt_dlunknown
12803 cat > conftest.$ac_ext <<_LT_EOF
12804 #line $LINENO "configure"
12805 #include "confdefs.h"
12806
12807 #if HAVE_DLFCN_H
12808 #include <dlfcn.h>
12809 #endif
12810
12811 #include <stdio.h>
12812
12813 #ifdef RTLD_GLOBAL
12814 # define LT_DLGLOBAL RTLD_GLOBAL
12815 #else
12816 # ifdef DL_GLOBAL
12817 # define LT_DLGLOBAL DL_GLOBAL
12818 # else
12819 # define LT_DLGLOBAL 0
12820 # endif
12821 #endif
12822
12823 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12824 find out it does not work in some platform. */
12825 #ifndef LT_DLLAZY_OR_NOW
12826 # ifdef RTLD_LAZY
12827 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12828 # else
12829 # ifdef DL_LAZY
12830 # define LT_DLLAZY_OR_NOW DL_LAZY
12831 # else
12832 # ifdef RTLD_NOW
12833 # define LT_DLLAZY_OR_NOW RTLD_NOW
12834 # else
12835 # ifdef DL_NOW
12836 # define LT_DLLAZY_OR_NOW DL_NOW
12837 # else
12838 # define LT_DLLAZY_OR_NOW 0
12839 # endif
12840 # endif
12841 # endif
12842 # endif
12843 #endif
12844
12845 /* When -fvisibility=hidden is used, assume the code has been annotated
12846 correspondingly for the symbols needed. */
12847 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12848 int fnord () __attribute__((visibility("default")));
12849 #endif
12850
12851 int fnord () { return 42; }
12852 int main ()
12853 {
12854 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12855 int status = $lt_dlunknown;
12856
12857 if (self)
12858 {
12859 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12860 else
12861 {
12862 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12863 else puts (dlerror ());
12864 }
12865 /* dlclose (self); */
12866 }
12867 else
12868 puts (dlerror ());
12869
12870 return status;
12871 }
12872 _LT_EOF
12873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12874 (eval $ac_link) 2>&5
12875 ac_status=$?
12876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12877 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12878 (./conftest; exit; ) >&5 2>/dev/null
12879 lt_status=$?
12880 case x$lt_status in
12881 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12882 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12883 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12884 esac
12885 else :
12886 # compilation failed
12887 lt_cv_dlopen_self_static=no
12888 fi
12889 fi
12890 rm -fr conftest*
12891
12892
12893 fi
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12895 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12896 fi
12897
12898 CPPFLAGS=$save_CPPFLAGS
12899 LDFLAGS=$save_LDFLAGS
12900 LIBS=$save_LIBS
12901 ;;
12902 esac
12903
12904 case $lt_cv_dlopen_self in
12905 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12906 *) enable_dlopen_self=unknown ;;
12907 esac
12908
12909 case $lt_cv_dlopen_self_static in
12910 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12911 *) enable_dlopen_self_static=unknown ;;
12912 esac
12913 fi
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931 striplib=
12932 old_striplib=
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12934 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12935 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12936 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12937 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12939 $as_echo "yes" >&6; }
12940 else
12941 # FIXME - insert some real tests, host_os isn't really good enough
12942 case $host_os in
12943 darwin*)
12944 if test -n "$STRIP"; then
12945 striplib="$STRIP -x"
12946 old_striplib="$STRIP -S"
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12948 $as_echo "yes" >&6; }
12949 else
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951 $as_echo "no" >&6; }
12952 fi
12953 ;;
12954 *)
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 $as_echo "no" >&6; }
12957 ;;
12958 esac
12959 fi
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972 # Report what library types will actually be built
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12974 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12976 $as_echo "$can_build_shared" >&6; }
12977
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12979 $as_echo_n "checking whether to build shared libraries... " >&6; }
12980 test no = "$can_build_shared" && enable_shared=no
12981
12982 # On AIX, shared libraries and static libraries use the same namespace, and
12983 # are all built from PIC.
12984 case $host_os in
12985 aix3*)
12986 test yes = "$enable_shared" && enable_static=no
12987 if test -n "$RANLIB"; then
12988 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12989 postinstall_cmds='$RANLIB $lib'
12990 fi
12991 ;;
12992
12993 aix[4-9]*)
12994 if test ia64 != "$host_cpu"; then
12995 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12996 yes,aix,yes) ;; # shared object as lib.so file only
12997 yes,svr4,*) ;; # shared object as lib.so archive member only
12998 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12999 esac
13000 fi
13001 ;;
13002 esac
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13004 $as_echo "$enable_shared" >&6; }
13005
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13007 $as_echo_n "checking whether to build static libraries... " >&6; }
13008 # Make sure either enable_shared or enable_static is yes.
13009 test yes = "$enable_shared" || enable_static=yes
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13011 $as_echo "$enable_static" >&6; }
13012
13013
13014
13015
13016 fi
13017 ac_ext=c
13018 ac_cpp='$CPP $CPPFLAGS'
13019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13022
13023 CC=$lt_save_CC
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039 ac_config_commands="$ac_config_commands libtool"
13040
13041
13042
13043
13044 # Only expand once:
13045
13046
13047
13048
13049 CFLAG_VISIBILITY=
13050 HAVE_VISIBILITY=0
13051 if test -n "$GCC"; then
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
13053 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
13054 if ${gl_cv_cc_vis_werror+:} false; then :
13055 $as_echo_n "(cached) " >&6
13056 else
13057 gl_save_CFLAGS="$CFLAGS"
13058 CFLAGS="$CFLAGS -Werror"
13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060 /* end confdefs.h. */
13061
13062 int
13063 main ()
13064 {
13065
13066 ;
13067 return 0;
13068 }
13069 _ACEOF
13070 if ac_fn_c_try_compile "$LINENO"; then :
13071 gl_cv_cc_vis_werror=yes
13072 else
13073 gl_cv_cc_vis_werror=no
13074 fi
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13076 CFLAGS="$gl_save_CFLAGS"
13077
13078 fi
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
13080 $as_echo "$gl_cv_cc_vis_werror" >&6; }
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
13082 $as_echo_n "checking for simple visibility declarations... " >&6; }
13083 if ${gl_cv_cc_visibility+:} false; then :
13084 $as_echo_n "(cached) " >&6
13085 else
13086 gl_save_CFLAGS="$CFLAGS"
13087 CFLAGS="$CFLAGS -fvisibility=hidden"
13088 if test $gl_cv_cc_vis_werror = yes; then
13089 CFLAGS="$CFLAGS -Werror"
13090 fi
13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13093 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
13094 extern __attribute__((__visibility__("default"))) int exportedvar;
13095 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
13096 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
13097 void dummyfunc (void) {}
13098
13099 int
13100 main ()
13101 {
13102
13103 ;
13104 return 0;
13105 }
13106 _ACEOF
13107 if ac_fn_c_try_compile "$LINENO"; then :
13108 gl_cv_cc_visibility=yes
13109 else
13110 gl_cv_cc_visibility=no
13111 fi
13112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13113 CFLAGS="$gl_save_CFLAGS"
13114
13115 fi
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
13117 $as_echo "$gl_cv_cc_visibility" >&6; }
13118 if test $gl_cv_cc_visibility = yes; then
13119 CFLAG_VISIBILITY="-fvisibility=hidden"
13120 HAVE_VISIBILITY=1
13121 fi
13122 fi
13123
13124
13125
13126 cat >>confdefs.h <<_ACEOF
13127 #define HAVE_VISIBILITY $HAVE_VISIBILITY
13128 _ACEOF
13129
13130
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13132 $as_echo_n "checking for ANSI C header files... " >&6; }
13133 if ${ac_cv_header_stdc+:} false; then :
13134 $as_echo_n "(cached) " >&6
13135 else
13136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h. */
13138 #include <stdlib.h>
13139 #include <stdarg.h>
13140 #include <string.h>
13141 #include <float.h>
13142
13143 int
13144 main ()
13145 {
13146
13147 ;
13148 return 0;
13149 }
13150 _ACEOF
13151 if ac_fn_c_try_compile "$LINENO"; then :
13152 ac_cv_header_stdc=yes
13153 else
13154 ac_cv_header_stdc=no
13155 fi
13156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157
13158 if test $ac_cv_header_stdc = yes; then
13159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h. */
13162 #include <string.h>
13163
13164 _ACEOF
13165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13166 $EGREP "memchr" >/dev/null 2>&1; then :
13167
13168 else
13169 ac_cv_header_stdc=no
13170 fi
13171 rm -f conftest*
13172
13173 fi
13174
13175 if test $ac_cv_header_stdc = yes; then
13176 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13179 #include <stdlib.h>
13180
13181 _ACEOF
13182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13183 $EGREP "free" >/dev/null 2>&1; then :
13184
13185 else
13186 ac_cv_header_stdc=no
13187 fi
13188 rm -f conftest*
13189
13190 fi
13191
13192 if test $ac_cv_header_stdc = yes; then
13193 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13194 if test "$cross_compiling" = yes; then :
13195 :
13196 else
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13199 #include <ctype.h>
13200 #include <stdlib.h>
13201 #if ((' ' & 0x0FF) == 0x020)
13202 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13203 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13204 #else
13205 # define ISLOWER(c) \
13206 (('a' <= (c) && (c) <= 'i') \
13207 || ('j' <= (c) && (c) <= 'r') \
13208 || ('s' <= (c) && (c) <= 'z'))
13209 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13210 #endif
13211
13212 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13213 int
13214 main ()
13215 {
13216 int i;
13217 for (i = 0; i < 256; i++)
13218 if (XOR (islower (i), ISLOWER (i))
13219 || toupper (i) != TOUPPER (i))
13220 return 2;
13221 return 0;
13222 }
13223 _ACEOF
13224 if ac_fn_c_try_run "$LINENO"; then :
13225
13226 else
13227 ac_cv_header_stdc=no
13228 fi
13229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13230 conftest.$ac_objext conftest.beam conftest.$ac_ext
13231 fi
13232
13233 fi
13234 fi
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13236 $as_echo "$ac_cv_header_stdc" >&6; }
13237 if test $ac_cv_header_stdc = yes; then
13238
13239 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13240
13241 fi
13242
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
13244 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
13245 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
13246 $as_echo_n "(cached) " >&6
13247 else
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13250 #include <sys/types.h>
13251 int
13252 main ()
13253 {
13254 return makedev(0, 0);
13255 ;
13256 return 0;
13257 }
13258 _ACEOF
13259 if ac_fn_c_try_link "$LINENO"; then :
13260 ac_cv_header_sys_types_h_makedev=yes
13261 else
13262 ac_cv_header_sys_types_h_makedev=no
13263 fi
13264 rm -f core conftest.err conftest.$ac_objext \
13265 conftest$ac_exeext conftest.$ac_ext
13266
13267 fi
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
13269 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
13270
13271 if test $ac_cv_header_sys_types_h_makedev = no; then
13272 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
13273 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
13274
13275 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
13276
13277 fi
13278
13279
13280
13281 if test $ac_cv_header_sys_mkdev_h = no; then
13282 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
13283 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
13284
13285 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
13286
13287 fi
13288
13289
13290 fi
13291 fi
13292
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13294 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13295 if ${ac_cv_header_sys_wait_h+:} false; then :
13296 $as_echo_n "(cached) " >&6
13297 else
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300 #include <sys/types.h>
13301 #include <sys/wait.h>
13302 #ifndef WEXITSTATUS
13303 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13304 #endif
13305 #ifndef WIFEXITED
13306 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13307 #endif
13308
13309 int
13310 main ()
13311 {
13312 int s;
13313 wait (&s);
13314 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13315 ;
13316 return 0;
13317 }
13318 _ACEOF
13319 if ac_fn_c_try_compile "$LINENO"; then :
13320 ac_cv_header_sys_wait_h=yes
13321 else
13322 ac_cv_header_sys_wait_h=no
13323 fi
13324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325 fi
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13327 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13328 if test $ac_cv_header_sys_wait_h = yes; then
13329
13330 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13331
13332 fi
13333
13334 for ac_header in stdint.h fcntl.h inttypes.h unistd.h
13335 do :
13336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13337 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13338 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13339 cat >>confdefs.h <<_ACEOF
13340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13341 _ACEOF
13342
13343 fi
13344
13345 done
13346
13347 for ac_header in utime.h wchar.h wctype.h
13348 do :
13349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13350 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13351 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13352 cat >>confdefs.h <<_ACEOF
13353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13354 _ACEOF
13355
13356 fi
13357
13358 done
13359
13360 for ac_header in getopt.h err.h xlocale.h
13361 do :
13362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13363 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13364 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13365 cat >>confdefs.h <<_ACEOF
13366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13367 _ACEOF
13368
13369 fi
13370
13371 done
13372
13373 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h sys/sysmacros.h
13374 do :
13375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13376 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13377 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13378 cat >>confdefs.h <<_ACEOF
13379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13380 _ACEOF
13381
13382 fi
13383
13384 done
13385
13386 if test "$enable_zlib" != "no"; then
13387 for ac_header in zlib.h
13388 do :
13389 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13390 if test "x$ac_cv_header_zlib_h" = xyes; then :
13391 cat >>confdefs.h <<_ACEOF
13392 #define HAVE_ZLIB_H 1
13393 _ACEOF
13394
13395 fi
13396
13397 done
13398
13399 fi
13400 if test "$enable_bzlib" != "no"; then
13401 for ac_header in bzlib.h
13402 do :
13403 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
13404 if test "x$ac_cv_header_bzlib_h" = xyes; then :
13405 cat >>confdefs.h <<_ACEOF
13406 #define HAVE_BZLIB_H 1
13407 _ACEOF
13408
13409 fi
13410
13411 done
13412
13413 fi
13414 if test "$enable_xzlib" != "no"; then
13415 for ac_header in lzma.h
13416 do :
13417 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
13418 if test "x$ac_cv_header_lzma_h" = xyes; then :
13419 cat >>confdefs.h <<_ACEOF
13420 #define HAVE_LZMA_H 1
13421 _ACEOF
13422
13423 fi
13424
13425 done
13426
13427 fi
13428 ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
13429 "
13430 if test "x$ac_cv_type_sig_t" = xyes; then :
13431
13432 $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
13433
13434 fi
13435
13436
13437 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13438 if test "x$ac_cv_type_off_t" = xyes; then :
13439
13440 else
13441
13442 cat >>confdefs.h <<_ACEOF
13443 #define off_t long int
13444 _ACEOF
13445
13446 fi
13447
13448 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13449 if test "x$ac_cv_type_size_t" = xyes; then :
13450
13451 else
13452
13453 cat >>confdefs.h <<_ACEOF
13454 #define size_t unsigned int
13455 _ACEOF
13456
13457 fi
13458
13459 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
13460 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
13461
13462 cat >>confdefs.h <<_ACEOF
13463 #define HAVE_STRUCT_STAT_ST_RDEV 1
13464 _ACEOF
13465
13466
13467 fi
13468
13469
13470 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
13471 "
13472 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
13473
13474 cat >>confdefs.h <<_ACEOF
13475 #define HAVE_STRUCT_TM_TM_GMTOFF 1
13476 _ACEOF
13477
13478
13479 fi
13480
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13482 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13483 if ${ac_cv_struct_tm+:} false; then :
13484 $as_echo_n "(cached) " >&6
13485 else
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488 #include <sys/types.h>
13489 #include <time.h>
13490
13491 int
13492 main ()
13493 {
13494 struct tm tm;
13495 int *p = &tm.tm_sec;
13496 return !p;
13497 ;
13498 return 0;
13499 }
13500 _ACEOF
13501 if ac_fn_c_try_compile "$LINENO"; then :
13502 ac_cv_struct_tm=time.h
13503 else
13504 ac_cv_struct_tm=sys/time.h
13505 fi
13506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13507 fi
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13509 $as_echo "$ac_cv_struct_tm" >&6; }
13510 if test $ac_cv_struct_tm = sys/time.h; then
13511
13512 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
13513
13514 fi
13515
13516 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13517 #include <$ac_cv_struct_tm>
13518
13519 "
13520 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
13521
13522 cat >>confdefs.h <<_ACEOF
13523 #define HAVE_STRUCT_TM_TM_ZONE 1
13524 _ACEOF
13525
13526
13527 fi
13528
13529 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13530
13531 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13532
13533 else
13534 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13535 "
13536 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13537 ac_have_decl=1
13538 else
13539 ac_have_decl=0
13540 fi
13541
13542 cat >>confdefs.h <<_ACEOF
13543 #define HAVE_DECL_TZNAME $ac_have_decl
13544 _ACEOF
13545
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13547 $as_echo_n "checking for tzname... " >&6; }
13548 if ${ac_cv_var_tzname+:} false; then :
13549 $as_echo_n "(cached) " >&6
13550 else
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553 #include <time.h>
13554 #if !HAVE_DECL_TZNAME
13555 extern char *tzname[];
13556 #endif
13557
13558 int
13559 main ()
13560 {
13561 return tzname[0][0];
13562 ;
13563 return 0;
13564 }
13565 _ACEOF
13566 if ac_fn_c_try_link "$LINENO"; then :
13567 ac_cv_var_tzname=yes
13568 else
13569 ac_cv_var_tzname=no
13570 fi
13571 rm -f core conftest.err conftest.$ac_objext \
13572 conftest$ac_exeext conftest.$ac_ext
13573 fi
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13575 $as_echo "$ac_cv_var_tzname" >&6; }
13576 if test $ac_cv_var_tzname = yes; then
13577
13578 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13579
13580 fi
13581 fi
13582
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
13584 $as_echo_n "checking for tm_zone in struct tm... " >&6; }
13585 if ${ac_cv_struct_tm_zone+:} false; then :
13586 $as_echo_n "(cached) " >&6
13587 else
13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h. */
13590 #include <sys/types.h>
13591 #include <$ac_cv_struct_tm>
13592 int
13593 main ()
13594 {
13595 struct tm tm; tm.tm_zone;
13596 ;
13597 return 0;
13598 }
13599 _ACEOF
13600 if ac_fn_c_try_compile "$LINENO"; then :
13601 ac_cv_struct_tm_zone=yes
13602 else
13603 ac_cv_struct_tm_zone=no
13604 fi
13605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606 fi
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
13608 $as_echo "$ac_cv_struct_tm_zone" >&6; }
13609 if test "$ac_cv_struct_tm_zone" = yes; then
13610
13611 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13612
13613 fi
13614
13615 # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
13616 # consider it declared and we won't give our own extern.
13617 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13618 "
13619 if test "x$ac_cv_have_decl_tzname" = xyes; then :
13620 ac_have_decl=1
13621 else
13622 ac_have_decl=0
13623 fi
13624
13625 cat >>confdefs.h <<_ACEOF
13626 #define HAVE_DECL_TZNAME $ac_have_decl
13627 _ACEOF
13628
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13630 $as_echo_n "checking for tzname... " >&6; }
13631 if ${ac_cv_var_tzname+:} false; then :
13632 $as_echo_n "(cached) " >&6
13633 else
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13636 #include <time.h>
13637 #if !HAVE_DECL_TZNAME
13638 extern char *tzname[];
13639 #endif
13640 int
13641 main ()
13642 {
13643 return tzname[0][0];
13644 ;
13645 return 0;
13646 }
13647 _ACEOF
13648 if ac_fn_c_try_link "$LINENO"; then :
13649 ac_cv_var_tzname=yes
13650 else
13651 ac_cv_var_tzname=no
13652 fi
13653 rm -f core conftest.err conftest.$ac_objext \
13654 conftest$ac_exeext conftest.$ac_ext
13655 fi
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13657 $as_echo "$ac_cv_var_tzname" >&6; }
13658 if test $ac_cv_var_tzname = yes; then
13659
13660 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13661
13662 fi
13663
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
13665 $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
13666 if ${ac_cv_struct_tm_isdst+:} false; then :
13667 $as_echo_n "(cached) " >&6
13668 else
13669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h. */
13671 #include <sys/types.h>
13672 #include <$ac_cv_struct_tm>
13673 int
13674 main ()
13675 {
13676 struct tm tm; tm.tm_isdst;
13677 ;
13678 return 0;
13679 }
13680 _ACEOF
13681 if ac_fn_c_try_compile "$LINENO"; then :
13682 ac_cv_struct_tm_isdst=yes
13683 else
13684 ac_cv_struct_tm_isdst=no
13685 fi
13686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13687 fi
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
13689 $as_echo "$ac_cv_struct_tm_isdst" >&6; }
13690 if test "$ac_cv_struct_tm_isdst" = yes; then
13691
13692 $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
13693
13694 fi
13695
13696
13697 ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
13698 "
13699 if test "x$ac_cv_have_decl_daylight" = xyes; then :
13700 ac_have_decl=1
13701 else
13702 ac_have_decl=0
13703 fi
13704
13705 cat >>confdefs.h <<_ACEOF
13706 #define HAVE_DECL_DAYLIGHT $ac_have_decl
13707 _ACEOF
13708
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
13710 $as_echo_n "checking for daylight... " >&6; }
13711 if ${ac_cv_var_daylight+:} false; then :
13712 $as_echo_n "(cached) " >&6
13713 else
13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h. */
13716 #include <time.h>
13717 #if !HAVE_DECL_DAYLIGHT
13718 extern int daylight;
13719 #endif
13720 int
13721 main ()
13722 {
13723 atoi(daylight);
13724 ;
13725 return 0;
13726 }
13727 _ACEOF
13728 if ac_fn_c_try_link "$LINENO"; then :
13729 ac_cv_var_daylight=yes
13730 else
13731 ac_cv_var_daylight=no
13732 fi
13733 rm -f core conftest.err conftest.$ac_objext \
13734 conftest$ac_exeext conftest.$ac_ext
13735 fi
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
13737 $as_echo "$ac_cv_var_daylight" >&6; }
13738 if test $ac_cv_var_daylight = yes; then
13739
13740 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13741
13742 fi
13743
13744 # Check whether --enable-largefile was given.
13745 if test "${enable_largefile+set}" = set; then :
13746 enableval=$enable_largefile;
13747 fi
13748
13749 if test "$enable_largefile" != no; then
13750
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13752 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13753 if ${ac_cv_sys_largefile_CC+:} false; then :
13754 $as_echo_n "(cached) " >&6
13755 else
13756 ac_cv_sys_largefile_CC=no
13757 if test "$GCC" != yes; then
13758 ac_save_CC=$CC
13759 while :; do
13760 # IRIX 6.2 and later do not support large files by default,
13761 # so use the C compiler's -n32 option if that helps.
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13764 #include <sys/types.h>
13765 /* Check that off_t can represent 2**63 - 1 correctly.
13766 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13767 since some C++ compilers masquerading as C compilers
13768 incorrectly reject 9223372036854775807. */
13769 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13771 && LARGE_OFF_T % 2147483647 == 1)
13772 ? 1 : -1];
13773 int
13774 main ()
13775 {
13776
13777 ;
13778 return 0;
13779 }
13780 _ACEOF
13781 if ac_fn_c_try_compile "$LINENO"; then :
13782 break
13783 fi
13784 rm -f core conftest.err conftest.$ac_objext
13785 CC="$CC -n32"
13786 if ac_fn_c_try_compile "$LINENO"; then :
13787 ac_cv_sys_largefile_CC=' -n32'; break
13788 fi
13789 rm -f core conftest.err conftest.$ac_objext
13790 break
13791 done
13792 CC=$ac_save_CC
13793 rm -f conftest.$ac_ext
13794 fi
13795 fi
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13797 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13798 if test "$ac_cv_sys_largefile_CC" != no; then
13799 CC=$CC$ac_cv_sys_largefile_CC
13800 fi
13801
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13803 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13804 if ${ac_cv_sys_file_offset_bits+:} false; then :
13805 $as_echo_n "(cached) " >&6
13806 else
13807 while :; do
13808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809 /* end confdefs.h. */
13810 #include <sys/types.h>
13811 /* Check that off_t can represent 2**63 - 1 correctly.
13812 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13813 since some C++ compilers masquerading as C compilers
13814 incorrectly reject 9223372036854775807. */
13815 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13816 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13817 && LARGE_OFF_T % 2147483647 == 1)
13818 ? 1 : -1];
13819 int
13820 main ()
13821 {
13822
13823 ;
13824 return 0;
13825 }
13826 _ACEOF
13827 if ac_fn_c_try_compile "$LINENO"; then :
13828 ac_cv_sys_file_offset_bits=no; break
13829 fi
13830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832 /* end confdefs.h. */
13833 #define _FILE_OFFSET_BITS 64
13834 #include <sys/types.h>
13835 /* Check that off_t can represent 2**63 - 1 correctly.
13836 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13837 since some C++ compilers masquerading as C compilers
13838 incorrectly reject 9223372036854775807. */
13839 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13840 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13841 && LARGE_OFF_T % 2147483647 == 1)
13842 ? 1 : -1];
13843 int
13844 main ()
13845 {
13846
13847 ;
13848 return 0;
13849 }
13850 _ACEOF
13851 if ac_fn_c_try_compile "$LINENO"; then :
13852 ac_cv_sys_file_offset_bits=64; break
13853 fi
13854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13855 ac_cv_sys_file_offset_bits=unknown
13856 break
13857 done
13858 fi
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13860 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13861 case $ac_cv_sys_file_offset_bits in #(
13862 no | unknown) ;;
13863 *)
13864 cat >>confdefs.h <<_ACEOF
13865 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13866 _ACEOF
13867 ;;
13868 esac
13869 rm -rf conftest*
13870 if test $ac_cv_sys_file_offset_bits = unknown; then
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13872 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13873 if ${ac_cv_sys_large_files+:} false; then :
13874 $as_echo_n "(cached) " >&6
13875 else
13876 while :; do
13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13878 /* end confdefs.h. */
13879 #include <sys/types.h>
13880 /* Check that off_t can represent 2**63 - 1 correctly.
13881 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13882 since some C++ compilers masquerading as C compilers
13883 incorrectly reject 9223372036854775807. */
13884 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13885 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13886 && LARGE_OFF_T % 2147483647 == 1)
13887 ? 1 : -1];
13888 int
13889 main ()
13890 {
13891
13892 ;
13893 return 0;
13894 }
13895 _ACEOF
13896 if ac_fn_c_try_compile "$LINENO"; then :
13897 ac_cv_sys_large_files=no; break
13898 fi
13899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13902 #define _LARGE_FILES 1
13903 #include <sys/types.h>
13904 /* Check that off_t can represent 2**63 - 1 correctly.
13905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13906 since some C++ compilers masquerading as C compilers
13907 incorrectly reject 9223372036854775807. */
13908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13910 && LARGE_OFF_T % 2147483647 == 1)
13911 ? 1 : -1];
13912 int
13913 main ()
13914 {
13915
13916 ;
13917 return 0;
13918 }
13919 _ACEOF
13920 if ac_fn_c_try_compile "$LINENO"; then :
13921 ac_cv_sys_large_files=1; break
13922 fi
13923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13924 ac_cv_sys_large_files=unknown
13925 break
13926 done
13927 fi
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13929 $as_echo "$ac_cv_sys_large_files" >&6; }
13930 case $ac_cv_sys_large_files in #(
13931 no | unknown) ;;
13932 *)
13933 cat >>confdefs.h <<_ACEOF
13934 #define _LARGE_FILES $ac_cv_sys_large_files
13935 _ACEOF
13936 ;;
13937 esac
13938 rm -rf conftest*
13939 fi
13940
13941
13942 fi
13943
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13945 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13946 if ${ac_cv_sys_largefile_source+:} false; then :
13947 $as_echo_n "(cached) " >&6
13948 else
13949 while :; do
13950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13951 /* end confdefs.h. */
13952 #include <sys/types.h> /* for off_t */
13953 #include <stdio.h>
13954 int
13955 main ()
13956 {
13957 int (*fp) (FILE *, off_t, int) = fseeko;
13958 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13959 ;
13960 return 0;
13961 }
13962 _ACEOF
13963 if ac_fn_c_try_link "$LINENO"; then :
13964 ac_cv_sys_largefile_source=no; break
13965 fi
13966 rm -f core conftest.err conftest.$ac_objext \
13967 conftest$ac_exeext conftest.$ac_ext
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13970 #define _LARGEFILE_SOURCE 1
13971 #include <sys/types.h> /* for off_t */
13972 #include <stdio.h>
13973 int
13974 main ()
13975 {
13976 int (*fp) (FILE *, off_t, int) = fseeko;
13977 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13978 ;
13979 return 0;
13980 }
13981 _ACEOF
13982 if ac_fn_c_try_link "$LINENO"; then :
13983 ac_cv_sys_largefile_source=1; break
13984 fi
13985 rm -f core conftest.err conftest.$ac_objext \
13986 conftest$ac_exeext conftest.$ac_ext
13987 ac_cv_sys_largefile_source=unknown
13988 break
13989 done
13990 fi
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13992 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13993 case $ac_cv_sys_largefile_source in #(
13994 no | unknown) ;;
13995 *)
13996 cat >>confdefs.h <<_ACEOF
13997 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13998 _ACEOF
13999 ;;
14000 esac
14001 rm -rf conftest*
14002
14003 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14004 # in glibc 2.1.3, but that breaks too many other things.
14005 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14006 if test $ac_cv_sys_largefile_source != unknown; then
14007
14008 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14009
14010 fi
14011
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14013 $as_echo_n "checking for mbstate_t... " >&6; }
14014 if ${ac_cv_type_mbstate_t+:} false; then :
14015 $as_echo_n "(cached) " >&6
14016 else
14017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018 /* end confdefs.h. */
14019 $ac_includes_default
14020 # include <wchar.h>
14021 int
14022 main ()
14023 {
14024 mbstate_t x; return sizeof x;
14025 ;
14026 return 0;
14027 }
14028 _ACEOF
14029 if ac_fn_c_try_compile "$LINENO"; then :
14030 ac_cv_type_mbstate_t=yes
14031 else
14032 ac_cv_type_mbstate_t=no
14033 fi
14034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14035 fi
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14037 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14038 if test $ac_cv_type_mbstate_t = yes; then
14039
14040 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14041
14042 else
14043
14044 $as_echo "#define mbstate_t int" >>confdefs.h
14045
14046 fi
14047
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
14049 $as_echo_n "checking for struct option in getopt... " >&6; }
14050 if ${ac_cv_struct_option_getopt_h+:} false; then :
14051 $as_echo_n "(cached) " >&6
14052 else
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14055 #include <getopt.h>
14056 int
14057 main ()
14058 {
14059 struct option op; op.name;
14060 ;
14061 return 0;
14062 }
14063 _ACEOF
14064 if ac_fn_c_try_compile "$LINENO"; then :
14065 ac_cv_struct_option_getopt_h=yes
14066 else
14067 ac_cv_struct_option_getopt_h=no
14068 fi
14069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14070 fi
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
14072 $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
14073 if test "$ac_cv_struct_option_getopt_h" = yes; then
14074
14075 $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
14076
14077 fi
14078
14079 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14080 if test "x$ac_cv_type_pid_t" = xyes; then :
14081
14082 else
14083
14084 cat >>confdefs.h <<_ACEOF
14085 #define pid_t int
14086 _ACEOF
14087
14088 fi
14089
14090 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
14091 case $ac_cv_c_uint8_t in #(
14092 no|yes) ;; #(
14093 *)
14094
14095 $as_echo "#define _UINT8_T 1" >>confdefs.h
14096
14097
14098 cat >>confdefs.h <<_ACEOF
14099 #define uint8_t $ac_cv_c_uint8_t
14100 _ACEOF
14101 ;;
14102 esac
14103
14104 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
14105 case $ac_cv_c_uint16_t in #(
14106 no|yes) ;; #(
14107 *)
14108
14109
14110 cat >>confdefs.h <<_ACEOF
14111 #define uint16_t $ac_cv_c_uint16_t
14112 _ACEOF
14113 ;;
14114 esac
14115
14116 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14117 case $ac_cv_c_uint32_t in #(
14118 no|yes) ;; #(
14119 *)
14120
14121 $as_echo "#define _UINT32_T 1" >>confdefs.h
14122
14123
14124 cat >>confdefs.h <<_ACEOF
14125 #define uint32_t $ac_cv_c_uint32_t
14126 _ACEOF
14127 ;;
14128 esac
14129
14130 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
14131 case $ac_cv_c_int32_t in #(
14132 no|yes) ;; #(
14133 *)
14134
14135 cat >>confdefs.h <<_ACEOF
14136 #define int32_t $ac_cv_c_int32_t
14137 _ACEOF
14138 ;;
14139 esac
14140
14141 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14142 case $ac_cv_c_uint64_t in #(
14143 no|yes) ;; #(
14144 *)
14145
14146 $as_echo "#define _UINT64_T 1" >>confdefs.h
14147
14148
14149 cat >>confdefs.h <<_ACEOF
14150 #define uint64_t $ac_cv_c_uint64_t
14151 _ACEOF
14152 ;;
14153 esac
14154
14155 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
14156 case $ac_cv_c_int64_t in #(
14157 no|yes) ;; #(
14158 *)
14159
14160 cat >>confdefs.h <<_ACEOF
14161 #define int64_t $ac_cv_c_int64_t
14162 _ACEOF
14163 ;;
14164 esac
14165
14166
14167 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
14168 if test "x$ac_cv_type_intptr_t" = xyes; then :
14169
14170 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
14171
14172 else
14173 for ac_type in 'int' 'long int' 'long long int'; do
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14176 $ac_includes_default
14177 int
14178 main ()
14179 {
14180 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14181 test_array [0] = 0;
14182 return test_array [0];
14183
14184 ;
14185 return 0;
14186 }
14187 _ACEOF
14188 if ac_fn_c_try_compile "$LINENO"; then :
14189
14190 cat >>confdefs.h <<_ACEOF
14191 #define intptr_t $ac_type
14192 _ACEOF
14193
14194 ac_type=
14195 fi
14196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14197 test -z "$ac_type" && break
14198 done
14199 fi
14200
14201
14202
14203 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14204 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14205
14206 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
14207
14208 else
14209 for ac_type in 'unsigned int' 'unsigned long int' \
14210 'unsigned long long int'; do
14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212 /* end confdefs.h. */
14213 $ac_includes_default
14214 int
14215 main ()
14216 {
14217 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14218 test_array [0] = 0;
14219 return test_array [0];
14220
14221 ;
14222 return 0;
14223 }
14224 _ACEOF
14225 if ac_fn_c_try_compile "$LINENO"; then :
14226
14227 cat >>confdefs.h <<_ACEOF
14228 #define uintptr_t $ac_type
14229 _ACEOF
14230
14231 ac_type=
14232 fi
14233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14234 test -z "$ac_type" && break
14235 done
14236 fi
14237
14238
14239
14240
14241
14242 for ac_header in $ac_header_list
14243 do :
14244 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14245 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14246 "
14247 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14248 cat >>confdefs.h <<_ACEOF
14249 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14250 _ACEOF
14251
14252 fi
14253
14254 done
14255
14256
14257
14258
14259
14260
14261
14262
14263 for ac_func in getpagesize
14264 do :
14265 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14266 if test "x$ac_cv_func_getpagesize" = xyes; then :
14267 cat >>confdefs.h <<_ACEOF
14268 #define HAVE_GETPAGESIZE 1
14269 _ACEOF
14270
14271 fi
14272 done
14273
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14275 $as_echo_n "checking for working mmap... " >&6; }
14276 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14277 $as_echo_n "(cached) " >&6
14278 else
14279 if test "$cross_compiling" = yes; then :
14280 ac_cv_func_mmap_fixed_mapped=no
14281 else
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14284 $ac_includes_default
14285 /* malloc might have been renamed as rpl_malloc. */
14286 #undef malloc
14287
14288 /* Thanks to Mike Haertel and Jim Avera for this test.
14289 Here is a matrix of mmap possibilities:
14290 mmap private not fixed
14291 mmap private fixed at somewhere currently unmapped
14292 mmap private fixed at somewhere already mapped
14293 mmap shared not fixed
14294 mmap shared fixed at somewhere currently unmapped
14295 mmap shared fixed at somewhere already mapped
14296 For private mappings, we should verify that changes cannot be read()
14297 back from the file, nor mmap's back from the file at a different
14298 address. (There have been systems where private was not correctly
14299 implemented like the infamous i386 svr4.0, and systems where the
14300 VM page cache was not coherent with the file system buffer cache
14301 like early versions of FreeBSD and possibly contemporary NetBSD.)
14302 For shared mappings, we should conversely verify that changes get
14303 propagated back to all the places they're supposed to be.
14304
14305 Grep wants private fixed already mapped.
14306 The main things grep needs to know about mmap are:
14307 * does it exist and is it safe to write into the mmap'd area
14308 * how to use it (BSD variants) */
14309
14310 #include <fcntl.h>
14311 #include <sys/mman.h>
14312
14313 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14314 char *malloc ();
14315 #endif
14316
14317 /* This mess was copied from the GNU getpagesize.h. */
14318 #ifndef HAVE_GETPAGESIZE
14319 # ifdef _SC_PAGESIZE
14320 # define getpagesize() sysconf(_SC_PAGESIZE)
14321 # else /* no _SC_PAGESIZE */
14322 # ifdef HAVE_SYS_PARAM_H
14323 # include <sys/param.h>
14324 # ifdef EXEC_PAGESIZE
14325 # define getpagesize() EXEC_PAGESIZE
14326 # else /* no EXEC_PAGESIZE */
14327 # ifdef NBPG
14328 # define getpagesize() NBPG * CLSIZE
14329 # ifndef CLSIZE
14330 # define CLSIZE 1
14331 # endif /* no CLSIZE */
14332 # else /* no NBPG */
14333 # ifdef NBPC
14334 # define getpagesize() NBPC
14335 # else /* no NBPC */
14336 # ifdef PAGESIZE
14337 # define getpagesize() PAGESIZE
14338 # endif /* PAGESIZE */
14339 # endif /* no NBPC */
14340 # endif /* no NBPG */
14341 # endif /* no EXEC_PAGESIZE */
14342 # else /* no HAVE_SYS_PARAM_H */
14343 # define getpagesize() 8192 /* punt totally */
14344 # endif /* no HAVE_SYS_PARAM_H */
14345 # endif /* no _SC_PAGESIZE */
14346
14347 #endif /* no HAVE_GETPAGESIZE */
14348
14349 int
14350 main ()
14351 {
14352 char *data, *data2, *data3;
14353 const char *cdata2;
14354 int i, pagesize;
14355 int fd, fd2;
14356
14357 pagesize = getpagesize ();
14358
14359 /* First, make a file with some known garbage in it. */
14360 data = (char *) malloc (pagesize);
14361 if (!data)
14362 return 1;
14363 for (i = 0; i < pagesize; ++i)
14364 *(data + i) = rand ();
14365 umask (0);
14366 fd = creat ("conftest.mmap", 0600);
14367 if (fd < 0)
14368 return 2;
14369 if (write (fd, data, pagesize) != pagesize)
14370 return 3;
14371 close (fd);
14372
14373 /* Next, check that the tail of a page is zero-filled. File must have
14374 non-zero length, otherwise we risk SIGBUS for entire page. */
14375 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14376 if (fd2 < 0)
14377 return 4;
14378 cdata2 = "";
14379 if (write (fd2, cdata2, 1) != 1)
14380 return 5;
14381 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14382 if (data2 == MAP_FAILED)
14383 return 6;
14384 for (i = 0; i < pagesize; ++i)
14385 if (*(data2 + i))
14386 return 7;
14387 close (fd2);
14388 if (munmap (data2, pagesize))
14389 return 8;
14390
14391 /* Next, try to mmap the file at a fixed address which already has
14392 something else allocated at it. If we can, also make sure that
14393 we see the same garbage. */
14394 fd = open ("conftest.mmap", O_RDWR);
14395 if (fd < 0)
14396 return 9;
14397 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14398 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14399 return 10;
14400 for (i = 0; i < pagesize; ++i)
14401 if (*(data + i) != *(data2 + i))
14402 return 11;
14403
14404 /* Finally, make sure that changes to the mapped area do not
14405 percolate back to the file as seen by read(). (This is a bug on
14406 some variants of i386 svr4.0.) */
14407 for (i = 0; i < pagesize; ++i)
14408 *(data2 + i) = *(data2 + i) + 1;
14409 data3 = (char *) malloc (pagesize);
14410 if (!data3)
14411 return 12;
14412 if (read (fd, data3, pagesize) != pagesize)
14413 return 13;
14414 for (i = 0; i < pagesize; ++i)
14415 if (*(data + i) != *(data3 + i))
14416 return 14;
14417 close (fd);
14418 return 0;
14419 }
14420 _ACEOF
14421 if ac_fn_c_try_run "$LINENO"; then :
14422 ac_cv_func_mmap_fixed_mapped=yes
14423 else
14424 ac_cv_func_mmap_fixed_mapped=no
14425 fi
14426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14427 conftest.$ac_objext conftest.beam conftest.$ac_ext
14428 fi
14429
14430 fi
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14432 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14433 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14434
14435 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14436
14437 fi
14438 rm -f conftest.mmap conftest.txt
14439
14440 for ac_header in vfork.h
14441 do :
14442 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14443 if test "x$ac_cv_header_vfork_h" = xyes; then :
14444 cat >>confdefs.h <<_ACEOF
14445 #define HAVE_VFORK_H 1
14446 _ACEOF
14447
14448 fi
14449
14450 done
14451
14452 for ac_func in fork vfork
14453 do :
14454 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14455 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14456 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14457 cat >>confdefs.h <<_ACEOF
14458 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14459 _ACEOF
14460
14461 fi
14462 done
14463
14464 if test "x$ac_cv_func_fork" = xyes; then
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14466 $as_echo_n "checking for working fork... " >&6; }
14467 if ${ac_cv_func_fork_works+:} false; then :
14468 $as_echo_n "(cached) " >&6
14469 else
14470 if test "$cross_compiling" = yes; then :
14471 ac_cv_func_fork_works=cross
14472 else
14473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14474 /* end confdefs.h. */
14475 $ac_includes_default
14476 int
14477 main ()
14478 {
14479
14480 /* By Ruediger Kuhlmann. */
14481 return fork () < 0;
14482
14483 ;
14484 return 0;
14485 }
14486 _ACEOF
14487 if ac_fn_c_try_run "$LINENO"; then :
14488 ac_cv_func_fork_works=yes
14489 else
14490 ac_cv_func_fork_works=no
14491 fi
14492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14493 conftest.$ac_objext conftest.beam conftest.$ac_ext
14494 fi
14495
14496 fi
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14498 $as_echo "$ac_cv_func_fork_works" >&6; }
14499
14500 else
14501 ac_cv_func_fork_works=$ac_cv_func_fork
14502 fi
14503 if test "x$ac_cv_func_fork_works" = xcross; then
14504 case $host in
14505 *-*-amigaos* | *-*-msdosdjgpp*)
14506 # Override, as these systems have only a dummy fork() stub
14507 ac_cv_func_fork_works=no
14508 ;;
14509 *)
14510 ac_cv_func_fork_works=yes
14511 ;;
14512 esac
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14514 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14515 fi
14516 ac_cv_func_vfork_works=$ac_cv_func_vfork
14517 if test "x$ac_cv_func_vfork" = xyes; then
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14519 $as_echo_n "checking for working vfork... " >&6; }
14520 if ${ac_cv_func_vfork_works+:} false; then :
14521 $as_echo_n "(cached) " >&6
14522 else
14523 if test "$cross_compiling" = yes; then :
14524 ac_cv_func_vfork_works=cross
14525 else
14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527 /* end confdefs.h. */
14528 /* Thanks to Paul Eggert for this test. */
14529 $ac_includes_default
14530 #include <sys/wait.h>
14531 #ifdef HAVE_VFORK_H
14532 # include <vfork.h>
14533 #endif
14534 /* On some sparc systems, changes by the child to local and incoming
14535 argument registers are propagated back to the parent. The compiler
14536 is told about this with #include <vfork.h>, but some compilers
14537 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14538 static variable whose address is put into a register that is
14539 clobbered by the vfork. */
14540 static void
14541 #ifdef __cplusplus
14542 sparc_address_test (int arg)
14543 # else
14544 sparc_address_test (arg) int arg;
14545 #endif
14546 {
14547 static pid_t child;
14548 if (!child) {
14549 child = vfork ();
14550 if (child < 0) {
14551 perror ("vfork");
14552 _exit(2);
14553 }
14554 if (!child) {
14555 arg = getpid();
14556 write(-1, "", 0);
14557 _exit (arg);
14558 }
14559 }
14560 }
14561
14562 int
14563 main ()
14564 {
14565 pid_t parent = getpid ();
14566 pid_t child;
14567
14568 sparc_address_test (0);
14569
14570 child = vfork ();
14571
14572 if (child == 0) {
14573 /* Here is another test for sparc vfork register problems. This
14574 test uses lots of local variables, at least as many local
14575 variables as main has allocated so far including compiler
14576 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14577 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14578 reuse the register of parent for one of the local variables,
14579 since it will think that parent can't possibly be used any more
14580 in this routine. Assigning to the local variable will thus
14581 munge parent in the parent process. */
14582 pid_t
14583 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14584 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14585 /* Convince the compiler that p..p7 are live; otherwise, it might
14586 use the same hardware register for all 8 local variables. */
14587 if (p != p1 || p != p2 || p != p3 || p != p4
14588 || p != p5 || p != p6 || p != p7)
14589 _exit(1);
14590
14591 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14592 from child file descriptors. If the child closes a descriptor
14593 before it execs or exits, this munges the parent's descriptor
14594 as well. Test for this by closing stdout in the child. */
14595 _exit(close(fileno(stdout)) != 0);
14596 } else {
14597 int status;
14598 struct stat st;
14599
14600 while (wait(&status) != child)
14601 ;
14602 return (
14603 /* Was there some problem with vforking? */
14604 child < 0
14605
14606 /* Did the child fail? (This shouldn't happen.) */
14607 || status
14608
14609 /* Did the vfork/compiler bug occur? */
14610 || parent != getpid()
14611
14612 /* Did the file descriptor bug occur? */
14613 || fstat(fileno(stdout), &st) != 0
14614 );
14615 }
14616 }
14617 _ACEOF
14618 if ac_fn_c_try_run "$LINENO"; then :
14619 ac_cv_func_vfork_works=yes
14620 else
14621 ac_cv_func_vfork_works=no
14622 fi
14623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14624 conftest.$ac_objext conftest.beam conftest.$ac_ext
14625 fi
14626
14627 fi
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14629 $as_echo "$ac_cv_func_vfork_works" >&6; }
14630
14631 fi;
14632 if test "x$ac_cv_func_fork_works" = xcross; then
14633 ac_cv_func_vfork_works=$ac_cv_func_vfork
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14635 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14636 fi
14637
14638 if test "x$ac_cv_func_vfork_works" = xyes; then
14639
14640 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14641
14642 else
14643
14644 $as_echo "#define vfork fork" >>confdefs.h
14645
14646 fi
14647 if test "x$ac_cv_func_fork_works" = xyes; then
14648
14649 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14650
14651 fi
14652
14653
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
14655 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
14656 if ${ac_cv_func_mbrtowc+:} false; then :
14657 $as_echo_n "(cached) " >&6
14658 else
14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660 /* end confdefs.h. */
14661 #include <wchar.h>
14662 int
14663 main ()
14664 {
14665 wchar_t wc;
14666 char const s[] = "";
14667 size_t n = 1;
14668 mbstate_t state;
14669 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
14670 ;
14671 return 0;
14672 }
14673 _ACEOF
14674 if ac_fn_c_try_link "$LINENO"; then :
14675 ac_cv_func_mbrtowc=yes
14676 else
14677 ac_cv_func_mbrtowc=no
14678 fi
14679 rm -f core conftest.err conftest.$ac_objext \
14680 conftest$ac_exeext conftest.$ac_ext
14681 fi
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
14683 $as_echo "$ac_cv_func_mbrtowc" >&6; }
14684 if test $ac_cv_func_mbrtowc = yes; then
14685
14686 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
14687
14688 fi
14689
14690
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
14692 $as_echo_n "checking for gcc compiler warnings... " >&6; }
14693 # Check whether --enable-warnings was given.
14694 if test "${enable_warnings+set}" = set; then :
14695 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14697 $as_echo "no" >&6; }
14698 WARNINGS=
14699 else
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14701 $as_echo "yes" >&6; }
14702 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14703 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14704 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14705 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14706 fi
14707 else
14708
14709 if test "$GCC" = yes; then
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14711 $as_echo "yes" >&6; }
14712 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
14713 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
14714 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
14715 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
14716 else
14717 WARNINGS=
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14719 $as_echo "no" >&6; }
14720 fi
14721 fi
14722
14723
14724 for ac_func in strndup mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale memmem
14725 do :
14726 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14727 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14728 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14729 cat >>confdefs.h <<_ACEOF
14730 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14731 _ACEOF
14732
14733 fi
14734 done
14735
14736
14737 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
14738 if test "x$ac_cv_func_getopt_long" = xyes; then :
14739 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
14740
14741 else
14742 case " $LIBOBJS " in
14743 *" getopt_long.$ac_objext "* ) ;;
14744 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
14745 ;;
14746 esac
14747
14748 fi
14749
14750 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
14751 if test "x$ac_cv_func_asprintf" = xyes; then :
14752 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
14753
14754 else
14755 case " $LIBOBJS " in
14756 *" asprintf.$ac_objext "* ) ;;
14757 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
14758 ;;
14759 esac
14760
14761 fi
14762
14763 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
14764 if test "x$ac_cv_func_vasprintf" = xyes; then :
14765 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
14766
14767 else
14768 case " $LIBOBJS " in
14769 *" vasprintf.$ac_objext "* ) ;;
14770 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
14771 ;;
14772 esac
14773
14774 fi
14775
14776 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
14777 if test "x$ac_cv_func_strlcpy" = xyes; then :
14778 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
14779
14780 else
14781 case " $LIBOBJS " in
14782 *" strlcpy.$ac_objext "* ) ;;
14783 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
14784 ;;
14785 esac
14786
14787 fi
14788
14789 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
14790 if test "x$ac_cv_func_strlcat" = xyes; then :
14791 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
14792
14793 else
14794 case " $LIBOBJS " in
14795 *" strlcat.$ac_objext "* ) ;;
14796 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
14797 ;;
14798 esac
14799
14800 fi
14801
14802 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
14803 if test "x$ac_cv_func_getline" = xyes; then :
14804 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
14805
14806 else
14807 case " $LIBOBJS " in
14808 *" getline.$ac_objext "* ) ;;
14809 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
14810 ;;
14811 esac
14812
14813 fi
14814
14815 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
14816 if test "x$ac_cv_func_ctime_r" = xyes; then :
14817 $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
14818
14819 else
14820 case " $LIBOBJS " in
14821 *" ctime_r.$ac_objext "* ) ;;
14822 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
14823 ;;
14824 esac
14825
14826 fi
14827
14828 ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
14829 if test "x$ac_cv_func_asctime_r" = xyes; then :
14830 $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
14831
14832 else
14833 case " $LIBOBJS " in
14834 *" asctime_r.$ac_objext "* ) ;;
14835 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
14836 ;;
14837 esac
14838
14839 fi
14840
14841 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
14842 if test "x$ac_cv_func_localtime_r" = xyes; then :
14843 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
14844
14845 else
14846 case " $LIBOBJS " in
14847 *" localtime_r.$ac_objext "* ) ;;
14848 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
14849 ;;
14850 esac
14851
14852 fi
14853
14854 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
14855 if test "x$ac_cv_func_gmtime_r" = xyes; then :
14856 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
14857
14858 else
14859 case " $LIBOBJS " in
14860 *" gmtime_r.$ac_objext "* ) ;;
14861 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
14862 ;;
14863 esac
14864
14865 fi
14866
14867 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
14868 if test "x$ac_cv_func_pread" = xyes; then :
14869 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
14870
14871 else
14872 case " $LIBOBJS " in
14873 *" pread.$ac_objext "* ) ;;
14874 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
14875 ;;
14876 esac
14877
14878 fi
14879
14880 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
14881 if test "x$ac_cv_func_strcasestr" = xyes; then :
14882 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
14883
14884 else
14885 case " $LIBOBJS " in
14886 *" strcasestr.$ac_objext "* ) ;;
14887 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
14888 ;;
14889 esac
14890
14891 fi
14892
14893 ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
14894 if test "x$ac_cv_func_fmtcheck" = xyes; then :
14895 $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h
14896
14897 else
14898 case " $LIBOBJS " in
14899 *" fmtcheck.$ac_objext "* ) ;;
14900 *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
14901 ;;
14902 esac
14903
14904 fi
14905
14906 ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
14907 if test "x$ac_cv_func_dprintf" = xyes; then :
14908 $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
14909
14910 else
14911 case " $LIBOBJS " in
14912 *" dprintf.$ac_objext "* ) ;;
14913 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
14914 ;;
14915 esac
14916
14917 fi
14918
14919
14920
14921 if test "$enable_zlib" != "no"; then
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
14923 $as_echo_n "checking for gzopen in -lz... " >&6; }
14924 if ${ac_cv_lib_z_gzopen+:} false; then :
14925 $as_echo_n "(cached) " >&6
14926 else
14927 ac_check_lib_save_LIBS=$LIBS
14928 LIBS="-lz $LIBS"
14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14931
14932 /* Override any GCC internal prototype to avoid an error.
14933 Use char because int might match the return type of a GCC
14934 builtin and then its argument prototype would still apply. */
14935 #ifdef __cplusplus
14936 extern "C"
14937 #endif
14938 char gzopen ();
14939 int
14940 main ()
14941 {
14942 return gzopen ();
14943 ;
14944 return 0;
14945 }
14946 _ACEOF
14947 if ac_fn_c_try_link "$LINENO"; then :
14948 ac_cv_lib_z_gzopen=yes
14949 else
14950 ac_cv_lib_z_gzopen=no
14951 fi
14952 rm -f core conftest.err conftest.$ac_objext \
14953 conftest$ac_exeext conftest.$ac_ext
14954 LIBS=$ac_check_lib_save_LIBS
14955 fi
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
14957 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
14958 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
14959 cat >>confdefs.h <<_ACEOF
14960 #define HAVE_LIBZ 1
14961 _ACEOF
14962
14963 LIBS="-lz $LIBS"
14964
14965 fi
14966
14967 fi
14968 if test "$enable_bzlib" != "no"; then
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
14970 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
14971 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
14972 $as_echo_n "(cached) " >&6
14973 else
14974 ac_check_lib_save_LIBS=$LIBS
14975 LIBS="-lbz2 $LIBS"
14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h. */
14978
14979 /* Override any GCC internal prototype to avoid an error.
14980 Use char because int might match the return type of a GCC
14981 builtin and then its argument prototype would still apply. */
14982 #ifdef __cplusplus
14983 extern "C"
14984 #endif
14985 char BZ2_bzCompressInit ();
14986 int
14987 main ()
14988 {
14989 return BZ2_bzCompressInit ();
14990 ;
14991 return 0;
14992 }
14993 _ACEOF
14994 if ac_fn_c_try_link "$LINENO"; then :
14995 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
14996 else
14997 ac_cv_lib_bz2_BZ2_bzCompressInit=no
14998 fi
14999 rm -f core conftest.err conftest.$ac_objext \
15000 conftest$ac_exeext conftest.$ac_ext
15001 LIBS=$ac_check_lib_save_LIBS
15002 fi
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15004 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15005 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
15006 cat >>confdefs.h <<_ACEOF
15007 #define HAVE_LIBBZ2 1
15008 _ACEOF
15009
15010 LIBS="-lbz2 $LIBS"
15011
15012 fi
15013
15014 fi
15015 if test "$enable_xzlib" != "no"; then
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
15017 $as_echo_n "checking for lzma_stream_decoder in -llzma... " >&6; }
15018 if ${ac_cv_lib_lzma_lzma_stream_decoder+:} false; then :
15019 $as_echo_n "(cached) " >&6
15020 else
15021 ac_check_lib_save_LIBS=$LIBS
15022 LIBS="-llzma $LIBS"
15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024 /* end confdefs.h. */
15025
15026 /* Override any GCC internal prototype to avoid an error.
15027 Use char because int might match the return type of a GCC
15028 builtin and then its argument prototype would still apply. */
15029 #ifdef __cplusplus
15030 extern "C"
15031 #endif
15032 char lzma_stream_decoder ();
15033 int
15034 main ()
15035 {
15036 return lzma_stream_decoder ();
15037 ;
15038 return 0;
15039 }
15040 _ACEOF
15041 if ac_fn_c_try_link "$LINENO"; then :
15042 ac_cv_lib_lzma_lzma_stream_decoder=yes
15043 else
15044 ac_cv_lib_lzma_lzma_stream_decoder=no
15045 fi
15046 rm -f core conftest.err conftest.$ac_objext \
15047 conftest$ac_exeext conftest.$ac_ext
15048 LIBS=$ac_check_lib_save_LIBS
15049 fi
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
15051 $as_echo "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
15052 if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes; then :
15053 cat >>confdefs.h <<_ACEOF
15054 #define HAVE_LIBLZMA 1
15055 _ACEOF
15056
15057 LIBS="-llzma $LIBS"
15058
15059 fi
15060
15061 fi
15062 if test "$enable_libseccomp" != "no"; then
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
15064 $as_echo_n "checking for seccomp_init in -lseccomp... " >&6; }
15065 if ${ac_cv_lib_seccomp_seccomp_init+:} false; then :
15066 $as_echo_n "(cached) " >&6
15067 else
15068 ac_check_lib_save_LIBS=$LIBS
15069 LIBS="-lseccomp $LIBS"
15070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15071 /* end confdefs.h. */
15072
15073 /* Override any GCC internal prototype to avoid an error.
15074 Use char because int might match the return type of a GCC
15075 builtin and then its argument prototype would still apply. */
15076 #ifdef __cplusplus
15077 extern "C"
15078 #endif
15079 char seccomp_init ();
15080 int
15081 main ()
15082 {
15083 return seccomp_init ();
15084 ;
15085 return 0;
15086 }
15087 _ACEOF
15088 if ac_fn_c_try_link "$LINENO"; then :
15089 ac_cv_lib_seccomp_seccomp_init=yes
15090 else
15091 ac_cv_lib_seccomp_seccomp_init=no
15092 fi
15093 rm -f core conftest.err conftest.$ac_objext \
15094 conftest$ac_exeext conftest.$ac_ext
15095 LIBS=$ac_check_lib_save_LIBS
15096 fi
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
15098 $as_echo "$ac_cv_lib_seccomp_seccomp_init" >&6; }
15099 if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes; then :
15100 cat >>confdefs.h <<_ACEOF
15101 #define HAVE_LIBSECCOMP 1
15102 _ACEOF
15103
15104 LIBS="-lseccomp $LIBS"
15105
15106 fi
15107
15108 fi
15109 if test "$MINGW" = 1; then
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
15111 $as_echo_n "checking for regexec in -lgnurx... " >&6; }
15112 if ${ac_cv_lib_gnurx_regexec+:} false; then :
15113 $as_echo_n "(cached) " >&6
15114 else
15115 ac_check_lib_save_LIBS=$LIBS
15116 LIBS="-lgnurx $LIBS"
15117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h. */
15119
15120 /* Override any GCC internal prototype to avoid an error.
15121 Use char because int might match the return type of a GCC
15122 builtin and then its argument prototype would still apply. */
15123 #ifdef __cplusplus
15124 extern "C"
15125 #endif
15126 char regexec ();
15127 int
15128 main ()
15129 {
15130 return regexec ();
15131 ;
15132 return 0;
15133 }
15134 _ACEOF
15135 if ac_fn_c_try_link "$LINENO"; then :
15136 ac_cv_lib_gnurx_regexec=yes
15137 else
15138 ac_cv_lib_gnurx_regexec=no
15139 fi
15140 rm -f core conftest.err conftest.$ac_objext \
15141 conftest$ac_exeext conftest.$ac_ext
15142 LIBS=$ac_check_lib_save_LIBS
15143 fi
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
15145 $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
15146 if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
15147 cat >>confdefs.h <<_ACEOF
15148 #define HAVE_LIBGNURX 1
15149 _ACEOF
15150
15151 LIBS="-lgnurx $LIBS"
15152
15153 else
15154 as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
15155 fi
15156
15157 fi
15158
15159 if test "$cross_compiling" = yes; then
15160 IS_CROSS_COMPILE_TRUE=
15161 IS_CROSS_COMPILE_FALSE='#'
15162 else
15163 IS_CROSS_COMPILE_TRUE='#'
15164 IS_CROSS_COMPILE_FALSE=
15165 fi
15166
15167
15168 if test "$enable_zlib" = "yes"; then
15169 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
15170 as_fn_error $? "zlib support requested but not found" "$LINENO" 5
15171 fi
15172 fi
15173 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
15174
15175 $as_echo "#define ZLIBSUPPORT 1" >>confdefs.h
15176
15177 fi
15178 if test "$enable_bzlib" = "yes"; then
15179 if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then
15180 as_fn_error $? "bzlib support requested but not found" "$LINENO" 5
15181 fi
15182 fi
15183 if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then
15184
15185 $as_echo "#define BZLIBSUPPORT 1" >>confdefs.h
15186
15187 fi
15188 if test "$enable_xzlib" = "yes"; then
15189 if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then
15190 as_fn_error $? "xzlib support requested but not found" "$LINENO" 5
15191 fi
15192 fi
15193 if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then
15194
15195 $as_echo "#define XZLIBSUPPORT 1" >>confdefs.h
15196
15197 fi
15198
15199 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
15200
15201 cat >confcache <<\_ACEOF
15202 # This file is a shell script that caches the results of configure
15203 # tests run on this system so they can be shared between configure
15204 # scripts and configure runs, see configure's option --config-cache.
15205 # It is not useful on other systems. If it contains results you don't
15206 # want to keep, you may remove or edit it.
15207 #
15208 # config.status only pays attention to the cache file if you give it
15209 # the --recheck option to rerun configure.
15210 #
15211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15213 # following values.
15214
15215 _ACEOF
15216
15217 # The following way of writing the cache mishandles newlines in values,
15218 # but we know of no workaround that is simple, portable, and efficient.
15219 # So, we kill variables containing newlines.
15220 # Ultrix sh set writes to stderr and can't be redirected directly,
15221 # and sets the high bit in the cache file unless we assign to the vars.
15222 (
15223 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15224 eval ac_val=\$$ac_var
15225 case $ac_val in #(
15226 *${as_nl}*)
15227 case $ac_var in #(
15228 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15229 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15230 esac
15231 case $ac_var in #(
15232 _ | IFS | as_nl) ;; #(
15233 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15234 *) { eval $ac_var=; unset $ac_var;} ;;
15235 esac ;;
15236 esac
15237 done
15238
15239 (set) 2>&1 |
15240 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15241 *${as_nl}ac_space=\ *)
15242 # `set' does not quote correctly, so add quotes: double-quote
15243 # substitution turns \\\\ into \\, and sed turns \\ into \.
15244 sed -n \
15245 "s/'/'\\\\''/g;
15246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15247 ;; #(
15248 *)
15249 # `set' quotes correctly as required by POSIX, so do not add quotes.
15250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15251 ;;
15252 esac |
15253 sort
15254 ) |
15255 sed '
15256 /^ac_cv_env_/b end
15257 t clear
15258 :clear
15259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15260 t end
15261 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15262 :end' >>confcache
15263 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15264 if test -w "$cache_file"; then
15265 if test "x$cache_file" != "x/dev/null"; then
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15267 $as_echo "$as_me: updating cache $cache_file" >&6;}
15268 if test ! -f "$cache_file" || test -h "$cache_file"; then
15269 cat confcache >"$cache_file"
15270 else
15271 case $cache_file in #(
15272 */* | ?:*)
15273 mv -f confcache "$cache_file"$$ &&
15274 mv -f "$cache_file"$$ "$cache_file" ;; #(
15275 *)
15276 mv -f confcache "$cache_file" ;;
15277 esac
15278 fi
15279 fi
15280 else
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15282 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15283 fi
15284 fi
15285 rm -f confcache
15286
15287 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15288 # Let make expand exec_prefix.
15289 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15290
15291 DEFS=-DHAVE_CONFIG_H
15292
15293 ac_libobjs=
15294 ac_ltlibobjs=
15295 U=
15296 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15297 # 1. Remove the extension, and $U if already installed.
15298 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15299 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15300 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15301 # will be set to the directory where LIBOBJS objects are built.
15302 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15303 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15304 done
15305 LIBOBJS=$ac_libobjs
15306
15307 LTLIBOBJS=$ac_ltlibobjs
15308
15309
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15311 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15312 if test -n "$am_sleep_pid"; then
15313 # Hide warnings about reused PIDs.
15314 wait $am_sleep_pid 2>/dev/null
15315 fi
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15317 $as_echo "done" >&6; }
15318 if test -n "$EXEEXT"; then
15319 am__EXEEXT_TRUE=
15320 am__EXEEXT_FALSE='#'
15321 else
15322 am__EXEEXT_TRUE='#'
15323 am__EXEEXT_FALSE=
15324 fi
15325
15326 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15327 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15329 fi
15330 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
15331 as_fn_error $? "conditional \"MINGW\" was never defined.
15332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15333 fi
15334 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
15335 as_fn_error $? "conditional \"FSECT5\" was never defined.
15336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15337 fi
15338 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15339 as_fn_error $? "conditional \"AMDEP\" was never defined.
15340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15341 fi
15342 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15343 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15345 fi
15346
15347 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
15348 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
15349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15350 fi
15351
15352 : "${CONFIG_STATUS=./config.status}"
15353 ac_write_fail=0
15354 ac_clean_files_save=$ac_clean_files
15355 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15357 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15358 as_write_fail=0
15359 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15360 #! $SHELL
15361 # Generated by $as_me.
15362 # Run this file to recreate the current configuration.
15363 # Compiler output produced by configure, useful for debugging
15364 # configure, is in config.log if it exists.
15365
15366 debug=false
15367 ac_cs_recheck=false
15368 ac_cs_silent=false
15369
15370 SHELL=\${CONFIG_SHELL-$SHELL}
15371 export SHELL
15372 _ASEOF
15373 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15374 ## -------------------- ##
15375 ## M4sh Initialization. ##
15376 ## -------------------- ##
15377
15378 # Be more Bourne compatible
15379 DUALCASE=1; export DUALCASE # for MKS sh
15380 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15381 emulate sh
15382 NULLCMD=:
15383 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15384 # is contrary to our usage. Disable this feature.
15385 alias -g '${1+"$@"}'='"$@"'
15386 setopt NO_GLOB_SUBST
15387 else
15388 case `(set -o) 2>/dev/null` in #(
15389 *posix*) :
15390 set -o posix ;; #(
15391 *) :
15392 ;;
15393 esac
15394 fi
15395
15396
15397 as_nl='
15398 '
15399 export as_nl
15400 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15401 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15402 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15403 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15404 # Prefer a ksh shell builtin over an external printf program on Solaris,
15405 # but without wasting forks for bash or zsh.
15406 if test -z "$BASH_VERSION$ZSH_VERSION" \
15407 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15408 as_echo='print -r --'
15409 as_echo_n='print -rn --'
15410 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15411 as_echo='printf %s\n'
15412 as_echo_n='printf %s'
15413 else
15414 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15415 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15416 as_echo_n='/usr/ucb/echo -n'
15417 else
15418 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15419 as_echo_n_body='eval
15420 arg=$1;
15421 case $arg in #(
15422 *"$as_nl"*)
15423 expr "X$arg" : "X\\(.*\\)$as_nl";
15424 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15425 esac;
15426 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15427 '
15428 export as_echo_n_body
15429 as_echo_n='sh -c $as_echo_n_body as_echo'
15430 fi
15431 export as_echo_body
15432 as_echo='sh -c $as_echo_body as_echo'
15433 fi
15434
15435 # The user is always right.
15436 if test "${PATH_SEPARATOR+set}" != set; then
15437 PATH_SEPARATOR=:
15438 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15439 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15440 PATH_SEPARATOR=';'
15441 }
15442 fi
15443
15444
15445 # IFS
15446 # We need space, tab and new line, in precisely that order. Quoting is
15447 # there to prevent editors from complaining about space-tab.
15448 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15449 # splitting by setting IFS to empty value.)
15450 IFS=" "" $as_nl"
15451
15452 # Find who we are. Look in the path if we contain no directory separator.
15453 as_myself=
15454 case $0 in #((
15455 *[\\/]* ) as_myself=$0 ;;
15456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15457 for as_dir in $PATH
15458 do
15459 IFS=$as_save_IFS
15460 test -z "$as_dir" && as_dir=.
15461 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15462 done
15463 IFS=$as_save_IFS
15464
15465 ;;
15466 esac
15467 # We did not find ourselves, most probably we were run as `sh COMMAND'
15468 # in which case we are not to be found in the path.
15469 if test "x$as_myself" = x; then
15470 as_myself=$0
15471 fi
15472 if test ! -f "$as_myself"; then
15473 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15474 exit 1
15475 fi
15476
15477 # Unset variables that we do not need and which cause bugs (e.g. in
15478 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15479 # suppresses any "Segmentation fault" message there. '((' could
15480 # trigger a bug in pdksh 5.2.14.
15481 for as_var in BASH_ENV ENV MAIL MAILPATH
15482 do eval test x\${$as_var+set} = xset \
15483 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15484 done
15485 PS1='$ '
15486 PS2='> '
15487 PS4='+ '
15488
15489 # NLS nuisances.
15490 LC_ALL=C
15491 export LC_ALL
15492 LANGUAGE=C
15493 export LANGUAGE
15494
15495 # CDPATH.
15496 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15497
15498
15499 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15500 # ----------------------------------------
15501 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15502 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15503 # script with STATUS, using 1 if that was 0.
15504 as_fn_error ()
15505 {
15506 as_status=$1; test $as_status -eq 0 && as_status=1
15507 if test "$4"; then
15508 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15509 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15510 fi
15511 $as_echo "$as_me: error: $2" >&2
15512 as_fn_exit $as_status
15513 } # as_fn_error
15514
15515
15516 # as_fn_set_status STATUS
15517 # -----------------------
15518 # Set $? to STATUS, without forking.
15519 as_fn_set_status ()
15520 {
15521 return $1
15522 } # as_fn_set_status
15523
15524 # as_fn_exit STATUS
15525 # -----------------
15526 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15527 as_fn_exit ()
15528 {
15529 set +e
15530 as_fn_set_status $1
15531 exit $1
15532 } # as_fn_exit
15533
15534 # as_fn_unset VAR
15535 # ---------------
15536 # Portably unset VAR.
15537 as_fn_unset ()
15538 {
15539 { eval $1=; unset $1;}
15540 }
15541 as_unset=as_fn_unset
15542 # as_fn_append VAR VALUE
15543 # ----------------------
15544 # Append the text in VALUE to the end of the definition contained in VAR. Take
15545 # advantage of any shell optimizations that allow amortized linear growth over
15546 # repeated appends, instead of the typical quadratic growth present in naive
15547 # implementations.
15548 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15549 eval 'as_fn_append ()
15550 {
15551 eval $1+=\$2
15552 }'
15553 else
15554 as_fn_append ()
15555 {
15556 eval $1=\$$1\$2
15557 }
15558 fi # as_fn_append
15559
15560 # as_fn_arith ARG...
15561 # ------------------
15562 # Perform arithmetic evaluation on the ARGs, and store the result in the
15563 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15564 # must be portable across $(()) and expr.
15565 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15566 eval 'as_fn_arith ()
15567 {
15568 as_val=$(( $* ))
15569 }'
15570 else
15571 as_fn_arith ()
15572 {
15573 as_val=`expr "$@" || test $? -eq 1`
15574 }
15575 fi # as_fn_arith
15576
15577
15578 if expr a : '\(a\)' >/dev/null 2>&1 &&
15579 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15580 as_expr=expr
15581 else
15582 as_expr=false
15583 fi
15584
15585 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15586 as_basename=basename
15587 else
15588 as_basename=false
15589 fi
15590
15591 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15592 as_dirname=dirname
15593 else
15594 as_dirname=false
15595 fi
15596
15597 as_me=`$as_basename -- "$0" ||
15598 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15599 X"$0" : 'X\(//\)$' \| \
15600 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15601 $as_echo X/"$0" |
15602 sed '/^.*\/\([^/][^/]*\)\/*$/{
15603 s//\1/
15604 q
15605 }
15606 /^X\/\(\/\/\)$/{
15607 s//\1/
15608 q
15609 }
15610 /^X\/\(\/\).*/{
15611 s//\1/
15612 q
15613 }
15614 s/.*/./; q'`
15615
15616 # Avoid depending upon Character Ranges.
15617 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15618 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15619 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15620 as_cr_digits='0123456789'
15621 as_cr_alnum=$as_cr_Letters$as_cr_digits
15622
15623 ECHO_C= ECHO_N= ECHO_T=
15624 case `echo -n x` in #(((((
15625 -n*)
15626 case `echo 'xy\c'` in
15627 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15628 xy) ECHO_C='\c';;
15629 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15630 ECHO_T=' ';;
15631 esac;;
15632 *)
15633 ECHO_N='-n';;
15634 esac
15635
15636 rm -f conf$$ conf$$.exe conf$$.file
15637 if test -d conf$$.dir; then
15638 rm -f conf$$.dir/conf$$.file
15639 else
15640 rm -f conf$$.dir
15641 mkdir conf$$.dir 2>/dev/null
15642 fi
15643 if (echo >conf$$.file) 2>/dev/null; then
15644 if ln -s conf$$.file conf$$ 2>/dev/null; then
15645 as_ln_s='ln -s'
15646 # ... but there are two gotchas:
15647 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15648 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15649 # In both cases, we have to default to `cp -pR'.
15650 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15651 as_ln_s='cp -pR'
15652 elif ln conf$$.file conf$$ 2>/dev/null; then
15653 as_ln_s=ln
15654 else
15655 as_ln_s='cp -pR'
15656 fi
15657 else
15658 as_ln_s='cp -pR'
15659 fi
15660 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15661 rmdir conf$$.dir 2>/dev/null
15662
15663
15664 # as_fn_mkdir_p
15665 # -------------
15666 # Create "$as_dir" as a directory, including parents if necessary.
15667 as_fn_mkdir_p ()
15668 {
15669
15670 case $as_dir in #(
15671 -*) as_dir=./$as_dir;;
15672 esac
15673 test -d "$as_dir" || eval $as_mkdir_p || {
15674 as_dirs=
15675 while :; do
15676 case $as_dir in #(
15677 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15678 *) as_qdir=$as_dir;;
15679 esac
15680 as_dirs="'$as_qdir' $as_dirs"
15681 as_dir=`$as_dirname -- "$as_dir" ||
15682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15683 X"$as_dir" : 'X\(//\)[^/]' \| \
15684 X"$as_dir" : 'X\(//\)$' \| \
15685 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15686 $as_echo X"$as_dir" |
15687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15688 s//\1/
15689 q
15690 }
15691 /^X\(\/\/\)[^/].*/{
15692 s//\1/
15693 q
15694 }
15695 /^X\(\/\/\)$/{
15696 s//\1/
15697 q
15698 }
15699 /^X\(\/\).*/{
15700 s//\1/
15701 q
15702 }
15703 s/.*/./; q'`
15704 test -d "$as_dir" && break
15705 done
15706 test -z "$as_dirs" || eval "mkdir $as_dirs"
15707 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15708
15709
15710 } # as_fn_mkdir_p
15711 if mkdir -p . 2>/dev/null; then
15712 as_mkdir_p='mkdir -p "$as_dir"'
15713 else
15714 test -d ./-p && rmdir ./-p
15715 as_mkdir_p=false
15716 fi
15717
15718
15719 # as_fn_executable_p FILE
15720 # -----------------------
15721 # Test if FILE is an executable regular file.
15722 as_fn_executable_p ()
15723 {
15724 test -f "$1" && test -x "$1"
15725 } # as_fn_executable_p
15726 as_test_x='test -x'
15727 as_executable_p=as_fn_executable_p
15728
15729 # Sed expression to map a string onto a valid CPP name.
15730 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15731
15732 # Sed expression to map a string onto a valid variable name.
15733 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15734
15735
15736 exec 6>&1
15737 ## ----------------------------------- ##
15738 ## Main body of $CONFIG_STATUS script. ##
15739 ## ----------------------------------- ##
15740 _ASEOF
15741 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15742
15743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15744 # Save the log message, to keep $0 and so on meaningful, and to
15745 # report actual input values of CONFIG_FILES etc. instead of their
15746 # values after options handling.
15747 ac_log="
15748 This file was extended by file $as_me 5.38, which was
15749 generated by GNU Autoconf 2.69. Invocation command line was
15750
15751 CONFIG_FILES = $CONFIG_FILES
15752 CONFIG_HEADERS = $CONFIG_HEADERS
15753 CONFIG_LINKS = $CONFIG_LINKS
15754 CONFIG_COMMANDS = $CONFIG_COMMANDS
15755 $ $0 $@
15756
15757 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15758 "
15759
15760 _ACEOF
15761
15762 case $ac_config_files in *"
15763 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15764 esac
15765
15766 case $ac_config_headers in *"
15767 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15768 esac
15769
15770
15771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15772 # Files that config.status was made for.
15773 config_files="$ac_config_files"
15774 config_headers="$ac_config_headers"
15775 config_commands="$ac_config_commands"
15776
15777 _ACEOF
15778
15779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15780 ac_cs_usage="\
15781 \`$as_me' instantiates files and other configuration actions
15782 from templates according to the current configuration. Unless the files
15783 and actions are specified as TAGs, all are instantiated by default.
15784
15785 Usage: $0 [OPTION]... [TAG]...
15786
15787 -h, --help print this help, then exit
15788 -V, --version print version number and configuration settings, then exit
15789 --config print configuration, then exit
15790 -q, --quiet, --silent
15791 do not print progress messages
15792 -d, --debug don't remove temporary files
15793 --recheck update $as_me by reconfiguring in the same conditions
15794 --file=FILE[:TEMPLATE]
15795 instantiate the configuration file FILE
15796 --header=FILE[:TEMPLATE]
15797 instantiate the configuration header FILE
15798
15799 Configuration files:
15800 $config_files
15801
15802 Configuration headers:
15803 $config_headers
15804
15805 Configuration commands:
15806 $config_commands
15807
15808 Report bugs to <christos@astron.com>."
15809
15810 _ACEOF
15811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15812 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15813 ac_cs_version="\\
15814 file config.status 5.38
15815 configured by $0, generated by GNU Autoconf 2.69,
15816 with options \\"\$ac_cs_config\\"
15817
15818 Copyright (C) 2012 Free Software Foundation, Inc.
15819 This config.status script is free software; the Free Software Foundation
15820 gives unlimited permission to copy, distribute and modify it."
15821
15822 ac_pwd='$ac_pwd'
15823 srcdir='$srcdir'
15824 INSTALL='$INSTALL'
15825 MKDIR_P='$MKDIR_P'
15826 AWK='$AWK'
15827 test -n "\$AWK" || AWK=awk
15828 _ACEOF
15829
15830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15831 # The default lists apply if the user does not specify any file.
15832 ac_need_defaults=:
15833 while test $# != 0
15834 do
15835 case $1 in
15836 --*=?*)
15837 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15838 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15839 ac_shift=:
15840 ;;
15841 --*=)
15842 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15843 ac_optarg=
15844 ac_shift=:
15845 ;;
15846 *)
15847 ac_option=$1
15848 ac_optarg=$2
15849 ac_shift=shift
15850 ;;
15851 esac
15852
15853 case $ac_option in
15854 # Handling of the options.
15855 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15856 ac_cs_recheck=: ;;
15857 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15858 $as_echo "$ac_cs_version"; exit ;;
15859 --config | --confi | --conf | --con | --co | --c )
15860 $as_echo "$ac_cs_config"; exit ;;
15861 --debug | --debu | --deb | --de | --d | -d )
15862 debug=: ;;
15863 --file | --fil | --fi | --f )
15864 $ac_shift
15865 case $ac_optarg in
15866 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15867 '') as_fn_error $? "missing file argument" ;;
15868 esac
15869 as_fn_append CONFIG_FILES " '$ac_optarg'"
15870 ac_need_defaults=false;;
15871 --header | --heade | --head | --hea )
15872 $ac_shift
15873 case $ac_optarg in
15874 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15875 esac
15876 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15877 ac_need_defaults=false;;
15878 --he | --h)
15879 # Conflict between --help and --header
15880 as_fn_error $? "ambiguous option: \`$1'
15881 Try \`$0 --help' for more information.";;
15882 --help | --hel | -h )
15883 $as_echo "$ac_cs_usage"; exit ;;
15884 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15885 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15886 ac_cs_silent=: ;;
15887
15888 # This is an error.
15889 -*) as_fn_error $? "unrecognized option: \`$1'
15890 Try \`$0 --help' for more information." ;;
15891
15892 *) as_fn_append ac_config_targets " $1"
15893 ac_need_defaults=false ;;
15894
15895 esac
15896 shift
15897 done
15898
15899 ac_configure_extra_args=
15900
15901 if $ac_cs_silent; then
15902 exec 6>/dev/null
15903 ac_configure_extra_args="$ac_configure_extra_args --silent"
15904 fi
15905
15906 _ACEOF
15907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15908 if \$ac_cs_recheck; then
15909 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15910 shift
15911 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15912 CONFIG_SHELL='$SHELL'
15913 export CONFIG_SHELL
15914 exec "\$@"
15915 fi
15916
15917 _ACEOF
15918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15919 exec 5>>config.log
15920 {
15921 echo
15922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15923 ## Running $as_me. ##
15924 _ASBOX
15925 $as_echo "$ac_log"
15926 } >&5
15927
15928 _ACEOF
15929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15930 #
15931 # INIT-COMMANDS
15932 #
15933 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15934
15935
15936 # The HP-UX ksh and POSIX shell print the target directory to stdout
15937 # if CDPATH is set.
15938 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15939
15940 sed_quote_subst='$sed_quote_subst'
15941 double_quote_subst='$double_quote_subst'
15942 delay_variable_subst='$delay_variable_subst'
15943 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15944 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15945 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15946 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15947 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15948 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15949 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15950 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15951 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15952 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15953 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15954 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15955 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15956 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15957 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15958 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15959 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15960 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15961 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15962 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15963 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15964 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15965 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15966 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15967 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15968 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15969 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15970 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15971 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15972 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15973 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15974 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15975 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15976 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15977 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15978 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15979 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15980 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15981 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15982 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15983 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15984 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15985 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15986 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15987 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15988 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15989 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15990 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15991 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15992 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15993 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15994 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15995 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15996 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15997 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15998 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15999 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16000 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16001 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"`'
16002 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16003 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16004 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16005 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16006 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16007 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16008 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16009 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16010 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16011 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16012 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16013 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16014 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16015 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16016 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16017 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16018 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16019 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16020 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16021 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16022 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16023 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16024 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16025 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16026 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16027 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16028 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16029 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16030 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16031 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16032 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16033 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16034 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16035 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16036 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16037 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16038 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16039 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16040 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16041 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16042 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16043 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16044 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16045 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16046 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16047 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16048 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16049 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16050 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16051 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16052 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16053 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16054 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16055 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16056 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16057 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16058 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16059 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16060 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16061 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16062 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16063 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16064 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16065 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16066 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16067 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16068 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16069 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16070 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16071 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16072 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16073 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16074 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16075 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16076 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16077 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16078
16079 LTCC='$LTCC'
16080 LTCFLAGS='$LTCFLAGS'
16081 compiler='$compiler_DEFAULT'
16082
16083 # A function that is used when there is no print builtin or printf.
16084 func_fallback_echo ()
16085 {
16086 eval 'cat <<_LTECHO_EOF
16087 \$1
16088 _LTECHO_EOF'
16089 }
16090
16091 # Quote evaled strings.
16092 for var in SHELL \
16093 ECHO \
16094 PATH_SEPARATOR \
16095 SED \
16096 GREP \
16097 EGREP \
16098 FGREP \
16099 LD \
16100 NM \
16101 LN_S \
16102 lt_SP2NL \
16103 lt_NL2SP \
16104 reload_flag \
16105 OBJDUMP \
16106 deplibs_check_method \
16107 file_magic_cmd \
16108 file_magic_glob \
16109 want_nocaseglob \
16110 DLLTOOL \
16111 sharedlib_from_linklib_cmd \
16112 AR \
16113 AR_FLAGS \
16114 archiver_list_spec \
16115 STRIP \
16116 RANLIB \
16117 CC \
16118 CFLAGS \
16119 compiler \
16120 lt_cv_sys_global_symbol_pipe \
16121 lt_cv_sys_global_symbol_to_cdecl \
16122 lt_cv_sys_global_symbol_to_import \
16123 lt_cv_sys_global_symbol_to_c_name_address \
16124 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16125 lt_cv_nm_interface \
16126 nm_file_list_spec \
16127 lt_cv_truncate_bin \
16128 lt_prog_compiler_no_builtin_flag \
16129 lt_prog_compiler_pic \
16130 lt_prog_compiler_wl \
16131 lt_prog_compiler_static \
16132 lt_cv_prog_compiler_c_o \
16133 need_locks \
16134 MANIFEST_TOOL \
16135 DSYMUTIL \
16136 NMEDIT \
16137 LIPO \
16138 OTOOL \
16139 OTOOL64 \
16140 shrext_cmds \
16141 export_dynamic_flag_spec \
16142 whole_archive_flag_spec \
16143 compiler_needs_object \
16144 with_gnu_ld \
16145 allow_undefined_flag \
16146 no_undefined_flag \
16147 hardcode_libdir_flag_spec \
16148 hardcode_libdir_separator \
16149 exclude_expsyms \
16150 include_expsyms \
16151 file_list_spec \
16152 variables_saved_for_relink \
16153 libname_spec \
16154 library_names_spec \
16155 soname_spec \
16156 install_override_mode \
16157 finish_eval \
16158 old_striplib \
16159 striplib; do
16160 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16161 *[\\\\\\\`\\"\\\$]*)
16162 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16163 ;;
16164 *)
16165 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16166 ;;
16167 esac
16168 done
16169
16170 # Double-quote double-evaled strings.
16171 for var in reload_cmds \
16172 old_postinstall_cmds \
16173 old_postuninstall_cmds \
16174 old_archive_cmds \
16175 extract_expsyms_cmds \
16176 old_archive_from_new_cmds \
16177 old_archive_from_expsyms_cmds \
16178 archive_cmds \
16179 archive_expsym_cmds \
16180 module_cmds \
16181 module_expsym_cmds \
16182 export_symbols_cmds \
16183 prelink_cmds \
16184 postlink_cmds \
16185 postinstall_cmds \
16186 postuninstall_cmds \
16187 finish_cmds \
16188 sys_lib_search_path_spec \
16189 configure_time_dlsearch_path \
16190 configure_time_lt_sys_library_path; do
16191 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16192 *[\\\\\\\`\\"\\\$]*)
16193 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16194 ;;
16195 *)
16196 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16197 ;;
16198 esac
16199 done
16200
16201 ac_aux_dir='$ac_aux_dir'
16202
16203 # See if we are running on zsh, and set the options that allow our
16204 # commands through without removal of \ escapes INIT.
16205 if test -n "\${ZSH_VERSION+set}"; then
16206 setopt NO_GLOB_SUBST
16207 fi
16208
16209
16210 PACKAGE='$PACKAGE'
16211 VERSION='$VERSION'
16212 RM='$RM'
16213 ofile='$ofile'
16214
16215
16216
16217
16218 _ACEOF
16219
16220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16221
16222 # Handling of arguments.
16223 for ac_config_target in $ac_config_targets
16224 do
16225 case $ac_config_target in
16226 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16227 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16228 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16229 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16230 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16231 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
16232 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16233 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16234 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
16235
16236 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16237 esac
16238 done
16239
16240
16241 # If the user did not use the arguments to specify the items to instantiate,
16242 # then the envvar interface is used. Set only those that are not.
16243 # We use the long form for the default assignment because of an extremely
16244 # bizarre bug on SunOS 4.1.3.
16245 if $ac_need_defaults; then
16246 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16247 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16248 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16249 fi
16250
16251 # Have a temporary directory for convenience. Make it in the build tree
16252 # simply because there is no reason against having it here, and in addition,
16253 # creating and moving files from /tmp can sometimes cause problems.
16254 # Hook for its removal unless debugging.
16255 # Note that there is a small window in which the directory will not be cleaned:
16256 # after its creation but before its name has been assigned to `$tmp'.
16257 $debug ||
16258 {
16259 tmp= ac_tmp=
16260 trap 'exit_status=$?
16261 : "${ac_tmp:=$tmp}"
16262 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16263 ' 0
16264 trap 'as_fn_exit 1' 1 2 13 15
16265 }
16266 # Create a (secure) tmp directory for tmp files.
16267
16268 {
16269 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16270 test -d "$tmp"
16271 } ||
16272 {
16273 tmp=./conf$$-$RANDOM
16274 (umask 077 && mkdir "$tmp")
16275 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16276 ac_tmp=$tmp
16277
16278 # Set up the scripts for CONFIG_FILES section.
16279 # No need to generate them if there are no CONFIG_FILES.
16280 # This happens for instance with `./config.status config.h'.
16281 if test -n "$CONFIG_FILES"; then
16282
16283
16284 ac_cr=`echo X | tr X '\015'`
16285 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16286 # But we know of no other shell where ac_cr would be empty at this
16287 # point, so we can use a bashism as a fallback.
16288 if test "x$ac_cr" = x; then
16289 eval ac_cr=\$\'\\r\'
16290 fi
16291 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16292 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16293 ac_cs_awk_cr='\\r'
16294 else
16295 ac_cs_awk_cr=$ac_cr
16296 fi
16297
16298 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16299 _ACEOF
16300
16301
16302 {
16303 echo "cat >conf$$subs.awk <<_ACEOF" &&
16304 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16305 echo "_ACEOF"
16306 } >conf$$subs.sh ||
16307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16308 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16309 ac_delim='%!_!# '
16310 for ac_last_try in false false false false false :; do
16311 . ./conf$$subs.sh ||
16312 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16313
16314 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16315 if test $ac_delim_n = $ac_delim_num; then
16316 break
16317 elif $ac_last_try; then
16318 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16319 else
16320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16321 fi
16322 done
16323 rm -f conf$$subs.sh
16324
16325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16326 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16327 _ACEOF
16328 sed -n '
16329 h
16330 s/^/S["/; s/!.*/"]=/
16331 p
16332 g
16333 s/^[^!]*!//
16334 :repl
16335 t repl
16336 s/'"$ac_delim"'$//
16337 t delim
16338 :nl
16339 h
16340 s/\(.\{148\}\)..*/\1/
16341 t more1
16342 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16343 p
16344 n
16345 b repl
16346 :more1
16347 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16348 p
16349 g
16350 s/.\{148\}//
16351 t nl
16352 :delim
16353 h
16354 s/\(.\{148\}\)..*/\1/
16355 t more2
16356 s/["\\]/\\&/g; s/^/"/; s/$/"/
16357 p
16358 b
16359 :more2
16360 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16361 p
16362 g
16363 s/.\{148\}//
16364 t delim
16365 ' <conf$$subs.awk | sed '
16366 /^[^""]/{
16367 N
16368 s/\n//
16369 }
16370 ' >>$CONFIG_STATUS || ac_write_fail=1
16371 rm -f conf$$subs.awk
16372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16373 _ACAWK
16374 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16375 for (key in S) S_is_set[key] = 1
16376 FS = ""
16377
16378 }
16379 {
16380 line = $ 0
16381 nfields = split(line, field, "@")
16382 substed = 0
16383 len = length(field[1])
16384 for (i = 2; i < nfields; i++) {
16385 key = field[i]
16386 keylen = length(key)
16387 if (S_is_set[key]) {
16388 value = S[key]
16389 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16390 len += length(value) + length(field[++i])
16391 substed = 1
16392 } else
16393 len += 1 + keylen
16394 }
16395
16396 print line
16397 }
16398
16399 _ACAWK
16400 _ACEOF
16401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16402 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16403 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16404 else
16405 cat
16406 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16407 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16408 _ACEOF
16409
16410 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16411 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16412 # trailing colons and then remove the whole line if VPATH becomes empty
16413 # (actually we leave an empty line to preserve line numbers).
16414 if test "x$srcdir" = x.; then
16415 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16416 h
16417 s///
16418 s/^/:/
16419 s/[ ]*$/:/
16420 s/:\$(srcdir):/:/g
16421 s/:\${srcdir}:/:/g
16422 s/:@srcdir@:/:/g
16423 s/^:*//
16424 s/:*$//
16425 x
16426 s/\(=[ ]*\).*/\1/
16427 G
16428 s/\n//
16429 s/^[^=]*=[ ]*$//
16430 }'
16431 fi
16432
16433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16434 fi # test -n "$CONFIG_FILES"
16435
16436 # Set up the scripts for CONFIG_HEADERS section.
16437 # No need to generate them if there are no CONFIG_HEADERS.
16438 # This happens for instance with `./config.status Makefile'.
16439 if test -n "$CONFIG_HEADERS"; then
16440 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16441 BEGIN {
16442 _ACEOF
16443
16444 # Transform confdefs.h into an awk script `defines.awk', embedded as
16445 # here-document in config.status, that substitutes the proper values into
16446 # config.h.in to produce config.h.
16447
16448 # Create a delimiter string that does not exist in confdefs.h, to ease
16449 # handling of long lines.
16450 ac_delim='%!_!# '
16451 for ac_last_try in false false :; do
16452 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16453 if test -z "$ac_tt"; then
16454 break
16455 elif $ac_last_try; then
16456 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16457 else
16458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16459 fi
16460 done
16461
16462 # For the awk script, D is an array of macro values keyed by name,
16463 # likewise P contains macro parameters if any. Preserve backslash
16464 # newline sequences.
16465
16466 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16467 sed -n '
16468 s/.\{148\}/&'"$ac_delim"'/g
16469 t rset
16470 :rset
16471 s/^[ ]*#[ ]*define[ ][ ]*/ /
16472 t def
16473 d
16474 :def
16475 s/\\$//
16476 t bsnl
16477 s/["\\]/\\&/g
16478 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16479 D["\1"]=" \3"/p
16480 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16481 d
16482 :bsnl
16483 s/["\\]/\\&/g
16484 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16485 D["\1"]=" \3\\\\\\n"\\/p
16486 t cont
16487 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16488 t cont
16489 d
16490 :cont
16491 n
16492 s/.\{148\}/&'"$ac_delim"'/g
16493 t clear
16494 :clear
16495 s/\\$//
16496 t bsnlc
16497 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16498 d
16499 :bsnlc
16500 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16501 b cont
16502 ' <confdefs.h | sed '
16503 s/'"$ac_delim"'/"\\\
16504 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16505
16506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16507 for (key in D) D_is_set[key] = 1
16508 FS = ""
16509 }
16510 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16511 line = \$ 0
16512 split(line, arg, " ")
16513 if (arg[1] == "#") {
16514 defundef = arg[2]
16515 mac1 = arg[3]
16516 } else {
16517 defundef = substr(arg[1], 2)
16518 mac1 = arg[2]
16519 }
16520 split(mac1, mac2, "(") #)
16521 macro = mac2[1]
16522 prefix = substr(line, 1, index(line, defundef) - 1)
16523 if (D_is_set[macro]) {
16524 # Preserve the white space surrounding the "#".
16525 print prefix "define", macro P[macro] D[macro]
16526 next
16527 } else {
16528 # Replace #undef with comments. This is necessary, for example,
16529 # in the case of _POSIX_SOURCE, which is predefined and required
16530 # on some systems where configure will not decide to define it.
16531 if (defundef == "undef") {
16532 print "/*", prefix defundef, macro, "*/"
16533 next
16534 }
16535 }
16536 }
16537 { print }
16538 _ACAWK
16539 _ACEOF
16540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16541 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16542 fi # test -n "$CONFIG_HEADERS"
16543
16544
16545 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16546 shift
16547 for ac_tag
16548 do
16549 case $ac_tag in
16550 :[FHLC]) ac_mode=$ac_tag; continue;;
16551 esac
16552 case $ac_mode$ac_tag in
16553 :[FHL]*:*);;
16554 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16555 :[FH]-) ac_tag=-:-;;
16556 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16557 esac
16558 ac_save_IFS=$IFS
16559 IFS=:
16560 set x $ac_tag
16561 IFS=$ac_save_IFS
16562 shift
16563 ac_file=$1
16564 shift
16565
16566 case $ac_mode in
16567 :L) ac_source=$1;;
16568 :[FH])
16569 ac_file_inputs=
16570 for ac_f
16571 do
16572 case $ac_f in
16573 -) ac_f="$ac_tmp/stdin";;
16574 *) # Look for the file first in the build tree, then in the source tree
16575 # (if the path is not absolute). The absolute path cannot be DOS-style,
16576 # because $ac_f cannot contain `:'.
16577 test -f "$ac_f" ||
16578 case $ac_f in
16579 [\\/$]*) false;;
16580 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16581 esac ||
16582 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16583 esac
16584 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16585 as_fn_append ac_file_inputs " '$ac_f'"
16586 done
16587
16588 # Let's still pretend it is `configure' which instantiates (i.e., don't
16589 # use $as_me), people would be surprised to read:
16590 # /* config.h. Generated by config.status. */
16591 configure_input='Generated from '`
16592 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16593 `' by configure.'
16594 if test x"$ac_file" != x-; then
16595 configure_input="$ac_file. $configure_input"
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16597 $as_echo "$as_me: creating $ac_file" >&6;}
16598 fi
16599 # Neutralize special characters interpreted by sed in replacement strings.
16600 case $configure_input in #(
16601 *\&* | *\|* | *\\* )
16602 ac_sed_conf_input=`$as_echo "$configure_input" |
16603 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16604 *) ac_sed_conf_input=$configure_input;;
16605 esac
16606
16607 case $ac_tag in
16608 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16610 esac
16611 ;;
16612 esac
16613
16614 ac_dir=`$as_dirname -- "$ac_file" ||
16615 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16616 X"$ac_file" : 'X\(//\)[^/]' \| \
16617 X"$ac_file" : 'X\(//\)$' \| \
16618 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16619 $as_echo X"$ac_file" |
16620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16621 s//\1/
16622 q
16623 }
16624 /^X\(\/\/\)[^/].*/{
16625 s//\1/
16626 q
16627 }
16628 /^X\(\/\/\)$/{
16629 s//\1/
16630 q
16631 }
16632 /^X\(\/\).*/{
16633 s//\1/
16634 q
16635 }
16636 s/.*/./; q'`
16637 as_dir="$ac_dir"; as_fn_mkdir_p
16638 ac_builddir=.
16639
16640 case "$ac_dir" in
16641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16642 *)
16643 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16644 # A ".." for each directory in $ac_dir_suffix.
16645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16646 case $ac_top_builddir_sub in
16647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16649 esac ;;
16650 esac
16651 ac_abs_top_builddir=$ac_pwd
16652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16653 # for backward compatibility:
16654 ac_top_builddir=$ac_top_build_prefix
16655
16656 case $srcdir in
16657 .) # We are building in place.
16658 ac_srcdir=.
16659 ac_top_srcdir=$ac_top_builddir_sub
16660 ac_abs_top_srcdir=$ac_pwd ;;
16661 [\\/]* | ?:[\\/]* ) # Absolute name.
16662 ac_srcdir=$srcdir$ac_dir_suffix;
16663 ac_top_srcdir=$srcdir
16664 ac_abs_top_srcdir=$srcdir ;;
16665 *) # Relative name.
16666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16667 ac_top_srcdir=$ac_top_build_prefix$srcdir
16668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16669 esac
16670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16671
16672
16673 case $ac_mode in
16674 :F)
16675 #
16676 # CONFIG_FILE
16677 #
16678
16679 case $INSTALL in
16680 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16681 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16682 esac
16683 ac_MKDIR_P=$MKDIR_P
16684 case $MKDIR_P in
16685 [\\/$]* | ?:[\\/]* ) ;;
16686 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16687 esac
16688 _ACEOF
16689
16690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16691 # If the template does not know about datarootdir, expand it.
16692 # FIXME: This hack should be removed a few years after 2.60.
16693 ac_datarootdir_hack=; ac_datarootdir_seen=
16694 ac_sed_dataroot='
16695 /datarootdir/ {
16696 p
16697 q
16698 }
16699 /@datadir@/p
16700 /@docdir@/p
16701 /@infodir@/p
16702 /@localedir@/p
16703 /@mandir@/p'
16704 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16705 *datarootdir*) ac_datarootdir_seen=yes;;
16706 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16708 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16709 _ACEOF
16710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16711 ac_datarootdir_hack='
16712 s&@datadir@&$datadir&g
16713 s&@docdir@&$docdir&g
16714 s&@infodir@&$infodir&g
16715 s&@localedir@&$localedir&g
16716 s&@mandir@&$mandir&g
16717 s&\\\${datarootdir}&$datarootdir&g' ;;
16718 esac
16719 _ACEOF
16720
16721 # Neutralize VPATH when `$srcdir' = `.'.
16722 # Shell code in configure.ac might set extrasub.
16723 # FIXME: do we really want to maintain this feature?
16724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16725 ac_sed_extra="$ac_vpsub
16726 $extrasub
16727 _ACEOF
16728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16729 :t
16730 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16731 s|@configure_input@|$ac_sed_conf_input|;t t
16732 s&@top_builddir@&$ac_top_builddir_sub&;t t
16733 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16734 s&@srcdir@&$ac_srcdir&;t t
16735 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16736 s&@top_srcdir@&$ac_top_srcdir&;t t
16737 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16738 s&@builddir@&$ac_builddir&;t t
16739 s&@abs_builddir@&$ac_abs_builddir&;t t
16740 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16741 s&@INSTALL@&$ac_INSTALL&;t t
16742 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16743 $ac_datarootdir_hack
16744 "
16745 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16746 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16747
16748 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16749 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16750 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16751 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16753 which seems to be undefined. Please make sure it is defined" >&5
16754 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16755 which seems to be undefined. Please make sure it is defined" >&2;}
16756
16757 rm -f "$ac_tmp/stdin"
16758 case $ac_file in
16759 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16760 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16761 esac \
16762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16763 ;;
16764 :H)
16765 #
16766 # CONFIG_HEADER
16767 #
16768 if test x"$ac_file" != x-; then
16769 {
16770 $as_echo "/* $configure_input */" \
16771 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16772 } >"$ac_tmp/config.h" \
16773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16774 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16776 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16777 else
16778 rm -f "$ac_file"
16779 mv "$ac_tmp/config.h" "$ac_file" \
16780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16781 fi
16782 else
16783 $as_echo "/* $configure_input */" \
16784 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16785 || as_fn_error $? "could not create -" "$LINENO" 5
16786 fi
16787 # Compute "$ac_file"'s index in $config_headers.
16788 _am_arg="$ac_file"
16789 _am_stamp_count=1
16790 for _am_header in $config_headers :; do
16791 case $_am_header in
16792 $_am_arg | $_am_arg:* )
16793 break ;;
16794 * )
16795 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16796 esac
16797 done
16798 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16799 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16800 X"$_am_arg" : 'X\(//\)[^/]' \| \
16801 X"$_am_arg" : 'X\(//\)$' \| \
16802 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16803 $as_echo X"$_am_arg" |
16804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16805 s//\1/
16806 q
16807 }
16808 /^X\(\/\/\)[^/].*/{
16809 s//\1/
16810 q
16811 }
16812 /^X\(\/\/\)$/{
16813 s//\1/
16814 q
16815 }
16816 /^X\(\/\).*/{
16817 s//\1/
16818 q
16819 }
16820 s/.*/./; q'`/stamp-h$_am_stamp_count
16821 ;;
16822
16823 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16824 $as_echo "$as_me: executing $ac_file commands" >&6;}
16825 ;;
16826 esac
16827
16828
16829 case $ac_file$ac_mode in
16830 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16831 # Older Autoconf quotes --file arguments for eval, but not when files
16832 # are listed without --file. Let's play safe and only enable the eval
16833 # if we detect the quoting.
16834 # TODO: see whether this extra hack can be removed once we start
16835 # requiring Autoconf 2.70 or later.
16836 case $CONFIG_FILES in #(
16837 *\'*) :
16838 eval set x "$CONFIG_FILES" ;; #(
16839 *) :
16840 set x $CONFIG_FILES ;; #(
16841 *) :
16842 ;;
16843 esac
16844 shift
16845 # Used to flag and report bootstrapping failures.
16846 am_rc=0
16847 for am_mf
16848 do
16849 # Strip MF so we end up with the name of the file.
16850 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16851 # Check whether this is an Automake generated Makefile which includes
16852 # dependency-tracking related rules and includes.
16853 # Grep'ing the whole file directly is not great: AIX grep has a line
16854 # limit of 2048, but all sed's we know have understand at least 4000.
16855 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16856 || continue
16857 am_dirpart=`$as_dirname -- "$am_mf" ||
16858 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16859 X"$am_mf" : 'X\(//\)[^/]' \| \
16860 X"$am_mf" : 'X\(//\)$' \| \
16861 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16862 $as_echo X"$am_mf" |
16863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16864 s//\1/
16865 q
16866 }
16867 /^X\(\/\/\)[^/].*/{
16868 s//\1/
16869 q
16870 }
16871 /^X\(\/\/\)$/{
16872 s//\1/
16873 q
16874 }
16875 /^X\(\/\).*/{
16876 s//\1/
16877 q
16878 }
16879 s/.*/./; q'`
16880 am_filepart=`$as_basename -- "$am_mf" ||
16881 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16882 X"$am_mf" : 'X\(//\)$' \| \
16883 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16884 $as_echo X/"$am_mf" |
16885 sed '/^.*\/\([^/][^/]*\)\/*$/{
16886 s//\1/
16887 q
16888 }
16889 /^X\/\(\/\/\)$/{
16890 s//\1/
16891 q
16892 }
16893 /^X\/\(\/\).*/{
16894 s//\1/
16895 q
16896 }
16897 s/.*/./; q'`
16898 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16899 && sed -e '/# am--include-marker/d' "$am_filepart" \
16900 | $MAKE -f - am--depfiles" >&5
16901 (cd "$am_dirpart" \
16902 && sed -e '/# am--include-marker/d' "$am_filepart" \
16903 | $MAKE -f - am--depfiles) >&5 2>&5
16904 ac_status=$?
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } || am_rc=$?
16907 done
16908 if test $am_rc -ne 0; then
16909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16911 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16912 for automatic dependency tracking. Try re-running configure with the
16913 '--disable-dependency-tracking' option to at least be able to build
16914 the package (albeit without support for automatic dependency tracking).
16915 See \`config.log' for more details" "$LINENO" 5; }
16916 fi
16917 { am_dirpart=; unset am_dirpart;}
16918 { am_filepart=; unset am_filepart;}
16919 { am_mf=; unset am_mf;}
16920 { am_rc=; unset am_rc;}
16921 rm -f conftest-deps.mk
16922 }
16923 ;;
16924 "libtool":C)
16925
16926 # See if we are running on zsh, and set the options that allow our
16927 # commands through without removal of \ escapes.
16928 if test -n "${ZSH_VERSION+set}"; then
16929 setopt NO_GLOB_SUBST
16930 fi
16931
16932 cfgfile=${ofile}T
16933 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16934 $RM "$cfgfile"
16935
16936 cat <<_LT_EOF >> "$cfgfile"
16937 #! $SHELL
16938 # Generated automatically by $as_me ($PACKAGE) $VERSION
16939 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16940 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16941
16942 # Provide generalized library-building support services.
16943 # Written by Gordon Matzigkeit, 1996
16944
16945 # Copyright (C) 2014 Free Software Foundation, Inc.
16946 # This is free software; see the source for copying conditions. There is NO
16947 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16948
16949 # GNU Libtool is free software; you can redistribute it and/or modify
16950 # it under the terms of the GNU General Public License as published by
16951 # the Free Software Foundation; either version 2 of of the License, or
16952 # (at your option) any later version.
16953 #
16954 # As a special exception to the GNU General Public License, if you
16955 # distribute this file as part of a program or library that is built
16956 # using GNU Libtool, you may include this file under the same
16957 # distribution terms that you use for the rest of that program.
16958 #
16959 # GNU Libtool is distributed in the hope that it will be useful, but
16960 # WITHOUT ANY WARRANTY; without even the implied warranty of
16961 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16962 # GNU General Public License for more details.
16963 #
16964 # You should have received a copy of the GNU General Public License
16965 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16966
16967
16968 # The names of the tagged configurations supported by this script.
16969 available_tags=''
16970
16971 # Configured defaults for sys_lib_dlsearch_path munging.
16972 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16973
16974 # ### BEGIN LIBTOOL CONFIG
16975
16976 # Which release of libtool.m4 was used?
16977 macro_version=$macro_version
16978 macro_revision=$macro_revision
16979
16980 # Whether or not to build static libraries.
16981 build_old_libs=$enable_static
16982
16983 # What type of objects to build.
16984 pic_mode=$pic_mode
16985
16986 # Whether or not to build shared libraries.
16987 build_libtool_libs=$enable_shared
16988
16989 # Whether or not to optimize for fast installation.
16990 fast_install=$enable_fast_install
16991
16992 # Shared archive member basename,for filename based shared library versioning on AIX.
16993 shared_archive_member_spec=$shared_archive_member_spec
16994
16995 # Shell to use when invoking shell scripts.
16996 SHELL=$lt_SHELL
16997
16998 # An echo program that protects backslashes.
16999 ECHO=$lt_ECHO
17000
17001 # The PATH separator for the build system.
17002 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17003
17004 # The host system.
17005 host_alias=$host_alias
17006 host=$host
17007 host_os=$host_os
17008
17009 # The build system.
17010 build_alias=$build_alias
17011 build=$build
17012 build_os=$build_os
17013
17014 # A sed program that does not truncate output.
17015 SED=$lt_SED
17016
17017 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17018 Xsed="\$SED -e 1s/^X//"
17019
17020 # A grep program that handles long lines.
17021 GREP=$lt_GREP
17022
17023 # An ERE matcher.
17024 EGREP=$lt_EGREP
17025
17026 # A literal string matcher.
17027 FGREP=$lt_FGREP
17028
17029 # A BSD- or MS-compatible name lister.
17030 NM=$lt_NM
17031
17032 # Whether we need soft or hard links.
17033 LN_S=$lt_LN_S
17034
17035 # What is the maximum length of a command?
17036 max_cmd_len=$max_cmd_len
17037
17038 # Object file suffix (normally "o").
17039 objext=$ac_objext
17040
17041 # Executable file suffix (normally "").
17042 exeext=$exeext
17043
17044 # whether the shell understands "unset".
17045 lt_unset=$lt_unset
17046
17047 # turn spaces into newlines.
17048 SP2NL=$lt_lt_SP2NL
17049
17050 # turn newlines into spaces.
17051 NL2SP=$lt_lt_NL2SP
17052
17053 # convert \$build file names to \$host format.
17054 to_host_file_cmd=$lt_cv_to_host_file_cmd
17055
17056 # convert \$build files to toolchain format.
17057 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17058
17059 # An object symbol dumper.
17060 OBJDUMP=$lt_OBJDUMP
17061
17062 # Method to check whether dependent libraries are shared objects.
17063 deplibs_check_method=$lt_deplibs_check_method
17064
17065 # Command to use when deplibs_check_method = "file_magic".
17066 file_magic_cmd=$lt_file_magic_cmd
17067
17068 # How to find potential files when deplibs_check_method = "file_magic".
17069 file_magic_glob=$lt_file_magic_glob
17070
17071 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17072 want_nocaseglob=$lt_want_nocaseglob
17073
17074 # DLL creation program.
17075 DLLTOOL=$lt_DLLTOOL
17076
17077 # Command to associate shared and link libraries.
17078 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17079
17080 # The archiver.
17081 AR=$lt_AR
17082
17083 # Flags to create an archive.
17084 AR_FLAGS=$lt_AR_FLAGS
17085
17086 # How to feed a file listing to the archiver.
17087 archiver_list_spec=$lt_archiver_list_spec
17088
17089 # A symbol stripping program.
17090 STRIP=$lt_STRIP
17091
17092 # Commands used to install an old-style archive.
17093 RANLIB=$lt_RANLIB
17094 old_postinstall_cmds=$lt_old_postinstall_cmds
17095 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17096
17097 # Whether to use a lock for old archive extraction.
17098 lock_old_archive_extraction=$lock_old_archive_extraction
17099
17100 # A C compiler.
17101 LTCC=$lt_CC
17102
17103 # LTCC compiler flags.
17104 LTCFLAGS=$lt_CFLAGS
17105
17106 # Take the output of nm and produce a listing of raw symbols and C names.
17107 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17108
17109 # Transform the output of nm in a proper C declaration.
17110 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17111
17112 # Transform the output of nm into a list of symbols to manually relocate.
17113 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17114
17115 # Transform the output of nm in a C name address pair.
17116 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17117
17118 # Transform the output of nm in a C name address pair when lib prefix is needed.
17119 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17120
17121 # The name lister interface.
17122 nm_interface=$lt_lt_cv_nm_interface
17123
17124 # Specify filename containing input files for \$NM.
17125 nm_file_list_spec=$lt_nm_file_list_spec
17126
17127 # The root where to search for dependent libraries,and where our libraries should be installed.
17128 lt_sysroot=$lt_sysroot
17129
17130 # Command to truncate a binary pipe.
17131 lt_truncate_bin=$lt_lt_cv_truncate_bin
17132
17133 # The name of the directory that contains temporary libtool files.
17134 objdir=$objdir
17135
17136 # Used to examine libraries when file_magic_cmd begins with "file".
17137 MAGIC_CMD=$MAGIC_CMD
17138
17139 # Must we lock files when doing compilation?
17140 need_locks=$lt_need_locks
17141
17142 # Manifest tool.
17143 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17144
17145 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17146 DSYMUTIL=$lt_DSYMUTIL
17147
17148 # Tool to change global to local symbols on Mac OS X.
17149 NMEDIT=$lt_NMEDIT
17150
17151 # Tool to manipulate fat objects and archives on Mac OS X.
17152 LIPO=$lt_LIPO
17153
17154 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17155 OTOOL=$lt_OTOOL
17156
17157 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17158 OTOOL64=$lt_OTOOL64
17159
17160 # Old archive suffix (normally "a").
17161 libext=$libext
17162
17163 # Shared library suffix (normally ".so").
17164 shrext_cmds=$lt_shrext_cmds
17165
17166 # The commands to extract the exported symbol list from a shared archive.
17167 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17168
17169 # Variables whose values should be saved in libtool wrapper scripts and
17170 # restored at link time.
17171 variables_saved_for_relink=$lt_variables_saved_for_relink
17172
17173 # Do we need the "lib" prefix for modules?
17174 need_lib_prefix=$need_lib_prefix
17175
17176 # Do we need a version for libraries?
17177 need_version=$need_version
17178
17179 # Library versioning type.
17180 version_type=$version_type
17181
17182 # Shared library runtime path variable.
17183 runpath_var=$runpath_var
17184
17185 # Shared library path variable.
17186 shlibpath_var=$shlibpath_var
17187
17188 # Is shlibpath searched before the hard-coded library search path?
17189 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17190
17191 # Format of library name prefix.
17192 libname_spec=$lt_libname_spec
17193
17194 # List of archive names. First name is the real one, the rest are links.
17195 # The last name is the one that the linker finds with -lNAME
17196 library_names_spec=$lt_library_names_spec
17197
17198 # The coded name of the library, if different from the real name.
17199 soname_spec=$lt_soname_spec
17200
17201 # Permission mode override for installation of shared libraries.
17202 install_override_mode=$lt_install_override_mode
17203
17204 # Command to use after installation of a shared archive.
17205 postinstall_cmds=$lt_postinstall_cmds
17206
17207 # Command to use after uninstallation of a shared archive.
17208 postuninstall_cmds=$lt_postuninstall_cmds
17209
17210 # Commands used to finish a libtool library installation in a directory.
17211 finish_cmds=$lt_finish_cmds
17212
17213 # As "finish_cmds", except a single script fragment to be evaled but
17214 # not shown.
17215 finish_eval=$lt_finish_eval
17216
17217 # Whether we should hardcode library paths into libraries.
17218 hardcode_into_libs=$hardcode_into_libs
17219
17220 # Compile-time system search path for libraries.
17221 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17222
17223 # Detected run-time system search path for libraries.
17224 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17225
17226 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17227 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17228
17229 # Whether dlopen is supported.
17230 dlopen_support=$enable_dlopen
17231
17232 # Whether dlopen of programs is supported.
17233 dlopen_self=$enable_dlopen_self
17234
17235 # Whether dlopen of statically linked programs is supported.
17236 dlopen_self_static=$enable_dlopen_self_static
17237
17238 # Commands to strip libraries.
17239 old_striplib=$lt_old_striplib
17240 striplib=$lt_striplib
17241
17242
17243 # The linker used to build libraries.
17244 LD=$lt_LD
17245
17246 # How to create reloadable object files.
17247 reload_flag=$lt_reload_flag
17248 reload_cmds=$lt_reload_cmds
17249
17250 # Commands used to build an old-style archive.
17251 old_archive_cmds=$lt_old_archive_cmds
17252
17253 # A language specific compiler.
17254 CC=$lt_compiler
17255
17256 # Is the compiler the GNU compiler?
17257 with_gcc=$GCC
17258
17259 # Compiler flag to turn off builtin functions.
17260 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17261
17262 # Additional compiler flags for building library objects.
17263 pic_flag=$lt_lt_prog_compiler_pic
17264
17265 # How to pass a linker flag through the compiler.
17266 wl=$lt_lt_prog_compiler_wl
17267
17268 # Compiler flag to prevent dynamic linking.
17269 link_static_flag=$lt_lt_prog_compiler_static
17270
17271 # Does compiler simultaneously support -c and -o options?
17272 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17273
17274 # Whether or not to add -lc for building shared libraries.
17275 build_libtool_need_lc=$archive_cmds_need_lc
17276
17277 # Whether or not to disallow shared libs when runtime libs are static.
17278 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17279
17280 # Compiler flag to allow reflexive dlopens.
17281 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17282
17283 # Compiler flag to generate shared objects directly from archives.
17284 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17285
17286 # Whether the compiler copes with passing no objects directly.
17287 compiler_needs_object=$lt_compiler_needs_object
17288
17289 # Create an old-style archive from a shared archive.
17290 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17291
17292 # Create a temporary old-style archive to link instead of a shared archive.
17293 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17294
17295 # Commands used to build a shared archive.
17296 archive_cmds=$lt_archive_cmds
17297 archive_expsym_cmds=$lt_archive_expsym_cmds
17298
17299 # Commands used to build a loadable module if different from building
17300 # a shared archive.
17301 module_cmds=$lt_module_cmds
17302 module_expsym_cmds=$lt_module_expsym_cmds
17303
17304 # Whether we are building with GNU ld or not.
17305 with_gnu_ld=$lt_with_gnu_ld
17306
17307 # Flag that allows shared libraries with undefined symbols to be built.
17308 allow_undefined_flag=$lt_allow_undefined_flag
17309
17310 # Flag that enforces no undefined symbols.
17311 no_undefined_flag=$lt_no_undefined_flag
17312
17313 # Flag to hardcode \$libdir into a binary during linking.
17314 # This must work even if \$libdir does not exist
17315 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17316
17317 # Whether we need a single "-rpath" flag with a separated argument.
17318 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17319
17320 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17321 # DIR into the resulting binary.
17322 hardcode_direct=$hardcode_direct
17323
17324 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17325 # DIR into the resulting binary and the resulting library dependency is
17326 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17327 # library is relocated.
17328 hardcode_direct_absolute=$hardcode_direct_absolute
17329
17330 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17331 # into the resulting binary.
17332 hardcode_minus_L=$hardcode_minus_L
17333
17334 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17335 # into the resulting binary.
17336 hardcode_shlibpath_var=$hardcode_shlibpath_var
17337
17338 # Set to "yes" if building a shared library automatically hardcodes DIR
17339 # into the library and all subsequent libraries and executables linked
17340 # against it.
17341 hardcode_automatic=$hardcode_automatic
17342
17343 # Set to yes if linker adds runtime paths of dependent libraries
17344 # to runtime path list.
17345 inherit_rpath=$inherit_rpath
17346
17347 # Whether libtool must link a program against all its dependency libraries.
17348 link_all_deplibs=$link_all_deplibs
17349
17350 # Set to "yes" if exported symbols are required.
17351 always_export_symbols=$always_export_symbols
17352
17353 # The commands to list exported symbols.
17354 export_symbols_cmds=$lt_export_symbols_cmds
17355
17356 # Symbols that should not be listed in the preloaded symbols.
17357 exclude_expsyms=$lt_exclude_expsyms
17358
17359 # Symbols that must always be exported.
17360 include_expsyms=$lt_include_expsyms
17361
17362 # Commands necessary for linking programs (against libraries) with templates.
17363 prelink_cmds=$lt_prelink_cmds
17364
17365 # Commands necessary for finishing linking programs.
17366 postlink_cmds=$lt_postlink_cmds
17367
17368 # Specify filename containing input files.
17369 file_list_spec=$lt_file_list_spec
17370
17371 # How to hardcode a shared library path into an executable.
17372 hardcode_action=$hardcode_action
17373
17374 # ### END LIBTOOL CONFIG
17375
17376 _LT_EOF
17377
17378 cat <<'_LT_EOF' >> "$cfgfile"
17379
17380 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17381
17382 # func_munge_path_list VARIABLE PATH
17383 # -----------------------------------
17384 # VARIABLE is name of variable containing _space_ separated list of
17385 # directories to be munged by the contents of PATH, which is string
17386 # having a format:
17387 # "DIR[:DIR]:"
17388 # string "DIR[ DIR]" will be prepended to VARIABLE
17389 # ":DIR[:DIR]"
17390 # string "DIR[ DIR]" will be appended to VARIABLE
17391 # "DIRP[:DIRP]::[DIRA:]DIRA"
17392 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17393 # "DIRA[ DIRA]" will be appended to VARIABLE
17394 # "DIR[:DIR]"
17395 # VARIABLE will be replaced by "DIR[ DIR]"
17396 func_munge_path_list ()
17397 {
17398 case x$2 in
17399 x)
17400 ;;
17401 *:)
17402 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17403 ;;
17404 x:*)
17405 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17406 ;;
17407 *::*)
17408 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17409 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17410 ;;
17411 *)
17412 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17413 ;;
17414 esac
17415 }
17416
17417
17418 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17419 func_cc_basename ()
17420 {
17421 for cc_temp in $*""; do
17422 case $cc_temp in
17423 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17424 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17425 \-*) ;;
17426 *) break;;
17427 esac
17428 done
17429 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17430 }
17431
17432
17433 # ### END FUNCTIONS SHARED WITH CONFIGURE
17434
17435 _LT_EOF
17436
17437 case $host_os in
17438 aix3*)
17439 cat <<\_LT_EOF >> "$cfgfile"
17440 # AIX sometimes has problems with the GCC collect2 program. For some
17441 # reason, if we set the COLLECT_NAMES environment variable, the problems
17442 # vanish in a puff of smoke.
17443 if test set != "${COLLECT_NAMES+set}"; then
17444 COLLECT_NAMES=
17445 export COLLECT_NAMES
17446 fi
17447 _LT_EOF
17448 ;;
17449 esac
17450
17451
17452 ltmain=$ac_aux_dir/ltmain.sh
17453
17454
17455 # We use sed instead of cat because bash on DJGPP gets confused if
17456 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17457 # text mode, it properly converts lines to CR/LF. This bash problem
17458 # is reportedly fixed, but why not run on old versions too?
17459 sed '$q' "$ltmain" >> "$cfgfile" \
17460 || (rm -f "$cfgfile"; exit 1)
17461
17462 mv -f "$cfgfile" "$ofile" ||
17463 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17464 chmod +x "$ofile"
17465
17466 ;;
17467
17468 esac
17469 done # for ac_tag
17470
17471
17472 as_fn_exit 0
17473 _ACEOF
17474 ac_clean_files=$ac_clean_files_save
17475
17476 test $ac_write_fail = 0 ||
17477 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17478
17479
17480 # configure is writing to config.log, and then calls config.status.
17481 # config.status does its own redirection, appending to config.log.
17482 # Unfortunately, on DOS this fails, as config.log is still kept open
17483 # by configure, so config.status won't be able to write to it; its
17484 # output is simply discarded. So we exec the FD to /dev/null,
17485 # effectively closing config.log, so it can be properly (re)opened and
17486 # appended to by config.status. When coming back to configure, we
17487 # need to make the FD available again.
17488 if test "$no_create" != yes; then
17489 ac_cs_success=:
17490 ac_config_status_args=
17491 test "$silent" = yes &&
17492 ac_config_status_args="$ac_config_status_args --quiet"
17493 exec 5>/dev/null
17494 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17495 exec 5>>config.log
17496 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17497 # would make configure fail if this is the last instruction.
17498 $ac_cs_success || as_fn_exit 1
17499 fi
17500 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17502 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17503 fi
17504
17505