Debian Codegraph @

baselib/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='LTLIBOBJS
632 LIBOBJS
633 pobl_top_builddir_suffix
634 pobl_top_srcdir_suffix
635 UTMP_CFLAGS
636 UTMP_LIBS
637 UTMP_NAME
638 PTY_NAME
639 NO_UNDEFINED_FLAG
640 DL_CFLAGS
641 DL_LIBS
642 DL_LOADER
643 XPG4_LIBS
644 ALLOCA
645 LT_SYS_LIBRARY_PATH
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 MANIFEST_TOOL
652 AWK
653 RANLIB
654 STRIP
655 ac_ct_AR
656 AR
657 FILECMD
658 LN_S
659 NM
660 ac_ct_DUMPBIN
661 DUMPBIN
662 LD
663 FGREP
664 EGREP
665 GREP
666 SED
667 LIBTOOL
668 OBJDUMP
669 DLLTOOL
670 AS
671 DEB_CFLAGS
672 INSTALL_DATA
673 INSTALL_SCRIPT
674 INSTALL_PROGRAM
675 CPP
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CC
682 CFLAGS
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 target_alias
692 host_alias
693 build_alias
694 LIBS
695 ECHO_T
696 ECHO_N
697 ECHO_C
698 DEFS
699 mandir
700 localedir
701 libdir
702 psdir
703 pdfdir
704 dvidir
705 htmldir
706 infodir
707 docdir
708 oldincludedir
709 includedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_URL
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 enable_debug
733 with_libtool
734 enable_shared
735 enable_static
736 with_pic
737 enable_fast_install
738 with_aix_soname
739 with_gnu_ld
740 with_sysroot
741 enable_libtool_lock
742 enable_largefile
743 with_libltdl
744 enable_pty_helper
745 with_utmp
746 with_funcs_mlterm_unuse
747 '
748 ac_precious_vars='build_alias
749 host_alias
750 target_alias
751 CC
752 CFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS
756 CPP
757 LT_SYS_LIBRARY_PATH'
758
759
760 # Initialize some variables set by options.
761 ac_init_help=
762 ac_init_version=false
763 ac_unrecognized_opts=
764 ac_unrecognized_sep=
765 # The variables have the same names as the options, with
766 # dashes changed to underlines.
767 cache_file=/dev/null
768 exec_prefix=NONE
769 no_create=
770 no_recursion=
771 prefix=NONE
772 program_prefix=NONE
773 program_suffix=NONE
774 program_transform_name=s,x,x,
775 silent=
776 site=
777 srcdir=
778 verbose=
779 x_includes=NONE
780 x_libraries=NONE
781
782 # Installation directory options.
783 # These are left unexpanded so users can "make install exec_prefix=/foo"
784 # and all the variables that are supposed to be based on exec_prefix
785 # by default will actually change.
786 # Use braces instead of parens because sh, perl, etc. also accept them.
787 # (The list follows the same order as the GNU Coding Standards.)
788 bindir='${exec_prefix}/bin'
789 sbindir='${exec_prefix}/sbin'
790 libexecdir='${exec_prefix}/libexec'
791 datarootdir='${prefix}/share'
792 datadir='${datarootdir}'
793 sysconfdir='${prefix}/etc'
794 sharedstatedir='${prefix}/com'
795 localstatedir='${prefix}/var'
796 includedir='${prefix}/include'
797 oldincludedir='/usr/include'
798 docdir='${datarootdir}/doc/${PACKAGE}'
799 infodir='${datarootdir}/info'
800 htmldir='${docdir}'
801 dvidir='${docdir}'
802 pdfdir='${docdir}'
803 psdir='${docdir}'
804 libdir='${exec_prefix}/lib'
805 localedir='${datarootdir}/locale'
806 mandir='${datarootdir}/man'
807
808 ac_prev=
809 ac_dashdash=
810 for ac_option
811 do
812 # If the previous option needs an argument, assign it.
813 if test -n "$ac_prev"; then
814 eval $ac_prev=\$ac_option
815 ac_prev=
816 continue
817 fi
818
819 case $ac_option in
820 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 *=) ac_optarg= ;;
822 *) ac_optarg=yes ;;
823 esac
824
825 # Accept the important Cygnus configure options, so we can diagnose typos.
826
827 case $ac_dashdash$ac_option in
828 --)
829 ac_dashdash=yes ;;
830
831 -bindir | --bindir | --bindi | --bind | --bin | --bi)
832 ac_prev=bindir ;;
833 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834 bindir=$ac_optarg ;;
835
836 -build | --build | --buil | --bui | --bu)
837 ac_prev=build_alias ;;
838 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839 build_alias=$ac_optarg ;;
840
841 -cache-file | --cache-file | --cache-fil | --cache-fi \
842 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843 ac_prev=cache_file ;;
844 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846 cache_file=$ac_optarg ;;
847
848 --config-cache | -C)
849 cache_file=config.cache ;;
850
851 -datadir | --datadir | --datadi | --datad)
852 ac_prev=datadir ;;
853 -datadir=* | --datadir=* | --datadi=* | --datad=*)
854 datadir=$ac_optarg ;;
855
856 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857 | --dataroo | --dataro | --datar)
858 ac_prev=datarootdir ;;
859 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861 datarootdir=$ac_optarg ;;
862
863 -disable-* | --disable-*)
864 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867 as_fn_error $? "invalid feature name: $ac_useropt"
868 ac_useropt_orig=$ac_useropt
869 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870 case $ac_user_opts in
871 *"
872 "enable_$ac_useropt"
873 "*) ;;
874 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
875 ac_unrecognized_sep=', ';;
876 esac
877 eval enable_$ac_useropt=no ;;
878
879 -docdir | --docdir | --docdi | --doc | --do)
880 ac_prev=docdir ;;
881 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
882 docdir=$ac_optarg ;;
883
884 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
885 ac_prev=dvidir ;;
886 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
887 dvidir=$ac_optarg ;;
888
889 -enable-* | --enable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error $? "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898 "enable_$ac_useropt"
899 "*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=\$ac_optarg ;;
904
905 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
906 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
907 | --exec | --exe | --ex)
908 ac_prev=exec_prefix ;;
909 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
910 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
911 | --exec=* | --exe=* | --ex=*)
912 exec_prefix=$ac_optarg ;;
913
914 -gas | --gas | --ga | --g)
915 # Obsolete; use --with-gas.
916 with_gas=yes ;;
917
918 -help | --help | --hel | --he | -h)
919 ac_init_help=long ;;
920 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
921 ac_init_help=recursive ;;
922 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
923 ac_init_help=short ;;
924
925 -host | --host | --hos | --ho)
926 ac_prev=host_alias ;;
927 -host=* | --host=* | --hos=* | --ho=*)
928 host_alias=$ac_optarg ;;
929
930 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
931 ac_prev=htmldir ;;
932 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
933 | --ht=*)
934 htmldir=$ac_optarg ;;
935
936 -includedir | --includedir | --includedi | --included | --include \
937 | --includ | --inclu | --incl | --inc)
938 ac_prev=includedir ;;
939 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
940 | --includ=* | --inclu=* | --incl=* | --inc=*)
941 includedir=$ac_optarg ;;
942
943 -infodir | --infodir | --infodi | --infod | --info | --inf)
944 ac_prev=infodir ;;
945 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
946 infodir=$ac_optarg ;;
947
948 -libdir | --libdir | --libdi | --libd)
949 ac_prev=libdir ;;
950 -libdir=* | --libdir=* | --libdi=* | --libd=*)
951 libdir=$ac_optarg ;;
952
953 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
954 | --libexe | --libex | --libe)
955 ac_prev=libexecdir ;;
956 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
957 | --libexe=* | --libex=* | --libe=*)
958 libexecdir=$ac_optarg ;;
959
960 -localedir | --localedir | --localedi | --localed | --locale)
961 ac_prev=localedir ;;
962 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
963 localedir=$ac_optarg ;;
964
965 -localstatedir | --localstatedir | --localstatedi | --localstated \
966 | --localstate | --localstat | --localsta | --localst | --locals)
967 ac_prev=localstatedir ;;
968 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
969 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
970 localstatedir=$ac_optarg ;;
971
972 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
973 ac_prev=mandir ;;
974 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975 mandir=$ac_optarg ;;
976
977 -nfp | --nfp | --nf)
978 # Obsolete; use --without-fp.
979 with_fp=no ;;
980
981 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982 | --no-cr | --no-c | -n)
983 no_create=yes ;;
984
985 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987 no_recursion=yes ;;
988
989 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
990 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
991 | --oldin | --oldi | --old | --ol | --o)
992 ac_prev=oldincludedir ;;
993 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
994 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
995 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
996 oldincludedir=$ac_optarg ;;
997
998 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
999 ac_prev=prefix ;;
1000 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001 prefix=$ac_optarg ;;
1002
1003 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1004 | --program-pre | --program-pr | --program-p)
1005 ac_prev=program_prefix ;;
1006 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1007 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1008 program_prefix=$ac_optarg ;;
1009
1010 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1011 | --program-suf | --program-su | --program-s)
1012 ac_prev=program_suffix ;;
1013 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1014 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1015 program_suffix=$ac_optarg ;;
1016
1017 -program-transform-name | --program-transform-name \
1018 | --program-transform-nam | --program-transform-na \
1019 | --program-transform-n | --program-transform- \
1020 | --program-transform | --program-transfor \
1021 | --program-transfo | --program-transf \
1022 | --program-trans | --program-tran \
1023 | --progr-tra | --program-tr | --program-t)
1024 ac_prev=program_transform_name ;;
1025 -program-transform-name=* | --program-transform-name=* \
1026 | --program-transform-nam=* | --program-transform-na=* \
1027 | --program-transform-n=* | --program-transform-=* \
1028 | --program-transform=* | --program-transfor=* \
1029 | --program-transfo=* | --program-transf=* \
1030 | --program-trans=* | --program-tran=* \
1031 | --progr-tra=* | --program-tr=* | --program-t=*)
1032 program_transform_name=$ac_optarg ;;
1033
1034 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1035 ac_prev=pdfdir ;;
1036 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1037 pdfdir=$ac_optarg ;;
1038
1039 -psdir | --psdir | --psdi | --psd | --ps)
1040 ac_prev=psdir ;;
1041 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042 psdir=$ac_optarg ;;
1043
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1046 silent=yes ;;
1047
1048 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1049 ac_prev=sbindir ;;
1050 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1051 | --sbi=* | --sb=*)
1052 sbindir=$ac_optarg ;;
1053
1054 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056 | --sharedst | --shareds | --shared | --share | --shar \
1057 | --sha | --sh)
1058 ac_prev=sharedstatedir ;;
1059 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1062 | --sha=* | --sh=*)
1063 sharedstatedir=$ac_optarg ;;
1064
1065 -site | --site | --sit)
1066 ac_prev=site ;;
1067 -site=* | --site=* | --sit=*)
1068 site=$ac_optarg ;;
1069
1070 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1071 ac_prev=srcdir ;;
1072 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073 srcdir=$ac_optarg ;;
1074
1075 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076 | --syscon | --sysco | --sysc | --sys | --sy)
1077 ac_prev=sysconfdir ;;
1078 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080 sysconfdir=$ac_optarg ;;
1081
1082 -target | --target | --targe | --targ | --tar | --ta | --t)
1083 ac_prev=target_alias ;;
1084 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085 target_alias=$ac_optarg ;;
1086
1087 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088 verbose=yes ;;
1089
1090 -version | --version | --versio | --versi | --vers | -V)
1091 ac_init_version=: ;;
1092
1093 -with-* | --with-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error $? "invalid package name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1101 *"
1102 "with_$ac_useropt"
1103 "*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval with_$ac_useropt=\$ac_optarg ;;
1108
1109 -without-* | --without-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error $? "invalid package name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1117 *"
1118 "with_$ac_useropt"
1119 "*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1122 esac
1123 eval with_$ac_useropt=no ;;
1124
1125 --x)
1126 # Obsolete; use --with-x.
1127 with_x=yes ;;
1128
1129 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130 | --x-incl | --x-inc | --x-in | --x-i)
1131 ac_prev=x_includes ;;
1132 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134 x_includes=$ac_optarg ;;
1135
1136 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138 ac_prev=x_libraries ;;
1139 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141 x_libraries=$ac_optarg ;;
1142
1143 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1144 Try \`$0 --help' for more information"
1145 ;;
1146
1147 *=*)
1148 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149 # Reject names that are not valid shell variable names.
1150 case $ac_envvar in #(
1151 '' | [0-9]* | *[!_$as_cr_alnum]* )
1152 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1153 esac
1154 eval $ac_envvar=\$ac_optarg
1155 export $ac_envvar ;;
1156
1157 *)
1158 # FIXME: should be removed in autoconf 3.0.
1159 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1163 ;;
1164
1165 esac
1166 done
1167
1168 if test -n "$ac_prev"; then
1169 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170 as_fn_error $? "missing argument to $ac_option"
1171 fi
1172
1173 if test -n "$ac_unrecognized_opts"; then
1174 case $enable_option_checking in
1175 no) ;;
1176 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1177 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178 esac
1179 fi
1180
1181 # Check all directory arguments for consistency.
1182 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183 datadir sysconfdir sharedstatedir localstatedir includedir \
1184 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185 libdir localedir mandir
1186 do
1187 eval ac_val=\$$ac_var
1188 # Remove trailing slashes.
1189 case $ac_val in
1190 */ )
1191 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192 eval $ac_var=\$ac_val;;
1193 esac
1194 # Be sure to have absolute directory names.
1195 case $ac_val in
1196 [\\/$]* | ?:[\\/]* ) continue;;
1197 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198 esac
1199 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1200 done
1201
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1205 build=$build_alias
1206 host=$host_alias
1207 target=$target_alias
1208
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211 if test "x$build_alias" = x; then
1212 cross_compiling=maybe
1213 elif test "x$build_alias" != "x$host_alias"; then
1214 cross_compiling=yes
1215 fi
1216 fi
1217
1218 ac_tool_prefix=
1219 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220
1221 test "$silent" = yes && exec 6>/dev/null
1222
1223
1224 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225 ac_ls_di=`ls -di .` &&
1226 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227 as_fn_error $? "working directory cannot be determined"
1228 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229 as_fn_error $? "pwd does not report name of working directory"
1230
1231
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234 ac_srcdir_defaulted=yes
1235 # Try the directory containing this script, then the parent directory.
1236 ac_confdir=`$as_dirname -- "$as_myself" ||
1237 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238 X"$as_myself" : 'X\(//\)[^/]' \| \
1239 X"$as_myself" : 'X\(//\)$' \| \
1240 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241 $as_echo X"$as_myself" |
1242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243 s//\1/
1244 q
1245 }
1246 /^X\(\/\/\)[^/].*/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)$/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\).*/{
1255 s//\1/
1256 q
1257 }
1258 s/.*/./; q'`
1259 srcdir=$ac_confdir
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 srcdir=..
1262 fi
1263 else
1264 ac_srcdir_defaulted=no
1265 fi
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269 fi
1270 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271 ac_abs_confdir=`(
1272 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273 pwd)`
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1276 srcdir=.
1277 fi
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1281 case $srcdir in
1282 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 esac
1284 for ac_var in $ac_precious_vars; do
1285 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_env_${ac_var}_value=\$${ac_var}
1287 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 done
1290
1291 #
1292 # Report the --help message.
1293 #
1294 if test "$ac_init_help" = "long"; then
1295 # Omit some internal or obsolete options to make the list less imposing.
1296 # This message is too long to be a string in the A/UX 3.1 sh.
1297 cat <<_ACEOF
1298 \`configure' configures this package to adapt to many kinds of systems.
1299
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1301
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE. See below for descriptions of some of the useful variables.
1304
1305 Defaults for the options are specified in brackets.
1306
1307 Configuration:
1308 -h, --help display this help and exit
1309 --help=short display options specific to this package
1310 --help=recursive display the short help of all the included packages
1311 -V, --version display version information and exit
1312 -q, --quiet, --silent do not print \`checking ...' messages
1313 --cache-file=FILE cache test results in FILE [disabled]
1314 -C, --config-cache alias for \`--cache-file=config.cache'
1315 -n, --no-create do not create output files
1316 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1317
1318 Installation directories:
1319 --prefix=PREFIX install architecture-independent files in PREFIX
1320 [$ac_default_prefix]
1321 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1322 [PREFIX]
1323
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1328
1329 For better control, use the options below.
1330
1331 Fine tuning of the installation directories:
1332 --bindir=DIR user executables [EPREFIX/bin]
1333 --sbindir=DIR system admin executables [EPREFIX/sbin]
1334 --libexecdir=DIR program executables [EPREFIX/libexec]
1335 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1336 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1337 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1338 --libdir=DIR object code libraries [EPREFIX/lib]
1339 --includedir=DIR C header files [PREFIX/include]
1340 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1341 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1342 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1343 --infodir=DIR info documentation [DATAROOTDIR/info]
1344 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1345 --mandir=DIR man documentation [DATAROOTDIR/man]
1346 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1347 --htmldir=DIR html documentation [DOCDIR]
1348 --dvidir=DIR dvi documentation [DOCDIR]
1349 --pdfdir=DIR pdf documentation [DOCDIR]
1350 --psdir=DIR ps documentation [DOCDIR]
1351 _ACEOF
1352
1353 cat <<\_ACEOF
1354
1355 System types:
1356 --build=BUILD configure for building on BUILD [guessed]
1357 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1358 _ACEOF
1359 fi
1360
1361 if test -n "$ac_init_help"; then
1362
1363 cat <<\_ACEOF
1364
1365 Optional Features:
1366 --disable-option-checking ignore unrecognized --enable/--with options
1367 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1368 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1369 --enable-debug debug [default=disabled]
1370 --enable-shared[=PKGS] build shared libraries [default=yes]
1371 --enable-static[=PKGS] build static libraries [default=yes]
1372 --enable-fast-install[=PKGS]
1373 optimize for fast installation [default=yes]
1374 --disable-libtool-lock avoid locking (might break parallel builds)
1375 --disable-largefile omit support for large files
1376 --enable-pty-helper use pty helper [default=disabled]
1377
1378 Optional Packages:
1379 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1380 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1381 --with-libtool[=ARG] libtool path [default=without]
1382 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1383 both]
1384 --with-aix-soname=aix|svr4|both
1385 shared library versioning (aka "SONAME") variant to
1386 provide on AIX, [default=aix].
1387 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1388 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1389 compiler's sysroot if not specified).
1390 --with-libltdl[=PREFIX] load modules with libltdl [default=without]
1391 --with-utmp[=ARG] utmp (utempter,sysv,login,bsd,none)
1392 --without-funcs-mlterm-unuse remove functions mlterm does not use [default=with]
1393
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1402 CPP C preprocessor
1403 LT_SYS_LIBRARY_PATH
1404 User-defined run-time library search path.
1405
1406 Use these variables to override the choices made by `configure' or to help
1407 it to find libraries and programs with nonstandard names/locations.
1408
1409 Report bugs to the package provider.
1410 _ACEOF
1411 ac_status=$?
1412 fi
1413
1414 if test "$ac_init_help" = "recursive"; then
1415 # If there are subdirs, report their specific --help.
1416 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1417 test -d "$ac_dir" ||
1418 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1419 continue
1420 ac_builddir=.
1421
1422 case "$ac_dir" in
1423 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 *)
1425 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1426 # A ".." for each directory in $ac_dir_suffix.
1427 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1428 case $ac_top_builddir_sub in
1429 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1431 esac ;;
1432 esac
1433 ac_abs_top_builddir=$ac_pwd
1434 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1435 # for backward compatibility:
1436 ac_top_builddir=$ac_top_build_prefix
1437
1438 case $srcdir in
1439 .) # We are building in place.
1440 ac_srcdir=.
1441 ac_top_srcdir=$ac_top_builddir_sub
1442 ac_abs_top_srcdir=$ac_pwd ;;
1443 [\\/]* | ?:[\\/]* ) # Absolute name.
1444 ac_srcdir=$srcdir$ac_dir_suffix;
1445 ac_top_srcdir=$srcdir
1446 ac_abs_top_srcdir=$srcdir ;;
1447 *) # Relative name.
1448 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1449 ac_top_srcdir=$ac_top_build_prefix$srcdir
1450 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1451 esac
1452 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1453
1454 cd "$ac_dir" || { ac_status=$?; continue; }
1455 # Check for guested configure.
1456 if test -f "$ac_srcdir/configure.gnu"; then
1457 echo &&
1458 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1459 elif test -f "$ac_srcdir/configure"; then
1460 echo &&
1461 $SHELL "$ac_srcdir/configure" --help=recursive
1462 else
1463 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1464 fi || ac_status=$?
1465 cd "$ac_pwd" || { ac_status=$?; break; }
1466 done
1467 fi
1468
1469 test -n "$ac_init_help" && exit $ac_status
1470 if $ac_init_version; then
1471 cat <<\_ACEOF
1472 configure
1473 generated by GNU Autoconf 2.69
1474
1475 Copyright (C) 2012 Free Software Foundation, Inc.
1476 This configure script is free software; the Free Software Foundation
1477 gives unlimited permission to copy, distribute and modify it.
1478 _ACEOF
1479 exit
1480 fi
1481
1482 ## ------------------------ ##
1483 ## Autoconf initialization. ##
1484 ## ------------------------ ##
1485
1486 # ac_fn_c_try_compile LINENO
1487 # --------------------------
1488 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1489 ac_fn_c_try_compile ()
1490 {
1491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1492 rm -f conftest.$ac_objext
1493 if { { ac_try="$ac_compile"
1494 case "(($ac_try" in
1495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1496 *) ac_try_echo=$ac_try;;
1497 esac
1498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1499 $as_echo "$ac_try_echo"; } >&5
1500 (eval "$ac_compile") 2>conftest.err
1501 ac_status=$?
1502 if test -s conftest.err; then
1503 grep -v '^ *+' conftest.err >conftest.er1
1504 cat conftest.er1 >&5
1505 mv -f conftest.er1 conftest.err
1506 fi
1507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1508 test $ac_status = 0; } && {
1509 test -z "$ac_c_werror_flag" ||
1510 test ! -s conftest.err
1511 } && test -s conftest.$ac_objext; then :
1512 ac_retval=0
1513 else
1514 $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.$ac_ext >&5
1516
1517 ac_retval=1
1518 fi
1519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1520 as_fn_set_status $ac_retval
1521
1522 } # ac_fn_c_try_compile
1523
1524 # ac_fn_c_try_cpp LINENO
1525 # ----------------------
1526 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_c_try_cpp ()
1528 {
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 if { { ac_try="$ac_cpp conftest.$ac_ext"
1531 case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } > conftest.i && {
1546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 }; then :
1549 ac_retval=0
1550 else
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1553
1554 ac_retval=1
1555 fi
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1558
1559 } # ac_fn_c_try_cpp
1560
1561 # ac_fn_c_try_link LINENO
1562 # -----------------------
1563 # Try to link conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_link ()
1565 {
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext conftest$ac_exeext
1568 if { { ac_try="$ac_link"
1569 case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest$ac_exeext && {
1587 test "$cross_compiling" = yes ||
1588 test -x conftest$ac_exeext
1589 }; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=1
1596 fi
1597 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599 # interfere with the next link command; also delete a directory that is
1600 # left behind by Apple's compiler. We do this before executing the actions.
1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1604
1605 } # ac_fn_c_try_link
1606
1607 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1608 # -------------------------------------------------------
1609 # Tests whether HEADER exists and can be compiled using the include files in
1610 # INCLUDES, setting the cache variable VAR accordingly.
1611 ac_fn_c_check_header_compile ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615 $as_echo_n "checking for $2... " >&6; }
1616 if eval \${$3+:} false; then :
1617 $as_echo_n "(cached) " >&6
1618 else
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1621 $4
1622 #include <$2>
1623 _ACEOF
1624 if ac_fn_c_try_compile "$LINENO"; then :
1625 eval "$3=yes"
1626 else
1627 eval "$3=no"
1628 fi
1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1630 fi
1631 eval ac_res=\$$3
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 $as_echo "$ac_res" >&6; }
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
1636 } # ac_fn_c_check_header_compile
1637
1638 # ac_fn_c_try_run LINENO
1639 # ----------------------
1640 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1641 # that executables *can* be run.
1642 ac_fn_c_try_run ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_link"
1646 case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_link") 2>&5
1653 ac_status=$?
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1656 { { case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_try") 2>&5
1663 ac_status=$?
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; }; }; then :
1666 ac_retval=0
1667 else
1668 $as_echo "$as_me: program exited with status $ac_status" >&5
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1671
1672 ac_retval=$ac_status
1673 fi
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_run
1679
1680 # ac_fn_c_check_func LINENO FUNC VAR
1681 # ----------------------------------
1682 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1683 ac_fn_c_check_func ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if eval \${$3+:} false; then :
1689 $as_echo_n "(cached) " >&6
1690 else
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1693 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1695 #define $2 innocuous_$2
1696
1697 /* System header to define __stub macros and hopefully few prototypes,
1698 which can conflict with char $2 (); below.
1699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1700 <limits.h> exists even on freestanding compilers. */
1701
1702 #ifdef __STDC__
1703 # include <limits.h>
1704 #else
1705 # include <assert.h>
1706 #endif
1707
1708 #undef $2
1709
1710 /* Override any GCC internal prototype to avoid an error.
1711 Use char because int might match the return type of a GCC
1712 builtin and then its argument prototype would still apply. */
1713 #ifdef __cplusplus
1714 extern "C"
1715 #endif
1716 char $2 ();
1717 /* The GNU C library defines this for functions which it implements
1718 to always fail with ENOSYS. Some functions are actually named
1719 something starting with __ and the normal name is an alias. */
1720 #if defined __stub_$2 || defined __stub___$2
1721 choke me
1722 #endif
1723
1724 int
1725 main ()
1726 {
1727 return $2 ();
1728 ;
1729 return 0;
1730 }
1731 _ACEOF
1732 if ac_fn_c_try_link "$LINENO"; then :
1733 eval "$3=yes"
1734 else
1735 eval "$3=no"
1736 fi
1737 rm -f core conftest.err conftest.$ac_objext \
1738 conftest$ac_exeext conftest.$ac_ext
1739 fi
1740 eval ac_res=\$$3
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742 $as_echo "$ac_res" >&6; }
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744
1745 } # ac_fn_c_check_func
1746
1747 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1748 # -------------------------------------------------------
1749 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1750 # the include files in INCLUDES and setting the cache variable VAR
1751 # accordingly.
1752 ac_fn_c_check_header_mongrel ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if eval \${$3+:} false; then :
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1760 fi
1761 eval ac_res=\$$3
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764 else
1765 # Is the header compilable?
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1767 $as_echo_n "checking $2 usability... " >&6; }
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 ac_header_compiler=yes
1775 else
1776 ac_header_compiler=no
1777 fi
1778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1780 $as_echo "$ac_header_compiler" >&6; }
1781
1782 # Is the header present?
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1784 $as_echo_n "checking $2 presence... " >&6; }
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_cpp "$LINENO"; then :
1790 ac_header_preproc=yes
1791 else
1792 ac_header_preproc=no
1793 fi
1794 rm -f conftest.err conftest.i conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1796 $as_echo "$ac_header_preproc" >&6; }
1797
1798 # So? What about this header?
1799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1800 yes:no: )
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1802 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1804 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1805 ;;
1806 no:yes:* )
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1808 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1810 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1812 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1814 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1816 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1817 ;;
1818 esac
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 eval "$3=\$ac_header_compiler"
1825 fi
1826 eval ac_res=\$$3
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 fi
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831
1832 } # ac_fn_c_check_header_mongrel
1833
1834 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1835 # -------------------------------------------
1836 # Tests whether TYPE exists after having included INCLUDES, setting cache
1837 # variable VAR accordingly.
1838 ac_fn_c_check_type ()
1839 {
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845 else
1846 eval "$3=no"
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1849 $4
1850 int
1851 main ()
1852 {
1853 if (sizeof ($2))
1854 return 0;
1855 ;
1856 return 0;
1857 }
1858 _ACEOF
1859 if ac_fn_c_try_compile "$LINENO"; then :
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 $4
1863 int
1864 main ()
1865 {
1866 if (sizeof (($2)))
1867 return 0;
1868 ;
1869 return 0;
1870 }
1871 _ACEOF
1872 if ac_fn_c_try_compile "$LINENO"; then :
1873
1874 else
1875 eval "$3=yes"
1876 fi
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 fi
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1880 fi
1881 eval ac_res=\$$3
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885
1886 } # ac_fn_c_check_type
1887 cat >config.log <<_ACEOF
1888 This file contains any messages produced by compilers while
1889 running configure, to aid debugging if configure makes a mistake.
1890
1891 It was created by $as_me, which was
1892 generated by GNU Autoconf 2.69. Invocation command line was
1893
1894 $ $0 $@
1895
1896 _ACEOF
1897 exec 5>>config.log
1898 {
1899 cat <<_ASUNAME
1900 ## --------- ##
1901 ## Platform. ##
1902 ## --------- ##
1903
1904 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1905 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1906 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1907 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1908 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1909
1910 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1911 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1912
1913 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1914 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1915 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1916 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1917 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1918 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1919 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1920
1921 _ASUNAME
1922
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
1928 $as_echo "PATH: $as_dir"
1929 done
1930 IFS=$as_save_IFS
1931
1932 } >&5
1933
1934 cat >&5 <<_ACEOF
1935
1936
1937 ## ----------- ##
1938 ## Core tests. ##
1939 ## ----------- ##
1940
1941 _ACEOF
1942
1943
1944 # Keep a trace of the command line.
1945 # Strip out --no-create and --no-recursion so they do not pile up.
1946 # Strip out --silent because we don't want to record it for future runs.
1947 # Also quote any args containing shell meta-characters.
1948 # Make two passes to allow for proper duplicate-argument suppression.
1949 ac_configure_args=
1950 ac_configure_args0=
1951 ac_configure_args1=
1952 ac_must_keep_next=false
1953 for ac_pass in 1 2
1954 do
1955 for ac_arg
1956 do
1957 case $ac_arg in
1958 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1960 | -silent | --silent | --silen | --sile | --sil)
1961 continue ;;
1962 *\'*)
1963 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1964 esac
1965 case $ac_pass in
1966 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1967 2)
1968 as_fn_append ac_configure_args1 " '$ac_arg'"
1969 if test $ac_must_keep_next = true; then
1970 ac_must_keep_next=false # Got value, back to normal.
1971 else
1972 case $ac_arg in
1973 *=* | --config-cache | -C | -disable-* | --disable-* \
1974 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1975 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1976 | -with-* | --with-* | -without-* | --without-* | --x)
1977 case "$ac_configure_args0 " in
1978 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1979 esac
1980 ;;
1981 -* ) ac_must_keep_next=true ;;
1982 esac
1983 fi
1984 as_fn_append ac_configure_args " '$ac_arg'"
1985 ;;
1986 esac
1987 done
1988 done
1989 { ac_configure_args0=; unset ac_configure_args0;}
1990 { ac_configure_args1=; unset ac_configure_args1;}
1991
1992 # When interrupted or exit'd, cleanup temporary files, and complete
1993 # config.log. We remove comments because anyway the quotes in there
1994 # would cause problems or look ugly.
1995 # WARNING: Use '\'' to represent an apostrophe within the trap.
1996 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1997 trap 'exit_status=$?
1998 # Save into config.log some information that might help in debugging.
1999 {
2000 echo
2001
2002 $as_echo "## ---------------- ##
2003 ## Cache variables. ##
2004 ## ---------------- ##"
2005 echo
2006 # The following way of writing the cache mishandles newlines in values,
2007 (
2008 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2009 eval ac_val=\$$ac_var
2010 case $ac_val in #(
2011 *${as_nl}*)
2012 case $ac_var in #(
2013 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2014 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2015 esac
2016 case $ac_var in #(
2017 _ | IFS | as_nl) ;; #(
2018 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2019 *) { eval $ac_var=; unset $ac_var;} ;;
2020 esac ;;
2021 esac
2022 done
2023 (set) 2>&1 |
2024 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2025 *${as_nl}ac_space=\ *)
2026 sed -n \
2027 "s/'\''/'\''\\\\'\'''\''/g;
2028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2029 ;; #(
2030 *)
2031 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2032 ;;
2033 esac |
2034 sort
2035 )
2036 echo
2037
2038 $as_echo "## ----------------- ##
2039 ## Output variables. ##
2040 ## ----------------- ##"
2041 echo
2042 for ac_var in $ac_subst_vars
2043 do
2044 eval ac_val=\$$ac_var
2045 case $ac_val in
2046 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2047 esac
2048 $as_echo "$ac_var='\''$ac_val'\''"
2049 done | sort
2050 echo
2051
2052 if test -n "$ac_subst_files"; then
2053 $as_echo "## ------------------- ##
2054 ## File substitutions. ##
2055 ## ------------------- ##"
2056 echo
2057 for ac_var in $ac_subst_files
2058 do
2059 eval ac_val=\$$ac_var
2060 case $ac_val in
2061 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062 esac
2063 $as_echo "$ac_var='\''$ac_val'\''"
2064 done | sort
2065 echo
2066 fi
2067
2068 if test -s confdefs.h; then
2069 $as_echo "## ----------- ##
2070 ## confdefs.h. ##
2071 ## ----------- ##"
2072 echo
2073 cat confdefs.h
2074 echo
2075 fi
2076 test "$ac_signal" != 0 &&
2077 $as_echo "$as_me: caught signal $ac_signal"
2078 $as_echo "$as_me: exit $exit_status"
2079 } >&5
2080 rm -f core *.core core.conftest.* &&
2081 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2082 exit $exit_status
2083 ' 0
2084 for ac_signal in 1 2 13 15; do
2085 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2086 done
2087 ac_signal=0
2088
2089 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2090 rm -f -r conftest* confdefs.h
2091
2092 $as_echo "/* confdefs.h */" > confdefs.h
2093
2094 # Predefined preprocessor variables.
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_NAME "$PACKAGE_NAME"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_STRING "$PACKAGE_STRING"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_URL "$PACKAGE_URL"
2118 _ACEOF
2119
2120
2121 # Let the site file select an alternate cache file if it wants to.
2122 # Prefer an explicitly selected file to automatically selected ones.
2123 ac_site_file1=NONE
2124 ac_site_file2=NONE
2125 if test -n "$CONFIG_SITE"; then
2126 # We do not want a PATH search for config.site.
2127 case $CONFIG_SITE in #((
2128 -*) ac_site_file1=./$CONFIG_SITE;;
2129 */*) ac_site_file1=$CONFIG_SITE;;
2130 *) ac_site_file1=./$CONFIG_SITE;;
2131 esac
2132 elif test "x$prefix" != xNONE; then
2133 ac_site_file1=$prefix/share/config.site
2134 ac_site_file2=$prefix/etc/config.site
2135 else
2136 ac_site_file1=$ac_default_prefix/share/config.site
2137 ac_site_file2=$ac_default_prefix/etc/config.site
2138 fi
2139 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2140 do
2141 test "x$ac_site_file" = xNONE && continue
2142 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2144 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2145 sed 's/^/| /' "$ac_site_file" >&5
2146 . "$ac_site_file" \
2147 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2149 as_fn_error $? "failed to load site script $ac_site_file
2150 See \`config.log' for more details" "$LINENO" 5; }
2151 fi
2152 done
2153
2154 if test -r "$cache_file"; then
2155 # Some versions of bash will fail to source /dev/null (special files
2156 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2157 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2159 $as_echo "$as_me: loading cache $cache_file" >&6;}
2160 case $cache_file in
2161 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2162 *) . "./$cache_file";;
2163 esac
2164 fi
2165 else
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2167 $as_echo "$as_me: creating cache $cache_file" >&6;}
2168 >$cache_file
2169 fi
2170
2171 # Check that the precious variables saved in the cache have kept the same
2172 # value.
2173 ac_cache_corrupted=false
2174 for ac_var in $ac_precious_vars; do
2175 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2176 eval ac_new_set=\$ac_env_${ac_var}_set
2177 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2178 eval ac_new_val=\$ac_env_${ac_var}_value
2179 case $ac_old_set,$ac_new_set in
2180 set,)
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2182 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2183 ac_cache_corrupted=: ;;
2184 ,set)
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2186 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2187 ac_cache_corrupted=: ;;
2188 ,);;
2189 *)
2190 if test "x$ac_old_val" != "x$ac_new_val"; then
2191 # differences in whitespace do not lead to failure.
2192 ac_old_val_w=`echo x $ac_old_val`
2193 ac_new_val_w=`echo x $ac_new_val`
2194 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2196 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2197 ac_cache_corrupted=:
2198 else
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2200 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2201 eval $ac_var=\$ac_old_val
2202 fi
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2204 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2206 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2207 fi;;
2208 esac
2209 # Pass precious variables to config.status.
2210 if test "$ac_new_set" = set; then
2211 case $ac_new_val in
2212 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2213 *) ac_arg=$ac_var=$ac_new_val ;;
2214 esac
2215 case " $ac_configure_args " in
2216 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2217 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2218 esac
2219 fi
2220 done
2221 if $ac_cache_corrupted; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2225 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2226 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2227 fi
2228 ## -------------------- ##
2229 ## Main body of script. ##
2230 ## -------------------- ##
2231
2232 ac_ext=c
2233 ac_cpp='$CPP $CPPFLAGS'
2234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2237
2238
2239
2240 ac_config_headers="$ac_config_headers src/bl_config.h"
2241
2242 ac_aux_dir=
2243 for ac_dir in script "$srcdir"/script; do
2244 if test -f "$ac_dir/install-sh"; then
2245 ac_aux_dir=$ac_dir
2246 ac_install_sh="$ac_aux_dir/install-sh -c"
2247 break
2248 elif test -f "$ac_dir/install.sh"; then
2249 ac_aux_dir=$ac_dir
2250 ac_install_sh="$ac_aux_dir/install.sh -c"
2251 break
2252 elif test -f "$ac_dir/shtool"; then
2253 ac_aux_dir=$ac_dir
2254 ac_install_sh="$ac_aux_dir/shtool install -c"
2255 break
2256 fi
2257 done
2258 if test -z "$ac_aux_dir"; then
2259 as_fn_error $? "cannot find install-sh, install.sh, or shtool in script \"$srcdir\"/script" "$LINENO" 5
2260 fi
2261
2262 # These three variables are undocumented and unsupported,
2263 # and are intended to be withdrawn in a future Autoconf release.
2264 # They can cause serious problems if a builder's source tree is in a directory
2265 # whose full name contains unusual characters.
2266 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2267 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2268 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2269
2270
2271
2272 # Make sure we can run config.sub.
2273 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2274 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2275
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2277 $as_echo_n "checking build system type... " >&6; }
2278 if ${ac_cv_build+:} false; then :
2279 $as_echo_n "(cached) " >&6
2280 else
2281 ac_build_alias=$build_alias
2282 test "x$ac_build_alias" = x &&
2283 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2284 test "x$ac_build_alias" = x &&
2285 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2286 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2287 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2288
2289 fi
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2291 $as_echo "$ac_cv_build" >&6; }
2292 case $ac_cv_build in
2293 *-*-*) ;;
2294 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2295 esac
2296 build=$ac_cv_build
2297 ac_save_IFS=$IFS; IFS='-'
2298 set x $ac_cv_build
2299 shift
2300 build_cpu=$1
2301 build_vendor=$2
2302 shift; shift
2303 # Remember, the first character of IFS is used to create $*,
2304 # except with old shells:
2305 build_os=$*
2306 IFS=$ac_save_IFS
2307 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2308
2309
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2311 $as_echo_n "checking host system type... " >&6; }
2312 if ${ac_cv_host+:} false; then :
2313 $as_echo_n "(cached) " >&6
2314 else
2315 if test "x$host_alias" = x; then
2316 ac_cv_host=$ac_cv_build
2317 else
2318 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2319 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2320 fi
2321
2322 fi
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2324 $as_echo "$ac_cv_host" >&6; }
2325 case $ac_cv_host in
2326 *-*-*) ;;
2327 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2328 esac
2329 host=$ac_cv_host
2330 ac_save_IFS=$IFS; IFS='-'
2331 set x $ac_cv_host
2332 shift
2333 host_cpu=$1
2334 host_vendor=$2
2335 shift; shift
2336 # Remember, the first character of IFS is used to create $*,
2337 # except with old shells:
2338 host_os=$*
2339 IFS=$ac_save_IFS
2340 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2341
2342
2343
2344
2345 # for CFLAGS="..." ./configure ...
2346
2347
2348 ac_ext=c
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353 if test -n "$ac_tool_prefix"; then
2354 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2355 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2357 $as_echo_n "checking for $ac_word... " >&6; }
2358 if ${ac_cv_prog_CC+:} false; then :
2359 $as_echo_n "(cached) " >&6
2360 else
2361 if test -n "$CC"; then
2362 ac_cv_prog_CC="$CC" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2371 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 break 2
2374 fi
2375 done
2376 done
2377 IFS=$as_save_IFS
2378
2379 fi
2380 fi
2381 CC=$ac_cv_prog_CC
2382 if test -n "$CC"; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2384 $as_echo "$CC" >&6; }
2385 else
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2387 $as_echo "no" >&6; }
2388 fi
2389
2390
2391 fi
2392 if test -z "$ac_cv_prog_CC"; then
2393 ac_ct_CC=$CC
2394 # Extract the first word of "gcc", so it can be a program name with args.
2395 set dummy gcc; ac_word=$2
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2397 $as_echo_n "checking for $ac_word... " >&6; }
2398 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2399 $as_echo_n "(cached) " >&6
2400 else
2401 if test -n "$ac_ct_CC"; then
2402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2411 ac_cv_prog_ac_ct_CC="gcc"
2412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 break 2
2414 fi
2415 done
2416 done
2417 IFS=$as_save_IFS
2418
2419 fi
2420 fi
2421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2422 if test -n "$ac_ct_CC"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2424 $as_echo "$ac_ct_CC" >&6; }
2425 else
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2427 $as_echo "no" >&6; }
2428 fi
2429
2430 if test "x$ac_ct_CC" = x; then
2431 CC=""
2432 else
2433 case $cross_compiling:$ac_tool_warned in
2434 yes:)
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2437 ac_tool_warned=yes ;;
2438 esac
2439 CC=$ac_ct_CC
2440 fi
2441 else
2442 CC="$ac_cv_prog_CC"
2443 fi
2444
2445 if test -z "$CC"; then
2446 if test -n "$ac_tool_prefix"; then
2447 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2448 set dummy ${ac_tool_prefix}cc; ac_word=$2
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2450 $as_echo_n "checking for $ac_word... " >&6; }
2451 if ${ac_cv_prog_CC+:} false; then :
2452 $as_echo_n "(cached) " >&6
2453 else
2454 if test -n "$CC"; then
2455 ac_cv_prog_CC="$CC" # Let the user override the test.
2456 else
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH
2459 do
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2464 ac_cv_prog_CC="${ac_tool_prefix}cc"
2465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 break 2
2467 fi
2468 done
2469 done
2470 IFS=$as_save_IFS
2471
2472 fi
2473 fi
2474 CC=$ac_cv_prog_CC
2475 if test -n "$CC"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2477 $as_echo "$CC" >&6; }
2478 else
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2480 $as_echo "no" >&6; }
2481 fi
2482
2483
2484 fi
2485 fi
2486 if test -z "$CC"; then
2487 # Extract the first word of "cc", so it can be a program name with args.
2488 set dummy cc; ac_word=$2
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2490 $as_echo_n "checking for $ac_word... " >&6; }
2491 if ${ac_cv_prog_CC+:} false; then :
2492 $as_echo_n "(cached) " >&6
2493 else
2494 if test -n "$CC"; then
2495 ac_cv_prog_CC="$CC" # Let the user override the test.
2496 else
2497 ac_prog_rejected=no
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2500 do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2505 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2506 ac_prog_rejected=yes
2507 continue
2508 fi
2509 ac_cv_prog_CC="cc"
2510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 break 2
2512 fi
2513 done
2514 done
2515 IFS=$as_save_IFS
2516
2517 if test $ac_prog_rejected = yes; then
2518 # We found a bogon in the path, so make sure we never use it.
2519 set dummy $ac_cv_prog_CC
2520 shift
2521 if test $# != 0; then
2522 # We chose a different compiler from the bogus one.
2523 # However, it has the same basename, so the bogon will be chosen
2524 # first if we set CC to just the basename; use the full file name.
2525 shift
2526 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2527 fi
2528 fi
2529 fi
2530 fi
2531 CC=$ac_cv_prog_CC
2532 if test -n "$CC"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2534 $as_echo "$CC" >&6; }
2535 else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537 $as_echo "no" >&6; }
2538 fi
2539
2540
2541 fi
2542 if test -z "$CC"; then
2543 if test -n "$ac_tool_prefix"; then
2544 for ac_prog in cl.exe
2545 do
2546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if ${ac_cv_prog_CC+:} false; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2563 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 break 2
2566 fi
2567 done
2568 done
2569 IFS=$as_save_IFS
2570
2571 fi
2572 fi
2573 CC=$ac_cv_prog_CC
2574 if test -n "$CC"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2576 $as_echo "$CC" >&6; }
2577 else
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579 $as_echo "no" >&6; }
2580 fi
2581
2582
2583 test -n "$CC" && break
2584 done
2585 fi
2586 if test -z "$CC"; then
2587 ac_ct_CC=$CC
2588 for ac_prog in cl.exe
2589 do
2590 # Extract the first word of "$ac_prog", so it can be a program name with args.
2591 set dummy $ac_prog; ac_word=$2
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2593 $as_echo_n "checking for $ac_word... " >&6; }
2594 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 if test -n "$ac_ct_CC"; then
2598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2599 else
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 for as_dir in $PATH
2602 do
2603 IFS=$as_save_IFS
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2607 ac_cv_prog_ac_ct_CC="$ac_prog"
2608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 break 2
2610 fi
2611 done
2612 done
2613 IFS=$as_save_IFS
2614
2615 fi
2616 fi
2617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2618 if test -n "$ac_ct_CC"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2620 $as_echo "$ac_ct_CC" >&6; }
2621 else
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623 $as_echo "no" >&6; }
2624 fi
2625
2626
2627 test -n "$ac_ct_CC" && break
2628 done
2629
2630 if test "x$ac_ct_CC" = x; then
2631 CC=""
2632 else
2633 case $cross_compiling:$ac_tool_warned in
2634 yes:)
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2637 ac_tool_warned=yes ;;
2638 esac
2639 CC=$ac_ct_CC
2640 fi
2641 fi
2642
2643 fi
2644
2645
2646 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2648 as_fn_error $? "no acceptable C compiler found in \$PATH
2649 See \`config.log' for more details" "$LINENO" 5; }
2650
2651 # Provide some information about the compiler.
2652 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2653 set X $ac_compile
2654 ac_compiler=$2
2655 for ac_option in --version -v -V -qversion; do
2656 { { ac_try="$ac_compiler $ac_option >&5"
2657 case "(($ac_try" in
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2660 esac
2661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2662 $as_echo "$ac_try_echo"; } >&5
2663 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2664 ac_status=$?
2665 if test -s conftest.err; then
2666 sed '10a\
2667 ... rest of stderr output deleted ...
2668 10q' conftest.err >conftest.er1
2669 cat conftest.er1 >&5
2670 fi
2671 rm -f conftest.er1 conftest.err
2672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2673 test $ac_status = 0; }
2674 done
2675
2676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677 /* end confdefs.h. */
2678
2679 int
2680 main ()
2681 {
2682
2683 ;
2684 return 0;
2685 }
2686 _ACEOF
2687 ac_clean_files_save=$ac_clean_files
2688 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2689 # Try to create an executable without -o first, disregard a.out.
2690 # It will help us diagnose broken compilers, and finding out an intuition
2691 # of exeext.
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2693 $as_echo_n "checking whether the C compiler works... " >&6; }
2694 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2695
2696 # The possible output files:
2697 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2698
2699 ac_rmfiles=
2700 for ac_file in $ac_files
2701 do
2702 case $ac_file in
2703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2704 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2705 esac
2706 done
2707 rm -f $ac_rmfiles
2708
2709 if { { ac_try="$ac_link_default"
2710 case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713 esac
2714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2715 $as_echo "$ac_try_echo"; } >&5
2716 (eval "$ac_link_default") 2>&5
2717 ac_status=$?
2718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2719 test $ac_status = 0; }; then :
2720 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2721 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2722 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2723 # so that the user can short-circuit this test for compilers unknown to
2724 # Autoconf.
2725 for ac_file in $ac_files ''
2726 do
2727 test -f "$ac_file" || continue
2728 case $ac_file in
2729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2730 ;;
2731 [ab].out )
2732 # We found the default executable, but exeext='' is most
2733 # certainly right.
2734 break;;
2735 *.* )
2736 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2737 then :; else
2738 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2739 fi
2740 # We set ac_cv_exeext here because the later test for it is not
2741 # safe: cross compilers may not add the suffix if given an `-o'
2742 # argument, so we may need to know it at that point already.
2743 # Even if this section looks crufty: it has the advantage of
2744 # actually working.
2745 break;;
2746 * )
2747 break;;
2748 esac
2749 done
2750 test "$ac_cv_exeext" = no && ac_cv_exeext=
2751
2752 else
2753 ac_file=''
2754 fi
2755 if test -z "$ac_file"; then :
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2758 $as_echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2760
2761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763 as_fn_error 77 "C compiler cannot create executables
2764 See \`config.log' for more details" "$LINENO" 5; }
2765 else
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2767 $as_echo "yes" >&6; }
2768 fi
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2770 $as_echo_n "checking for C compiler default output file name... " >&6; }
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2772 $as_echo "$ac_file" >&6; }
2773 ac_exeext=$ac_cv_exeext
2774
2775 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2776 ac_clean_files=$ac_clean_files_save
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2778 $as_echo_n "checking for suffix of executables... " >&6; }
2779 if { { ac_try="$ac_link"
2780 case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783 esac
2784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2785 $as_echo "$ac_try_echo"; } >&5
2786 (eval "$ac_link") 2>&5
2787 ac_status=$?
2788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2789 test $ac_status = 0; }; then :
2790 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2791 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2792 # work properly (i.e., refer to `conftest.exe'), while it won't with
2793 # `rm'.
2794 for ac_file in conftest.exe conftest conftest.*; do
2795 test -f "$ac_file" || continue
2796 case $ac_file in
2797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2798 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2799 break;;
2800 * ) break;;
2801 esac
2802 done
2803 else
2804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2806 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2807 See \`config.log' for more details" "$LINENO" 5; }
2808 fi
2809 rm -f conftest conftest$ac_cv_exeext
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2811 $as_echo "$ac_cv_exeext" >&6; }
2812
2813 rm -f conftest.$ac_ext
2814 EXEEXT=$ac_cv_exeext
2815 ac_exeext=$EXEEXT
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2818 #include <stdio.h>
2819 int
2820 main ()
2821 {
2822 FILE *f = fopen ("conftest.out", "w");
2823 return ferror (f) || fclose (f) != 0;
2824
2825 ;
2826 return 0;
2827 }
2828 _ACEOF
2829 ac_clean_files="$ac_clean_files conftest.out"
2830 # Check that the compiler produces executables we can run. If not, either
2831 # the compiler is broken, or we cross compile.
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2833 $as_echo_n "checking whether we are cross compiling... " >&6; }
2834 if test "$cross_compiling" != yes; then
2835 { { ac_try="$ac_link"
2836 case "(($ac_try" in
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2839 esac
2840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2841 $as_echo "$ac_try_echo"; } >&5
2842 (eval "$ac_link") 2>&5
2843 ac_status=$?
2844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2845 test $ac_status = 0; }
2846 if { ac_try='./conftest$ac_cv_exeext'
2847 { { case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850 esac
2851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852 $as_echo "$ac_try_echo"; } >&5
2853 (eval "$ac_try") 2>&5
2854 ac_status=$?
2855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2856 test $ac_status = 0; }; }; then
2857 cross_compiling=no
2858 else
2859 if test "$cross_compiling" = maybe; then
2860 cross_compiling=yes
2861 else
2862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2864 as_fn_error $? "cannot run C compiled programs.
2865 If you meant to cross compile, use \`--host'.
2866 See \`config.log' for more details" "$LINENO" 5; }
2867 fi
2868 fi
2869 fi
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2871 $as_echo "$cross_compiling" >&6; }
2872
2873 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2874 ac_clean_files=$ac_clean_files_save
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2876 $as_echo_n "checking for suffix of object files... " >&6; }
2877 if ${ac_cv_objext+:} false; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881 /* end confdefs.h. */
2882
2883 int
2884 main ()
2885 {
2886
2887 ;
2888 return 0;
2889 }
2890 _ACEOF
2891 rm -f conftest.o conftest.obj
2892 if { { ac_try="$ac_compile"
2893 case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896 esac
2897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2898 $as_echo "$ac_try_echo"; } >&5
2899 (eval "$ac_compile") 2>&5
2900 ac_status=$?
2901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2902 test $ac_status = 0; }; then :
2903 for ac_file in conftest.o conftest.obj conftest.*; do
2904 test -f "$ac_file" || continue;
2905 case $ac_file in
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2907 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2908 break;;
2909 esac
2910 done
2911 else
2912 $as_echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2914
2915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2917 as_fn_error $? "cannot compute suffix of object files: cannot compile
2918 See \`config.log' for more details" "$LINENO" 5; }
2919 fi
2920 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2921 fi
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2923 $as_echo "$ac_cv_objext" >&6; }
2924 OBJEXT=$ac_cv_objext
2925 ac_objext=$OBJEXT
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2927 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2928 if ${ac_cv_c_compiler_gnu+:} false; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2932 /* end confdefs.h. */
2933
2934 int
2935 main ()
2936 {
2937 #ifndef __GNUC__
2938 choke me
2939 #endif
2940
2941 ;
2942 return 0;
2943 }
2944 _ACEOF
2945 if ac_fn_c_try_compile "$LINENO"; then :
2946 ac_compiler_gnu=yes
2947 else
2948 ac_compiler_gnu=no
2949 fi
2950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2951 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2952
2953 fi
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2955 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2956 if test $ac_compiler_gnu = yes; then
2957 GCC=yes
2958 else
2959 GCC=
2960 fi
2961 ac_test_CFLAGS=${CFLAGS+set}
2962 ac_save_CFLAGS=$CFLAGS
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2964 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2965 if ${ac_cv_prog_cc_g+:} false; then :
2966 $as_echo_n "(cached) " >&6
2967 else
2968 ac_save_c_werror_flag=$ac_c_werror_flag
2969 ac_c_werror_flag=yes
2970 ac_cv_prog_cc_g=no
2971 CFLAGS="-g"
2972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973 /* end confdefs.h. */
2974
2975 int
2976 main ()
2977 {
2978
2979 ;
2980 return 0;
2981 }
2982 _ACEOF
2983 if ac_fn_c_try_compile "$LINENO"; then :
2984 ac_cv_prog_cc_g=yes
2985 else
2986 CFLAGS=""
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h. */
2989
2990 int
2991 main ()
2992 {
2993
2994 ;
2995 return 0;
2996 }
2997 _ACEOF
2998 if ac_fn_c_try_compile "$LINENO"; then :
2999
3000 else
3001 ac_c_werror_flag=$ac_save_c_werror_flag
3002 CFLAGS="-g"
3003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004 /* end confdefs.h. */
3005
3006 int
3007 main ()
3008 {
3009
3010 ;
3011 return 0;
3012 }
3013 _ACEOF
3014 if ac_fn_c_try_compile "$LINENO"; then :
3015 ac_cv_prog_cc_g=yes
3016 fi
3017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3018 fi
3019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020 fi
3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022 ac_c_werror_flag=$ac_save_c_werror_flag
3023 fi
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3025 $as_echo "$ac_cv_prog_cc_g" >&6; }
3026 if test "$ac_test_CFLAGS" = set; then
3027 CFLAGS=$ac_save_CFLAGS
3028 elif test $ac_cv_prog_cc_g = yes; then
3029 if test "$GCC" = yes; then
3030 CFLAGS="-g -O2"
3031 else
3032 CFLAGS="-g"
3033 fi
3034 else
3035 if test "$GCC" = yes; then
3036 CFLAGS="-O2"
3037 else
3038 CFLAGS=
3039 fi
3040 fi
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3042 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3043 if ${ac_cv_prog_cc_c89+:} false; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 ac_cv_prog_cc_c89=no
3047 ac_save_CC=$CC
3048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049 /* end confdefs.h. */
3050 #include <stdarg.h>
3051 #include <stdio.h>
3052 struct stat;
3053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3054 struct buf { int x; };
3055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3056 static char *e (p, i)
3057 char **p;
3058 int i;
3059 {
3060 return p[i];
3061 }
3062 static char *f (char * (*g) (char **, int), char **p, ...)
3063 {
3064 char *s;
3065 va_list v;
3066 va_start (v,p);
3067 s = g (p, va_arg (v,int));
3068 va_end (v);
3069 return s;
3070 }
3071
3072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3073 function prototypes and stuff, but not '\xHH' hex character constants.
3074 These don't provoke an error unfortunately, instead are silently treated
3075 as 'x'. The following induces an error, until -std is added to get
3076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3077 array size at least. It's necessary to write '\x00'==0 to get something
3078 that's true only with -std. */
3079 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3080
3081 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3082 inside strings and character constants. */
3083 #define FOO(x) 'x'
3084 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3085
3086 int test (int i, double x);
3087 struct s1 {int (*f) (int a);};
3088 struct s2 {int (*f) (double a);};
3089 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3090 int argc;
3091 char **argv;
3092 int
3093 main ()
3094 {
3095 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3096 ;
3097 return 0;
3098 }
3099 _ACEOF
3100 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3101 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3102 do
3103 CC="$ac_save_CC $ac_arg"
3104 if ac_fn_c_try_compile "$LINENO"; then :
3105 ac_cv_prog_cc_c89=$ac_arg
3106 fi
3107 rm -f core conftest.err conftest.$ac_objext
3108 test "x$ac_cv_prog_cc_c89" != "xno" && break
3109 done
3110 rm -f conftest.$ac_ext
3111 CC=$ac_save_CC
3112
3113 fi
3114 # AC_CACHE_VAL
3115 case "x$ac_cv_prog_cc_c89" in
3116 x)
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3118 $as_echo "none needed" >&6; } ;;
3119 xno)
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3121 $as_echo "unsupported" >&6; } ;;
3122 *)
3123 CC="$CC $ac_cv_prog_cc_c89"
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3125 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3126 esac
3127 if test "x$ac_cv_prog_cc_c89" != xno; then :
3128
3129 fi
3130
3131 ac_ext=c
3132 ac_cpp='$CPP $CPPFLAGS'
3133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3136
3137 # if --with-libtool is specified, cpp isn't detected.
3138 ac_ext=c
3139 ac_cpp='$CPP $CPPFLAGS'
3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3144 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3145 # On Suns, sometimes $CPP names a directory.
3146 if test -n "$CPP" && test -d "$CPP"; then
3147 CPP=
3148 fi
3149 if test -z "$CPP"; then
3150 if ${ac_cv_prog_CPP+:} false; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 # Double quotes because CPP needs to be expanded
3154 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3155 do
3156 ac_preproc_ok=false
3157 for ac_c_preproc_warn_flag in '' yes
3158 do
3159 # Use a header file that comes with gcc, so configuring glibc
3160 # with a fresh cross-compiler works.
3161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3162 # <limits.h> exists even on freestanding compilers.
3163 # On the NeXT, cc -E runs the code through the compiler's parser,
3164 # not just through cpp. "Syntax error" is here to catch this case.
3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166 /* end confdefs.h. */
3167 #ifdef __STDC__
3168 # include <limits.h>
3169 #else
3170 # include <assert.h>
3171 #endif
3172 Syntax error
3173 _ACEOF
3174 if ac_fn_c_try_cpp "$LINENO"; then :
3175
3176 else
3177 # Broken: fails on valid input.
3178 continue
3179 fi
3180 rm -f conftest.err conftest.i conftest.$ac_ext
3181
3182 # OK, works on sane cases. Now check whether nonexistent headers
3183 # can be detected and how.
3184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185 /* end confdefs.h. */
3186 #include <ac_nonexistent.h>
3187 _ACEOF
3188 if ac_fn_c_try_cpp "$LINENO"; then :
3189 # Broken: success on invalid input.
3190 continue
3191 else
3192 # Passes both tests.
3193 ac_preproc_ok=:
3194 break
3195 fi
3196 rm -f conftest.err conftest.i conftest.$ac_ext
3197
3198 done
3199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3200 rm -f conftest.i conftest.err conftest.$ac_ext
3201 if $ac_preproc_ok; then :
3202 break
3203 fi
3204
3205 done
3206 ac_cv_prog_CPP=$CPP
3207
3208 fi
3209 CPP=$ac_cv_prog_CPP
3210 else
3211 ac_cv_prog_CPP=$CPP
3212 fi
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3214 $as_echo "$CPP" >&6; }
3215 ac_preproc_ok=false
3216 for ac_c_preproc_warn_flag in '' yes
3217 do
3218 # Use a header file that comes with gcc, so configuring glibc
3219 # with a fresh cross-compiler works.
3220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3221 # <limits.h> exists even on freestanding compilers.
3222 # On the NeXT, cc -E runs the code through the compiler's parser,
3223 # not just through cpp. "Syntax error" is here to catch this case.
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3226 #ifdef __STDC__
3227 # include <limits.h>
3228 #else
3229 # include <assert.h>
3230 #endif
3231 Syntax error
3232 _ACEOF
3233 if ac_fn_c_try_cpp "$LINENO"; then :
3234
3235 else
3236 # Broken: fails on valid input.
3237 continue
3238 fi
3239 rm -f conftest.err conftest.i conftest.$ac_ext
3240
3241 # OK, works on sane cases. Now check whether nonexistent headers
3242 # can be detected and how.
3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244 /* end confdefs.h. */
3245 #include <ac_nonexistent.h>
3246 _ACEOF
3247 if ac_fn_c_try_cpp "$LINENO"; then :
3248 # Broken: success on invalid input.
3249 continue
3250 else
3251 # Passes both tests.
3252 ac_preproc_ok=:
3253 break
3254 fi
3255 rm -f conftest.err conftest.i conftest.$ac_ext
3256
3257 done
3258 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3259 rm -f conftest.i conftest.err conftest.$ac_ext
3260 if $ac_preproc_ok; then :
3261
3262 else
3263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3266 See \`config.log' for more details" "$LINENO" 5; }
3267 fi
3268
3269 ac_ext=c
3270 ac_cpp='$CPP $CPPFLAGS'
3271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274
3275 # Find a good install program. We prefer a C program (faster),
3276 # so one script is as good as another. But avoid the broken or
3277 # incompatible versions:
3278 # SysV /etc/install, /usr/sbin/install
3279 # SunOS /usr/etc/install
3280 # IRIX /sbin/install
3281 # AIX /bin/install
3282 # AmigaOS /C/install, which installs bootblocks on floppy discs
3283 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3284 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3285 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3286 # OS/2's system install, which has a completely different semantic
3287 # ./install, which can be erroneously created by make from ./install.sh.
3288 # Reject install programs that cannot install multiple files.
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3290 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3291 if test -z "$INSTALL"; then
3292 if ${ac_cv_path_install+:} false; then :
3293 $as_echo_n "(cached) " >&6
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 # Account for people who put trailing slashes in PATH elements.
3301 case $as_dir/ in #((
3302 ./ | .// | /[cC]/* | \
3303 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3304 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3305 /usr/ucb/* ) ;;
3306 *)
3307 # OSF1 and SCO ODT 3.0 have their own names for install.
3308 # Don't use installbsd from OSF since it installs stuff as root
3309 # by default.
3310 for ac_prog in ginstall scoinst install; do
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3313 if test $ac_prog = install &&
3314 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3315 # AIX install. It has an incompatible calling convention.
3316 :
3317 elif test $ac_prog = install &&
3318 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3319 # program-specific install script used by HP pwplus--don't use.
3320 :
3321 else
3322 rm -rf conftest.one conftest.two conftest.dir
3323 echo one > conftest.one
3324 echo two > conftest.two
3325 mkdir conftest.dir
3326 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3327 test -s conftest.one && test -s conftest.two &&
3328 test -s conftest.dir/conftest.one &&
3329 test -s conftest.dir/conftest.two
3330 then
3331 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3332 break 3
3333 fi
3334 fi
3335 fi
3336 done
3337 done
3338 ;;
3339 esac
3340
3341 done
3342 IFS=$as_save_IFS
3343
3344 rm -rf conftest.one conftest.two conftest.dir
3345
3346 fi
3347 if test "${ac_cv_path_install+set}" = set; then
3348 INSTALL=$ac_cv_path_install
3349 else
3350 # As a last resort, use the slow shell script. Don't cache a
3351 # value for INSTALL within a source directory, because that will
3352 # break other packages using the cache if that directory is
3353 # removed, or if the value is a relative name.
3354 INSTALL=$ac_install_sh
3355 fi
3356 fi
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3358 $as_echo "$INSTALL" >&6; }
3359
3360 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3361 # It thinks the first close brace ends the variable substitution.
3362 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3363
3364 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3365
3366 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3367
3368
3369 #detect glibc
3370
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3373 #include <features.h>
3374 int
3375 main ()
3376 {
3377
3378 #ifdef __GLIBC__
3379 #else
3380 #error
3381 int boil\[-1\];
3382 #endif
3383
3384 ;
3385 return 0;
3386 }
3387 _ACEOF
3388 if ac_fn_c_try_compile "$LINENO"; then :
3389 CFLAGS="$CFLAGS -D_GNU_SOURCE"
3390 fi
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392
3393 #
3394 # --- debug ---
3395 #
3396 # Check whether --enable-debug was given.
3397 if test "${enable_debug+set}" = set; then :
3398 enableval=$enable_debug; debug=$enable_debug
3399 fi
3400
3401 if test "$debug" = yes ; then
3402 DEB_CFLAGS="-DDEBUG -DBL_DEBUG"
3403 fi
3404
3405
3406 #
3407 # --- libtool ---
3408 #
3409 enable_win32_dll=yes
3410
3411 case $host in
3412 *-*-cygwin* | *-*-msys* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3413 if test -n "$ac_tool_prefix"; then
3414 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3415 set dummy ${ac_tool_prefix}as; ac_word=$2
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 $as_echo_n "checking for $ac_word... " >&6; }
3418 if ${ac_cv_prog_AS+:} false; then :
3419 $as_echo_n "(cached) " >&6
3420 else
3421 if test -n "$AS"; then
3422 ac_cv_prog_AS="$AS" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3426 do
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3431 ac_cv_prog_AS="${ac_tool_prefix}as"
3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3434 fi
3435 done
3436 done
3437 IFS=$as_save_IFS
3438
3439 fi
3440 fi
3441 AS=$ac_cv_prog_AS
3442 if test -n "$AS"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3444 $as_echo "$AS" >&6; }
3445 else
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3448 fi
3449
3450
3451 fi
3452 if test -z "$ac_cv_prog_AS"; then
3453 ac_ct_AS=$AS
3454 # Extract the first word of "as", so it can be a program name with args.
3455 set dummy as; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if ${ac_cv_prog_ac_ct_AS+:} false; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 if test -n "$ac_ct_AS"; then
3462 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3463 else
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471 ac_cv_prog_ac_ct_AS="as"
3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 break 2
3474 fi
3475 done
3476 done
3477 IFS=$as_save_IFS
3478
3479 fi
3480 fi
3481 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3482 if test -n "$ac_ct_AS"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3484 $as_echo "$ac_ct_AS" >&6; }
3485 else
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3488 fi
3489
3490 if test "x$ac_ct_AS" = x; then
3491 AS="false"
3492 else
3493 case $cross_compiling:$ac_tool_warned in
3494 yes:)
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3497 ac_tool_warned=yes ;;
3498 esac
3499 AS=$ac_ct_AS
3500 fi
3501 else
3502 AS="$ac_cv_prog_AS"
3503 fi
3504
3505 if test -n "$ac_tool_prefix"; then
3506 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3507 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if ${ac_cv_prog_DLLTOOL+:} false; then :
3511 $as_echo_n "(cached) " >&6
3512 else
3513 if test -n "$DLLTOOL"; then
3514 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
3526 fi
3527 done
3528 done
3529 IFS=$as_save_IFS
3530
3531 fi
3532 fi
3533 DLLTOOL=$ac_cv_prog_DLLTOOL
3534 if test -n "$DLLTOOL"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3536 $as_echo "$DLLTOOL" >&6; }
3537 else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3540 fi
3541
3542
3543 fi
3544 if test -z "$ac_cv_prog_DLLTOOL"; then
3545 ac_ct_DLLTOOL=$DLLTOOL
3546 # Extract the first word of "dlltool", so it can be a program name with args.
3547 set dummy dlltool; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 if test -n "$ac_ct_DLLTOOL"; then
3554 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3555 else
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 break 2
3566 fi
3567 done
3568 done
3569 IFS=$as_save_IFS
3570
3571 fi
3572 fi
3573 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3574 if test -n "$ac_ct_DLLTOOL"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3576 $as_echo "$ac_ct_DLLTOOL" >&6; }
3577 else
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3580 fi
3581
3582 if test "x$ac_ct_DLLTOOL" = x; then
3583 DLLTOOL="false"
3584 else
3585 case $cross_compiling:$ac_tool_warned in
3586 yes:)
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589 ac_tool_warned=yes ;;
3590 esac
3591 DLLTOOL=$ac_ct_DLLTOOL
3592 fi
3593 else
3594 DLLTOOL="$ac_cv_prog_DLLTOOL"
3595 fi
3596
3597 if test -n "$ac_tool_prefix"; then
3598 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3599 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if ${ac_cv_prog_OBJDUMP+:} false; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 if test -n "$OBJDUMP"; then
3606 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3610 do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3618 fi
3619 done
3620 done
3621 IFS=$as_save_IFS
3622
3623 fi
3624 fi
3625 OBJDUMP=$ac_cv_prog_OBJDUMP
3626 if test -n "$OBJDUMP"; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3628 $as_echo "$OBJDUMP" >&6; }
3629 else
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3632 fi
3633
3634
3635 fi
3636 if test -z "$ac_cv_prog_OBJDUMP"; then
3637 ac_ct_OBJDUMP=$OBJDUMP
3638 # Extract the first word of "objdump", so it can be a program name with args.
3639 set dummy objdump; ac_word=$2
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644 else
3645 if test -n "$ac_ct_OBJDUMP"; then
3646 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3647 else
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH
3650 do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3655 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659 done
3660 done
3661 IFS=$as_save_IFS
3662
3663 fi
3664 fi
3665 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3666 if test -n "$ac_ct_OBJDUMP"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
3668 $as_echo "$ac_ct_OBJDUMP" >&6; }
3669 else
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3672 fi
3673
3674 if test "x$ac_ct_OBJDUMP" = x; then
3675 OBJDUMP="false"
3676 else
3677 case $cross_compiling:$ac_tool_warned in
3678 yes:)
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3681 ac_tool_warned=yes ;;
3682 esac
3683 OBJDUMP=$ac_ct_OBJDUMP
3684 fi
3685 else
3686 OBJDUMP="$ac_cv_prog_OBJDUMP"
3687 fi
3688
3689 ;;
3690 esac
3691
3692 test -z "$AS" && AS=as
3693
3694
3695
3696
3697
3698 test -z "$DLLTOOL" && DLLTOOL=dlltool
3699
3700
3701
3702
3703
3704 test -z "$OBJDUMP" && OBJDUMP=objdump
3705
3706
3707
3708
3709
3710
3711
3712 enable_dlopen=yes
3713
3714
3715
3716
3717 # Check whether --with-libtool was given.
3718 if test "${with_libtool+set}" = set; then :
3719 withval=$with_libtool; libtool=$with_libtool
3720 fi
3721
3722 if test "${libtool}" != "" ; then
3723 LIBTOOL=${libtool}
3724 else
3725 case `pwd` in
3726 *\ * | *\ *)
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3728 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3729 esac
3730
3731
3732
3733 macro_version='2.4.7'
3734 macro_revision='2.4.7'
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748 ltmain=$ac_aux_dir/ltmain.sh
3749
3750 # Backslashify metacharacters that are still active within
3751 # double-quoted strings.
3752 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3753
3754 # Same as above, but do not quote variable references.
3755 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3756
3757 # Sed substitution to delay expansion of an escaped shell variable in a
3758 # double_quote_subst'ed string.
3759 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3760
3761 # Sed substitution to delay expansion of an escaped single quote.
3762 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3763
3764 # Sed substitution to avoid accidental globbing in evaled expressions
3765 no_glob_subst='s/\*/\\\*/g'
3766
3767 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3768 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3769 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3770
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3772 $as_echo_n "checking how to print strings... " >&6; }
3773 # Test print first, because it will be a builtin if present.
3774 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3775 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3776 ECHO='print -r --'
3777 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3778 ECHO='printf %s\n'
3779 else
3780 # Use this function as a fallback that always works.
3781 func_fallback_echo ()
3782 {
3783 eval 'cat <<_LTECHO_EOF
3784 $1
3785 _LTECHO_EOF'
3786 }
3787 ECHO='func_fallback_echo'
3788 fi
3789
3790 # func_echo_all arg...
3791 # Invoke $ECHO with all args, space-separated.
3792 func_echo_all ()
3793 {
3794 $ECHO ""
3795 }
3796
3797 case $ECHO in
3798 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3799 $as_echo "printf" >&6; } ;;
3800 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3801 $as_echo "print -r" >&6; } ;;
3802 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3803 $as_echo "cat" >&6; } ;;
3804 esac
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3820 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3821 if ${ac_cv_path_SED+:} false; then :
3822 $as_echo_n "(cached) " >&6
3823 else
3824 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3825 for ac_i in 1 2 3 4 5 6 7; do
3826 ac_script="$ac_script$as_nl$ac_script"
3827 done
3828 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3829 { ac_script=; unset ac_script;}
3830 if test -z "$SED"; then
3831 ac_path_SED_found=false
3832 # Loop through the user's path and test for each of PROGNAME-LIST
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3835 do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_prog in sed gsed; do
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3841 as_fn_executable_p "$ac_path_SED" || continue
3842 # Check for GNU ac_path_SED and select it if it is found.
3843 # Check for GNU $ac_path_SED
3844 case `"$ac_path_SED" --version 2>&1` in
3845 *GNU*)
3846 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3847 *)
3848 ac_count=0
3849 $as_echo_n 0123456789 >"conftest.in"
3850 while :
3851 do
3852 cat "conftest.in" "conftest.in" >"conftest.tmp"
3853 mv "conftest.tmp" "conftest.in"
3854 cp "conftest.in" "conftest.nl"
3855 $as_echo '' >> "conftest.nl"
3856 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3858 as_fn_arith $ac_count + 1 && ac_count=$as_val
3859 if test $ac_count -gt ${ac_path_SED_max-0}; then
3860 # Best one so far, save it but keep looking for a better one
3861 ac_cv_path_SED="$ac_path_SED"
3862 ac_path_SED_max=$ac_count
3863 fi
3864 # 10*(2^10) chars as input seems more than enough
3865 test $ac_count -gt 10 && break
3866 done
3867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3868 esac
3869
3870 $ac_path_SED_found && break 3
3871 done
3872 done
3873 done
3874 IFS=$as_save_IFS
3875 if test -z "$ac_cv_path_SED"; then
3876 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3877 fi
3878 else
3879 ac_cv_path_SED=$SED
3880 fi
3881
3882 fi
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3884 $as_echo "$ac_cv_path_SED" >&6; }
3885 SED="$ac_cv_path_SED"
3886 rm -f conftest.sed
3887
3888 test -z "$SED" && SED=sed
3889 Xsed="$SED -e 1s/^X//"
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3902 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3903 if ${ac_cv_path_GREP+:} false; then :
3904 $as_echo_n "(cached) " >&6
3905 else
3906 if test -z "$GREP"; then
3907 ac_path_GREP_found=false
3908 # Loop through the user's path and test for each of PROGNAME-LIST
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3911 do
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_prog in grep ggrep; do
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3917 as_fn_executable_p "$ac_path_GREP" || continue
3918 # Check for GNU ac_path_GREP and select it if it is found.
3919 # Check for GNU $ac_path_GREP
3920 case `"$ac_path_GREP" --version 2>&1` in
3921 *GNU*)
3922 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3923 *)
3924 ac_count=0
3925 $as_echo_n 0123456789 >"conftest.in"
3926 while :
3927 do
3928 cat "conftest.in" "conftest.in" >"conftest.tmp"
3929 mv "conftest.tmp" "conftest.in"
3930 cp "conftest.in" "conftest.nl"
3931 $as_echo 'GREP' >> "conftest.nl"
3932 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3933 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3934 as_fn_arith $ac_count + 1 && ac_count=$as_val
3935 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3936 # Best one so far, save it but keep looking for a better one
3937 ac_cv_path_GREP="$ac_path_GREP"
3938 ac_path_GREP_max=$ac_count
3939 fi
3940 # 10*(2^10) chars as input seems more than enough
3941 test $ac_count -gt 10 && break
3942 done
3943 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3944 esac
3945
3946 $ac_path_GREP_found && break 3
3947 done
3948 done
3949 done
3950 IFS=$as_save_IFS
3951 if test -z "$ac_cv_path_GREP"; then
3952 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3953 fi
3954 else
3955 ac_cv_path_GREP=$GREP
3956 fi
3957
3958 fi
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3960 $as_echo "$ac_cv_path_GREP" >&6; }
3961 GREP="$ac_cv_path_GREP"
3962
3963
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3965 $as_echo_n "checking for egrep... " >&6; }
3966 if ${ac_cv_path_EGREP+:} false; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3970 then ac_cv_path_EGREP="$GREP -E"
3971 else
3972 if test -z "$EGREP"; then
3973 ac_path_EGREP_found=false
3974 # Loop through the user's path and test for each of PROGNAME-LIST
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3977 do
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
3980 for ac_prog in egrep; do
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3983 as_fn_executable_p "$ac_path_EGREP" || continue
3984 # Check for GNU ac_path_EGREP and select it if it is found.
3985 # Check for GNU $ac_path_EGREP
3986 case `"$ac_path_EGREP" --version 2>&1` in
3987 *GNU*)
3988 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3989 *)
3990 ac_count=0
3991 $as_echo_n 0123456789 >"conftest.in"
3992 while :
3993 do
3994 cat "conftest.in" "conftest.in" >"conftest.tmp"
3995 mv "conftest.tmp" "conftest.in"
3996 cp "conftest.in" "conftest.nl"
3997 $as_echo 'EGREP' >> "conftest.nl"
3998 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4000 as_fn_arith $ac_count + 1 && ac_count=$as_val
4001 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4002 # Best one so far, save it but keep looking for a better one
4003 ac_cv_path_EGREP="$ac_path_EGREP"
4004 ac_path_EGREP_max=$ac_count
4005 fi
4006 # 10*(2^10) chars as input seems more than enough
4007 test $ac_count -gt 10 && break
4008 done
4009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010 esac
4011
4012 $ac_path_EGREP_found && break 3
4013 done
4014 done
4015 done
4016 IFS=$as_save_IFS
4017 if test -z "$ac_cv_path_EGREP"; then
4018 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4019 fi
4020 else
4021 ac_cv_path_EGREP=$EGREP
4022 fi
4023
4024 fi
4025 fi
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4027 $as_echo "$ac_cv_path_EGREP" >&6; }
4028 EGREP="$ac_cv_path_EGREP"
4029
4030
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4032 $as_echo_n "checking for fgrep... " >&6; }
4033 if ${ac_cv_path_FGREP+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4037 then ac_cv_path_FGREP="$GREP -F"
4038 else
4039 if test -z "$FGREP"; then
4040 ac_path_FGREP_found=false
4041 # Loop through the user's path and test for each of PROGNAME-LIST
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4044 do
4045 IFS=$as_save_IFS
4046 test -z "$as_dir" && as_dir=.
4047 for ac_prog in fgrep; do
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4050 as_fn_executable_p "$ac_path_FGREP" || continue
4051 # Check for GNU ac_path_FGREP and select it if it is found.
4052 # Check for GNU $ac_path_FGREP
4053 case `"$ac_path_FGREP" --version 2>&1` in
4054 *GNU*)
4055 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4056 *)
4057 ac_count=0
4058 $as_echo_n 0123456789 >"conftest.in"
4059 while :
4060 do
4061 cat "conftest.in" "conftest.in" >"conftest.tmp"
4062 mv "conftest.tmp" "conftest.in"
4063 cp "conftest.in" "conftest.nl"
4064 $as_echo 'FGREP' >> "conftest.nl"
4065 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4067 as_fn_arith $ac_count + 1 && ac_count=$as_val
4068 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4069 # Best one so far, save it but keep looking for a better one
4070 ac_cv_path_FGREP="$ac_path_FGREP"
4071 ac_path_FGREP_max=$ac_count
4072 fi
4073 # 10*(2^10) chars as input seems more than enough
4074 test $ac_count -gt 10 && break
4075 done
4076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4077 esac
4078
4079 $ac_path_FGREP_found && break 3
4080 done
4081 done
4082 done
4083 IFS=$as_save_IFS
4084 if test -z "$ac_cv_path_FGREP"; then
4085 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4086 fi
4087 else
4088 ac_cv_path_FGREP=$FGREP
4089 fi
4090
4091 fi
4092 fi
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4094 $as_echo "$ac_cv_path_FGREP" >&6; }
4095 FGREP="$ac_cv_path_FGREP"
4096
4097
4098 test -z "$GREP" && GREP=grep
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118 # Check whether --with-gnu-ld was given.
4119 if test "${with_gnu_ld+set}" = set; then :
4120 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4121 else
4122 with_gnu_ld=no
4123 fi
4124
4125 ac_prog=ld
4126 if test yes = "$GCC"; then
4127 # Check if gcc -print-prog-name=ld gives a path.
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4129 $as_echo_n "checking for ld used by $CC... " >&6; }
4130 case $host in
4131 *-*-mingw*)
4132 # gcc leaves a trailing carriage return, which upsets mingw
4133 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4134 *)
4135 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4136 esac
4137 case $ac_prog in
4138 # Accept absolute paths.
4139 [\\/]* | ?:[\\/]*)
4140 re_direlt='/[^/][^/]*/\.\./'
4141 # Canonicalize the pathname of ld
4142 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4143 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4144 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4145 done
4146 test -z "$LD" && LD=$ac_prog
4147 ;;
4148 "")
4149 # If it fails, then pretend we aren't using GCC.
4150 ac_prog=ld
4151 ;;
4152 *)
4153 # If it is relative, then search for the first ld in PATH.
4154 with_gnu_ld=unknown
4155 ;;
4156 esac
4157 elif test yes = "$with_gnu_ld"; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4159 $as_echo_n "checking for GNU ld... " >&6; }
4160 else
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4162 $as_echo_n "checking for non-GNU ld... " >&6; }
4163 fi
4164 if ${lt_cv_path_LD+:} false; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 if test -z "$LD"; then
4168 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4169 for ac_dir in $PATH; do
4170 IFS=$lt_save_ifs
4171 test -z "$ac_dir" && ac_dir=.
4172 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4173 lt_cv_path_LD=$ac_dir/$ac_prog
4174 # Check to see if the program is GNU ld. I'd rather use --version,
4175 # but apparently some variants of GNU ld only accept -v.
4176 # Break only if it was the GNU/non-GNU ld that we prefer.
4177 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4178 *GNU* | *'with BFD'*)
4179 test no != "$with_gnu_ld" && break
4180 ;;
4181 *)
4182 test yes != "$with_gnu_ld" && break
4183 ;;
4184 esac
4185 fi
4186 done
4187 IFS=$lt_save_ifs
4188 else
4189 lt_cv_path_LD=$LD # Let the user override the test with a path.
4190 fi
4191 fi
4192
4193 LD=$lt_cv_path_LD
4194 if test -n "$LD"; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4196 $as_echo "$LD" >&6; }
4197 else
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199 $as_echo "no" >&6; }
4200 fi
4201 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4203 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4204 if ${lt_cv_prog_gnu_ld+:} false; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4208 case `$LD -v 2>&1 </dev/null` in
4209 *GNU* | *'with BFD'*)
4210 lt_cv_prog_gnu_ld=yes
4211 ;;
4212 *)
4213 lt_cv_prog_gnu_ld=no
4214 ;;
4215 esac
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4218 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4219 with_gnu_ld=$lt_cv_prog_gnu_ld
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4230 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4231 if ${lt_cv_path_NM+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234 if test -n "$NM"; then
4235 # Let the user override the test.
4236 lt_cv_path_NM=$NM
4237 else
4238 lt_nm_to_check=${ac_tool_prefix}nm
4239 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4240 lt_nm_to_check="$lt_nm_to_check nm"
4241 fi
4242 for lt_tmp_nm in $lt_nm_to_check; do
4243 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4244 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4245 IFS=$lt_save_ifs
4246 test -z "$ac_dir" && ac_dir=.
4247 tmp_nm=$ac_dir/$lt_tmp_nm
4248 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4249 # Check to see if the nm accepts a BSD-compat flag.
4250 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4251 # nm: unknown option "B" ignored
4252 # Tru64's nm complains that /dev/null is an invalid object file
4253 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4254 case $build_os in
4255 mingw*) lt_bad_file=conftest.nm/nofile ;;
4256 *) lt_bad_file=/dev/null ;;
4257 esac
4258 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
4259 *$lt_bad_file* | *'Invalid file or object type'*)
4260 lt_cv_path_NM="$tmp_nm -B"
4261 break 2
4262 ;;
4263 *)
4264 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
4265 */dev/null*)
4266 lt_cv_path_NM="$tmp_nm -p"
4267 break 2
4268 ;;
4269 *)
4270 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4271 continue # so that we can try to find one that supports BSD flags
4272 ;;
4273 esac
4274 ;;
4275 esac
4276 fi
4277 done
4278 IFS=$lt_save_ifs
4279 done
4280 : ${lt_cv_path_NM=no}
4281 fi
4282 fi
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4284 $as_echo "$lt_cv_path_NM" >&6; }
4285 if test no != "$lt_cv_path_NM"; then
4286 NM=$lt_cv_path_NM
4287 else
4288 # Didn't find any BSD compatible name lister, look for dumpbin.
4289 if test -n "$DUMPBIN"; then :
4290 # Let the user override the test.
4291 else
4292 if test -n "$ac_tool_prefix"; then
4293 for ac_prog in dumpbin "link -dump"
4294 do
4295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4296 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298 $as_echo_n "checking for $ac_word... " >&6; }
4299 if ${ac_cv_prog_DUMPBIN+:} false; then :
4300 $as_echo_n "(cached) " >&6
4301 else
4302 if test -n "$DUMPBIN"; then
4303 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316 done
4317 done
4318 IFS=$as_save_IFS
4319
4320 fi
4321 fi
4322 DUMPBIN=$ac_cv_prog_DUMPBIN
4323 if test -n "$DUMPBIN"; then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4325 $as_echo "$DUMPBIN" >&6; }
4326 else
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 $as_echo "no" >&6; }
4329 fi
4330
4331
4332 test -n "$DUMPBIN" && break
4333 done
4334 fi
4335 if test -z "$DUMPBIN"; then
4336 ac_ct_DUMPBIN=$DUMPBIN
4337 for ac_prog in dumpbin "link -dump"
4338 do
4339 # Extract the first word of "$ac_prog", so it can be a program name with args.
4340 set dummy $ac_prog; ac_word=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if test -n "$ac_ct_DUMPBIN"; then
4347 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4348 else
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 break 2
4359 fi
4360 done
4361 done
4362 IFS=$as_save_IFS
4363
4364 fi
4365 fi
4366 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4367 if test -n "$ac_ct_DUMPBIN"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4369 $as_echo "$ac_ct_DUMPBIN" >&6; }
4370 else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4373 fi
4374
4375
4376 test -n "$ac_ct_DUMPBIN" && break
4377 done
4378
4379 if test "x$ac_ct_DUMPBIN" = x; then
4380 DUMPBIN=":"
4381 else
4382 case $cross_compiling:$ac_tool_warned in
4383 yes:)
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4386 ac_tool_warned=yes ;;
4387 esac
4388 DUMPBIN=$ac_ct_DUMPBIN
4389 fi
4390 fi
4391
4392 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
4393 *COFF*)
4394 DUMPBIN="$DUMPBIN -symbols -headers"
4395 ;;
4396 *)
4397 DUMPBIN=:
4398 ;;
4399 esac
4400 fi
4401
4402 if test : != "$DUMPBIN"; then
4403 NM=$DUMPBIN
4404 fi
4405 fi
4406 test -z "$NM" && NM=nm
4407
4408
4409
4410
4411
4412
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4414 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4415 if ${lt_cv_nm_interface+:} false; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 lt_cv_nm_interface="BSD nm"
4419 echo "int some_variable = 0;" > conftest.$ac_ext
4420 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4421 (eval "$ac_compile" 2>conftest.err)
4422 cat conftest.err >&5
4423 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4424 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4425 cat conftest.err >&5
4426 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4427 cat conftest.out >&5
4428 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4429 lt_cv_nm_interface="MS dumpbin"
4430 fi
4431 rm -f conftest*
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4434 $as_echo "$lt_cv_nm_interface" >&6; }
4435
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4437 $as_echo_n "checking whether ln -s works... " >&6; }
4438 LN_S=$as_ln_s
4439 if test "$LN_S" = "ln -s"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4441 $as_echo "yes" >&6; }
4442 else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4444 $as_echo "no, using $LN_S" >&6; }
4445 fi
4446
4447 # find the maximum length of command line arguments
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4449 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4450 if ${lt_cv_sys_max_cmd_len+:} false; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 i=0
4454 teststring=ABCD
4455
4456 case $build_os in
4457 msdosdjgpp*)
4458 # On DJGPP, this test can blow up pretty badly due to problems in libc
4459 # (any single argument exceeding 2000 bytes causes a buffer overrun
4460 # during glob expansion). Even if it were fixed, the result of this
4461 # check would be larger than it should be.
4462 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4463 ;;
4464
4465 gnu*)
4466 # Under GNU Hurd, this test is not required because there is
4467 # no limit to the length of command line arguments.
4468 # Libtool will interpret -1 as no limit whatsoever
4469 lt_cv_sys_max_cmd_len=-1;
4470 ;;
4471
4472 cygwin* | msys* | mingw* | cegcc*)
4473 # On Win9x/ME, this test blows up -- it succeeds, but takes
4474 # about 5 minutes as the teststring grows exponentially.
4475 # Worse, since 9x/ME are not pre-emptively multitasking,
4476 # you end up with a "frozen" computer, even though with patience
4477 # the test eventually succeeds (with a max line length of 256k).
4478 # Instead, let's just punt: use the minimum linelength reported by
4479 # all of the supported platforms: 8192 (on NT/2K/XP).
4480 lt_cv_sys_max_cmd_len=8192;
4481 ;;
4482
4483 mint*)
4484 # On MiNT this can take a long time and run out of memory.
4485 lt_cv_sys_max_cmd_len=8192;
4486 ;;
4487
4488 amigaos*)
4489 # On AmigaOS with pdksh, this test takes hours, literally.
4490 # So we just punt and use a minimum line length of 8192.
4491 lt_cv_sys_max_cmd_len=8192;
4492 ;;
4493
4494 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
4495 # This has been around since 386BSD, at least. Likely further.
4496 if test -x /sbin/sysctl; then
4497 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4498 elif test -x /usr/sbin/sysctl; then
4499 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4500 else
4501 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4502 fi
4503 # And add a safety zone
4504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4506 ;;
4507
4508 interix*)
4509 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4510 lt_cv_sys_max_cmd_len=196608
4511 ;;
4512
4513 os2*)
4514 # The test takes a long time on OS/2.
4515 lt_cv_sys_max_cmd_len=8192
4516 ;;
4517
4518 osf*)
4519 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4520 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4521 # nice to cause kernel panics so lets avoid the loop below.
4522 # First set a reasonable default.
4523 lt_cv_sys_max_cmd_len=16384
4524 #
4525 if test -x /sbin/sysconfig; then
4526 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4527 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4528 esac
4529 fi
4530 ;;
4531 sco3.2v5*)
4532 lt_cv_sys_max_cmd_len=102400
4533 ;;
4534 sysv5* | sco5v6* | sysv4.2uw2*)
4535 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4536 if test -n "$kargmax"; then
4537 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
4538 else
4539 lt_cv_sys_max_cmd_len=32768
4540 fi
4541 ;;
4542 *)
4543 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4544 if test -n "$lt_cv_sys_max_cmd_len" && \
4545 test undefined != "$lt_cv_sys_max_cmd_len"; then
4546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4548 else
4549 # Make teststring a little bigger before we do anything with it.
4550 # a 1K string should be a reasonable start.
4551 for i in 1 2 3 4 5 6 7 8; do
4552 teststring=$teststring$teststring
4553 done
4554 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4555 # If test is not a shell built-in, we'll probably end up computing a
4556 # maximum length that is only half of the actual maximum length, but
4557 # we can't tell.
4558 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4559 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4560 test 17 != "$i" # 1/2 MB should be enough
4561 do
4562 i=`expr $i + 1`
4563 teststring=$teststring$teststring
4564 done
4565 # Only check the string length outside the loop.
4566 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4567 teststring=
4568 # Add a significant safety factor because C++ compilers can tack on
4569 # massive amounts of additional arguments before passing them to the
4570 # linker. It appears as though 1/2 is a usable value.
4571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4572 fi
4573 ;;
4574 esac
4575
4576 fi
4577
4578 if test -n "$lt_cv_sys_max_cmd_len"; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4580 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4581 else
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4583 $as_echo "none" >&6; }
4584 fi
4585 max_cmd_len=$lt_cv_sys_max_cmd_len
4586
4587
4588
4589
4590
4591
4592 : ${CP="cp -f"}
4593 : ${MV="mv -f"}
4594 : ${RM="rm -f"}
4595
4596 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4597 lt_unset=unset
4598 else
4599 lt_unset=false
4600 fi
4601
4602
4603
4604
4605
4606 # test EBCDIC or ASCII
4607 case `echo X|tr X '\101'` in
4608 A) # ASCII based system
4609 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4610 lt_SP2NL='tr \040 \012'
4611 lt_NL2SP='tr \015\012 \040\040'
4612 ;;
4613 *) # EBCDIC based system
4614 lt_SP2NL='tr \100 \n'
4615 lt_NL2SP='tr \r\n \100\100'
4616 ;;
4617 esac
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4628 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4629 if ${lt_cv_to_host_file_cmd+:} false; then :
4630 $as_echo_n "(cached) " >&6
4631 else
4632 case $host in
4633 *-*-mingw* )
4634 case $build in
4635 *-*-mingw* ) # actually msys
4636 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4637 ;;
4638 *-*-cygwin* )
4639 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4640 ;;
4641 * ) # otherwise, assume *nix
4642 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4643 ;;
4644 esac
4645 ;;
4646 *-*-cygwin* )
4647 case $build in
4648 *-*-mingw* ) # actually msys
4649 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4650 ;;
4651 *-*-cygwin* )
4652 lt_cv_to_host_file_cmd=func_convert_file_noop
4653 ;;
4654 * ) # otherwise, assume *nix
4655 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4656 ;;
4657 esac
4658 ;;
4659 * ) # unhandled hosts (and "normal" native builds)
4660 lt_cv_to_host_file_cmd=func_convert_file_noop
4661 ;;
4662 esac
4663
4664 fi
4665
4666 to_host_file_cmd=$lt_cv_to_host_file_cmd
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4668 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4669
4670
4671
4672
4673
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4675 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4676 if ${lt_cv_to_tool_file_cmd+:} false; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 #assume ordinary cross tools, or native build.
4680 lt_cv_to_tool_file_cmd=func_convert_file_noop
4681 case $host in
4682 *-*-mingw* )
4683 case $build in
4684 *-*-mingw* ) # actually msys
4685 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4686 ;;
4687 esac
4688 ;;
4689 esac
4690
4691 fi
4692
4693 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4695 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4696
4697
4698
4699
4700
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4702 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4703 if ${lt_cv_ld_reload_flag+:} false; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 lt_cv_ld_reload_flag='-r'
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4709 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4710 reload_flag=$lt_cv_ld_reload_flag
4711 case $reload_flag in
4712 "" | " "*) ;;
4713 *) reload_flag=" $reload_flag" ;;
4714 esac
4715 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4716 case $host_os in
4717 cygwin* | msys* | mingw* | pw32* | cegcc*)
4718 if test yes != "$GCC"; then
4719 reload_cmds=false
4720 fi
4721 ;;
4722 darwin*)
4723 if test yes = "$GCC"; then
4724 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4725 else
4726 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4727 fi
4728 ;;
4729 esac
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}file; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if ${ac_cv_prog_FILECMD+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 if test -n "$FILECMD"; then
4748 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 break 2
4760 fi
4761 done
4762 done
4763 IFS=$as_save_IFS
4764
4765 fi
4766 fi
4767 FILECMD=$ac_cv_prog_FILECMD
4768 if test -n "$FILECMD"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
4770 $as_echo "$FILECMD" >&6; }
4771 else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4774 fi
4775
4776
4777 fi
4778 if test -z "$ac_cv_prog_FILECMD"; then
4779 ac_ct_FILECMD=$FILECMD
4780 # Extract the first word of "file", so it can be a program name with args.
4781 set dummy file; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_prog_ac_ct_FILECMD+:} false; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 if test -n "$ac_ct_FILECMD"; then
4788 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797 ac_cv_prog_ac_ct_FILECMD="file"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801 done
4802 done
4803 IFS=$as_save_IFS
4804
4805 fi
4806 fi
4807 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
4808 if test -n "$ac_ct_FILECMD"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
4810 $as_echo "$ac_ct_FILECMD" >&6; }
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4814 fi
4815
4816 if test "x$ac_ct_FILECMD" = x; then
4817 FILECMD=":"
4818 else
4819 case $cross_compiling:$ac_tool_warned in
4820 yes:)
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4823 ac_tool_warned=yes ;;
4824 esac
4825 FILECMD=$ac_ct_FILECMD
4826 fi
4827 else
4828 FILECMD="$ac_cv_prog_FILECMD"
4829 fi
4830
4831
4832
4833
4834
4835
4836
4837 if test -n "$ac_tool_prefix"; then
4838 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4839 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if ${ac_cv_prog_OBJDUMP+:} false; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 if test -n "$OBJDUMP"; then
4846 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4847 else
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4850 do
4851 IFS=$as_save_IFS
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4855 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 break 2
4858 fi
4859 done
4860 done
4861 IFS=$as_save_IFS
4862
4863 fi
4864 fi
4865 OBJDUMP=$ac_cv_prog_OBJDUMP
4866 if test -n "$OBJDUMP"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4868 $as_echo "$OBJDUMP" >&6; }
4869 else
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4872 fi
4873
4874
4875 fi
4876 if test -z "$ac_cv_prog_OBJDUMP"; then
4877 ac_ct_OBJDUMP=$OBJDUMP
4878 # Extract the first word of "objdump", so it can be a program name with args.
4879 set dummy objdump; ac_word=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 if test -n "$ac_ct_OBJDUMP"; then
4886 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4895 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4898 fi
4899 done
4900 done
4901 IFS=$as_save_IFS
4902
4903 fi
4904 fi
4905 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4906 if test -n "$ac_ct_OBJDUMP"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4908 $as_echo "$ac_ct_OBJDUMP" >&6; }
4909 else
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4912 fi
4913
4914 if test "x$ac_ct_OBJDUMP" = x; then
4915 OBJDUMP="false"
4916 else
4917 case $cross_compiling:$ac_tool_warned in
4918 yes:)
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4921 ac_tool_warned=yes ;;
4922 esac
4923 OBJDUMP=$ac_ct_OBJDUMP
4924 fi
4925 else
4926 OBJDUMP="$ac_cv_prog_OBJDUMP"
4927 fi
4928
4929 test -z "$OBJDUMP" && OBJDUMP=objdump
4930
4931
4932
4933
4934
4935
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4937 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4938 if ${lt_cv_deplibs_check_method+:} false; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 lt_cv_file_magic_cmd='$MAGIC_CMD'
4942 lt_cv_file_magic_test_file=
4943 lt_cv_deplibs_check_method='unknown'
4944 # Need to set the preceding variable on all platforms that support
4945 # interlibrary dependencies.
4946 # 'none' -- dependencies not supported.
4947 # 'unknown' -- same as none, but documents that we really don't know.
4948 # 'pass_all' -- all dependencies passed with no checks.
4949 # 'test_compile' -- check by making test program.
4950 # 'file_magic [[regex]]' -- check by looking for files in library path
4951 # that responds to the $file_magic_cmd with a given extended regex.
4952 # If you have 'file' or equivalent on your system and you're not sure
4953 # whether 'pass_all' will *always* work, you probably want this one.
4954
4955 case $host_os in
4956 aix[4-9]*)
4957 lt_cv_deplibs_check_method=pass_all
4958 ;;
4959
4960 beos*)
4961 lt_cv_deplibs_check_method=pass_all
4962 ;;
4963
4964 bsdi[45]*)
4965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4966 lt_cv_file_magic_cmd='$FILECMD -L'
4967 lt_cv_file_magic_test_file=/shlib/libc.so
4968 ;;
4969
4970 cygwin* | msys*)
4971 # func_win32_libid is a shell function defined in ltmain.sh
4972 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4973 lt_cv_file_magic_cmd='func_win32_libid'
4974 ;;
4975
4976 mingw* | pw32*)
4977 # Base MSYS/MinGW do not provide the 'file' command needed by
4978 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4979 # unless we find 'file', for example because we are cross-compiling.
4980 if ( file / ) >/dev/null 2>&1; then
4981 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4982 lt_cv_file_magic_cmd='func_win32_libid'
4983 else
4984 # Keep this pattern in sync with the one in func_win32_libid.
4985 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4986 lt_cv_file_magic_cmd='$OBJDUMP -f'
4987 fi
4988 ;;
4989
4990 cegcc*)
4991 # use the weaker test based on 'objdump'. See mingw*.
4992 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4993 lt_cv_file_magic_cmd='$OBJDUMP -f'
4994 ;;
4995
4996 darwin* | rhapsody*)
4997 lt_cv_deplibs_check_method=pass_all
4998 ;;
4999
5000 freebsd* | dragonfly* | midnightbsd*)
5001 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5002 case $host_cpu in
5003 i*86 )
5004 # Not sure whether the presence of OpenBSD here was a mistake.
5005 # Let's accept both of them until this is cleared up.
5006 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5007 lt_cv_file_magic_cmd=$FILECMD
5008 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5009 ;;
5010 esac
5011 else
5012 lt_cv_deplibs_check_method=pass_all
5013 fi
5014 ;;
5015
5016 haiku*)
5017 lt_cv_deplibs_check_method=pass_all
5018 ;;
5019
5020 hpux10.20* | hpux11*)
5021 lt_cv_file_magic_cmd=$FILECMD
5022 case $host_cpu in
5023 ia64*)
5024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5025 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5026 ;;
5027 hppa*64*)
5028 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]'
5029 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5030 ;;
5031 *)
5032 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5033 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5034 ;;
5035 esac
5036 ;;
5037
5038 interix[3-9]*)
5039 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5041 ;;
5042
5043 irix5* | irix6* | nonstopux*)
5044 case $LD in
5045 *-32|*"-32 ") libmagic=32-bit;;
5046 *-n32|*"-n32 ") libmagic=N32;;
5047 *-64|*"-64 ") libmagic=64-bit;;
5048 *) libmagic=never-match;;
5049 esac
5050 lt_cv_deplibs_check_method=pass_all
5051 ;;
5052
5053 # This must be glibc/ELF.
5054 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5055 lt_cv_deplibs_check_method=pass_all
5056 ;;
5057
5058 netbsd*)
5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5060 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5061 else
5062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5063 fi
5064 ;;
5065
5066 newos6*)
5067 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5068 lt_cv_file_magic_cmd=$FILECMD
5069 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5070 ;;
5071
5072 *nto* | *qnx*)
5073 lt_cv_deplibs_check_method=pass_all
5074 ;;
5075
5076 openbsd* | bitrig*)
5077 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5079 else
5080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5081 fi
5082 ;;
5083
5084 osf3* | osf4* | osf5*)
5085 lt_cv_deplibs_check_method=pass_all
5086 ;;
5087
5088 rdos*)
5089 lt_cv_deplibs_check_method=pass_all
5090 ;;
5091
5092 solaris*)
5093 lt_cv_deplibs_check_method=pass_all
5094 ;;
5095
5096 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5097 lt_cv_deplibs_check_method=pass_all
5098 ;;
5099
5100 sysv4 | sysv4.3*)
5101 case $host_vendor in
5102 motorola)
5103 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]'
5104 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5105 ;;
5106 ncr)
5107 lt_cv_deplibs_check_method=pass_all
5108 ;;
5109 sequent)
5110 lt_cv_file_magic_cmd='/bin/file'
5111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5112 ;;
5113 sni)
5114 lt_cv_file_magic_cmd='/bin/file'
5115 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5116 lt_cv_file_magic_test_file=/lib/libc.so
5117 ;;
5118 siemens)
5119 lt_cv_deplibs_check_method=pass_all
5120 ;;
5121 pc)
5122 lt_cv_deplibs_check_method=pass_all
5123 ;;
5124 esac
5125 ;;
5126
5127 tpf*)
5128 lt_cv_deplibs_check_method=pass_all
5129 ;;
5130 os2*)
5131 lt_cv_deplibs_check_method=pass_all
5132 ;;
5133 esac
5134
5135 fi
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5137 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5138
5139 file_magic_glob=
5140 want_nocaseglob=no
5141 if test "$build" = "$host"; then
5142 case $host_os in
5143 mingw* | pw32*)
5144 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5145 want_nocaseglob=yes
5146 else
5147 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5148 fi
5149 ;;
5150 esac
5151 fi
5152
5153 file_magic_cmd=$lt_cv_file_magic_cmd
5154 deplibs_check_method=$lt_cv_deplibs_check_method
5155 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178 if test -n "$ac_tool_prefix"; then
5179 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5180 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_prog_DLLTOOL+:} false; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 if test -n "$DLLTOOL"; then
5187 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200 done
5201 done
5202 IFS=$as_save_IFS
5203
5204 fi
5205 fi
5206 DLLTOOL=$ac_cv_prog_DLLTOOL
5207 if test -n "$DLLTOOL"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5209 $as_echo "$DLLTOOL" >&6; }
5210 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5213 fi
5214
5215
5216 fi
5217 if test -z "$ac_cv_prog_DLLTOOL"; then
5218 ac_ct_DLLTOOL=$DLLTOOL
5219 # Extract the first word of "dlltool", so it can be a program name with args.
5220 set dummy dlltool; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5226 if test -n "$ac_ct_DLLTOOL"; then
5227 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5236 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5239 fi
5240 done
5241 done
5242 IFS=$as_save_IFS
5243
5244 fi
5245 fi
5246 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5247 if test -n "$ac_ct_DLLTOOL"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5249 $as_echo "$ac_ct_DLLTOOL" >&6; }
5250 else
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5253 fi
5254
5255 if test "x$ac_ct_DLLTOOL" = x; then
5256 DLLTOOL="false"
5257 else
5258 case $cross_compiling:$ac_tool_warned in
5259 yes:)
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5262 ac_tool_warned=yes ;;
5263 esac
5264 DLLTOOL=$ac_ct_DLLTOOL
5265 fi
5266 else
5267 DLLTOOL="$ac_cv_prog_DLLTOOL"
5268 fi
5269
5270 test -z "$DLLTOOL" && DLLTOOL=dlltool
5271
5272
5273
5274
5275
5276
5277
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5279 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5280 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 lt_cv_sharedlib_from_linklib_cmd='unknown'
5284
5285 case $host_os in
5286 cygwin* | msys* | mingw* | pw32* | cegcc*)
5287 # two different shell functions defined in ltmain.sh;
5288 # decide which one to use based on capabilities of $DLLTOOL
5289 case `$DLLTOOL --help 2>&1` in
5290 *--identify-strict*)
5291 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5292 ;;
5293 *)
5294 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5295 ;;
5296 esac
5297 ;;
5298 *)
5299 # fallback: assume linklib IS sharedlib
5300 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5301 ;;
5302 esac
5303
5304 fi
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5306 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5307 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5308 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5309
5310
5311
5312
5313
5314
5315
5316 if test -n "$ac_tool_prefix"; then
5317 for ac_prog in ar
5318 do
5319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if ${ac_cv_prog_AR+:} false; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 if test -n "$AR"; then
5327 ac_cv_prog_AR="$AR" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 break 2
5339 fi
5340 done
5341 done
5342 IFS=$as_save_IFS
5343
5344 fi
5345 fi
5346 AR=$ac_cv_prog_AR
5347 if test -n "$AR"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5349 $as_echo "$AR" >&6; }
5350 else
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5353 fi
5354
5355
5356 test -n "$AR" && break
5357 done
5358 fi
5359 if test -z "$AR"; then
5360 ac_ct_AR=$AR
5361 for ac_prog in ar
5362 do
5363 # Extract the first word of "$ac_prog", so it can be a program name with args.
5364 set dummy $ac_prog; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 if test -n "$ac_ct_AR"; then
5371 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5372 else
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5375 do
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380 ac_cv_prog_ac_ct_AR="$ac_prog"
5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 break 2
5383 fi
5384 done
5385 done
5386 IFS=$as_save_IFS
5387
5388 fi
5389 fi
5390 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5391 if test -n "$ac_ct_AR"; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5393 $as_echo "$ac_ct_AR" >&6; }
5394 else
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5397 fi
5398
5399
5400 test -n "$ac_ct_AR" && break
5401 done
5402
5403 if test "x$ac_ct_AR" = x; then
5404 AR="false"
5405 else
5406 case $cross_compiling:$ac_tool_warned in
5407 yes:)
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5410 ac_tool_warned=yes ;;
5411 esac
5412 AR=$ac_ct_AR
5413 fi
5414 fi
5415
5416 : ${AR=ar}
5417
5418
5419
5420
5421
5422
5423 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
5424 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
5425 # higher priority because thats what people were doing historically (setting
5426 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
5427 # variable obsoleted/removed.
5428
5429 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
5430 lt_ar_flags=$AR_FLAGS
5431
5432
5433
5434
5435
5436
5437 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
5438 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
5439
5440
5441
5442
5443
5444
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5446 $as_echo_n "checking for archiver @FILE support... " >&6; }
5447 if ${lt_cv_ar_at_file+:} false; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 lt_cv_ar_at_file=no
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5453
5454 int
5455 main ()
5456 {
5457
5458 ;
5459 return 0;
5460 }
5461 _ACEOF
5462 if ac_fn_c_try_compile "$LINENO"; then :
5463 echo conftest.$ac_objext > conftest.lst
5464 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5466 (eval $lt_ar_try) 2>&5
5467 ac_status=$?
5468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5469 test $ac_status = 0; }
5470 if test 0 -eq "$ac_status"; then
5471 # Ensure the archiver fails upon bogus file names.
5472 rm -f conftest.$ac_objext libconftest.a
5473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5474 (eval $lt_ar_try) 2>&5
5475 ac_status=$?
5476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5477 test $ac_status = 0; }
5478 if test 0 -ne "$ac_status"; then
5479 lt_cv_ar_at_file=@
5480 fi
5481 fi
5482 rm -f conftest.* libconftest.a
5483
5484 fi
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486
5487 fi
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5489 $as_echo "$lt_cv_ar_at_file" >&6; }
5490
5491 if test no = "$lt_cv_ar_at_file"; then
5492 archiver_list_spec=
5493 else
5494 archiver_list_spec=$lt_cv_ar_at_file
5495 fi
5496
5497
5498
5499
5500
5501
5502
5503 if test -n "$ac_tool_prefix"; then
5504 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5505 set dummy ${ac_tool_prefix}strip; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if ${ac_cv_prog_STRIP+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 if test -n "$STRIP"; then
5512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5524 fi
5525 done
5526 done
5527 IFS=$as_save_IFS
5528
5529 fi
5530 fi
5531 STRIP=$ac_cv_prog_STRIP
5532 if test -n "$STRIP"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5534 $as_echo "$STRIP" >&6; }
5535 else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5538 fi
5539
5540
5541 fi
5542 if test -z "$ac_cv_prog_STRIP"; then
5543 ac_ct_STRIP=$STRIP
5544 # Extract the first word of "strip", so it can be a program name with args.
5545 set dummy strip; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 if test -n "$ac_ct_STRIP"; then
5552 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5556 do
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_ac_ct_STRIP="strip"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5564 fi
5565 done
5566 done
5567 IFS=$as_save_IFS
5568
5569 fi
5570 fi
5571 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5572 if test -n "$ac_ct_STRIP"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5574 $as_echo "$ac_ct_STRIP" >&6; }
5575 else
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5578 fi
5579
5580 if test "x$ac_ct_STRIP" = x; then
5581 STRIP=":"
5582 else
5583 case $cross_compiling:$ac_tool_warned in
5584 yes:)
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5587 ac_tool_warned=yes ;;
5588 esac
5589 STRIP=$ac_ct_STRIP
5590 fi
5591 else
5592 STRIP="$ac_cv_prog_STRIP"
5593 fi
5594
5595 test -z "$STRIP" && STRIP=:
5596
5597
5598
5599
5600
5601
5602 if test -n "$ac_tool_prefix"; then
5603 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5604 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if ${ac_cv_prog_RANLIB+:} false; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 if test -n "$RANLIB"; then
5611 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5612 else
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5615 do
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5620 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5623 fi
5624 done
5625 done
5626 IFS=$as_save_IFS
5627
5628 fi
5629 fi
5630 RANLIB=$ac_cv_prog_RANLIB
5631 if test -n "$RANLIB"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5633 $as_echo "$RANLIB" >&6; }
5634 else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5637 fi
5638
5639
5640 fi
5641 if test -z "$ac_cv_prog_RANLIB"; then
5642 ac_ct_RANLIB=$RANLIB
5643 # Extract the first word of "ranlib", so it can be a program name with args.
5644 set dummy ranlib; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 if test -n "$ac_ct_RANLIB"; then
5651 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5655 do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_prog_ac_ct_RANLIB="ranlib"
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5663 fi
5664 done
5665 done
5666 IFS=$as_save_IFS
5667
5668 fi
5669 fi
5670 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5671 if test -n "$ac_ct_RANLIB"; then
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5673 $as_echo "$ac_ct_RANLIB" >&6; }
5674 else
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5677 fi
5678
5679 if test "x$ac_ct_RANLIB" = x; then
5680 RANLIB=":"
5681 else
5682 case $cross_compiling:$ac_tool_warned in
5683 yes:)
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5686 ac_tool_warned=yes ;;
5687 esac
5688 RANLIB=$ac_ct_RANLIB
5689 fi
5690 else
5691 RANLIB="$ac_cv_prog_RANLIB"
5692 fi
5693
5694 test -z "$RANLIB" && RANLIB=:
5695
5696
5697
5698
5699
5700
5701 # Determine commands to create old-style static archives.
5702 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5703 old_postinstall_cmds='chmod 644 $oldlib'
5704 old_postuninstall_cmds=
5705
5706 if test -n "$RANLIB"; then
5707 case $host_os in
5708 bitrig* | openbsd*)
5709 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5710 ;;
5711 *)
5712 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5713 ;;
5714 esac
5715 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5716 fi
5717
5718 case $host_os in
5719 darwin*)
5720 lock_old_archive_extraction=yes ;;
5721 *)
5722 lock_old_archive_extraction=no ;;
5723 esac
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745 for ac_prog in gawk mawk nawk awk
5746 do
5747 # Extract the first word of "$ac_prog", so it can be a program name with args.
5748 set dummy $ac_prog; ac_word=$2
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 $as_echo_n "checking for $ac_word... " >&6; }
5751 if ${ac_cv_prog_AWK+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 if test -n "$AWK"; then
5755 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764 ac_cv_prog_AWK="$ac_prog"
5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5767 fi
5768 done
5769 done
5770 IFS=$as_save_IFS
5771
5772 fi
5773 fi
5774 AWK=$ac_cv_prog_AWK
5775 if test -n "$AWK"; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5777 $as_echo "$AWK" >&6; }
5778 else
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5781 fi
5782
5783
5784 test -n "$AWK" && break
5785 done
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805 # If no C compiler was specified, use CC.
5806 LTCC=${LTCC-"$CC"}
5807
5808 # If no C compiler flags were specified, use CFLAGS.
5809 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5810
5811 # Allow CC to be a program name with arguments.
5812 compiler=$CC
5813
5814
5815 # Check for command to grab the raw symbol name followed by C symbol from nm.
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5817 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5818 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821
5822 # These are sane defaults that work on at least a few old systems.
5823 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5824
5825 # Character class describing NM global symbol codes.
5826 symcode='[BCDEGRST]'
5827
5828 # Regexp to match symbols that can be accessed directly from C.
5829 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5830
5831 # Define system-specific variables.
5832 case $host_os in
5833 aix*)
5834 symcode='[BCDT]'
5835 ;;
5836 cygwin* | msys* | mingw* | pw32* | cegcc*)
5837 symcode='[ABCDGISTW]'
5838 ;;
5839 hpux*)
5840 if test ia64 = "$host_cpu"; then
5841 symcode='[ABCDEGRST]'
5842 fi
5843 ;;
5844 irix* | nonstopux*)
5845 symcode='[BCDEGRST]'
5846 ;;
5847 osf*)
5848 symcode='[BCDEGQRST]'
5849 ;;
5850 solaris*)
5851 symcode='[BDRT]'
5852 ;;
5853 sco3.2v5*)
5854 symcode='[DT]'
5855 ;;
5856 sysv4.2uw2*)
5857 symcode='[DT]'
5858 ;;
5859 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5860 symcode='[ABDT]'
5861 ;;
5862 sysv4)
5863 symcode='[DFNSTU]'
5864 ;;
5865 esac
5866
5867 # If we're using GNU nm, then use its standard symbol codes.
5868 case `$NM -V 2>&1` in
5869 *GNU* | *'with BFD'*)
5870 symcode='[ABCDGIRSTW]' ;;
5871 esac
5872
5873 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5874 # Gets list of data symbols to import.
5875 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
5876 # Adjust the below global symbol transforms to fixup imported variables.
5877 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5878 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5879 lt_c_name_lib_hook="\
5880 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5881 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5882 else
5883 # Disable hooks by default.
5884 lt_cv_sys_global_symbol_to_import=
5885 lt_cdecl_hook=
5886 lt_c_name_hook=
5887 lt_c_name_lib_hook=
5888 fi
5889
5890 # Transform an extracted symbol line into a proper C declaration.
5891 # Some systems (esp. on ia64) link data and code symbols differently,
5892 # so use this general approach.
5893 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
5894 $lt_cdecl_hook\
5895 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5896 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5897
5898 # Transform an extracted symbol line into symbol name and symbol address
5899 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
5900 $lt_c_name_hook\
5901 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5902 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5903
5904 # Transform an extracted symbol line into symbol name with lib prefix and
5905 # symbol address.
5906 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
5907 $lt_c_name_lib_hook\
5908 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5909 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5910 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5911
5912 # Handle CRLF in mingw tool chain
5913 opt_cr=
5914 case $build_os in
5915 mingw*)
5916 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5917 ;;
5918 esac
5919
5920 # Try without a prefix underscore, then with it.
5921 for ac_symprfx in "" "_"; do
5922
5923 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5924 symxfrm="\\1 $ac_symprfx\\2 \\2"
5925
5926 # Write the raw and C identifiers.
5927 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5928 # Fake it for dumpbin and say T for any non-static function,
5929 # D for any global variable and I for any imported variable.
5930 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
5931 # which start with @ or ?.
5932 lt_cv_sys_global_symbol_pipe="$AWK '"\
5933 " {last_section=section; section=\$ 3};"\
5934 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5935 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5936 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5937 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5938 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5939 " \$ 0!~/External *\|/{next};"\
5940 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5941 " {if(hide[section]) next};"\
5942 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5943 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5944 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5945 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5946 " ' prfx=^$ac_symprfx"
5947 else
5948 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5949 fi
5950 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
5951
5952 # Check to see that the pipe works correctly.
5953 pipe_works=no
5954
5955 rm -f conftest*
5956 cat > conftest.$ac_ext <<_LT_EOF
5957 #ifdef __cplusplus
5958 extern "C" {
5959 #endif
5960 char nm_test_var;
5961 void nm_test_func(void);
5962 void nm_test_func(void){}
5963 #ifdef __cplusplus
5964 }
5965 #endif
5966 int main(){nm_test_var='a';nm_test_func();return(0);}
5967 _LT_EOF
5968
5969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5970 (eval $ac_compile) 2>&5
5971 ac_status=$?
5972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5973 test $ac_status = 0; }; then
5974 # Now try to grab the symbols.
5975 nlist=conftest.nm
5976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5977 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5978 ac_status=$?
5979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5980 test $ac_status = 0; } && test -s "$nlist"; then
5981 # Try sorting and uniquifying the output.
5982 if sort "$nlist" | uniq > "$nlist"T; then
5983 mv -f "$nlist"T "$nlist"
5984 else
5985 rm -f "$nlist"T
5986 fi
5987
5988 # Make sure that we snagged all the symbols we need.
5989 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5990 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5991 cat <<_LT_EOF > conftest.$ac_ext
5992 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5993 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5994 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5995 relocations are performed -- see ld's documentation on pseudo-relocs. */
5996 # define LT_DLSYM_CONST
5997 #elif defined __osf__
5998 /* This system does not cope well with relocations in const data. */
5999 # define LT_DLSYM_CONST
6000 #else
6001 # define LT_DLSYM_CONST const
6002 #endif
6003
6004 #ifdef __cplusplus
6005 extern "C" {
6006 #endif
6007
6008 _LT_EOF
6009 # Now generate the symbol file.
6010 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6011
6012 cat <<_LT_EOF >> conftest.$ac_ext
6013
6014 /* The mapping between symbol names and symbols. */
6015 LT_DLSYM_CONST struct {
6016 const char *name;
6017 void *address;
6018 }
6019 lt__PROGRAM__LTX_preloaded_symbols[] =
6020 {
6021 { "@PROGRAM@", (void *) 0 },
6022 _LT_EOF
6023 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6024 cat <<\_LT_EOF >> conftest.$ac_ext
6025 {0, (void *) 0}
6026 };
6027
6028 /* This works around a problem in FreeBSD linker */
6029 #ifdef FREEBSD_WORKAROUND
6030 static const void *lt_preloaded_setup() {
6031 return lt__PROGRAM__LTX_preloaded_symbols;
6032 }
6033 #endif
6034
6035 #ifdef __cplusplus
6036 }
6037 #endif
6038 _LT_EOF
6039 # Now try linking the two files.
6040 mv conftest.$ac_objext conftstm.$ac_objext
6041 lt_globsym_save_LIBS=$LIBS
6042 lt_globsym_save_CFLAGS=$CFLAGS
6043 LIBS=conftstm.$ac_objext
6044 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6046 (eval $ac_link) 2>&5
6047 ac_status=$?
6048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6049 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6050 pipe_works=yes
6051 fi
6052 LIBS=$lt_globsym_save_LIBS
6053 CFLAGS=$lt_globsym_save_CFLAGS
6054 else
6055 echo "cannot find nm_test_func in $nlist" >&5
6056 fi
6057 else
6058 echo "cannot find nm_test_var in $nlist" >&5
6059 fi
6060 else
6061 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6062 fi
6063 else
6064 echo "$progname: failed program was:" >&5
6065 cat conftest.$ac_ext >&5
6066 fi
6067 rm -rf conftest* conftst*
6068
6069 # Do not use the global_symbol_pipe unless it works.
6070 if test yes = "$pipe_works"; then
6071 break
6072 else
6073 lt_cv_sys_global_symbol_pipe=
6074 fi
6075 done
6076
6077 fi
6078
6079 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6080 lt_cv_sys_global_symbol_to_cdecl=
6081 fi
6082 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6084 $as_echo "failed" >&6; }
6085 else
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6087 $as_echo "ok" >&6; }
6088 fi
6089
6090 # Response file support.
6091 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6092 nm_file_list_spec='@'
6093 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6094 nm_file_list_spec='@'
6095 fi
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6134 $as_echo_n "checking for sysroot... " >&6; }
6135
6136 # Check whether --with-sysroot was given.
6137 if test "${with_sysroot+set}" = set; then :
6138 withval=$with_sysroot;
6139 else
6140 with_sysroot=no
6141 fi
6142
6143
6144 lt_sysroot=
6145 case $with_sysroot in #(
6146 yes)
6147 if test yes = "$GCC"; then
6148 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6149 fi
6150 ;; #(
6151 /*)
6152 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
6153 ;; #(
6154 no|'')
6155 ;; #(
6156 *)
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6158 $as_echo "$with_sysroot" >&6; }
6159 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6160 ;;
6161 esac
6162
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6164 $as_echo "${lt_sysroot:-no}" >&6; }
6165
6166
6167
6168
6169
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6171 $as_echo_n "checking for a working dd... " >&6; }
6172 if ${ac_cv_path_lt_DD+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 printf 0123456789abcdef0123456789abcdef >conftest.i
6176 cat conftest.i conftest.i >conftest2.i
6177 : ${lt_DD:=$DD}
6178 if test -z "$lt_DD"; then
6179 ac_path_lt_DD_found=false
6180 # Loop through the user's path and test for each of PROGNAME-LIST
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6183 do
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_prog in dd; do
6187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6189 as_fn_executable_p "$ac_path_lt_DD" || continue
6190 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6191 cmp -s conftest.i conftest.out \
6192 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6193 fi
6194 $ac_path_lt_DD_found && break 3
6195 done
6196 done
6197 done
6198 IFS=$as_save_IFS
6199 if test -z "$ac_cv_path_lt_DD"; then
6200 :
6201 fi
6202 else
6203 ac_cv_path_lt_DD=$lt_DD
6204 fi
6205
6206 rm -f conftest.i conftest2.i conftest.out
6207 fi
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6209 $as_echo "$ac_cv_path_lt_DD" >&6; }
6210
6211
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6213 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6214 if ${lt_cv_truncate_bin+:} false; then :
6215 $as_echo_n "(cached) " >&6
6216 else
6217 printf 0123456789abcdef0123456789abcdef >conftest.i
6218 cat conftest.i conftest.i >conftest2.i
6219 lt_cv_truncate_bin=
6220 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6221 cmp -s conftest.i conftest.out \
6222 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6223 fi
6224 rm -f conftest.i conftest2.i conftest.out
6225 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6226 fi
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6228 $as_echo "$lt_cv_truncate_bin" >&6; }
6229
6230
6231
6232
6233
6234
6235
6236 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6237 func_cc_basename ()
6238 {
6239 for cc_temp in $*""; do
6240 case $cc_temp in
6241 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6242 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6243 \-*) ;;
6244 *) break;;
6245 esac
6246 done
6247 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6248 }
6249
6250 # Check whether --enable-libtool-lock was given.
6251 if test "${enable_libtool_lock+set}" = set; then :
6252 enableval=$enable_libtool_lock;
6253 fi
6254
6255 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6256
6257 # Some flags need to be propagated to the compiler or linker for good
6258 # libtool support.
6259 case $host in
6260 ia64-*-hpux*)
6261 # Find out what ABI is being produced by ac_compile, and set mode
6262 # options accordingly.
6263 echo 'int i;' > conftest.$ac_ext
6264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6265 (eval $ac_compile) 2>&5
6266 ac_status=$?
6267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6268 test $ac_status = 0; }; then
6269 case `$FILECMD conftest.$ac_objext` in
6270 *ELF-32*)
6271 HPUX_IA64_MODE=32
6272 ;;
6273 *ELF-64*)
6274 HPUX_IA64_MODE=64
6275 ;;
6276 esac
6277 fi
6278 rm -rf conftest*
6279 ;;
6280 *-*-irix6*)
6281 # Find out what ABI is being produced by ac_compile, and set linker
6282 # options accordingly.
6283 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6285 (eval $ac_compile) 2>&5
6286 ac_status=$?
6287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288 test $ac_status = 0; }; then
6289 if test yes = "$lt_cv_prog_gnu_ld"; then
6290 case `$FILECMD conftest.$ac_objext` in
6291 *32-bit*)
6292 LD="${LD-ld} -melf32bsmip"
6293 ;;
6294 *N32*)
6295 LD="${LD-ld} -melf32bmipn32"
6296 ;;
6297 *64-bit*)
6298 LD="${LD-ld} -melf64bmip"
6299 ;;
6300 esac
6301 else
6302 case `$FILECMD conftest.$ac_objext` in
6303 *32-bit*)
6304 LD="${LD-ld} -32"
6305 ;;
6306 *N32*)
6307 LD="${LD-ld} -n32"
6308 ;;
6309 *64-bit*)
6310 LD="${LD-ld} -64"
6311 ;;
6312 esac
6313 fi
6314 fi
6315 rm -rf conftest*
6316 ;;
6317
6318 mips64*-*linux*)
6319 # Find out what ABI is being produced by ac_compile, and set linker
6320 # options accordingly.
6321 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6323 (eval $ac_compile) 2>&5
6324 ac_status=$?
6325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6326 test $ac_status = 0; }; then
6327 emul=elf
6328 case `$FILECMD conftest.$ac_objext` in
6329 *32-bit*)
6330 emul="${emul}32"
6331 ;;
6332 *64-bit*)
6333 emul="${emul}64"
6334 ;;
6335 esac
6336 case `$FILECMD conftest.$ac_objext` in
6337 *MSB*)
6338 emul="${emul}btsmip"
6339 ;;
6340 *LSB*)
6341 emul="${emul}ltsmip"
6342 ;;
6343 esac
6344 case `$FILECMD conftest.$ac_objext` in
6345 *N32*)
6346 emul="${emul}n32"
6347 ;;
6348 esac
6349 LD="${LD-ld} -m $emul"
6350 fi
6351 rm -rf conftest*
6352 ;;
6353
6354 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6355 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6356 # Find out what ABI is being produced by ac_compile, and set linker
6357 # options accordingly. Note that the listed cases only cover the
6358 # situations where additional linker options are needed (such as when
6359 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6360 # vice versa); the common cases where no linker options are needed do
6361 # not appear in the list.
6362 echo 'int i;' > conftest.$ac_ext
6363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6364 (eval $ac_compile) 2>&5
6365 ac_status=$?
6366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6367 test $ac_status = 0; }; then
6368 case `$FILECMD conftest.o` in
6369 *32-bit*)
6370 case $host in
6371 x86_64-*kfreebsd*-gnu)
6372 LD="${LD-ld} -m elf_i386_fbsd"
6373 ;;
6374 x86_64-*linux*)
6375 case `$FILECMD conftest.o` in
6376 *x86-64*)
6377 LD="${LD-ld} -m elf32_x86_64"
6378 ;;
6379 *)
6380 LD="${LD-ld} -m elf_i386"
6381 ;;
6382 esac
6383 ;;
6384 powerpc64le-*linux*)
6385 LD="${LD-ld} -m elf32lppclinux"
6386 ;;
6387 powerpc64-*linux*)
6388 LD="${LD-ld} -m elf32ppclinux"
6389 ;;
6390 s390x-*linux*)
6391 LD="${LD-ld} -m elf_s390"
6392 ;;
6393 sparc64-*linux*)
6394 LD="${LD-ld} -m elf32_sparc"
6395 ;;
6396 esac
6397 ;;
6398 *64-bit*)
6399 case $host in
6400 x86_64-*kfreebsd*-gnu)
6401 LD="${LD-ld} -m elf_x86_64_fbsd"
6402 ;;
6403 x86_64-*linux*)
6404 LD="${LD-ld} -m elf_x86_64"
6405 ;;
6406 powerpcle-*linux*)
6407 LD="${LD-ld} -m elf64lppc"
6408 ;;
6409 powerpc-*linux*)
6410 LD="${LD-ld} -m elf64ppc"
6411 ;;
6412 s390*-*linux*|s390*-*tpf*)
6413 LD="${LD-ld} -m elf64_s390"
6414 ;;
6415 sparc*-*linux*)
6416 LD="${LD-ld} -m elf64_sparc"
6417 ;;
6418 esac
6419 ;;
6420 esac
6421 fi
6422 rm -rf conftest*
6423 ;;
6424
6425 *-*-sco3.2v5*)
6426 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6427 SAVE_CFLAGS=$CFLAGS
6428 CFLAGS="$CFLAGS -belf"
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6430 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6431 if ${lt_cv_cc_needs_belf+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 ac_ext=c
6435 ac_cpp='$CPP $CPPFLAGS'
6436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6439
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442
6443 int
6444 main ()
6445 {
6446
6447 ;
6448 return 0;
6449 }
6450 _ACEOF
6451 if ac_fn_c_try_link "$LINENO"; then :
6452 lt_cv_cc_needs_belf=yes
6453 else
6454 lt_cv_cc_needs_belf=no
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext \
6457 conftest$ac_exeext conftest.$ac_ext
6458 ac_ext=c
6459 ac_cpp='$CPP $CPPFLAGS'
6460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6463
6464 fi
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6466 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6467 if test yes != "$lt_cv_cc_needs_belf"; then
6468 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6469 CFLAGS=$SAVE_CFLAGS
6470 fi
6471 ;;
6472 *-*solaris*)
6473 # Find out what ABI is being produced by ac_compile, and set linker
6474 # options accordingly.
6475 echo 'int i;' > conftest.$ac_ext
6476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6477 (eval $ac_compile) 2>&5
6478 ac_status=$?
6479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6480 test $ac_status = 0; }; then
6481 case `$FILECMD conftest.o` in
6482 *64-bit*)
6483 case $lt_cv_prog_gnu_ld in
6484 yes*)
6485 case $host in
6486 i?86-*-solaris*|x86_64-*-solaris*)
6487 LD="${LD-ld} -m elf_x86_64"
6488 ;;
6489 sparc*-*-solaris*)
6490 LD="${LD-ld} -m elf64_sparc"
6491 ;;
6492 esac
6493 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6494 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6495 LD=${LD-ld}_sol2
6496 fi
6497 ;;
6498 *)
6499 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6500 LD="${LD-ld} -64"
6501 fi
6502 ;;
6503 esac
6504 ;;
6505 esac
6506 fi
6507 rm -rf conftest*
6508 ;;
6509 esac
6510
6511 need_locks=$enable_libtool_lock
6512
6513 if test -n "$ac_tool_prefix"; then
6514 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6515 set dummy ${ac_tool_prefix}mt; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 if test -n "$MANIFEST_TOOL"; then
6522 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535 done
6536 done
6537 IFS=$as_save_IFS
6538
6539 fi
6540 fi
6541 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6542 if test -n "$MANIFEST_TOOL"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6544 $as_echo "$MANIFEST_TOOL" >&6; }
6545 else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6548 fi
6549
6550
6551 fi
6552 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6553 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6554 # Extract the first word of "mt", so it can be a program name with args.
6555 set dummy mt; ac_word=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 if test -n "$ac_ct_MANIFEST_TOOL"; then
6562 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6566 do
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6571 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6574 fi
6575 done
6576 done
6577 IFS=$as_save_IFS
6578
6579 fi
6580 fi
6581 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6582 if test -n "$ac_ct_MANIFEST_TOOL"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6584 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6585 else
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6588 fi
6589
6590 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6591 MANIFEST_TOOL=":"
6592 else
6593 case $cross_compiling:$ac_tool_warned in
6594 yes:)
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6597 ac_tool_warned=yes ;;
6598 esac
6599 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6600 fi
6601 else
6602 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6603 fi
6604
6605 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6607 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6608 if ${lt_cv_path_mainfest_tool+:} false; then :
6609 $as_echo_n "(cached) " >&6
6610 else
6611 lt_cv_path_mainfest_tool=no
6612 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6613 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6614 cat conftest.err >&5
6615 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6616 lt_cv_path_mainfest_tool=yes
6617 fi
6618 rm -f conftest*
6619 fi
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6621 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6622 if test yes != "$lt_cv_path_mainfest_tool"; then
6623 MANIFEST_TOOL=:
6624 fi
6625
6626
6627
6628
6629
6630
6631 case $host_os in
6632 rhapsody* | darwin*)
6633 if test -n "$ac_tool_prefix"; then
6634 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6635 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 if test -n "$DSYMUTIL"; then
6642 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6646 do
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6651 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6654 fi
6655 done
6656 done
6657 IFS=$as_save_IFS
6658
6659 fi
6660 fi
6661 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6662 if test -n "$DSYMUTIL"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6664 $as_echo "$DSYMUTIL" >&6; }
6665 else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6668 fi
6669
6670
6671 fi
6672 if test -z "$ac_cv_prog_DSYMUTIL"; then
6673 ac_ct_DSYMUTIL=$DSYMUTIL
6674 # Extract the first word of "dsymutil", so it can be a program name with args.
6675 set dummy dsymutil; ac_word=$2
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 if test -n "$ac_ct_DSYMUTIL"; then
6682 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6683 else
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6691 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 break 2
6694 fi
6695 done
6696 done
6697 IFS=$as_save_IFS
6698
6699 fi
6700 fi
6701 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6702 if test -n "$ac_ct_DSYMUTIL"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6704 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6705 else
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6708 fi
6709
6710 if test "x$ac_ct_DSYMUTIL" = x; then
6711 DSYMUTIL=":"
6712 else
6713 case $cross_compiling:$ac_tool_warned in
6714 yes:)
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6717 ac_tool_warned=yes ;;
6718 esac
6719 DSYMUTIL=$ac_ct_DSYMUTIL
6720 fi
6721 else
6722 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6723 fi
6724
6725 if test -n "$ac_tool_prefix"; then
6726 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6727 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729 $as_echo_n "checking for $ac_word... " >&6; }
6730 if ${ac_cv_prog_NMEDIT+:} false; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 if test -n "$NMEDIT"; then
6734 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747 done
6748 done
6749 IFS=$as_save_IFS
6750
6751 fi
6752 fi
6753 NMEDIT=$ac_cv_prog_NMEDIT
6754 if test -n "$NMEDIT"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6756 $as_echo "$NMEDIT" >&6; }
6757 else
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 $as_echo "no" >&6; }
6760 fi
6761
6762
6763 fi
6764 if test -z "$ac_cv_prog_NMEDIT"; then
6765 ac_ct_NMEDIT=$NMEDIT
6766 # Extract the first word of "nmedit", so it can be a program name with args.
6767 set dummy nmedit; ac_word=$2
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 if test -n "$ac_ct_NMEDIT"; then
6774 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6783 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787 done
6788 done
6789 IFS=$as_save_IFS
6790
6791 fi
6792 fi
6793 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6794 if test -n "$ac_ct_NMEDIT"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6796 $as_echo "$ac_ct_NMEDIT" >&6; }
6797 else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6800 fi
6801
6802 if test "x$ac_ct_NMEDIT" = x; then
6803 NMEDIT=":"
6804 else
6805 case $cross_compiling:$ac_tool_warned in
6806 yes:)
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6809 ac_tool_warned=yes ;;
6810 esac
6811 NMEDIT=$ac_ct_NMEDIT
6812 fi
6813 else
6814 NMEDIT="$ac_cv_prog_NMEDIT"
6815 fi
6816
6817 if test -n "$ac_tool_prefix"; then
6818 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6819 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821 $as_echo_n "checking for $ac_word... " >&6; }
6822 if ${ac_cv_prog_LIPO+:} false; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 if test -n "$LIPO"; then
6826 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6827 else
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6830 do
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6835 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6838 fi
6839 done
6840 done
6841 IFS=$as_save_IFS
6842
6843 fi
6844 fi
6845 LIPO=$ac_cv_prog_LIPO
6846 if test -n "$LIPO"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6848 $as_echo "$LIPO" >&6; }
6849 else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 $as_echo "no" >&6; }
6852 fi
6853
6854
6855 fi
6856 if test -z "$ac_cv_prog_LIPO"; then
6857 ac_ct_LIPO=$LIPO
6858 # Extract the first word of "lipo", so it can be a program name with args.
6859 set dummy lipo; ac_word=$2
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 $as_echo_n "checking for $ac_word... " >&6; }
6862 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 if test -n "$ac_ct_LIPO"; then
6866 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6875 ac_cv_prog_ac_ct_LIPO="lipo"
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6878 fi
6879 done
6880 done
6881 IFS=$as_save_IFS
6882
6883 fi
6884 fi
6885 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6886 if test -n "$ac_ct_LIPO"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6888 $as_echo "$ac_ct_LIPO" >&6; }
6889 else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6892 fi
6893
6894 if test "x$ac_ct_LIPO" = x; then
6895 LIPO=":"
6896 else
6897 case $cross_compiling:$ac_tool_warned in
6898 yes:)
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6901 ac_tool_warned=yes ;;
6902 esac
6903 LIPO=$ac_ct_LIPO
6904 fi
6905 else
6906 LIPO="$ac_cv_prog_LIPO"
6907 fi
6908
6909 if test -n "$ac_tool_prefix"; then
6910 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6911 set dummy ${ac_tool_prefix}otool; ac_word=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if ${ac_cv_prog_OTOOL+:} false; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 if test -n "$OTOOL"; then
6918 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6927 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6930 fi
6931 done
6932 done
6933 IFS=$as_save_IFS
6934
6935 fi
6936 fi
6937 OTOOL=$ac_cv_prog_OTOOL
6938 if test -n "$OTOOL"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6940 $as_echo "$OTOOL" >&6; }
6941 else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6944 fi
6945
6946
6947 fi
6948 if test -z "$ac_cv_prog_OTOOL"; then
6949 ac_ct_OTOOL=$OTOOL
6950 # Extract the first word of "otool", so it can be a program name with args.
6951 set dummy otool; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6957 if test -n "$ac_ct_OTOOL"; then
6958 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6959 else
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967 ac_cv_prog_ac_ct_OTOOL="otool"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6970 fi
6971 done
6972 done
6973 IFS=$as_save_IFS
6974
6975 fi
6976 fi
6977 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6978 if test -n "$ac_ct_OTOOL"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6980 $as_echo "$ac_ct_OTOOL" >&6; }
6981 else
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6984 fi
6985
6986 if test "x$ac_ct_OTOOL" = x; then
6987 OTOOL=":"
6988 else
6989 case $cross_compiling:$ac_tool_warned in
6990 yes:)
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6993 ac_tool_warned=yes ;;
6994 esac
6995 OTOOL=$ac_ct_OTOOL
6996 fi
6997 else
6998 OTOOL="$ac_cv_prog_OTOOL"
6999 fi
7000
7001 if test -n "$ac_tool_prefix"; then
7002 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7003 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if ${ac_cv_prog_OTOOL64+:} false; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 if test -n "$OTOOL64"; then
7010 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7014 do
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7019 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7022 fi
7023 done
7024 done
7025 IFS=$as_save_IFS
7026
7027 fi
7028 fi
7029 OTOOL64=$ac_cv_prog_OTOOL64
7030 if test -n "$OTOOL64"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7032 $as_echo "$OTOOL64" >&6; }
7033 else
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7036 fi
7037
7038
7039 fi
7040 if test -z "$ac_cv_prog_OTOOL64"; then
7041 ac_ct_OTOOL64=$OTOOL64
7042 # Extract the first word of "otool64", so it can be a program name with args.
7043 set dummy otool64; ac_word=$2
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 $as_echo_n "checking for $ac_word... " >&6; }
7046 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 if test -n "$ac_ct_OTOOL64"; then
7050 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7051 else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7059 ac_cv_prog_ac_ct_OTOOL64="otool64"
7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 break 2
7062 fi
7063 done
7064 done
7065 IFS=$as_save_IFS
7066
7067 fi
7068 fi
7069 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7070 if test -n "$ac_ct_OTOOL64"; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7072 $as_echo "$ac_ct_OTOOL64" >&6; }
7073 else
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7076 fi
7077
7078 if test "x$ac_ct_OTOOL64" = x; then
7079 OTOOL64=":"
7080 else
7081 case $cross_compiling:$ac_tool_warned in
7082 yes:)
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7085 ac_tool_warned=yes ;;
7086 esac
7087 OTOOL64=$ac_ct_OTOOL64
7088 fi
7089 else
7090 OTOOL64="$ac_cv_prog_OTOOL64"
7091 fi
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7120 $as_echo_n "checking for -single_module linker flag... " >&6; }
7121 if ${lt_cv_apple_cc_single_mod+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 lt_cv_apple_cc_single_mod=no
7125 if test -z "$LT_MULTI_MODULE"; then
7126 # By default we will add the -single_module flag. You can override
7127 # by either setting the environment variable LT_MULTI_MODULE
7128 # non-empty at configure time, or by adding -multi_module to the
7129 # link flags.
7130 rm -rf libconftest.dylib*
7131 echo "int foo(void){return 1;}" > conftest.c
7132 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7133 -dynamiclib -Wl,-single_module conftest.c" >&5
7134 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7135 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7136 _lt_result=$?
7137 # If there is a non-empty error log, and "single_module"
7138 # appears in it, assume the flag caused a linker warning
7139 if test -s conftest.err && $GREP single_module conftest.err; then
7140 cat conftest.err >&5
7141 # Otherwise, if the output was created with a 0 exit code from
7142 # the compiler, it worked.
7143 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7144 lt_cv_apple_cc_single_mod=yes
7145 else
7146 cat conftest.err >&5
7147 fi
7148 rm -rf libconftest.dylib*
7149 rm -f conftest.*
7150 fi
7151 fi
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7153 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7154
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7156 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7157 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160 lt_cv_ld_exported_symbols_list=no
7161 save_LDFLAGS=$LDFLAGS
7162 echo "_main" > conftest.sym
7163 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165 /* end confdefs.h. */
7166
7167 int
7168 main ()
7169 {
7170
7171 ;
7172 return 0;
7173 }
7174 _ACEOF
7175 if ac_fn_c_try_link "$LINENO"; then :
7176 lt_cv_ld_exported_symbols_list=yes
7177 else
7178 lt_cv_ld_exported_symbols_list=no
7179 fi
7180 rm -f core conftest.err conftest.$ac_objext \
7181 conftest$ac_exeext conftest.$ac_ext
7182 LDFLAGS=$save_LDFLAGS
7183
7184 fi
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7186 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7187
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7189 $as_echo_n "checking for -force_load linker flag... " >&6; }
7190 if ${lt_cv_ld_force_load+:} false; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7193 lt_cv_ld_force_load=no
7194 cat > conftest.c << _LT_EOF
7195 int forced_loaded() { return 2;}
7196 _LT_EOF
7197 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7198 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7199 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
7200 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
7201 echo "$RANLIB libconftest.a" >&5
7202 $RANLIB libconftest.a 2>&5
7203 cat > conftest.c << _LT_EOF
7204 int main() { return 0;}
7205 _LT_EOF
7206 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7207 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7208 _lt_result=$?
7209 if test -s conftest.err && $GREP force_load conftest.err; then
7210 cat conftest.err >&5
7211 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7212 lt_cv_ld_force_load=yes
7213 else
7214 cat conftest.err >&5
7215 fi
7216 rm -f conftest.err libconftest.a conftest conftest.c
7217 rm -rf conftest.dSYM
7218
7219 fi
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7221 $as_echo "$lt_cv_ld_force_load" >&6; }
7222 case $host_os in
7223 rhapsody* | darwin1.[012])
7224 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7225 darwin1.*)
7226 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7227 darwin*)
7228 case $MACOSX_DEPLOYMENT_TARGET,$host in
7229 10.[012],*|,*powerpc*-darwin[5-8]*)
7230 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7231 *)
7232 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7233 esac
7234 ;;
7235 esac
7236 if test yes = "$lt_cv_apple_cc_single_mod"; then
7237 _lt_dar_single_mod='$single_module'
7238 fi
7239 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7240 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7241 else
7242 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7243 fi
7244 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7245 _lt_dsymutil='~$DSYMUTIL $lib || :'
7246 else
7247 _lt_dsymutil=
7248 fi
7249 ;;
7250 esac
7251
7252 # func_munge_path_list VARIABLE PATH
7253 # -----------------------------------
7254 # VARIABLE is name of variable containing _space_ separated list of
7255 # directories to be munged by the contents of PATH, which is string
7256 # having a format:
7257 # "DIR[:DIR]:"
7258 # string "DIR[ DIR]" will be prepended to VARIABLE
7259 # ":DIR[:DIR]"
7260 # string "DIR[ DIR]" will be appended to VARIABLE
7261 # "DIRP[:DIRP]::[DIRA:]DIRA"
7262 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7263 # "DIRA[ DIRA]" will be appended to VARIABLE
7264 # "DIR[:DIR]"
7265 # VARIABLE will be replaced by "DIR[ DIR]"
7266 func_munge_path_list ()
7267 {
7268 case x$2 in
7269 x)
7270 ;;
7271 *:)
7272 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7273 ;;
7274 x:*)
7275 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7276 ;;
7277 *::*)
7278 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7279 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7280 ;;
7281 *)
7282 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7283 ;;
7284 esac
7285 }
7286
7287
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7289 $as_echo_n "checking for ANSI C header files... " >&6; }
7290 if ${ac_cv_header_stdc+:} false; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7295 #include <stdlib.h>
7296 #include <stdarg.h>
7297 #include <string.h>
7298 #include <float.h>
7299
7300 int
7301 main ()
7302 {
7303
7304 ;
7305 return 0;
7306 }
7307 _ACEOF
7308 if ac_fn_c_try_compile "$LINENO"; then :
7309 ac_cv_header_stdc=yes
7310 else
7311 ac_cv_header_stdc=no
7312 fi
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314
7315 if test $ac_cv_header_stdc = yes; then
7316 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7319 #include <string.h>
7320
7321 _ACEOF
7322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7323 $EGREP "memchr" >/dev/null 2>&1; then :
7324
7325 else
7326 ac_cv_header_stdc=no
7327 fi
7328 rm -f conftest*
7329
7330 fi
7331
7332 if test $ac_cv_header_stdc = yes; then
7333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7336 #include <stdlib.h>
7337
7338 _ACEOF
7339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7340 $EGREP "free" >/dev/null 2>&1; then :
7341
7342 else
7343 ac_cv_header_stdc=no
7344 fi
7345 rm -f conftest*
7346
7347 fi
7348
7349 if test $ac_cv_header_stdc = yes; then
7350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7351 if test "$cross_compiling" = yes; then :
7352 :
7353 else
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7356 #include <ctype.h>
7357 #include <stdlib.h>
7358 #if ((' ' & 0x0FF) == 0x020)
7359 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7360 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7361 #else
7362 # define ISLOWER(c) \
7363 (('a' <= (c) && (c) <= 'i') \
7364 || ('j' <= (c) && (c) <= 'r') \
7365 || ('s' <= (c) && (c) <= 'z'))
7366 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7367 #endif
7368
7369 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7370 int
7371 main ()
7372 {
7373 int i;
7374 for (i = 0; i < 256; i++)
7375 if (XOR (islower (i), ISLOWER (i))
7376 || toupper (i) != TOUPPER (i))
7377 return 2;
7378 return 0;
7379 }
7380 _ACEOF
7381 if ac_fn_c_try_run "$LINENO"; then :
7382
7383 else
7384 ac_cv_header_stdc=no
7385 fi
7386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7387 conftest.$ac_objext conftest.beam conftest.$ac_ext
7388 fi
7389
7390 fi
7391 fi
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7393 $as_echo "$ac_cv_header_stdc" >&6; }
7394 if test $ac_cv_header_stdc = yes; then
7395
7396 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7397
7398 fi
7399
7400 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7401 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7402 inttypes.h stdint.h unistd.h
7403 do :
7404 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7405 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7406 "
7407 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7408 cat >>confdefs.h <<_ACEOF
7409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7410 _ACEOF
7411
7412 fi
7413
7414 done
7415
7416
7417 for ac_header in dlfcn.h
7418 do :
7419 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7420 "
7421 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7422 cat >>confdefs.h <<_ACEOF
7423 #define HAVE_DLFCN_H 1
7424 _ACEOF
7425
7426 fi
7427
7428 done
7429
7430
7431
7432
7433
7434 # Set options
7435
7436
7437
7438
7439
7440 # Check whether --enable-shared was given.
7441 if test "${enable_shared+set}" = set; then :
7442 enableval=$enable_shared; p=${PACKAGE-default}
7443 case $enableval in
7444 yes) enable_shared=yes ;;
7445 no) enable_shared=no ;;
7446 *)
7447 enable_shared=no
7448 # Look at the argument we got. We use all the common list separators.
7449 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7450 for pkg in $enableval; do
7451 IFS=$lt_save_ifs
7452 if test "X$pkg" = "X$p"; then
7453 enable_shared=yes
7454 fi
7455 done
7456 IFS=$lt_save_ifs
7457 ;;
7458 esac
7459 else
7460 enable_shared=yes
7461 fi
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471 # Check whether --enable-static was given.
7472 if test "${enable_static+set}" = set; then :
7473 enableval=$enable_static; p=${PACKAGE-default}
7474 case $enableval in
7475 yes) enable_static=yes ;;
7476 no) enable_static=no ;;
7477 *)
7478 enable_static=no
7479 # Look at the argument we got. We use all the common list separators.
7480 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7481 for pkg in $enableval; do
7482 IFS=$lt_save_ifs
7483 if test "X$pkg" = "X$p"; then
7484 enable_static=yes
7485 fi
7486 done
7487 IFS=$lt_save_ifs
7488 ;;
7489 esac
7490 else
7491 enable_static=yes
7492 fi
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503 # Check whether --with-pic was given.
7504 if test "${with_pic+set}" = set; then :
7505 withval=$with_pic; lt_p=${PACKAGE-default}
7506 case $withval in
7507 yes|no) pic_mode=$withval ;;
7508 *)
7509 pic_mode=default
7510 # Look at the argument we got. We use all the common list separators.
7511 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7512 for lt_pkg in $withval; do
7513 IFS=$lt_save_ifs
7514 if test "X$lt_pkg" = "X$lt_p"; then
7515 pic_mode=yes
7516 fi
7517 done
7518 IFS=$lt_save_ifs
7519 ;;
7520 esac
7521 else
7522 pic_mode=default
7523 fi
7524
7525
7526
7527
7528
7529
7530
7531
7532 # Check whether --enable-fast-install was given.
7533 if test "${enable_fast_install+set}" = set; then :
7534 enableval=$enable_fast_install; p=${PACKAGE-default}
7535 case $enableval in
7536 yes) enable_fast_install=yes ;;
7537 no) enable_fast_install=no ;;
7538 *)
7539 enable_fast_install=no
7540 # Look at the argument we got. We use all the common list separators.
7541 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7542 for pkg in $enableval; do
7543 IFS=$lt_save_ifs
7544 if test "X$pkg" = "X$p"; then
7545 enable_fast_install=yes
7546 fi
7547 done
7548 IFS=$lt_save_ifs
7549 ;;
7550 esac
7551 else
7552 enable_fast_install=yes
7553 fi
7554
7555
7556
7557
7558
7559
7560
7561
7562 shared_archive_member_spec=
7563 case $host,$enable_shared in
7564 power*-*-aix[5-9]*,yes)
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7566 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7567
7568 # Check whether --with-aix-soname was given.
7569 if test "${with_aix_soname+set}" = set; then :
7570 withval=$with_aix_soname; case $withval in
7571 aix|svr4|both)
7572 ;;
7573 *)
7574 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7575 ;;
7576 esac
7577 lt_cv_with_aix_soname=$with_aix_soname
7578 else
7579 if ${lt_cv_with_aix_soname+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 lt_cv_with_aix_soname=aix
7583 fi
7584
7585 with_aix_soname=$lt_cv_with_aix_soname
7586 fi
7587
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7589 $as_echo "$with_aix_soname" >&6; }
7590 if test aix != "$with_aix_soname"; then
7591 # For the AIX way of multilib, we name the shared archive member
7592 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7593 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7594 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7595 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7596 if test 64 = "${OBJECT_MODE-32}"; then
7597 shared_archive_member_spec=shr_64
7598 else
7599 shared_archive_member_spec=shr
7600 fi
7601 fi
7602 ;;
7603 *)
7604 with_aix_soname=aix
7605 ;;
7606 esac
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617 # This can be used to rebuild libtool when needed
7618 LIBTOOL_DEPS=$ltmain
7619
7620 # Always use our own libtool.
7621 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652 test -z "$LN_S" && LN_S="ln -s"
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667 if test -n "${ZSH_VERSION+set}"; then
7668 setopt NO_GLOB_SUBST
7669 fi
7670
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7672 $as_echo_n "checking for objdir... " >&6; }
7673 if ${lt_cv_objdir+:} false; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 rm -f .libs 2>/dev/null
7677 mkdir .libs 2>/dev/null
7678 if test -d .libs; then
7679 lt_cv_objdir=.libs
7680 else
7681 # MS-DOS does not allow filenames that begin with a dot.
7682 lt_cv_objdir=_libs
7683 fi
7684 rmdir .libs 2>/dev/null
7685 fi
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7687 $as_echo "$lt_cv_objdir" >&6; }
7688 objdir=$lt_cv_objdir
7689
7690
7691
7692
7693
7694 cat >>confdefs.h <<_ACEOF
7695 #define LT_OBJDIR "$lt_cv_objdir/"
7696 _ACEOF
7697
7698
7699
7700
7701 case $host_os in
7702 aix3*)
7703 # AIX sometimes has problems with the GCC collect2 program. For some
7704 # reason, if we set the COLLECT_NAMES environment variable, the problems
7705 # vanish in a puff of smoke.
7706 if test set != "${COLLECT_NAMES+set}"; then
7707 COLLECT_NAMES=
7708 export COLLECT_NAMES
7709 fi
7710 ;;
7711 esac
7712
7713 # Global variables:
7714 ofile=libtool
7715 can_build_shared=yes
7716
7717 # All known linkers require a '.a' archive for static linking (except MSVC and
7718 # ICC, which need '.lib').
7719 libext=a
7720
7721 with_gnu_ld=$lt_cv_prog_gnu_ld
7722
7723 old_CC=$CC
7724 old_CFLAGS=$CFLAGS
7725
7726 # Set sane defaults for various variables
7727 test -z "$CC" && CC=cc
7728 test -z "$LTCC" && LTCC=$CC
7729 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7730 test -z "$LD" && LD=ld
7731 test -z "$ac_objext" && ac_objext=o
7732
7733 func_cc_basename $compiler
7734 cc_basename=$func_cc_basename_result
7735
7736
7737 # Only perform the check for file, if the check method requires it
7738 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7739 case $deplibs_check_method in
7740 file_magic*)
7741 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7743 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7744 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 case $MAGIC_CMD in
7748 [\\/*] | ?:[\\/]*)
7749 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7750 ;;
7751 *)
7752 lt_save_MAGIC_CMD=$MAGIC_CMD
7753 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7754 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7755 for ac_dir in $ac_dummy; do
7756 IFS=$lt_save_ifs
7757 test -z "$ac_dir" && ac_dir=.
7758 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7759 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7760 if test -n "$file_magic_test_file"; then
7761 case $deplibs_check_method in
7762 "file_magic "*)
7763 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7764 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7765 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7766 $EGREP "$file_magic_regex" > /dev/null; then
7767 :
7768 else
7769 cat <<_LT_EOF 1>&2
7770
7771 *** Warning: the command libtool uses to detect shared libraries,
7772 *** $file_magic_cmd, produces output that libtool cannot recognize.
7773 *** The result is that libtool may fail to recognize shared libraries
7774 *** as such. This will affect the creation of libtool libraries that
7775 *** depend on shared libraries, but programs linked with such libtool
7776 *** libraries will work regardless of this problem. Nevertheless, you
7777 *** may want to report the problem to your system manager and/or to
7778 *** [email protected]
7779
7780 _LT_EOF
7781 fi ;;
7782 esac
7783 fi
7784 break
7785 fi
7786 done
7787 IFS=$lt_save_ifs
7788 MAGIC_CMD=$lt_save_MAGIC_CMD
7789 ;;
7790 esac
7791 fi
7792
7793 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7794 if test -n "$MAGIC_CMD"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7796 $as_echo "$MAGIC_CMD" >&6; }
7797 else
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7800 fi
7801
7802
7803
7804
7805
7806 if test -z "$lt_cv_path_MAGIC_CMD"; then
7807 if test -n "$ac_tool_prefix"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7809 $as_echo_n "checking for file... " >&6; }
7810 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7811 $as_echo_n "(cached) " >&6
7812 else
7813 case $MAGIC_CMD in
7814 [\\/*] | ?:[\\/]*)
7815 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7816 ;;
7817 *)
7818 lt_save_MAGIC_CMD=$MAGIC_CMD
7819 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7820 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7821 for ac_dir in $ac_dummy; do
7822 IFS=$lt_save_ifs
7823 test -z "$ac_dir" && ac_dir=.
7824 if test -f "$ac_dir/file"; then
7825 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7826 if test -n "$file_magic_test_file"; then
7827 case $deplibs_check_method in
7828 "file_magic "*)
7829 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7830 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7831 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7832 $EGREP "$file_magic_regex" > /dev/null; then
7833 :
7834 else
7835 cat <<_LT_EOF 1>&2
7836
7837 *** Warning: the command libtool uses to detect shared libraries,
7838 *** $file_magic_cmd, produces output that libtool cannot recognize.
7839 *** The result is that libtool may fail to recognize shared libraries
7840 *** as such. This will affect the creation of libtool libraries that
7841 *** depend on shared libraries, but programs linked with such libtool
7842 *** libraries will work regardless of this problem. Nevertheless, you
7843 *** may want to report the problem to your system manager and/or to
7844 *** [email protected]
7845
7846 _LT_EOF
7847 fi ;;
7848 esac
7849 fi
7850 break
7851 fi
7852 done
7853 IFS=$lt_save_ifs
7854 MAGIC_CMD=$lt_save_MAGIC_CMD
7855 ;;
7856 esac
7857 fi
7858
7859 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7860 if test -n "$MAGIC_CMD"; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7862 $as_echo "$MAGIC_CMD" >&6; }
7863 else
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865 $as_echo "no" >&6; }
7866 fi
7867
7868
7869 else
7870 MAGIC_CMD=:
7871 fi
7872 fi
7873
7874 fi
7875 ;;
7876 esac
7877
7878 # Use C for the default configuration in the libtool script
7879
7880 lt_save_CC=$CC
7881 ac_ext=c
7882 ac_cpp='$CPP $CPPFLAGS'
7883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7886
7887
7888 # Source file extension for C test sources.
7889 ac_ext=c
7890
7891 # Object file extension for compiled C test sources.
7892 objext=o
7893 objext=$objext
7894
7895 # Code to be used in simple compile tests
7896 lt_simple_compile_test_code="int some_variable = 0;"
7897
7898 # Code to be used in simple link tests
7899 lt_simple_link_test_code='int main(){return(0);}'
7900
7901
7902
7903
7904
7905
7906
7907 # If no C compiler was specified, use CC.
7908 LTCC=${LTCC-"$CC"}
7909
7910 # If no C compiler flags were specified, use CFLAGS.
7911 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7912
7913 # Allow CC to be a program name with arguments.
7914 compiler=$CC
7915
7916 # Save the default compiler, since it gets overwritten when the other
7917 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7918 compiler_DEFAULT=$CC
7919
7920 # save warnings/boilerplate of simple test code
7921 ac_outfile=conftest.$ac_objext
7922 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7923 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7924 _lt_compiler_boilerplate=`cat conftest.err`
7925 $RM conftest*
7926
7927 ac_outfile=conftest.$ac_objext
7928 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7929 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7930 _lt_linker_boilerplate=`cat conftest.err`
7931 $RM -r conftest*
7932
7933
7934 if test -n "$compiler"; then
7935
7936 lt_prog_compiler_no_builtin_flag=
7937
7938 if test yes = "$GCC"; then
7939 case $cc_basename in
7940 nvcc*)
7941 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7942 *)
7943 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7944 esac
7945
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7947 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7948 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7949 $as_echo_n "(cached) " >&6
7950 else
7951 lt_cv_prog_compiler_rtti_exceptions=no
7952 ac_outfile=conftest.$ac_objext
7953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7954 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7955 # Insert the option either (1) after the last *FLAGS variable, or
7956 # (2) before a word containing "conftest.", or (3) at the end.
7957 # Note that $ac_compile itself does not contain backslashes and begins
7958 # with a dollar sign (not a hyphen), so the echo should work correctly.
7959 # The option is referenced via a variable to avoid confusing sed.
7960 lt_compile=`echo "$ac_compile" | $SED \
7961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7963 -e 's:$: $lt_compiler_flag:'`
7964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7965 (eval "$lt_compile" 2>conftest.err)
7966 ac_status=$?
7967 cat conftest.err >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 if (exit $ac_status) && test -s "$ac_outfile"; then
7970 # The compiler can only warn and ignore the option if not recognized
7971 # So say no if there are warnings other than the usual output.
7972 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7974 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7975 lt_cv_prog_compiler_rtti_exceptions=yes
7976 fi
7977 fi
7978 $RM conftest*
7979
7980 fi
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7982 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7983
7984 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7985 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7986 else
7987 :
7988 fi
7989
7990 fi
7991
7992
7993
7994
7995
7996
7997 lt_prog_compiler_wl=
7998 lt_prog_compiler_pic=
7999 lt_prog_compiler_static=
8000
8001
8002 if test yes = "$GCC"; then
8003 lt_prog_compiler_wl='-Wl,'
8004 lt_prog_compiler_static='-static'
8005
8006 case $host_os in
8007 aix*)
8008 # All AIX code is PIC.
8009 if test ia64 = "$host_cpu"; then
8010 # AIX 5 now supports IA64 processor
8011 lt_prog_compiler_static='-Bstatic'
8012 fi
8013 lt_prog_compiler_pic='-fPIC'
8014 ;;
8015
8016 amigaos*)
8017 case $host_cpu in
8018 powerpc)
8019 # see comment about AmigaOS4 .so support
8020 lt_prog_compiler_pic='-fPIC'
8021 ;;
8022 m68k)
8023 # FIXME: we need at least 68020 code to build shared libraries, but
8024 # adding the '-m68020' flag to GCC prevents building anything better,
8025 # like '-m68040'.
8026 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8027 ;;
8028 esac
8029 ;;
8030
8031 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8032 # PIC is the default for these OSes.
8033 ;;
8034
8035 mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
8036 # This hack is so that the source file can tell whether it is being
8037 # built for inclusion in a dll (and should export symbols for example).
8038 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8039 # (--disable-auto-import) libraries
8040 lt_prog_compiler_pic='-DDLL_EXPORT'
8041 case $host_os in
8042 os2*)
8043 lt_prog_compiler_static='$wl-static'
8044 ;;
8045 esac
8046 ;;
8047
8048 darwin* | rhapsody*)
8049 # PIC is the default on this platform
8050 # Common symbols not allowed in MH_DYLIB files
8051 lt_prog_compiler_pic='-fno-common'
8052 ;;
8053
8054 haiku*)
8055 # PIC is the default for Haiku.
8056 # The "-static" flag exists, but is broken.
8057 lt_prog_compiler_static=
8058 ;;
8059
8060 hpux*)
8061 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8062 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8063 # sets the default TLS model and affects inlining.
8064 case $host_cpu in
8065 hppa*64*)
8066 # +Z the default
8067 ;;
8068 *)
8069 lt_prog_compiler_pic='-fPIC'
8070 ;;
8071 esac
8072 ;;
8073
8074 interix[3-9]*)
8075 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8076 # Instead, we relocate shared libraries at runtime.
8077 ;;
8078
8079 msdosdjgpp*)
8080 # Just because we use GCC doesn't mean we suddenly get shared libraries
8081 # on systems that don't support them.
8082 lt_prog_compiler_can_build_shared=no
8083 enable_shared=no
8084 ;;
8085
8086 *nto* | *qnx*)
8087 # QNX uses GNU C++, but need to define -shared option too, otherwise
8088 # it will coredump.
8089 lt_prog_compiler_pic='-fPIC -shared'
8090 ;;
8091
8092 sysv4*MP*)
8093 if test -d /usr/nec; then
8094 lt_prog_compiler_pic=-Kconform_pic
8095 fi
8096 ;;
8097
8098 *)
8099 lt_prog_compiler_pic='-fPIC'
8100 ;;
8101 esac
8102
8103 case $cc_basename in
8104 nvcc*) # Cuda Compiler Driver 2.2
8105 lt_prog_compiler_wl='-Xlinker '
8106 if test -n "$lt_prog_compiler_pic"; then
8107 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8108 fi
8109 ;;
8110 esac
8111 else
8112 # PORTME Check for flag to pass linker flags through the system compiler.
8113 case $host_os in
8114 aix*)
8115 lt_prog_compiler_wl='-Wl,'
8116 if test ia64 = "$host_cpu"; then
8117 # AIX 5 now supports IA64 processor
8118 lt_prog_compiler_static='-Bstatic'
8119 else
8120 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8121 fi
8122 ;;
8123
8124 darwin* | rhapsody*)
8125 # PIC is the default on this platform
8126 # Common symbols not allowed in MH_DYLIB files
8127 lt_prog_compiler_pic='-fno-common'
8128 case $cc_basename in
8129 nagfor*)
8130 # NAG Fortran compiler
8131 lt_prog_compiler_wl='-Wl,-Wl,,'
8132 lt_prog_compiler_pic='-PIC'
8133 lt_prog_compiler_static='-Bstatic'
8134 ;;
8135 esac
8136 ;;
8137
8138 mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
8139 # This hack is so that the source file can tell whether it is being
8140 # built for inclusion in a dll (and should export symbols for example).
8141 lt_prog_compiler_pic='-DDLL_EXPORT'
8142 case $host_os in
8143 os2*)
8144 lt_prog_compiler_static='$wl-static'
8145 ;;
8146 esac
8147 ;;
8148
8149 hpux9* | hpux10* | hpux11*)
8150 lt_prog_compiler_wl='-Wl,'
8151 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8152 # not for PA HP-UX.
8153 case $host_cpu in
8154 hppa*64*|ia64*)
8155 # +Z the default
8156 ;;
8157 *)
8158 lt_prog_compiler_pic='+Z'
8159 ;;
8160 esac
8161 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8162 lt_prog_compiler_static='$wl-a ${wl}archive'
8163 ;;
8164
8165 irix5* | irix6* | nonstopux*)
8166 lt_prog_compiler_wl='-Wl,'
8167 # PIC (with -KPIC) is the default.
8168 lt_prog_compiler_static='-non_shared'
8169 ;;
8170
8171 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8172 case $cc_basename in
8173 # old Intel for x86_64, which still supported -KPIC.
8174 ecc*)
8175 lt_prog_compiler_wl='-Wl,'
8176 lt_prog_compiler_pic='-KPIC'
8177 lt_prog_compiler_static='-static'
8178 ;;
8179 # icc used to be incompatible with GCC.
8180 # ICC 10 doesn't accept -KPIC any more.
8181 icc* | ifort*)
8182 lt_prog_compiler_wl='-Wl,'
8183 lt_prog_compiler_pic='-fPIC'
8184 lt_prog_compiler_static='-static'
8185 ;;
8186 # Lahey Fortran 8.1.
8187 lf95*)
8188 lt_prog_compiler_wl='-Wl,'
8189 lt_prog_compiler_pic='--shared'
8190 lt_prog_compiler_static='--static'
8191 ;;
8192 nagfor*)
8193 # NAG Fortran compiler
8194 lt_prog_compiler_wl='-Wl,-Wl,,'
8195 lt_prog_compiler_pic='-PIC'
8196 lt_prog_compiler_static='-Bstatic'
8197 ;;
8198 tcc*)
8199 # Fabrice Bellard et al's Tiny C Compiler
8200 lt_prog_compiler_wl='-Wl,'
8201 lt_prog_compiler_pic='-fPIC'
8202 lt_prog_compiler_static='-static'
8203 ;;
8204 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8205 # Portland Group compilers (*not* the Pentium gcc compiler,
8206 # which looks to be a dead project)
8207 lt_prog_compiler_wl='-Wl,'
8208 lt_prog_compiler_pic='-fpic'
8209 lt_prog_compiler_static='-Bstatic'
8210 ;;
8211 ccc*)
8212 lt_prog_compiler_wl='-Wl,'
8213 # All Alpha code is PIC.
8214 lt_prog_compiler_static='-non_shared'
8215 ;;
8216 xl* | bgxl* | bgf* | mpixl*)
8217 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8218 lt_prog_compiler_wl='-Wl,'
8219 lt_prog_compiler_pic='-qpic'
8220 lt_prog_compiler_static='-qstaticlink'
8221 ;;
8222 *)
8223 case `$CC -V 2>&1 | $SED 5q` in
8224 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8225 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8226 lt_prog_compiler_pic='-KPIC'
8227 lt_prog_compiler_static='-Bstatic'
8228 lt_prog_compiler_wl=''
8229 ;;
8230 *Sun\ F* | *Sun*Fortran*)
8231 lt_prog_compiler_pic='-KPIC'
8232 lt_prog_compiler_static='-Bstatic'
8233 lt_prog_compiler_wl='-Qoption ld '
8234 ;;
8235 *Sun\ C*)
8236 # Sun C 5.9
8237 lt_prog_compiler_pic='-KPIC'
8238 lt_prog_compiler_static='-Bstatic'
8239 lt_prog_compiler_wl='-Wl,'
8240 ;;
8241 *Intel*\ [CF]*Compiler*)
8242 lt_prog_compiler_wl='-Wl,'
8243 lt_prog_compiler_pic='-fPIC'
8244 lt_prog_compiler_static='-static'
8245 ;;
8246 *Portland\ Group*)
8247 lt_prog_compiler_wl='-Wl,'
8248 lt_prog_compiler_pic='-fpic'
8249 lt_prog_compiler_static='-Bstatic'
8250 ;;
8251 esac
8252 ;;
8253 esac
8254 ;;
8255
8256 newsos6)
8257 lt_prog_compiler_pic='-KPIC'
8258 lt_prog_compiler_static='-Bstatic'
8259 ;;
8260
8261 *nto* | *qnx*)
8262 # QNX uses GNU C++, but need to define -shared option too, otherwise
8263 # it will coredump.
8264 lt_prog_compiler_pic='-fPIC -shared'
8265 ;;
8266
8267 osf3* | osf4* | osf5*)
8268 lt_prog_compiler_wl='-Wl,'
8269 # All OSF/1 code is PIC.
8270 lt_prog_compiler_static='-non_shared'
8271 ;;
8272
8273 rdos*)
8274 lt_prog_compiler_static='-non_shared'
8275 ;;
8276
8277 solaris*)
8278 lt_prog_compiler_pic='-KPIC'
8279 lt_prog_compiler_static='-Bstatic'
8280 case $cc_basename in
8281 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8282 lt_prog_compiler_wl='-Qoption ld ';;
8283 *)
8284 lt_prog_compiler_wl='-Wl,';;
8285 esac
8286 ;;
8287
8288 sunos4*)
8289 lt_prog_compiler_wl='-Qoption ld '
8290 lt_prog_compiler_pic='-PIC'
8291 lt_prog_compiler_static='-Bstatic'
8292 ;;
8293
8294 sysv4 | sysv4.2uw2* | sysv4.3*)
8295 lt_prog_compiler_wl='-Wl,'
8296 lt_prog_compiler_pic='-KPIC'
8297 lt_prog_compiler_static='-Bstatic'
8298 ;;
8299
8300 sysv4*MP*)
8301 if test -d /usr/nec; then
8302 lt_prog_compiler_pic='-Kconform_pic'
8303 lt_prog_compiler_static='-Bstatic'
8304 fi
8305 ;;
8306
8307 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8308 lt_prog_compiler_wl='-Wl,'
8309 lt_prog_compiler_pic='-KPIC'
8310 lt_prog_compiler_static='-Bstatic'
8311 ;;
8312
8313 unicos*)
8314 lt_prog_compiler_wl='-Wl,'
8315 lt_prog_compiler_can_build_shared=no
8316 ;;
8317
8318 uts4*)
8319 lt_prog_compiler_pic='-pic'
8320 lt_prog_compiler_static='-Bstatic'
8321 ;;
8322
8323 *)
8324 lt_prog_compiler_can_build_shared=no
8325 ;;
8326 esac
8327 fi
8328
8329 case $host_os in
8330 # For platforms that do not support PIC, -DPIC is meaningless:
8331 *djgpp*)
8332 lt_prog_compiler_pic=
8333 ;;
8334 *)
8335 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8336 ;;
8337 esac
8338
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8340 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8341 if ${lt_cv_prog_compiler_pic+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343 else
8344 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8345 fi
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8347 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8348 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8349
8350 #
8351 # Check to make sure the PIC flag actually works.
8352 #
8353 if test -n "$lt_prog_compiler_pic"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8355 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8356 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8357 $as_echo_n "(cached) " >&6
8358 else
8359 lt_cv_prog_compiler_pic_works=no
8360 ac_outfile=conftest.$ac_objext
8361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8362 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8363 # Insert the option either (1) after the last *FLAGS variable, or
8364 # (2) before a word containing "conftest.", or (3) at the end.
8365 # Note that $ac_compile itself does not contain backslashes and begins
8366 # with a dollar sign (not a hyphen), so the echo should work correctly.
8367 # The option is referenced via a variable to avoid confusing sed.
8368 lt_compile=`echo "$ac_compile" | $SED \
8369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8371 -e 's:$: $lt_compiler_flag:'`
8372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8373 (eval "$lt_compile" 2>conftest.err)
8374 ac_status=$?
8375 cat conftest.err >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 if (exit $ac_status) && test -s "$ac_outfile"; then
8378 # The compiler can only warn and ignore the option if not recognized
8379 # So say no if there are warnings other than the usual output.
8380 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8382 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8383 lt_cv_prog_compiler_pic_works=yes
8384 fi
8385 fi
8386 $RM conftest*
8387
8388 fi
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8390 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8391
8392 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8393 case $lt_prog_compiler_pic in
8394 "" | " "*) ;;
8395 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8396 esac
8397 else
8398 lt_prog_compiler_pic=
8399 lt_prog_compiler_can_build_shared=no
8400 fi
8401
8402 fi
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414 #
8415 # Check to make sure the static flag actually works.
8416 #
8417 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8419 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8420 if ${lt_cv_prog_compiler_static_works+:} false; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 lt_cv_prog_compiler_static_works=no
8424 save_LDFLAGS=$LDFLAGS
8425 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8426 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8427 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8428 # The linker can only warn and ignore the option if not recognized
8429 # So say no if there are warnings
8430 if test -s conftest.err; then
8431 # Append any errors to the config.log.
8432 cat conftest.err 1>&5
8433 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8435 if diff conftest.exp conftest.er2 >/dev/null; then
8436 lt_cv_prog_compiler_static_works=yes
8437 fi
8438 else
8439 lt_cv_prog_compiler_static_works=yes
8440 fi
8441 fi
8442 $RM -r conftest*
8443 LDFLAGS=$save_LDFLAGS
8444
8445 fi
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8447 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8448
8449 if test yes = "$lt_cv_prog_compiler_static_works"; then
8450 :
8451 else
8452 lt_prog_compiler_static=
8453 fi
8454
8455
8456
8457
8458
8459
8460
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8462 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8463 if ${lt_cv_prog_compiler_c_o+:} false; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 lt_cv_prog_compiler_c_o=no
8467 $RM -r conftest 2>/dev/null
8468 mkdir conftest
8469 cd conftest
8470 mkdir out
8471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8472
8473 lt_compiler_flag="-o out/conftest2.$ac_objext"
8474 # Insert the option either (1) after the last *FLAGS variable, or
8475 # (2) before a word containing "conftest.", or (3) at the end.
8476 # Note that $ac_compile itself does not contain backslashes and begins
8477 # with a dollar sign (not a hyphen), so the echo should work correctly.
8478 lt_compile=`echo "$ac_compile" | $SED \
8479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8481 -e 's:$: $lt_compiler_flag:'`
8482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8483 (eval "$lt_compile" 2>out/conftest.err)
8484 ac_status=$?
8485 cat out/conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8488 then
8489 # The compiler can only warn and ignore the option if not recognized
8490 # So say no if there are warnings
8491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8492 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8493 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8494 lt_cv_prog_compiler_c_o=yes
8495 fi
8496 fi
8497 chmod u+w . 2>&5
8498 $RM conftest*
8499 # SGI C++ compiler will create directory out/ii_files/ for
8500 # template instantiation
8501 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8502 $RM out/* && rmdir out
8503 cd ..
8504 $RM -r conftest
8505 $RM conftest*
8506
8507 fi
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8509 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8510
8511
8512
8513
8514
8515
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8517 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8518 if ${lt_cv_prog_compiler_c_o+:} false; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 lt_cv_prog_compiler_c_o=no
8522 $RM -r conftest 2>/dev/null
8523 mkdir conftest
8524 cd conftest
8525 mkdir out
8526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8527
8528 lt_compiler_flag="-o out/conftest2.$ac_objext"
8529 # Insert the option either (1) after the last *FLAGS variable, or
8530 # (2) before a word containing "conftest.", or (3) at the end.
8531 # Note that $ac_compile itself does not contain backslashes and begins
8532 # with a dollar sign (not a hyphen), so the echo should work correctly.
8533 lt_compile=`echo "$ac_compile" | $SED \
8534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8536 -e 's:$: $lt_compiler_flag:'`
8537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8538 (eval "$lt_compile" 2>out/conftest.err)
8539 ac_status=$?
8540 cat out/conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8543 then
8544 # The compiler can only warn and ignore the option if not recognized
8545 # So say no if there are warnings
8546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8547 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8548 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8549 lt_cv_prog_compiler_c_o=yes
8550 fi
8551 fi
8552 chmod u+w . 2>&5
8553 $RM conftest*
8554 # SGI C++ compiler will create directory out/ii_files/ for
8555 # template instantiation
8556 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8557 $RM out/* && rmdir out
8558 cd ..
8559 $RM -r conftest
8560 $RM conftest*
8561
8562 fi
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8564 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8565
8566
8567
8568
8569 hard_links=nottested
8570 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8571 # do not overwrite the value of need_locks provided by the user
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8573 $as_echo_n "checking if we can lock with hard links... " >&6; }
8574 hard_links=yes
8575 $RM conftest*
8576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8577 touch conftest.a
8578 ln conftest.a conftest.b 2>&5 || hard_links=no
8579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8581 $as_echo "$hard_links" >&6; }
8582 if test no = "$hard_links"; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8584 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8585 need_locks=warn
8586 fi
8587 else
8588 need_locks=no
8589 fi
8590
8591
8592
8593
8594
8595
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8597 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8598
8599 runpath_var=
8600 allow_undefined_flag=
8601 always_export_symbols=no
8602 archive_cmds=
8603 archive_expsym_cmds=
8604 compiler_needs_object=no
8605 enable_shared_with_static_runtimes=no
8606 export_dynamic_flag_spec=
8607 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8608 hardcode_automatic=no
8609 hardcode_direct=no
8610 hardcode_direct_absolute=no
8611 hardcode_libdir_flag_spec=
8612 hardcode_libdir_separator=
8613 hardcode_minus_L=no
8614 hardcode_shlibpath_var=unsupported
8615 inherit_rpath=no
8616 link_all_deplibs=unknown
8617 module_cmds=
8618 module_expsym_cmds=
8619 old_archive_from_new_cmds=
8620 old_archive_from_expsyms_cmds=
8621 thread_safe_flag_spec=
8622 whole_archive_flag_spec=
8623 # include_expsyms should be a list of space-separated symbols to be *always*
8624 # included in the symbol list
8625 include_expsyms=
8626 # exclude_expsyms can be an extended regexp of symbols to exclude
8627 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8628 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8629 # as well as any symbol that contains 'd'.
8630 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8631 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8632 # platforms (ab)use it in PIC code, but their linkers get confused if
8633 # the symbol is explicitly referenced. Since portable code cannot
8634 # rely on this symbol name, it's probably fine to never include it in
8635 # preloaded symbol tables.
8636 # Exclude shared library initialization/finalization symbols.
8637 extract_expsyms_cmds=
8638
8639 case $host_os in
8640 cygwin* | msys* | mingw* | pw32* | cegcc*)
8641 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
8642 # When not using gcc, we currently assume that we are using
8643 # Microsoft Visual C++ or Intel C++ Compiler.
8644 if test yes != "$GCC"; then
8645 with_gnu_ld=no
8646 fi
8647 ;;
8648 interix*)
8649 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
8650 with_gnu_ld=yes
8651 ;;
8652 openbsd* | bitrig*)
8653 with_gnu_ld=no
8654 ;;
8655 esac
8656
8657 ld_shlibs=yes
8658
8659 # On some targets, GNU ld is compatible enough with the native linker
8660 # that we're better off using the native interface for both.
8661 lt_use_gnu_ld_interface=no
8662 if test yes = "$with_gnu_ld"; then
8663 case $host_os in
8664 aix*)
8665 # The AIX port of GNU ld has always aspired to compatibility
8666 # with the native linker. However, as the warning in the GNU ld
8667 # block says, versions before 2.19.5* couldn't really create working
8668 # shared libraries, regardless of the interface used.
8669 case `$LD -v 2>&1` in
8670 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8671 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8672 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8673 *)
8674 lt_use_gnu_ld_interface=yes
8675 ;;
8676 esac
8677 ;;
8678 *)
8679 lt_use_gnu_ld_interface=yes
8680 ;;
8681 esac
8682 fi
8683
8684 if test yes = "$lt_use_gnu_ld_interface"; then
8685 # If archive_cmds runs LD, not CC, wlarc should be empty
8686 wlarc='$wl'
8687
8688 # Set some defaults for GNU ld with shared library support. These
8689 # are reset later if shared libraries are not supported. Putting them
8690 # here allows them to be overridden if necessary.
8691 runpath_var=LD_RUN_PATH
8692 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8693 export_dynamic_flag_spec='$wl--export-dynamic'
8694 # ancient GNU ld didn't support --whole-archive et. al.
8695 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8696 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8697 else
8698 whole_archive_flag_spec=
8699 fi
8700 supports_anon_versioning=no
8701 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
8702 *GNU\ gold*) supports_anon_versioning=yes ;;
8703 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8704 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8705 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8706 *\ 2.11.*) ;; # other 2.11 versions
8707 *) supports_anon_versioning=yes ;;
8708 esac
8709
8710 # See if GNU ld supports shared libraries.
8711 case $host_os in
8712 aix[3-9]*)
8713 # On AIX/PPC, the GNU linker is very broken
8714 if test ia64 != "$host_cpu"; then
8715 ld_shlibs=no
8716 cat <<_LT_EOF 1>&2
8717
8718 *** Warning: the GNU linker, at least up to release 2.19, is reported
8719 *** to be unable to reliably create shared libraries on AIX.
8720 *** Therefore, libtool is disabling shared libraries support. If you
8721 *** really care for shared libraries, you may want to install binutils
8722 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8723 *** You will then need to restart the configuration process.
8724
8725 _LT_EOF
8726 fi
8727 ;;
8728
8729 amigaos*)
8730 case $host_cpu in
8731 powerpc)
8732 # see comment about AmigaOS4 .so support
8733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8734 archive_expsym_cmds=''
8735 ;;
8736 m68k)
8737 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)'
8738 hardcode_libdir_flag_spec='-L$libdir'
8739 hardcode_minus_L=yes
8740 ;;
8741 esac
8742 ;;
8743
8744 beos*)
8745 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8746 allow_undefined_flag=unsupported
8747 # Joseph Beckenbach <[email protected]> says some releases of gcc
8748 # support --undefined. This deserves some investigation. FIXME
8749 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8750 else
8751 ld_shlibs=no
8752 fi
8753 ;;
8754
8755 cygwin* | msys* | mingw* | pw32* | cegcc*)
8756 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8757 # as there is no search path for DLLs.
8758 hardcode_libdir_flag_spec='-L$libdir'
8759 export_dynamic_flag_spec='$wl--export-all-symbols'
8760 allow_undefined_flag=unsupported
8761 always_export_symbols=no
8762 enable_shared_with_static_runtimes=yes
8763 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'
8764 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8765
8766 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8768 # If the export-symbols file already is a .def file, use it as
8769 # is; otherwise, prepend EXPORTS...
8770 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8771 cp $export_symbols $output_objdir/$soname.def;
8772 else
8773 echo EXPORTS > $output_objdir/$soname.def;
8774 cat $export_symbols >> $output_objdir/$soname.def;
8775 fi~
8776 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8777 else
8778 ld_shlibs=no
8779 fi
8780 ;;
8781
8782 haiku*)
8783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8784 link_all_deplibs=yes
8785 ;;
8786
8787 os2*)
8788 hardcode_libdir_flag_spec='-L$libdir'
8789 hardcode_minus_L=yes
8790 allow_undefined_flag=unsupported
8791 shrext_cmds=.dll
8792 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8793 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8794 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8795 $ECHO EXPORTS >> $output_objdir/$libname.def~
8796 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8797 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8798 emximp -o $lib $output_objdir/$libname.def'
8799 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8800 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8801 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8802 $ECHO EXPORTS >> $output_objdir/$libname.def~
8803 prefix_cmds="$SED"~
8804 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8805 prefix_cmds="$prefix_cmds -e 1d";
8806 fi~
8807 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8808 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8809 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8810 emximp -o $lib $output_objdir/$libname.def'
8811 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8812 enable_shared_with_static_runtimes=yes
8813 file_list_spec='@'
8814 ;;
8815
8816 interix[3-9]*)
8817 hardcode_direct=no
8818 hardcode_shlibpath_var=no
8819 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8820 export_dynamic_flag_spec='$wl-E'
8821 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8822 # Instead, shared libraries are loaded at an image base (0x10000000 by
8823 # default) and relocated if they conflict, which is a slow very memory
8824 # consuming and fragmenting process. To avoid this, we pick a random,
8825 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8826 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8827 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8828 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'
8829 ;;
8830
8831 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8832 tmp_diet=no
8833 if test linux-dietlibc = "$host_os"; then
8834 case $cc_basename in
8835 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8836 esac
8837 fi
8838 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8839 && test no = "$tmp_diet"
8840 then
8841 tmp_addflag=' $pic_flag'
8842 tmp_sharedflag='-shared'
8843 case $cc_basename,$host_cpu in
8844 pgcc*) # Portland Group C compiler
8845 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'
8846 tmp_addflag=' $pic_flag'
8847 ;;
8848 pgf77* | pgf90* | pgf95* | pgfortran*)
8849 # Portland Group f77 and f90 compilers
8850 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'
8851 tmp_addflag=' $pic_flag -Mnomain' ;;
8852 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8853 tmp_addflag=' -i_dynamic' ;;
8854 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8855 tmp_addflag=' -i_dynamic -nofor_main' ;;
8856 ifc* | ifort*) # Intel Fortran compiler
8857 tmp_addflag=' -nofor_main' ;;
8858 lf95*) # Lahey Fortran 8.1
8859 whole_archive_flag_spec=
8860 tmp_sharedflag='--shared' ;;
8861 nagfor*) # NAGFOR 5.3
8862 tmp_sharedflag='-Wl,-shared' ;;
8863 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8864 tmp_sharedflag='-qmkshrobj'
8865 tmp_addflag= ;;
8866 nvcc*) # Cuda Compiler Driver 2.2
8867 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'
8868 compiler_needs_object=yes
8869 ;;
8870 esac
8871 case `$CC -V 2>&1 | $SED 5q` in
8872 *Sun\ C*) # Sun C 5.9
8873 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'
8874 compiler_needs_object=yes
8875 tmp_sharedflag='-G' ;;
8876 *Sun\ F*) # Sun Fortran 8.3
8877 tmp_sharedflag='-G' ;;
8878 esac
8879 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8880
8881 if test yes = "$supports_anon_versioning"; then
8882 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8883 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8884 echo "local: *; };" >> $output_objdir/$libname.ver~
8885 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8886 fi
8887
8888 case $cc_basename in
8889 tcc*)
8890 export_dynamic_flag_spec='-rdynamic'
8891 ;;
8892 xlf* | bgf* | bgxlf* | mpixlf*)
8893 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8894 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8895 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8896 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8897 if test yes = "$supports_anon_versioning"; then
8898 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8899 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8900 echo "local: *; };" >> $output_objdir/$libname.ver~
8901 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8902 fi
8903 ;;
8904 esac
8905 else
8906 ld_shlibs=no
8907 fi
8908 ;;
8909
8910 netbsd*)
8911 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8912 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8913 wlarc=
8914 else
8915 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8916 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8917 fi
8918 ;;
8919
8920 solaris*)
8921 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8922 ld_shlibs=no
8923 cat <<_LT_EOF 1>&2
8924
8925 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8926 *** create shared libraries on Solaris systems. Therefore, libtool
8927 *** is disabling shared libraries support. We urge you to upgrade GNU
8928 *** binutils to release 2.9.1 or newer. Another option is to modify
8929 *** your PATH or compiler configuration so that the native linker is
8930 *** used, and then restart.
8931
8932 _LT_EOF
8933 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8934 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8935 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8936 else
8937 ld_shlibs=no
8938 fi
8939 ;;
8940
8941 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8942 case `$LD -v 2>&1` in
8943 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8944 ld_shlibs=no
8945 cat <<_LT_EOF 1>&2
8946
8947 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8948 *** reliably create shared libraries on SCO systems. Therefore, libtool
8949 *** is disabling shared libraries support. We urge you to upgrade GNU
8950 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8951 *** your PATH or compiler configuration so that the native linker is
8952 *** used, and then restart.
8953
8954 _LT_EOF
8955 ;;
8956 *)
8957 # For security reasons, it is highly recommended that you always
8958 # use absolute paths for naming shared libraries, and exclude the
8959 # DT_RUNPATH tag from executables and libraries. But doing so
8960 # requires that you compile everything twice, which is a pain.
8961 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8962 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8964 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8965 else
8966 ld_shlibs=no
8967 fi
8968 ;;
8969 esac
8970 ;;
8971
8972 sunos4*)
8973 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8974 wlarc=
8975 hardcode_direct=yes
8976 hardcode_shlibpath_var=no
8977 ;;
8978
8979 *)
8980 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8981 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8982 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8983 else
8984 ld_shlibs=no
8985 fi
8986 ;;
8987 esac
8988
8989 if test no = "$ld_shlibs"; then
8990 runpath_var=
8991 hardcode_libdir_flag_spec=
8992 export_dynamic_flag_spec=
8993 whole_archive_flag_spec=
8994 fi
8995 else
8996 # PORTME fill in a description of your system's linker (not GNU ld)
8997 case $host_os in
8998 aix3*)
8999 allow_undefined_flag=unsupported
9000 always_export_symbols=yes
9001 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'
9002 # Note: this linker hardcodes the directories in LIBPATH if there
9003 # are no directories specified by -L.
9004 hardcode_minus_L=yes
9005 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9006 # Neither direct hardcoding nor static linking is supported with a
9007 # broken collect2.
9008 hardcode_direct=unsupported
9009 fi
9010 ;;
9011
9012 aix[4-9]*)
9013 if test ia64 = "$host_cpu"; then
9014 # On IA64, the linker does run time linking by default, so we don't
9015 # have to do anything special.
9016 aix_use_runtimelinking=no
9017 exp_sym_flag='-Bexport'
9018 no_entry_flag=
9019 else
9020 # If we're using GNU nm, then we don't want the "-C" option.
9021 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9022 # Without the "-l" option, or with the "-B" option, AIX nm treats
9023 # weak defined symbols like other global defined symbols, whereas
9024 # GNU nm marks them as "W".
9025 # While the 'weak' keyword is ignored in the Export File, we need
9026 # it in the Import File for the 'aix-soname' feature, so we have
9027 # to replace the "-B" option with "-P" for AIX nm.
9028 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9029 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'
9030 else
9031 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9032 fi
9033 aix_use_runtimelinking=no
9034
9035 # Test if we are trying to use run time linking or normal
9036 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9037 # have runtime linking enabled, and use it for executables.
9038 # For shared libraries, we enable/disable runtime linking
9039 # depending on the kind of the shared library created -
9040 # when "with_aix_soname,aix_use_runtimelinking" is:
9041 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9042 # "aix,yes" lib.so shared, rtl:yes, for executables
9043 # lib.a static archive
9044 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9045 # lib.a(lib.so.V) shared, rtl:no, for executables
9046 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9047 # lib.a(lib.so.V) shared, rtl:no
9048 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9049 # lib.a static archive
9050 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9051 for ld_flag in $LDFLAGS; do
9052 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9053 aix_use_runtimelinking=yes
9054 break
9055 fi
9056 done
9057 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9058 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9059 # so we don't have lib.a shared libs to link our executables.
9060 # We have to force runtime linking in this case.
9061 aix_use_runtimelinking=yes
9062 LDFLAGS="$LDFLAGS -Wl,-brtl"
9063 fi
9064 ;;
9065 esac
9066
9067 exp_sym_flag='-bexport'
9068 no_entry_flag='-bnoentry'
9069 fi
9070
9071 # When large executables or shared objects are built, AIX ld can
9072 # have problems creating the table of contents. If linking a library
9073 # or program results in "error TOC overflow" add -mminimal-toc to
9074 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9075 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9076
9077 archive_cmds=''
9078 hardcode_direct=yes
9079 hardcode_direct_absolute=yes
9080 hardcode_libdir_separator=':'
9081 link_all_deplibs=yes
9082 file_list_spec='$wl-f,'
9083 case $with_aix_soname,$aix_use_runtimelinking in
9084 aix,*) ;; # traditional, no import file
9085 svr4,* | *,yes) # use import file
9086 # The Import File defines what to hardcode.
9087 hardcode_direct=no
9088 hardcode_direct_absolute=no
9089 ;;
9090 esac
9091
9092 if test yes = "$GCC"; then
9093 case $host_os in aix4.[012]|aix4.[012].*)
9094 # We only want to do this on AIX 4.2 and lower, the check
9095 # below for broken collect2 doesn't work under 4.3+
9096 collect2name=`$CC -print-prog-name=collect2`
9097 if test -f "$collect2name" &&
9098 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9099 then
9100 # We have reworked collect2
9101 :
9102 else
9103 # We have old collect2
9104 hardcode_direct=unsupported
9105 # It fails to find uninstalled libraries when the uninstalled
9106 # path is not listed in the libpath. Setting hardcode_minus_L
9107 # to unsupported forces relinking
9108 hardcode_minus_L=yes
9109 hardcode_libdir_flag_spec='-L$libdir'
9110 hardcode_libdir_separator=
9111 fi
9112 ;;
9113 esac
9114 shared_flag='-shared'
9115 if test yes = "$aix_use_runtimelinking"; then
9116 shared_flag="$shared_flag "'$wl-G'
9117 fi
9118 # Need to ensure runtime linking is disabled for the traditional
9119 # shared library, or the linker may eventually find shared libraries
9120 # /with/ Import File - we do not want to mix them.
9121 shared_flag_aix='-shared'
9122 shared_flag_svr4='-shared $wl-G'
9123 else
9124 # not using gcc
9125 if test ia64 = "$host_cpu"; then
9126 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9127 # chokes on -Wl,-G. The following line is correct:
9128 shared_flag='-G'
9129 else
9130 if test yes = "$aix_use_runtimelinking"; then
9131 shared_flag='$wl-G'
9132 else
9133 shared_flag='$wl-bM:SRE'
9134 fi
9135 shared_flag_aix='$wl-bM:SRE'
9136 shared_flag_svr4='$wl-G'
9137 fi
9138 fi
9139
9140 export_dynamic_flag_spec='$wl-bexpall'
9141 # It seems that -bexpall does not export symbols beginning with
9142 # underscore (_), so it is better to generate a list of symbols to export.
9143 always_export_symbols=yes
9144 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9145 # Warning - without using the other runtime loading flags (-brtl),
9146 # -berok will link without error, but may produce a broken library.
9147 allow_undefined_flag='-berok'
9148 # Determine the default libpath from the value encoded in an
9149 # empty executable.
9150 if test set = "${lt_cv_aix_libpath+set}"; then
9151 aix_libpath=$lt_cv_aix_libpath
9152 else
9153 if ${lt_cv_aix_libpath_+:} false; then :
9154 $as_echo_n "(cached) " >&6
9155 else
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158
9159 int
9160 main ()
9161 {
9162
9163 ;
9164 return 0;
9165 }
9166 _ACEOF
9167 if ac_fn_c_try_link "$LINENO"; then :
9168
9169 lt_aix_libpath_sed='
9170 /Import File Strings/,/^$/ {
9171 /^0/ {
9172 s/^0 *\([^ ]*\) *$/\1/
9173 p
9174 }
9175 }'
9176 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9177 # Check for a 64-bit object if we didn't find anything.
9178 if test -z "$lt_cv_aix_libpath_"; then
9179 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9180 fi
9181 fi
9182 rm -f core conftest.err conftest.$ac_objext \
9183 conftest$ac_exeext conftest.$ac_ext
9184 if test -z "$lt_cv_aix_libpath_"; then
9185 lt_cv_aix_libpath_=/usr/lib:/lib
9186 fi
9187
9188 fi
9189
9190 aix_libpath=$lt_cv_aix_libpath_
9191 fi
9192
9193 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9194 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
9195 else
9196 if test ia64 = "$host_cpu"; then
9197 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9198 allow_undefined_flag="-z nodefs"
9199 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"
9200 else
9201 # Determine the default libpath from the value encoded in an
9202 # empty executable.
9203 if test set = "${lt_cv_aix_libpath+set}"; then
9204 aix_libpath=$lt_cv_aix_libpath
9205 else
9206 if ${lt_cv_aix_libpath_+:} false; then :
9207 $as_echo_n "(cached) " >&6
9208 else
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9211
9212 int
9213 main ()
9214 {
9215
9216 ;
9217 return 0;
9218 }
9219 _ACEOF
9220 if ac_fn_c_try_link "$LINENO"; then :
9221
9222 lt_aix_libpath_sed='
9223 /Import File Strings/,/^$/ {
9224 /^0/ {
9225 s/^0 *\([^ ]*\) *$/\1/
9226 p
9227 }
9228 }'
9229 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9230 # Check for a 64-bit object if we didn't find anything.
9231 if test -z "$lt_cv_aix_libpath_"; then
9232 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9233 fi
9234 fi
9235 rm -f core conftest.err conftest.$ac_objext \
9236 conftest$ac_exeext conftest.$ac_ext
9237 if test -z "$lt_cv_aix_libpath_"; then
9238 lt_cv_aix_libpath_=/usr/lib:/lib
9239 fi
9240
9241 fi
9242
9243 aix_libpath=$lt_cv_aix_libpath_
9244 fi
9245
9246 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9247 # Warning - without using the other run time loading flags,
9248 # -berok will link without error, but may produce a broken library.
9249 no_undefined_flag=' $wl-bernotok'
9250 allow_undefined_flag=' $wl-berok'
9251 if test yes = "$with_gnu_ld"; then
9252 # We only use this code for GNU lds that support --whole-archive.
9253 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9254 else
9255 # Exported symbols can be pulled into shared objects from archives
9256 whole_archive_flag_spec='$convenience'
9257 fi
9258 archive_cmds_need_lc=yes
9259 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9260 # -brtl affects multiple linker settings, -berok does not and is overridden later
9261 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9262 if test svr4 != "$with_aix_soname"; then
9263 # This is similar to how AIX traditionally builds its shared libraries.
9264 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'
9265 fi
9266 if test aix != "$with_aix_soname"; then
9267 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'
9268 else
9269 # used by -dlpreopen to get the symbols
9270 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9271 fi
9272 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9273 fi
9274 fi
9275 ;;
9276
9277 amigaos*)
9278 case $host_cpu in
9279 powerpc)
9280 # see comment about AmigaOS4 .so support
9281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9282 archive_expsym_cmds=''
9283 ;;
9284 m68k)
9285 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)'
9286 hardcode_libdir_flag_spec='-L$libdir'
9287 hardcode_minus_L=yes
9288 ;;
9289 esac
9290 ;;
9291
9292 bsdi[45]*)
9293 export_dynamic_flag_spec=-rdynamic
9294 ;;
9295
9296 cygwin* | msys* | mingw* | pw32* | cegcc*)
9297 # When not using gcc, we currently assume that we are using
9298 # Microsoft Visual C++ or Intel C++ Compiler.
9299 # hardcode_libdir_flag_spec is actually meaningless, as there is
9300 # no search path for DLLs.
9301 case $cc_basename in
9302 cl* | icl*)
9303 # Native MSVC or ICC
9304 hardcode_libdir_flag_spec=' '
9305 allow_undefined_flag=unsupported
9306 always_export_symbols=yes
9307 file_list_spec='@'
9308 # Tell ltmain to make .lib files, not .a files.
9309 libext=lib
9310 # Tell ltmain to make .dll files, not .so files.
9311 shrext_cmds=.dll
9312 # FIXME: Setting linknames here is a bad hack.
9313 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9314 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9315 cp "$export_symbols" "$output_objdir/$soname.def";
9316 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9317 else
9318 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9319 fi~
9320 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9321 linknames='
9322 # The linker will not automatically build a static lib if we build a DLL.
9323 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9324 enable_shared_with_static_runtimes=yes
9325 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9326 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9327 # Don't use ranlib
9328 old_postinstall_cmds='chmod 644 $oldlib'
9329 postlink_cmds='lt_outputfile="@OUTPUT@"~
9330 lt_tool_outputfile="@TOOL_OUTPUT@"~
9331 case $lt_outputfile in
9332 *.exe|*.EXE) ;;
9333 *)
9334 lt_outputfile=$lt_outputfile.exe
9335 lt_tool_outputfile=$lt_tool_outputfile.exe
9336 ;;
9337 esac~
9338 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9339 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9340 $RM "$lt_outputfile.manifest";
9341 fi'
9342 ;;
9343 *)
9344 # Assume MSVC and ICC wrapper
9345 hardcode_libdir_flag_spec=' '
9346 allow_undefined_flag=unsupported
9347 # Tell ltmain to make .lib files, not .a files.
9348 libext=lib
9349 # Tell ltmain to make .dll files, not .so files.
9350 shrext_cmds=.dll
9351 # FIXME: Setting linknames here is a bad hack.
9352 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9353 # The linker will automatically build a .lib file if we build a DLL.
9354 old_archive_from_new_cmds='true'
9355 # FIXME: Should let the user specify the lib program.
9356 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9357 enable_shared_with_static_runtimes=yes
9358 ;;
9359 esac
9360 ;;
9361
9362 darwin* | rhapsody*)
9363
9364
9365 archive_cmds_need_lc=no
9366 hardcode_direct=no
9367 hardcode_automatic=yes
9368 hardcode_shlibpath_var=unsupported
9369 if test yes = "$lt_cv_ld_force_load"; then
9370 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\"`'
9371
9372 else
9373 whole_archive_flag_spec=''
9374 fi
9375 link_all_deplibs=yes
9376 allow_undefined_flag=$_lt_dar_allow_undefined
9377 case $cc_basename in
9378 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9379 *) _lt_dar_can_shared=$GCC ;;
9380 esac
9381 if test yes = "$_lt_dar_can_shared"; then
9382 output_verbose_link_cmd=func_echo_all
9383 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9384 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9385 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"
9386 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"
9387
9388 else
9389 ld_shlibs=no
9390 fi
9391
9392 ;;
9393
9394 dgux*)
9395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 hardcode_libdir_flag_spec='-L$libdir'
9397 hardcode_shlibpath_var=no
9398 ;;
9399
9400 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9401 # support. Future versions do this automatically, but an explicit c++rt0.o
9402 # does not break anything, and helps significantly (at the cost of a little
9403 # extra space).
9404 freebsd2.2*)
9405 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9406 hardcode_libdir_flag_spec='-R$libdir'
9407 hardcode_direct=yes
9408 hardcode_shlibpath_var=no
9409 ;;
9410
9411 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9412 freebsd2.*)
9413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9414 hardcode_direct=yes
9415 hardcode_minus_L=yes
9416 hardcode_shlibpath_var=no
9417 ;;
9418
9419 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9420 freebsd* | dragonfly* | midnightbsd*)
9421 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9422 hardcode_libdir_flag_spec='-R$libdir'
9423 hardcode_direct=yes
9424 hardcode_shlibpath_var=no
9425 ;;
9426
9427 hpux9*)
9428 if test yes = "$GCC"; then
9429 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'
9430 else
9431 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'
9432 fi
9433 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9434 hardcode_libdir_separator=:
9435 hardcode_direct=yes
9436
9437 # hardcode_minus_L: Not really in the search PATH,
9438 # but as the default location of the library.
9439 hardcode_minus_L=yes
9440 export_dynamic_flag_spec='$wl-E'
9441 ;;
9442
9443 hpux10*)
9444 if test yes,no = "$GCC,$with_gnu_ld"; then
9445 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9446 else
9447 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9448 fi
9449 if test no = "$with_gnu_ld"; then
9450 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9451 hardcode_libdir_separator=:
9452 hardcode_direct=yes
9453 hardcode_direct_absolute=yes
9454 export_dynamic_flag_spec='$wl-E'
9455 # hardcode_minus_L: Not really in the search PATH,
9456 # but as the default location of the library.
9457 hardcode_minus_L=yes
9458 fi
9459 ;;
9460
9461 hpux11*)
9462 if test yes,no = "$GCC,$with_gnu_ld"; then
9463 case $host_cpu in
9464 hppa*64*)
9465 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9466 ;;
9467 ia64*)
9468 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9469 ;;
9470 *)
9471 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9472 ;;
9473 esac
9474 else
9475 case $host_cpu in
9476 hppa*64*)
9477 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9478 ;;
9479 ia64*)
9480 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9481 ;;
9482 *)
9483
9484 # Older versions of the 11.00 compiler do not understand -b yet
9485 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9487 $as_echo_n "checking if $CC understands -b... " >&6; }
9488 if ${lt_cv_prog_compiler__b+:} false; then :
9489 $as_echo_n "(cached) " >&6
9490 else
9491 lt_cv_prog_compiler__b=no
9492 save_LDFLAGS=$LDFLAGS
9493 LDFLAGS="$LDFLAGS -b"
9494 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9495 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9496 # The linker can only warn and ignore the option if not recognized
9497 # So say no if there are warnings
9498 if test -s conftest.err; then
9499 # Append any errors to the config.log.
9500 cat conftest.err 1>&5
9501 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9503 if diff conftest.exp conftest.er2 >/dev/null; then
9504 lt_cv_prog_compiler__b=yes
9505 fi
9506 else
9507 lt_cv_prog_compiler__b=yes
9508 fi
9509 fi
9510 $RM -r conftest*
9511 LDFLAGS=$save_LDFLAGS
9512
9513 fi
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9515 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9516
9517 if test yes = "$lt_cv_prog_compiler__b"; then
9518 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9519 else
9520 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9521 fi
9522
9523 ;;
9524 esac
9525 fi
9526 if test no = "$with_gnu_ld"; then
9527 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9528 hardcode_libdir_separator=:
9529
9530 case $host_cpu in
9531 hppa*64*|ia64*)
9532 hardcode_direct=no
9533 hardcode_shlibpath_var=no
9534 ;;
9535 *)
9536 hardcode_direct=yes
9537 hardcode_direct_absolute=yes
9538 export_dynamic_flag_spec='$wl-E'
9539
9540 # hardcode_minus_L: Not really in the search PATH,
9541 # but as the default location of the library.
9542 hardcode_minus_L=yes
9543 ;;
9544 esac
9545 fi
9546 ;;
9547
9548 irix5* | irix6* | nonstopux*)
9549 if test yes = "$GCC"; then
9550 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'
9551 # Try to use the -exported_symbol ld option, if it does not
9552 # work, assume that -exports_file does not work either and
9553 # implicitly export all symbols.
9554 # This should be the same for all languages, so no per-tag cache variable.
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9556 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9557 if ${lt_cv_irix_exported_symbol+:} false; then :
9558 $as_echo_n "(cached) " >&6
9559 else
9560 save_LDFLAGS=$LDFLAGS
9561 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563 /* end confdefs.h. */
9564 int foo (void) { return 0; }
9565 _ACEOF
9566 if ac_fn_c_try_link "$LINENO"; then :
9567 lt_cv_irix_exported_symbol=yes
9568 else
9569 lt_cv_irix_exported_symbol=no
9570 fi
9571 rm -f core conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9573 LDFLAGS=$save_LDFLAGS
9574 fi
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9576 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9577 if test yes = "$lt_cv_irix_exported_symbol"; then
9578 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'
9579 fi
9580 else
9581 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'
9582 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'
9583 fi
9584 archive_cmds_need_lc='no'
9585 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9586 hardcode_libdir_separator=:
9587 inherit_rpath=yes
9588 link_all_deplibs=yes
9589 ;;
9590
9591 linux*)
9592 case $cc_basename in
9593 tcc*)
9594 # Fabrice Bellard et al's Tiny C Compiler
9595 ld_shlibs=yes
9596 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9597 ;;
9598 esac
9599 ;;
9600
9601 netbsd*)
9602 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9604 else
9605 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9606 fi
9607 hardcode_libdir_flag_spec='-R$libdir'
9608 hardcode_direct=yes
9609 hardcode_shlibpath_var=no
9610 ;;
9611
9612 newsos6)
9613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9614 hardcode_direct=yes
9615 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9616 hardcode_libdir_separator=:
9617 hardcode_shlibpath_var=no
9618 ;;
9619
9620 *nto* | *qnx*)
9621 ;;
9622
9623 openbsd* | bitrig*)
9624 if test -f /usr/libexec/ld.so; then
9625 hardcode_direct=yes
9626 hardcode_shlibpath_var=no
9627 hardcode_direct_absolute=yes
9628 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9629 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9630 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9631 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9632 export_dynamic_flag_spec='$wl-E'
9633 else
9634 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9635 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9636 fi
9637 else
9638 ld_shlibs=no
9639 fi
9640 ;;
9641
9642 os2*)
9643 hardcode_libdir_flag_spec='-L$libdir'
9644 hardcode_minus_L=yes
9645 allow_undefined_flag=unsupported
9646 shrext_cmds=.dll
9647 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9648 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9649 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9650 $ECHO EXPORTS >> $output_objdir/$libname.def~
9651 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9652 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9653 emximp -o $lib $output_objdir/$libname.def'
9654 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9655 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9656 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9657 $ECHO EXPORTS >> $output_objdir/$libname.def~
9658 prefix_cmds="$SED"~
9659 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9660 prefix_cmds="$prefix_cmds -e 1d";
9661 fi~
9662 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9663 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9664 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9665 emximp -o $lib $output_objdir/$libname.def'
9666 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9667 enable_shared_with_static_runtimes=yes
9668 file_list_spec='@'
9669 ;;
9670
9671 osf3*)
9672 if test yes = "$GCC"; then
9673 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9674 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'
9675 else
9676 allow_undefined_flag=' -expect_unresolved \*'
9677 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'
9678 fi
9679 archive_cmds_need_lc='no'
9680 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9681 hardcode_libdir_separator=:
9682 ;;
9683
9684 osf4* | osf5*) # as osf3* with the addition of -msym flag
9685 if test yes = "$GCC"; then
9686 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9687 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'
9688 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9689 else
9690 allow_undefined_flag=' -expect_unresolved \*'
9691 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'
9692 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~
9693 $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'
9694
9695 # Both c and cxx compiler support -rpath directly
9696 hardcode_libdir_flag_spec='-rpath $libdir'
9697 fi
9698 archive_cmds_need_lc='no'
9699 hardcode_libdir_separator=:
9700 ;;
9701
9702 solaris*)
9703 no_undefined_flag=' -z defs'
9704 if test yes = "$GCC"; then
9705 wlarc='$wl'
9706 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9707 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9708 $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'
9709 else
9710 case `$CC -V 2>&1` in
9711 *"Compilers 5.0"*)
9712 wlarc=''
9713 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9715 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9716 ;;
9717 *)
9718 wlarc='$wl'
9719 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9720 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9721 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9722 ;;
9723 esac
9724 fi
9725 hardcode_libdir_flag_spec='-R$libdir'
9726 hardcode_shlibpath_var=no
9727 case $host_os in
9728 solaris2.[0-5] | solaris2.[0-5].*) ;;
9729 *)
9730 # The compiler driver will combine and reorder linker options,
9731 # but understands '-z linker_flag'. GCC discards it without '$wl',
9732 # but is careful enough not to reorder.
9733 # Supported since Solaris 2.6 (maybe 2.5.1?)
9734 if test yes = "$GCC"; then
9735 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9736 else
9737 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9738 fi
9739 ;;
9740 esac
9741 link_all_deplibs=yes
9742 ;;
9743
9744 sunos4*)
9745 if test sequent = "$host_vendor"; then
9746 # Use $CC to link under sequent, because it throws in some extra .o
9747 # files that make .init and .fini sections work.
9748 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9749 else
9750 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9751 fi
9752 hardcode_libdir_flag_spec='-L$libdir'
9753 hardcode_direct=yes
9754 hardcode_minus_L=yes
9755 hardcode_shlibpath_var=no
9756 ;;
9757
9758 sysv4)
9759 case $host_vendor in
9760 sni)
9761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762 hardcode_direct=yes # is this really true???
9763 ;;
9764 siemens)
9765 ## LD is ld it makes a PLAMLIB
9766 ## CC just makes a GrossModule.
9767 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9768 reload_cmds='$CC -r -o $output$reload_objs'
9769 hardcode_direct=no
9770 ;;
9771 motorola)
9772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9773 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9774 ;;
9775 esac
9776 runpath_var='LD_RUN_PATH'
9777 hardcode_shlibpath_var=no
9778 ;;
9779
9780 sysv4.3*)
9781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9782 hardcode_shlibpath_var=no
9783 export_dynamic_flag_spec='-Bexport'
9784 ;;
9785
9786 sysv4*MP*)
9787 if test -d /usr/nec; then
9788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9789 hardcode_shlibpath_var=no
9790 runpath_var=LD_RUN_PATH
9791 hardcode_runpath_var=yes
9792 ld_shlibs=yes
9793 fi
9794 ;;
9795
9796 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9797 no_undefined_flag='$wl-z,text'
9798 archive_cmds_need_lc=no
9799 hardcode_shlibpath_var=no
9800 runpath_var='LD_RUN_PATH'
9801
9802 if test yes = "$GCC"; then
9803 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9804 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9805 else
9806 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9807 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9808 fi
9809 ;;
9810
9811 sysv5* | sco3.2v5* | sco5v6*)
9812 # Note: We CANNOT use -z defs as we might desire, because we do not
9813 # link with -lc, and that would cause any symbols used from libc to
9814 # always be unresolved, which means just about no library would
9815 # ever link correctly. If we're not using GNU ld we use -z text
9816 # though, which does catch some bad symbols but isn't as heavy-handed
9817 # as -z defs.
9818 no_undefined_flag='$wl-z,text'
9819 allow_undefined_flag='$wl-z,nodefs'
9820 archive_cmds_need_lc=no
9821 hardcode_shlibpath_var=no
9822 hardcode_libdir_flag_spec='$wl-R,$libdir'
9823 hardcode_libdir_separator=':'
9824 link_all_deplibs=yes
9825 export_dynamic_flag_spec='$wl-Bexport'
9826 runpath_var='LD_RUN_PATH'
9827
9828 if test yes = "$GCC"; then
9829 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9830 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9831 else
9832 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9833 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9834 fi
9835 ;;
9836
9837 uts4*)
9838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9839 hardcode_libdir_flag_spec='-L$libdir'
9840 hardcode_shlibpath_var=no
9841 ;;
9842
9843 *)
9844 ld_shlibs=no
9845 ;;
9846 esac
9847
9848 if test sni = "$host_vendor"; then
9849 case $host in
9850 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9851 export_dynamic_flag_spec='$wl-Blargedynsym'
9852 ;;
9853 esac
9854 fi
9855 fi
9856
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9858 $as_echo "$ld_shlibs" >&6; }
9859 test no = "$ld_shlibs" && can_build_shared=no
9860
9861 with_gnu_ld=$with_gnu_ld
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877 #
9878 # Do we need to explicitly link libc?
9879 #
9880 case "x$archive_cmds_need_lc" in
9881 x|xyes)
9882 # Assume -lc should be added
9883 archive_cmds_need_lc=yes
9884
9885 if test yes,yes = "$GCC,$enable_shared"; then
9886 case $archive_cmds in
9887 *'~'*)
9888 # FIXME: we may have to deal with multi-command sequences.
9889 ;;
9890 '$CC '*)
9891 # Test whether the compiler implicitly links with -lc since on some
9892 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9893 # to ld, don't add -lc before -lgcc.
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9895 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9896 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 $RM conftest*
9900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9901
9902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9903 (eval $ac_compile) 2>&5
9904 ac_status=$?
9905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9906 test $ac_status = 0; } 2>conftest.err; then
9907 soname=conftest
9908 lib=conftest
9909 libobjs=conftest.$ac_objext
9910 deplibs=
9911 wl=$lt_prog_compiler_wl
9912 pic_flag=$lt_prog_compiler_pic
9913 compiler_flags=-v
9914 linker_flags=-v
9915 verstring=
9916 output_objdir=.
9917 libname=conftest
9918 lt_save_allow_undefined_flag=$allow_undefined_flag
9919 allow_undefined_flag=
9920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9921 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9922 ac_status=$?
9923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9924 test $ac_status = 0; }
9925 then
9926 lt_cv_archive_cmds_need_lc=no
9927 else
9928 lt_cv_archive_cmds_need_lc=yes
9929 fi
9930 allow_undefined_flag=$lt_save_allow_undefined_flag
9931 else
9932 cat conftest.err 1>&5
9933 fi
9934 $RM conftest*
9935
9936 fi
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9938 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9939 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9940 ;;
9941 esac
9942 fi
9943 ;;
9944 esac
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10098 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10099
10100 if test yes = "$GCC"; then
10101 case $host_os in
10102 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10103 *) lt_awk_arg='/^libraries:/' ;;
10104 esac
10105 case $host_os in
10106 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10107 *) lt_sed_strip_eq='s|=/|/|g' ;;
10108 esac
10109 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10110 case $lt_search_path_spec in
10111 *\;*)
10112 # if the path contains ";" then we assume it to be the separator
10113 # otherwise default to the standard path separator (i.e. ":") - it is
10114 # assumed that no part of a normal pathname contains ";" but that should
10115 # okay in the real world where ";" in dirpaths is itself problematic.
10116 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10117 ;;
10118 *)
10119 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10120 ;;
10121 esac
10122 # Ok, now we have the path, separated by spaces, we can step through it
10123 # and add multilib dir if necessary...
10124 lt_tmp_lt_search_path_spec=
10125 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10126 # ...but if some path component already ends with the multilib dir we assume
10127 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10128 case "$lt_multi_os_dir; $lt_search_path_spec " in
10129 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10130 lt_multi_os_dir=
10131 ;;
10132 esac
10133 for lt_sys_path in $lt_search_path_spec; do
10134 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10135 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10136 elif test -n "$lt_multi_os_dir"; then
10137 test -d "$lt_sys_path" && \
10138 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10139 fi
10140 done
10141 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10142 BEGIN {RS = " "; FS = "/|\n";} {
10143 lt_foo = "";
10144 lt_count = 0;
10145 for (lt_i = NF; lt_i > 0; lt_i--) {
10146 if ($lt_i != "" && $lt_i != ".") {
10147 if ($lt_i == "..") {
10148 lt_count++;
10149 } else {
10150 if (lt_count == 0) {
10151 lt_foo = "/" $lt_i lt_foo;
10152 } else {
10153 lt_count--;
10154 }
10155 }
10156 }
10157 }
10158 if (lt_foo != "") { lt_freq[lt_foo]++; }
10159 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10160 }'`
10161 # AWK program above erroneously prepends '/' to C:/dos/paths
10162 # for these hosts.
10163 case $host_os in
10164 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10165 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10166 esac
10167 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10168 else
10169 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10170 fi
10171 library_names_spec=
10172 libname_spec='lib$name'
10173 soname_spec=
10174 shrext_cmds=.so
10175 postinstall_cmds=
10176 postuninstall_cmds=
10177 finish_cmds=
10178 finish_eval=
10179 shlibpath_var=
10180 shlibpath_overrides_runpath=unknown
10181 version_type=none
10182 dynamic_linker="$host_os ld.so"
10183 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10184 need_lib_prefix=unknown
10185 hardcode_into_libs=no
10186
10187 # when you set need_version to no, make sure it does not cause -set_version
10188 # flags to be left without arguments
10189 need_version=unknown
10190
10191
10192
10193 case $host_os in
10194 aix3*)
10195 version_type=linux # correct to gnu/linux during the next big refactor
10196 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10197 shlibpath_var=LIBPATH
10198
10199 # AIX 3 has no versioning support, so we append a major version to the name.
10200 soname_spec='$libname$release$shared_ext$major'
10201 ;;
10202
10203 aix[4-9]*)
10204 version_type=linux # correct to gnu/linux during the next big refactor
10205 need_lib_prefix=no
10206 need_version=no
10207 hardcode_into_libs=yes
10208 if test ia64 = "$host_cpu"; then
10209 # AIX 5 supports IA64
10210 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 else
10213 # With GCC up to 2.95.x, collect2 would create an import file
10214 # for dependence libraries. The import file would start with
10215 # the line '#! .'. This would cause the generated library to
10216 # depend on '.', always an invalid library. This was fixed in
10217 # development snapshots of GCC prior to 3.0.
10218 case $host_os in
10219 aix4 | aix4.[01] | aix4.[01].*)
10220 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10221 echo ' yes '
10222 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10223 :
10224 else
10225 can_build_shared=no
10226 fi
10227 ;;
10228 esac
10229 # Using Import Files as archive members, it is possible to support
10230 # filename-based versioning of shared library archives on AIX. While
10231 # this would work for both with and without runtime linking, it will
10232 # prevent static linking of such archives. So we do filename-based
10233 # shared library versioning with .so extension only, which is used
10234 # when both runtime linking and shared linking is enabled.
10235 # Unfortunately, runtime linking may impact performance, so we do
10236 # not want this to be the default eventually. Also, we use the
10237 # versioned .so libs for executables only if there is the -brtl
10238 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10239 # To allow for filename-based versioning support, we need to create
10240 # libNAME.so.V as an archive file, containing:
10241 # *) an Import File, referring to the versioned filename of the
10242 # archive as well as the shared archive member, telling the
10243 # bitwidth (32 or 64) of that shared object, and providing the
10244 # list of exported symbols of that shared object, eventually
10245 # decorated with the 'weak' keyword
10246 # *) the shared object with the F_LOADONLY flag set, to really avoid
10247 # it being seen by the linker.
10248 # At run time we better use the real file rather than another symlink,
10249 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10250
10251 case $with_aix_soname,$aix_use_runtimelinking in
10252 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10253 # soname into executable. Probably we can add versioning support to
10254 # collect2, so additional links can be useful in future.
10255 aix,yes) # traditional libtool
10256 dynamic_linker='AIX unversionable lib.so'
10257 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10258 # instead of lib<name>.a to let people know that these are not
10259 # typical AIX shared libraries.
10260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10261 ;;
10262 aix,no) # traditional AIX only
10263 dynamic_linker='AIX lib.a(lib.so.V)'
10264 # We preserve .a as extension for shared libraries through AIX4.2
10265 # and later when we are not doing run time linking.
10266 library_names_spec='$libname$release.a $libname.a'
10267 soname_spec='$libname$release$shared_ext$major'
10268 ;;
10269 svr4,*) # full svr4 only
10270 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10271 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10272 # We do not specify a path in Import Files, so LIBPATH fires.
10273 shlibpath_overrides_runpath=yes
10274 ;;
10275 *,yes) # both, prefer svr4
10276 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10277 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10278 # unpreferred sharedlib libNAME.a needs extra handling
10279 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"'
10280 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"'
10281 # We do not specify a path in Import Files, so LIBPATH fires.
10282 shlibpath_overrides_runpath=yes
10283 ;;
10284 *,no) # both, prefer aix
10285 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10286 library_names_spec='$libname$release.a $libname.a'
10287 soname_spec='$libname$release$shared_ext$major'
10288 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10289 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)'
10290 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"'
10291 ;;
10292 esac
10293 shlibpath_var=LIBPATH
10294 fi
10295 ;;
10296
10297 amigaos*)
10298 case $host_cpu in
10299 powerpc)
10300 # Since July 2007 AmigaOS4 officially supports .so libraries.
10301 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10303 ;;
10304 m68k)
10305 library_names_spec='$libname.ixlibrary $libname.a'
10306 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10307 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'
10308 ;;
10309 esac
10310 ;;
10311
10312 beos*)
10313 library_names_spec='$libname$shared_ext'
10314 dynamic_linker="$host_os ld.so"
10315 shlibpath_var=LIBRARY_PATH
10316 ;;
10317
10318 bsdi[45]*)
10319 version_type=linux # correct to gnu/linux during the next big refactor
10320 need_version=no
10321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10322 soname_spec='$libname$release$shared_ext$major'
10323 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10326 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10327 # the default ld.so.conf also contains /usr/contrib/lib and
10328 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10329 # libtool to hard-code these into programs
10330 ;;
10331
10332 cygwin* | msys* | mingw* | pw32* | cegcc*)
10333 version_type=windows
10334 shrext_cmds=.dll
10335 need_version=no
10336 need_lib_prefix=no
10337
10338 case $GCC,$cc_basename in
10339 yes,*)
10340 # gcc
10341 library_names_spec='$libname.dll.a'
10342 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10343 postinstall_cmds='base_file=`basename \$file`~
10344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10345 dldir=$destdir/`dirname \$dlpath`~
10346 test -d \$dldir || mkdir -p \$dldir~
10347 $install_prog $dir/$dlname \$dldir/$dlname~
10348 chmod a+x \$dldir/$dlname~
10349 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10350 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10351 fi'
10352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10353 dlpath=$dir/\$dldll~
10354 $RM \$dlpath'
10355 shlibpath_overrides_runpath=yes
10356
10357 case $host_os in
10358 cygwin*)
10359 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10360 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10361
10362 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10363 ;;
10364 mingw* | cegcc* | msys*)
10365 # MinGW DLLs use traditional 'lib' prefix
10366 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10367 ;;
10368 pw32*)
10369 # pw32 DLLs use 'pw' prefix rather than 'lib'
10370 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10371 ;;
10372 esac
10373 dynamic_linker='Win32 ld.exe'
10374 ;;
10375
10376 *,cl* | *,icl*)
10377 # Native MSVC or ICC
10378 libname_spec='$name'
10379 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10380 library_names_spec='$libname.dll.lib'
10381
10382 case $build_os in
10383 mingw*)
10384 sys_lib_search_path_spec=
10385 lt_save_ifs=$IFS
10386 IFS=';'
10387 for lt_path in $LIB
10388 do
10389 IFS=$lt_save_ifs
10390 # Let DOS variable expansion print the short 8.3 style file name.
10391 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10392 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10393 done
10394 IFS=$lt_save_ifs
10395 # Convert to MSYS style.
10396 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10397 ;;
10398 cygwin* | msys*)
10399 # Convert to unix form, then to dos form, then back to unix form
10400 # but this time dos style (no spaces!) so that the unix form looks
10401 # like /cygdrive/c/PROGRA~1:/cygdr...
10402 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10403 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10404 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10405 ;;
10406 *)
10407 sys_lib_search_path_spec=$LIB
10408 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10409 # It is most probably a Windows format PATH.
10410 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10411 else
10412 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10413 fi
10414 # FIXME: find the short name or the path components, as spaces are
10415 # common. (e.g. "Program Files" -> "PROGRA~1")
10416 ;;
10417 esac
10418
10419 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10420 postinstall_cmds='base_file=`basename \$file`~
10421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10422 dldir=$destdir/`dirname \$dlpath`~
10423 test -d \$dldir || mkdir -p \$dldir~
10424 $install_prog $dir/$dlname \$dldir/$dlname'
10425 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10426 dlpath=$dir/\$dldll~
10427 $RM \$dlpath'
10428 shlibpath_overrides_runpath=yes
10429 dynamic_linker='Win32 link.exe'
10430 ;;
10431
10432 *)
10433 # Assume MSVC and ICC wrapper
10434 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10435 dynamic_linker='Win32 ld.exe'
10436 ;;
10437 esac
10438 # FIXME: first we should search . and the directory the executable is in
10439 shlibpath_var=PATH
10440 ;;
10441
10442 darwin* | rhapsody*)
10443 dynamic_linker="$host_os dyld"
10444 version_type=darwin
10445 need_lib_prefix=no
10446 need_version=no
10447 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10448 soname_spec='$libname$release$major$shared_ext'
10449 shlibpath_overrides_runpath=yes
10450 shlibpath_var=DYLD_LIBRARY_PATH
10451 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10452
10453 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10454 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10455 ;;
10456
10457 dgux*)
10458 version_type=linux # correct to gnu/linux during the next big refactor
10459 need_lib_prefix=no
10460 need_version=no
10461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10462 soname_spec='$libname$release$shared_ext$major'
10463 shlibpath_var=LD_LIBRARY_PATH
10464 ;;
10465
10466 freebsd* | dragonfly* | midnightbsd*)
10467 # DragonFly does not have aout. When/if they implement a new
10468 # versioning mechanism, adjust this.
10469 if test -x /usr/bin/objformat; then
10470 objformat=`/usr/bin/objformat`
10471 else
10472 case $host_os in
10473 freebsd[23].*) objformat=aout ;;
10474 *) objformat=elf ;;
10475 esac
10476 fi
10477 version_type=freebsd-$objformat
10478 case $version_type in
10479 freebsd-elf*)
10480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10481 soname_spec='$libname$release$shared_ext$major'
10482 need_version=no
10483 need_lib_prefix=no
10484 ;;
10485 freebsd-*)
10486 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10487 need_version=yes
10488 ;;
10489 esac
10490 shlibpath_var=LD_LIBRARY_PATH
10491 case $host_os in
10492 freebsd2.*)
10493 shlibpath_overrides_runpath=yes
10494 ;;
10495 freebsd3.[01]* | freebsdelf3.[01]*)
10496 shlibpath_overrides_runpath=yes
10497 hardcode_into_libs=yes
10498 ;;
10499 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10500 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10501 shlibpath_overrides_runpath=no
10502 hardcode_into_libs=yes
10503 ;;
10504 *) # from 4.6 on, and DragonFly
10505 shlibpath_overrides_runpath=yes
10506 hardcode_into_libs=yes
10507 ;;
10508 esac
10509 ;;
10510
10511 haiku*)
10512 version_type=linux # correct to gnu/linux during the next big refactor
10513 need_lib_prefix=no
10514 need_version=no
10515 dynamic_linker="$host_os runtime_loader"
10516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10517 soname_spec='$libname$release$shared_ext$major'
10518 shlibpath_var=LIBRARY_PATH
10519 shlibpath_overrides_runpath=no
10520 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10521 hardcode_into_libs=yes
10522 ;;
10523
10524 hpux9* | hpux10* | hpux11*)
10525 # Give a soname corresponding to the major version so that dld.sl refuses to
10526 # link against other versions.
10527 version_type=sunos
10528 need_lib_prefix=no
10529 need_version=no
10530 case $host_cpu in
10531 ia64*)
10532 shrext_cmds='.so'
10533 hardcode_into_libs=yes
10534 dynamic_linker="$host_os dld.so"
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10538 soname_spec='$libname$release$shared_ext$major'
10539 if test 32 = "$HPUX_IA64_MODE"; then
10540 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10541 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10542 else
10543 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10544 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10545 fi
10546 ;;
10547 hppa*64*)
10548 shrext_cmds='.sl'
10549 hardcode_into_libs=yes
10550 dynamic_linker="$host_os dld.sl"
10551 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10554 soname_spec='$libname$release$shared_ext$major'
10555 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10557 ;;
10558 *)
10559 shrext_cmds='.sl'
10560 dynamic_linker="$host_os dld.sl"
10561 shlibpath_var=SHLIB_PATH
10562 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10564 soname_spec='$libname$release$shared_ext$major'
10565 ;;
10566 esac
10567 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10568 postinstall_cmds='chmod 555 $lib'
10569 # or fails outright, so override atomically:
10570 install_override_mode=555
10571 ;;
10572
10573 interix[3-9]*)
10574 version_type=linux # correct to gnu/linux during the next big refactor
10575 need_lib_prefix=no
10576 need_version=no
10577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10578 soname_spec='$libname$release$shared_ext$major'
10579 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10580 shlibpath_var=LD_LIBRARY_PATH
10581 shlibpath_overrides_runpath=no
10582 hardcode_into_libs=yes
10583 ;;
10584
10585 irix5* | irix6* | nonstopux*)
10586 case $host_os in
10587 nonstopux*) version_type=nonstopux ;;
10588 *)
10589 if test yes = "$lt_cv_prog_gnu_ld"; then
10590 version_type=linux # correct to gnu/linux during the next big refactor
10591 else
10592 version_type=irix
10593 fi ;;
10594 esac
10595 need_lib_prefix=no
10596 need_version=no
10597 soname_spec='$libname$release$shared_ext$major'
10598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10599 case $host_os in
10600 irix5* | nonstopux*)
10601 libsuff= shlibsuff=
10602 ;;
10603 *)
10604 case $LD in # libtool.m4 will add one of these switches to LD
10605 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10606 libsuff= shlibsuff= libmagic=32-bit;;
10607 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10608 libsuff=32 shlibsuff=N32 libmagic=N32;;
10609 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10610 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10611 *) libsuff= shlibsuff= libmagic=never-match;;
10612 esac
10613 ;;
10614 esac
10615 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10616 shlibpath_overrides_runpath=no
10617 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10618 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10619 hardcode_into_libs=yes
10620 ;;
10621
10622 # No shared lib support for Linux oldld, aout, or coff.
10623 linux*oldld* | linux*aout* | linux*coff*)
10624 dynamic_linker=no
10625 ;;
10626
10627 linux*android*)
10628 version_type=none # Android doesn't support versioned libraries.
10629 need_lib_prefix=no
10630 need_version=no
10631 library_names_spec='$libname$release$shared_ext'
10632 soname_spec='$libname$release$shared_ext'
10633 finish_cmds=
10634 shlibpath_var=LD_LIBRARY_PATH
10635 shlibpath_overrides_runpath=yes
10636
10637 # This implies no fast_install, which is unacceptable.
10638 # Some rework will be needed to allow for fast_install
10639 # before this can be enabled.
10640 hardcode_into_libs=yes
10641
10642 dynamic_linker='Android linker'
10643 # Don't embed -rpath directories since the linker doesn't support them.
10644 hardcode_libdir_flag_spec='-L$libdir'
10645 ;;
10646
10647 # This must be glibc/ELF.
10648 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10649 version_type=linux # correct to gnu/linux during the next big refactor
10650 need_lib_prefix=no
10651 need_version=no
10652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10653 soname_spec='$libname$release$shared_ext$major'
10654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=no
10657
10658 # Some binutils ld are patched to set DT_RUNPATH
10659 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10660 $as_echo_n "(cached) " >&6
10661 else
10662 lt_cv_shlibpath_overrides_runpath=no
10663 save_LDFLAGS=$LDFLAGS
10664 save_libdir=$libdir
10665 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10666 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669
10670 int
10671 main ()
10672 {
10673
10674 ;
10675 return 0;
10676 }
10677 _ACEOF
10678 if ac_fn_c_try_link "$LINENO"; then :
10679 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10680 lt_cv_shlibpath_overrides_runpath=yes
10681 fi
10682 fi
10683 rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10685 LDFLAGS=$save_LDFLAGS
10686 libdir=$save_libdir
10687
10688 fi
10689
10690 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10691
10692 # This implies no fast_install, which is unacceptable.
10693 # Some rework will be needed to allow for fast_install
10694 # before this can be enabled.
10695 hardcode_into_libs=yes
10696
10697 # Ideally, we could use ldconfig to report *all* directores which are
10698 # searched for libraries, however this is still not possible. Aside from not
10699 # being certain /sbin/ldconfig is available, command
10700 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10701 # even though it is searched at run-time. Try to do the best guess by
10702 # appending ld.so.conf contents (and includes) to the search path.
10703 if test -f /etc/ld.so.conf; then
10704 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' ' '`
10705 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10706 fi
10707
10708 # We used to test for /lib/ld.so.1 and disable shared libraries on
10709 # powerpc, because MkLinux only supported shared libraries with the
10710 # GNU dynamic linker. Since this was broken with cross compilers,
10711 # most powerpc-linux boxes support dynamic linking these days and
10712 # people can always --disable-shared, the test was removed, and we
10713 # assume the GNU/Linux dynamic linker is in use.
10714 dynamic_linker='GNU/Linux ld.so'
10715 ;;
10716
10717 netbsd*)
10718 version_type=sunos
10719 need_lib_prefix=no
10720 need_version=no
10721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10722 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10724 dynamic_linker='NetBSD (a.out) ld.so'
10725 else
10726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10727 soname_spec='$libname$release$shared_ext$major'
10728 dynamic_linker='NetBSD ld.elf_so'
10729 fi
10730 shlibpath_var=LD_LIBRARY_PATH
10731 shlibpath_overrides_runpath=yes
10732 hardcode_into_libs=yes
10733 ;;
10734
10735 newsos6)
10736 version_type=linux # correct to gnu/linux during the next big refactor
10737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10738 shlibpath_var=LD_LIBRARY_PATH
10739 shlibpath_overrides_runpath=yes
10740 ;;
10741
10742 *nto* | *qnx*)
10743 version_type=qnx
10744 need_lib_prefix=no
10745 need_version=no
10746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10747 soname_spec='$libname$release$shared_ext$major'
10748 shlibpath_var=LD_LIBRARY_PATH
10749 shlibpath_overrides_runpath=no
10750 hardcode_into_libs=yes
10751 dynamic_linker='ldqnx.so'
10752 ;;
10753
10754 openbsd* | bitrig*)
10755 version_type=sunos
10756 sys_lib_dlsearch_path_spec=/usr/lib
10757 need_lib_prefix=no
10758 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10759 need_version=no
10760 else
10761 need_version=yes
10762 fi
10763 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10765 shlibpath_var=LD_LIBRARY_PATH
10766 shlibpath_overrides_runpath=yes
10767 ;;
10768
10769 os2*)
10770 libname_spec='$name'
10771 version_type=windows
10772 shrext_cmds=.dll
10773 need_version=no
10774 need_lib_prefix=no
10775 # OS/2 can only load a DLL with a base name of 8 characters or less.
10776 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10777 v=$($ECHO $release$versuffix | tr -d .-);
10778 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10779 $ECHO $n$v`$shared_ext'
10780 library_names_spec='${libname}_dll.$libext'
10781 dynamic_linker='OS/2 ld.exe'
10782 shlibpath_var=BEGINLIBPATH
10783 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10785 postinstall_cmds='base_file=`basename \$file`~
10786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10787 dldir=$destdir/`dirname \$dlpath`~
10788 test -d \$dldir || mkdir -p \$dldir~
10789 $install_prog $dir/$dlname \$dldir/$dlname~
10790 chmod a+x \$dldir/$dlname~
10791 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10792 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10793 fi'
10794 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10795 dlpath=$dir/\$dldll~
10796 $RM \$dlpath'
10797 ;;
10798
10799 osf3* | osf4* | osf5*)
10800 version_type=osf
10801 need_lib_prefix=no
10802 need_version=no
10803 soname_spec='$libname$release$shared_ext$major'
10804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10805 shlibpath_var=LD_LIBRARY_PATH
10806 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10808 ;;
10809
10810 rdos*)
10811 dynamic_linker=no
10812 ;;
10813
10814 solaris*)
10815 version_type=linux # correct to gnu/linux during the next big refactor
10816 need_lib_prefix=no
10817 need_version=no
10818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10819 soname_spec='$libname$release$shared_ext$major'
10820 shlibpath_var=LD_LIBRARY_PATH
10821 shlibpath_overrides_runpath=yes
10822 hardcode_into_libs=yes
10823 # ldd complains unless libraries are executable
10824 postinstall_cmds='chmod +x $lib'
10825 ;;
10826
10827 sunos4*)
10828 version_type=sunos
10829 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10831 shlibpath_var=LD_LIBRARY_PATH
10832 shlibpath_overrides_runpath=yes
10833 if test yes = "$with_gnu_ld"; then
10834 need_lib_prefix=no
10835 fi
10836 need_version=yes
10837 ;;
10838
10839 sysv4 | sysv4.3*)
10840 version_type=linux # correct to gnu/linux during the next big refactor
10841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10842 soname_spec='$libname$release$shared_ext$major'
10843 shlibpath_var=LD_LIBRARY_PATH
10844 case $host_vendor in
10845 sni)
10846 shlibpath_overrides_runpath=no
10847 need_lib_prefix=no
10848 runpath_var=LD_RUN_PATH
10849 ;;
10850 siemens)
10851 need_lib_prefix=no
10852 ;;
10853 motorola)
10854 need_lib_prefix=no
10855 need_version=no
10856 shlibpath_overrides_runpath=no
10857 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10858 ;;
10859 esac
10860 ;;
10861
10862 sysv4*MP*)
10863 if test -d /usr/nec; then
10864 version_type=linux # correct to gnu/linux during the next big refactor
10865 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10866 soname_spec='$libname$shared_ext.$major'
10867 shlibpath_var=LD_LIBRARY_PATH
10868 fi
10869 ;;
10870
10871 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10872 version_type=sco
10873 need_lib_prefix=no
10874 need_version=no
10875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10876 soname_spec='$libname$release$shared_ext$major'
10877 shlibpath_var=LD_LIBRARY_PATH
10878 shlibpath_overrides_runpath=yes
10879 hardcode_into_libs=yes
10880 if test yes = "$with_gnu_ld"; then
10881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10882 else
10883 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10884 case $host_os in
10885 sco3.2v5*)
10886 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10887 ;;
10888 esac
10889 fi
10890 sys_lib_dlsearch_path_spec='/usr/lib'
10891 ;;
10892
10893 tpf*)
10894 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10895 version_type=linux # correct to gnu/linux during the next big refactor
10896 need_lib_prefix=no
10897 need_version=no
10898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 shlibpath_overrides_runpath=no
10901 hardcode_into_libs=yes
10902 ;;
10903
10904 uts4*)
10905 version_type=linux # correct to gnu/linux during the next big refactor
10906 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10907 soname_spec='$libname$release$shared_ext$major'
10908 shlibpath_var=LD_LIBRARY_PATH
10909 ;;
10910
10911 *)
10912 dynamic_linker=no
10913 ;;
10914 esac
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10916 $as_echo "$dynamic_linker" >&6; }
10917 test no = "$dynamic_linker" && can_build_shared=no
10918
10919 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10920 if test yes = "$GCC"; then
10921 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10922 fi
10923
10924 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10925 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10926 fi
10927
10928 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10929 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10930 fi
10931
10932 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10933 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10934
10935 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10936 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10937
10938 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10939 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11038 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11039 hardcode_action=
11040 if test -n "$hardcode_libdir_flag_spec" ||
11041 test -n "$runpath_var" ||
11042 test yes = "$hardcode_automatic"; then
11043
11044 # We can hardcode non-existent directories.
11045 if test no != "$hardcode_direct" &&
11046 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11047 # have to relink, otherwise we might link with an installed library
11048 # when we should be linking with a yet-to-be-installed one
11049 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11050 test no != "$hardcode_minus_L"; then
11051 # Linking always hardcodes the temporary library directory.
11052 hardcode_action=relink
11053 else
11054 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11055 hardcode_action=immediate
11056 fi
11057 else
11058 # We cannot hardcode anything, or else we can only hardcode existing
11059 # directories.
11060 hardcode_action=unsupported
11061 fi
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11063 $as_echo "$hardcode_action" >&6; }
11064
11065 if test relink = "$hardcode_action" ||
11066 test yes = "$inherit_rpath"; then
11067 # Fast installation is not supported
11068 enable_fast_install=no
11069 elif test yes = "$shlibpath_overrides_runpath" ||
11070 test no = "$enable_shared"; then
11071 # Fast installation is not necessary
11072 enable_fast_install=needless
11073 fi
11074
11075
11076
11077
11078
11079
11080 if test yes != "$enable_dlopen"; then
11081 enable_dlopen=unknown
11082 enable_dlopen_self=unknown
11083 enable_dlopen_self_static=unknown
11084 else
11085 lt_cv_dlopen=no
11086 lt_cv_dlopen_libs=
11087
11088 case $host_os in
11089 beos*)
11090 lt_cv_dlopen=load_add_on
11091 lt_cv_dlopen_libs=
11092 lt_cv_dlopen_self=yes
11093 ;;
11094
11095 mingw* | pw32* | cegcc*)
11096 lt_cv_dlopen=LoadLibrary
11097 lt_cv_dlopen_libs=
11098 ;;
11099
11100 cygwin* | msys*)
11101 lt_cv_dlopen=dlopen
11102 lt_cv_dlopen_libs=
11103 ;;
11104
11105 darwin*)
11106 # if libdl is installed we need to link against it
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11108 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11109 if ${ac_cv_lib_dl_dlopen+:} false; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 ac_check_lib_save_LIBS=$LIBS
11113 LIBS="-ldl $LIBS"
11114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115 /* end confdefs.h. */
11116
11117 /* Override any GCC internal prototype to avoid an error.
11118 Use char because int might match the return type of a GCC
11119 builtin and then its argument prototype would still apply. */
11120 #ifdef __cplusplus
11121 extern "C"
11122 #endif
11123 char dlopen ();
11124 int
11125 main ()
11126 {
11127 return dlopen ();
11128 ;
11129 return 0;
11130 }
11131 _ACEOF
11132 if ac_fn_c_try_link "$LINENO"; then :
11133 ac_cv_lib_dl_dlopen=yes
11134 else
11135 ac_cv_lib_dl_dlopen=no
11136 fi
11137 rm -f core conftest.err conftest.$ac_objext \
11138 conftest$ac_exeext conftest.$ac_ext
11139 LIBS=$ac_check_lib_save_LIBS
11140 fi
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11142 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11143 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11144 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11145 else
11146
11147 lt_cv_dlopen=dyld
11148 lt_cv_dlopen_libs=
11149 lt_cv_dlopen_self=yes
11150
11151 fi
11152
11153 ;;
11154
11155 tpf*)
11156 # Don't try to run any link tests for TPF. We know it's impossible
11157 # because TPF is a cross-compiler, and we know how we open DSOs.
11158 lt_cv_dlopen=dlopen
11159 lt_cv_dlopen_libs=
11160 lt_cv_dlopen_self=no
11161 ;;
11162
11163 *)
11164 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11165 if test "x$ac_cv_func_shl_load" = xyes; then :
11166 lt_cv_dlopen=shl_load
11167 else
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11169 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11170 if ${ac_cv_lib_dld_shl_load+:} false; then :
11171 $as_echo_n "(cached) " >&6
11172 else
11173 ac_check_lib_save_LIBS=$LIBS
11174 LIBS="-ldld $LIBS"
11175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11176 /* end confdefs.h. */
11177
11178 /* Override any GCC internal prototype to avoid an error.
11179 Use char because int might match the return type of a GCC
11180 builtin and then its argument prototype would still apply. */
11181 #ifdef __cplusplus
11182 extern "C"
11183 #endif
11184 char shl_load ();
11185 int
11186 main ()
11187 {
11188 return shl_load ();
11189 ;
11190 return 0;
11191 }
11192 _ACEOF
11193 if ac_fn_c_try_link "$LINENO"; then :
11194 ac_cv_lib_dld_shl_load=yes
11195 else
11196 ac_cv_lib_dld_shl_load=no
11197 fi
11198 rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
11200 LIBS=$ac_check_lib_save_LIBS
11201 fi
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11203 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11204 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11205 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11206 else
11207 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11208 if test "x$ac_cv_func_dlopen" = xyes; then :
11209 lt_cv_dlopen=dlopen
11210 else
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11212 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11213 if ${ac_cv_lib_dl_dlopen+:} false; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 ac_check_lib_save_LIBS=$LIBS
11217 LIBS="-ldl $LIBS"
11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11220
11221 /* Override any GCC internal prototype to avoid an error.
11222 Use char because int might match the return type of a GCC
11223 builtin and then its argument prototype would still apply. */
11224 #ifdef __cplusplus
11225 extern "C"
11226 #endif
11227 char dlopen ();
11228 int
11229 main ()
11230 {
11231 return dlopen ();
11232 ;
11233 return 0;
11234 }
11235 _ACEOF
11236 if ac_fn_c_try_link "$LINENO"; then :
11237 ac_cv_lib_dl_dlopen=yes
11238 else
11239 ac_cv_lib_dl_dlopen=no
11240 fi
11241 rm -f core conftest.err conftest.$ac_objext \
11242 conftest$ac_exeext conftest.$ac_ext
11243 LIBS=$ac_check_lib_save_LIBS
11244 fi
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11246 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11247 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11248 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11249 else
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11251 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11252 if ${ac_cv_lib_svld_dlopen+:} false; then :
11253 $as_echo_n "(cached) " >&6
11254 else
11255 ac_check_lib_save_LIBS=$LIBS
11256 LIBS="-lsvld $LIBS"
11257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11258 /* end confdefs.h. */
11259
11260 /* Override any GCC internal prototype to avoid an error.
11261 Use char because int might match the return type of a GCC
11262 builtin and then its argument prototype would still apply. */
11263 #ifdef __cplusplus
11264 extern "C"
11265 #endif
11266 char dlopen ();
11267 int
11268 main ()
11269 {
11270 return dlopen ();
11271 ;
11272 return 0;
11273 }
11274 _ACEOF
11275 if ac_fn_c_try_link "$LINENO"; then :
11276 ac_cv_lib_svld_dlopen=yes
11277 else
11278 ac_cv_lib_svld_dlopen=no
11279 fi
11280 rm -f core conftest.err conftest.$ac_objext \
11281 conftest$ac_exeext conftest.$ac_ext
11282 LIBS=$ac_check_lib_save_LIBS
11283 fi
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11285 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11286 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11287 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11288 else
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11290 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11291 if ${ac_cv_lib_dld_dld_link+:} false; then :
11292 $as_echo_n "(cached) " >&6
11293 else
11294 ac_check_lib_save_LIBS=$LIBS
11295 LIBS="-ldld $LIBS"
11296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11298
11299 /* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11302 #ifdef __cplusplus
11303 extern "C"
11304 #endif
11305 char dld_link ();
11306 int
11307 main ()
11308 {
11309 return dld_link ();
11310 ;
11311 return 0;
11312 }
11313 _ACEOF
11314 if ac_fn_c_try_link "$LINENO"; then :
11315 ac_cv_lib_dld_dld_link=yes
11316 else
11317 ac_cv_lib_dld_dld_link=no
11318 fi
11319 rm -f core conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext conftest.$ac_ext
11321 LIBS=$ac_check_lib_save_LIBS
11322 fi
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11324 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11325 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11326 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11327 fi
11328
11329
11330 fi
11331
11332
11333 fi
11334
11335
11336 fi
11337
11338
11339 fi
11340
11341
11342 fi
11343
11344 ;;
11345 esac
11346
11347 if test no = "$lt_cv_dlopen"; then
11348 enable_dlopen=no
11349 else
11350 enable_dlopen=yes
11351 fi
11352
11353 case $lt_cv_dlopen in
11354 dlopen)
11355 save_CPPFLAGS=$CPPFLAGS
11356 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11357
11358 save_LDFLAGS=$LDFLAGS
11359 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11360
11361 save_LIBS=$LIBS
11362 LIBS="$lt_cv_dlopen_libs $LIBS"
11363
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11365 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11366 if ${lt_cv_dlopen_self+:} false; then :
11367 $as_echo_n "(cached) " >&6
11368 else
11369 if test yes = "$cross_compiling"; then :
11370 lt_cv_dlopen_self=cross
11371 else
11372 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11373 lt_status=$lt_dlunknown
11374 cat > conftest.$ac_ext <<_LT_EOF
11375 #line $LINENO "configure"
11376 #include "confdefs.h"
11377
11378 #if HAVE_DLFCN_H
11379 #include <dlfcn.h>
11380 #endif
11381
11382 #include <stdio.h>
11383
11384 #ifdef RTLD_GLOBAL
11385 # define LT_DLGLOBAL RTLD_GLOBAL
11386 #else
11387 # ifdef DL_GLOBAL
11388 # define LT_DLGLOBAL DL_GLOBAL
11389 # else
11390 # define LT_DLGLOBAL 0
11391 # endif
11392 #endif
11393
11394 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11395 find out it does not work in some platform. */
11396 #ifndef LT_DLLAZY_OR_NOW
11397 # ifdef RTLD_LAZY
11398 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11399 # else
11400 # ifdef DL_LAZY
11401 # define LT_DLLAZY_OR_NOW DL_LAZY
11402 # else
11403 # ifdef RTLD_NOW
11404 # define LT_DLLAZY_OR_NOW RTLD_NOW
11405 # else
11406 # ifdef DL_NOW
11407 # define LT_DLLAZY_OR_NOW DL_NOW
11408 # else
11409 # define LT_DLLAZY_OR_NOW 0
11410 # endif
11411 # endif
11412 # endif
11413 # endif
11414 #endif
11415
11416 /* When -fvisibility=hidden is used, assume the code has been annotated
11417 correspondingly for the symbols needed. */
11418 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11419 int fnord () __attribute__((visibility("default")));
11420 #endif
11421
11422 int fnord () { return 42; }
11423 int main ()
11424 {
11425 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11426 int status = $lt_dlunknown;
11427
11428 if (self)
11429 {
11430 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11431 else
11432 {
11433 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11434 else puts (dlerror ());
11435 }
11436 /* dlclose (self); */
11437 }
11438 else
11439 puts (dlerror ());
11440
11441 return status;
11442 }
11443 _LT_EOF
11444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11445 (eval $ac_link) 2>&5
11446 ac_status=$?
11447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11448 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11449 (./conftest; exit; ) >&5 2>/dev/null
11450 lt_status=$?
11451 case x$lt_status in
11452 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11453 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11454 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11455 esac
11456 else :
11457 # compilation failed
11458 lt_cv_dlopen_self=no
11459 fi
11460 fi
11461 rm -fr conftest*
11462
11463
11464 fi
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11466 $as_echo "$lt_cv_dlopen_self" >&6; }
11467
11468 if test yes = "$lt_cv_dlopen_self"; then
11469 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11471 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11472 if ${lt_cv_dlopen_self_static+:} false; then :
11473 $as_echo_n "(cached) " >&6
11474 else
11475 if test yes = "$cross_compiling"; then :
11476 lt_cv_dlopen_self_static=cross
11477 else
11478 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11479 lt_status=$lt_dlunknown
11480 cat > conftest.$ac_ext <<_LT_EOF
11481 #line $LINENO "configure"
11482 #include "confdefs.h"
11483
11484 #if HAVE_DLFCN_H
11485 #include <dlfcn.h>
11486 #endif
11487
11488 #include <stdio.h>
11489
11490 #ifdef RTLD_GLOBAL
11491 # define LT_DLGLOBAL RTLD_GLOBAL
11492 #else
11493 # ifdef DL_GLOBAL
11494 # define LT_DLGLOBAL DL_GLOBAL
11495 # else
11496 # define LT_DLGLOBAL 0
11497 # endif
11498 #endif
11499
11500 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11501 find out it does not work in some platform. */
11502 #ifndef LT_DLLAZY_OR_NOW
11503 # ifdef RTLD_LAZY
11504 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11505 # else
11506 # ifdef DL_LAZY
11507 # define LT_DLLAZY_OR_NOW DL_LAZY
11508 # else
11509 # ifdef RTLD_NOW
11510 # define LT_DLLAZY_OR_NOW RTLD_NOW
11511 # else
11512 # ifdef DL_NOW
11513 # define LT_DLLAZY_OR_NOW DL_NOW
11514 # else
11515 # define LT_DLLAZY_OR_NOW 0
11516 # endif
11517 # endif
11518 # endif
11519 # endif
11520 #endif
11521
11522 /* When -fvisibility=hidden is used, assume the code has been annotated
11523 correspondingly for the symbols needed. */
11524 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11525 int fnord () __attribute__((visibility("default")));
11526 #endif
11527
11528 int fnord () { return 42; }
11529 int main ()
11530 {
11531 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11532 int status = $lt_dlunknown;
11533
11534 if (self)
11535 {
11536 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11537 else
11538 {
11539 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11540 else puts (dlerror ());
11541 }
11542 /* dlclose (self); */
11543 }
11544 else
11545 puts (dlerror ());
11546
11547 return status;
11548 }
11549 _LT_EOF
11550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11551 (eval $ac_link) 2>&5
11552 ac_status=$?
11553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11554 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11555 (./conftest; exit; ) >&5 2>/dev/null
11556 lt_status=$?
11557 case x$lt_status in
11558 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11559 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11560 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11561 esac
11562 else :
11563 # compilation failed
11564 lt_cv_dlopen_self_static=no
11565 fi
11566 fi
11567 rm -fr conftest*
11568
11569
11570 fi
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11572 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11573 fi
11574
11575 CPPFLAGS=$save_CPPFLAGS
11576 LDFLAGS=$save_LDFLAGS
11577 LIBS=$save_LIBS
11578 ;;
11579 esac
11580
11581 case $lt_cv_dlopen_self in
11582 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11583 *) enable_dlopen_self=unknown ;;
11584 esac
11585
11586 case $lt_cv_dlopen_self_static in
11587 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11588 *) enable_dlopen_self_static=unknown ;;
11589 esac
11590 fi
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608 striplib=
11609 old_striplib=
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11611 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11612 if test -z "$STRIP"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11615 else
11616 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11617 old_striplib="$STRIP --strip-debug"
11618 striplib="$STRIP --strip-unneeded"
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11620 $as_echo "yes" >&6; }
11621 else
11622 case $host_os in
11623 darwin*)
11624 # FIXME - insert some real tests, host_os isn't really good enough
11625 striplib="$STRIP -x"
11626 old_striplib="$STRIP -S"
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11628 $as_echo "yes" >&6; }
11629 ;;
11630 freebsd*)
11631 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
11632 old_striplib="$STRIP --strip-debug"
11633 striplib="$STRIP --strip-unneeded"
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11635 $as_echo "yes" >&6; }
11636 else
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11638 $as_echo "no" >&6; }
11639 fi
11640 ;;
11641 *)
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643 $as_echo "no" >&6; }
11644 ;;
11645 esac
11646 fi
11647 fi
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660 # Report what library types will actually be built
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11662 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11664 $as_echo "$can_build_shared" >&6; }
11665
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11667 $as_echo_n "checking whether to build shared libraries... " >&6; }
11668 test no = "$can_build_shared" && enable_shared=no
11669
11670 # On AIX, shared libraries and static libraries use the same namespace, and
11671 # are all built from PIC.
11672 case $host_os in
11673 aix3*)
11674 test yes = "$enable_shared" && enable_static=no
11675 if test -n "$RANLIB"; then
11676 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11677 postinstall_cmds='$RANLIB $lib'
11678 fi
11679 ;;
11680
11681 aix[4-9]*)
11682 if test ia64 != "$host_cpu"; then
11683 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11684 yes,aix,yes) ;; # shared object as lib.so file only
11685 yes,svr4,*) ;; # shared object as lib.so archive member only
11686 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11687 esac
11688 fi
11689 ;;
11690 esac
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11692 $as_echo "$enable_shared" >&6; }
11693
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11695 $as_echo_n "checking whether to build static libraries... " >&6; }
11696 # Make sure either enable_shared or enable_static is yes.
11697 test yes = "$enable_shared" || enable_static=yes
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11699 $as_echo "$enable_static" >&6; }
11700
11701
11702
11703
11704 fi
11705 ac_ext=c
11706 ac_cpp='$CPP $CPPFLAGS'
11707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11710
11711 CC=$lt_save_CC
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727 ac_config_commands="$ac_config_commands libtool"
11728
11729
11730
11731
11732 # Only expand once:
11733
11734
11735 LIBTOOL='${top_builddir}/libtool'
11736 fi
11737
11738
11739 #
11740 # --- Checks for header files ---
11741 #
11742 # NOTE: if --with-libtool is specified, stdc header isn't detected.
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11744 $as_echo_n "checking for ANSI C header files... " >&6; }
11745 if ${ac_cv_header_stdc+:} false; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h. */
11750 #include <stdlib.h>
11751 #include <stdarg.h>
11752 #include <string.h>
11753 #include <float.h>
11754
11755 int
11756 main ()
11757 {
11758
11759 ;
11760 return 0;
11761 }
11762 _ACEOF
11763 if ac_fn_c_try_compile "$LINENO"; then :
11764 ac_cv_header_stdc=yes
11765 else
11766 ac_cv_header_stdc=no
11767 fi
11768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11769
11770 if test $ac_cv_header_stdc = yes; then
11771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11773 /* end confdefs.h. */
11774 #include <string.h>
11775
11776 _ACEOF
11777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11778 $EGREP "memchr" >/dev/null 2>&1; then :
11779
11780 else
11781 ac_cv_header_stdc=no
11782 fi
11783 rm -f conftest*
11784
11785 fi
11786
11787 if test $ac_cv_header_stdc = yes; then
11788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11791 #include <stdlib.h>
11792
11793 _ACEOF
11794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11795 $EGREP "free" >/dev/null 2>&1; then :
11796
11797 else
11798 ac_cv_header_stdc=no
11799 fi
11800 rm -f conftest*
11801
11802 fi
11803
11804 if test $ac_cv_header_stdc = yes; then
11805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11806 if test "$cross_compiling" = yes; then :
11807 :
11808 else
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11811 #include <ctype.h>
11812 #include <stdlib.h>
11813 #if ((' ' & 0x0FF) == 0x020)
11814 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11815 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11816 #else
11817 # define ISLOWER(c) \
11818 (('a' <= (c) && (c) <= 'i') \
11819 || ('j' <= (c) && (c) <= 'r') \
11820 || ('s' <= (c) && (c) <= 'z'))
11821 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11822 #endif
11823
11824 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11825 int
11826 main ()
11827 {
11828 int i;
11829 for (i = 0; i < 256; i++)
11830 if (XOR (islower (i), ISLOWER (i))
11831 || toupper (i) != TOUPPER (i))
11832 return 2;
11833 return 0;
11834 }
11835 _ACEOF
11836 if ac_fn_c_try_run "$LINENO"; then :
11837
11838 else
11839 ac_cv_header_stdc=no
11840 fi
11841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11842 conftest.$ac_objext conftest.beam conftest.$ac_ext
11843 fi
11844
11845 fi
11846 fi
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11848 $as_echo "$ac_cv_header_stdc" >&6; }
11849 if test $ac_cv_header_stdc = yes; then
11850
11851 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11852
11853 fi
11854
11855 for ac_header in langinfo.h dlfcn.h dl.h stropts.h sys/stropts.h stdint.h windows.h errno.h stdint.h
11856 do :
11857 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11858 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11859 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11860 cat >>confdefs.h <<_ACEOF
11861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11862 _ACEOF
11863
11864 fi
11865
11866 done
11867
11868
11869 #
11870 # --- Checks for library functions ---
11871 #
11872 for ac_func in strsep fgetln basename isastream seteuid setegid geteuid getegid setsid snprintf usleep setenv unsetenv flock getuid getgid getpwuid recvmsg setpgid socketpair killpg gettimeofday
11873 do :
11874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11875 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11876 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11877 cat >>confdefs.h <<_ACEOF
11878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11879 _ACEOF
11880
11881 fi
11882 done
11883
11884 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11885 if test "x$ac_cv_type_size_t" = xyes; then :
11886
11887 else
11888
11889 cat >>confdefs.h <<_ACEOF
11890 #define size_t unsigned int
11891 _ACEOF
11892
11893 fi
11894
11895 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11896 # for constant arguments. Useless!
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11898 $as_echo_n "checking for working alloca.h... " >&6; }
11899 if ${ac_cv_working_alloca_h+:} false; then :
11900 $as_echo_n "(cached) " >&6
11901 else
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11904 #include <alloca.h>
11905 int
11906 main ()
11907 {
11908 char *p = (char *) alloca (2 * sizeof (int));
11909 if (p) return 0;
11910 ;
11911 return 0;
11912 }
11913 _ACEOF
11914 if ac_fn_c_try_link "$LINENO"; then :
11915 ac_cv_working_alloca_h=yes
11916 else
11917 ac_cv_working_alloca_h=no
11918 fi
11919 rm -f core conftest.err conftest.$ac_objext \
11920 conftest$ac_exeext conftest.$ac_ext
11921 fi
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11923 $as_echo "$ac_cv_working_alloca_h" >&6; }
11924 if test $ac_cv_working_alloca_h = yes; then
11925
11926 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11927
11928 fi
11929
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11931 $as_echo_n "checking for alloca... " >&6; }
11932 if ${ac_cv_func_alloca_works+:} false; then :
11933 $as_echo_n "(cached) " >&6
11934 else
11935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936 /* end confdefs.h. */
11937 #ifdef __GNUC__
11938 # define alloca __builtin_alloca
11939 #else
11940 # ifdef _MSC_VER
11941 # include <malloc.h>
11942 # define alloca _alloca
11943 # elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
11944 # include <stdlib.h>
11945 # else
11946 # ifdef HAVE_ALLOCA_H
11947 # include <alloca.h>
11948 # else
11949 # ifdef _AIX
11950 #pragma alloca
11951 # else
11952 # ifndef alloca /* predefined by HP cc +Olibcalls */
11953 void *alloca (size_t);
11954 # endif
11955 # endif
11956 # endif
11957 # endif
11958 #endif
11959
11960 int
11961 main ()
11962 {
11963 char *p = (char *) alloca (1);
11964 if (p) return 0;
11965 ;
11966 return 0;
11967 }
11968 _ACEOF
11969 if ac_fn_c_try_link "$LINENO"; then :
11970 ac_cv_func_alloca_works=yes
11971 else
11972 ac_cv_func_alloca_works=no
11973 fi
11974 rm -f core conftest.err conftest.$ac_objext \
11975 conftest$ac_exeext conftest.$ac_ext
11976 fi
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11978 $as_echo "$ac_cv_func_alloca_works" >&6; }
11979
11980 if test $ac_cv_func_alloca_works = yes; then
11981
11982 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11983
11984 else
11985 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11986 # that cause trouble. Some versions do not even contain alloca or
11987 # contain a buggy version. If you still want to use their alloca,
11988 # use ar to extract alloca.o from them instead of compiling alloca.c.
11989
11990 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11991
11992 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11993
11994
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11996 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11997 if ${ac_cv_os_cray+:} false; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h. */
12002 #if defined CRAY && ! defined CRAY2
12003 webecray
12004 #else
12005 wenotbecray
12006 #endif
12007
12008 _ACEOF
12009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12010 $EGREP "webecray" >/dev/null 2>&1; then :
12011 ac_cv_os_cray=yes
12012 else
12013 ac_cv_os_cray=no
12014 fi
12015 rm -f conftest*
12016
12017 fi
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12019 $as_echo "$ac_cv_os_cray" >&6; }
12020 if test $ac_cv_os_cray = yes; then
12021 for ac_func in _getb67 GETB67 getb67; do
12022 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12023 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12024 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12025
12026 cat >>confdefs.h <<_ACEOF
12027 #define CRAY_STACKSEG_END $ac_func
12028 _ACEOF
12029
12030 break
12031 fi
12032
12033 done
12034 fi
12035
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12037 $as_echo_n "checking stack direction for C alloca... " >&6; }
12038 if ${ac_cv_c_stack_direction+:} false; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 if test "$cross_compiling" = yes; then :
12042 ac_cv_c_stack_direction=0
12043 else
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12046 $ac_includes_default
12047 int
12048 find_stack_direction (int *addr, int depth)
12049 {
12050 int dir, dummy = 0;
12051 if (! addr)
12052 addr = &dummy;
12053 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
12054 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
12055 return dir + dummy;
12056 }
12057
12058 int
12059 main (int argc, char **argv)
12060 {
12061 return find_stack_direction (0, argc + !argv + 20) < 0;
12062 }
12063 _ACEOF
12064 if ac_fn_c_try_run "$LINENO"; then :
12065 ac_cv_c_stack_direction=1
12066 else
12067 ac_cv_c_stack_direction=-1
12068 fi
12069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12070 conftest.$ac_objext conftest.beam conftest.$ac_ext
12071 fi
12072
12073 fi
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12075 $as_echo "$ac_cv_c_stack_direction" >&6; }
12076 cat >>confdefs.h <<_ACEOF
12077 #define STACK_DIRECTION $ac_cv_c_stack_direction
12078 _ACEOF
12079
12080
12081 fi
12082
12083
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12085 $as_echo_n "checking for inline... " >&6; }
12086 if ${ac_cv_c_inline+:} false; then :
12087 $as_echo_n "(cached) " >&6
12088 else
12089 ac_cv_c_inline=no
12090 for ac_kw in inline __inline__ __inline; do
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12093 #ifndef __cplusplus
12094 typedef int foo_t;
12095 static $ac_kw foo_t static_foo () {return 0; }
12096 $ac_kw foo_t foo () {return 0; }
12097 #endif
12098
12099 _ACEOF
12100 if ac_fn_c_try_compile "$LINENO"; then :
12101 ac_cv_c_inline=$ac_kw
12102 fi
12103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104 test "$ac_cv_c_inline" != no && break
12105 done
12106
12107 fi
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12109 $as_echo "$ac_cv_c_inline" >&6; }
12110
12111 case $ac_cv_c_inline in
12112 inline | yes) ;;
12113 *)
12114 case $ac_cv_c_inline in
12115 no) ac_val=;;
12116 *) ac_val=$ac_cv_c_inline;;
12117 esac
12118 cat >>confdefs.h <<_ACEOF
12119 #ifndef __cplusplus
12120 #define inline $ac_val
12121 #endif
12122 _ACEOF
12123 ;;
12124 esac
12125
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12127 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12128 if ${ac_cv_c_const+:} false; then :
12129 $as_echo_n "(cached) " >&6
12130 else
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12133
12134 int
12135 main ()
12136 {
12137
12138 #ifndef __cplusplus
12139 /* Ultrix mips cc rejects this sort of thing. */
12140 typedef int charset[2];
12141 const charset cs = { 0, 0 };
12142 /* SunOS 4.1.1 cc rejects this. */
12143 char const *const *pcpcc;
12144 char **ppc;
12145 /* NEC SVR4.0.2 mips cc rejects this. */
12146 struct point {int x, y;};
12147 static struct point const zero = {0,0};
12148 /* AIX XL C 1.02.0.0 rejects this.
12149 It does not let you subtract one const X* pointer from another in
12150 an arm of an if-expression whose if-part is not a constant
12151 expression */
12152 const char *g = "string";
12153 pcpcc = &g + (g ? g-g : 0);
12154 /* HPUX 7.0 cc rejects these. */
12155 ++pcpcc;
12156 ppc = (char**) pcpcc;
12157 pcpcc = (char const *const *) ppc;
12158 { /* SCO 3.2v4 cc rejects this sort of thing. */
12159 char tx;
12160 char *t = &tx;
12161 char const *s = 0 ? (char *) 0 : (char const *) 0;
12162
12163 *t++ = 0;
12164 if (s) return 0;
12165 }
12166 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12167 int x[] = {25, 17};
12168 const int *foo = &x[0];
12169 ++foo;
12170 }
12171 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12172 typedef const int *iptr;
12173 iptr p = 0;
12174 ++p;
12175 }
12176 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12177 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12178 struct s { int j; const int *ap[3]; } bx;
12179 struct s *b = &bx; b->j = 5;
12180 }
12181 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12182 const int foo = 10;
12183 if (!foo) return 0;
12184 }
12185 return !cs[0] && !zero.x;
12186 #endif
12187
12188 ;
12189 return 0;
12190 }
12191 _ACEOF
12192 if ac_fn_c_try_compile "$LINENO"; then :
12193 ac_cv_c_const=yes
12194 else
12195 ac_cv_c_const=no
12196 fi
12197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12198 fi
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12200 $as_echo "$ac_cv_c_const" >&6; }
12201 if test $ac_cv_c_const = no; then
12202
12203 $as_echo "#define const /**/" >>confdefs.h
12204
12205 fi
12206
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12208 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12209 if ${ac_cv_c_bigendian+:} false; then :
12210 $as_echo_n "(cached) " >&6
12211 else
12212 ac_cv_c_bigendian=unknown
12213 # See if we're dealing with a universal compiler.
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12216 #ifndef __APPLE_CC__
12217 not a universal capable compiler
12218 #endif
12219 typedef int dummy;
12220
12221 _ACEOF
12222 if ac_fn_c_try_compile "$LINENO"; then :
12223
12224 # Check for potential -arch flags. It is not universal unless
12225 # there are at least two -arch flags with different values.
12226 ac_arch=
12227 ac_prev=
12228 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12229 if test -n "$ac_prev"; then
12230 case $ac_word in
12231 i?86 | x86_64 | ppc | ppc64)
12232 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12233 ac_arch=$ac_word
12234 else
12235 ac_cv_c_bigendian=universal
12236 break
12237 fi
12238 ;;
12239 esac
12240 ac_prev=
12241 elif test "x$ac_word" = "x-arch"; then
12242 ac_prev=arch
12243 fi
12244 done
12245 fi
12246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12247 if test $ac_cv_c_bigendian = unknown; then
12248 # See if sys/param.h defines the BYTE_ORDER macro.
12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h. */
12251 #include <sys/types.h>
12252 #include <sys/param.h>
12253
12254 int
12255 main ()
12256 {
12257 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12258 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12259 && LITTLE_ENDIAN)
12260 bogus endian macros
12261 #endif
12262
12263 ;
12264 return 0;
12265 }
12266 _ACEOF
12267 if ac_fn_c_try_compile "$LINENO"; then :
12268 # It does; now see whether it defined to BIG_ENDIAN or not.
12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270 /* end confdefs.h. */
12271 #include <sys/types.h>
12272 #include <sys/param.h>
12273
12274 int
12275 main ()
12276 {
12277 #if BYTE_ORDER != BIG_ENDIAN
12278 not big endian
12279 #endif
12280
12281 ;
12282 return 0;
12283 }
12284 _ACEOF
12285 if ac_fn_c_try_compile "$LINENO"; then :
12286 ac_cv_c_bigendian=yes
12287 else
12288 ac_cv_c_bigendian=no
12289 fi
12290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291 fi
12292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12293 fi
12294 if test $ac_cv_c_bigendian = unknown; then
12295 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297 /* end confdefs.h. */
12298 #include <limits.h>
12299
12300 int
12301 main ()
12302 {
12303 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12304 bogus endian macros
12305 #endif
12306
12307 ;
12308 return 0;
12309 }
12310 _ACEOF
12311 if ac_fn_c_try_compile "$LINENO"; then :
12312 # It does; now see whether it defined to _BIG_ENDIAN or not.
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12315 #include <limits.h>
12316
12317 int
12318 main ()
12319 {
12320 #ifndef _BIG_ENDIAN
12321 not big endian
12322 #endif
12323
12324 ;
12325 return 0;
12326 }
12327 _ACEOF
12328 if ac_fn_c_try_compile "$LINENO"; then :
12329 ac_cv_c_bigendian=yes
12330 else
12331 ac_cv_c_bigendian=no
12332 fi
12333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12334 fi
12335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12336 fi
12337 if test $ac_cv_c_bigendian = unknown; then
12338 # Compile a test program.
12339 if test "$cross_compiling" = yes; then :
12340 # Try to guess by grepping values from an object file.
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12343 short int ascii_mm[] =
12344 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12345 short int ascii_ii[] =
12346 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12347 int use_ascii (int i) {
12348 return ascii_mm[i] + ascii_ii[i];
12349 }
12350 short int ebcdic_ii[] =
12351 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12352 short int ebcdic_mm[] =
12353 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12354 int use_ebcdic (int i) {
12355 return ebcdic_mm[i] + ebcdic_ii[i];
12356 }
12357 extern int foo;
12358
12359 int
12360 main ()
12361 {
12362 return use_ascii (foo) == use_ebcdic (foo);
12363 ;
12364 return 0;
12365 }
12366 _ACEOF
12367 if ac_fn_c_try_compile "$LINENO"; then :
12368 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12369 ac_cv_c_bigendian=yes
12370 fi
12371 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12372 if test "$ac_cv_c_bigendian" = unknown; then
12373 ac_cv_c_bigendian=no
12374 else
12375 # finding both strings is unlikely to happen, but who knows?
12376 ac_cv_c_bigendian=unknown
12377 fi
12378 fi
12379 fi
12380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12381 else
12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12384 $ac_includes_default
12385 int
12386 main ()
12387 {
12388
12389 /* Are we little or big endian? From Harbison&Steele. */
12390 union
12391 {
12392 long int l;
12393 char c[sizeof (long int)];
12394 } u;
12395 u.l = 1;
12396 return u.c[sizeof (long int) - 1] == 1;
12397
12398 ;
12399 return 0;
12400 }
12401 _ACEOF
12402 if ac_fn_c_try_run "$LINENO"; then :
12403 ac_cv_c_bigendian=no
12404 else
12405 ac_cv_c_bigendian=yes
12406 fi
12407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12408 conftest.$ac_objext conftest.beam conftest.$ac_ext
12409 fi
12410
12411 fi
12412 fi
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12414 $as_echo "$ac_cv_c_bigendian" >&6; }
12415 case $ac_cv_c_bigendian in #(
12416 yes)
12417 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12418 ;; #(
12419 no)
12420 ;; #(
12421 universal)
12422
12423 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12424
12425 ;; #(
12426 *)
12427 as_fn_error $? "unknown endianness
12428 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12429 esac
12430
12431 # Check whether --enable-largefile was given.
12432 if test "${enable_largefile+set}" = set; then :
12433 enableval=$enable_largefile;
12434 fi
12435
12436 if test "$enable_largefile" != no; then
12437
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12439 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12440 if ${ac_cv_sys_largefile_CC+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 ac_cv_sys_largefile_CC=no
12444 if test "$GCC" != yes; then
12445 ac_save_CC=$CC
12446 while :; do
12447 # IRIX 6.2 and later do not support large files by default,
12448 # so use the C compiler's -n32 option if that helps.
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12451 #include <sys/types.h>
12452 /* Check that off_t can represent 2**63 - 1 correctly.
12453 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12454 since some C++ compilers masquerading as C compilers
12455 incorrectly reject 9223372036854775807. */
12456 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12457 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12458 && LARGE_OFF_T % 2147483647 == 1)
12459 ? 1 : -1];
12460 int
12461 main ()
12462 {
12463
12464 ;
12465 return 0;
12466 }
12467 _ACEOF
12468 if ac_fn_c_try_compile "$LINENO"; then :
12469 break
12470 fi
12471 rm -f core conftest.err conftest.$ac_objext
12472 CC="$CC -n32"
12473 if ac_fn_c_try_compile "$LINENO"; then :
12474 ac_cv_sys_largefile_CC=' -n32'; break
12475 fi
12476 rm -f core conftest.err conftest.$ac_objext
12477 break
12478 done
12479 CC=$ac_save_CC
12480 rm -f conftest.$ac_ext
12481 fi
12482 fi
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12484 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12485 if test "$ac_cv_sys_largefile_CC" != no; then
12486 CC=$CC$ac_cv_sys_largefile_CC
12487 fi
12488
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12490 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12491 if ${ac_cv_sys_file_offset_bits+:} false; then :
12492 $as_echo_n "(cached) " >&6
12493 else
12494 while :; do
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12497 #include <sys/types.h>
12498 /* Check that off_t can represent 2**63 - 1 correctly.
12499 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12500 since some C++ compilers masquerading as C compilers
12501 incorrectly reject 9223372036854775807. */
12502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12503 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12504 && LARGE_OFF_T % 2147483647 == 1)
12505 ? 1 : -1];
12506 int
12507 main ()
12508 {
12509
12510 ;
12511 return 0;
12512 }
12513 _ACEOF
12514 if ac_fn_c_try_compile "$LINENO"; then :
12515 ac_cv_sys_file_offset_bits=no; break
12516 fi
12517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12520 #define _FILE_OFFSET_BITS 64
12521 #include <sys/types.h>
12522 /* Check that off_t can represent 2**63 - 1 correctly.
12523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12524 since some C++ compilers masquerading as C compilers
12525 incorrectly reject 9223372036854775807. */
12526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12528 && LARGE_OFF_T % 2147483647 == 1)
12529 ? 1 : -1];
12530 int
12531 main ()
12532 {
12533
12534 ;
12535 return 0;
12536 }
12537 _ACEOF
12538 if ac_fn_c_try_compile "$LINENO"; then :
12539 ac_cv_sys_file_offset_bits=64; break
12540 fi
12541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12542 ac_cv_sys_file_offset_bits=unknown
12543 break
12544 done
12545 fi
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12547 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12548 case $ac_cv_sys_file_offset_bits in #(
12549 no | unknown) ;;
12550 *)
12551 cat >>confdefs.h <<_ACEOF
12552 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12553 _ACEOF
12554 ;;
12555 esac
12556 rm -rf conftest*
12557 if test $ac_cv_sys_file_offset_bits = unknown; then
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12559 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12560 if ${ac_cv_sys_large_files+:} false; then :
12561 $as_echo_n "(cached) " >&6
12562 else
12563 while :; do
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12566 #include <sys/types.h>
12567 /* Check that off_t can represent 2**63 - 1 correctly.
12568 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12569 since some C++ compilers masquerading as C compilers
12570 incorrectly reject 9223372036854775807. */
12571 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12572 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12573 && LARGE_OFF_T % 2147483647 == 1)
12574 ? 1 : -1];
12575 int
12576 main ()
12577 {
12578
12579 ;
12580 return 0;
12581 }
12582 _ACEOF
12583 if ac_fn_c_try_compile "$LINENO"; then :
12584 ac_cv_sys_large_files=no; break
12585 fi
12586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588 /* end confdefs.h. */
12589 #define _LARGE_FILES 1
12590 #include <sys/types.h>
12591 /* Check that off_t can represent 2**63 - 1 correctly.
12592 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12593 since some C++ compilers masquerading as C compilers
12594 incorrectly reject 9223372036854775807. */
12595 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12596 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12597 && LARGE_OFF_T % 2147483647 == 1)
12598 ? 1 : -1];
12599 int
12600 main ()
12601 {
12602
12603 ;
12604 return 0;
12605 }
12606 _ACEOF
12607 if ac_fn_c_try_compile "$LINENO"; then :
12608 ac_cv_sys_large_files=1; break
12609 fi
12610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12611 ac_cv_sys_large_files=unknown
12612 break
12613 done
12614 fi
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12616 $as_echo "$ac_cv_sys_large_files" >&6; }
12617 case $ac_cv_sys_large_files in #(
12618 no | unknown) ;;
12619 *)
12620 cat >>confdefs.h <<_ACEOF
12621 #define _LARGE_FILES $ac_cv_sys_large_files
12622 _ACEOF
12623 ;;
12624 esac
12625 rm -rf conftest*
12626 fi
12627
12628
12629 fi
12630
12631
12632 # for OpenServer 6.0.0
12633 ac_fn_c_check_header_mongrel "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
12634 if test "x$ac_cv_header_sys_bitypes_h" = xyes; then :
12635
12636 ac_includes_default="\
12637 $ac_includes_default
12638 #include <sys/bitypes.h>"
12639 HAVE_SYS_BITYPES_H=1
12640 $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
12641
12642
12643 fi
12644
12645
12646
12647 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
12648 if test "x$ac_cv_type_u_char" = xyes; then :
12649
12650 else
12651
12652 cat >>confdefs.h <<_ACEOF
12653 #define u_char unsigned char
12654 _ACEOF
12655
12656 fi
12657
12658 ac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "$ac_includes_default"
12659 if test "x$ac_cv_type_u_short" = xyes; then :
12660
12661 else
12662
12663 cat >>confdefs.h <<_ACEOF
12664 #define u_short unsigned short
12665 _ACEOF
12666
12667 fi
12668
12669 ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
12670 if test "x$ac_cv_type_u_int" = xyes; then :
12671
12672 else
12673
12674 cat >>confdefs.h <<_ACEOF
12675 #define u_int unsigned int
12676 _ACEOF
12677
12678 fi
12679
12680 ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
12681 if test "x$ac_cv_type_u_long" = xyes; then :
12682
12683 else
12684
12685 cat >>confdefs.h <<_ACEOF
12686 #define u_long unsigned long
12687 _ACEOF
12688
12689 fi
12690
12691 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
12692 if test "x$ac_cv_type_u_int8_t" = xyes; then :
12693
12694 else
12695
12696 cat >>confdefs.h <<_ACEOF
12697 #define u_int8_t unsigned char
12698 _ACEOF
12699
12700 fi
12701
12702 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
12703 if test "x$ac_cv_type_u_int16_t" = xyes; then :
12704
12705 else
12706
12707 cat >>confdefs.h <<_ACEOF
12708 #define u_int16_t unsigned short
12709 _ACEOF
12710
12711 fi
12712
12713 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
12714 if test "x$ac_cv_type_u_int32_t" = xyes; then :
12715
12716 else
12717
12718 cat >>confdefs.h <<_ACEOF
12719 #define u_int32_t unsigned int
12720 _ACEOF
12721
12722 fi
12723
12724 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
12725 if test "x$ac_cv_type_u_int64_t" = xyes; then :
12726
12727 else
12728
12729 cat >>confdefs.h <<_ACEOF
12730 #define u_int64_t unsigned long
12731 _ACEOF
12732
12733 fi
12734
12735 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
12736 if test "x$ac_cv_type_int8_t" = xyes; then :
12737
12738 else
12739
12740 cat >>confdefs.h <<_ACEOF
12741 #define int8_t char
12742 _ACEOF
12743
12744 fi
12745
12746 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
12747 if test "x$ac_cv_type_int16_t" = xyes; then :
12748
12749 else
12750
12751 cat >>confdefs.h <<_ACEOF
12752 #define int16_t short
12753 _ACEOF
12754
12755 fi
12756
12757 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
12758 if test "x$ac_cv_type_int32_t" = xyes; then :
12759
12760 else
12761
12762 cat >>confdefs.h <<_ACEOF
12763 #define int32_t int
12764 _ACEOF
12765
12766 fi
12767
12768 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12769 if test "x$ac_cv_type_int64_t" = xyes; then :
12770
12771 else
12772
12773 cat >>confdefs.h <<_ACEOF
12774 #define int64_t long
12775 _ACEOF
12776
12777 fi
12778
12779 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12780 if test "x$ac_cv_type_ssize_t" = xyes; then :
12781
12782 else
12783
12784 cat >>confdefs.h <<_ACEOF
12785 #define ssize_t int
12786 _ACEOF
12787
12788 fi
12789
12790
12791 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12792 if test "x$ac_cv_type_mode_t" = xyes; then :
12793
12794 else
12795
12796 cat >>confdefs.h <<_ACEOF
12797 #define mode_t int
12798 _ACEOF
12799
12800 fi
12801
12802 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12803 if test "x$ac_cv_type_pid_t" = xyes; then :
12804
12805 else
12806
12807 cat >>confdefs.h <<_ACEOF
12808 #define pid_t int
12809 _ACEOF
12810
12811 fi
12812
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12814 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12815 if ${ac_cv_type_uid_t+:} false; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h. */
12820 #include <sys/types.h>
12821
12822 _ACEOF
12823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12824 $EGREP "uid_t" >/dev/null 2>&1; then :
12825 ac_cv_type_uid_t=yes
12826 else
12827 ac_cv_type_uid_t=no
12828 fi
12829 rm -f conftest*
12830
12831 fi
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12833 $as_echo "$ac_cv_type_uid_t" >&6; }
12834 if test $ac_cv_type_uid_t = no; then
12835
12836 $as_echo "#define uid_t int" >>confdefs.h
12837
12838
12839 $as_echo "#define gid_t int" >>confdefs.h
12840
12841 fi
12842
12843 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12844 if test "x$ac_cv_type_off_t" = xyes; then :
12845
12846 else
12847
12848 cat >>confdefs.h <<_ACEOF
12849 #define off_t long int
12850 _ACEOF
12851
12852 fi
12853
12854 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12855 if test "x$ac_cv_type_size_t" = xyes; then :
12856
12857 else
12858
12859 cat >>confdefs.h <<_ACEOF
12860 #define size_t unsigned int
12861 _ACEOF
12862
12863 fi
12864
12865
12866
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5
12868 $as_echo_n "checking for typeof syntax and keyword spelling... " >&6; }
12869 if ${ac_cv_c_typeof+:} false; then :
12870 $as_echo_n "(cached) " >&6
12871 else
12872 ac_cv_c_typeof=no
12873 for ac_kw in typeof __typeof__ no; do
12874 test $ac_kw = no && break
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h. */
12877
12878 int
12879 main ()
12880 {
12881
12882 int value;
12883 typedef struct {
12884 char a [1
12885 + ! (($ac_kw (value))
12886 (($ac_kw (value)) 0 < ($ac_kw (value)) -1
12887 ? ($ac_kw (value)) - 1
12888 : ~ (~ ($ac_kw (value)) 0
12889 << sizeof ($ac_kw (value)))))]; }
12890 ac__typeof_type_;
12891 return
12892 (! ((void) ((ac__typeof_type_ *) 0), 0));
12893
12894 ;
12895 return 0;
12896 }
12897 _ACEOF
12898 if ac_fn_c_try_compile "$LINENO"; then :
12899 ac_cv_c_typeof=$ac_kw
12900 fi
12901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12902 test $ac_cv_c_typeof != no && break
12903 done
12904 fi
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5
12906 $as_echo "$ac_cv_c_typeof" >&6; }
12907 if test $ac_cv_c_typeof != no; then
12908
12909 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
12910
12911 if test $ac_cv_c_typeof != typeof; then
12912
12913 cat >>confdefs.h <<_ACEOF
12914 #define typeof $ac_cv_c_typeof
12915 _ACEOF
12916
12917 fi
12918 fi
12919
12920
12921 #
12922 # --- Platform dependent stuff ---
12923 #
12924 bl_cv_cygwin=no
12925 bl_cv_mingw=no
12926 bl_cv_win32=no
12927 case "${host_os}" in
12928 cygwin*)
12929 bl_cv_cygwin=yes
12930 case "${CC} ${CFLAGS}" in
12931 *mno-cygwin* | *-mingw*)
12932 bl_cv_win32=yes
12933
12934 $as_echo "#define USE_WIN32API /**/" >>confdefs.h
12935
12936 ;;
12937 *)
12938 ;;
12939 esac
12940 ;;
12941 mingw*)
12942 bl_cv_mingw=yes
12943 if test ! -f "/lib/libmsys-1.0.dll.a" ; then
12944 case "${lt_cv_path_LD}" in
12945 *-msys*)
12946 ;;
12947 *)
12948 bl_cv_win32=yes
12949
12950 $as_echo "#define USE_WIN32API /**/" >>confdefs.h
12951
12952 ;;
12953 esac
12954 fi
12955 ;;
12956 *)
12957 ;;
12958 esac
12959
12960 #
12961 # --- socklen_t ---
12962 #
12963 # NOTE: #define _BSDTYPES_DEFINED is necessary because AC_TRY_COMPILE defines
12964 # u_char, u_short and so on before #include <ws2tcpip.h> .
12965 #
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
12967 $as_echo_n "checking for socklen_t... " >&6; }
12968 if ${bl_cv_socklen_ident+:} false; then :
12969 $as_echo_n "(cached) " >&6
12970 else
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12973
12974 #include <stddef.h>
12975 #include <sys/types.h>
12976 #include <sys/socket.h>
12977
12978 int
12979 main ()
12980 {
12981
12982 socklen_t len ;
12983
12984 ;
12985 return 0;
12986 }
12987 _ACEOF
12988 if ac_fn_c_try_compile "$LINENO"; then :
12989 bl_cv_socklen_ident=yes
12990 else
12991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12992 /* end confdefs.h. */
12993
12994 #define _BSDTYPES_DEFINED
12995 #include <ws2tcpip.h>
12996
12997 int
12998 main ()
12999 {
13000
13001 socklen_t len ;
13002
13003 ;
13004 return 0;
13005 }
13006 _ACEOF
13007 if ac_fn_c_try_compile "$LINENO"; then :
13008 bl_cv_socklen_ident=yes
13009 else
13010 bl_cv_socklen_ident=no
13011 fi
13012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13013 fi
13014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13015 fi
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bl_cv_socklen_ident" >&5
13017 $as_echo "$bl_cv_socklen_ident" >&6; }
13018 if test "${bl_cv_socklen_ident}" = "no" ; then
13019
13020 $as_echo "#define socklen_t unsigned int" >>confdefs.h
13021
13022 fi
13023
13024 #
13025 # --- Check if concatenation of string literals with __FUNCTION__ is supported. ---
13026 #
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
13028 $as_echo_n "checking for __FUNCTION__... " >&6; }
13029 if ${bl_cv_func_ident+:} false; then :
13030 $as_echo_n "(cached) " >&6
13031 else
13032
13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13035
13036 int
13037 main ()
13038 {
13039
13040 char * p = "[" __FUNCTION__ "]" ;
13041
13042 ;
13043 return 0;
13044 }
13045 _ACEOF
13046 if ac_fn_c_try_compile "$LINENO"; then :
13047 bl_cv_func_ident=yes
13048 else
13049 bl_cv_func_ident=no
13050 fi
13051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13052 fi
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bl_cv_func_ident" >&5
13054 $as_echo "$bl_cv_func_ident" >&6; }
13055 if test "${bl_cv_func_ident}" = "yes" ; then
13056
13057 $as_echo "#define CONCATABLE_FUNCTION /**/" >>confdefs.h
13058
13059 fi
13060
13061
13062 #
13063 # --- Check for libxpg4 (for FreeBSD) ---
13064 #
13065 for ac_func in setlocale
13066 do :
13067 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
13068 if test "x$ac_cv_func_setlocale" = xyes; then :
13069 cat >>confdefs.h <<_ACEOF
13070 #define HAVE_SETLOCALE 1
13071 _ACEOF
13072
13073 fi
13074 done
13075
13076 if test "x$ac_cv_func_setlocale" = xno ; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale in -lxpg4" >&5
13078 $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
13079 if ${ac_cv_lib_xpg4_setlocale+:} false; then :
13080 $as_echo_n "(cached) " >&6
13081 else
13082 ac_check_lib_save_LIBS=$LIBS
13083 LIBS="-lxpg4 $LIBS"
13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h. */
13086
13087 /* Override any GCC internal prototype to avoid an error.
13088 Use char because int might match the return type of a GCC
13089 builtin and then its argument prototype would still apply. */
13090 #ifdef __cplusplus
13091 extern "C"
13092 #endif
13093 char setlocale ();
13094 int
13095 main ()
13096 {
13097 return setlocale ();
13098 ;
13099 return 0;
13100 }
13101 _ACEOF
13102 if ac_fn_c_try_link "$LINENO"; then :
13103 ac_cv_lib_xpg4_setlocale=yes
13104 else
13105 ac_cv_lib_xpg4_setlocale=no
13106 fi
13107 rm -f core conftest.err conftest.$ac_objext \
13108 conftest$ac_exeext conftest.$ac_ext
13109 LIBS=$ac_check_lib_save_LIBS
13110 fi
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4_setlocale" >&5
13112 $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
13113 if test "x$ac_cv_lib_xpg4_setlocale" = xyes; then :
13114 XPG4_LIBS=-lxpg4
13115 fi
13116
13117
13118 fi
13119
13120 #
13121 # --- Checks for dynamic linking loader ---
13122 #
13123 DL_LOADER=none
13124 DL_LIBS=
13125 DL_CFLAGS=
13126 # lt_dlopenext in libltdl
13127
13128 # Check whether --with-libltdl was given.
13129 if test "${with_libltdl+set}" = set; then :
13130 withval=$with_libltdl;
13131 else
13132 with_libltdl=no
13133 fi
13134
13135 if test "x$with_libltdl" != "xno" ; then
13136 if test "x$with_libltdl" != "xyes"; then
13137 DL_CFLAGS="-I$with_libltdl/include"
13138 bl_libltdl_libdir="-L$with_libltdl/lib"
13139 fi
13140 bl_ldflags_save="$LDFLAGS"
13141 LDFLAGS="$LDFLAGS $bl_libltdl_libdir"
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopenext in -lltdl" >&5
13143 $as_echo_n "checking for lt_dlopenext in -lltdl... " >&6; }
13144 if ${ac_cv_lib_ltdl_lt_dlopenext+:} false; then :
13145 $as_echo_n "(cached) " >&6
13146 else
13147 ac_check_lib_save_LIBS=$LIBS
13148 LIBS="-lltdl $LIBS"
13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150 /* end confdefs.h. */
13151
13152 /* Override any GCC internal prototype to avoid an error.
13153 Use char because int might match the return type of a GCC
13154 builtin and then its argument prototype would still apply. */
13155 #ifdef __cplusplus
13156 extern "C"
13157 #endif
13158 char lt_dlopenext ();
13159 int
13160 main ()
13161 {
13162 return lt_dlopenext ();
13163 ;
13164 return 0;
13165 }
13166 _ACEOF
13167 if ac_fn_c_try_link "$LINENO"; then :
13168 ac_cv_lib_ltdl_lt_dlopenext=yes
13169 else
13170 ac_cv_lib_ltdl_lt_dlopenext=no
13171 fi
13172 rm -f core conftest.err conftest.$ac_objext \
13173 conftest$ac_exeext conftest.$ac_ext
13174 LIBS=$ac_check_lib_save_LIBS
13175 fi
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopenext" >&5
13177 $as_echo "$ac_cv_lib_ltdl_lt_dlopenext" >&6; }
13178 if test "x$ac_cv_lib_ltdl_lt_dlopenext" = xyes; then :
13179
13180 DL_LOADER=ltdl
13181 DL_LIBS="$bl_libltdl_libdir -lltdl"
13182
13183 else
13184
13185 echo ""
13186 echo "Could not find libltdl"
13187 echo ""
13188 exit 1
13189 fi
13190
13191 LDFLAGS="$bl_ldflags_save"
13192 fi
13193 # lt_cv_dlopen is set by AC_LIBTOOL_DLOPEN
13194 if test "$DL_LOADER" = none ; then
13195 case "${lt_cv_dlopen}" in
13196 # LoadLibrary (Windows)
13197 LoadLibrary)
13198 DL_LOADER=win32
13199 ;;
13200 # shl_load (HP-UX)
13201 shl_load)
13202 DL_LOADER=dld
13203 ;;
13204 # dlopen (UNIX98)
13205 dlopen)
13206 DL_LOADER=dl
13207 ;;
13208 # What is dld_link? Does anybody know?
13209 dld_link)
13210 DL_LOADER=none
13211 ;;
13212 *)
13213 DL_LOADER=none
13214 ;;
13215 esac
13216 DL_LIBS="${DL_LIBS} ${lt_cv_dlopen_libs}"
13217 if test "$DL_LOADER" = none ; then
13218 # NSLinkModule (darwin)
13219 ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
13220 if test "x$ac_cv_func_NSLinkModule" = xyes; then :
13221
13222 DL_LOADER=dyld
13223 DL_LIBS=
13224
13225 fi
13226
13227 fi
13228
13229 # cygwin hack
13230 # (AC_LIBTOOL_DLOPEN tell lt_cv_dlopen == dlopen but use bl_dlcfn_win32.c.)
13231 # On msys2, use dlopen because bl_dlfcn_win32 doesn't work correctly.
13232 if test "$bl_cv_cygwin" = "yes"; then
13233 DL_LOADER=win32
13234 fi
13235 fi
13236
13237
13238
13239
13240 if test "$DL_LOADER" = none ; then
13241
13242 $as_echo "#define DLFCN_NONE /**/" >>confdefs.h
13243
13244 fi
13245
13246
13247 #
13248 # --- check for undefined symbol ---
13249 #
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for undefined symbol" >&5
13251 $as_echo_n "checking for undefined symbol... " >&6; }
13252 if test "x$allow_undefined_flag" = "xunsupported" ; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
13254 $as_echo "not supported" >&6; }
13255 NO_UNDEFINED_FLAG="-no-undefined"
13256 else
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: supported" >&5
13258 $as_echo "supported" >&6; }
13259 NO_UNDEFINED_FLAG=""
13260 fi
13261
13262
13263 #
13264 # --- pty check ---
13265 #
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pty/tty type" >&5
13267 $as_echo_n "checking for pty/tty type... " >&6; }
13268 if test "$bl_cv_win32" = "yes" ; then
13269 bl_cv_pty=none
13270 elif test "$bl_cv_mingw" = "yes" ; then
13271 bl_cv_pty=streams
13272 elif test "$host" = "$build" ; then
13273 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
13274 if test "x$ac_cv_func_posix_openpt" = xyes; then :
13275
13276
13277 $as_echo "#define HAVE_POSIX_OPENPT /**/" >>confdefs.h
13278
13279 bl_cv_pty=streams
13280
13281 else
13282 bl_cv_pty=bsd
13283 fi
13284
13285 if test "$bl_cv_pty" = "bsd" ; then
13286 if test "$cross_compiling" = yes; then :
13287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13289 as_fn_error $? "cannot run test program while cross compiling
13290 See \`config.log' for more details" "$LINENO" 5; }
13291 else
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13294 #include <sys/stat.h>
13295 #include <fcntl.h>
13296 int
13297 main ()
13298 {
13299 return open( "/dev/ptmx", O_RDWR | O_NOCTTY, 0) == -1;
13300 ;
13301 return 0;
13302 }
13303 _ACEOF
13304 if ac_fn_c_try_run "$LINENO"; then :
13305 bl_cv_pty=streams
13306 fi
13307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13308 conftest.$ac_objext conftest.beam conftest.$ac_ext
13309 fi
13310
13311 fi
13312 else
13313 # cross compiling
13314 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
13315 if test "x$ac_cv_func_posix_openpt" = xyes; then :
13316
13317
13318 $as_echo "#define HAVE_POSIX_OPENPT /**/" >>confdefs.h
13319
13320 bl_cv_pty=streams
13321
13322 else
13323 bl_cv_pty=bsd
13324 fi
13325
13326 fi
13327 # Check whether --enable-pty_helper was given.
13328 if test "${enable_pty_helper+set}" = set; then :
13329 enableval=$enable_pty_helper; pty_helper=$enable_pty_helper
13330 fi
13331
13332 if test "$pty_helper" = yes ; then
13333 if test "$bl_cv_pty" = streams ; then
13334 bl_cv_pty=helper
13335 else
13336 echo ""
13337 echo "** WARNING **"
13338 echo " pty helper is not supported in bsd-style pty system."
13339 echo ""
13340 fi
13341 fi
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bl_cv_pty" >&5
13343 $as_echo "$bl_cv_pty" >&6; }
13344 PTY_NAME="${bl_cv_pty}"
13345
13346
13347
13348 #
13349 # --- checks for utmp ---
13350 #
13351
13352
13353 # Check whether --with-utmp was given.
13354 if test "${with_utmp+set}" = set; then :
13355 withval=$with_utmp; utmp_type=$with_utmp
13356 fi
13357
13358
13359 UTMP_NAME=
13360 UTMP_LIBS=
13361 if test "$bl_cv_pty" = helper -o "$bl_cv_mingw" = yes -o "$bl_cv_cygwin" = yes -o "$host_os" = "msys" -o "$host_os" = "haiku"; then
13362 UTMP_NAME=none
13363 UTMP_LIBS=
13364 fi
13365
13366 # libutempter
13367 if test "$utmp_type" = "" -o "$utmp_type" = "utempter"; then
13368 if test -z "$UTMP_NAME"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utempter_add_record in -lutempter" >&5
13370 $as_echo_n "checking for utempter_add_record in -lutempter... " >&6; }
13371 if ${ac_cv_lib_utempter_utempter_add_record+:} false; then :
13372 $as_echo_n "(cached) " >&6
13373 else
13374 ac_check_lib_save_LIBS=$LIBS
13375 LIBS="-lutempter $LIBS"
13376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h. */
13378
13379 /* Override any GCC internal prototype to avoid an error.
13380 Use char because int might match the return type of a GCC
13381 builtin and then its argument prototype would still apply. */
13382 #ifdef __cplusplus
13383 extern "C"
13384 #endif
13385 char utempter_add_record ();
13386 int
13387 main ()
13388 {
13389 return utempter_add_record ();
13390 ;
13391 return 0;
13392 }
13393 _ACEOF
13394 if ac_fn_c_try_link "$LINENO"; then :
13395 ac_cv_lib_utempter_utempter_add_record=yes
13396 else
13397 ac_cv_lib_utempter_utempter_add_record=no
13398 fi
13399 rm -f core conftest.err conftest.$ac_objext \
13400 conftest$ac_exeext conftest.$ac_ext
13401 LIBS=$ac_check_lib_save_LIBS
13402 fi
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_utempter_utempter_add_record" >&5
13404 $as_echo "$ac_cv_lib_utempter_utempter_add_record" >&6; }
13405 if test "x$ac_cv_lib_utempter_utempter_add_record" = xyes; then :
13406
13407 UTMP_NAME=utmper
13408 UTMP_LIBS="-lutempter"
13409 UTMP_CFLAGS="-DUTEMPTER_NEW_API"
13410
13411 fi
13412
13413 fi
13414 if test -z "$UTMP_NAME"; then
13415 # FreeBSD
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utempter_add_record in -lulog" >&5
13417 $as_echo_n "checking for utempter_add_record in -lulog... " >&6; }
13418 if ${ac_cv_lib_ulog_utempter_add_record+:} false; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421 ac_check_lib_save_LIBS=$LIBS
13422 LIBS="-lulog $LIBS"
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13425
13426 /* Override any GCC internal prototype to avoid an error.
13427 Use char because int might match the return type of a GCC
13428 builtin and then its argument prototype would still apply. */
13429 #ifdef __cplusplus
13430 extern "C"
13431 #endif
13432 char utempter_add_record ();
13433 int
13434 main ()
13435 {
13436 return utempter_add_record ();
13437 ;
13438 return 0;
13439 }
13440 _ACEOF
13441 if ac_fn_c_try_link "$LINENO"; then :
13442 ac_cv_lib_ulog_utempter_add_record=yes
13443 else
13444 ac_cv_lib_ulog_utempter_add_record=no
13445 fi
13446 rm -f core conftest.err conftest.$ac_objext \
13447 conftest$ac_exeext conftest.$ac_ext
13448 LIBS=$ac_check_lib_save_LIBS
13449 fi
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ulog_utempter_add_record" >&5
13451 $as_echo "$ac_cv_lib_ulog_utempter_add_record" >&6; }
13452 if test "x$ac_cv_lib_ulog_utempter_add_record" = xyes; then :
13453
13454 UTMP_NAME=utmper
13455 UTMP_LIBS="-lulog"
13456 UTMP_CFLAGS="-DUTEMPTER_NEW_API"
13457
13458 fi
13459
13460 fi
13461 if test -z "$UTMP_NAME" ; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addToUtmp in -lutempter" >&5
13463 $as_echo_n "checking for addToUtmp in -lutempter... " >&6; }
13464 if ${ac_cv_lib_utempter_addToUtmp+:} false; then :
13465 $as_echo_n "(cached) " >&6
13466 else
13467 ac_check_lib_save_LIBS=$LIBS
13468 LIBS="-lutempter $LIBS"
13469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h. */
13471
13472 /* Override any GCC internal prototype to avoid an error.
13473 Use char because int might match the return type of a GCC
13474 builtin and then its argument prototype would still apply. */
13475 #ifdef __cplusplus
13476 extern "C"
13477 #endif
13478 char addToUtmp ();
13479 int
13480 main ()
13481 {
13482 return addToUtmp ();
13483 ;
13484 return 0;
13485 }
13486 _ACEOF
13487 if ac_fn_c_try_link "$LINENO"; then :
13488 ac_cv_lib_utempter_addToUtmp=yes
13489 else
13490 ac_cv_lib_utempter_addToUtmp=no
13491 fi
13492 rm -f core conftest.err conftest.$ac_objext \
13493 conftest$ac_exeext conftest.$ac_ext
13494 LIBS=$ac_check_lib_save_LIBS
13495 fi
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_utempter_addToUtmp" >&5
13497 $as_echo "$ac_cv_lib_utempter_addToUtmp" >&6; }
13498 if test "x$ac_cv_lib_utempter_addToUtmp" = xyes; then :
13499
13500 UTMP_NAME=utmper
13501 UTMP_LIBS="-lutempter -lutil"
13502
13503 fi
13504
13505 fi
13506 fi
13507
13508 # setutxent() (SysV)
13509 if test "$utmp_type" = "" -o "$utmp_type" = "sysv"; then
13510 if test -z "$UTMP_NAME"; then
13511 ac_fn_c_check_func "$LINENO" "setutxent" "ac_cv_func_setutxent"
13512 if test "x$ac_cv_func_setutxent" = xyes; then :
13513
13514 UTMP_NAME=sysv
13515 UTMP_LIBS=
13516 UTMP_CFLAGS=-DUSE_UTMPX
13517
13518 fi
13519
13520 fi
13521
13522 # setutent() (SysV)
13523 if test -z "$UTMP_NAME"; then
13524 ac_fn_c_check_func "$LINENO" "setutent" "ac_cv_func_setutent"
13525 if test "x$ac_cv_func_setutent" = xyes; then :
13526
13527 UTMP_NAME=sysv
13528 UTMP_LIBS=
13529
13530 fi
13531
13532 fi
13533 fi
13534
13535 # libutil
13536 if test "$utmp_type" = "" -o "$utmp_type" = "login"; then
13537 if test -z "$UTMP_NAME" ; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logout in -lutil" >&5
13539 $as_echo_n "checking for logout in -lutil... " >&6; }
13540 if ${ac_cv_lib_util_logout+:} false; then :
13541 $as_echo_n "(cached) " >&6
13542 else
13543 ac_check_lib_save_LIBS=$LIBS
13544 LIBS="-lutil $LIBS"
13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h. */
13547
13548 /* Override any GCC internal prototype to avoid an error.
13549 Use char because int might match the return type of a GCC
13550 builtin and then its argument prototype would still apply. */
13551 #ifdef __cplusplus
13552 extern "C"
13553 #endif
13554 char logout ();
13555 int
13556 main ()
13557 {
13558 return logout ();
13559 ;
13560 return 0;
13561 }
13562 _ACEOF
13563 if ac_fn_c_try_link "$LINENO"; then :
13564 ac_cv_lib_util_logout=yes
13565 else
13566 ac_cv_lib_util_logout=no
13567 fi
13568 rm -f core conftest.err conftest.$ac_objext \
13569 conftest$ac_exeext conftest.$ac_ext
13570 LIBS=$ac_check_lib_save_LIBS
13571 fi
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_logout" >&5
13573 $as_echo "$ac_cv_lib_util_logout" >&6; }
13574 if test "x$ac_cv_lib_util_logout" = xyes; then :
13575
13576 UTMP_NAME=login
13577 UTMP_LIBS=-lutil
13578
13579 fi
13580
13581 fi
13582 fi
13583
13584 # other (BSD)
13585 if test "$utmp_type" = "" -o "$utmp_type" = "bsd"; then
13586 if test -z "$UTMP_NAME" ; then
13587 UTMP_NAME=bsd
13588 UTMP_LIBS=
13589 fi
13590 fi
13591
13592 if test -z "$UTMP_NAME" ; then
13593 UTMP_NAME=none
13594 UTMP_LIBS=
13595 fi
13596
13597
13598
13599
13600
13601 #
13602 # --- remove functions mlterm doesn't use ---
13603 #
13604
13605 # Check whether --with-funcs-mlterm-unuse was given.
13606 if test "${with_funcs_mlterm_unuse+set}" = set; then :
13607 withval=$with_funcs_mlterm_unuse; funcs_mlterm_unuse=$with_funcs_mlterm_unuse
13608 else
13609 funcs_mlterm_unuse="yes"
13610 fi
13611
13612 if test "$funcs_mlterm_unuse" = "no" ; then
13613
13614 $as_echo "#define REMOVE_FUNCS_MLTERM_UNUSE /**/" >>confdefs.h
13615
13616 fi
13617
13618 #
13619 # --- check for malloc ---
13620 #
13621 if test "$host" = "$build"; then
13622 if test "$cross_compiling" = yes; then :
13623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13625 as_fn_error $? "cannot run test program while cross compiling
13626 See \`config.log' for more details" "$LINENO" 5; }
13627 else
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 /* end confdefs.h. */
13630
13631 #include <stdlib.h>
13632 #include <stddef.h>
13633 int main() {
13634 return calloc(8, ((1 << (sizeof(size_t) * 8 - 1)) + 1)) ? 1 : 0;
13635 }
13636
13637 _ACEOF
13638 if ac_fn_c_try_run "$LINENO"; then :
13639 $as_echo "#define CALLOC_CHECK_OVERFLOW 1" >>confdefs.h
13640
13641 fi
13642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13643 conftest.$ac_objext conftest.beam conftest.$ac_ext
13644 fi
13645
13646 fi
13647
13648
13649
13650
13651 ac_config_files="$ac_config_files Makefile src/Makefile"
13652
13653 cat >confcache <<\_ACEOF
13654 # This file is a shell script that caches the results of configure
13655 # tests run on this system so they can be shared between configure
13656 # scripts and configure runs, see configure's option --config-cache.
13657 # It is not useful on other systems. If it contains results you don't
13658 # want to keep, you may remove or edit it.
13659 #
13660 # config.status only pays attention to the cache file if you give it
13661 # the --recheck option to rerun configure.
13662 #
13663 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13664 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13665 # following values.
13666
13667 _ACEOF
13668
13669 # The following way of writing the cache mishandles newlines in values,
13670 # but we know of no workaround that is simple, portable, and efficient.
13671 # So, we kill variables containing newlines.
13672 # Ultrix sh set writes to stderr and can't be redirected directly,
13673 # and sets the high bit in the cache file unless we assign to the vars.
13674 (
13675 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13676 eval ac_val=\$$ac_var
13677 case $ac_val in #(
13678 *${as_nl}*)
13679 case $ac_var in #(
13680 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13681 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13682 esac
13683 case $ac_var in #(
13684 _ | IFS | as_nl) ;; #(
13685 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13686 *) { eval $ac_var=; unset $ac_var;} ;;
13687 esac ;;
13688 esac
13689 done
13690
13691 (set) 2>&1 |
13692 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13693 *${as_nl}ac_space=\ *)
13694 # `set' does not quote correctly, so add quotes: double-quote
13695 # substitution turns \\\\ into \\, and sed turns \\ into \.
13696 sed -n \
13697 "s/'/'\\\\''/g;
13698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13699 ;; #(
13700 *)
13701 # `set' quotes correctly as required by POSIX, so do not add quotes.
13702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13703 ;;
13704 esac |
13705 sort
13706 ) |
13707 sed '
13708 /^ac_cv_env_/b end
13709 t clear
13710 :clear
13711 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13712 t end
13713 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13714 :end' >>confcache
13715 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13716 if test -w "$cache_file"; then
13717 if test "x$cache_file" != "x/dev/null"; then
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13719 $as_echo "$as_me: updating cache $cache_file" >&6;}
13720 if test ! -f "$cache_file" || test -h "$cache_file"; then
13721 cat confcache >"$cache_file"
13722 else
13723 case $cache_file in #(
13724 */* | ?:*)
13725 mv -f confcache "$cache_file"$$ &&
13726 mv -f "$cache_file"$$ "$cache_file" ;; #(
13727 *)
13728 mv -f confcache "$cache_file" ;;
13729 esac
13730 fi
13731 fi
13732 else
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13734 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13735 fi
13736 fi
13737 rm -f confcache
13738
13739 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13740 # Let make expand exec_prefix.
13741 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13742
13743 DEFS=-DHAVE_CONFIG_H
13744
13745 ac_libobjs=
13746 ac_ltlibobjs=
13747 U=
13748 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13749 # 1. Remove the extension, and $U if already installed.
13750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13751 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13753 # will be set to the directory where LIBOBJS objects are built.
13754 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13755 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13756 done
13757 LIBOBJS=$ac_libobjs
13758
13759 LTLIBOBJS=$ac_ltlibobjs
13760
13761
13762
13763
13764 : "${CONFIG_STATUS=./config.status}"
13765 ac_write_fail=0
13766 ac_clean_files_save=$ac_clean_files
13767 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13769 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13770 as_write_fail=0
13771 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13772 #! $SHELL
13773 # Generated by $as_me.
13774 # Run this file to recreate the current configuration.
13775 # Compiler output produced by configure, useful for debugging
13776 # configure, is in config.log if it exists.
13777
13778 debug=false
13779 ac_cs_recheck=false
13780 ac_cs_silent=false
13781
13782 SHELL=\${CONFIG_SHELL-$SHELL}
13783 export SHELL
13784 _ASEOF
13785 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13786 ## -------------------- ##
13787 ## M4sh Initialization. ##
13788 ## -------------------- ##
13789
13790 # Be more Bourne compatible
13791 DUALCASE=1; export DUALCASE # for MKS sh
13792 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13793 emulate sh
13794 NULLCMD=:
13795 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13796 # is contrary to our usage. Disable this feature.
13797 alias -g '${1+"$@"}'='"$@"'
13798 setopt NO_GLOB_SUBST
13799 else
13800 case `(set -o) 2>/dev/null` in #(
13801 *posix*) :
13802 set -o posix ;; #(
13803 *) :
13804 ;;
13805 esac
13806 fi
13807
13808
13809 as_nl='
13810 '
13811 export as_nl
13812 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13813 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13814 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13815 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13816 # Prefer a ksh shell builtin over an external printf program on Solaris,
13817 # but without wasting forks for bash or zsh.
13818 if test -z "$BASH_VERSION$ZSH_VERSION" \
13819 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13820 as_echo='print -r --'
13821 as_echo_n='print -rn --'
13822 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13823 as_echo='printf %s\n'
13824 as_echo_n='printf %s'
13825 else
13826 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13827 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13828 as_echo_n='/usr/ucb/echo -n'
13829 else
13830 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13831 as_echo_n_body='eval
13832 arg=$1;
13833 case $arg in #(
13834 *"$as_nl"*)
13835 expr "X$arg" : "X\\(.*\\)$as_nl";
13836 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13837 esac;
13838 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13839 '
13840 export as_echo_n_body
13841 as_echo_n='sh -c $as_echo_n_body as_echo'
13842 fi
13843 export as_echo_body
13844 as_echo='sh -c $as_echo_body as_echo'
13845 fi
13846
13847 # The user is always right.
13848 if test "${PATH_SEPARATOR+set}" != set; then
13849 PATH_SEPARATOR=:
13850 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13851 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13852 PATH_SEPARATOR=';'
13853 }
13854 fi
13855
13856
13857 # IFS
13858 # We need space, tab and new line, in precisely that order. Quoting is
13859 # there to prevent editors from complaining about space-tab.
13860 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13861 # splitting by setting IFS to empty value.)
13862 IFS=" "" $as_nl"
13863
13864 # Find who we are. Look in the path if we contain no directory separator.
13865 as_myself=
13866 case $0 in #((
13867 *[\\/]* ) as_myself=$0 ;;
13868 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869 for as_dir in $PATH
13870 do
13871 IFS=$as_save_IFS
13872 test -z "$as_dir" && as_dir=.
13873 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13874 done
13875 IFS=$as_save_IFS
13876
13877 ;;
13878 esac
13879 # We did not find ourselves, most probably we were run as `sh COMMAND'
13880 # in which case we are not to be found in the path.
13881 if test "x$as_myself" = x; then
13882 as_myself=$0
13883 fi
13884 if test ! -f "$as_myself"; then
13885 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13886 exit 1
13887 fi
13888
13889 # Unset variables that we do not need and which cause bugs (e.g. in
13890 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13891 # suppresses any "Segmentation fault" message there. '((' could
13892 # trigger a bug in pdksh 5.2.14.
13893 for as_var in BASH_ENV ENV MAIL MAILPATH
13894 do eval test x\${$as_var+set} = xset \
13895 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13896 done
13897 PS1='$ '
13898 PS2='> '
13899 PS4='+ '
13900
13901 # NLS nuisances.
13902 LC_ALL=C
13903 export LC_ALL
13904 LANGUAGE=C
13905 export LANGUAGE
13906
13907 # CDPATH.
13908 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13909
13910
13911 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13912 # ----------------------------------------
13913 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13914 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13915 # script with STATUS, using 1 if that was 0.
13916 as_fn_error ()
13917 {
13918 as_status=$1; test $as_status -eq 0 && as_status=1
13919 if test "$4"; then
13920 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13921 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13922 fi
13923 $as_echo "$as_me: error: $2" >&2
13924 as_fn_exit $as_status
13925 } # as_fn_error
13926
13927
13928 # as_fn_set_status STATUS
13929 # -----------------------
13930 # Set $? to STATUS, without forking.
13931 as_fn_set_status ()
13932 {
13933 return $1
13934 } # as_fn_set_status
13935
13936 # as_fn_exit STATUS
13937 # -----------------
13938 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13939 as_fn_exit ()
13940 {
13941 set +e
13942 as_fn_set_status $1
13943 exit $1
13944 } # as_fn_exit
13945
13946 # as_fn_unset VAR
13947 # ---------------
13948 # Portably unset VAR.
13949 as_fn_unset ()
13950 {
13951 { eval $1=; unset $1;}
13952 }
13953 as_unset=as_fn_unset
13954 # as_fn_append VAR VALUE
13955 # ----------------------
13956 # Append the text in VALUE to the end of the definition contained in VAR. Take
13957 # advantage of any shell optimizations that allow amortized linear growth over
13958 # repeated appends, instead of the typical quadratic growth present in naive
13959 # implementations.
13960 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13961 eval 'as_fn_append ()
13962 {
13963 eval $1+=\$2
13964 }'
13965 else
13966 as_fn_append ()
13967 {
13968 eval $1=\$$1\$2
13969 }
13970 fi # as_fn_append
13971
13972 # as_fn_arith ARG...
13973 # ------------------
13974 # Perform arithmetic evaluation on the ARGs, and store the result in the
13975 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13976 # must be portable across $(()) and expr.
13977 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13978 eval 'as_fn_arith ()
13979 {
13980 as_val=$(( $* ))
13981 }'
13982 else
13983 as_fn_arith ()
13984 {
13985 as_val=`expr "$@" || test $? -eq 1`
13986 }
13987 fi # as_fn_arith
13988
13989
13990 if expr a : '\(a\)' >/dev/null 2>&1 &&
13991 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13992 as_expr=expr
13993 else
13994 as_expr=false
13995 fi
13996
13997 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13998 as_basename=basename
13999 else
14000 as_basename=false
14001 fi
14002
14003 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14004 as_dirname=dirname
14005 else
14006 as_dirname=false
14007 fi
14008
14009 as_me=`$as_basename -- "$0" ||
14010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14011 X"$0" : 'X\(//\)$' \| \
14012 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14013 $as_echo X/"$0" |
14014 sed '/^.*\/\([^/][^/]*\)\/*$/{
14015 s//\1/
14016 q
14017 }
14018 /^X\/\(\/\/\)$/{
14019 s//\1/
14020 q
14021 }
14022 /^X\/\(\/\).*/{
14023 s//\1/
14024 q
14025 }
14026 s/.*/./; q'`
14027
14028 # Avoid depending upon Character Ranges.
14029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14032 as_cr_digits='0123456789'
14033 as_cr_alnum=$as_cr_Letters$as_cr_digits
14034
14035 ECHO_C= ECHO_N= ECHO_T=
14036 case `echo -n x` in #(((((
14037 -n*)
14038 case `echo 'xy\c'` in
14039 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14040 xy) ECHO_C='\c';;
14041 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14042 ECHO_T=' ';;
14043 esac;;
14044 *)
14045 ECHO_N='-n';;
14046 esac
14047
14048 rm -f conf$$ conf$$.exe conf$$.file
14049 if test -d conf$$.dir; then
14050 rm -f conf$$.dir/conf$$.file
14051 else
14052 rm -f conf$$.dir
14053 mkdir conf$$.dir 2>/dev/null
14054 fi
14055 if (echo >conf$$.file) 2>/dev/null; then
14056 if ln -s conf$$.file conf$$ 2>/dev/null; then
14057 as_ln_s='ln -s'
14058 # ... but there are two gotchas:
14059 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14060 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14061 # In both cases, we have to default to `cp -pR'.
14062 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14063 as_ln_s='cp -pR'
14064 elif ln conf$$.file conf$$ 2>/dev/null; then
14065 as_ln_s=ln
14066 else
14067 as_ln_s='cp -pR'
14068 fi
14069 else
14070 as_ln_s='cp -pR'
14071 fi
14072 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14073 rmdir conf$$.dir 2>/dev/null
14074
14075
14076 # as_fn_mkdir_p
14077 # -------------
14078 # Create "$as_dir" as a directory, including parents if necessary.
14079 as_fn_mkdir_p ()
14080 {
14081
14082 case $as_dir in #(
14083 -*) as_dir=./$as_dir;;
14084 esac
14085 test -d "$as_dir" || eval $as_mkdir_p || {
14086 as_dirs=
14087 while :; do
14088 case $as_dir in #(
14089 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14090 *) as_qdir=$as_dir;;
14091 esac
14092 as_dirs="'$as_qdir' $as_dirs"
14093 as_dir=`$as_dirname -- "$as_dir" ||
14094 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14095 X"$as_dir" : 'X\(//\)[^/]' \| \
14096 X"$as_dir" : 'X\(//\)$' \| \
14097 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14098 $as_echo X"$as_dir" |
14099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14100 s//\1/
14101 q
14102 }
14103 /^X\(\/\/\)[^/].*/{
14104 s//\1/
14105 q
14106 }
14107 /^X\(\/\/\)$/{
14108 s//\1/
14109 q
14110 }
14111 /^X\(\/\).*/{
14112 s//\1/
14113 q
14114 }
14115 s/.*/./; q'`
14116 test -d "$as_dir" && break
14117 done
14118 test -z "$as_dirs" || eval "mkdir $as_dirs"
14119 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14120
14121
14122 } # as_fn_mkdir_p
14123 if mkdir -p . 2>/dev/null; then
14124 as_mkdir_p='mkdir -p "$as_dir"'
14125 else
14126 test -d ./-p && rmdir ./-p
14127 as_mkdir_p=false
14128 fi
14129
14130
14131 # as_fn_executable_p FILE
14132 # -----------------------
14133 # Test if FILE is an executable regular file.
14134 as_fn_executable_p ()
14135 {
14136 test -f "$1" && test -x "$1"
14137 } # as_fn_executable_p
14138 as_test_x='test -x'
14139 as_executable_p=as_fn_executable_p
14140
14141 # Sed expression to map a string onto a valid CPP name.
14142 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14143
14144 # Sed expression to map a string onto a valid variable name.
14145 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14146
14147
14148 exec 6>&1
14149 ## ----------------------------------- ##
14150 ## Main body of $CONFIG_STATUS script. ##
14151 ## ----------------------------------- ##
14152 _ASEOF
14153 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14154
14155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14156 # Save the log message, to keep $0 and so on meaningful, and to
14157 # report actual input values of CONFIG_FILES etc. instead of their
14158 # values after options handling.
14159 ac_log="
14160 This file was extended by $as_me, which was
14161 generated by GNU Autoconf 2.69. Invocation command line was
14162
14163 CONFIG_FILES = $CONFIG_FILES
14164 CONFIG_HEADERS = $CONFIG_HEADERS
14165 CONFIG_LINKS = $CONFIG_LINKS
14166 CONFIG_COMMANDS = $CONFIG_COMMANDS
14167 $ $0 $@
14168
14169 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14170 "
14171
14172 _ACEOF
14173
14174 case $ac_config_files in *"
14175 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14176 esac
14177
14178 case $ac_config_headers in *"
14179 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14180 esac
14181
14182
14183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14184 # Files that config.status was made for.
14185 config_files="$ac_config_files"
14186 config_headers="$ac_config_headers"
14187 config_commands="$ac_config_commands"
14188
14189 _ACEOF
14190
14191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14192 ac_cs_usage="\
14193 \`$as_me' instantiates files and other configuration actions
14194 from templates according to the current configuration. Unless the files
14195 and actions are specified as TAGs, all are instantiated by default.
14196
14197 Usage: $0 [OPTION]... [TAG]...
14198
14199 -h, --help print this help, then exit
14200 -V, --version print version number and configuration settings, then exit
14201 --config print configuration, then exit
14202 -q, --quiet, --silent
14203 do not print progress messages
14204 -d, --debug don't remove temporary files
14205 --recheck update $as_me by reconfiguring in the same conditions
14206 --file=FILE[:TEMPLATE]
14207 instantiate the configuration file FILE
14208 --header=FILE[:TEMPLATE]
14209 instantiate the configuration header FILE
14210
14211 Configuration files:
14212 $config_files
14213
14214 Configuration headers:
14215 $config_headers
14216
14217 Configuration commands:
14218 $config_commands
14219
14220 Report bugs to the package provider."
14221
14222 _ACEOF
14223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14224 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14225 ac_cs_version="\\
14226 config.status
14227 configured by $0, generated by GNU Autoconf 2.69,
14228 with options \\"\$ac_cs_config\\"
14229
14230 Copyright (C) 2012 Free Software Foundation, Inc.
14231 This config.status script is free software; the Free Software Foundation
14232 gives unlimited permission to copy, distribute and modify it."
14233
14234 ac_pwd='$ac_pwd'
14235 srcdir='$srcdir'
14236 INSTALL='$INSTALL'
14237 AWK='$AWK'
14238 test -n "\$AWK" || AWK=awk
14239 _ACEOF
14240
14241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14242 # The default lists apply if the user does not specify any file.
14243 ac_need_defaults=:
14244 while test $# != 0
14245 do
14246 case $1 in
14247 --*=?*)
14248 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14249 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14250 ac_shift=:
14251 ;;
14252 --*=)
14253 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14254 ac_optarg=
14255 ac_shift=:
14256 ;;
14257 *)
14258 ac_option=$1
14259 ac_optarg=$2
14260 ac_shift=shift
14261 ;;
14262 esac
14263
14264 case $ac_option in
14265 # Handling of the options.
14266 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14267 ac_cs_recheck=: ;;
14268 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14269 $as_echo "$ac_cs_version"; exit ;;
14270 --config | --confi | --conf | --con | --co | --c )
14271 $as_echo "$ac_cs_config"; exit ;;
14272 --debug | --debu | --deb | --de | --d | -d )
14273 debug=: ;;
14274 --file | --fil | --fi | --f )
14275 $ac_shift
14276 case $ac_optarg in
14277 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14278 '') as_fn_error $? "missing file argument" ;;
14279 esac
14280 as_fn_append CONFIG_FILES " '$ac_optarg'"
14281 ac_need_defaults=false;;
14282 --header | --heade | --head | --hea )
14283 $ac_shift
14284 case $ac_optarg in
14285 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14286 esac
14287 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14288 ac_need_defaults=false;;
14289 --he | --h)
14290 # Conflict between --help and --header
14291 as_fn_error $? "ambiguous option: \`$1'
14292 Try \`$0 --help' for more information.";;
14293 --help | --hel | -h )
14294 $as_echo "$ac_cs_usage"; exit ;;
14295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14296 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14297 ac_cs_silent=: ;;
14298
14299 # This is an error.
14300 -*) as_fn_error $? "unrecognized option: \`$1'
14301 Try \`$0 --help' for more information." ;;
14302
14303 *) as_fn_append ac_config_targets " $1"
14304 ac_need_defaults=false ;;
14305
14306 esac
14307 shift
14308 done
14309
14310 ac_configure_extra_args=
14311
14312 if $ac_cs_silent; then
14313 exec 6>/dev/null
14314 ac_configure_extra_args="$ac_configure_extra_args --silent"
14315 fi
14316
14317 _ACEOF
14318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14319 if \$ac_cs_recheck; then
14320 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14321 shift
14322 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14323 CONFIG_SHELL='$SHELL'
14324 export CONFIG_SHELL
14325 exec "\$@"
14326 fi
14327
14328 _ACEOF
14329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14330 exec 5>>config.log
14331 {
14332 echo
14333 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14334 ## Running $as_me. ##
14335 _ASBOX
14336 $as_echo "$ac_log"
14337 } >&5
14338
14339 _ACEOF
14340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14341 #
14342 # INIT-COMMANDS
14343 #
14344
14345
14346 # The HP-UX ksh and POSIX shell print the target directory to stdout
14347 # if CDPATH is set.
14348 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14349
14350 sed_quote_subst='$sed_quote_subst'
14351 double_quote_subst='$double_quote_subst'
14352 delay_variable_subst='$delay_variable_subst'
14353 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
14354 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14355 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14356 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14357 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14358 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14359 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14360 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14361 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14362 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14363 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14364 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14365 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14366 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14367 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14368 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14369 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14370 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14371 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14372 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14373 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14374 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14375 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14376 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14377 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14378 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14379 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14380 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14381 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14382 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14383 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14384 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14385 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14386 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14387 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14388 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14389 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14390 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
14391 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14392 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14393 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14394 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14395 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14396 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14397 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
14398 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14399 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14400 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14401 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14402 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14403 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14404 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14405 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14406 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14407 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14408 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14409 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14410 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14411 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14412 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14413 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14414 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"`'
14415 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14416 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14417 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14418 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14419 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14420 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14421 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14422 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14423 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14424 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14425 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14426 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14427 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14428 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14429 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14430 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14431 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14432 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14433 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14434 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14435 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14436 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14437 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14438 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14439 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14440 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14441 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14442 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14443 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14444 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14445 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14446 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14447 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14448 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14449 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14450 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14451 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14452 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14453 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14454 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14455 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14456 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14457 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14458 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14459 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14460 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14461 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14462 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14463 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14464 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14465 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14466 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14467 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14468 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14469 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14470 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14471 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14472 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14473 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14474 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14475 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14476 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14477 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14478 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14479 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14480 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14481 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14482 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14483 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14484 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14485 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14486 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14487 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14488 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14489 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14490 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14491
14492 LTCC='$LTCC'
14493 LTCFLAGS='$LTCFLAGS'
14494 compiler='$compiler_DEFAULT'
14495
14496 # A function that is used when there is no print builtin or printf.
14497 func_fallback_echo ()
14498 {
14499 eval 'cat <<_LTECHO_EOF
14500 \$1
14501 _LTECHO_EOF'
14502 }
14503
14504 # Quote evaled strings.
14505 for var in AS \
14506 DLLTOOL \
14507 OBJDUMP \
14508 SHELL \
14509 ECHO \
14510 PATH_SEPARATOR \
14511 SED \
14512 GREP \
14513 EGREP \
14514 FGREP \
14515 LD \
14516 NM \
14517 LN_S \
14518 lt_SP2NL \
14519 lt_NL2SP \
14520 reload_flag \
14521 FILECMD \
14522 deplibs_check_method \
14523 file_magic_cmd \
14524 file_magic_glob \
14525 want_nocaseglob \
14526 sharedlib_from_linklib_cmd \
14527 AR \
14528 archiver_list_spec \
14529 STRIP \
14530 RANLIB \
14531 CC \
14532 CFLAGS \
14533 compiler \
14534 lt_cv_sys_global_symbol_pipe \
14535 lt_cv_sys_global_symbol_to_cdecl \
14536 lt_cv_sys_global_symbol_to_import \
14537 lt_cv_sys_global_symbol_to_c_name_address \
14538 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14539 lt_cv_nm_interface \
14540 nm_file_list_spec \
14541 lt_cv_truncate_bin \
14542 lt_prog_compiler_no_builtin_flag \
14543 lt_prog_compiler_pic \
14544 lt_prog_compiler_wl \
14545 lt_prog_compiler_static \
14546 lt_cv_prog_compiler_c_o \
14547 need_locks \
14548 MANIFEST_TOOL \
14549 DSYMUTIL \
14550 NMEDIT \
14551 LIPO \
14552 OTOOL \
14553 OTOOL64 \
14554 shrext_cmds \
14555 export_dynamic_flag_spec \
14556 whole_archive_flag_spec \
14557 compiler_needs_object \
14558 with_gnu_ld \
14559 allow_undefined_flag \
14560 no_undefined_flag \
14561 hardcode_libdir_flag_spec \
14562 hardcode_libdir_separator \
14563 exclude_expsyms \
14564 include_expsyms \
14565 file_list_spec \
14566 variables_saved_for_relink \
14567 libname_spec \
14568 library_names_spec \
14569 soname_spec \
14570 install_override_mode \
14571 finish_eval \
14572 old_striplib \
14573 striplib; do
14574 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14575 *[\\\\\\\`\\"\\\$]*)
14576 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14577 ;;
14578 *)
14579 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14580 ;;
14581 esac
14582 done
14583
14584 # Double-quote double-evaled strings.
14585 for var in reload_cmds \
14586 old_postinstall_cmds \
14587 old_postuninstall_cmds \
14588 old_archive_cmds \
14589 extract_expsyms_cmds \
14590 old_archive_from_new_cmds \
14591 old_archive_from_expsyms_cmds \
14592 archive_cmds \
14593 archive_expsym_cmds \
14594 module_cmds \
14595 module_expsym_cmds \
14596 export_symbols_cmds \
14597 prelink_cmds \
14598 postlink_cmds \
14599 postinstall_cmds \
14600 postuninstall_cmds \
14601 finish_cmds \
14602 sys_lib_search_path_spec \
14603 configure_time_dlsearch_path \
14604 configure_time_lt_sys_library_path; do
14605 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14606 *[\\\\\\\`\\"\\\$]*)
14607 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14608 ;;
14609 *)
14610 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14611 ;;
14612 esac
14613 done
14614
14615 ac_aux_dir='$ac_aux_dir'
14616
14617 # See if we are running on zsh, and set the options that allow our
14618 # commands through without removal of \ escapes INIT.
14619 if test -n "\${ZSH_VERSION+set}"; then
14620 setopt NO_GLOB_SUBST
14621 fi
14622
14623
14624 PACKAGE='$PACKAGE'
14625 VERSION='$VERSION'
14626 RM='$RM'
14627 ofile='$ofile'
14628
14629
14630
14631
14632 _ACEOF
14633
14634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14635
14636 # Handling of arguments.
14637 for ac_config_target in $ac_config_targets
14638 do
14639 case $ac_config_target in
14640 "src/bl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/bl_config.h" ;;
14641 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14642 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14643 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14644
14645 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14646 esac
14647 done
14648
14649
14650 # If the user did not use the arguments to specify the items to instantiate,
14651 # then the envvar interface is used. Set only those that are not.
14652 # We use the long form for the default assignment because of an extremely
14653 # bizarre bug on SunOS 4.1.3.
14654 if $ac_need_defaults; then
14655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14656 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14657 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14658 fi
14659
14660 # Have a temporary directory for convenience. Make it in the build tree
14661 # simply because there is no reason against having it here, and in addition,
14662 # creating and moving files from /tmp can sometimes cause problems.
14663 # Hook for its removal unless debugging.
14664 # Note that there is a small window in which the directory will not be cleaned:
14665 # after its creation but before its name has been assigned to `$tmp'.
14666 $debug ||
14667 {
14668 tmp= ac_tmp=
14669 trap 'exit_status=$?
14670 : "${ac_tmp:=$tmp}"
14671 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14672 ' 0
14673 trap 'as_fn_exit 1' 1 2 13 15
14674 }
14675 # Create a (secure) tmp directory for tmp files.
14676
14677 {
14678 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14679 test -d "$tmp"
14680 } ||
14681 {
14682 tmp=./conf$$-$RANDOM
14683 (umask 077 && mkdir "$tmp")
14684 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14685 ac_tmp=$tmp
14686
14687 # Set up the scripts for CONFIG_FILES section.
14688 # No need to generate them if there are no CONFIG_FILES.
14689 # This happens for instance with `./config.status config.h'.
14690 if test -n "$CONFIG_FILES"; then
14691
14692
14693 ac_cr=`echo X | tr X '\015'`
14694 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14695 # But we know of no other shell where ac_cr would be empty at this
14696 # point, so we can use a bashism as a fallback.
14697 if test "x$ac_cr" = x; then
14698 eval ac_cr=\$\'\\r\'
14699 fi
14700 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14701 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14702 ac_cs_awk_cr='\\r'
14703 else
14704 ac_cs_awk_cr=$ac_cr
14705 fi
14706
14707 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14708 _ACEOF
14709
14710
14711 {
14712 echo "cat >conf$$subs.awk <<_ACEOF" &&
14713 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14714 echo "_ACEOF"
14715 } >conf$$subs.sh ||
14716 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14717 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14718 ac_delim='%!_!# '
14719 for ac_last_try in false false false false false :; do
14720 . ./conf$$subs.sh ||
14721 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14722
14723 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14724 if test $ac_delim_n = $ac_delim_num; then
14725 break
14726 elif $ac_last_try; then
14727 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14728 else
14729 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14730 fi
14731 done
14732 rm -f conf$$subs.sh
14733
14734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14735 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14736 _ACEOF
14737 sed -n '
14738 h
14739 s/^/S["/; s/!.*/"]=/
14740 p
14741 g
14742 s/^[^!]*!//
14743 :repl
14744 t repl
14745 s/'"$ac_delim"'$//
14746 t delim
14747 :nl
14748 h
14749 s/\(.\{148\}\)..*/\1/
14750 t more1
14751 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14752 p
14753 n
14754 b repl
14755 :more1
14756 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14757 p
14758 g
14759 s/.\{148\}//
14760 t nl
14761 :delim
14762 h
14763 s/\(.\{148\}\)..*/\1/
14764 t more2
14765 s/["\\]/\\&/g; s/^/"/; s/$/"/
14766 p
14767 b
14768 :more2
14769 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14770 p
14771 g
14772 s/.\{148\}//
14773 t delim
14774 ' <conf$$subs.awk | sed '
14775 /^[^""]/{
14776 N
14777 s/\n//
14778 }
14779 ' >>$CONFIG_STATUS || ac_write_fail=1
14780 rm -f conf$$subs.awk
14781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14782 _ACAWK
14783 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14784 for (key in S) S_is_set[key] = 1
14785 FS = ""
14786
14787 }
14788 {
14789 line = $ 0
14790 nfields = split(line, field, "@")
14791 substed = 0
14792 len = length(field[1])
14793 for (i = 2; i < nfields; i++) {
14794 key = field[i]
14795 keylen = length(key)
14796 if (S_is_set[key]) {
14797 value = S[key]
14798 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14799 len += length(value) + length(field[++i])
14800 substed = 1
14801 } else
14802 len += 1 + keylen
14803 }
14804
14805 print line
14806 }
14807
14808 _ACAWK
14809 _ACEOF
14810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14811 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14812 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14813 else
14814 cat
14815 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14816 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14817 _ACEOF
14818
14819 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14820 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14821 # trailing colons and then remove the whole line if VPATH becomes empty
14822 # (actually we leave an empty line to preserve line numbers).
14823 if test "x$srcdir" = x.; then
14824 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14825 h
14826 s///
14827 s/^/:/
14828 s/[ ]*$/:/
14829 s/:\$(srcdir):/:/g
14830 s/:\${srcdir}:/:/g
14831 s/:@srcdir@:/:/g
14832 s/^:*//
14833 s/:*$//
14834 x
14835 s/\(=[ ]*\).*/\1/
14836 G
14837 s/\n//
14838 s/^[^=]*=[ ]*$//
14839 }'
14840 fi
14841
14842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14843 fi # test -n "$CONFIG_FILES"
14844
14845 # Set up the scripts for CONFIG_HEADERS section.
14846 # No need to generate them if there are no CONFIG_HEADERS.
14847 # This happens for instance with `./config.status Makefile'.
14848 if test -n "$CONFIG_HEADERS"; then
14849 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14850 BEGIN {
14851 _ACEOF
14852
14853 # Transform confdefs.h into an awk script `defines.awk', embedded as
14854 # here-document in config.status, that substitutes the proper values into
14855 # config.h.in to produce config.h.
14856
14857 # Create a delimiter string that does not exist in confdefs.h, to ease
14858 # handling of long lines.
14859 ac_delim='%!_!# '
14860 for ac_last_try in false false :; do
14861 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14862 if test -z "$ac_tt"; then
14863 break
14864 elif $ac_last_try; then
14865 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14866 else
14867 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14868 fi
14869 done
14870
14871 # For the awk script, D is an array of macro values keyed by name,
14872 # likewise P contains macro parameters if any. Preserve backslash
14873 # newline sequences.
14874
14875 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14876 sed -n '
14877 s/.\{148\}/&'"$ac_delim"'/g
14878 t rset
14879 :rset
14880 s/^[ ]*#[ ]*define[ ][ ]*/ /
14881 t def
14882 d
14883 :def
14884 s/\\$//
14885 t bsnl
14886 s/["\\]/\\&/g
14887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14888 D["\1"]=" \3"/p
14889 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14890 d
14891 :bsnl
14892 s/["\\]/\\&/g
14893 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14894 D["\1"]=" \3\\\\\\n"\\/p
14895 t cont
14896 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14897 t cont
14898 d
14899 :cont
14900 n
14901 s/.\{148\}/&'"$ac_delim"'/g
14902 t clear
14903 :clear
14904 s/\\$//
14905 t bsnlc
14906 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14907 d
14908 :bsnlc
14909 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14910 b cont
14911 ' <confdefs.h | sed '
14912 s/'"$ac_delim"'/"\\\
14913 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14914
14915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14916 for (key in D) D_is_set[key] = 1
14917 FS = ""
14918 }
14919 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14920 line = \$ 0
14921 split(line, arg, " ")
14922 if (arg[1] == "#") {
14923 defundef = arg[2]
14924 mac1 = arg[3]
14925 } else {
14926 defundef = substr(arg[1], 2)
14927 mac1 = arg[2]
14928 }
14929 split(mac1, mac2, "(") #)
14930 macro = mac2[1]
14931 prefix = substr(line, 1, index(line, defundef) - 1)
14932 if (D_is_set[macro]) {
14933 # Preserve the white space surrounding the "#".
14934 print prefix "define", macro P[macro] D[macro]
14935 next
14936 } else {
14937 # Replace #undef with comments. This is necessary, for example,
14938 # in the case of _POSIX_SOURCE, which is predefined and required
14939 # on some systems where configure will not decide to define it.
14940 if (defundef == "undef") {
14941 print "/*", prefix defundef, macro, "*/"
14942 next
14943 }
14944 }
14945 }
14946 { print }
14947 _ACAWK
14948 _ACEOF
14949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14950 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14951 fi # test -n "$CONFIG_HEADERS"
14952
14953
14954 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14955 shift
14956 for ac_tag
14957 do
14958 case $ac_tag in
14959 :[FHLC]) ac_mode=$ac_tag; continue;;
14960 esac
14961 case $ac_mode$ac_tag in
14962 :[FHL]*:*);;
14963 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14964 :[FH]-) ac_tag=-:-;;
14965 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14966 esac
14967 ac_save_IFS=$IFS
14968 IFS=:
14969 set x $ac_tag
14970 IFS=$ac_save_IFS
14971 shift
14972 ac_file=$1
14973 shift
14974
14975 case $ac_mode in
14976 :L) ac_source=$1;;
14977 :[FH])
14978 ac_file_inputs=
14979 for ac_f
14980 do
14981 case $ac_f in
14982 -) ac_f="$ac_tmp/stdin";;
14983 *) # Look for the file first in the build tree, then in the source tree
14984 # (if the path is not absolute). The absolute path cannot be DOS-style,
14985 # because $ac_f cannot contain `:'.
14986 test -f "$ac_f" ||
14987 case $ac_f in
14988 [\\/$]*) false;;
14989 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14990 esac ||
14991 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14992 esac
14993 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14994 as_fn_append ac_file_inputs " '$ac_f'"
14995 done
14996
14997 # Let's still pretend it is `configure' which instantiates (i.e., don't
14998 # use $as_me), people would be surprised to read:
14999 # /* config.h. Generated by config.status. */
15000 configure_input='Generated from '`
15001 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15002 `' by configure.'
15003 if test x"$ac_file" != x-; then
15004 configure_input="$ac_file. $configure_input"
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15006 $as_echo "$as_me: creating $ac_file" >&6;}
15007 fi
15008 # Neutralize special characters interpreted by sed in replacement strings.
15009 case $configure_input in #(
15010 *\&* | *\|* | *\\* )
15011 ac_sed_conf_input=`$as_echo "$configure_input" |
15012 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15013 *) ac_sed_conf_input=$configure_input;;
15014 esac
15015
15016 case $ac_tag in
15017 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15018 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15019 esac
15020 ;;
15021 esac
15022
15023 ac_dir=`$as_dirname -- "$ac_file" ||
15024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15025 X"$ac_file" : 'X\(//\)[^/]' \| \
15026 X"$ac_file" : 'X\(//\)$' \| \
15027 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15028 $as_echo X"$ac_file" |
15029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15030 s//\1/
15031 q
15032 }
15033 /^X\(\/\/\)[^/].*/{
15034 s//\1/
15035 q
15036 }
15037 /^X\(\/\/\)$/{
15038 s//\1/
15039 q
15040 }
15041 /^X\(\/\).*/{
15042 s//\1/
15043 q
15044 }
15045 s/.*/./; q'`
15046 as_dir="$ac_dir"; as_fn_mkdir_p
15047 ac_builddir=.
15048
15049 case "$ac_dir" in
15050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15051 *)
15052 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15053 # A ".." for each directory in $ac_dir_suffix.
15054 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15055 case $ac_top_builddir_sub in
15056 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15057 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15058 esac ;;
15059 esac
15060 ac_abs_top_builddir=$ac_pwd
15061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15062 # for backward compatibility:
15063 ac_top_builddir=$ac_top_build_prefix
15064
15065 case $srcdir in
15066 .) # We are building in place.
15067 ac_srcdir=.
15068 ac_top_srcdir=$ac_top_builddir_sub
15069 ac_abs_top_srcdir=$ac_pwd ;;
15070 [\\/]* | ?:[\\/]* ) # Absolute name.
15071 ac_srcdir=$srcdir$ac_dir_suffix;
15072 ac_top_srcdir=$srcdir
15073 ac_abs_top_srcdir=$srcdir ;;
15074 *) # Relative name.
15075 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15076 ac_top_srcdir=$ac_top_build_prefix$srcdir
15077 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15078 esac
15079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15080
15081
15082 case $ac_mode in
15083 :F)
15084 #
15085 # CONFIG_FILE
15086 #
15087
15088 case $INSTALL in
15089 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15090 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15091 esac
15092 _ACEOF
15093
15094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15095 # If the template does not know about datarootdir, expand it.
15096 # FIXME: This hack should be removed a few years after 2.60.
15097 ac_datarootdir_hack=; ac_datarootdir_seen=
15098 ac_sed_dataroot='
15099 /datarootdir/ {
15100 p
15101 q
15102 }
15103 /@datadir@/p
15104 /@docdir@/p
15105 /@infodir@/p
15106 /@localedir@/p
15107 /@mandir@/p'
15108 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15109 *datarootdir*) ac_datarootdir_seen=yes;;
15110 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15112 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15113 _ACEOF
15114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15115 ac_datarootdir_hack='
15116 s&@datadir@&$datadir&g
15117 s&@docdir@&$docdir&g
15118 s&@infodir@&$infodir&g
15119 s&@localedir@&$localedir&g
15120 s&@mandir@&$mandir&g
15121 s&\\\${datarootdir}&$datarootdir&g' ;;
15122 esac
15123 _ACEOF
15124
15125 # Neutralize VPATH when `$srcdir' = `.'.
15126 # Shell code in configure.ac might set extrasub.
15127 # FIXME: do we really want to maintain this feature?
15128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15129 ac_sed_extra="$ac_vpsub
15130 $extrasub
15131 _ACEOF
15132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15133 :t
15134 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15135 s|@configure_input@|$ac_sed_conf_input|;t t
15136 s&@top_builddir@&$ac_top_builddir_sub&;t t
15137 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15138 s&@srcdir@&$ac_srcdir&;t t
15139 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15140 s&@top_srcdir@&$ac_top_srcdir&;t t
15141 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15142 s&@builddir@&$ac_builddir&;t t
15143 s&@abs_builddir@&$ac_abs_builddir&;t t
15144 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15145 s&@INSTALL@&$ac_INSTALL&;t t
15146 $ac_datarootdir_hack
15147 "
15148 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15149 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15150
15151 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15152 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15153 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15154 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15156 which seems to be undefined. Please make sure it is defined" >&5
15157 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15158 which seems to be undefined. Please make sure it is defined" >&2;}
15159
15160 rm -f "$ac_tmp/stdin"
15161 case $ac_file in
15162 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15163 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15164 esac \
15165 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15166 ;;
15167 :H)
15168 #
15169 # CONFIG_HEADER
15170 #
15171 if test x"$ac_file" != x-; then
15172 {
15173 $as_echo "/* $configure_input */" \
15174 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15175 } >"$ac_tmp/config.h" \
15176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15177 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15179 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15180 else
15181 rm -f "$ac_file"
15182 mv "$ac_tmp/config.h" "$ac_file" \
15183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15184 fi
15185 else
15186 $as_echo "/* $configure_input */" \
15187 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15188 || as_fn_error $? "could not create -" "$LINENO" 5
15189 fi
15190 ;;
15191
15192 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15193 $as_echo "$as_me: executing $ac_file commands" >&6;}
15194 ;;
15195 esac
15196
15197
15198 case $ac_file$ac_mode in
15199 "libtool":C)
15200
15201 # See if we are running on zsh, and set the options that allow our
15202 # commands through without removal of \ escapes.
15203 if test -n "${ZSH_VERSION+set}"; then
15204 setopt NO_GLOB_SUBST
15205 fi
15206
15207 cfgfile=${ofile}T
15208 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15209 $RM "$cfgfile"
15210
15211 cat <<_LT_EOF >> "$cfgfile"
15212 #! $SHELL
15213 # Generated automatically by $as_me ($PACKAGE) $VERSION
15214 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15215 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15216
15217 # Provide generalized library-building support services.
15218 # Written by Gordon Matzigkeit, 1996
15219
15220 # Copyright (C) 2014 Free Software Foundation, Inc.
15221 # This is free software; see the source for copying conditions. There is NO
15222 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15223
15224 # GNU Libtool is free software; you can redistribute it and/or modify
15225 # it under the terms of the GNU General Public License as published by
15226 # the Free Software Foundation; either version 2 of of the License, or
15227 # (at your option) any later version.
15228 #
15229 # As a special exception to the GNU General Public License, if you
15230 # distribute this file as part of a program or library that is built
15231 # using GNU Libtool, you may include this file under the same
15232 # distribution terms that you use for the rest of that program.
15233 #
15234 # GNU Libtool is distributed in the hope that it will be useful, but
15235 # WITHOUT ANY WARRANTY; without even the implied warranty of
15236 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15237 # GNU General Public License for more details.
15238 #
15239 # You should have received a copy of the GNU General Public License
15240 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15241
15242
15243 # The names of the tagged configurations supported by this script.
15244 available_tags=''
15245
15246 # Configured defaults for sys_lib_dlsearch_path munging.
15247 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15248
15249 # ### BEGIN LIBTOOL CONFIG
15250
15251 # Assembler program.
15252 AS=$lt_AS
15253
15254 # DLL creation program.
15255 DLLTOOL=$lt_DLLTOOL
15256
15257 # Object dumper program.
15258 OBJDUMP=$lt_OBJDUMP
15259
15260 # Which release of libtool.m4 was used?
15261 macro_version=$macro_version
15262 macro_revision=$macro_revision
15263
15264 # Whether or not to build shared libraries.
15265 build_libtool_libs=$enable_shared
15266
15267 # Whether or not to build static libraries.
15268 build_old_libs=$enable_static
15269
15270 # What type of objects to build.
15271 pic_mode=$pic_mode
15272
15273 # Whether or not to optimize for fast installation.
15274 fast_install=$enable_fast_install
15275
15276 # Shared archive member basename,for filename based shared library versioning on AIX.
15277 shared_archive_member_spec=$shared_archive_member_spec
15278
15279 # Shell to use when invoking shell scripts.
15280 SHELL=$lt_SHELL
15281
15282 # An echo program that protects backslashes.
15283 ECHO=$lt_ECHO
15284
15285 # The PATH separator for the build system.
15286 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15287
15288 # The host system.
15289 host_alias=$host_alias
15290 host=$host
15291 host_os=$host_os
15292
15293 # The build system.
15294 build_alias=$build_alias
15295 build=$build
15296 build_os=$build_os
15297
15298 # A sed program that does not truncate output.
15299 SED=$lt_SED
15300
15301 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15302 Xsed="\$SED -e 1s/^X//"
15303
15304 # A grep program that handles long lines.
15305 GREP=$lt_GREP
15306
15307 # An ERE matcher.
15308 EGREP=$lt_EGREP
15309
15310 # A literal string matcher.
15311 FGREP=$lt_FGREP
15312
15313 # A BSD- or MS-compatible name lister.
15314 NM=$lt_NM
15315
15316 # Whether we need soft or hard links.
15317 LN_S=$lt_LN_S
15318
15319 # What is the maximum length of a command?
15320 max_cmd_len=$max_cmd_len
15321
15322 # Object file suffix (normally "o").
15323 objext=$ac_objext
15324
15325 # Executable file suffix (normally "").
15326 exeext=$exeext
15327
15328 # whether the shell understands "unset".
15329 lt_unset=$lt_unset
15330
15331 # turn spaces into newlines.
15332 SP2NL=$lt_lt_SP2NL
15333
15334 # turn newlines into spaces.
15335 NL2SP=$lt_lt_NL2SP
15336
15337 # convert \$build file names to \$host format.
15338 to_host_file_cmd=$lt_cv_to_host_file_cmd
15339
15340 # convert \$build files to toolchain format.
15341 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15342
15343 # A file(cmd) program that detects file types.
15344 FILECMD=$lt_FILECMD
15345
15346 # Method to check whether dependent libraries are shared objects.
15347 deplibs_check_method=$lt_deplibs_check_method
15348
15349 # Command to use when deplibs_check_method = "file_magic".
15350 file_magic_cmd=$lt_file_magic_cmd
15351
15352 # How to find potential files when deplibs_check_method = "file_magic".
15353 file_magic_glob=$lt_file_magic_glob
15354
15355 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15356 want_nocaseglob=$lt_want_nocaseglob
15357
15358 # Command to associate shared and link libraries.
15359 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15360
15361 # The archiver.
15362 AR=$lt_AR
15363
15364 # Flags to create an archive (by configure).
15365 lt_ar_flags=$lt_ar_flags
15366
15367 # Flags to create an archive.
15368 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
15369
15370 # How to feed a file listing to the archiver.
15371 archiver_list_spec=$lt_archiver_list_spec
15372
15373 # A symbol stripping program.
15374 STRIP=$lt_STRIP
15375
15376 # Commands used to install an old-style archive.
15377 RANLIB=$lt_RANLIB
15378 old_postinstall_cmds=$lt_old_postinstall_cmds
15379 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15380
15381 # Whether to use a lock for old archive extraction.
15382 lock_old_archive_extraction=$lock_old_archive_extraction
15383
15384 # A C compiler.
15385 LTCC=$lt_CC
15386
15387 # LTCC compiler flags.
15388 LTCFLAGS=$lt_CFLAGS
15389
15390 # Take the output of nm and produce a listing of raw symbols and C names.
15391 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15392
15393 # Transform the output of nm in a proper C declaration.
15394 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15395
15396 # Transform the output of nm into a list of symbols to manually relocate.
15397 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15398
15399 # Transform the output of nm in a C name address pair.
15400 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15401
15402 # Transform the output of nm in a C name address pair when lib prefix is needed.
15403 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15404
15405 # The name lister interface.
15406 nm_interface=$lt_lt_cv_nm_interface
15407
15408 # Specify filename containing input files for \$NM.
15409 nm_file_list_spec=$lt_nm_file_list_spec
15410
15411 # The root where to search for dependent libraries,and where our libraries should be installed.
15412 lt_sysroot=$lt_sysroot
15413
15414 # Command to truncate a binary pipe.
15415 lt_truncate_bin=$lt_lt_cv_truncate_bin
15416
15417 # The name of the directory that contains temporary libtool files.
15418 objdir=$objdir
15419
15420 # Used to examine libraries when file_magic_cmd begins with "file".
15421 MAGIC_CMD=$MAGIC_CMD
15422
15423 # Must we lock files when doing compilation?
15424 need_locks=$lt_need_locks
15425
15426 # Manifest tool.
15427 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15428
15429 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15430 DSYMUTIL=$lt_DSYMUTIL
15431
15432 # Tool to change global to local symbols on Mac OS X.
15433 NMEDIT=$lt_NMEDIT
15434
15435 # Tool to manipulate fat objects and archives on Mac OS X.
15436 LIPO=$lt_LIPO
15437
15438 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15439 OTOOL=$lt_OTOOL
15440
15441 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15442 OTOOL64=$lt_OTOOL64
15443
15444 # Old archive suffix (normally "a").
15445 libext=$libext
15446
15447 # Shared library suffix (normally ".so").
15448 shrext_cmds=$lt_shrext_cmds
15449
15450 # The commands to extract the exported symbol list from a shared archive.
15451 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15452
15453 # Variables whose values should be saved in libtool wrapper scripts and
15454 # restored at link time.
15455 variables_saved_for_relink=$lt_variables_saved_for_relink
15456
15457 # Do we need the "lib" prefix for modules?
15458 need_lib_prefix=$need_lib_prefix
15459
15460 # Do we need a version for libraries?
15461 need_version=$need_version
15462
15463 # Library versioning type.
15464 version_type=$version_type
15465
15466 # Shared library runtime path variable.
15467 runpath_var=$runpath_var
15468
15469 # Shared library path variable.
15470 shlibpath_var=$shlibpath_var
15471
15472 # Is shlibpath searched before the hard-coded library search path?
15473 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15474
15475 # Format of library name prefix.
15476 libname_spec=$lt_libname_spec
15477
15478 # List of archive names. First name is the real one, the rest are links.
15479 # The last name is the one that the linker finds with -lNAME
15480 library_names_spec=$lt_library_names_spec
15481
15482 # The coded name of the library, if different from the real name.
15483 soname_spec=$lt_soname_spec
15484
15485 # Permission mode override for installation of shared libraries.
15486 install_override_mode=$lt_install_override_mode
15487
15488 # Command to use after installation of a shared archive.
15489 postinstall_cmds=$lt_postinstall_cmds
15490
15491 # Command to use after uninstallation of a shared archive.
15492 postuninstall_cmds=$lt_postuninstall_cmds
15493
15494 # Commands used to finish a libtool library installation in a directory.
15495 finish_cmds=$lt_finish_cmds
15496
15497 # As "finish_cmds", except a single script fragment to be evaled but
15498 # not shown.
15499 finish_eval=$lt_finish_eval
15500
15501 # Whether we should hardcode library paths into libraries.
15502 hardcode_into_libs=$hardcode_into_libs
15503
15504 # Compile-time system search path for libraries.
15505 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15506
15507 # Detected run-time system search path for libraries.
15508 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15509
15510 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15511 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15512
15513 # Whether dlopen is supported.
15514 dlopen_support=$enable_dlopen
15515
15516 # Whether dlopen of programs is supported.
15517 dlopen_self=$enable_dlopen_self
15518
15519 # Whether dlopen of statically linked programs is supported.
15520 dlopen_self_static=$enable_dlopen_self_static
15521
15522 # Commands to strip libraries.
15523 old_striplib=$lt_old_striplib
15524 striplib=$lt_striplib
15525
15526
15527 # The linker used to build libraries.
15528 LD=$lt_LD
15529
15530 # How to create reloadable object files.
15531 reload_flag=$lt_reload_flag
15532 reload_cmds=$lt_reload_cmds
15533
15534 # Commands used to build an old-style archive.
15535 old_archive_cmds=$lt_old_archive_cmds
15536
15537 # A language specific compiler.
15538 CC=$lt_compiler
15539
15540 # Is the compiler the GNU compiler?
15541 with_gcc=$GCC
15542
15543 # Compiler flag to turn off builtin functions.
15544 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15545
15546 # Additional compiler flags for building library objects.
15547 pic_flag=$lt_lt_prog_compiler_pic
15548
15549 # How to pass a linker flag through the compiler.
15550 wl=$lt_lt_prog_compiler_wl
15551
15552 # Compiler flag to prevent dynamic linking.
15553 link_static_flag=$lt_lt_prog_compiler_static
15554
15555 # Does compiler simultaneously support -c and -o options?
15556 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15557
15558 # Whether or not to add -lc for building shared libraries.
15559 build_libtool_need_lc=$archive_cmds_need_lc
15560
15561 # Whether or not to disallow shared libs when runtime libs are static.
15562 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15563
15564 # Compiler flag to allow reflexive dlopens.
15565 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15566
15567 # Compiler flag to generate shared objects directly from archives.
15568 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15569
15570 # Whether the compiler copes with passing no objects directly.
15571 compiler_needs_object=$lt_compiler_needs_object
15572
15573 # Create an old-style archive from a shared archive.
15574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15575
15576 # Create a temporary old-style archive to link instead of a shared archive.
15577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15578
15579 # Commands used to build a shared archive.
15580 archive_cmds=$lt_archive_cmds
15581 archive_expsym_cmds=$lt_archive_expsym_cmds
15582
15583 # Commands used to build a loadable module if different from building
15584 # a shared archive.
15585 module_cmds=$lt_module_cmds
15586 module_expsym_cmds=$lt_module_expsym_cmds
15587
15588 # Whether we are building with GNU ld or not.
15589 with_gnu_ld=$lt_with_gnu_ld
15590
15591 # Flag that allows shared libraries with undefined symbols to be built.
15592 allow_undefined_flag=$lt_allow_undefined_flag
15593
15594 # Flag that enforces no undefined symbols.
15595 no_undefined_flag=$lt_no_undefined_flag
15596
15597 # Flag to hardcode \$libdir into a binary during linking.
15598 # This must work even if \$libdir does not exist
15599 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15600
15601 # Whether we need a single "-rpath" flag with a separated argument.
15602 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15603
15604 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15605 # DIR into the resulting binary.
15606 hardcode_direct=$hardcode_direct
15607
15608 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15609 # DIR into the resulting binary and the resulting library dependency is
15610 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15611 # library is relocated.
15612 hardcode_direct_absolute=$hardcode_direct_absolute
15613
15614 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15615 # into the resulting binary.
15616 hardcode_minus_L=$hardcode_minus_L
15617
15618 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15619 # into the resulting binary.
15620 hardcode_shlibpath_var=$hardcode_shlibpath_var
15621
15622 # Set to "yes" if building a shared library automatically hardcodes DIR
15623 # into the library and all subsequent libraries and executables linked
15624 # against it.
15625 hardcode_automatic=$hardcode_automatic
15626
15627 # Set to yes if linker adds runtime paths of dependent libraries
15628 # to runtime path list.
15629 inherit_rpath=$inherit_rpath
15630
15631 # Whether libtool must link a program against all its dependency libraries.
15632 link_all_deplibs=$link_all_deplibs
15633
15634 # Set to "yes" if exported symbols are required.
15635 always_export_symbols=$always_export_symbols
15636
15637 # The commands to list exported symbols.
15638 export_symbols_cmds=$lt_export_symbols_cmds
15639
15640 # Symbols that should not be listed in the preloaded symbols.
15641 exclude_expsyms=$lt_exclude_expsyms
15642
15643 # Symbols that must always be exported.
15644 include_expsyms=$lt_include_expsyms
15645
15646 # Commands necessary for linking programs (against libraries) with templates.
15647 prelink_cmds=$lt_prelink_cmds
15648
15649 # Commands necessary for finishing linking programs.
15650 postlink_cmds=$lt_postlink_cmds
15651
15652 # Specify filename containing input files.
15653 file_list_spec=$lt_file_list_spec
15654
15655 # How to hardcode a shared library path into an executable.
15656 hardcode_action=$hardcode_action
15657
15658 # ### END LIBTOOL CONFIG
15659
15660 _LT_EOF
15661
15662 cat <<'_LT_EOF' >> "$cfgfile"
15663
15664 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15665
15666 # func_munge_path_list VARIABLE PATH
15667 # -----------------------------------
15668 # VARIABLE is name of variable containing _space_ separated list of
15669 # directories to be munged by the contents of PATH, which is string
15670 # having a format:
15671 # "DIR[:DIR]:"
15672 # string "DIR[ DIR]" will be prepended to VARIABLE
15673 # ":DIR[:DIR]"
15674 # string "DIR[ DIR]" will be appended to VARIABLE
15675 # "DIRP[:DIRP]::[DIRA:]DIRA"
15676 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15677 # "DIRA[ DIRA]" will be appended to VARIABLE
15678 # "DIR[:DIR]"
15679 # VARIABLE will be replaced by "DIR[ DIR]"
15680 func_munge_path_list ()
15681 {
15682 case x$2 in
15683 x)
15684 ;;
15685 *:)
15686 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15687 ;;
15688 x:*)
15689 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15690 ;;
15691 *::*)
15692 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15693 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15694 ;;
15695 *)
15696 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15697 ;;
15698 esac
15699 }
15700
15701
15702 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15703 func_cc_basename ()
15704 {
15705 for cc_temp in $*""; do
15706 case $cc_temp in
15707 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15708 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15709 \-*) ;;
15710 *) break;;
15711 esac
15712 done
15713 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15714 }
15715
15716
15717 # ### END FUNCTIONS SHARED WITH CONFIGURE
15718
15719 _LT_EOF
15720
15721 case $host_os in
15722 aix3*)
15723 cat <<\_LT_EOF >> "$cfgfile"
15724 # AIX sometimes has problems with the GCC collect2 program. For some
15725 # reason, if we set the COLLECT_NAMES environment variable, the problems
15726 # vanish in a puff of smoke.
15727 if test set != "${COLLECT_NAMES+set}"; then
15728 COLLECT_NAMES=
15729 export COLLECT_NAMES
15730 fi
15731 _LT_EOF
15732 ;;
15733 esac
15734
15735
15736 ltmain=$ac_aux_dir/ltmain.sh
15737
15738
15739 # We use sed instead of cat because bash on DJGPP gets confused if
15740 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15741 # text mode, it properly converts lines to CR/LF. This bash problem
15742 # is reportedly fixed, but why not run on old versions too?
15743 $SED '$q' "$ltmain" >> "$cfgfile" \
15744 || (rm -f "$cfgfile"; exit 1)
15745
15746 mv -f "$cfgfile" "$ofile" ||
15747 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15748 chmod +x "$ofile"
15749
15750 ;;
15751
15752 esac
15753 done # for ac_tag
15754
15755
15756 as_fn_exit 0
15757 _ACEOF
15758 ac_clean_files=$ac_clean_files_save
15759
15760 test $ac_write_fail = 0 ||
15761 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15762
15763
15764 # configure is writing to config.log, and then calls config.status.
15765 # config.status does its own redirection, appending to config.log.
15766 # Unfortunately, on DOS this fails, as config.log is still kept open
15767 # by configure, so config.status won't be able to write to it; its
15768 # output is simply discarded. So we exec the FD to /dev/null,
15769 # effectively closing config.log, so it can be properly (re)opened and
15770 # appended to by config.status. When coming back to configure, we
15771 # need to make the FD available again.
15772 if test "$no_create" != yes; then
15773 ac_cs_success=:
15774 ac_config_status_args=
15775 test "$silent" = yes &&
15776 ac_config_status_args="$ac_config_status_args --quiet"
15777 exec 5>/dev/null
15778 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15779 exec 5>>config.log
15780 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15781 # would make configure fail if this is the last instruction.
15782 $ac_cs_success || as_fn_exit 1
15783 fi
15784 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15786 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15787 fi
15788