Debian Codegraph @

libjte/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libjte 2.0.0.
4 #
5 # Report bugs to <https://www.einval.com/~steve/software/JTE/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: https://www.einval.com/~steve/software/JTE/ about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libjte'
592 PACKAGE_TARNAME='libjte'
593 PACKAGE_VERSION='2.0.0'
594 PACKAGE_STRING='libjte 2.0.0'
595 PACKAGE_BUGREPORT='https://www.einval.com/~steve/software/JTE/'
596 PACKAGE_URL=''
597
598 ac_default_prefix=/usr/local
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBBURNIA_LDCONFIG_CMD
639 PTHREADS_DEF
640 BZIP2_DEF
641 ZLIB_DEF
642 LIBBURNIA_PKGCONFDIR
643 ARCH
644 LIBOBJS
645 LIBTOOL_DEPS
646 LT_SYS_LIBRARY_PATH
647 OTOOL64
648 OTOOL
649 LIPO
650 NMEDIT
651 DSYMUTIL
652 MANIFEST_TOOL
653 RANLIB
654 ac_ct_AR
655 AR
656 DLLTOOL
657 OBJDUMP
658 LN_S
659 NM
660 ac_ct_DUMPBIN
661 DUMPBIN
662 LD
663 FGREP
664 SED
665 LIBTOOL
666 EGREP
667 GREP
668 CPP
669 am__fastdepCC_FALSE
670 am__fastdepCC_TRUE
671 CCDEPMODE
672 am__nodep
673 AMDEPBACKSLASH
674 AMDEP_FALSE
675 AMDEP_TRUE
676 am__include
677 DEPDIR
678 OBJEXT
679 EXEEXT
680 ac_ct_CC
681 CPPFLAGS
682 LDFLAGS
683 CFLAGS
684 CC
685 MAINT
686 MAINTAINER_MODE_FALSE
687 MAINTAINER_MODE_TRUE
688 LT_CURRENT_MINUS_AGE
689 LT_AGE
690 LT_REVISION
691 LT_CURRENT
692 AM_BACKSLASH
693 AM_DEFAULT_VERBOSITY
694 AM_DEFAULT_V
695 AM_V
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
701 AWK
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 target_os
720 target_vendor
721 target_cpu
722 target
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 runstatedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL
770 am__quote'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 enable_silent_rules
775 enable_maintainer_mode
776 enable_dependency_tracking
777 enable_largefile
778 enable_shared
779 enable_static
780 with_pic
781 enable_fast_install
782 with_aix_soname
783 with_gnu_ld
784 with_sysroot
785 enable_libtool_lock
786 enable_libdir_pkgconfig
787 enable_pkgconfig_path
788 enable_libbz2
789 enable_pthreads
790 enable_versioned_libs
791 enable_ldconfig_at_install
792 '
793 ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 LIBS
800 CPPFLAGS
801 CPP
802 LT_SYS_LIBRARY_PATH'
803
804
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 ac_unrecognized_opts=
809 ac_unrecognized_sep=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
812 cache_file=/dev/null
813 exec_prefix=NONE
814 no_create=
815 no_recursion=
816 prefix=NONE
817 program_prefix=NONE
818 program_suffix=NONE
819 program_transform_name=s,x,x,
820 silent=
821 site=
822 srcdir=
823 verbose=
824 x_includes=NONE
825 x_libraries=NONE
826
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 runstatedir='${localstatedir}/run'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
846 htmldir='${docdir}'
847 dvidir='${docdir}'
848 pdfdir='${docdir}'
849 psdir='${docdir}'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
853
854 ac_prev=
855 ac_dashdash=
856 for ac_option
857 do
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
861 ac_prev=
862 continue
863 fi
864
865 case $ac_option in
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 *=) ac_optarg= ;;
868 *) ac_optarg=yes ;;
869 esac
870
871 # Accept the important Cygnus configure options, so we can diagnose typos.
872
873 case $ac_dashdash$ac_option in
874 --)
875 ac_dashdash=yes ;;
876
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 ac_prev=bindir ;;
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 bindir=$ac_optarg ;;
881
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
886
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
893
894 --config-cache | -C)
895 cache_file=config.cache ;;
896
897 -datadir | --datadir | --datadi | --datad)
898 ac_prev=datadir ;;
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
901
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
908
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
924
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
929
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
934
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=\$ac_optarg ;;
950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -runstatedir | --runstatedir | --runstatedi | --runstated \
1095 | --runstate | --runstat | --runsta | --runst | --runs \
1096 | --run | --ru | --r)
1097 ac_prev=runstatedir ;;
1098 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1099 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1100 | --run=* | --ru=* | --r=*)
1101 runstatedir=$ac_optarg ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157 "with_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=\$ac_optarg ;;
1163
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=no ;;
1179
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1183
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1190
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1197
1198 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199 Try \`$0 --help' for more information"
1200 ;;
1201
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1208 esac
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1211
1212 *)
1213 # FIXME: should be removed in autoconf 3.0.
1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218 ;;
1219
1220 esac
1221 done
1222
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error $? "missing argument to $ac_option"
1226 fi
1227
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1230 no) ;;
1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 esac
1234 fi
1235
1236 # Check all directory arguments for consistency.
1237 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir runstatedir
1241 do
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1244 case $ac_val in
1245 */ )
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1248 esac
1249 # Be sure to have absolute directory names.
1250 case $ac_val in
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 esac
1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1255 done
1256
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1260 build=$build_alias
1261 host=$host_alias
1262 target=$target_alias
1263
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 elif test "x$build_alias" != "x$host_alias"; then
1269 cross_compiling=yes
1270 fi
1271 fi
1272
1273 ac_tool_prefix=
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276 test "$silent" = yes && exec 6>/dev/null
1277
1278
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error $? "working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error $? "pwd does not report name of working directory"
1285
1286
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 $as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\).*/{
1310 s//\1/
1311 q
1312 }
1313 s/.*/./; q'`
1314 srcdir=$ac_confdir
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 srcdir=..
1317 fi
1318 else
1319 ac_srcdir_defaulted=no
1320 fi
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324 fi
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 ac_abs_confdir=`(
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328 pwd)`
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 srcdir=.
1332 fi
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1336 case $srcdir in
1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338 esac
1339 for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 done
1345
1346 #
1347 # Report the --help message.
1348 #
1349 if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1352 cat <<_ACEOF
1353 \`configure' configures libjte 2.0.0 to adapt to many kinds of systems.
1354
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE. See below for descriptions of some of the useful variables.
1359
1360 Defaults for the options are specified in brackets.
1361
1362 Configuration:
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking ...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372
1373 Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 [PREFIX]
1378
1379 By default, \`make install' will install all the files in
1380 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382 for instance \`--prefix=\$HOME'.
1383
1384 For better control, use the options below.
1385
1386 Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/libjte]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1407 _ACEOF
1408
1409 cat <<\_ACEOF
1410
1411 Program names:
1412 --program-prefix=PREFIX prepend PREFIX to installed program names
1413 --program-suffix=SUFFIX append SUFFIX to installed program names
1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1415
1416 System types:
1417 --build=BUILD configure for building on BUILD [guessed]
1418 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 --target=TARGET configure for building compilers for TARGET [HOST]
1420 _ACEOF
1421 fi
1422
1423 if test -n "$ac_init_help"; then
1424 case $ac_init_help in
1425 short | recursive ) echo "Configuration of libjte 2.0.0:";;
1426 esac
1427 cat <<\_ACEOF
1428
1429 Optional Features:
1430 --disable-option-checking ignore unrecognized --enable/--with options
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --enable-silent-rules less verbose build output (undo: "make V=1")
1434 --disable-silent-rules verbose build output (undo: "make V=0")
1435 --enable-maintainer-mode
1436 enable make rules and dependencies not useful (and
1437 sometimes confusing) to the casual installer
1438 --enable-dependency-tracking
1439 do not reject slow dependency extractors
1440 --disable-dependency-tracking
1441 speeds up one-time build
1442 --disable-largefile omit support for large files
1443 --enable-shared[=PKGS] build shared libraries [default=yes]
1444 --enable-static[=PKGS] build static libraries [default=yes]
1445 --enable-fast-install[=PKGS]
1446 optimize for fast installation [default=yes]
1447 --disable-libtool-lock avoid locking (might break parallel builds)
1448 --enable-libdir-pkgconfig Install to $libdir/pkgconfig on any OS, default=no
1449 --enable-pkgconfig-path=DIR Absolute path of directory for libjte-*.pc
1450 --enable-libbz2 Enable use of libbz2 by libjte, default=yes
1451 --enable-pthreads Enable use of pthreads by libjte, default=yes
1452 --enable-versioned-libs Enable strict symbol encapsulation , default=yes
1453 --enable-ldconfig-at-install On GNU/Linux run ldconfig, default=yes
1454
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1459 both]
1460 --with-aix-soname=aix|svr4|both
1461 shared library versioning (aka "SONAME") variant to
1462 provide on AIX, [default=aix].
1463 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1464 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1465 compiler's sysroot if not specified).
1466
1467 Some influential environment variables:
1468 CC C compiler command
1469 CFLAGS C compiler flags
1470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 nonstandard directory <lib dir>
1472 LIBS libraries to pass to the linker, e.g. -l<library>
1473 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1474 you have headers in a nonstandard directory <include dir>
1475 CPP C preprocessor
1476 LT_SYS_LIBRARY_PATH
1477 User-defined run-time library search path.
1478
1479 Use these variables to override the choices made by `configure' or to help
1480 it to find libraries and programs with nonstandard names/locations.
1481
1482 Report bugs to <https://www.einval.com/~steve/software/JTE/>.
1483 _ACEOF
1484 ac_status=$?
1485 fi
1486
1487 if test "$ac_init_help" = "recursive"; then
1488 # If there are subdirs, report their specific --help.
1489 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1490 test -d "$ac_dir" ||
1491 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1492 continue
1493 ac_builddir=.
1494
1495 case "$ac_dir" in
1496 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 *)
1498 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1499 # A ".." for each directory in $ac_dir_suffix.
1500 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1501 case $ac_top_builddir_sub in
1502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1504 esac ;;
1505 esac
1506 ac_abs_top_builddir=$ac_pwd
1507 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1508 # for backward compatibility:
1509 ac_top_builddir=$ac_top_build_prefix
1510
1511 case $srcdir in
1512 .) # We are building in place.
1513 ac_srcdir=.
1514 ac_top_srcdir=$ac_top_builddir_sub
1515 ac_abs_top_srcdir=$ac_pwd ;;
1516 [\\/]* | ?:[\\/]* ) # Absolute name.
1517 ac_srcdir=$srcdir$ac_dir_suffix;
1518 ac_top_srcdir=$srcdir
1519 ac_abs_top_srcdir=$srcdir ;;
1520 *) # Relative name.
1521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1522 ac_top_srcdir=$ac_top_build_prefix$srcdir
1523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1524 esac
1525 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526
1527 cd "$ac_dir" || { ac_status=$?; continue; }
1528 # Check for guested configure.
1529 if test -f "$ac_srcdir/configure.gnu"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532 elif test -f "$ac_srcdir/configure"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure" --help=recursive
1535 else
1536 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537 fi || ac_status=$?
1538 cd "$ac_pwd" || { ac_status=$?; break; }
1539 done
1540 fi
1541
1542 test -n "$ac_init_help" && exit $ac_status
1543 if $ac_init_version; then
1544 cat <<\_ACEOF
1545 libjte configure 2.0.0
1546 generated by GNU Autoconf 2.69
1547
1548 Copyright (C) 2012 Free Software Foundation, Inc.
1549 This configure script is free software; the Free Software Foundation
1550 gives unlimited permission to copy, distribute and modify it.
1551 _ACEOF
1552 exit
1553 fi
1554
1555 ## ------------------------ ##
1556 ## Autoconf initialization. ##
1557 ## ------------------------ ##
1558
1559 # ac_fn_c_try_compile LINENO
1560 # --------------------------
1561 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_compile ()
1563 {
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext
1566 if { { ac_try="$ac_compile"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_compile") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest.$ac_objext; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591 fi
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1594
1595 } # ac_fn_c_try_compile
1596
1597 # ac_fn_c_try_run LINENO
1598 # ----------------------
1599 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1600 # that executables *can* be run.
1601 ac_fn_c_try_run ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if { { ac_try="$ac_link"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_link") 2>&5
1612 ac_status=$?
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1615 { { case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_try") 2>&5
1622 ac_status=$?
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; }; }; then :
1625 ac_retval=0
1626 else
1627 $as_echo "$as_me: program exited with status $ac_status" >&5
1628 $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1630
1631 ac_retval=$ac_status
1632 fi
1633 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1636
1637 } # ac_fn_c_try_run
1638
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_cpp ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } > conftest.i && {
1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 }; then :
1664 ac_retval=0
1665 else
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670 fi
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_cpp
1675
1676 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1677 # -------------------------------------------------------
1678 # Tests whether HEADER exists and can be compiled using the include files in
1679 # INCLUDES, setting the cache variable VAR accordingly.
1680 ac_fn_c_check_header_compile ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684 $as_echo_n "checking for $2... " >&6; }
1685 if eval \${$3+:} false; then :
1686 $as_echo_n "(cached) " >&6
1687 else
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1690 $4
1691 #include <$2>
1692 _ACEOF
1693 if ac_fn_c_try_compile "$LINENO"; then :
1694 eval "$3=yes"
1695 else
1696 eval "$3=no"
1697 fi
1698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699 fi
1700 eval ac_res=\$$3
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705 } # ac_fn_c_check_header_compile
1706
1707 # ac_fn_c_try_link LINENO
1708 # -----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_link ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext conftest$ac_exeext
1714 if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1727 fi
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest$ac_exeext && {
1733 test "$cross_compiling" = yes ||
1734 test -x conftest$ac_exeext
1735 }; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=1
1742 fi
1743 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1744 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1745 # interfere with the next link command; also delete a directory that is
1746 # left behind by Apple's compiler. We do this before executing the actions.
1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1750
1751 } # ac_fn_c_try_link
1752
1753 # ac_fn_c_check_func LINENO FUNC VAR
1754 # ----------------------------------
1755 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1756 ac_fn_c_check_func ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1763 else
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1766 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1768 #define $2 innocuous_$2
1769
1770 /* System header to define __stub macros and hopefully few prototypes,
1771 which can conflict with char $2 (); below.
1772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1773 <limits.h> exists even on freestanding compilers. */
1774
1775 #ifdef __STDC__
1776 # include <limits.h>
1777 #else
1778 # include <assert.h>
1779 #endif
1780
1781 #undef $2
1782
1783 /* Override any GCC internal prototype to avoid an error.
1784 Use char because int might match the return type of a GCC
1785 builtin and then its argument prototype would still apply. */
1786 #ifdef __cplusplus
1787 extern "C"
1788 #endif
1789 char $2 ();
1790 /* The GNU C library defines this for functions which it implements
1791 to always fail with ENOSYS. Some functions are actually named
1792 something starting with __ and the normal name is an alias. */
1793 #if defined __stub_$2 || defined __stub___$2
1794 choke me
1795 #endif
1796
1797 int
1798 main ()
1799 {
1800 return $2 ();
1801 ;
1802 return 0;
1803 }
1804 _ACEOF
1805 if ac_fn_c_try_link "$LINENO"; then :
1806 eval "$3=yes"
1807 else
1808 eval "$3=no"
1809 fi
1810 rm -f core conftest.err conftest.$ac_objext \
1811 conftest$ac_exeext conftest.$ac_ext
1812 fi
1813 eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817
1818 } # ac_fn_c_check_func
1819
1820 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1821 # -------------------------------------------------------
1822 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1823 # the include files in INCLUDES and setting the cache variable VAR
1824 # accordingly.
1825 ac_fn_c_check_header_mongrel ()
1826 {
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if eval \${$3+:} false; then :
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1833 fi
1834 eval ac_res=\$$3
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837 else
1838 # Is the header compilable?
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1840 $as_echo_n "checking $2 usability... " >&6; }
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 $4
1844 #include <$2>
1845 _ACEOF
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847 ac_header_compiler=yes
1848 else
1849 ac_header_compiler=no
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1853 $as_echo "$ac_header_compiler" >&6; }
1854
1855 # Is the header present?
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1857 $as_echo_n "checking $2 presence... " >&6; }
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1860 #include <$2>
1861 _ACEOF
1862 if ac_fn_c_try_cpp "$LINENO"; then :
1863 ac_header_preproc=yes
1864 else
1865 ac_header_preproc=no
1866 fi
1867 rm -f conftest.err conftest.i conftest.$ac_ext
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1869 $as_echo "$ac_header_preproc" >&6; }
1870
1871 # So? What about this header?
1872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1873 yes:no: )
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1875 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1877 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1878 ;;
1879 no:yes:* )
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1881 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1883 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1885 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1887 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1889 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1890 ( $as_echo "## ---------------------------------------------------------- ##
1891 ## Report this to https://www.einval.com/~steve/software/JTE/ ##
1892 ## ---------------------------------------------------------- ##"
1893 ) | sed "s/^/$as_me: WARNING: /" >&2
1894 ;;
1895 esac
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if eval \${$3+:} false; then :
1899 $as_echo_n "(cached) " >&6
1900 else
1901 eval "$3=\$ac_header_compiler"
1902 fi
1903 eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 fi
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
1909 } # ac_fn_c_check_header_mongrel
1910
1911 # ac_fn_c_find_intX_t LINENO BITS VAR
1912 # -----------------------------------
1913 # Finds a signed integer type with width BITS, setting cache variable VAR
1914 # accordingly.
1915 ac_fn_c_find_intX_t ()
1916 {
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1919 $as_echo_n "checking for int$2_t... " >&6; }
1920 if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1922 else
1923 eval "$3=no"
1924 # Order is important - never check a type that is potentially smaller
1925 # than half of the expected target width.
1926 for ac_type in int$2_t 'int' 'long int' \
1927 'long long int' 'short int' 'signed char'; do
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 $ac_includes_default
1931 enum { N = $2 / 2 - 1 };
1932 int
1933 main ()
1934 {
1935 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1936 test_array [0] = 0;
1937 return test_array [0];
1938
1939 ;
1940 return 0;
1941 }
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 $ac_includes_default
1947 enum { N = $2 / 2 - 1 };
1948 int
1949 main ()
1950 {
1951 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1952 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1953 test_array [0] = 0;
1954 return test_array [0];
1955
1956 ;
1957 return 0;
1958 }
1959 _ACEOF
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961
1962 else
1963 case $ac_type in #(
1964 int$2_t) :
1965 eval "$3=yes" ;; #(
1966 *) :
1967 eval "$3=\$ac_type" ;;
1968 esac
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 fi
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 if eval test \"x\$"$3"\" = x"no"; then :
1974
1975 else
1976 break
1977 fi
1978 done
1979 fi
1980 eval ac_res=\$$3
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985 } # ac_fn_c_find_intX_t
1986
1987 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1988 # -------------------------------------------
1989 # Tests whether TYPE exists after having included INCLUDES, setting cache
1990 # variable VAR accordingly.
1991 ac_fn_c_check_type ()
1992 {
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995 $as_echo_n "checking for $2... " >&6; }
1996 if eval \${$3+:} false; then :
1997 $as_echo_n "(cached) " >&6
1998 else
1999 eval "$3=no"
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2002 $4
2003 int
2004 main ()
2005 {
2006 if (sizeof ($2))
2007 return 0;
2008 ;
2009 return 0;
2010 }
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2015 $4
2016 int
2017 main ()
2018 {
2019 if (sizeof (($2)))
2020 return 0;
2021 ;
2022 return 0;
2023 }
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026
2027 else
2028 eval "$3=yes"
2029 fi
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 fi
2034 eval ac_res=\$$3
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038
2039 } # ac_fn_c_check_type
2040
2041 # ac_fn_c_find_uintX_t LINENO BITS VAR
2042 # ------------------------------------
2043 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2044 # accordingly.
2045 ac_fn_c_find_uintX_t ()
2046 {
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2049 $as_echo_n "checking for uint$2_t... " >&6; }
2050 if eval \${$3+:} false; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 eval "$3=no"
2054 # Order is important - never check a type that is potentially smaller
2055 # than half of the expected target width.
2056 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2057 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2060 $ac_includes_default
2061 int
2062 main ()
2063 {
2064 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2065 test_array [0] = 0;
2066 return test_array [0];
2067
2068 ;
2069 return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 case $ac_type in #(
2074 uint$2_t) :
2075 eval "$3=yes" ;; #(
2076 *) :
2077 eval "$3=\$ac_type" ;;
2078 esac
2079 fi
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 if eval test \"x\$"$3"\" = x"no"; then :
2082
2083 else
2084 break
2085 fi
2086 done
2087 fi
2088 eval ac_res=\$$3
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092
2093 } # ac_fn_c_find_uintX_t
2094 cat >config.log <<_ACEOF
2095 This file contains any messages produced by compilers while
2096 running configure, to aid debugging if configure makes a mistake.
2097
2098 It was created by libjte $as_me 2.0.0, which was
2099 generated by GNU Autoconf 2.69. Invocation command line was
2100
2101 $ $0 $@
2102
2103 _ACEOF
2104 exec 5>>config.log
2105 {
2106 cat <<_ASUNAME
2107 ## --------- ##
2108 ## Platform. ##
2109 ## --------- ##
2110
2111 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2112 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2113 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2114 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2115 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2116
2117 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2118 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2119
2120 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2121 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2122 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2123 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2124 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2125 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2126 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2127
2128 _ASUNAME
2129
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH
2132 do
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 $as_echo "PATH: $as_dir"
2136 done
2137 IFS=$as_save_IFS
2138
2139 } >&5
2140
2141 cat >&5 <<_ACEOF
2142
2143
2144 ## ----------- ##
2145 ## Core tests. ##
2146 ## ----------- ##
2147
2148 _ACEOF
2149
2150
2151 # Keep a trace of the command line.
2152 # Strip out --no-create and --no-recursion so they do not pile up.
2153 # Strip out --silent because we don't want to record it for future runs.
2154 # Also quote any args containing shell meta-characters.
2155 # Make two passes to allow for proper duplicate-argument suppression.
2156 ac_configure_args=
2157 ac_configure_args0=
2158 ac_configure_args1=
2159 ac_must_keep_next=false
2160 for ac_pass in 1 2
2161 do
2162 for ac_arg
2163 do
2164 case $ac_arg in
2165 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2167 | -silent | --silent | --silen | --sile | --sil)
2168 continue ;;
2169 *\'*)
2170 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2171 esac
2172 case $ac_pass in
2173 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2174 2)
2175 as_fn_append ac_configure_args1 " '$ac_arg'"
2176 if test $ac_must_keep_next = true; then
2177 ac_must_keep_next=false # Got value, back to normal.
2178 else
2179 case $ac_arg in
2180 *=* | --config-cache | -C | -disable-* | --disable-* \
2181 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2182 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2183 | -with-* | --with-* | -without-* | --without-* | --x)
2184 case "$ac_configure_args0 " in
2185 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2186 esac
2187 ;;
2188 -* ) ac_must_keep_next=true ;;
2189 esac
2190 fi
2191 as_fn_append ac_configure_args " '$ac_arg'"
2192 ;;
2193 esac
2194 done
2195 done
2196 { ac_configure_args0=; unset ac_configure_args0;}
2197 { ac_configure_args1=; unset ac_configure_args1;}
2198
2199 # When interrupted or exit'd, cleanup temporary files, and complete
2200 # config.log. We remove comments because anyway the quotes in there
2201 # would cause problems or look ugly.
2202 # WARNING: Use '\'' to represent an apostrophe within the trap.
2203 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2204 trap 'exit_status=$?
2205 # Save into config.log some information that might help in debugging.
2206 {
2207 echo
2208
2209 $as_echo "## ---------------- ##
2210 ## Cache variables. ##
2211 ## ---------------- ##"
2212 echo
2213 # The following way of writing the cache mishandles newlines in values,
2214 (
2215 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2216 eval ac_val=\$$ac_var
2217 case $ac_val in #(
2218 *${as_nl}*)
2219 case $ac_var in #(
2220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2221 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2222 esac
2223 case $ac_var in #(
2224 _ | IFS | as_nl) ;; #(
2225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2226 *) { eval $ac_var=; unset $ac_var;} ;;
2227 esac ;;
2228 esac
2229 done
2230 (set) 2>&1 |
2231 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2232 *${as_nl}ac_space=\ *)
2233 sed -n \
2234 "s/'\''/'\''\\\\'\'''\''/g;
2235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2236 ;; #(
2237 *)
2238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2239 ;;
2240 esac |
2241 sort
2242 )
2243 echo
2244
2245 $as_echo "## ----------------- ##
2246 ## Output variables. ##
2247 ## ----------------- ##"
2248 echo
2249 for ac_var in $ac_subst_vars
2250 do
2251 eval ac_val=\$$ac_var
2252 case $ac_val in
2253 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254 esac
2255 $as_echo "$ac_var='\''$ac_val'\''"
2256 done | sort
2257 echo
2258
2259 if test -n "$ac_subst_files"; then
2260 $as_echo "## ------------------- ##
2261 ## File substitutions. ##
2262 ## ------------------- ##"
2263 echo
2264 for ac_var in $ac_subst_files
2265 do
2266 eval ac_val=\$$ac_var
2267 case $ac_val in
2268 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2269 esac
2270 $as_echo "$ac_var='\''$ac_val'\''"
2271 done | sort
2272 echo
2273 fi
2274
2275 if test -s confdefs.h; then
2276 $as_echo "## ----------- ##
2277 ## confdefs.h. ##
2278 ## ----------- ##"
2279 echo
2280 cat confdefs.h
2281 echo
2282 fi
2283 test "$ac_signal" != 0 &&
2284 $as_echo "$as_me: caught signal $ac_signal"
2285 $as_echo "$as_me: exit $exit_status"
2286 } >&5
2287 rm -f core *.core core.conftest.* &&
2288 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2289 exit $exit_status
2290 ' 0
2291 for ac_signal in 1 2 13 15; do
2292 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2293 done
2294 ac_signal=0
2295
2296 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2297 rm -f -r conftest* confdefs.h
2298
2299 $as_echo "/* confdefs.h */" > confdefs.h
2300
2301 # Predefined preprocessor variables.
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_NAME "$PACKAGE_NAME"
2305 _ACEOF
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2309 _ACEOF
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2313 _ACEOF
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_STRING "$PACKAGE_STRING"
2317 _ACEOF
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2321 _ACEOF
2322
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_URL "$PACKAGE_URL"
2325 _ACEOF
2326
2327
2328 # Let the site file select an alternate cache file if it wants to.
2329 # Prefer an explicitly selected file to automatically selected ones.
2330 ac_site_file1=NONE
2331 ac_site_file2=NONE
2332 if test -n "$CONFIG_SITE"; then
2333 # We do not want a PATH search for config.site.
2334 case $CONFIG_SITE in #((
2335 -*) ac_site_file1=./$CONFIG_SITE;;
2336 */*) ac_site_file1=$CONFIG_SITE;;
2337 *) ac_site_file1=./$CONFIG_SITE;;
2338 esac
2339 elif test "x$prefix" != xNONE; then
2340 ac_site_file1=$prefix/share/config.site
2341 ac_site_file2=$prefix/etc/config.site
2342 else
2343 ac_site_file1=$ac_default_prefix/share/config.site
2344 ac_site_file2=$ac_default_prefix/etc/config.site
2345 fi
2346 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2347 do
2348 test "x$ac_site_file" = xNONE && continue
2349 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2351 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2352 sed 's/^/| /' "$ac_site_file" >&5
2353 . "$ac_site_file" \
2354 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2356 as_fn_error $? "failed to load site script $ac_site_file
2357 See \`config.log' for more details" "$LINENO" 5; }
2358 fi
2359 done
2360
2361 if test -r "$cache_file"; then
2362 # Some versions of bash will fail to source /dev/null (special files
2363 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2364 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2366 $as_echo "$as_me: loading cache $cache_file" >&6;}
2367 case $cache_file in
2368 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2369 *) . "./$cache_file";;
2370 esac
2371 fi
2372 else
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2374 $as_echo "$as_me: creating cache $cache_file" >&6;}
2375 >$cache_file
2376 fi
2377
2378 # Check that the precious variables saved in the cache have kept the same
2379 # value.
2380 ac_cache_corrupted=false
2381 for ac_var in $ac_precious_vars; do
2382 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2383 eval ac_new_set=\$ac_env_${ac_var}_set
2384 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2385 eval ac_new_val=\$ac_env_${ac_var}_value
2386 case $ac_old_set,$ac_new_set in
2387 set,)
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2389 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2390 ac_cache_corrupted=: ;;
2391 ,set)
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2393 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2394 ac_cache_corrupted=: ;;
2395 ,);;
2396 *)
2397 if test "x$ac_old_val" != "x$ac_new_val"; then
2398 # differences in whitespace do not lead to failure.
2399 ac_old_val_w=`echo x $ac_old_val`
2400 ac_new_val_w=`echo x $ac_new_val`
2401 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2403 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2404 ac_cache_corrupted=:
2405 else
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2407 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2408 eval $ac_var=\$ac_old_val
2409 fi
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2411 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2413 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2414 fi;;
2415 esac
2416 # Pass precious variables to config.status.
2417 if test "$ac_new_set" = set; then
2418 case $ac_new_val in
2419 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2420 *) ac_arg=$ac_var=$ac_new_val ;;
2421 esac
2422 case " $ac_configure_args " in
2423 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2424 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2425 esac
2426 fi
2427 done
2428 if $ac_cache_corrupted; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2432 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2433 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2434 fi
2435 ## -------------------- ##
2436 ## Main body of script. ##
2437 ## -------------------- ##
2438
2439 ac_ext=c
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444
2445
2446
2447
2448
2449 ac_aux_dir=
2450 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2451 if test -f "$ac_dir/install-sh"; then
2452 ac_aux_dir=$ac_dir
2453 ac_install_sh="$ac_aux_dir/install-sh -c"
2454 break
2455 elif test -f "$ac_dir/install.sh"; then
2456 ac_aux_dir=$ac_dir
2457 ac_install_sh="$ac_aux_dir/install.sh -c"
2458 break
2459 elif test -f "$ac_dir/shtool"; then
2460 ac_aux_dir=$ac_dir
2461 ac_install_sh="$ac_aux_dir/shtool install -c"
2462 break
2463 fi
2464 done
2465 if test -z "$ac_aux_dir"; then
2466 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2467 fi
2468
2469 # These three variables are undocumented and unsupported,
2470 # and are intended to be withdrawn in a future Autoconf release.
2471 # They can cause serious problems if a builder's source tree is in a directory
2472 # whose full name contains unusual characters.
2473 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2474 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2475 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2476
2477
2478 # Make sure we can run config.sub.
2479 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2480 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2481
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2483 $as_echo_n "checking build system type... " >&6; }
2484 if ${ac_cv_build+:} false; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 ac_build_alias=$build_alias
2488 test "x$ac_build_alias" = x &&
2489 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2490 test "x$ac_build_alias" = x &&
2491 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2492 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2493 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2494
2495 fi
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2497 $as_echo "$ac_cv_build" >&6; }
2498 case $ac_cv_build in
2499 *-*-*) ;;
2500 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2501 esac
2502 build=$ac_cv_build
2503 ac_save_IFS=$IFS; IFS='-'
2504 set x $ac_cv_build
2505 shift
2506 build_cpu=$1
2507 build_vendor=$2
2508 shift; shift
2509 # Remember, the first character of IFS is used to create $*,
2510 # except with old shells:
2511 build_os=$*
2512 IFS=$ac_save_IFS
2513 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2514
2515
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2517 $as_echo_n "checking host system type... " >&6; }
2518 if ${ac_cv_host+:} false; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 if test "x$host_alias" = x; then
2522 ac_cv_host=$ac_cv_build
2523 else
2524 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2525 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2526 fi
2527
2528 fi
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2530 $as_echo "$ac_cv_host" >&6; }
2531 case $ac_cv_host in
2532 *-*-*) ;;
2533 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2534 esac
2535 host=$ac_cv_host
2536 ac_save_IFS=$IFS; IFS='-'
2537 set x $ac_cv_host
2538 shift
2539 host_cpu=$1
2540 host_vendor=$2
2541 shift; shift
2542 # Remember, the first character of IFS is used to create $*,
2543 # except with old shells:
2544 host_os=$*
2545 IFS=$ac_save_IFS
2546 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2547
2548
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2550 $as_echo_n "checking target system type... " >&6; }
2551 if ${ac_cv_target+:} false; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 if test "x$target_alias" = x; then
2555 ac_cv_target=$ac_cv_host
2556 else
2557 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2558 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2559 fi
2560
2561 fi
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2563 $as_echo "$ac_cv_target" >&6; }
2564 case $ac_cv_target in
2565 *-*-*) ;;
2566 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2567 esac
2568 target=$ac_cv_target
2569 ac_save_IFS=$IFS; IFS='-'
2570 set x $ac_cv_target
2571 shift
2572 target_cpu=$1
2573 target_vendor=$2
2574 shift; shift
2575 # Remember, the first character of IFS is used to create $*,
2576 # except with old shells:
2577 target_os=$*
2578 IFS=$ac_save_IFS
2579 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2580
2581
2582 # The aliases save the names the user supplied, while $host etc.
2583 # will get canonicalized.
2584 test -n "$target_alias" &&
2585 test "$program_prefix$program_suffix$program_transform_name" = \
2586 NONENONEs,x,x, &&
2587 program_prefix=${target_alias}-
2588
2589
2590 case $target_os in
2591 freebsd*)
2592 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2593 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
2594 ;;
2595 esac
2596
2597
2598 am__api_version='1.16'
2599
2600 # Find a good install program. We prefer a C program (faster),
2601 # so one script is as good as another. But avoid the broken or
2602 # incompatible versions:
2603 # SysV /etc/install, /usr/sbin/install
2604 # SunOS /usr/etc/install
2605 # IRIX /sbin/install
2606 # AIX /bin/install
2607 # AmigaOS /C/install, which installs bootblocks on floppy discs
2608 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2609 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2610 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2611 # OS/2's system install, which has a completely different semantic
2612 # ./install, which can be erroneously created by make from ./install.sh.
2613 # Reject install programs that cannot install multiple files.
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2615 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2616 if test -z "$INSTALL"; then
2617 if ${ac_cv_path_install+:} false; then :
2618 $as_echo_n "(cached) " >&6
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 # Account for people who put trailing slashes in PATH elements.
2626 case $as_dir/ in #((
2627 ./ | .// | /[cC]/* | \
2628 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2629 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2630 /usr/ucb/* ) ;;
2631 *)
2632 # OSF1 and SCO ODT 3.0 have their own names for install.
2633 # Don't use installbsd from OSF since it installs stuff as root
2634 # by default.
2635 for ac_prog in ginstall scoinst install; do
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2638 if test $ac_prog = install &&
2639 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2640 # AIX install. It has an incompatible calling convention.
2641 :
2642 elif test $ac_prog = install &&
2643 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2644 # program-specific install script used by HP pwplus--don't use.
2645 :
2646 else
2647 rm -rf conftest.one conftest.two conftest.dir
2648 echo one > conftest.one
2649 echo two > conftest.two
2650 mkdir conftest.dir
2651 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2652 test -s conftest.one && test -s conftest.two &&
2653 test -s conftest.dir/conftest.one &&
2654 test -s conftest.dir/conftest.two
2655 then
2656 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2657 break 3
2658 fi
2659 fi
2660 fi
2661 done
2662 done
2663 ;;
2664 esac
2665
2666 done
2667 IFS=$as_save_IFS
2668
2669 rm -rf conftest.one conftest.two conftest.dir
2670
2671 fi
2672 if test "${ac_cv_path_install+set}" = set; then
2673 INSTALL=$ac_cv_path_install
2674 else
2675 # As a last resort, use the slow shell script. Don't cache a
2676 # value for INSTALL within a source directory, because that will
2677 # break other packages using the cache if that directory is
2678 # removed, or if the value is a relative name.
2679 INSTALL=$ac_install_sh
2680 fi
2681 fi
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2683 $as_echo "$INSTALL" >&6; }
2684
2685 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2686 # It thinks the first close brace ends the variable substitution.
2687 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2688
2689 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2690
2691 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2692
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2694 $as_echo_n "checking whether build environment is sane... " >&6; }
2695 # Reject unsafe characters in $srcdir or the absolute working directory
2696 # name. Accept space and tab only in the latter.
2697 am_lf='
2698 '
2699 case `pwd` in
2700 *[\\\"\#\$\&\'\`$am_lf]*)
2701 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2702 esac
2703 case $srcdir in
2704 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2705 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2706 esac
2707
2708 # Do 'set' in a subshell so we don't clobber the current shell's
2709 # arguments. Must try -L first in case configure is actually a
2710 # symlink; some systems play weird games with the mod time of symlinks
2711 # (eg FreeBSD returns the mod time of the symlink's containing
2712 # directory).
2713 if (
2714 am_has_slept=no
2715 for am_try in 1 2; do
2716 echo "timestamp, slept: $am_has_slept" > conftest.file
2717 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2718 if test "$*" = "X"; then
2719 # -L didn't work.
2720 set X `ls -t "$srcdir/configure" conftest.file`
2721 fi
2722 if test "$*" != "X $srcdir/configure conftest.file" \
2723 && test "$*" != "X conftest.file $srcdir/configure"; then
2724
2725 # If neither matched, then we have a broken ls. This can happen
2726 # if, for instance, CONFIG_SHELL is bash and it inherits a
2727 # broken ls alias from the environment. This has actually
2728 # happened. Such a system could not be considered "sane".
2729 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2730 alias in your environment" "$LINENO" 5
2731 fi
2732 if test "$2" = conftest.file || test $am_try -eq 2; then
2733 break
2734 fi
2735 # Just in case.
2736 sleep 1
2737 am_has_slept=yes
2738 done
2739 test "$2" = conftest.file
2740 )
2741 then
2742 # Ok.
2743 :
2744 else
2745 as_fn_error $? "newly created file is older than distributed files!
2746 Check your system clock" "$LINENO" 5
2747 fi
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2749 $as_echo "yes" >&6; }
2750 # If we didn't sleep, we still need to ensure time stamps of config.status and
2751 # generated files are strictly newer.
2752 am_sleep_pid=
2753 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2754 ( sleep 1 ) &
2755 am_sleep_pid=$!
2756 fi
2757
2758 rm -f conftest.file
2759
2760 test "$program_prefix" != NONE &&
2761 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2762 # Use a double $ so make ignores it.
2763 test "$program_suffix" != NONE &&
2764 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2765 # Double any \ or $.
2766 # By default was `s,x,x', remove it if useless.
2767 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2768 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2769
2770 # Expand $ac_aux_dir to an absolute path.
2771 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2772
2773 if test x"${MISSING+set}" != xset; then
2774 case $am_aux_dir in
2775 *\ * | *\ *)
2776 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2777 *)
2778 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2779 esac
2780 fi
2781 # Use eval to expand $SHELL
2782 if eval "$MISSING --is-lightweight"; then
2783 am_missing_run="$MISSING "
2784 else
2785 am_missing_run=
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2787 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2788 fi
2789
2790 if test x"${install_sh+set}" != xset; then
2791 case $am_aux_dir in
2792 *\ * | *\ *)
2793 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2794 *)
2795 install_sh="\${SHELL} $am_aux_dir/install-sh"
2796 esac
2797 fi
2798
2799 # Installed binaries are usually stripped using 'strip' when the user
2800 # run "make install-strip". However 'strip' might not be the right
2801 # tool to use in cross-compilation environments, therefore Automake
2802 # will honor the 'STRIP' environment variable to overrule this program.
2803 if test "$cross_compiling" != no; then
2804 if test -n "$ac_tool_prefix"; then
2805 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2806 set dummy ${ac_tool_prefix}strip; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if ${ac_cv_prog_STRIP+:} false; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 if test -n "$STRIP"; then
2813 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2825 fi
2826 done
2827 done
2828 IFS=$as_save_IFS
2829
2830 fi
2831 fi
2832 STRIP=$ac_cv_prog_STRIP
2833 if test -n "$STRIP"; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2835 $as_echo "$STRIP" >&6; }
2836 else
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2839 fi
2840
2841
2842 fi
2843 if test -z "$ac_cv_prog_STRIP"; then
2844 ac_ct_STRIP=$STRIP
2845 # Extract the first word of "strip", so it can be a program name with args.
2846 set dummy strip; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if test -n "$ac_ct_STRIP"; then
2853 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_ac_ct_STRIP="strip"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866 done
2867 done
2868 IFS=$as_save_IFS
2869
2870 fi
2871 fi
2872 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2873 if test -n "$ac_ct_STRIP"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2875 $as_echo "$ac_ct_STRIP" >&6; }
2876 else
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879 fi
2880
2881 if test "x$ac_ct_STRIP" = x; then
2882 STRIP=":"
2883 else
2884 case $cross_compiling:$ac_tool_warned in
2885 yes:)
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2888 ac_tool_warned=yes ;;
2889 esac
2890 STRIP=$ac_ct_STRIP
2891 fi
2892 else
2893 STRIP="$ac_cv_prog_STRIP"
2894 fi
2895
2896 fi
2897 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2898
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2900 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2901 if test -z "$MKDIR_P"; then
2902 if ${ac_cv_path_mkdir+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2907 do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_prog in mkdir gmkdir; do
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2913 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2914 'mkdir (GNU coreutils) '* | \
2915 'mkdir (coreutils) '* | \
2916 'mkdir (fileutils) '4.1*)
2917 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2918 break 3;;
2919 esac
2920 done
2921 done
2922 done
2923 IFS=$as_save_IFS
2924
2925 fi
2926
2927 test -d ./--version && rmdir ./--version
2928 if test "${ac_cv_path_mkdir+set}" = set; then
2929 MKDIR_P="$ac_cv_path_mkdir -p"
2930 else
2931 # As a last resort, use the slow shell script. Don't cache a
2932 # value for MKDIR_P within a source directory, because that will
2933 # break other packages using the cache if that directory is
2934 # removed, or if the value is a relative name.
2935 MKDIR_P="$ac_install_sh -d"
2936 fi
2937 fi
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2939 $as_echo "$MKDIR_P" >&6; }
2940
2941 for ac_prog in gawk mawk nawk awk
2942 do
2943 # Extract the first word of "$ac_prog", so it can be a program name with args.
2944 set dummy $ac_prog; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_prog_AWK+:} false; then :
2948 $as_echo_n "(cached) " >&6
2949 else
2950 if test -n "$AWK"; then
2951 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960 ac_cv_prog_AWK="$ac_prog"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2963 fi
2964 done
2965 done
2966 IFS=$as_save_IFS
2967
2968 fi
2969 fi
2970 AWK=$ac_cv_prog_AWK
2971 if test -n "$AWK"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2973 $as_echo "$AWK" >&6; }
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 fi
2978
2979
2980 test -n "$AWK" && break
2981 done
2982
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2984 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2985 set x ${MAKE-make}
2986 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2987 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2988 $as_echo_n "(cached) " >&6
2989 else
2990 cat >conftest.make <<\_ACEOF
2991 SHELL = /bin/sh
2992 all:
2993 @echo '@@@%%%=$(MAKE)=@@@%%%'
2994 _ACEOF
2995 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2996 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2997 *@@@%%%=?*=@@@%%%*)
2998 eval ac_cv_prog_make_${ac_make}_set=yes;;
2999 *)
3000 eval ac_cv_prog_make_${ac_make}_set=no;;
3001 esac
3002 rm -f conftest.make
3003 fi
3004 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3006 $as_echo "yes" >&6; }
3007 SET_MAKE=
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3011 SET_MAKE="MAKE=${MAKE-make}"
3012 fi
3013
3014 rm -rf .tst 2>/dev/null
3015 mkdir .tst 2>/dev/null
3016 if test -d .tst; then
3017 am__leading_dot=.
3018 else
3019 am__leading_dot=_
3020 fi
3021 rmdir .tst 2>/dev/null
3022
3023 # Check whether --enable-silent-rules was given.
3024 if test "${enable_silent_rules+set}" = set; then :
3025 enableval=$enable_silent_rules;
3026 fi
3027
3028 case $enable_silent_rules in # (((
3029 yes) AM_DEFAULT_VERBOSITY=0;;
3030 no) AM_DEFAULT_VERBOSITY=1;;
3031 *) AM_DEFAULT_VERBOSITY=1;;
3032 esac
3033 am_make=${MAKE-make}
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3035 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3036 if ${am_cv_make_support_nested_variables+:} false; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if $as_echo 'TRUE=$(BAR$(V))
3040 BAR0=false
3041 BAR1=true
3042 V=1
3043 am__doit:
3044 @$(TRUE)
3045 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3046 am_cv_make_support_nested_variables=yes
3047 else
3048 am_cv_make_support_nested_variables=no
3049 fi
3050 fi
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3052 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3053 if test $am_cv_make_support_nested_variables = yes; then
3054 AM_V='$(V)'
3055 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3056 else
3057 AM_V=$AM_DEFAULT_VERBOSITY
3058 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3059 fi
3060 AM_BACKSLASH='\'
3061
3062 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3063 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3064 # is not polluted with repeated "-I."
3065 am__isrc=' -I$(srcdir)'
3066 # test to see if srcdir already configured
3067 if test -f $srcdir/config.status; then
3068 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3069 fi
3070 fi
3071
3072 # test whether we have cygpath
3073 if test -z "$CYGPATH_W"; then
3074 if (cygpath --version) >/dev/null 2>/dev/null; then
3075 CYGPATH_W='cygpath -w'
3076 else
3077 CYGPATH_W=echo
3078 fi
3079 fi
3080
3081
3082 # Define the identity of the package.
3083 PACKAGE='libjte'
3084 VERSION='2.0.0'
3085
3086
3087 cat >>confdefs.h <<_ACEOF
3088 #define PACKAGE "$PACKAGE"
3089 _ACEOF
3090
3091
3092 cat >>confdefs.h <<_ACEOF
3093 #define VERSION "$VERSION"
3094 _ACEOF
3095
3096 # Some tools Automake needs.
3097
3098 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3099
3100
3101 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3102
3103
3104 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3105
3106
3107 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3108
3109
3110 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3111
3112 # For better backward compatibility. To be removed once Automake 1.9.x
3113 # dies out for good. For more background, see:
3114 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3115 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3116 mkdir_p='$(MKDIR_P)'
3117
3118 # We need awk for the "check" target (and possibly the TAP driver). The
3119 # system "awk" is bad on some platforms.
3120 # Always define AMTAR for backward compatibility. Yes, it's still used
3121 # in the wild :-( We should find a proper way to deprecate it ...
3122 AMTAR='$${TAR-tar}'
3123
3124
3125 # We'll loop over all known methods to create a tar archive until one works.
3126 _am_tools='gnutar pax cpio none'
3127
3128 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3129
3130
3131
3132
3133
3134
3135 # POSIX will say in a future version that running "rm -f" with no argument
3136 # is OK; and we want to be able to make that assumption in our Makefile
3137 # recipes. So use an aggressive probe to check that the usage we want is
3138 # actually supported "in the wild" to an acceptable degree.
3139 # See automake bug#10828.
3140 # To make any issue more visible, cause the running configure to be aborted
3141 # by default if the 'rm' program in use doesn't match our expectations; the
3142 # user can still override this though.
3143 if rm -f && rm -fr && rm -rf; then : OK; else
3144 cat >&2 <<'END'
3145 Oops!
3146
3147 Your 'rm' program seems unable to run without file operands specified
3148 on the command line, even when the '-f' option is present. This is contrary
3149 to the behaviour of most rm programs out there, and not conforming with
3150 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3151
3152 Please tell [email protected] about your system, including the value
3153 of your $PATH and any error possibly output before this message. This
3154 can help us improve future automake versions.
3155
3156 END
3157 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3158 echo 'Configuration will proceed anyway, since you have set the' >&2
3159 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3160 echo >&2
3161 else
3162 cat >&2 <<'END'
3163 Aborting the configuration process, to ensure you take notice of the issue.
3164
3165 You can download and install GNU coreutils to get an 'rm' implementation
3166 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3167
3168 If you want to complete the configuration process using your problematic
3169 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3170 to "yes", and re-run configure.
3171
3172 END
3173 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3174 fi
3175 fi
3176
3177
3178
3179
3180 LT_CURRENT=2
3181 LT_AGE=0
3182 LT_REVISION=0
3183 LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
3184
3185
3186
3187
3188
3189
3190
3191 test "$prefix" = "NONE" && prefix=$ac_default_prefix
3192
3193
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3195 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3196 # Check whether --enable-maintainer-mode was given.
3197 if test "${enable_maintainer_mode+set}" = set; then :
3198 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3199 else
3200 USE_MAINTAINER_MODE=no
3201 fi
3202
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3204 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3205 if test $USE_MAINTAINER_MODE = yes; then
3206 MAINTAINER_MODE_TRUE=
3207 MAINTAINER_MODE_FALSE='#'
3208 else
3209 MAINTAINER_MODE_TRUE='#'
3210 MAINTAINER_MODE_FALSE=
3211 fi
3212
3213 MAINT=$MAINTAINER_MODE_TRUE
3214
3215
3216
3217 DEPDIR="${am__leading_dot}deps"
3218
3219 ac_config_commands="$ac_config_commands depfiles"
3220
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3222 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3223 cat > confinc.mk << 'END'
3224 am__doit:
3225 @echo this is the am__doit target >confinc.out
3226 .PHONY: am__doit
3227 END
3228 am__include="#"
3229 am__quote=
3230 # BSD make does it like this.
3231 echo '.include "confinc.mk" # ignored' > confmf.BSD
3232 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3233 echo 'include confinc.mk # ignored' > confmf.GNU
3234 _am_result=no
3235 for s in GNU BSD; do
3236 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3237 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }
3241 case $?:`cat confinc.out 2>/dev/null` in #(
3242 '0:this is the am__doit target') :
3243 case $s in #(
3244 BSD) :
3245 am__include='.include' am__quote='"' ;; #(
3246 *) :
3247 am__include='include' am__quote='' ;;
3248 esac ;; #(
3249 *) :
3250 ;;
3251 esac
3252 if test "$am__include" != "#"; then
3253 _am_result="yes ($s style)"
3254 break
3255 fi
3256 done
3257 rm -f confinc.* confmf.*
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3259 $as_echo "${_am_result}" >&6; }
3260
3261 # Check whether --enable-dependency-tracking was given.
3262 if test "${enable_dependency_tracking+set}" = set; then :
3263 enableval=$enable_dependency_tracking;
3264 fi
3265
3266 if test "x$enable_dependency_tracking" != xno; then
3267 am_depcomp="$ac_aux_dir/depcomp"
3268 AMDEPBACKSLASH='\'
3269 am__nodep='_no'
3270 fi
3271 if test "x$enable_dependency_tracking" != xno; then
3272 AMDEP_TRUE=
3273 AMDEP_FALSE='#'
3274 else
3275 AMDEP_TRUE='#'
3276 AMDEP_FALSE=
3277 fi
3278
3279
3280 ac_ext=c
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 if test -n "$ac_tool_prefix"; then
3286 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3287 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3289 $as_echo_n "checking for $ac_word... " >&6; }
3290 if ${ac_cv_prog_CC+:} false; then :
3291 $as_echo_n "(cached) " >&6
3292 else
3293 if test -n "$CC"; then
3294 ac_cv_prog_CC="$CC" # Let the user override the test.
3295 else
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3303 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 break 2
3306 fi
3307 done
3308 done
3309 IFS=$as_save_IFS
3310
3311 fi
3312 fi
3313 CC=$ac_cv_prog_CC
3314 if test -n "$CC"; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3316 $as_echo "$CC" >&6; }
3317 else
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319 $as_echo "no" >&6; }
3320 fi
3321
3322
3323 fi
3324 if test -z "$ac_cv_prog_CC"; then
3325 ac_ct_CC=$CC
3326 # Extract the first word of "gcc", so it can be a program name with args.
3327 set dummy gcc; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3331 $as_echo_n "(cached) " >&6
3332 else
3333 if test -n "$ac_ct_CC"; then
3334 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_ac_ct_CC="gcc"
3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 break 2
3346 fi
3347 done
3348 done
3349 IFS=$as_save_IFS
3350
3351 fi
3352 fi
3353 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3354 if test -n "$ac_ct_CC"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3356 $as_echo "$ac_ct_CC" >&6; }
3357 else
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 fi
3361
3362 if test "x$ac_ct_CC" = x; then
3363 CC=""
3364 else
3365 case $cross_compiling:$ac_tool_warned in
3366 yes:)
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3369 ac_tool_warned=yes ;;
3370 esac
3371 CC=$ac_ct_CC
3372 fi
3373 else
3374 CC="$ac_cv_prog_CC"
3375 fi
3376
3377 if test -z "$CC"; then
3378 if test -n "$ac_tool_prefix"; then
3379 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3380 set dummy ${ac_tool_prefix}cc; ac_word=$2
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382 $as_echo_n "checking for $ac_word... " >&6; }
3383 if ${ac_cv_prog_CC+:} false; then :
3384 $as_echo_n "(cached) " >&6
3385 else
3386 if test -n "$CC"; then
3387 ac_cv_prog_CC="$CC" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3391 do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396 ac_cv_prog_CC="${ac_tool_prefix}cc"
3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 break 2
3399 fi
3400 done
3401 done
3402 IFS=$as_save_IFS
3403
3404 fi
3405 fi
3406 CC=$ac_cv_prog_CC
3407 if test -n "$CC"; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3409 $as_echo "$CC" >&6; }
3410 else
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3413 fi
3414
3415
3416 fi
3417 fi
3418 if test -z "$CC"; then
3419 # Extract the first word of "cc", so it can be a program name with args.
3420 set dummy cc; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if ${ac_cv_prog_CC+:} false; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 if test -n "$CC"; then
3427 ac_cv_prog_CC="$CC" # Let the user override the test.
3428 else
3429 ac_prog_rejected=no
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3438 ac_prog_rejected=yes
3439 continue
3440 fi
3441 ac_cv_prog_CC="cc"
3442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 break 2
3444 fi
3445 done
3446 done
3447 IFS=$as_save_IFS
3448
3449 if test $ac_prog_rejected = yes; then
3450 # We found a bogon in the path, so make sure we never use it.
3451 set dummy $ac_cv_prog_CC
3452 shift
3453 if test $# != 0; then
3454 # We chose a different compiler from the bogus one.
3455 # However, it has the same basename, so the bogon will be chosen
3456 # first if we set CC to just the basename; use the full file name.
3457 shift
3458 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3459 fi
3460 fi
3461 fi
3462 fi
3463 CC=$ac_cv_prog_CC
3464 if test -n "$CC"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3466 $as_echo "$CC" >&6; }
3467 else
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3470 fi
3471
3472
3473 fi
3474 if test -z "$CC"; then
3475 if test -n "$ac_tool_prefix"; then
3476 for ac_prog in cl.exe
3477 do
3478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if ${ac_cv_prog_CC+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 if test -n "$CC"; then
3486 ac_cv_prog_CC="$CC" # Let the user override the test.
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3490 do
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3498 fi
3499 done
3500 done
3501 IFS=$as_save_IFS
3502
3503 fi
3504 fi
3505 CC=$ac_cv_prog_CC
3506 if test -n "$CC"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508 $as_echo "$CC" >&6; }
3509 else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3512 fi
3513
3514
3515 test -n "$CC" && break
3516 done
3517 fi
3518 if test -z "$CC"; then
3519 ac_ct_CC=$CC
3520 for ac_prog in cl.exe
3521 do
3522 # Extract the first word of "$ac_prog", so it can be a program name with args.
3523 set dummy $ac_prog; ac_word=$2
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 $as_echo_n "checking for $ac_word... " >&6; }
3526 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3527 $as_echo_n "(cached) " >&6
3528 else
3529 if test -n "$ac_ct_CC"; then
3530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3534 do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_ac_ct_CC="$ac_prog"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3542 fi
3543 done
3544 done
3545 IFS=$as_save_IFS
3546
3547 fi
3548 fi
3549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3550 if test -n "$ac_ct_CC"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3552 $as_echo "$ac_ct_CC" >&6; }
3553 else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3556 fi
3557
3558
3559 test -n "$ac_ct_CC" && break
3560 done
3561
3562 if test "x$ac_ct_CC" = x; then
3563 CC=""
3564 else
3565 case $cross_compiling:$ac_tool_warned in
3566 yes:)
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3569 ac_tool_warned=yes ;;
3570 esac
3571 CC=$ac_ct_CC
3572 fi
3573 fi
3574
3575 fi
3576
3577
3578 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error $? "no acceptable C compiler found in \$PATH
3581 See \`config.log' for more details" "$LINENO" 5; }
3582
3583 # Provide some information about the compiler.
3584 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3585 set X $ac_compile
3586 ac_compiler=$2
3587 for ac_option in --version -v -V -qversion; do
3588 { { ac_try="$ac_compiler $ac_option >&5"
3589 case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592 esac
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3596 ac_status=$?
3597 if test -s conftest.err; then
3598 sed '10a\
3599 ... rest of stderr output deleted ...
3600 10q' conftest.err >conftest.er1
3601 cat conftest.er1 >&5
3602 fi
3603 rm -f conftest.er1 conftest.err
3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605 test $ac_status = 0; }
3606 done
3607
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3610
3611 int
3612 main ()
3613 {
3614
3615 ;
3616 return 0;
3617 }
3618 _ACEOF
3619 ac_clean_files_save=$ac_clean_files
3620 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3621 # Try to create an executable without -o first, disregard a.out.
3622 # It will help us diagnose broken compilers, and finding out an intuition
3623 # of exeext.
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3625 $as_echo_n "checking whether the C compiler works... " >&6; }
3626 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3627
3628 # The possible output files:
3629 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3630
3631 ac_rmfiles=
3632 for ac_file in $ac_files
3633 do
3634 case $ac_file in
3635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3636 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3637 esac
3638 done
3639 rm -f $ac_rmfiles
3640
3641 if { { ac_try="$ac_link_default"
3642 case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_link_default") 2>&5
3649 ac_status=$?
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }; then :
3652 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3653 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3654 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3655 # so that the user can short-circuit this test for compilers unknown to
3656 # Autoconf.
3657 for ac_file in $ac_files ''
3658 do
3659 test -f "$ac_file" || continue
3660 case $ac_file in
3661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3662 ;;
3663 [ab].out )
3664 # We found the default executable, but exeext='' is most
3665 # certainly right.
3666 break;;
3667 *.* )
3668 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3669 then :; else
3670 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3671 fi
3672 # We set ac_cv_exeext here because the later test for it is not
3673 # safe: cross compilers may not add the suffix if given an `-o'
3674 # argument, so we may need to know it at that point already.
3675 # Even if this section looks crufty: it has the advantage of
3676 # actually working.
3677 break;;
3678 * )
3679 break;;
3680 esac
3681 done
3682 test "$ac_cv_exeext" = no && ac_cv_exeext=
3683
3684 else
3685 ac_file=''
3686 fi
3687 if test -z "$ac_file"; then :
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3690 $as_echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3692
3693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3695 as_fn_error 77 "C compiler cannot create executables
3696 See \`config.log' for more details" "$LINENO" 5; }
3697 else
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3699 $as_echo "yes" >&6; }
3700 fi
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3702 $as_echo_n "checking for C compiler default output file name... " >&6; }
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3704 $as_echo "$ac_file" >&6; }
3705 ac_exeext=$ac_cv_exeext
3706
3707 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3708 ac_clean_files=$ac_clean_files_save
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3710 $as_echo_n "checking for suffix of executables... " >&6; }
3711 if { { ac_try="$ac_link"
3712 case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715 esac
3716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3717 $as_echo "$ac_try_echo"; } >&5
3718 (eval "$ac_link") 2>&5
3719 ac_status=$?
3720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721 test $ac_status = 0; }; then :
3722 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3723 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3724 # work properly (i.e., refer to `conftest.exe'), while it won't with
3725 # `rm'.
3726 for ac_file in conftest.exe conftest conftest.*; do
3727 test -f "$ac_file" || continue
3728 case $ac_file in
3729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3730 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3731 break;;
3732 * ) break;;
3733 esac
3734 done
3735 else
3736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3738 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3739 See \`config.log' for more details" "$LINENO" 5; }
3740 fi
3741 rm -f conftest conftest$ac_cv_exeext
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3743 $as_echo "$ac_cv_exeext" >&6; }
3744
3745 rm -f conftest.$ac_ext
3746 EXEEXT=$ac_cv_exeext
3747 ac_exeext=$EXEEXT
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750 #include <stdio.h>
3751 int
3752 main ()
3753 {
3754 FILE *f = fopen ("conftest.out", "w");
3755 return ferror (f) || fclose (f) != 0;
3756
3757 ;
3758 return 0;
3759 }
3760 _ACEOF
3761 ac_clean_files="$ac_clean_files conftest.out"
3762 # Check that the compiler produces executables we can run. If not, either
3763 # the compiler is broken, or we cross compile.
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3765 $as_echo_n "checking whether we are cross compiling... " >&6; }
3766 if test "$cross_compiling" != yes; then
3767 { { ac_try="$ac_link"
3768 case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771 esac
3772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773 $as_echo "$ac_try_echo"; } >&5
3774 (eval "$ac_link") 2>&5
3775 ac_status=$?
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }
3778 if { ac_try='./conftest$ac_cv_exeext'
3779 { { case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782 esac
3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784 $as_echo "$ac_try_echo"; } >&5
3785 (eval "$ac_try") 2>&5
3786 ac_status=$?
3787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3788 test $ac_status = 0; }; }; then
3789 cross_compiling=no
3790 else
3791 if test "$cross_compiling" = maybe; then
3792 cross_compiling=yes
3793 else
3794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796 as_fn_error $? "cannot run C compiled programs.
3797 If you meant to cross compile, use \`--host'.
3798 See \`config.log' for more details" "$LINENO" 5; }
3799 fi
3800 fi
3801 fi
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3803 $as_echo "$cross_compiling" >&6; }
3804
3805 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3806 ac_clean_files=$ac_clean_files_save
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3808 $as_echo_n "checking for suffix of object files... " >&6; }
3809 if ${ac_cv_objext+:} false; then :
3810 $as_echo_n "(cached) " >&6
3811 else
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3814
3815 int
3816 main ()
3817 {
3818
3819 ;
3820 return 0;
3821 }
3822 _ACEOF
3823 rm -f conftest.o conftest.obj
3824 if { { ac_try="$ac_compile"
3825 case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828 esac
3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 $as_echo "$ac_try_echo"; } >&5
3831 (eval "$ac_compile") 2>&5
3832 ac_status=$?
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }; then :
3835 for ac_file in conftest.o conftest.obj conftest.*; do
3836 test -f "$ac_file" || continue;
3837 case $ac_file in
3838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3839 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3840 break;;
3841 esac
3842 done
3843 else
3844 $as_echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3846
3847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3849 as_fn_error $? "cannot compute suffix of object files: cannot compile
3850 See \`config.log' for more details" "$LINENO" 5; }
3851 fi
3852 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3855 $as_echo "$ac_cv_objext" >&6; }
3856 OBJEXT=$ac_cv_objext
3857 ac_objext=$OBJEXT
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3859 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3860 if ${ac_cv_c_compiler_gnu+:} false; then :
3861 $as_echo_n "(cached) " >&6
3862 else
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3865
3866 int
3867 main ()
3868 {
3869 #ifndef __GNUC__
3870 choke me
3871 #endif
3872
3873 ;
3874 return 0;
3875 }
3876 _ACEOF
3877 if ac_fn_c_try_compile "$LINENO"; then :
3878 ac_compiler_gnu=yes
3879 else
3880 ac_compiler_gnu=no
3881 fi
3882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3884
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3887 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3888 if test $ac_compiler_gnu = yes; then
3889 GCC=yes
3890 else
3891 GCC=
3892 fi
3893 ac_test_CFLAGS=${CFLAGS+set}
3894 ac_save_CFLAGS=$CFLAGS
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3896 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3897 if ${ac_cv_prog_cc_g+:} false; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 ac_save_c_werror_flag=$ac_c_werror_flag
3901 ac_c_werror_flag=yes
3902 ac_cv_prog_cc_g=no
3903 CFLAGS="-g"
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3906
3907 int
3908 main ()
3909 {
3910
3911 ;
3912 return 0;
3913 }
3914 _ACEOF
3915 if ac_fn_c_try_compile "$LINENO"; then :
3916 ac_cv_prog_cc_g=yes
3917 else
3918 CFLAGS=""
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921
3922 int
3923 main ()
3924 {
3925
3926 ;
3927 return 0;
3928 }
3929 _ACEOF
3930 if ac_fn_c_try_compile "$LINENO"; then :
3931
3932 else
3933 ac_c_werror_flag=$ac_save_c_werror_flag
3934 CFLAGS="-g"
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937
3938 int
3939 main ()
3940 {
3941
3942 ;
3943 return 0;
3944 }
3945 _ACEOF
3946 if ac_fn_c_try_compile "$LINENO"; then :
3947 ac_cv_prog_cc_g=yes
3948 fi
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 fi
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952 fi
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954 ac_c_werror_flag=$ac_save_c_werror_flag
3955 fi
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3957 $as_echo "$ac_cv_prog_cc_g" >&6; }
3958 if test "$ac_test_CFLAGS" = set; then
3959 CFLAGS=$ac_save_CFLAGS
3960 elif test $ac_cv_prog_cc_g = yes; then
3961 if test "$GCC" = yes; then
3962 CFLAGS="-g -O2"
3963 else
3964 CFLAGS="-g"
3965 fi
3966 else
3967 if test "$GCC" = yes; then
3968 CFLAGS="-O2"
3969 else
3970 CFLAGS=
3971 fi
3972 fi
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3974 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3975 if ${ac_cv_prog_cc_c89+:} false; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 ac_cv_prog_cc_c89=no
3979 ac_save_CC=$CC
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3982 #include <stdarg.h>
3983 #include <stdio.h>
3984 struct stat;
3985 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3986 struct buf { int x; };
3987 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3988 static char *e (p, i)
3989 char **p;
3990 int i;
3991 {
3992 return p[i];
3993 }
3994 static char *f (char * (*g) (char **, int), char **p, ...)
3995 {
3996 char *s;
3997 va_list v;
3998 va_start (v,p);
3999 s = g (p, va_arg (v,int));
4000 va_end (v);
4001 return s;
4002 }
4003
4004 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4005 function prototypes and stuff, but not '\xHH' hex character constants.
4006 These don't provoke an error unfortunately, instead are silently treated
4007 as 'x'. The following induces an error, until -std is added to get
4008 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4009 array size at least. It's necessary to write '\x00'==0 to get something
4010 that's true only with -std. */
4011 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4012
4013 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4014 inside strings and character constants. */
4015 #define FOO(x) 'x'
4016 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4017
4018 int test (int i, double x);
4019 struct s1 {int (*f) (int a);};
4020 struct s2 {int (*f) (double a);};
4021 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4022 int argc;
4023 char **argv;
4024 int
4025 main ()
4026 {
4027 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4028 ;
4029 return 0;
4030 }
4031 _ACEOF
4032 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4033 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4034 do
4035 CC="$ac_save_CC $ac_arg"
4036 if ac_fn_c_try_compile "$LINENO"; then :
4037 ac_cv_prog_cc_c89=$ac_arg
4038 fi
4039 rm -f core conftest.err conftest.$ac_objext
4040 test "x$ac_cv_prog_cc_c89" != "xno" && break
4041 done
4042 rm -f conftest.$ac_ext
4043 CC=$ac_save_CC
4044
4045 fi
4046 # AC_CACHE_VAL
4047 case "x$ac_cv_prog_cc_c89" in
4048 x)
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4050 $as_echo "none needed" >&6; } ;;
4051 xno)
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4053 $as_echo "unsupported" >&6; } ;;
4054 *)
4055 CC="$CC $ac_cv_prog_cc_c89"
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4057 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4058 esac
4059 if test "x$ac_cv_prog_cc_c89" != xno; then :
4060
4061 fi
4062
4063 ac_ext=c
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068
4069 ac_ext=c
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4075 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4076 if ${am_cv_prog_cc_c_o+:} false; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4081
4082 int
4083 main ()
4084 {
4085
4086 ;
4087 return 0;
4088 }
4089 _ACEOF
4090 # Make sure it works both with $CC and with simple cc.
4091 # Following AC_PROG_CC_C_O, we do the test twice because some
4092 # compilers refuse to overwrite an existing .o file with -o,
4093 # though they will create one.
4094 am_cv_prog_cc_c_o=yes
4095 for am_i in 1 2; do
4096 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4097 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } \
4101 && test -f conftest2.$ac_objext; then
4102 : OK
4103 else
4104 am_cv_prog_cc_c_o=no
4105 break
4106 fi
4107 done
4108 rm -f core conftest*
4109 unset am_i
4110 fi
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4112 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4113 if test "$am_cv_prog_cc_c_o" != yes; then
4114 # Losing compiler, so override with the script.
4115 # FIXME: It is wrong to rewrite CC.
4116 # But if we don't then we get into trouble of one sort or another.
4117 # A longer-term fix would be to have automake use am__CC in this case,
4118 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4119 CC="$am_aux_dir/compile $CC"
4120 fi
4121 ac_ext=c
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126
4127
4128 depcc="$CC" am_compiler_list=
4129
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4131 $as_echo_n "checking dependency style of $depcc... " >&6; }
4132 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4136 # We make a subdir and do the tests there. Otherwise we can end up
4137 # making bogus files that we don't know about and never remove. For
4138 # instance it was reported that on HP-UX the gcc test will end up
4139 # making a dummy file named 'D' -- because '-MD' means "put the output
4140 # in D".
4141 rm -rf conftest.dir
4142 mkdir conftest.dir
4143 # Copy depcomp to subdir because otherwise we won't find it if we're
4144 # using a relative directory.
4145 cp "$am_depcomp" conftest.dir
4146 cd conftest.dir
4147 # We will build objects and dependencies in a subdirectory because
4148 # it helps to detect inapplicable dependency modes. For instance
4149 # both Tru64's cc and ICC support -MD to output dependencies as a
4150 # side effect of compilation, but ICC will put the dependencies in
4151 # the current directory while Tru64 will put them in the object
4152 # directory.
4153 mkdir sub
4154
4155 am_cv_CC_dependencies_compiler_type=none
4156 if test "$am_compiler_list" = ""; then
4157 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4158 fi
4159 am__universal=false
4160 case " $depcc " in #(
4161 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4162 esac
4163
4164 for depmode in $am_compiler_list; do
4165 # Setup a source with many dependencies, because some compilers
4166 # like to wrap large dependency lists on column 80 (with \), and
4167 # we should not choose a depcomp mode which is confused by this.
4168 #
4169 # We need to recreate these files for each test, as the compiler may
4170 # overwrite some of them when testing with obscure command lines.
4171 # This happens at least with the AIX C compiler.
4172 : > sub/conftest.c
4173 for i in 1 2 3 4 5 6; do
4174 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4175 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4176 # Solaris 10 /bin/sh.
4177 echo '/* dummy */' > sub/conftst$i.h
4178 done
4179 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4180
4181 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4182 # mode. It turns out that the SunPro C++ compiler does not properly
4183 # handle '-M -o', and we need to detect this. Also, some Intel
4184 # versions had trouble with output in subdirs.
4185 am__obj=sub/conftest.${OBJEXT-o}
4186 am__minus_obj="-o $am__obj"
4187 case $depmode in
4188 gcc)
4189 # This depmode causes a compiler race in universal mode.
4190 test "$am__universal" = false || continue
4191 ;;
4192 nosideeffect)
4193 # After this tag, mechanisms are not by side-effect, so they'll
4194 # only be used when explicitly requested.
4195 if test "x$enable_dependency_tracking" = xyes; then
4196 continue
4197 else
4198 break
4199 fi
4200 ;;
4201 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4202 # This compiler won't grok '-c -o', but also, the minuso test has
4203 # not run yet. These depmodes are late enough in the game, and
4204 # so weak that their functioning should not be impacted.
4205 am__obj=conftest.${OBJEXT-o}
4206 am__minus_obj=
4207 ;;
4208 none) break ;;
4209 esac
4210 if depmode=$depmode \
4211 source=sub/conftest.c object=$am__obj \
4212 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4213 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4214 >/dev/null 2>conftest.err &&
4215 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4216 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4217 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4218 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4219 # icc doesn't choke on unknown options, it will just issue warnings
4220 # or remarks (even with -Werror). So we grep stderr for any message
4221 # that says an option was ignored or not supported.
4222 # When given -MP, icc 7.0 and 7.1 complain thusly:
4223 # icc: Command line warning: ignoring option '-M'; no argument required
4224 # The diagnosis changed in icc 8.0:
4225 # icc: Command line remark: option '-MP' not supported
4226 if (grep 'ignoring option' conftest.err ||
4227 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4228 am_cv_CC_dependencies_compiler_type=$depmode
4229 break
4230 fi
4231 fi
4232 done
4233
4234 cd ..
4235 rm -rf conftest.dir
4236 else
4237 am_cv_CC_dependencies_compiler_type=none
4238 fi
4239
4240 fi
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4242 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4243 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4244
4245 if
4246 test "x$enable_dependency_tracking" != xno \
4247 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4248 am__fastdepCC_TRUE=
4249 am__fastdepCC_FALSE='#'
4250 else
4251 am__fastdepCC_TRUE='#'
4252 am__fastdepCC_FALSE=
4253 fi
4254
4255
4256
4257
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4259 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4260 if ${ac_cv_c_const+:} false; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265
4266 int
4267 main ()
4268 {
4269
4270 #ifndef __cplusplus
4271 /* Ultrix mips cc rejects this sort of thing. */
4272 typedef int charset[2];
4273 const charset cs = { 0, 0 };
4274 /* SunOS 4.1.1 cc rejects this. */
4275 char const *const *pcpcc;
4276 char **ppc;
4277 /* NEC SVR4.0.2 mips cc rejects this. */
4278 struct point {int x, y;};
4279 static struct point const zero = {0,0};
4280 /* AIX XL C 1.02.0.0 rejects this.
4281 It does not let you subtract one const X* pointer from another in
4282 an arm of an if-expression whose if-part is not a constant
4283 expression */
4284 const char *g = "string";
4285 pcpcc = &g + (g ? g-g : 0);
4286 /* HPUX 7.0 cc rejects these. */
4287 ++pcpcc;
4288 ppc = (char**) pcpcc;
4289 pcpcc = (char const *const *) ppc;
4290 { /* SCO 3.2v4 cc rejects this sort of thing. */
4291 char tx;
4292 char *t = &tx;
4293 char const *s = 0 ? (char *) 0 : (char const *) 0;
4294
4295 *t++ = 0;
4296 if (s) return 0;
4297 }
4298 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4299 int x[] = {25, 17};
4300 const int *foo = &x[0];
4301 ++foo;
4302 }
4303 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4304 typedef const int *iptr;
4305 iptr p = 0;
4306 ++p;
4307 }
4308 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4309 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4310 struct s { int j; const int *ap[3]; } bx;
4311 struct s *b = &bx; b->j = 5;
4312 }
4313 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4314 const int foo = 10;
4315 if (!foo) return 0;
4316 }
4317 return !cs[0] && !zero.x;
4318 #endif
4319
4320 ;
4321 return 0;
4322 }
4323 _ACEOF
4324 if ac_fn_c_try_compile "$LINENO"; then :
4325 ac_cv_c_const=yes
4326 else
4327 ac_cv_c_const=no
4328 fi
4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4332 $as_echo "$ac_cv_c_const" >&6; }
4333 if test $ac_cv_c_const = no; then
4334
4335 $as_echo "#define const /**/" >>confdefs.h
4336
4337 fi
4338
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4340 $as_echo_n "checking for inline... " >&6; }
4341 if ${ac_cv_c_inline+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 ac_cv_c_inline=no
4345 for ac_kw in inline __inline__ __inline; do
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4348 #ifndef __cplusplus
4349 typedef int foo_t;
4350 static $ac_kw foo_t static_foo () {return 0; }
4351 $ac_kw foo_t foo () {return 0; }
4352 #endif
4353
4354 _ACEOF
4355 if ac_fn_c_try_compile "$LINENO"; then :
4356 ac_cv_c_inline=$ac_kw
4357 fi
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 test "$ac_cv_c_inline" != no && break
4360 done
4361
4362 fi
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4364 $as_echo "$ac_cv_c_inline" >&6; }
4365
4366 case $ac_cv_c_inline in
4367 inline | yes) ;;
4368 *)
4369 case $ac_cv_c_inline in
4370 no) ac_val=;;
4371 *) ac_val=$ac_cv_c_inline;;
4372 esac
4373 cat >>confdefs.h <<_ACEOF
4374 #ifndef __cplusplus
4375 #define inline $ac_val
4376 #endif
4377 _ACEOF
4378 ;;
4379 esac
4380
4381 ac_ext=c
4382 ac_cpp='$CPP $CPPFLAGS'
4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4387 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4388 # On Suns, sometimes $CPP names a directory.
4389 if test -n "$CPP" && test -d "$CPP"; then
4390 CPP=
4391 fi
4392 if test -z "$CPP"; then
4393 if ${ac_cv_prog_CPP+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 # Double quotes because CPP needs to be expanded
4397 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4398 do
4399 ac_preproc_ok=false
4400 for ac_c_preproc_warn_flag in '' yes
4401 do
4402 # Use a header file that comes with gcc, so configuring glibc
4403 # with a fresh cross-compiler works.
4404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4405 # <limits.h> exists even on freestanding compilers.
4406 # On the NeXT, cc -E runs the code through the compiler's parser,
4407 # not just through cpp. "Syntax error" is here to catch this case.
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4410 #ifdef __STDC__
4411 # include <limits.h>
4412 #else
4413 # include <assert.h>
4414 #endif
4415 Syntax error
4416 _ACEOF
4417 if ac_fn_c_try_cpp "$LINENO"; then :
4418
4419 else
4420 # Broken: fails on valid input.
4421 continue
4422 fi
4423 rm -f conftest.err conftest.i conftest.$ac_ext
4424
4425 # OK, works on sane cases. Now check whether nonexistent headers
4426 # can be detected and how.
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429 #include <ac_nonexistent.h>
4430 _ACEOF
4431 if ac_fn_c_try_cpp "$LINENO"; then :
4432 # Broken: success on invalid input.
4433 continue
4434 else
4435 # Passes both tests.
4436 ac_preproc_ok=:
4437 break
4438 fi
4439 rm -f conftest.err conftest.i conftest.$ac_ext
4440
4441 done
4442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4443 rm -f conftest.i conftest.err conftest.$ac_ext
4444 if $ac_preproc_ok; then :
4445 break
4446 fi
4447
4448 done
4449 ac_cv_prog_CPP=$CPP
4450
4451 fi
4452 CPP=$ac_cv_prog_CPP
4453 else
4454 ac_cv_prog_CPP=$CPP
4455 fi
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4457 $as_echo "$CPP" >&6; }
4458 ac_preproc_ok=false
4459 for ac_c_preproc_warn_flag in '' yes
4460 do
4461 # Use a header file that comes with gcc, so configuring glibc
4462 # with a fresh cross-compiler works.
4463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4464 # <limits.h> exists even on freestanding compilers.
4465 # On the NeXT, cc -E runs the code through the compiler's parser,
4466 # not just through cpp. "Syntax error" is here to catch this case.
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4469 #ifdef __STDC__
4470 # include <limits.h>
4471 #else
4472 # include <assert.h>
4473 #endif
4474 Syntax error
4475 _ACEOF
4476 if ac_fn_c_try_cpp "$LINENO"; then :
4477
4478 else
4479 # Broken: fails on valid input.
4480 continue
4481 fi
4482 rm -f conftest.err conftest.i conftest.$ac_ext
4483
4484 # OK, works on sane cases. Now check whether nonexistent headers
4485 # can be detected and how.
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4488 #include <ac_nonexistent.h>
4489 _ACEOF
4490 if ac_fn_c_try_cpp "$LINENO"; then :
4491 # Broken: success on invalid input.
4492 continue
4493 else
4494 # Passes both tests.
4495 ac_preproc_ok=:
4496 break
4497 fi
4498 rm -f conftest.err conftest.i conftest.$ac_ext
4499
4500 done
4501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4502 rm -f conftest.i conftest.err conftest.$ac_ext
4503 if $ac_preproc_ok; then :
4504
4505 else
4506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4508 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4509 See \`config.log' for more details" "$LINENO" 5; }
4510 fi
4511
4512 ac_ext=c
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4520 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4521 if ${ac_cv_path_GREP+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 if test -z "$GREP"; then
4525 ac_path_GREP_found=false
4526 # Loop through the user's path and test for each of PROGNAME-LIST
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4529 do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_prog in grep ggrep; do
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4535 as_fn_executable_p "$ac_path_GREP" || continue
4536 # Check for GNU ac_path_GREP and select it if it is found.
4537 # Check for GNU $ac_path_GREP
4538 case `"$ac_path_GREP" --version 2>&1` in
4539 *GNU*)
4540 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4541 *)
4542 ac_count=0
4543 $as_echo_n 0123456789 >"conftest.in"
4544 while :
4545 do
4546 cat "conftest.in" "conftest.in" >"conftest.tmp"
4547 mv "conftest.tmp" "conftest.in"
4548 cp "conftest.in" "conftest.nl"
4549 $as_echo 'GREP' >> "conftest.nl"
4550 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4552 as_fn_arith $ac_count + 1 && ac_count=$as_val
4553 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4554 # Best one so far, save it but keep looking for a better one
4555 ac_cv_path_GREP="$ac_path_GREP"
4556 ac_path_GREP_max=$ac_count
4557 fi
4558 # 10*(2^10) chars as input seems more than enough
4559 test $ac_count -gt 10 && break
4560 done
4561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4562 esac
4563
4564 $ac_path_GREP_found && break 3
4565 done
4566 done
4567 done
4568 IFS=$as_save_IFS
4569 if test -z "$ac_cv_path_GREP"; then
4570 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4571 fi
4572 else
4573 ac_cv_path_GREP=$GREP
4574 fi
4575
4576 fi
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4578 $as_echo "$ac_cv_path_GREP" >&6; }
4579 GREP="$ac_cv_path_GREP"
4580
4581
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4583 $as_echo_n "checking for egrep... " >&6; }
4584 if ${ac_cv_path_EGREP+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4588 then ac_cv_path_EGREP="$GREP -E"
4589 else
4590 if test -z "$EGREP"; then
4591 ac_path_EGREP_found=false
4592 # Loop through the user's path and test for each of PROGNAME-LIST
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4595 do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_prog in egrep; do
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4601 as_fn_executable_p "$ac_path_EGREP" || continue
4602 # Check for GNU ac_path_EGREP and select it if it is found.
4603 # Check for GNU $ac_path_EGREP
4604 case `"$ac_path_EGREP" --version 2>&1` in
4605 *GNU*)
4606 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4607 *)
4608 ac_count=0
4609 $as_echo_n 0123456789 >"conftest.in"
4610 while :
4611 do
4612 cat "conftest.in" "conftest.in" >"conftest.tmp"
4613 mv "conftest.tmp" "conftest.in"
4614 cp "conftest.in" "conftest.nl"
4615 $as_echo 'EGREP' >> "conftest.nl"
4616 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4618 as_fn_arith $ac_count + 1 && ac_count=$as_val
4619 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4620 # Best one so far, save it but keep looking for a better one
4621 ac_cv_path_EGREP="$ac_path_EGREP"
4622 ac_path_EGREP_max=$ac_count
4623 fi
4624 # 10*(2^10) chars as input seems more than enough
4625 test $ac_count -gt 10 && break
4626 done
4627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4628 esac
4629
4630 $ac_path_EGREP_found && break 3
4631 done
4632 done
4633 done
4634 IFS=$as_save_IFS
4635 if test -z "$ac_cv_path_EGREP"; then
4636 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4637 fi
4638 else
4639 ac_cv_path_EGREP=$EGREP
4640 fi
4641
4642 fi
4643 fi
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4645 $as_echo "$ac_cv_path_EGREP" >&6; }
4646 EGREP="$ac_cv_path_EGREP"
4647
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4650 $as_echo_n "checking for ANSI C header files... " >&6; }
4651 if ${ac_cv_header_stdc+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656 #include <stdlib.h>
4657 #include <stdarg.h>
4658 #include <string.h>
4659 #include <float.h>
4660
4661 int
4662 main ()
4663 {
4664
4665 ;
4666 return 0;
4667 }
4668 _ACEOF
4669 if ac_fn_c_try_compile "$LINENO"; then :
4670 ac_cv_header_stdc=yes
4671 else
4672 ac_cv_header_stdc=no
4673 fi
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675
4676 if test $ac_cv_header_stdc = yes; then
4677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4680 #include <string.h>
4681
4682 _ACEOF
4683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4684 $EGREP "memchr" >/dev/null 2>&1; then :
4685
4686 else
4687 ac_cv_header_stdc=no
4688 fi
4689 rm -f conftest*
4690
4691 fi
4692
4693 if test $ac_cv_header_stdc = yes; then
4694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #include <stdlib.h>
4698
4699 _ACEOF
4700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4701 $EGREP "free" >/dev/null 2>&1; then :
4702
4703 else
4704 ac_cv_header_stdc=no
4705 fi
4706 rm -f conftest*
4707
4708 fi
4709
4710 if test $ac_cv_header_stdc = yes; then
4711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4712 if test "$cross_compiling" = yes; then :
4713 :
4714 else
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717 #include <ctype.h>
4718 #include <stdlib.h>
4719 #if ((' ' & 0x0FF) == 0x020)
4720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4722 #else
4723 # define ISLOWER(c) \
4724 (('a' <= (c) && (c) <= 'i') \
4725 || ('j' <= (c) && (c) <= 'r') \
4726 || ('s' <= (c) && (c) <= 'z'))
4727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4728 #endif
4729
4730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4731 int
4732 main ()
4733 {
4734 int i;
4735 for (i = 0; i < 256; i++)
4736 if (XOR (islower (i), ISLOWER (i))
4737 || toupper (i) != TOUPPER (i))
4738 return 2;
4739 return 0;
4740 }
4741 _ACEOF
4742 if ac_fn_c_try_run "$LINENO"; then :
4743
4744 else
4745 ac_cv_header_stdc=no
4746 fi
4747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4748 conftest.$ac_objext conftest.beam conftest.$ac_ext
4749 fi
4750
4751 fi
4752 fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4754 $as_echo "$ac_cv_header_stdc" >&6; }
4755 if test $ac_cv_header_stdc = yes; then
4756
4757 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4758
4759 fi
4760
4761 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4762 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4763 inttypes.h stdint.h unistd.h
4764 do :
4765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4766 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4767 "
4768 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4769 cat >>confdefs.h <<_ACEOF
4770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4771 _ACEOF
4772
4773 fi
4774
4775 done
4776
4777
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4779 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4780 if ${ac_cv_c_bigendian+:} false; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 ac_cv_c_bigendian=unknown
4784 # See if we're dealing with a universal compiler.
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4787 #ifndef __APPLE_CC__
4788 not a universal capable compiler
4789 #endif
4790 typedef int dummy;
4791
4792 _ACEOF
4793 if ac_fn_c_try_compile "$LINENO"; then :
4794
4795 # Check for potential -arch flags. It is not universal unless
4796 # there are at least two -arch flags with different values.
4797 ac_arch=
4798 ac_prev=
4799 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4800 if test -n "$ac_prev"; then
4801 case $ac_word in
4802 i?86 | x86_64 | ppc | ppc64)
4803 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4804 ac_arch=$ac_word
4805 else
4806 ac_cv_c_bigendian=universal
4807 break
4808 fi
4809 ;;
4810 esac
4811 ac_prev=
4812 elif test "x$ac_word" = "x-arch"; then
4813 ac_prev=arch
4814 fi
4815 done
4816 fi
4817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 if test $ac_cv_c_bigendian = unknown; then
4819 # See if sys/param.h defines the BYTE_ORDER macro.
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822 #include <sys/types.h>
4823 #include <sys/param.h>
4824
4825 int
4826 main ()
4827 {
4828 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4829 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4830 && LITTLE_ENDIAN)
4831 bogus endian macros
4832 #endif
4833
4834 ;
4835 return 0;
4836 }
4837 _ACEOF
4838 if ac_fn_c_try_compile "$LINENO"; then :
4839 # It does; now see whether it defined to BIG_ENDIAN or not.
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4842 #include <sys/types.h>
4843 #include <sys/param.h>
4844
4845 int
4846 main ()
4847 {
4848 #if BYTE_ORDER != BIG_ENDIAN
4849 not big endian
4850 #endif
4851
4852 ;
4853 return 0;
4854 }
4855 _ACEOF
4856 if ac_fn_c_try_compile "$LINENO"; then :
4857 ac_cv_c_bigendian=yes
4858 else
4859 ac_cv_c_bigendian=no
4860 fi
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 fi
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 fi
4865 if test $ac_cv_c_bigendian = unknown; then
4866 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4869 #include <limits.h>
4870
4871 int
4872 main ()
4873 {
4874 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4875 bogus endian macros
4876 #endif
4877
4878 ;
4879 return 0;
4880 }
4881 _ACEOF
4882 if ac_fn_c_try_compile "$LINENO"; then :
4883 # It does; now see whether it defined to _BIG_ENDIAN or not.
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4886 #include <limits.h>
4887
4888 int
4889 main ()
4890 {
4891 #ifndef _BIG_ENDIAN
4892 not big endian
4893 #endif
4894
4895 ;
4896 return 0;
4897 }
4898 _ACEOF
4899 if ac_fn_c_try_compile "$LINENO"; then :
4900 ac_cv_c_bigendian=yes
4901 else
4902 ac_cv_c_bigendian=no
4903 fi
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905 fi
4906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4907 fi
4908 if test $ac_cv_c_bigendian = unknown; then
4909 # Compile a test program.
4910 if test "$cross_compiling" = yes; then :
4911 # Try to guess by grepping values from an object file.
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4914 short int ascii_mm[] =
4915 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4916 short int ascii_ii[] =
4917 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4918 int use_ascii (int i) {
4919 return ascii_mm[i] + ascii_ii[i];
4920 }
4921 short int ebcdic_ii[] =
4922 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4923 short int ebcdic_mm[] =
4924 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4925 int use_ebcdic (int i) {
4926 return ebcdic_mm[i] + ebcdic_ii[i];
4927 }
4928 extern int foo;
4929
4930 int
4931 main ()
4932 {
4933 return use_ascii (foo) == use_ebcdic (foo);
4934 ;
4935 return 0;
4936 }
4937 _ACEOF
4938 if ac_fn_c_try_compile "$LINENO"; then :
4939 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4940 ac_cv_c_bigendian=yes
4941 fi
4942 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4943 if test "$ac_cv_c_bigendian" = unknown; then
4944 ac_cv_c_bigendian=no
4945 else
4946 # finding both strings is unlikely to happen, but who knows?
4947 ac_cv_c_bigendian=unknown
4948 fi
4949 fi
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 else
4953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4955 $ac_includes_default
4956 int
4957 main ()
4958 {
4959
4960 /* Are we little or big endian? From Harbison&Steele. */
4961 union
4962 {
4963 long int l;
4964 char c[sizeof (long int)];
4965 } u;
4966 u.l = 1;
4967 return u.c[sizeof (long int) - 1] == 1;
4968
4969 ;
4970 return 0;
4971 }
4972 _ACEOF
4973 if ac_fn_c_try_run "$LINENO"; then :
4974 ac_cv_c_bigendian=no
4975 else
4976 ac_cv_c_bigendian=yes
4977 fi
4978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4979 conftest.$ac_objext conftest.beam conftest.$ac_ext
4980 fi
4981
4982 fi
4983 fi
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4985 $as_echo "$ac_cv_c_bigendian" >&6; }
4986 case $ac_cv_c_bigendian in #(
4987 yes)
4988 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4989 ;; #(
4990 no)
4991 ;; #(
4992 universal)
4993
4994 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4995
4996 ;; #(
4997 *)
4998 as_fn_error $? "unknown endianness
4999 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5000 esac
5001
5002
5003 # Check whether --enable-largefile was given.
5004 if test "${enable_largefile+set}" = set; then :
5005 enableval=$enable_largefile;
5006 fi
5007
5008 if test "$enable_largefile" != no; then
5009
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5011 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5012 if ${ac_cv_sys_largefile_CC+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 ac_cv_sys_largefile_CC=no
5016 if test "$GCC" != yes; then
5017 ac_save_CC=$CC
5018 while :; do
5019 # IRIX 6.2 and later do not support large files by default,
5020 # so use the C compiler's -n32 option if that helps.
5021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h. */
5023 #include <sys/types.h>
5024 /* Check that off_t can represent 2**63 - 1 correctly.
5025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5026 since some C++ compilers masquerading as C compilers
5027 incorrectly reject 9223372036854775807. */
5028 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5030 && LARGE_OFF_T % 2147483647 == 1)
5031 ? 1 : -1];
5032 int
5033 main ()
5034 {
5035
5036 ;
5037 return 0;
5038 }
5039 _ACEOF
5040 if ac_fn_c_try_compile "$LINENO"; then :
5041 break
5042 fi
5043 rm -f core conftest.err conftest.$ac_objext
5044 CC="$CC -n32"
5045 if ac_fn_c_try_compile "$LINENO"; then :
5046 ac_cv_sys_largefile_CC=' -n32'; break
5047 fi
5048 rm -f core conftest.err conftest.$ac_objext
5049 break
5050 done
5051 CC=$ac_save_CC
5052 rm -f conftest.$ac_ext
5053 fi
5054 fi
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5056 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5057 if test "$ac_cv_sys_largefile_CC" != no; then
5058 CC=$CC$ac_cv_sys_largefile_CC
5059 fi
5060
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5062 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5063 if ${ac_cv_sys_file_offset_bits+:} false; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 while :; do
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 #include <sys/types.h>
5070 /* Check that off_t can represent 2**63 - 1 correctly.
5071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5072 since some C++ compilers masquerading as C compilers
5073 incorrectly reject 9223372036854775807. */
5074 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5076 && LARGE_OFF_T % 2147483647 == 1)
5077 ? 1 : -1];
5078 int
5079 main ()
5080 {
5081
5082 ;
5083 return 0;
5084 }
5085 _ACEOF
5086 if ac_fn_c_try_compile "$LINENO"; then :
5087 ac_cv_sys_file_offset_bits=no; break
5088 fi
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5092 #define _FILE_OFFSET_BITS 64
5093 #include <sys/types.h>
5094 /* Check that off_t can represent 2**63 - 1 correctly.
5095 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5096 since some C++ compilers masquerading as C compilers
5097 incorrectly reject 9223372036854775807. */
5098 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5099 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5100 && LARGE_OFF_T % 2147483647 == 1)
5101 ? 1 : -1];
5102 int
5103 main ()
5104 {
5105
5106 ;
5107 return 0;
5108 }
5109 _ACEOF
5110 if ac_fn_c_try_compile "$LINENO"; then :
5111 ac_cv_sys_file_offset_bits=64; break
5112 fi
5113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114 ac_cv_sys_file_offset_bits=unknown
5115 break
5116 done
5117 fi
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5119 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5120 case $ac_cv_sys_file_offset_bits in #(
5121 no | unknown) ;;
5122 *)
5123 cat >>confdefs.h <<_ACEOF
5124 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5125 _ACEOF
5126 ;;
5127 esac
5128 rm -rf conftest*
5129 if test $ac_cv_sys_file_offset_bits = unknown; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5131 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5132 if ${ac_cv_sys_large_files+:} false; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 while :; do
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138 #include <sys/types.h>
5139 /* Check that off_t can represent 2**63 - 1 correctly.
5140 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5141 since some C++ compilers masquerading as C compilers
5142 incorrectly reject 9223372036854775807. */
5143 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5144 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5145 && LARGE_OFF_T % 2147483647 == 1)
5146 ? 1 : -1];
5147 int
5148 main ()
5149 {
5150
5151 ;
5152 return 0;
5153 }
5154 _ACEOF
5155 if ac_fn_c_try_compile "$LINENO"; then :
5156 ac_cv_sys_large_files=no; break
5157 fi
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5161 #define _LARGE_FILES 1
5162 #include <sys/types.h>
5163 /* Check that off_t can represent 2**63 - 1 correctly.
5164 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5165 since some C++ compilers masquerading as C compilers
5166 incorrectly reject 9223372036854775807. */
5167 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5168 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5169 && LARGE_OFF_T % 2147483647 == 1)
5170 ? 1 : -1];
5171 int
5172 main ()
5173 {
5174
5175 ;
5176 return 0;
5177 }
5178 _ACEOF
5179 if ac_fn_c_try_compile "$LINENO"; then :
5180 ac_cv_sys_large_files=1; break
5181 fi
5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183 ac_cv_sys_large_files=unknown
5184 break
5185 done
5186 fi
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5188 $as_echo "$ac_cv_sys_large_files" >&6; }
5189 case $ac_cv_sys_large_files in #(
5190 no | unknown) ;;
5191 *)
5192 cat >>confdefs.h <<_ACEOF
5193 #define _LARGE_FILES $ac_cv_sys_large_files
5194 _ACEOF
5195 ;;
5196 esac
5197 rm -rf conftest*
5198 fi
5199
5200
5201 fi
5202
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5204 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5205 if ${ac_cv_sys_largefile_source+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 while :; do
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5211 #include <sys/types.h> /* for off_t */
5212 #include <stdio.h>
5213 int
5214 main ()
5215 {
5216 int (*fp) (FILE *, off_t, int) = fseeko;
5217 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5218 ;
5219 return 0;
5220 }
5221 _ACEOF
5222 if ac_fn_c_try_link "$LINENO"; then :
5223 ac_cv_sys_largefile_source=no; break
5224 fi
5225 rm -f core conftest.err conftest.$ac_objext \
5226 conftest$ac_exeext conftest.$ac_ext
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229 #define _LARGEFILE_SOURCE 1
5230 #include <sys/types.h> /* for off_t */
5231 #include <stdio.h>
5232 int
5233 main ()
5234 {
5235 int (*fp) (FILE *, off_t, int) = fseeko;
5236 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5237 ;
5238 return 0;
5239 }
5240 _ACEOF
5241 if ac_fn_c_try_link "$LINENO"; then :
5242 ac_cv_sys_largefile_source=1; break
5243 fi
5244 rm -f core conftest.err conftest.$ac_objext \
5245 conftest$ac_exeext conftest.$ac_ext
5246 ac_cv_sys_largefile_source=unknown
5247 break
5248 done
5249 fi
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
5251 $as_echo "$ac_cv_sys_largefile_source" >&6; }
5252 case $ac_cv_sys_largefile_source in #(
5253 no | unknown) ;;
5254 *)
5255 cat >>confdefs.h <<_ACEOF
5256 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5257 _ACEOF
5258 ;;
5259 esac
5260 rm -rf conftest*
5261
5262 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5263 # in glibc 2.1.3, but that breaks too many other things.
5264 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5265 if test $ac_cv_sys_largefile_source != unknown; then
5266
5267 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
5268
5269 fi
5270
5271 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
5272 if test "x$ac_cv_func_fseeko" = xyes; then :
5273
5274 fi
5275
5276 if test ! $ac_cv_func_fseeko; then
5277 as_fn_error $? "Libjte requires largefile support." "$LINENO" 5
5278 fi
5279
5280 case `pwd` in
5281 *\ * | *\ *)
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5283 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5284 esac
5285
5286
5287
5288 macro_version='2.4.6'
5289 macro_revision='2.4.6'
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303 ltmain=$ac_aux_dir/ltmain.sh
5304
5305 # Backslashify metacharacters that are still active within
5306 # double-quoted strings.
5307 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5308
5309 # Same as above, but do not quote variable references.
5310 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5311
5312 # Sed substitution to delay expansion of an escaped shell variable in a
5313 # double_quote_subst'ed string.
5314 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5315
5316 # Sed substitution to delay expansion of an escaped single quote.
5317 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5318
5319 # Sed substitution to avoid accidental globbing in evaled expressions
5320 no_glob_subst='s/\*/\\\*/g'
5321
5322 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5323 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5324 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5325
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5327 $as_echo_n "checking how to print strings... " >&6; }
5328 # Test print first, because it will be a builtin if present.
5329 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5330 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5331 ECHO='print -r --'
5332 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5333 ECHO='printf %s\n'
5334 else
5335 # Use this function as a fallback that always works.
5336 func_fallback_echo ()
5337 {
5338 eval 'cat <<_LTECHO_EOF
5339 $1
5340 _LTECHO_EOF'
5341 }
5342 ECHO='func_fallback_echo'
5343 fi
5344
5345 # func_echo_all arg...
5346 # Invoke $ECHO with all args, space-separated.
5347 func_echo_all ()
5348 {
5349 $ECHO ""
5350 }
5351
5352 case $ECHO in
5353 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5354 $as_echo "printf" >&6; } ;;
5355 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5356 $as_echo "print -r" >&6; } ;;
5357 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5358 $as_echo "cat" >&6; } ;;
5359 esac
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5375 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5376 if ${ac_cv_path_SED+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5380 for ac_i in 1 2 3 4 5 6 7; do
5381 ac_script="$ac_script$as_nl$ac_script"
5382 done
5383 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5384 { ac_script=; unset ac_script;}
5385 if test -z "$SED"; then
5386 ac_path_SED_found=false
5387 # Loop through the user's path and test for each of PROGNAME-LIST
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_prog in sed gsed; do
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5396 as_fn_executable_p "$ac_path_SED" || continue
5397 # Check for GNU ac_path_SED and select it if it is found.
5398 # Check for GNU $ac_path_SED
5399 case `"$ac_path_SED" --version 2>&1` in
5400 *GNU*)
5401 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5402 *)
5403 ac_count=0
5404 $as_echo_n 0123456789 >"conftest.in"
5405 while :
5406 do
5407 cat "conftest.in" "conftest.in" >"conftest.tmp"
5408 mv "conftest.tmp" "conftest.in"
5409 cp "conftest.in" "conftest.nl"
5410 $as_echo '' >> "conftest.nl"
5411 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5413 as_fn_arith $ac_count + 1 && ac_count=$as_val
5414 if test $ac_count -gt ${ac_path_SED_max-0}; then
5415 # Best one so far, save it but keep looking for a better one
5416 ac_cv_path_SED="$ac_path_SED"
5417 ac_path_SED_max=$ac_count
5418 fi
5419 # 10*(2^10) chars as input seems more than enough
5420 test $ac_count -gt 10 && break
5421 done
5422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5423 esac
5424
5425 $ac_path_SED_found && break 3
5426 done
5427 done
5428 done
5429 IFS=$as_save_IFS
5430 if test -z "$ac_cv_path_SED"; then
5431 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5432 fi
5433 else
5434 ac_cv_path_SED=$SED
5435 fi
5436
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5439 $as_echo "$ac_cv_path_SED" >&6; }
5440 SED="$ac_cv_path_SED"
5441 rm -f conftest.sed
5442
5443 test -z "$SED" && SED=sed
5444 Xsed="$SED -e 1s/^X//"
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5457 $as_echo_n "checking for fgrep... " >&6; }
5458 if ${ac_cv_path_FGREP+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5462 then ac_cv_path_FGREP="$GREP -F"
5463 else
5464 if test -z "$FGREP"; then
5465 ac_path_FGREP_found=false
5466 # Loop through the user's path and test for each of PROGNAME-LIST
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5469 do
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
5472 for ac_prog in fgrep; do
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5475 as_fn_executable_p "$ac_path_FGREP" || continue
5476 # Check for GNU ac_path_FGREP and select it if it is found.
5477 # Check for GNU $ac_path_FGREP
5478 case `"$ac_path_FGREP" --version 2>&1` in
5479 *GNU*)
5480 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5481 *)
5482 ac_count=0
5483 $as_echo_n 0123456789 >"conftest.in"
5484 while :
5485 do
5486 cat "conftest.in" "conftest.in" >"conftest.tmp"
5487 mv "conftest.tmp" "conftest.in"
5488 cp "conftest.in" "conftest.nl"
5489 $as_echo 'FGREP' >> "conftest.nl"
5490 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5492 as_fn_arith $ac_count + 1 && ac_count=$as_val
5493 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5494 # Best one so far, save it but keep looking for a better one
5495 ac_cv_path_FGREP="$ac_path_FGREP"
5496 ac_path_FGREP_max=$ac_count
5497 fi
5498 # 10*(2^10) chars as input seems more than enough
5499 test $ac_count -gt 10 && break
5500 done
5501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5502 esac
5503
5504 $ac_path_FGREP_found && break 3
5505 done
5506 done
5507 done
5508 IFS=$as_save_IFS
5509 if test -z "$ac_cv_path_FGREP"; then
5510 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5511 fi
5512 else
5513 ac_cv_path_FGREP=$FGREP
5514 fi
5515
5516 fi
5517 fi
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5519 $as_echo "$ac_cv_path_FGREP" >&6; }
5520 FGREP="$ac_cv_path_FGREP"
5521
5522
5523 test -z "$GREP" && GREP=grep
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543 # Check whether --with-gnu-ld was given.
5544 if test "${with_gnu_ld+set}" = set; then :
5545 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5546 else
5547 with_gnu_ld=no
5548 fi
5549
5550 ac_prog=ld
5551 if test yes = "$GCC"; then
5552 # Check if gcc -print-prog-name=ld gives a path.
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5554 $as_echo_n "checking for ld used by $CC... " >&6; }
5555 case $host in
5556 *-*-mingw*)
5557 # gcc leaves a trailing carriage return, which upsets mingw
5558 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5559 *)
5560 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5561 esac
5562 case $ac_prog in
5563 # Accept absolute paths.
5564 [\\/]* | ?:[\\/]*)
5565 re_direlt='/[^/][^/]*/\.\./'
5566 # Canonicalize the pathname of ld
5567 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5568 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5569 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5570 done
5571 test -z "$LD" && LD=$ac_prog
5572 ;;
5573 "")
5574 # If it fails, then pretend we aren't using GCC.
5575 ac_prog=ld
5576 ;;
5577 *)
5578 # If it is relative, then search for the first ld in PATH.
5579 with_gnu_ld=unknown
5580 ;;
5581 esac
5582 elif test yes = "$with_gnu_ld"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5584 $as_echo_n "checking for GNU ld... " >&6; }
5585 else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5587 $as_echo_n "checking for non-GNU ld... " >&6; }
5588 fi
5589 if ${lt_cv_path_LD+:} false; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 if test -z "$LD"; then
5593 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5594 for ac_dir in $PATH; do
5595 IFS=$lt_save_ifs
5596 test -z "$ac_dir" && ac_dir=.
5597 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5598 lt_cv_path_LD=$ac_dir/$ac_prog
5599 # Check to see if the program is GNU ld. I'd rather use --version,
5600 # but apparently some variants of GNU ld only accept -v.
5601 # Break only if it was the GNU/non-GNU ld that we prefer.
5602 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5603 *GNU* | *'with BFD'*)
5604 test no != "$with_gnu_ld" && break
5605 ;;
5606 *)
5607 test yes != "$with_gnu_ld" && break
5608 ;;
5609 esac
5610 fi
5611 done
5612 IFS=$lt_save_ifs
5613 else
5614 lt_cv_path_LD=$LD # Let the user override the test with a path.
5615 fi
5616 fi
5617
5618 LD=$lt_cv_path_LD
5619 if test -n "$LD"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5621 $as_echo "$LD" >&6; }
5622 else
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5625 fi
5626 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5628 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5629 if ${lt_cv_prog_gnu_ld+:} false; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5633 case `$LD -v 2>&1 </dev/null` in
5634 *GNU* | *'with BFD'*)
5635 lt_cv_prog_gnu_ld=yes
5636 ;;
5637 *)
5638 lt_cv_prog_gnu_ld=no
5639 ;;
5640 esac
5641 fi
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5643 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5644 with_gnu_ld=$lt_cv_prog_gnu_ld
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5655 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5656 if ${lt_cv_path_NM+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 if test -n "$NM"; then
5660 # Let the user override the test.
5661 lt_cv_path_NM=$NM
5662 else
5663 lt_nm_to_check=${ac_tool_prefix}nm
5664 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5665 lt_nm_to_check="$lt_nm_to_check nm"
5666 fi
5667 for lt_tmp_nm in $lt_nm_to_check; do
5668 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5669 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5670 IFS=$lt_save_ifs
5671 test -z "$ac_dir" && ac_dir=.
5672 tmp_nm=$ac_dir/$lt_tmp_nm
5673 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5674 # Check to see if the nm accepts a BSD-compat flag.
5675 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5676 # nm: unknown option "B" ignored
5677 # Tru64's nm complains that /dev/null is an invalid object file
5678 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5679 case $build_os in
5680 mingw*) lt_bad_file=conftest.nm/nofile ;;
5681 *) lt_bad_file=/dev/null ;;
5682 esac
5683 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5684 *$lt_bad_file* | *'Invalid file or object type'*)
5685 lt_cv_path_NM="$tmp_nm -B"
5686 break 2
5687 ;;
5688 *)
5689 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5690 */dev/null*)
5691 lt_cv_path_NM="$tmp_nm -p"
5692 break 2
5693 ;;
5694 *)
5695 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5696 continue # so that we can try to find one that supports BSD flags
5697 ;;
5698 esac
5699 ;;
5700 esac
5701 fi
5702 done
5703 IFS=$lt_save_ifs
5704 done
5705 : ${lt_cv_path_NM=no}
5706 fi
5707 fi
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5709 $as_echo "$lt_cv_path_NM" >&6; }
5710 if test no != "$lt_cv_path_NM"; then
5711 NM=$lt_cv_path_NM
5712 else
5713 # Didn't find any BSD compatible name lister, look for dumpbin.
5714 if test -n "$DUMPBIN"; then :
5715 # Let the user override the test.
5716 else
5717 if test -n "$ac_tool_prefix"; then
5718 for ac_prog in dumpbin "link -dump"
5719 do
5720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5721 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if ${ac_cv_prog_DUMPBIN+:} false; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 if test -n "$DUMPBIN"; then
5728 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5729 else
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH
5732 do
5733 IFS=$as_save_IFS
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 break 2
5740 fi
5741 done
5742 done
5743 IFS=$as_save_IFS
5744
5745 fi
5746 fi
5747 DUMPBIN=$ac_cv_prog_DUMPBIN
5748 if test -n "$DUMPBIN"; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5750 $as_echo "$DUMPBIN" >&6; }
5751 else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5754 fi
5755
5756
5757 test -n "$DUMPBIN" && break
5758 done
5759 fi
5760 if test -z "$DUMPBIN"; then
5761 ac_ct_DUMPBIN=$DUMPBIN
5762 for ac_prog in dumpbin "link -dump"
5763 do
5764 # Extract the first word of "$ac_prog", so it can be a program name with args.
5765 set dummy $ac_prog; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 if test -n "$ac_ct_DUMPBIN"; then
5772 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 break 2
5784 fi
5785 done
5786 done
5787 IFS=$as_save_IFS
5788
5789 fi
5790 fi
5791 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5792 if test -n "$ac_ct_DUMPBIN"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5794 $as_echo "$ac_ct_DUMPBIN" >&6; }
5795 else
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5798 fi
5799
5800
5801 test -n "$ac_ct_DUMPBIN" && break
5802 done
5803
5804 if test "x$ac_ct_DUMPBIN" = x; then
5805 DUMPBIN=":"
5806 else
5807 case $cross_compiling:$ac_tool_warned in
5808 yes:)
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5811 ac_tool_warned=yes ;;
5812 esac
5813 DUMPBIN=$ac_ct_DUMPBIN
5814 fi
5815 fi
5816
5817 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5818 *COFF*)
5819 DUMPBIN="$DUMPBIN -symbols -headers"
5820 ;;
5821 *)
5822 DUMPBIN=:
5823 ;;
5824 esac
5825 fi
5826
5827 if test : != "$DUMPBIN"; then
5828 NM=$DUMPBIN
5829 fi
5830 fi
5831 test -z "$NM" && NM=nm
5832
5833
5834
5835
5836
5837
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5839 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5840 if ${lt_cv_nm_interface+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 lt_cv_nm_interface="BSD nm"
5844 echo "int some_variable = 0;" > conftest.$ac_ext
5845 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5846 (eval "$ac_compile" 2>conftest.err)
5847 cat conftest.err >&5
5848 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5849 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5850 cat conftest.err >&5
5851 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5852 cat conftest.out >&5
5853 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5854 lt_cv_nm_interface="MS dumpbin"
5855 fi
5856 rm -f conftest*
5857 fi
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5859 $as_echo "$lt_cv_nm_interface" >&6; }
5860
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5862 $as_echo_n "checking whether ln -s works... " >&6; }
5863 LN_S=$as_ln_s
5864 if test "$LN_S" = "ln -s"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5866 $as_echo "yes" >&6; }
5867 else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5869 $as_echo "no, using $LN_S" >&6; }
5870 fi
5871
5872 # find the maximum length of command line arguments
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5874 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5875 if ${lt_cv_sys_max_cmd_len+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 i=0
5879 teststring=ABCD
5880
5881 case $build_os in
5882 msdosdjgpp*)
5883 # On DJGPP, this test can blow up pretty badly due to problems in libc
5884 # (any single argument exceeding 2000 bytes causes a buffer overrun
5885 # during glob expansion). Even if it were fixed, the result of this
5886 # check would be larger than it should be.
5887 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5888 ;;
5889
5890 gnu*)
5891 # Under GNU Hurd, this test is not required because there is
5892 # no limit to the length of command line arguments.
5893 # Libtool will interpret -1 as no limit whatsoever
5894 lt_cv_sys_max_cmd_len=-1;
5895 ;;
5896
5897 cygwin* | mingw* | cegcc*)
5898 # On Win9x/ME, this test blows up -- it succeeds, but takes
5899 # about 5 minutes as the teststring grows exponentially.
5900 # Worse, since 9x/ME are not pre-emptively multitasking,
5901 # you end up with a "frozen" computer, even though with patience
5902 # the test eventually succeeds (with a max line length of 256k).
5903 # Instead, let's just punt: use the minimum linelength reported by
5904 # all of the supported platforms: 8192 (on NT/2K/XP).
5905 lt_cv_sys_max_cmd_len=8192;
5906 ;;
5907
5908 mint*)
5909 # On MiNT this can take a long time and run out of memory.
5910 lt_cv_sys_max_cmd_len=8192;
5911 ;;
5912
5913 amigaos*)
5914 # On AmigaOS with pdksh, this test takes hours, literally.
5915 # So we just punt and use a minimum line length of 8192.
5916 lt_cv_sys_max_cmd_len=8192;
5917 ;;
5918
5919 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5920 # This has been around since 386BSD, at least. Likely further.
5921 if test -x /sbin/sysctl; then
5922 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5923 elif test -x /usr/sbin/sysctl; then
5924 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5925 else
5926 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5927 fi
5928 # And add a safety zone
5929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5931 ;;
5932
5933 interix*)
5934 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5935 lt_cv_sys_max_cmd_len=196608
5936 ;;
5937
5938 os2*)
5939 # The test takes a long time on OS/2.
5940 lt_cv_sys_max_cmd_len=8192
5941 ;;
5942
5943 osf*)
5944 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5945 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5946 # nice to cause kernel panics so lets avoid the loop below.
5947 # First set a reasonable default.
5948 lt_cv_sys_max_cmd_len=16384
5949 #
5950 if test -x /sbin/sysconfig; then
5951 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5952 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5953 esac
5954 fi
5955 ;;
5956 sco3.2v5*)
5957 lt_cv_sys_max_cmd_len=102400
5958 ;;
5959 sysv5* | sco5v6* | sysv4.2uw2*)
5960 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5961 if test -n "$kargmax"; then
5962 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5963 else
5964 lt_cv_sys_max_cmd_len=32768
5965 fi
5966 ;;
5967 *)
5968 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5969 if test -n "$lt_cv_sys_max_cmd_len" && \
5970 test undefined != "$lt_cv_sys_max_cmd_len"; then
5971 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5972 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5973 else
5974 # Make teststring a little bigger before we do anything with it.
5975 # a 1K string should be a reasonable start.
5976 for i in 1 2 3 4 5 6 7 8; do
5977 teststring=$teststring$teststring
5978 done
5979 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5980 # If test is not a shell built-in, we'll probably end up computing a
5981 # maximum length that is only half of the actual maximum length, but
5982 # we can't tell.
5983 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5984 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5985 test 17 != "$i" # 1/2 MB should be enough
5986 do
5987 i=`expr $i + 1`
5988 teststring=$teststring$teststring
5989 done
5990 # Only check the string length outside the loop.
5991 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5992 teststring=
5993 # Add a significant safety factor because C++ compilers can tack on
5994 # massive amounts of additional arguments before passing them to the
5995 # linker. It appears as though 1/2 is a usable value.
5996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5997 fi
5998 ;;
5999 esac
6000
6001 fi
6002
6003 if test -n "$lt_cv_sys_max_cmd_len"; then
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6005 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6006 else
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6008 $as_echo "none" >&6; }
6009 fi
6010 max_cmd_len=$lt_cv_sys_max_cmd_len
6011
6012
6013
6014
6015
6016
6017 : ${CP="cp -f"}
6018 : ${MV="mv -f"}
6019 : ${RM="rm -f"}
6020
6021 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6022 lt_unset=unset
6023 else
6024 lt_unset=false
6025 fi
6026
6027
6028
6029
6030
6031 # test EBCDIC or ASCII
6032 case `echo X|tr X '\101'` in
6033 A) # ASCII based system
6034 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6035 lt_SP2NL='tr \040 \012'
6036 lt_NL2SP='tr \015\012 \040\040'
6037 ;;
6038 *) # EBCDIC based system
6039 lt_SP2NL='tr \100 \n'
6040 lt_NL2SP='tr \r\n \100\100'
6041 ;;
6042 esac
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6053 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6054 if ${lt_cv_to_host_file_cmd+:} false; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 case $host in
6058 *-*-mingw* )
6059 case $build in
6060 *-*-mingw* ) # actually msys
6061 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6062 ;;
6063 *-*-cygwin* )
6064 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6065 ;;
6066 * ) # otherwise, assume *nix
6067 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6068 ;;
6069 esac
6070 ;;
6071 *-*-cygwin* )
6072 case $build in
6073 *-*-mingw* ) # actually msys
6074 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6075 ;;
6076 *-*-cygwin* )
6077 lt_cv_to_host_file_cmd=func_convert_file_noop
6078 ;;
6079 * ) # otherwise, assume *nix
6080 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6081 ;;
6082 esac
6083 ;;
6084 * ) # unhandled hosts (and "normal" native builds)
6085 lt_cv_to_host_file_cmd=func_convert_file_noop
6086 ;;
6087 esac
6088
6089 fi
6090
6091 to_host_file_cmd=$lt_cv_to_host_file_cmd
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6093 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6094
6095
6096
6097
6098
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6100 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6101 if ${lt_cv_to_tool_file_cmd+:} false; then :
6102 $as_echo_n "(cached) " >&6
6103 else
6104 #assume ordinary cross tools, or native build.
6105 lt_cv_to_tool_file_cmd=func_convert_file_noop
6106 case $host in
6107 *-*-mingw* )
6108 case $build in
6109 *-*-mingw* ) # actually msys
6110 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6111 ;;
6112 esac
6113 ;;
6114 esac
6115
6116 fi
6117
6118 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6120 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6121
6122
6123
6124
6125
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6127 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6128 if ${lt_cv_ld_reload_flag+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 lt_cv_ld_reload_flag='-r'
6132 fi
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6134 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6135 reload_flag=$lt_cv_ld_reload_flag
6136 case $reload_flag in
6137 "" | " "*) ;;
6138 *) reload_flag=" $reload_flag" ;;
6139 esac
6140 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6141 case $host_os in
6142 cygwin* | mingw* | pw32* | cegcc*)
6143 if test yes != "$GCC"; then
6144 reload_cmds=false
6145 fi
6146 ;;
6147 darwin*)
6148 if test yes = "$GCC"; then
6149 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6150 else
6151 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6152 fi
6153 ;;
6154 esac
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164 if test -n "$ac_tool_prefix"; then
6165 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6166 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if ${ac_cv_prog_OBJDUMP+:} false; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172 if test -n "$OBJDUMP"; then
6173 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6177 do
6178 IFS=$as_save_IFS
6179 test -z "$as_dir" && as_dir=.
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6182 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184 break 2
6185 fi
6186 done
6187 done
6188 IFS=$as_save_IFS
6189
6190 fi
6191 fi
6192 OBJDUMP=$ac_cv_prog_OBJDUMP
6193 if test -n "$OBJDUMP"; then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6195 $as_echo "$OBJDUMP" >&6; }
6196 else
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6199 fi
6200
6201
6202 fi
6203 if test -z "$ac_cv_prog_OBJDUMP"; then
6204 ac_ct_OBJDUMP=$OBJDUMP
6205 # Extract the first word of "objdump", so it can be a program name with args.
6206 set dummy objdump; ac_word=$2
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208 $as_echo_n "checking for $ac_word... " >&6; }
6209 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6210 $as_echo_n "(cached) " >&6
6211 else
6212 if test -n "$ac_ct_OBJDUMP"; then
6213 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6214 else
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH
6217 do
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6222 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 break 2
6225 fi
6226 done
6227 done
6228 IFS=$as_save_IFS
6229
6230 fi
6231 fi
6232 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6233 if test -n "$ac_ct_OBJDUMP"; then
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6235 $as_echo "$ac_ct_OBJDUMP" >&6; }
6236 else
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6238 $as_echo "no" >&6; }
6239 fi
6240
6241 if test "x$ac_ct_OBJDUMP" = x; then
6242 OBJDUMP="false"
6243 else
6244 case $cross_compiling:$ac_tool_warned in
6245 yes:)
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6248 ac_tool_warned=yes ;;
6249 esac
6250 OBJDUMP=$ac_ct_OBJDUMP
6251 fi
6252 else
6253 OBJDUMP="$ac_cv_prog_OBJDUMP"
6254 fi
6255
6256 test -z "$OBJDUMP" && OBJDUMP=objdump
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6267 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6268 if ${lt_cv_deplibs_check_method+:} false; then :
6269 $as_echo_n "(cached) " >&6
6270 else
6271 lt_cv_file_magic_cmd='$MAGIC_CMD'
6272 lt_cv_file_magic_test_file=
6273 lt_cv_deplibs_check_method='unknown'
6274 # Need to set the preceding variable on all platforms that support
6275 # interlibrary dependencies.
6276 # 'none' -- dependencies not supported.
6277 # 'unknown' -- same as none, but documents that we really don't know.
6278 # 'pass_all' -- all dependencies passed with no checks.
6279 # 'test_compile' -- check by making test program.
6280 # 'file_magic [[regex]]' -- check by looking for files in library path
6281 # that responds to the $file_magic_cmd with a given extended regex.
6282 # If you have 'file' or equivalent on your system and you're not sure
6283 # whether 'pass_all' will *always* work, you probably want this one.
6284
6285 case $host_os in
6286 aix[4-9]*)
6287 lt_cv_deplibs_check_method=pass_all
6288 ;;
6289
6290 beos*)
6291 lt_cv_deplibs_check_method=pass_all
6292 ;;
6293
6294 bsdi[45]*)
6295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6296 lt_cv_file_magic_cmd='/usr/bin/file -L'
6297 lt_cv_file_magic_test_file=/shlib/libc.so
6298 ;;
6299
6300 cygwin*)
6301 # func_win32_libid is a shell function defined in ltmain.sh
6302 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6303 lt_cv_file_magic_cmd='func_win32_libid'
6304 ;;
6305
6306 mingw* | pw32*)
6307 # Base MSYS/MinGW do not provide the 'file' command needed by
6308 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6309 # unless we find 'file', for example because we are cross-compiling.
6310 if ( file / ) >/dev/null 2>&1; then
6311 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6312 lt_cv_file_magic_cmd='func_win32_libid'
6313 else
6314 # Keep this pattern in sync with the one in func_win32_libid.
6315 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6316 lt_cv_file_magic_cmd='$OBJDUMP -f'
6317 fi
6318 ;;
6319
6320 cegcc*)
6321 # use the weaker test based on 'objdump'. See mingw*.
6322 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6323 lt_cv_file_magic_cmd='$OBJDUMP -f'
6324 ;;
6325
6326 darwin* | rhapsody*)
6327 lt_cv_deplibs_check_method=pass_all
6328 ;;
6329
6330 freebsd* | dragonfly*)
6331 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6332 case $host_cpu in
6333 i*86 )
6334 # Not sure whether the presence of OpenBSD here was a mistake.
6335 # Let's accept both of them until this is cleared up.
6336 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6337 lt_cv_file_magic_cmd=/usr/bin/file
6338 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6339 ;;
6340 esac
6341 else
6342 lt_cv_deplibs_check_method=pass_all
6343 fi
6344 ;;
6345
6346 haiku*)
6347 lt_cv_deplibs_check_method=pass_all
6348 ;;
6349
6350 hpux10.20* | hpux11*)
6351 lt_cv_file_magic_cmd=/usr/bin/file
6352 case $host_cpu in
6353 ia64*)
6354 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6355 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6356 ;;
6357 hppa*64*)
6358 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]'
6359 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6360 ;;
6361 *)
6362 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6363 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6364 ;;
6365 esac
6366 ;;
6367
6368 interix[3-9]*)
6369 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6371 ;;
6372
6373 irix5* | irix6* | nonstopux*)
6374 case $LD in
6375 *-32|*"-32 ") libmagic=32-bit;;
6376 *-n32|*"-n32 ") libmagic=N32;;
6377 *-64|*"-64 ") libmagic=64-bit;;
6378 *) libmagic=never-match;;
6379 esac
6380 lt_cv_deplibs_check_method=pass_all
6381 ;;
6382
6383 # This must be glibc/ELF.
6384 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6385 lt_cv_deplibs_check_method=pass_all
6386 ;;
6387
6388 netbsd* | netbsdelf*-gnu)
6389 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6391 else
6392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6393 fi
6394 ;;
6395
6396 newos6*)
6397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6398 lt_cv_file_magic_cmd=/usr/bin/file
6399 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6400 ;;
6401
6402 *nto* | *qnx*)
6403 lt_cv_deplibs_check_method=pass_all
6404 ;;
6405
6406 openbsd* | bitrig*)
6407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6409 else
6410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6411 fi
6412 ;;
6413
6414 osf3* | osf4* | osf5*)
6415 lt_cv_deplibs_check_method=pass_all
6416 ;;
6417
6418 rdos*)
6419 lt_cv_deplibs_check_method=pass_all
6420 ;;
6421
6422 solaris*)
6423 lt_cv_deplibs_check_method=pass_all
6424 ;;
6425
6426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6427 lt_cv_deplibs_check_method=pass_all
6428 ;;
6429
6430 sysv4 | sysv4.3*)
6431 case $host_vendor in
6432 motorola)
6433 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]'
6434 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6435 ;;
6436 ncr)
6437 lt_cv_deplibs_check_method=pass_all
6438 ;;
6439 sequent)
6440 lt_cv_file_magic_cmd='/bin/file'
6441 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6442 ;;
6443 sni)
6444 lt_cv_file_magic_cmd='/bin/file'
6445 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6446 lt_cv_file_magic_test_file=/lib/libc.so
6447 ;;
6448 siemens)
6449 lt_cv_deplibs_check_method=pass_all
6450 ;;
6451 pc)
6452 lt_cv_deplibs_check_method=pass_all
6453 ;;
6454 esac
6455 ;;
6456
6457 tpf*)
6458 lt_cv_deplibs_check_method=pass_all
6459 ;;
6460 os2*)
6461 lt_cv_deplibs_check_method=pass_all
6462 ;;
6463 esac
6464
6465 fi
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6467 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6468
6469 file_magic_glob=
6470 want_nocaseglob=no
6471 if test "$build" = "$host"; then
6472 case $host_os in
6473 mingw* | pw32*)
6474 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6475 want_nocaseglob=yes
6476 else
6477 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6478 fi
6479 ;;
6480 esac
6481 fi
6482
6483 file_magic_cmd=$lt_cv_file_magic_cmd
6484 deplibs_check_method=$lt_cv_deplibs_check_method
6485 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508 if test -n "$ac_tool_prefix"; then
6509 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6510 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if ${ac_cv_prog_DLLTOOL+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 if test -n "$DLLTOOL"; then
6517 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6526 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6533
6534 fi
6535 fi
6536 DLLTOOL=$ac_cv_prog_DLLTOOL
6537 if test -n "$DLLTOOL"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6539 $as_echo "$DLLTOOL" >&6; }
6540 else
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542 $as_echo "no" >&6; }
6543 fi
6544
6545
6546 fi
6547 if test -z "$ac_cv_prog_DLLTOOL"; then
6548 ac_ct_DLLTOOL=$DLLTOOL
6549 # Extract the first word of "dlltool", so it can be a program name with args.
6550 set dummy dlltool; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 if test -n "$ac_ct_DLLTOOL"; then
6557 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 break 2
6569 fi
6570 done
6571 done
6572 IFS=$as_save_IFS
6573
6574 fi
6575 fi
6576 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6577 if test -n "$ac_ct_DLLTOOL"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6579 $as_echo "$ac_ct_DLLTOOL" >&6; }
6580 else
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6583 fi
6584
6585 if test "x$ac_ct_DLLTOOL" = x; then
6586 DLLTOOL="false"
6587 else
6588 case $cross_compiling:$ac_tool_warned in
6589 yes:)
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6592 ac_tool_warned=yes ;;
6593 esac
6594 DLLTOOL=$ac_ct_DLLTOOL
6595 fi
6596 else
6597 DLLTOOL="$ac_cv_prog_DLLTOOL"
6598 fi
6599
6600 test -z "$DLLTOOL" && DLLTOOL=dlltool
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6612 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6613 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 lt_cv_sharedlib_from_linklib_cmd='unknown'
6617
6618 case $host_os in
6619 cygwin* | mingw* | pw32* | cegcc*)
6620 # two different shell functions defined in ltmain.sh;
6621 # decide which one to use based on capabilities of $DLLTOOL
6622 case `$DLLTOOL --help 2>&1` in
6623 *--identify-strict*)
6624 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6625 ;;
6626 *)
6627 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6628 ;;
6629 esac
6630 ;;
6631 *)
6632 # fallback: assume linklib IS sharedlib
6633 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6634 ;;
6635 esac
6636
6637 fi
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6639 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6640 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6641 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6642
6643
6644
6645
6646
6647
6648
6649 if test -n "$ac_tool_prefix"; then
6650 for ac_prog in ar
6651 do
6652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_AR+:} false; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 if test -n "$AR"; then
6660 ac_cv_prog_AR="$AR" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673 done
6674 done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 AR=$ac_cv_prog_AR
6680 if test -n "$AR"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6682 $as_echo "$AR" >&6; }
6683 else
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688
6689 test -n "$AR" && break
6690 done
6691 fi
6692 if test -z "$AR"; then
6693 ac_ct_AR=$AR
6694 for ac_prog in ar
6695 do
6696 # Extract the first word of "$ac_prog", so it can be a program name with args.
6697 set dummy $ac_prog; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 if test -n "$ac_ct_AR"; then
6704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713 ac_cv_prog_ac_ct_AR="$ac_prog"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717 done
6718 done
6719 IFS=$as_save_IFS
6720
6721 fi
6722 fi
6723 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6724 if test -n "$ac_ct_AR"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6726 $as_echo "$ac_ct_AR" >&6; }
6727 else
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6730 fi
6731
6732
6733 test -n "$ac_ct_AR" && break
6734 done
6735
6736 if test "x$ac_ct_AR" = x; then
6737 AR="false"
6738 else
6739 case $cross_compiling:$ac_tool_warned in
6740 yes:)
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6743 ac_tool_warned=yes ;;
6744 esac
6745 AR=$ac_ct_AR
6746 fi
6747 fi
6748
6749 : ${AR=ar}
6750 : ${AR_FLAGS=cru}
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6763 $as_echo_n "checking for archiver @FILE support... " >&6; }
6764 if ${lt_cv_ar_at_file+:} false; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6767 lt_cv_ar_at_file=no
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770
6771 int
6772 main ()
6773 {
6774
6775 ;
6776 return 0;
6777 }
6778 _ACEOF
6779 if ac_fn_c_try_compile "$LINENO"; then :
6780 echo conftest.$ac_objext > conftest.lst
6781 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6783 (eval $lt_ar_try) 2>&5
6784 ac_status=$?
6785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6786 test $ac_status = 0; }
6787 if test 0 -eq "$ac_status"; then
6788 # Ensure the archiver fails upon bogus file names.
6789 rm -f conftest.$ac_objext libconftest.a
6790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6791 (eval $lt_ar_try) 2>&5
6792 ac_status=$?
6793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794 test $ac_status = 0; }
6795 if test 0 -ne "$ac_status"; then
6796 lt_cv_ar_at_file=@
6797 fi
6798 fi
6799 rm -f conftest.* libconftest.a
6800
6801 fi
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803
6804 fi
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6806 $as_echo "$lt_cv_ar_at_file" >&6; }
6807
6808 if test no = "$lt_cv_ar_at_file"; then
6809 archiver_list_spec=
6810 else
6811 archiver_list_spec=$lt_cv_ar_at_file
6812 fi
6813
6814
6815
6816
6817
6818
6819
6820 if test -n "$ac_tool_prefix"; then
6821 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}strip; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_STRIP+:} false; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 if test -n "$STRIP"; then
6829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 STRIP=$ac_cv_prog_STRIP
6849 if test -n "$STRIP"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6851 $as_echo "$STRIP" >&6; }
6852 else
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857
6858 fi
6859 if test -z "$ac_cv_prog_STRIP"; then
6860 ac_ct_STRIP=$STRIP
6861 # Extract the first word of "strip", so it can be a program name with args.
6862 set dummy strip; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 if test -n "$ac_ct_STRIP"; then
6869 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_ac_ct_STRIP="strip"
6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6889 if test -n "$ac_ct_STRIP"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6891 $as_echo "$ac_ct_STRIP" >&6; }
6892 else
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6895 fi
6896
6897 if test "x$ac_ct_STRIP" = x; then
6898 STRIP=":"
6899 else
6900 case $cross_compiling:$ac_tool_warned in
6901 yes:)
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904 ac_tool_warned=yes ;;
6905 esac
6906 STRIP=$ac_ct_STRIP
6907 fi
6908 else
6909 STRIP="$ac_cv_prog_STRIP"
6910 fi
6911
6912 test -z "$STRIP" && STRIP=:
6913
6914
6915
6916
6917
6918
6919 if test -n "$ac_tool_prefix"; then
6920 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6921 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 $as_echo_n "checking for $ac_word... " >&6; }
6924 if ${ac_cv_prog_RANLIB+:} false; then :
6925 $as_echo_n "(cached) " >&6
6926 else
6927 if test -n "$RANLIB"; then
6928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6929 else
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933 IFS=$as_save_IFS
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6937 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 break 2
6940 fi
6941 done
6942 done
6943 IFS=$as_save_IFS
6944
6945 fi
6946 fi
6947 RANLIB=$ac_cv_prog_RANLIB
6948 if test -n "$RANLIB"; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6950 $as_echo "$RANLIB" >&6; }
6951 else
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953 $as_echo "no" >&6; }
6954 fi
6955
6956
6957 fi
6958 if test -z "$ac_cv_prog_RANLIB"; then
6959 ac_ct_RANLIB=$RANLIB
6960 # Extract the first word of "ranlib", so it can be a program name with args.
6961 set dummy ranlib; ac_word=$2
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963 $as_echo_n "checking for $ac_word... " >&6; }
6964 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967 if test -n "$ac_ct_RANLIB"; then
6968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6969 else
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977 ac_cv_prog_ac_ct_RANLIB="ranlib"
6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 break 2
6980 fi
6981 done
6982 done
6983 IFS=$as_save_IFS
6984
6985 fi
6986 fi
6987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6988 if test -n "$ac_ct_RANLIB"; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6990 $as_echo "$ac_ct_RANLIB" >&6; }
6991 else
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6994 fi
6995
6996 if test "x$ac_ct_RANLIB" = x; then
6997 RANLIB=":"
6998 else
6999 case $cross_compiling:$ac_tool_warned in
7000 yes:)
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7003 ac_tool_warned=yes ;;
7004 esac
7005 RANLIB=$ac_ct_RANLIB
7006 fi
7007 else
7008 RANLIB="$ac_cv_prog_RANLIB"
7009 fi
7010
7011 test -z "$RANLIB" && RANLIB=:
7012
7013
7014
7015
7016
7017
7018 # Determine commands to create old-style static archives.
7019 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7020 old_postinstall_cmds='chmod 644 $oldlib'
7021 old_postuninstall_cmds=
7022
7023 if test -n "$RANLIB"; then
7024 case $host_os in
7025 bitrig* | openbsd*)
7026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7027 ;;
7028 *)
7029 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7030 ;;
7031 esac
7032 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7033 fi
7034
7035 case $host_os in
7036 darwin*)
7037 lock_old_archive_extraction=yes ;;
7038 *)
7039 lock_old_archive_extraction=no ;;
7040 esac
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080 # If no C compiler was specified, use CC.
7081 LTCC=${LTCC-"$CC"}
7082
7083 # If no C compiler flags were specified, use CFLAGS.
7084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7085
7086 # Allow CC to be a program name with arguments.
7087 compiler=$CC
7088
7089
7090 # Check for command to grab the raw symbol name followed by C symbol from nm.
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7092 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7093 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096
7097 # These are sane defaults that work on at least a few old systems.
7098 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7099
7100 # Character class describing NM global symbol codes.
7101 symcode='[BCDEGRST]'
7102
7103 # Regexp to match symbols that can be accessed directly from C.
7104 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7105
7106 # Define system-specific variables.
7107 case $host_os in
7108 aix*)
7109 symcode='[BCDT]'
7110 ;;
7111 cygwin* | mingw* | pw32* | cegcc*)
7112 symcode='[ABCDGISTW]'
7113 ;;
7114 hpux*)
7115 if test ia64 = "$host_cpu"; then
7116 symcode='[ABCDEGRST]'
7117 fi
7118 ;;
7119 irix* | nonstopux*)
7120 symcode='[BCDEGRST]'
7121 ;;
7122 osf*)
7123 symcode='[BCDEGQRST]'
7124 ;;
7125 solaris*)
7126 symcode='[BDRT]'
7127 ;;
7128 sco3.2v5*)
7129 symcode='[DT]'
7130 ;;
7131 sysv4.2uw2*)
7132 symcode='[DT]'
7133 ;;
7134 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7135 symcode='[ABDT]'
7136 ;;
7137 sysv4)
7138 symcode='[DFNSTU]'
7139 ;;
7140 esac
7141
7142 # If we're using GNU nm, then use its standard symbol codes.
7143 case `$NM -V 2>&1` in
7144 *GNU* | *'with BFD'*)
7145 symcode='[ABCDGIRSTW]' ;;
7146 esac
7147
7148 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7149 # Gets list of data symbols to import.
7150 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7151 # Adjust the below global symbol transforms to fixup imported variables.
7152 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7153 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7154 lt_c_name_lib_hook="\
7155 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7156 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7157 else
7158 # Disable hooks by default.
7159 lt_cv_sys_global_symbol_to_import=
7160 lt_cdecl_hook=
7161 lt_c_name_hook=
7162 lt_c_name_lib_hook=
7163 fi
7164
7165 # Transform an extracted symbol line into a proper C declaration.
7166 # Some systems (esp. on ia64) link data and code symbols differently,
7167 # so use this general approach.
7168 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7169 $lt_cdecl_hook\
7170 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7171 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7172
7173 # Transform an extracted symbol line into symbol name and symbol address
7174 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7175 $lt_c_name_hook\
7176 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7177 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7178
7179 # Transform an extracted symbol line into symbol name with lib prefix and
7180 # symbol address.
7181 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7182 $lt_c_name_lib_hook\
7183 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7184 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7185 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7186
7187 # Handle CRLF in mingw tool chain
7188 opt_cr=
7189 case $build_os in
7190 mingw*)
7191 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7192 ;;
7193 esac
7194
7195 # Try without a prefix underscore, then with it.
7196 for ac_symprfx in "" "_"; do
7197
7198 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7199 symxfrm="\\1 $ac_symprfx\\2 \\2"
7200
7201 # Write the raw and C identifiers.
7202 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7203 # Fake it for dumpbin and say T for any non-static function,
7204 # D for any global variable and I for any imported variable.
7205 # Also find C++ and __fastcall symbols from MSVC++,
7206 # which start with @ or ?.
7207 lt_cv_sys_global_symbol_pipe="$AWK '"\
7208 " {last_section=section; section=\$ 3};"\
7209 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7210 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7211 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7212 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7213 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7214 " \$ 0!~/External *\|/{next};"\
7215 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7216 " {if(hide[section]) next};"\
7217 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7218 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7219 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7220 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7221 " ' prfx=^$ac_symprfx"
7222 else
7223 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7224 fi
7225 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7226
7227 # Check to see that the pipe works correctly.
7228 pipe_works=no
7229
7230 rm -f conftest*
7231 cat > conftest.$ac_ext <<_LT_EOF
7232 #ifdef __cplusplus
7233 extern "C" {
7234 #endif
7235 char nm_test_var;
7236 void nm_test_func(void);
7237 void nm_test_func(void){}
7238 #ifdef __cplusplus
7239 }
7240 #endif
7241 int main(){nm_test_var='a';nm_test_func();return(0);}
7242 _LT_EOF
7243
7244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7245 (eval $ac_compile) 2>&5
7246 ac_status=$?
7247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7248 test $ac_status = 0; }; then
7249 # Now try to grab the symbols.
7250 nlist=conftest.nm
7251 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7252 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7253 # Try sorting and uniquifying the output.
7254 if sort "$nlist" | uniq > "$nlist"T; then
7255 mv -f "$nlist"T "$nlist"
7256 else
7257 rm -f "$nlist"T
7258 fi
7259
7260 # Make sure that we snagged all the symbols we need.
7261 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7262 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7263 cat <<_LT_EOF > conftest.$ac_ext
7264 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7265 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7266 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7267 relocations are performed -- see ld's documentation on pseudo-relocs. */
7268 # define LT_DLSYM_CONST
7269 #elif defined __osf__
7270 /* This system does not cope well with relocations in const data. */
7271 # define LT_DLSYM_CONST
7272 #else
7273 # define LT_DLSYM_CONST const
7274 #endif
7275
7276 #ifdef __cplusplus
7277 extern "C" {
7278 #endif
7279
7280 _LT_EOF
7281 # Now generate the symbol file.
7282 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7283
7284 cat <<_LT_EOF >> conftest.$ac_ext
7285
7286 /* The mapping between symbol names and symbols. */
7287 LT_DLSYM_CONST struct {
7288 const char *name;
7289 void *address;
7290 }
7291 lt__PROGRAM__LTX_preloaded_symbols[] =
7292 {
7293 { "@PROGRAM@", (void *) 0 },
7294 _LT_EOF
7295 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7296 cat <<\_LT_EOF >> conftest.$ac_ext
7297 {0, (void *) 0}
7298 };
7299
7300 /* This works around a problem in FreeBSD linker */
7301 #ifdef FREEBSD_WORKAROUND
7302 static const void *lt_preloaded_setup() {
7303 return lt__PROGRAM__LTX_preloaded_symbols;
7304 }
7305 #endif
7306
7307 #ifdef __cplusplus
7308 }
7309 #endif
7310 _LT_EOF
7311 # Now try linking the two files.
7312 mv conftest.$ac_objext conftstm.$ac_objext
7313 lt_globsym_save_LIBS=$LIBS
7314 lt_globsym_save_CFLAGS=$CFLAGS
7315 LIBS=conftstm.$ac_objext
7316 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7318 (eval $ac_link) 2>&5
7319 ac_status=$?
7320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7321 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7322 pipe_works=yes
7323 fi
7324 LIBS=$lt_globsym_save_LIBS
7325 CFLAGS=$lt_globsym_save_CFLAGS
7326 else
7327 echo "cannot find nm_test_func in $nlist" >&5
7328 fi
7329 else
7330 echo "cannot find nm_test_var in $nlist" >&5
7331 fi
7332 else
7333 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7334 fi
7335 else
7336 echo "$progname: failed program was:" >&5
7337 cat conftest.$ac_ext >&5
7338 fi
7339 rm -rf conftest* conftst*
7340
7341 # Do not use the global_symbol_pipe unless it works.
7342 if test yes = "$pipe_works"; then
7343 break
7344 else
7345 lt_cv_sys_global_symbol_pipe=
7346 fi
7347 done
7348
7349 fi
7350
7351 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7352 lt_cv_sys_global_symbol_to_cdecl=
7353 fi
7354 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7356 $as_echo "failed" >&6; }
7357 else
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7359 $as_echo "ok" >&6; }
7360 fi
7361
7362 # Response file support.
7363 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7364 nm_file_list_spec='@'
7365 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7366 nm_file_list_spec='@'
7367 fi
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7406 $as_echo_n "checking for sysroot... " >&6; }
7407
7408 # Check whether --with-sysroot was given.
7409 if test "${with_sysroot+set}" = set; then :
7410 withval=$with_sysroot;
7411 else
7412 with_sysroot=no
7413 fi
7414
7415
7416 lt_sysroot=
7417 case $with_sysroot in #(
7418 yes)
7419 if test yes = "$GCC"; then
7420 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7421 fi
7422 ;; #(
7423 /*)
7424 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7425 ;; #(
7426 no|'')
7427 ;; #(
7428 *)
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7430 $as_echo "$with_sysroot" >&6; }
7431 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7432 ;;
7433 esac
7434
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7436 $as_echo "${lt_sysroot:-no}" >&6; }
7437
7438
7439
7440
7441
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7443 $as_echo_n "checking for a working dd... " >&6; }
7444 if ${ac_cv_path_lt_DD+:} false; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 printf 0123456789abcdef0123456789abcdef >conftest.i
7448 cat conftest.i conftest.i >conftest2.i
7449 : ${lt_DD:=$DD}
7450 if test -z "$lt_DD"; then
7451 ac_path_lt_DD_found=false
7452 # Loop through the user's path and test for each of PROGNAME-LIST
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_prog in dd; do
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7461 as_fn_executable_p "$ac_path_lt_DD" || continue
7462 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7463 cmp -s conftest.i conftest.out \
7464 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7465 fi
7466 $ac_path_lt_DD_found && break 3
7467 done
7468 done
7469 done
7470 IFS=$as_save_IFS
7471 if test -z "$ac_cv_path_lt_DD"; then
7472 :
7473 fi
7474 else
7475 ac_cv_path_lt_DD=$lt_DD
7476 fi
7477
7478 rm -f conftest.i conftest2.i conftest.out
7479 fi
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7481 $as_echo "$ac_cv_path_lt_DD" >&6; }
7482
7483
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7485 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7486 if ${lt_cv_truncate_bin+:} false; then :
7487 $as_echo_n "(cached) " >&6
7488 else
7489 printf 0123456789abcdef0123456789abcdef >conftest.i
7490 cat conftest.i conftest.i >conftest2.i
7491 lt_cv_truncate_bin=
7492 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7493 cmp -s conftest.i conftest.out \
7494 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7495 fi
7496 rm -f conftest.i conftest2.i conftest.out
7497 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7498 fi
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7500 $as_echo "$lt_cv_truncate_bin" >&6; }
7501
7502
7503
7504
7505
7506
7507
7508 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7509 func_cc_basename ()
7510 {
7511 for cc_temp in $*""; do
7512 case $cc_temp in
7513 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7514 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7515 \-*) ;;
7516 *) break;;
7517 esac
7518 done
7519 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7520 }
7521
7522 # Check whether --enable-libtool-lock was given.
7523 if test "${enable_libtool_lock+set}" = set; then :
7524 enableval=$enable_libtool_lock;
7525 fi
7526
7527 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7528
7529 # Some flags need to be propagated to the compiler or linker for good
7530 # libtool support.
7531 case $host in
7532 ia64-*-hpux*)
7533 # Find out what ABI is being produced by ac_compile, and set mode
7534 # options accordingly.
7535 echo 'int i;' > conftest.$ac_ext
7536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7537 (eval $ac_compile) 2>&5
7538 ac_status=$?
7539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7540 test $ac_status = 0; }; then
7541 case `/usr/bin/file conftest.$ac_objext` in
7542 *ELF-32*)
7543 HPUX_IA64_MODE=32
7544 ;;
7545 *ELF-64*)
7546 HPUX_IA64_MODE=64
7547 ;;
7548 esac
7549 fi
7550 rm -rf conftest*
7551 ;;
7552 *-*-irix6*)
7553 # Find out what ABI is being produced by ac_compile, and set linker
7554 # options accordingly.
7555 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7557 (eval $ac_compile) 2>&5
7558 ac_status=$?
7559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7560 test $ac_status = 0; }; then
7561 if test yes = "$lt_cv_prog_gnu_ld"; then
7562 case `/usr/bin/file conftest.$ac_objext` in
7563 *32-bit*)
7564 LD="${LD-ld} -melf32bsmip"
7565 ;;
7566 *N32*)
7567 LD="${LD-ld} -melf32bmipn32"
7568 ;;
7569 *64-bit*)
7570 LD="${LD-ld} -melf64bmip"
7571 ;;
7572 esac
7573 else
7574 case `/usr/bin/file conftest.$ac_objext` in
7575 *32-bit*)
7576 LD="${LD-ld} -32"
7577 ;;
7578 *N32*)
7579 LD="${LD-ld} -n32"
7580 ;;
7581 *64-bit*)
7582 LD="${LD-ld} -64"
7583 ;;
7584 esac
7585 fi
7586 fi
7587 rm -rf conftest*
7588 ;;
7589
7590 mips64*-*linux*)
7591 # Find out what ABI is being produced by ac_compile, and set linker
7592 # options accordingly.
7593 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7595 (eval $ac_compile) 2>&5
7596 ac_status=$?
7597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7598 test $ac_status = 0; }; then
7599 emul=elf
7600 case `/usr/bin/file conftest.$ac_objext` in
7601 *32-bit*)
7602 emul="${emul}32"
7603 ;;
7604 *64-bit*)
7605 emul="${emul}64"
7606 ;;
7607 esac
7608 case `/usr/bin/file conftest.$ac_objext` in
7609 *MSB*)
7610 emul="${emul}btsmip"
7611 ;;
7612 *LSB*)
7613 emul="${emul}ltsmip"
7614 ;;
7615 esac
7616 case `/usr/bin/file conftest.$ac_objext` in
7617 *N32*)
7618 emul="${emul}n32"
7619 ;;
7620 esac
7621 LD="${LD-ld} -m $emul"
7622 fi
7623 rm -rf conftest*
7624 ;;
7625
7626 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7627 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7628 # Find out what ABI is being produced by ac_compile, and set linker
7629 # options accordingly. Note that the listed cases only cover the
7630 # situations where additional linker options are needed (such as when
7631 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7632 # vice versa); the common cases where no linker options are needed do
7633 # not appear in the list.
7634 echo 'int i;' > conftest.$ac_ext
7635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7636 (eval $ac_compile) 2>&5
7637 ac_status=$?
7638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639 test $ac_status = 0; }; then
7640 case `/usr/bin/file conftest.o` in
7641 *32-bit*)
7642 case $host in
7643 x86_64-*kfreebsd*-gnu)
7644 LD="${LD-ld} -m elf_i386_fbsd"
7645 ;;
7646 x86_64-*linux*)
7647 case `/usr/bin/file conftest.o` in
7648 *x86-64*)
7649 LD="${LD-ld} -m elf32_x86_64"
7650 ;;
7651 *)
7652 LD="${LD-ld} -m elf_i386"
7653 ;;
7654 esac
7655 ;;
7656 powerpc64le-*linux*)
7657 LD="${LD-ld} -m elf32lppclinux"
7658 ;;
7659 powerpc64-*linux*)
7660 LD="${LD-ld} -m elf32ppclinux"
7661 ;;
7662 s390x-*linux*)
7663 LD="${LD-ld} -m elf_s390"
7664 ;;
7665 sparc64-*linux*)
7666 LD="${LD-ld} -m elf32_sparc"
7667 ;;
7668 esac
7669 ;;
7670 *64-bit*)
7671 case $host in
7672 x86_64-*kfreebsd*-gnu)
7673 LD="${LD-ld} -m elf_x86_64_fbsd"
7674 ;;
7675 x86_64-*linux*)
7676 LD="${LD-ld} -m elf_x86_64"
7677 ;;
7678 powerpcle-*linux*)
7679 LD="${LD-ld} -m elf64lppc"
7680 ;;
7681 powerpc-*linux*)
7682 LD="${LD-ld} -m elf64ppc"
7683 ;;
7684 s390*-*linux*|s390*-*tpf*)
7685 LD="${LD-ld} -m elf64_s390"
7686 ;;
7687 sparc*-*linux*)
7688 LD="${LD-ld} -m elf64_sparc"
7689 ;;
7690 esac
7691 ;;
7692 esac
7693 fi
7694 rm -rf conftest*
7695 ;;
7696
7697 *-*-sco3.2v5*)
7698 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7699 SAVE_CFLAGS=$CFLAGS
7700 CFLAGS="$CFLAGS -belf"
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7702 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7703 if ${lt_cv_cc_needs_belf+:} false; then :
7704 $as_echo_n "(cached) " >&6
7705 else
7706 ac_ext=c
7707 ac_cpp='$CPP $CPPFLAGS'
7708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7711
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7714
7715 int
7716 main ()
7717 {
7718
7719 ;
7720 return 0;
7721 }
7722 _ACEOF
7723 if ac_fn_c_try_link "$LINENO"; then :
7724 lt_cv_cc_needs_belf=yes
7725 else
7726 lt_cv_cc_needs_belf=no
7727 fi
7728 rm -f core conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730 ac_ext=c
7731 ac_cpp='$CPP $CPPFLAGS'
7732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7735
7736 fi
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7738 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7739 if test yes != "$lt_cv_cc_needs_belf"; then
7740 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7741 CFLAGS=$SAVE_CFLAGS
7742 fi
7743 ;;
7744 *-*solaris*)
7745 # Find out what ABI is being produced by ac_compile, and set linker
7746 # options accordingly.
7747 echo 'int i;' > conftest.$ac_ext
7748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7749 (eval $ac_compile) 2>&5
7750 ac_status=$?
7751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7752 test $ac_status = 0; }; then
7753 case `/usr/bin/file conftest.o` in
7754 *64-bit*)
7755 case $lt_cv_prog_gnu_ld in
7756 yes*)
7757 case $host in
7758 i?86-*-solaris*|x86_64-*-solaris*)
7759 LD="${LD-ld} -m elf_x86_64"
7760 ;;
7761 sparc*-*-solaris*)
7762 LD="${LD-ld} -m elf64_sparc"
7763 ;;
7764 esac
7765 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7766 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7767 LD=${LD-ld}_sol2
7768 fi
7769 ;;
7770 *)
7771 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7772 LD="${LD-ld} -64"
7773 fi
7774 ;;
7775 esac
7776 ;;
7777 esac
7778 fi
7779 rm -rf conftest*
7780 ;;
7781 esac
7782
7783 need_locks=$enable_libtool_lock
7784
7785 if test -n "$ac_tool_prefix"; then
7786 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7787 set dummy ${ac_tool_prefix}mt; ac_word=$2
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789 $as_echo_n "checking for $ac_word... " >&6; }
7790 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7791 $as_echo_n "(cached) " >&6
7792 else
7793 if test -n "$MANIFEST_TOOL"; then
7794 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7795 else
7796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 for as_dir in $PATH
7798 do
7799 IFS=$as_save_IFS
7800 test -z "$as_dir" && as_dir=.
7801 for ac_exec_ext in '' $ac_executable_extensions; do
7802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7803 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7805 break 2
7806 fi
7807 done
7808 done
7809 IFS=$as_save_IFS
7810
7811 fi
7812 fi
7813 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7814 if test -n "$MANIFEST_TOOL"; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7816 $as_echo "$MANIFEST_TOOL" >&6; }
7817 else
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7820 fi
7821
7822
7823 fi
7824 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7825 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7826 # Extract the first word of "mt", so it can be a program name with args.
7827 set dummy mt; ac_word=$2
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 if test -n "$ac_ct_MANIFEST_TOOL"; then
7834 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7835 else
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7838 do
7839 IFS=$as_save_IFS
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 break 2
7846 fi
7847 done
7848 done
7849 IFS=$as_save_IFS
7850
7851 fi
7852 fi
7853 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7854 if test -n "$ac_ct_MANIFEST_TOOL"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7856 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7857 else
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7860 fi
7861
7862 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7863 MANIFEST_TOOL=":"
7864 else
7865 case $cross_compiling:$ac_tool_warned in
7866 yes:)
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7869 ac_tool_warned=yes ;;
7870 esac
7871 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7872 fi
7873 else
7874 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7875 fi
7876
7877 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7879 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7880 if ${lt_cv_path_mainfest_tool+:} false; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 lt_cv_path_mainfest_tool=no
7884 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7885 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7886 cat conftest.err >&5
7887 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7888 lt_cv_path_mainfest_tool=yes
7889 fi
7890 rm -f conftest*
7891 fi
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7893 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7894 if test yes != "$lt_cv_path_mainfest_tool"; then
7895 MANIFEST_TOOL=:
7896 fi
7897
7898
7899
7900
7901
7902
7903 case $host_os in
7904 rhapsody* | darwin*)
7905 if test -n "$ac_tool_prefix"; then
7906 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7907 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 if test -n "$DSYMUTIL"; then
7914 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 break 2
7926 fi
7927 done
7928 done
7929 IFS=$as_save_IFS
7930
7931 fi
7932 fi
7933 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7934 if test -n "$DSYMUTIL"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7936 $as_echo "$DSYMUTIL" >&6; }
7937 else
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7940 fi
7941
7942
7943 fi
7944 if test -z "$ac_cv_prog_DSYMUTIL"; then
7945 ac_ct_DSYMUTIL=$DSYMUTIL
7946 # Extract the first word of "dsymutil", so it can be a program name with args.
7947 set dummy dsymutil; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 if test -n "$ac_ct_DSYMUTIL"; then
7954 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7955 else
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7958 do
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 break 2
7966 fi
7967 done
7968 done
7969 IFS=$as_save_IFS
7970
7971 fi
7972 fi
7973 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7974 if test -n "$ac_ct_DSYMUTIL"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7976 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7977 else
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7980 fi
7981
7982 if test "x$ac_ct_DSYMUTIL" = x; then
7983 DSYMUTIL=":"
7984 else
7985 case $cross_compiling:$ac_tool_warned in
7986 yes:)
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7989 ac_tool_warned=yes ;;
7990 esac
7991 DSYMUTIL=$ac_ct_DSYMUTIL
7992 fi
7993 else
7994 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7995 fi
7996
7997 if test -n "$ac_tool_prefix"; then
7998 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7999 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if ${ac_cv_prog_NMEDIT+:} false; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 if test -n "$NMEDIT"; then
8006 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8010 do
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8015 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 break 2
8018 fi
8019 done
8020 done
8021 IFS=$as_save_IFS
8022
8023 fi
8024 fi
8025 NMEDIT=$ac_cv_prog_NMEDIT
8026 if test -n "$NMEDIT"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8028 $as_echo "$NMEDIT" >&6; }
8029 else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033
8034
8035 fi
8036 if test -z "$ac_cv_prog_NMEDIT"; then
8037 ac_ct_NMEDIT=$NMEDIT
8038 # Extract the first word of "nmedit", so it can be a program name with args.
8039 set dummy nmedit; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 if test -n "$ac_ct_NMEDIT"; then
8046 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8047 else
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in $PATH
8050 do
8051 IFS=$as_save_IFS
8052 test -z "$as_dir" && as_dir=.
8053 for ac_exec_ext in '' $ac_executable_extensions; do
8054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8055 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8057 break 2
8058 fi
8059 done
8060 done
8061 IFS=$as_save_IFS
8062
8063 fi
8064 fi
8065 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8066 if test -n "$ac_ct_NMEDIT"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8068 $as_echo "$ac_ct_NMEDIT" >&6; }
8069 else
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8072 fi
8073
8074 if test "x$ac_ct_NMEDIT" = x; then
8075 NMEDIT=":"
8076 else
8077 case $cross_compiling:$ac_tool_warned in
8078 yes:)
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8081 ac_tool_warned=yes ;;
8082 esac
8083 NMEDIT=$ac_ct_NMEDIT
8084 fi
8085 else
8086 NMEDIT="$ac_cv_prog_NMEDIT"
8087 fi
8088
8089 if test -n "$ac_tool_prefix"; then
8090 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8091 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 $as_echo_n "checking for $ac_word... " >&6; }
8094 if ${ac_cv_prog_LIPO+:} false; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 if test -n "$LIPO"; then
8098 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8099 else
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8102 do
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8110 fi
8111 done
8112 done
8113 IFS=$as_save_IFS
8114
8115 fi
8116 fi
8117 LIPO=$ac_cv_prog_LIPO
8118 if test -n "$LIPO"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8120 $as_echo "$LIPO" >&6; }
8121 else
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8124 fi
8125
8126
8127 fi
8128 if test -z "$ac_cv_prog_LIPO"; then
8129 ac_ct_LIPO=$LIPO
8130 # Extract the first word of "lipo", so it can be a program name with args.
8131 set dummy lipo; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 if test -n "$ac_ct_LIPO"; then
8138 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8142 do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8147 ac_cv_prog_ac_ct_LIPO="lipo"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8150 fi
8151 done
8152 done
8153 IFS=$as_save_IFS
8154
8155 fi
8156 fi
8157 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8158 if test -n "$ac_ct_LIPO"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8160 $as_echo "$ac_ct_LIPO" >&6; }
8161 else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8164 fi
8165
8166 if test "x$ac_ct_LIPO" = x; then
8167 LIPO=":"
8168 else
8169 case $cross_compiling:$ac_tool_warned in
8170 yes:)
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8173 ac_tool_warned=yes ;;
8174 esac
8175 LIPO=$ac_ct_LIPO
8176 fi
8177 else
8178 LIPO="$ac_cv_prog_LIPO"
8179 fi
8180
8181 if test -n "$ac_tool_prefix"; then
8182 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8183 set dummy ${ac_tool_prefix}otool; ac_word=$2
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185 $as_echo_n "checking for $ac_word... " >&6; }
8186 if ${ac_cv_prog_OTOOL+:} false; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 if test -n "$OTOOL"; then
8190 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8191 else
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 for as_dir in $PATH
8194 do
8195 IFS=$as_save_IFS
8196 test -z "$as_dir" && as_dir=.
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8199 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201 break 2
8202 fi
8203 done
8204 done
8205 IFS=$as_save_IFS
8206
8207 fi
8208 fi
8209 OTOOL=$ac_cv_prog_OTOOL
8210 if test -n "$OTOOL"; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8212 $as_echo "$OTOOL" >&6; }
8213 else
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8216 fi
8217
8218
8219 fi
8220 if test -z "$ac_cv_prog_OTOOL"; then
8221 ac_ct_OTOOL=$OTOOL
8222 # Extract the first word of "otool", so it can be a program name with args.
8223 set dummy otool; ac_word=$2
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 $as_echo_n "checking for $ac_word... " >&6; }
8226 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 if test -n "$ac_ct_OTOOL"; then
8230 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8231 else
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8234 do
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8239 ac_cv_prog_ac_ct_OTOOL="otool"
8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8242 fi
8243 done
8244 done
8245 IFS=$as_save_IFS
8246
8247 fi
8248 fi
8249 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8250 if test -n "$ac_ct_OTOOL"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8252 $as_echo "$ac_ct_OTOOL" >&6; }
8253 else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 $as_echo "no" >&6; }
8256 fi
8257
8258 if test "x$ac_ct_OTOOL" = x; then
8259 OTOOL=":"
8260 else
8261 case $cross_compiling:$ac_tool_warned in
8262 yes:)
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8265 ac_tool_warned=yes ;;
8266 esac
8267 OTOOL=$ac_ct_OTOOL
8268 fi
8269 else
8270 OTOOL="$ac_cv_prog_OTOOL"
8271 fi
8272
8273 if test -n "$ac_tool_prefix"; then
8274 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8275 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 $as_echo_n "checking for $ac_word... " >&6; }
8278 if ${ac_cv_prog_OTOOL64+:} false; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 if test -n "$OTOOL64"; then
8282 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8283 else
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 for as_dir in $PATH
8286 do
8287 IFS=$as_save_IFS
8288 test -z "$as_dir" && as_dir=.
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8291 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8293 break 2
8294 fi
8295 done
8296 done
8297 IFS=$as_save_IFS
8298
8299 fi
8300 fi
8301 OTOOL64=$ac_cv_prog_OTOOL64
8302 if test -n "$OTOOL64"; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8304 $as_echo "$OTOOL64" >&6; }
8305 else
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 $as_echo "no" >&6; }
8308 fi
8309
8310
8311 fi
8312 if test -z "$ac_cv_prog_OTOOL64"; then
8313 ac_ct_OTOOL64=$OTOOL64
8314 # Extract the first word of "otool64", so it can be a program name with args.
8315 set dummy otool64; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 if test -n "$ac_ct_OTOOL64"; then
8322 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8326 do
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8331 ac_cv_prog_ac_ct_OTOOL64="otool64"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 break 2
8334 fi
8335 done
8336 done
8337 IFS=$as_save_IFS
8338
8339 fi
8340 fi
8341 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8342 if test -n "$ac_ct_OTOOL64"; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8344 $as_echo "$ac_ct_OTOOL64" >&6; }
8345 else
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8348 fi
8349
8350 if test "x$ac_ct_OTOOL64" = x; then
8351 OTOOL64=":"
8352 else
8353 case $cross_compiling:$ac_tool_warned in
8354 yes:)
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8357 ac_tool_warned=yes ;;
8358 esac
8359 OTOOL64=$ac_ct_OTOOL64
8360 fi
8361 else
8362 OTOOL64="$ac_cv_prog_OTOOL64"
8363 fi
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8392 $as_echo_n "checking for -single_module linker flag... " >&6; }
8393 if ${lt_cv_apple_cc_single_mod+:} false; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 lt_cv_apple_cc_single_mod=no
8397 if test -z "$LT_MULTI_MODULE"; then
8398 # By default we will add the -single_module flag. You can override
8399 # by either setting the environment variable LT_MULTI_MODULE
8400 # non-empty at configure time, or by adding -multi_module to the
8401 # link flags.
8402 rm -rf libconftest.dylib*
8403 echo "int foo(void){return 1;}" > conftest.c
8404 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8405 -dynamiclib -Wl,-single_module conftest.c" >&5
8406 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8407 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8408 _lt_result=$?
8409 # If there is a non-empty error log, and "single_module"
8410 # appears in it, assume the flag caused a linker warning
8411 if test -s conftest.err && $GREP single_module conftest.err; then
8412 cat conftest.err >&5
8413 # Otherwise, if the output was created with a 0 exit code from
8414 # the compiler, it worked.
8415 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8416 lt_cv_apple_cc_single_mod=yes
8417 else
8418 cat conftest.err >&5
8419 fi
8420 rm -rf libconftest.dylib*
8421 rm -f conftest.*
8422 fi
8423 fi
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8425 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8426
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8428 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8429 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8430 $as_echo_n "(cached) " >&6
8431 else
8432 lt_cv_ld_exported_symbols_list=no
8433 save_LDFLAGS=$LDFLAGS
8434 echo "_main" > conftest.sym
8435 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h. */
8438
8439 int
8440 main ()
8441 {
8442
8443 ;
8444 return 0;
8445 }
8446 _ACEOF
8447 if ac_fn_c_try_link "$LINENO"; then :
8448 lt_cv_ld_exported_symbols_list=yes
8449 else
8450 lt_cv_ld_exported_symbols_list=no
8451 fi
8452 rm -f core conftest.err conftest.$ac_objext \
8453 conftest$ac_exeext conftest.$ac_ext
8454 LDFLAGS=$save_LDFLAGS
8455
8456 fi
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8458 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8459
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8461 $as_echo_n "checking for -force_load linker flag... " >&6; }
8462 if ${lt_cv_ld_force_load+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 lt_cv_ld_force_load=no
8466 cat > conftest.c << _LT_EOF
8467 int forced_loaded() { return 2;}
8468 _LT_EOF
8469 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8470 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8471 echo "$AR cru libconftest.a conftest.o" >&5
8472 $AR cru libconftest.a conftest.o 2>&5
8473 echo "$RANLIB libconftest.a" >&5
8474 $RANLIB libconftest.a 2>&5
8475 cat > conftest.c << _LT_EOF
8476 int main() { return 0;}
8477 _LT_EOF
8478 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8479 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8480 _lt_result=$?
8481 if test -s conftest.err && $GREP force_load conftest.err; then
8482 cat conftest.err >&5
8483 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8484 lt_cv_ld_force_load=yes
8485 else
8486 cat conftest.err >&5
8487 fi
8488 rm -f conftest.err libconftest.a conftest conftest.c
8489 rm -rf conftest.dSYM
8490
8491 fi
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8493 $as_echo "$lt_cv_ld_force_load" >&6; }
8494 case $host_os in
8495 rhapsody* | darwin1.[012])
8496 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8497 darwin1.*)
8498 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8499 darwin*) # darwin 5.x on
8500 # if running on 10.5 or later, the deployment target defaults
8501 # to the OS version, if on x86, and 10.4, the deployment
8502 # target defaults to 10.4. Don't you love it?
8503 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8504 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8505 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8506 10.[012][,.]*)
8507 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8508 10.*)
8509 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8510 esac
8511 ;;
8512 esac
8513 if test yes = "$lt_cv_apple_cc_single_mod"; then
8514 _lt_dar_single_mod='$single_module'
8515 fi
8516 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8517 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8518 else
8519 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8520 fi
8521 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8522 _lt_dsymutil='~$DSYMUTIL $lib || :'
8523 else
8524 _lt_dsymutil=
8525 fi
8526 ;;
8527 esac
8528
8529 # func_munge_path_list VARIABLE PATH
8530 # -----------------------------------
8531 # VARIABLE is name of variable containing _space_ separated list of
8532 # directories to be munged by the contents of PATH, which is string
8533 # having a format:
8534 # "DIR[:DIR]:"
8535 # string "DIR[ DIR]" will be prepended to VARIABLE
8536 # ":DIR[:DIR]"
8537 # string "DIR[ DIR]" will be appended to VARIABLE
8538 # "DIRP[:DIRP]::[DIRA:]DIRA"
8539 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8540 # "DIRA[ DIRA]" will be appended to VARIABLE
8541 # "DIR[:DIR]"
8542 # VARIABLE will be replaced by "DIR[ DIR]"
8543 func_munge_path_list ()
8544 {
8545 case x$2 in
8546 x)
8547 ;;
8548 *:)
8549 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8550 ;;
8551 x:*)
8552 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8553 ;;
8554 *::*)
8555 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8556 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8557 ;;
8558 *)
8559 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8560 ;;
8561 esac
8562 }
8563
8564 for ac_header in dlfcn.h
8565 do :
8566 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8567 "
8568 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8569 cat >>confdefs.h <<_ACEOF
8570 #define HAVE_DLFCN_H 1
8571 _ACEOF
8572
8573 fi
8574
8575 done
8576
8577
8578
8579
8580
8581 # Set options
8582
8583
8584
8585 enable_dlopen=no
8586
8587
8588 enable_win32_dll=no
8589
8590
8591 # Check whether --enable-shared was given.
8592 if test "${enable_shared+set}" = set; then :
8593 enableval=$enable_shared; p=${PACKAGE-default}
8594 case $enableval in
8595 yes) enable_shared=yes ;;
8596 no) enable_shared=no ;;
8597 *)
8598 enable_shared=no
8599 # Look at the argument we got. We use all the common list separators.
8600 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8601 for pkg in $enableval; do
8602 IFS=$lt_save_ifs
8603 if test "X$pkg" = "X$p"; then
8604 enable_shared=yes
8605 fi
8606 done
8607 IFS=$lt_save_ifs
8608 ;;
8609 esac
8610 else
8611 enable_shared=yes
8612 fi
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622 # Check whether --enable-static was given.
8623 if test "${enable_static+set}" = set; then :
8624 enableval=$enable_static; p=${PACKAGE-default}
8625 case $enableval in
8626 yes) enable_static=yes ;;
8627 no) enable_static=no ;;
8628 *)
8629 enable_static=no
8630 # Look at the argument we got. We use all the common list separators.
8631 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8632 for pkg in $enableval; do
8633 IFS=$lt_save_ifs
8634 if test "X$pkg" = "X$p"; then
8635 enable_static=yes
8636 fi
8637 done
8638 IFS=$lt_save_ifs
8639 ;;
8640 esac
8641 else
8642 enable_static=yes
8643 fi
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654 # Check whether --with-pic was given.
8655 if test "${with_pic+set}" = set; then :
8656 withval=$with_pic; lt_p=${PACKAGE-default}
8657 case $withval in
8658 yes|no) pic_mode=$withval ;;
8659 *)
8660 pic_mode=default
8661 # Look at the argument we got. We use all the common list separators.
8662 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8663 for lt_pkg in $withval; do
8664 IFS=$lt_save_ifs
8665 if test "X$lt_pkg" = "X$lt_p"; then
8666 pic_mode=yes
8667 fi
8668 done
8669 IFS=$lt_save_ifs
8670 ;;
8671 esac
8672 else
8673 pic_mode=default
8674 fi
8675
8676
8677
8678
8679
8680
8681
8682
8683 # Check whether --enable-fast-install was given.
8684 if test "${enable_fast_install+set}" = set; then :
8685 enableval=$enable_fast_install; p=${PACKAGE-default}
8686 case $enableval in
8687 yes) enable_fast_install=yes ;;
8688 no) enable_fast_install=no ;;
8689 *)
8690 enable_fast_install=no
8691 # Look at the argument we got. We use all the common list separators.
8692 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8693 for pkg in $enableval; do
8694 IFS=$lt_save_ifs
8695 if test "X$pkg" = "X$p"; then
8696 enable_fast_install=yes
8697 fi
8698 done
8699 IFS=$lt_save_ifs
8700 ;;
8701 esac
8702 else
8703 enable_fast_install=yes
8704 fi
8705
8706
8707
8708
8709
8710
8711
8712
8713 shared_archive_member_spec=
8714 case $host,$enable_shared in
8715 power*-*-aix[5-9]*,yes)
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8717 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8718
8719 # Check whether --with-aix-soname was given.
8720 if test "${with_aix_soname+set}" = set; then :
8721 withval=$with_aix_soname; case $withval in
8722 aix|svr4|both)
8723 ;;
8724 *)
8725 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8726 ;;
8727 esac
8728 lt_cv_with_aix_soname=$with_aix_soname
8729 else
8730 if ${lt_cv_with_aix_soname+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 lt_cv_with_aix_soname=aix
8734 fi
8735
8736 with_aix_soname=$lt_cv_with_aix_soname
8737 fi
8738
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8740 $as_echo "$with_aix_soname" >&6; }
8741 if test aix != "$with_aix_soname"; then
8742 # For the AIX way of multilib, we name the shared archive member
8743 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8744 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8745 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8746 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8747 if test 64 = "${OBJECT_MODE-32}"; then
8748 shared_archive_member_spec=shr_64
8749 else
8750 shared_archive_member_spec=shr
8751 fi
8752 fi
8753 ;;
8754 *)
8755 with_aix_soname=aix
8756 ;;
8757 esac
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768 # This can be used to rebuild libtool when needed
8769 LIBTOOL_DEPS=$ltmain
8770
8771 # Always use our own libtool.
8772 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803 test -z "$LN_S" && LN_S="ln -s"
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818 if test -n "${ZSH_VERSION+set}"; then
8819 setopt NO_GLOB_SUBST
8820 fi
8821
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8823 $as_echo_n "checking for objdir... " >&6; }
8824 if ${lt_cv_objdir+:} false; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8827 rm -f .libs 2>/dev/null
8828 mkdir .libs 2>/dev/null
8829 if test -d .libs; then
8830 lt_cv_objdir=.libs
8831 else
8832 # MS-DOS does not allow filenames that begin with a dot.
8833 lt_cv_objdir=_libs
8834 fi
8835 rmdir .libs 2>/dev/null
8836 fi
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8838 $as_echo "$lt_cv_objdir" >&6; }
8839 objdir=$lt_cv_objdir
8840
8841
8842
8843
8844
8845 cat >>confdefs.h <<_ACEOF
8846 #define LT_OBJDIR "$lt_cv_objdir/"
8847 _ACEOF
8848
8849
8850
8851
8852 case $host_os in
8853 aix3*)
8854 # AIX sometimes has problems with the GCC collect2 program. For some
8855 # reason, if we set the COLLECT_NAMES environment variable, the problems
8856 # vanish in a puff of smoke.
8857 if test set != "${COLLECT_NAMES+set}"; then
8858 COLLECT_NAMES=
8859 export COLLECT_NAMES
8860 fi
8861 ;;
8862 esac
8863
8864 # Global variables:
8865 ofile=libtool
8866 can_build_shared=yes
8867
8868 # All known linkers require a '.a' archive for static linking (except MSVC,
8869 # which needs '.lib').
8870 libext=a
8871
8872 with_gnu_ld=$lt_cv_prog_gnu_ld
8873
8874 old_CC=$CC
8875 old_CFLAGS=$CFLAGS
8876
8877 # Set sane defaults for various variables
8878 test -z "$CC" && CC=cc
8879 test -z "$LTCC" && LTCC=$CC
8880 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8881 test -z "$LD" && LD=ld
8882 test -z "$ac_objext" && ac_objext=o
8883
8884 func_cc_basename $compiler
8885 cc_basename=$func_cc_basename_result
8886
8887
8888 # Only perform the check for file, if the check method requires it
8889 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8890 case $deplibs_check_method in
8891 file_magic*)
8892 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8894 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8895 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8896 $as_echo_n "(cached) " >&6
8897 else
8898 case $MAGIC_CMD in
8899 [\\/*] | ?:[\\/]*)
8900 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8901 ;;
8902 *)
8903 lt_save_MAGIC_CMD=$MAGIC_CMD
8904 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8905 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8906 for ac_dir in $ac_dummy; do
8907 IFS=$lt_save_ifs
8908 test -z "$ac_dir" && ac_dir=.
8909 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8910 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8911 if test -n "$file_magic_test_file"; then
8912 case $deplibs_check_method in
8913 "file_magic "*)
8914 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8915 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8916 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8917 $EGREP "$file_magic_regex" > /dev/null; then
8918 :
8919 else
8920 cat <<_LT_EOF 1>&2
8921
8922 *** Warning: the command libtool uses to detect shared libraries,
8923 *** $file_magic_cmd, produces output that libtool cannot recognize.
8924 *** The result is that libtool may fail to recognize shared libraries
8925 *** as such. This will affect the creation of libtool libraries that
8926 *** depend on shared libraries, but programs linked with such libtool
8927 *** libraries will work regardless of this problem. Nevertheless, you
8928 *** may want to report the problem to your system manager and/or to
8929 *** [email protected]
8930
8931 _LT_EOF
8932 fi ;;
8933 esac
8934 fi
8935 break
8936 fi
8937 done
8938 IFS=$lt_save_ifs
8939 MAGIC_CMD=$lt_save_MAGIC_CMD
8940 ;;
8941 esac
8942 fi
8943
8944 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8945 if test -n "$MAGIC_CMD"; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8947 $as_echo "$MAGIC_CMD" >&6; }
8948 else
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950 $as_echo "no" >&6; }
8951 fi
8952
8953
8954
8955
8956
8957 if test -z "$lt_cv_path_MAGIC_CMD"; then
8958 if test -n "$ac_tool_prefix"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8960 $as_echo_n "checking for file... " >&6; }
8961 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8962 $as_echo_n "(cached) " >&6
8963 else
8964 case $MAGIC_CMD in
8965 [\\/*] | ?:[\\/]*)
8966 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8967 ;;
8968 *)
8969 lt_save_MAGIC_CMD=$MAGIC_CMD
8970 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8971 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8972 for ac_dir in $ac_dummy; do
8973 IFS=$lt_save_ifs
8974 test -z "$ac_dir" && ac_dir=.
8975 if test -f "$ac_dir/file"; then
8976 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8977 if test -n "$file_magic_test_file"; then
8978 case $deplibs_check_method in
8979 "file_magic "*)
8980 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8981 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8983 $EGREP "$file_magic_regex" > /dev/null; then
8984 :
8985 else
8986 cat <<_LT_EOF 1>&2
8987
8988 *** Warning: the command libtool uses to detect shared libraries,
8989 *** $file_magic_cmd, produces output that libtool cannot recognize.
8990 *** The result is that libtool may fail to recognize shared libraries
8991 *** as such. This will affect the creation of libtool libraries that
8992 *** depend on shared libraries, but programs linked with such libtool
8993 *** libraries will work regardless of this problem. Nevertheless, you
8994 *** may want to report the problem to your system manager and/or to
8995 *** [email protected]
8996
8997 _LT_EOF
8998 fi ;;
8999 esac
9000 fi
9001 break
9002 fi
9003 done
9004 IFS=$lt_save_ifs
9005 MAGIC_CMD=$lt_save_MAGIC_CMD
9006 ;;
9007 esac
9008 fi
9009
9010 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9011 if test -n "$MAGIC_CMD"; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9013 $as_echo "$MAGIC_CMD" >&6; }
9014 else
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9016 $as_echo "no" >&6; }
9017 fi
9018
9019
9020 else
9021 MAGIC_CMD=:
9022 fi
9023 fi
9024
9025 fi
9026 ;;
9027 esac
9028
9029 # Use C for the default configuration in the libtool script
9030
9031 lt_save_CC=$CC
9032 ac_ext=c
9033 ac_cpp='$CPP $CPPFLAGS'
9034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9037
9038
9039 # Source file extension for C test sources.
9040 ac_ext=c
9041
9042 # Object file extension for compiled C test sources.
9043 objext=o
9044 objext=$objext
9045
9046 # Code to be used in simple compile tests
9047 lt_simple_compile_test_code="int some_variable = 0;"
9048
9049 # Code to be used in simple link tests
9050 lt_simple_link_test_code='int main(){return(0);}'
9051
9052
9053
9054
9055
9056
9057
9058 # If no C compiler was specified, use CC.
9059 LTCC=${LTCC-"$CC"}
9060
9061 # If no C compiler flags were specified, use CFLAGS.
9062 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9063
9064 # Allow CC to be a program name with arguments.
9065 compiler=$CC
9066
9067 # Save the default compiler, since it gets overwritten when the other
9068 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9069 compiler_DEFAULT=$CC
9070
9071 # save warnings/boilerplate of simple test code
9072 ac_outfile=conftest.$ac_objext
9073 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9074 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9075 _lt_compiler_boilerplate=`cat conftest.err`
9076 $RM conftest*
9077
9078 ac_outfile=conftest.$ac_objext
9079 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9080 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9081 _lt_linker_boilerplate=`cat conftest.err`
9082 $RM -r conftest*
9083
9084
9085 if test -n "$compiler"; then
9086
9087 lt_prog_compiler_no_builtin_flag=
9088
9089 if test yes = "$GCC"; then
9090 case $cc_basename in
9091 nvcc*)
9092 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9093 *)
9094 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9095 esac
9096
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9098 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9099 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102 lt_cv_prog_compiler_rtti_exceptions=no
9103 ac_outfile=conftest.$ac_objext
9104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9105 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9106 # Insert the option either (1) after the last *FLAGS variable, or
9107 # (2) before a word containing "conftest.", or (3) at the end.
9108 # Note that $ac_compile itself does not contain backslashes and begins
9109 # with a dollar sign (not a hyphen), so the echo should work correctly.
9110 # The option is referenced via a variable to avoid confusing sed.
9111 lt_compile=`echo "$ac_compile" | $SED \
9112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9114 -e 's:$: $lt_compiler_flag:'`
9115 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9116 (eval "$lt_compile" 2>conftest.err)
9117 ac_status=$?
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 if (exit $ac_status) && test -s "$ac_outfile"; then
9121 # The compiler can only warn and ignore the option if not recognized
9122 # So say no if there are warnings other than the usual output.
9123 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9125 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9126 lt_cv_prog_compiler_rtti_exceptions=yes
9127 fi
9128 fi
9129 $RM conftest*
9130
9131 fi
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9133 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9134
9135 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9136 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9137 else
9138 :
9139 fi
9140
9141 fi
9142
9143
9144
9145
9146
9147
9148 lt_prog_compiler_wl=
9149 lt_prog_compiler_pic=
9150 lt_prog_compiler_static=
9151
9152
9153 if test yes = "$GCC"; then
9154 lt_prog_compiler_wl='-Wl,'
9155 lt_prog_compiler_static='-static'
9156
9157 case $host_os in
9158 aix*)
9159 # All AIX code is PIC.
9160 if test ia64 = "$host_cpu"; then
9161 # AIX 5 now supports IA64 processor
9162 lt_prog_compiler_static='-Bstatic'
9163 fi
9164 lt_prog_compiler_pic='-fPIC'
9165 ;;
9166
9167 amigaos*)
9168 case $host_cpu in
9169 powerpc)
9170 # see comment about AmigaOS4 .so support
9171 lt_prog_compiler_pic='-fPIC'
9172 ;;
9173 m68k)
9174 # FIXME: we need at least 68020 code to build shared libraries, but
9175 # adding the '-m68020' flag to GCC prevents building anything better,
9176 # like '-m68040'.
9177 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9178 ;;
9179 esac
9180 ;;
9181
9182 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9183 # PIC is the default for these OSes.
9184 ;;
9185
9186 mingw* | cygwin* | pw32* | os2* | cegcc*)
9187 # This hack is so that the source file can tell whether it is being
9188 # built for inclusion in a dll (and should export symbols for example).
9189 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9190 # (--disable-auto-import) libraries
9191 lt_prog_compiler_pic='-DDLL_EXPORT'
9192 case $host_os in
9193 os2*)
9194 lt_prog_compiler_static='$wl-static'
9195 ;;
9196 esac
9197 ;;
9198
9199 darwin* | rhapsody*)
9200 # PIC is the default on this platform
9201 # Common symbols not allowed in MH_DYLIB files
9202 lt_prog_compiler_pic='-fno-common'
9203 ;;
9204
9205 haiku*)
9206 # PIC is the default for Haiku.
9207 # The "-static" flag exists, but is broken.
9208 lt_prog_compiler_static=
9209 ;;
9210
9211 hpux*)
9212 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9213 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9214 # sets the default TLS model and affects inlining.
9215 case $host_cpu in
9216 hppa*64*)
9217 # +Z the default
9218 ;;
9219 *)
9220 lt_prog_compiler_pic='-fPIC'
9221 ;;
9222 esac
9223 ;;
9224
9225 interix[3-9]*)
9226 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9227 # Instead, we relocate shared libraries at runtime.
9228 ;;
9229
9230 msdosdjgpp*)
9231 # Just because we use GCC doesn't mean we suddenly get shared libraries
9232 # on systems that don't support them.
9233 lt_prog_compiler_can_build_shared=no
9234 enable_shared=no
9235 ;;
9236
9237 *nto* | *qnx*)
9238 # QNX uses GNU C++, but need to define -shared option too, otherwise
9239 # it will coredump.
9240 lt_prog_compiler_pic='-fPIC -shared'
9241 ;;
9242
9243 sysv4*MP*)
9244 if test -d /usr/nec; then
9245 lt_prog_compiler_pic=-Kconform_pic
9246 fi
9247 ;;
9248
9249 *)
9250 lt_prog_compiler_pic='-fPIC'
9251 ;;
9252 esac
9253
9254 case $cc_basename in
9255 nvcc*) # Cuda Compiler Driver 2.2
9256 lt_prog_compiler_wl='-Xlinker '
9257 if test -n "$lt_prog_compiler_pic"; then
9258 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9259 fi
9260 ;;
9261 esac
9262 else
9263 # PORTME Check for flag to pass linker flags through the system compiler.
9264 case $host_os in
9265 aix*)
9266 lt_prog_compiler_wl='-Wl,'
9267 if test ia64 = "$host_cpu"; then
9268 # AIX 5 now supports IA64 processor
9269 lt_prog_compiler_static='-Bstatic'
9270 else
9271 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9272 fi
9273 ;;
9274
9275 darwin* | rhapsody*)
9276 # PIC is the default on this platform
9277 # Common symbols not allowed in MH_DYLIB files
9278 lt_prog_compiler_pic='-fno-common'
9279 case $cc_basename in
9280 nagfor*)
9281 # NAG Fortran compiler
9282 lt_prog_compiler_wl='-Wl,-Wl,,'
9283 lt_prog_compiler_pic='-PIC'
9284 lt_prog_compiler_static='-Bstatic'
9285 ;;
9286 esac
9287 ;;
9288
9289 mingw* | cygwin* | pw32* | os2* | cegcc*)
9290 # This hack is so that the source file can tell whether it is being
9291 # built for inclusion in a dll (and should export symbols for example).
9292 lt_prog_compiler_pic='-DDLL_EXPORT'
9293 case $host_os in
9294 os2*)
9295 lt_prog_compiler_static='$wl-static'
9296 ;;
9297 esac
9298 ;;
9299
9300 hpux9* | hpux10* | hpux11*)
9301 lt_prog_compiler_wl='-Wl,'
9302 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9303 # not for PA HP-UX.
9304 case $host_cpu in
9305 hppa*64*|ia64*)
9306 # +Z the default
9307 ;;
9308 *)
9309 lt_prog_compiler_pic='+Z'
9310 ;;
9311 esac
9312 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9313 lt_prog_compiler_static='$wl-a ${wl}archive'
9314 ;;
9315
9316 irix5* | irix6* | nonstopux*)
9317 lt_prog_compiler_wl='-Wl,'
9318 # PIC (with -KPIC) is the default.
9319 lt_prog_compiler_static='-non_shared'
9320 ;;
9321
9322 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9323 case $cc_basename in
9324 # old Intel for x86_64, which still supported -KPIC.
9325 ecc*)
9326 lt_prog_compiler_wl='-Wl,'
9327 lt_prog_compiler_pic='-KPIC'
9328 lt_prog_compiler_static='-static'
9329 ;;
9330 # icc used to be incompatible with GCC.
9331 # ICC 10 doesn't accept -KPIC any more.
9332 icc* | ifort*)
9333 lt_prog_compiler_wl='-Wl,'
9334 lt_prog_compiler_pic='-fPIC'
9335 lt_prog_compiler_static='-static'
9336 ;;
9337 # Lahey Fortran 8.1.
9338 lf95*)
9339 lt_prog_compiler_wl='-Wl,'
9340 lt_prog_compiler_pic='--shared'
9341 lt_prog_compiler_static='--static'
9342 ;;
9343 nagfor*)
9344 # NAG Fortran compiler
9345 lt_prog_compiler_wl='-Wl,-Wl,,'
9346 lt_prog_compiler_pic='-PIC'
9347 lt_prog_compiler_static='-Bstatic'
9348 ;;
9349 tcc*)
9350 # Fabrice Bellard et al's Tiny C Compiler
9351 lt_prog_compiler_wl='-Wl,'
9352 lt_prog_compiler_pic='-fPIC'
9353 lt_prog_compiler_static='-static'
9354 ;;
9355 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9356 # Portland Group compilers (*not* the Pentium gcc compiler,
9357 # which looks to be a dead project)
9358 lt_prog_compiler_wl='-Wl,'
9359 lt_prog_compiler_pic='-fpic'
9360 lt_prog_compiler_static='-Bstatic'
9361 ;;
9362 ccc*)
9363 lt_prog_compiler_wl='-Wl,'
9364 # All Alpha code is PIC.
9365 lt_prog_compiler_static='-non_shared'
9366 ;;
9367 xl* | bgxl* | bgf* | mpixl*)
9368 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9369 lt_prog_compiler_wl='-Wl,'
9370 lt_prog_compiler_pic='-qpic'
9371 lt_prog_compiler_static='-qstaticlink'
9372 ;;
9373 *)
9374 case `$CC -V 2>&1 | sed 5q` in
9375 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9376 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9377 lt_prog_compiler_pic='-KPIC'
9378 lt_prog_compiler_static='-Bstatic'
9379 lt_prog_compiler_wl=''
9380 ;;
9381 *Sun\ F* | *Sun*Fortran*)
9382 lt_prog_compiler_pic='-KPIC'
9383 lt_prog_compiler_static='-Bstatic'
9384 lt_prog_compiler_wl='-Qoption ld '
9385 ;;
9386 *Sun\ C*)
9387 # Sun C 5.9
9388 lt_prog_compiler_pic='-KPIC'
9389 lt_prog_compiler_static='-Bstatic'
9390 lt_prog_compiler_wl='-Wl,'
9391 ;;
9392 *Intel*\ [CF]*Compiler*)
9393 lt_prog_compiler_wl='-Wl,'
9394 lt_prog_compiler_pic='-fPIC'
9395 lt_prog_compiler_static='-static'
9396 ;;
9397 *Portland\ Group*)
9398 lt_prog_compiler_wl='-Wl,'
9399 lt_prog_compiler_pic='-fpic'
9400 lt_prog_compiler_static='-Bstatic'
9401 ;;
9402 esac
9403 ;;
9404 esac
9405 ;;
9406
9407 newsos6)
9408 lt_prog_compiler_pic='-KPIC'
9409 lt_prog_compiler_static='-Bstatic'
9410 ;;
9411
9412 *nto* | *qnx*)
9413 # QNX uses GNU C++, but need to define -shared option too, otherwise
9414 # it will coredump.
9415 lt_prog_compiler_pic='-fPIC -shared'
9416 ;;
9417
9418 osf3* | osf4* | osf5*)
9419 lt_prog_compiler_wl='-Wl,'
9420 # All OSF/1 code is PIC.
9421 lt_prog_compiler_static='-non_shared'
9422 ;;
9423
9424 rdos*)
9425 lt_prog_compiler_static='-non_shared'
9426 ;;
9427
9428 solaris*)
9429 lt_prog_compiler_pic='-KPIC'
9430 lt_prog_compiler_static='-Bstatic'
9431 case $cc_basename in
9432 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9433 lt_prog_compiler_wl='-Qoption ld ';;
9434 *)
9435 lt_prog_compiler_wl='-Wl,';;
9436 esac
9437 ;;
9438
9439 sunos4*)
9440 lt_prog_compiler_wl='-Qoption ld '
9441 lt_prog_compiler_pic='-PIC'
9442 lt_prog_compiler_static='-Bstatic'
9443 ;;
9444
9445 sysv4 | sysv4.2uw2* | sysv4.3*)
9446 lt_prog_compiler_wl='-Wl,'
9447 lt_prog_compiler_pic='-KPIC'
9448 lt_prog_compiler_static='-Bstatic'
9449 ;;
9450
9451 sysv4*MP*)
9452 if test -d /usr/nec; then
9453 lt_prog_compiler_pic='-Kconform_pic'
9454 lt_prog_compiler_static='-Bstatic'
9455 fi
9456 ;;
9457
9458 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9459 lt_prog_compiler_wl='-Wl,'
9460 lt_prog_compiler_pic='-KPIC'
9461 lt_prog_compiler_static='-Bstatic'
9462 ;;
9463
9464 unicos*)
9465 lt_prog_compiler_wl='-Wl,'
9466 lt_prog_compiler_can_build_shared=no
9467 ;;
9468
9469 uts4*)
9470 lt_prog_compiler_pic='-pic'
9471 lt_prog_compiler_static='-Bstatic'
9472 ;;
9473
9474 *)
9475 lt_prog_compiler_can_build_shared=no
9476 ;;
9477 esac
9478 fi
9479
9480 case $host_os in
9481 # For platforms that do not support PIC, -DPIC is meaningless:
9482 *djgpp*)
9483 lt_prog_compiler_pic=
9484 ;;
9485 *)
9486 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9487 ;;
9488 esac
9489
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9491 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9492 if ${lt_cv_prog_compiler_pic+:} false; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9496 fi
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9498 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9499 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9500
9501 #
9502 # Check to make sure the PIC flag actually works.
9503 #
9504 if test -n "$lt_prog_compiler_pic"; then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9506 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9507 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 lt_cv_prog_compiler_pic_works=no
9511 ac_outfile=conftest.$ac_objext
9512 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9513 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9514 # Insert the option either (1) after the last *FLAGS variable, or
9515 # (2) before a word containing "conftest.", or (3) at the end.
9516 # Note that $ac_compile itself does not contain backslashes and begins
9517 # with a dollar sign (not a hyphen), so the echo should work correctly.
9518 # The option is referenced via a variable to avoid confusing sed.
9519 lt_compile=`echo "$ac_compile" | $SED \
9520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9522 -e 's:$: $lt_compiler_flag:'`
9523 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9524 (eval "$lt_compile" 2>conftest.err)
9525 ac_status=$?
9526 cat conftest.err >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 if (exit $ac_status) && test -s "$ac_outfile"; then
9529 # The compiler can only warn and ignore the option if not recognized
9530 # So say no if there are warnings other than the usual output.
9531 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9533 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9534 lt_cv_prog_compiler_pic_works=yes
9535 fi
9536 fi
9537 $RM conftest*
9538
9539 fi
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9541 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9542
9543 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9544 case $lt_prog_compiler_pic in
9545 "" | " "*) ;;
9546 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9547 esac
9548 else
9549 lt_prog_compiler_pic=
9550 lt_prog_compiler_can_build_shared=no
9551 fi
9552
9553 fi
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565 #
9566 # Check to make sure the static flag actually works.
9567 #
9568 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9570 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9571 if ${lt_cv_prog_compiler_static_works+:} false; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 lt_cv_prog_compiler_static_works=no
9575 save_LDFLAGS=$LDFLAGS
9576 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9577 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9578 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9579 # The linker can only warn and ignore the option if not recognized
9580 # So say no if there are warnings
9581 if test -s conftest.err; then
9582 # Append any errors to the config.log.
9583 cat conftest.err 1>&5
9584 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9586 if diff conftest.exp conftest.er2 >/dev/null; then
9587 lt_cv_prog_compiler_static_works=yes
9588 fi
9589 else
9590 lt_cv_prog_compiler_static_works=yes
9591 fi
9592 fi
9593 $RM -r conftest*
9594 LDFLAGS=$save_LDFLAGS
9595
9596 fi
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9598 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9599
9600 if test yes = "$lt_cv_prog_compiler_static_works"; then
9601 :
9602 else
9603 lt_prog_compiler_static=
9604 fi
9605
9606
9607
9608
9609
9610
9611
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9613 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9614 if ${lt_cv_prog_compiler_c_o+:} false; then :
9615 $as_echo_n "(cached) " >&6
9616 else
9617 lt_cv_prog_compiler_c_o=no
9618 $RM -r conftest 2>/dev/null
9619 mkdir conftest
9620 cd conftest
9621 mkdir out
9622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9623
9624 lt_compiler_flag="-o out/conftest2.$ac_objext"
9625 # Insert the option either (1) after the last *FLAGS variable, or
9626 # (2) before a word containing "conftest.", or (3) at the end.
9627 # Note that $ac_compile itself does not contain backslashes and begins
9628 # with a dollar sign (not a hyphen), so the echo should work correctly.
9629 lt_compile=`echo "$ac_compile" | $SED \
9630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9632 -e 's:$: $lt_compiler_flag:'`
9633 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9634 (eval "$lt_compile" 2>out/conftest.err)
9635 ac_status=$?
9636 cat out/conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9639 then
9640 # The compiler can only warn and ignore the option if not recognized
9641 # So say no if there are warnings
9642 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9643 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9644 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9645 lt_cv_prog_compiler_c_o=yes
9646 fi
9647 fi
9648 chmod u+w . 2>&5
9649 $RM conftest*
9650 # SGI C++ compiler will create directory out/ii_files/ for
9651 # template instantiation
9652 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9653 $RM out/* && rmdir out
9654 cd ..
9655 $RM -r conftest
9656 $RM conftest*
9657
9658 fi
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9660 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9661
9662
9663
9664
9665
9666
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9668 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9669 if ${lt_cv_prog_compiler_c_o+:} false; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672 lt_cv_prog_compiler_c_o=no
9673 $RM -r conftest 2>/dev/null
9674 mkdir conftest
9675 cd conftest
9676 mkdir out
9677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9678
9679 lt_compiler_flag="-o out/conftest2.$ac_objext"
9680 # Insert the option either (1) after the last *FLAGS variable, or
9681 # (2) before a word containing "conftest.", or (3) at the end.
9682 # Note that $ac_compile itself does not contain backslashes and begins
9683 # with a dollar sign (not a hyphen), so the echo should work correctly.
9684 lt_compile=`echo "$ac_compile" | $SED \
9685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9687 -e 's:$: $lt_compiler_flag:'`
9688 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9689 (eval "$lt_compile" 2>out/conftest.err)
9690 ac_status=$?
9691 cat out/conftest.err >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9694 then
9695 # The compiler can only warn and ignore the option if not recognized
9696 # So say no if there are warnings
9697 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9698 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9699 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9700 lt_cv_prog_compiler_c_o=yes
9701 fi
9702 fi
9703 chmod u+w . 2>&5
9704 $RM conftest*
9705 # SGI C++ compiler will create directory out/ii_files/ for
9706 # template instantiation
9707 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9708 $RM out/* && rmdir out
9709 cd ..
9710 $RM -r conftest
9711 $RM conftest*
9712
9713 fi
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9715 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9716
9717
9718
9719
9720 hard_links=nottested
9721 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9722 # do not overwrite the value of need_locks provided by the user
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9724 $as_echo_n "checking if we can lock with hard links... " >&6; }
9725 hard_links=yes
9726 $RM conftest*
9727 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9728 touch conftest.a
9729 ln conftest.a conftest.b 2>&5 || hard_links=no
9730 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9732 $as_echo "$hard_links" >&6; }
9733 if test no = "$hard_links"; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9735 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9736 need_locks=warn
9737 fi
9738 else
9739 need_locks=no
9740 fi
9741
9742
9743
9744
9745
9746
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9748 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9749
9750 runpath_var=
9751 allow_undefined_flag=
9752 always_export_symbols=no
9753 archive_cmds=
9754 archive_expsym_cmds=
9755 compiler_needs_object=no
9756 enable_shared_with_static_runtimes=no
9757 export_dynamic_flag_spec=
9758 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9759 hardcode_automatic=no
9760 hardcode_direct=no
9761 hardcode_direct_absolute=no
9762 hardcode_libdir_flag_spec=
9763 hardcode_libdir_separator=
9764 hardcode_minus_L=no
9765 hardcode_shlibpath_var=unsupported
9766 inherit_rpath=no
9767 link_all_deplibs=unknown
9768 module_cmds=
9769 module_expsym_cmds=
9770 old_archive_from_new_cmds=
9771 old_archive_from_expsyms_cmds=
9772 thread_safe_flag_spec=
9773 whole_archive_flag_spec=
9774 # include_expsyms should be a list of space-separated symbols to be *always*
9775 # included in the symbol list
9776 include_expsyms=
9777 # exclude_expsyms can be an extended regexp of symbols to exclude
9778 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9779 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9780 # as well as any symbol that contains 'd'.
9781 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9782 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9783 # platforms (ab)use it in PIC code, but their linkers get confused if
9784 # the symbol is explicitly referenced. Since portable code cannot
9785 # rely on this symbol name, it's probably fine to never include it in
9786 # preloaded symbol tables.
9787 # Exclude shared library initialization/finalization symbols.
9788 extract_expsyms_cmds=
9789
9790 case $host_os in
9791 cygwin* | mingw* | pw32* | cegcc*)
9792 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9793 # When not using gcc, we currently assume that we are using
9794 # Microsoft Visual C++.
9795 if test yes != "$GCC"; then
9796 with_gnu_ld=no
9797 fi
9798 ;;
9799 interix*)
9800 # we just hope/assume this is gcc and not c89 (= MSVC++)
9801 with_gnu_ld=yes
9802 ;;
9803 openbsd* | bitrig*)
9804 with_gnu_ld=no
9805 ;;
9806 linux* | k*bsd*-gnu | gnu*)
9807 link_all_deplibs=no
9808 ;;
9809 esac
9810
9811 ld_shlibs=yes
9812
9813 # On some targets, GNU ld is compatible enough with the native linker
9814 # that we're better off using the native interface for both.
9815 lt_use_gnu_ld_interface=no
9816 if test yes = "$with_gnu_ld"; then
9817 case $host_os in
9818 aix*)
9819 # The AIX port of GNU ld has always aspired to compatibility
9820 # with the native linker. However, as the warning in the GNU ld
9821 # block says, versions before 2.19.5* couldn't really create working
9822 # shared libraries, regardless of the interface used.
9823 case `$LD -v 2>&1` in
9824 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9825 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9826 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9827 *)
9828 lt_use_gnu_ld_interface=yes
9829 ;;
9830 esac
9831 ;;
9832 *)
9833 lt_use_gnu_ld_interface=yes
9834 ;;
9835 esac
9836 fi
9837
9838 if test yes = "$lt_use_gnu_ld_interface"; then
9839 # If archive_cmds runs LD, not CC, wlarc should be empty
9840 wlarc='$wl'
9841
9842 # Set some defaults for GNU ld with shared library support. These
9843 # are reset later if shared libraries are not supported. Putting them
9844 # here allows them to be overridden if necessary.
9845 runpath_var=LD_RUN_PATH
9846 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9847 export_dynamic_flag_spec='$wl--export-dynamic'
9848 # ancient GNU ld didn't support --whole-archive et. al.
9849 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9850 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9851 else
9852 whole_archive_flag_spec=
9853 fi
9854 supports_anon_versioning=no
9855 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9856 *GNU\ gold*) supports_anon_versioning=yes ;;
9857 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9858 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9859 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9860 *\ 2.11.*) ;; # other 2.11 versions
9861 *) supports_anon_versioning=yes ;;
9862 esac
9863
9864 # See if GNU ld supports shared libraries.
9865 case $host_os in
9866 aix[3-9]*)
9867 # On AIX/PPC, the GNU linker is very broken
9868 if test ia64 != "$host_cpu"; then
9869 ld_shlibs=no
9870 cat <<_LT_EOF 1>&2
9871
9872 *** Warning: the GNU linker, at least up to release 2.19, is reported
9873 *** to be unable to reliably create shared libraries on AIX.
9874 *** Therefore, libtool is disabling shared libraries support. If you
9875 *** really care for shared libraries, you may want to install binutils
9876 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9877 *** You will then need to restart the configuration process.
9878
9879 _LT_EOF
9880 fi
9881 ;;
9882
9883 amigaos*)
9884 case $host_cpu in
9885 powerpc)
9886 # see comment about AmigaOS4 .so support
9887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9888 archive_expsym_cmds=''
9889 ;;
9890 m68k)
9891 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)'
9892 hardcode_libdir_flag_spec='-L$libdir'
9893 hardcode_minus_L=yes
9894 ;;
9895 esac
9896 ;;
9897
9898 beos*)
9899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9900 allow_undefined_flag=unsupported
9901 # Joseph Beckenbach <[email protected]> says some releases of gcc
9902 # support --undefined. This deserves some investigation. FIXME
9903 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9904 else
9905 ld_shlibs=no
9906 fi
9907 ;;
9908
9909 cygwin* | mingw* | pw32* | cegcc*)
9910 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9911 # as there is no search path for DLLs.
9912 hardcode_libdir_flag_spec='-L$libdir'
9913 export_dynamic_flag_spec='$wl--export-all-symbols'
9914 allow_undefined_flag=unsupported
9915 always_export_symbols=no
9916 enable_shared_with_static_runtimes=yes
9917 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'
9918 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9919
9920 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9922 # If the export-symbols file already is a .def file, use it as
9923 # is; otherwise, prepend EXPORTS...
9924 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9925 cp $export_symbols $output_objdir/$soname.def;
9926 else
9927 echo EXPORTS > $output_objdir/$soname.def;
9928 cat $export_symbols >> $output_objdir/$soname.def;
9929 fi~
9930 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9931 else
9932 ld_shlibs=no
9933 fi
9934 ;;
9935
9936 haiku*)
9937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9938 link_all_deplibs=yes
9939 ;;
9940
9941 os2*)
9942 hardcode_libdir_flag_spec='-L$libdir'
9943 hardcode_minus_L=yes
9944 allow_undefined_flag=unsupported
9945 shrext_cmds=.dll
9946 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9947 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9948 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9949 $ECHO EXPORTS >> $output_objdir/$libname.def~
9950 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9951 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9952 emximp -o $lib $output_objdir/$libname.def'
9953 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9954 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9955 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9956 $ECHO EXPORTS >> $output_objdir/$libname.def~
9957 prefix_cmds="$SED"~
9958 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9959 prefix_cmds="$prefix_cmds -e 1d";
9960 fi~
9961 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9962 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9963 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9964 emximp -o $lib $output_objdir/$libname.def'
9965 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9966 enable_shared_with_static_runtimes=yes
9967 ;;
9968
9969 interix[3-9]*)
9970 hardcode_direct=no
9971 hardcode_shlibpath_var=no
9972 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9973 export_dynamic_flag_spec='$wl-E'
9974 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9975 # Instead, shared libraries are loaded at an image base (0x10000000 by
9976 # default) and relocated if they conflict, which is a slow very memory
9977 # consuming and fragmenting process. To avoid this, we pick a random,
9978 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9979 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9980 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9981 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'
9982 ;;
9983
9984 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9985 tmp_diet=no
9986 if test linux-dietlibc = "$host_os"; then
9987 case $cc_basename in
9988 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9989 esac
9990 fi
9991 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9992 && test no = "$tmp_diet"
9993 then
9994 tmp_addflag=' $pic_flag'
9995 tmp_sharedflag='-shared'
9996 case $cc_basename,$host_cpu in
9997 pgcc*) # Portland Group C compiler
9998 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'
9999 tmp_addflag=' $pic_flag'
10000 ;;
10001 pgf77* | pgf90* | pgf95* | pgfortran*)
10002 # Portland Group f77 and f90 compilers
10003 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'
10004 tmp_addflag=' $pic_flag -Mnomain' ;;
10005 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10006 tmp_addflag=' -i_dynamic' ;;
10007 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10008 tmp_addflag=' -i_dynamic -nofor_main' ;;
10009 ifc* | ifort*) # Intel Fortran compiler
10010 tmp_addflag=' -nofor_main' ;;
10011 lf95*) # Lahey Fortran 8.1
10012 whole_archive_flag_spec=
10013 tmp_sharedflag='--shared' ;;
10014 nagfor*) # NAGFOR 5.3
10015 tmp_sharedflag='-Wl,-shared' ;;
10016 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10017 tmp_sharedflag='-qmkshrobj'
10018 tmp_addflag= ;;
10019 nvcc*) # Cuda Compiler Driver 2.2
10020 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'
10021 compiler_needs_object=yes
10022 ;;
10023 esac
10024 case `$CC -V 2>&1 | sed 5q` in
10025 *Sun\ C*) # Sun C 5.9
10026 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'
10027 compiler_needs_object=yes
10028 tmp_sharedflag='-G' ;;
10029 *Sun\ F*) # Sun Fortran 8.3
10030 tmp_sharedflag='-G' ;;
10031 esac
10032 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10033
10034 if test yes = "$supports_anon_versioning"; then
10035 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10036 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10037 echo "local: *; };" >> $output_objdir/$libname.ver~
10038 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10039 fi
10040
10041 case $cc_basename in
10042 tcc*)
10043 export_dynamic_flag_spec='-rdynamic'
10044 ;;
10045 xlf* | bgf* | bgxlf* | mpixlf*)
10046 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10047 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10048 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10049 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10050 if test yes = "$supports_anon_versioning"; then
10051 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10052 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10053 echo "local: *; };" >> $output_objdir/$libname.ver~
10054 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10055 fi
10056 ;;
10057 esac
10058 else
10059 ld_shlibs=no
10060 fi
10061 ;;
10062
10063 netbsd* | netbsdelf*-gnu)
10064 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10065 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10066 wlarc=
10067 else
10068 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10069 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10070 fi
10071 ;;
10072
10073 solaris*)
10074 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10075 ld_shlibs=no
10076 cat <<_LT_EOF 1>&2
10077
10078 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10079 *** create shared libraries on Solaris systems. Therefore, libtool
10080 *** is disabling shared libraries support. We urge you to upgrade GNU
10081 *** binutils to release 2.9.1 or newer. Another option is to modify
10082 *** your PATH or compiler configuration so that the native linker is
10083 *** used, and then restart.
10084
10085 _LT_EOF
10086 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10087 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10088 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10089 else
10090 ld_shlibs=no
10091 fi
10092 ;;
10093
10094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10095 case `$LD -v 2>&1` in
10096 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10097 ld_shlibs=no
10098 cat <<_LT_EOF 1>&2
10099
10100 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10101 *** reliably create shared libraries on SCO systems. Therefore, libtool
10102 *** is disabling shared libraries support. We urge you to upgrade GNU
10103 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10104 *** your PATH or compiler configuration so that the native linker is
10105 *** used, and then restart.
10106
10107 _LT_EOF
10108 ;;
10109 *)
10110 # For security reasons, it is highly recommended that you always
10111 # use absolute paths for naming shared libraries, and exclude the
10112 # DT_RUNPATH tag from executables and libraries. But doing so
10113 # requires that you compile everything twice, which is a pain.
10114 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10115 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10117 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10118 else
10119 ld_shlibs=no
10120 fi
10121 ;;
10122 esac
10123 ;;
10124
10125 sunos4*)
10126 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10127 wlarc=
10128 hardcode_direct=yes
10129 hardcode_shlibpath_var=no
10130 ;;
10131
10132 *)
10133 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10134 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10135 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10136 else
10137 ld_shlibs=no
10138 fi
10139 ;;
10140 esac
10141
10142 if test no = "$ld_shlibs"; then
10143 runpath_var=
10144 hardcode_libdir_flag_spec=
10145 export_dynamic_flag_spec=
10146 whole_archive_flag_spec=
10147 fi
10148 else
10149 # PORTME fill in a description of your system's linker (not GNU ld)
10150 case $host_os in
10151 aix3*)
10152 allow_undefined_flag=unsupported
10153 always_export_symbols=yes
10154 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'
10155 # Note: this linker hardcodes the directories in LIBPATH if there
10156 # are no directories specified by -L.
10157 hardcode_minus_L=yes
10158 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10159 # Neither direct hardcoding nor static linking is supported with a
10160 # broken collect2.
10161 hardcode_direct=unsupported
10162 fi
10163 ;;
10164
10165 aix[4-9]*)
10166 if test ia64 = "$host_cpu"; then
10167 # On IA64, the linker does run time linking by default, so we don't
10168 # have to do anything special.
10169 aix_use_runtimelinking=no
10170 exp_sym_flag='-Bexport'
10171 no_entry_flag=
10172 else
10173 # If we're using GNU nm, then we don't want the "-C" option.
10174 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10175 # Without the "-l" option, or with the "-B" option, AIX nm treats
10176 # weak defined symbols like other global defined symbols, whereas
10177 # GNU nm marks them as "W".
10178 # While the 'weak' keyword is ignored in the Export File, we need
10179 # it in the Import File for the 'aix-soname' feature, so we have
10180 # to replace the "-B" option with "-P" for AIX nm.
10181 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10182 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'
10183 else
10184 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10185 fi
10186 aix_use_runtimelinking=no
10187
10188 # Test if we are trying to use run time linking or normal
10189 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10190 # have runtime linking enabled, and use it for executables.
10191 # For shared libraries, we enable/disable runtime linking
10192 # depending on the kind of the shared library created -
10193 # when "with_aix_soname,aix_use_runtimelinking" is:
10194 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10195 # "aix,yes" lib.so shared, rtl:yes, for executables
10196 # lib.a static archive
10197 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10198 # lib.a(lib.so.V) shared, rtl:no, for executables
10199 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10200 # lib.a(lib.so.V) shared, rtl:no
10201 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10202 # lib.a static archive
10203 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10204 for ld_flag in $LDFLAGS; do
10205 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10206 aix_use_runtimelinking=yes
10207 break
10208 fi
10209 done
10210 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10211 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10212 # so we don't have lib.a shared libs to link our executables.
10213 # We have to force runtime linking in this case.
10214 aix_use_runtimelinking=yes
10215 LDFLAGS="$LDFLAGS -Wl,-brtl"
10216 fi
10217 ;;
10218 esac
10219
10220 exp_sym_flag='-bexport'
10221 no_entry_flag='-bnoentry'
10222 fi
10223
10224 # When large executables or shared objects are built, AIX ld can
10225 # have problems creating the table of contents. If linking a library
10226 # or program results in "error TOC overflow" add -mminimal-toc to
10227 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10228 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10229
10230 archive_cmds=''
10231 hardcode_direct=yes
10232 hardcode_direct_absolute=yes
10233 hardcode_libdir_separator=':'
10234 link_all_deplibs=yes
10235 file_list_spec='$wl-f,'
10236 case $with_aix_soname,$aix_use_runtimelinking in
10237 aix,*) ;; # traditional, no import file
10238 svr4,* | *,yes) # use import file
10239 # The Import File defines what to hardcode.
10240 hardcode_direct=no
10241 hardcode_direct_absolute=no
10242 ;;
10243 esac
10244
10245 if test yes = "$GCC"; then
10246 case $host_os in aix4.[012]|aix4.[012].*)
10247 # We only want to do this on AIX 4.2 and lower, the check
10248 # below for broken collect2 doesn't work under 4.3+
10249 collect2name=`$CC -print-prog-name=collect2`
10250 if test -f "$collect2name" &&
10251 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10252 then
10253 # We have reworked collect2
10254 :
10255 else
10256 # We have old collect2
10257 hardcode_direct=unsupported
10258 # It fails to find uninstalled libraries when the uninstalled
10259 # path is not listed in the libpath. Setting hardcode_minus_L
10260 # to unsupported forces relinking
10261 hardcode_minus_L=yes
10262 hardcode_libdir_flag_spec='-L$libdir'
10263 hardcode_libdir_separator=
10264 fi
10265 ;;
10266 esac
10267 shared_flag='-shared'
10268 if test yes = "$aix_use_runtimelinking"; then
10269 shared_flag="$shared_flag "'$wl-G'
10270 fi
10271 # Need to ensure runtime linking is disabled for the traditional
10272 # shared library, or the linker may eventually find shared libraries
10273 # /with/ Import File - we do not want to mix them.
10274 shared_flag_aix='-shared'
10275 shared_flag_svr4='-shared $wl-G'
10276 else
10277 # not using gcc
10278 if test ia64 = "$host_cpu"; then
10279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10280 # chokes on -Wl,-G. The following line is correct:
10281 shared_flag='-G'
10282 else
10283 if test yes = "$aix_use_runtimelinking"; then
10284 shared_flag='$wl-G'
10285 else
10286 shared_flag='$wl-bM:SRE'
10287 fi
10288 shared_flag_aix='$wl-bM:SRE'
10289 shared_flag_svr4='$wl-G'
10290 fi
10291 fi
10292
10293 export_dynamic_flag_spec='$wl-bexpall'
10294 # It seems that -bexpall does not export symbols beginning with
10295 # underscore (_), so it is better to generate a list of symbols to export.
10296 always_export_symbols=yes
10297 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10298 # Warning - without using the other runtime loading flags (-brtl),
10299 # -berok will link without error, but may produce a broken library.
10300 allow_undefined_flag='-berok'
10301 # Determine the default libpath from the value encoded in an
10302 # empty executable.
10303 if test set = "${lt_cv_aix_libpath+set}"; then
10304 aix_libpath=$lt_cv_aix_libpath
10305 else
10306 if ${lt_cv_aix_libpath_+:} false; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10311
10312 int
10313 main ()
10314 {
10315
10316 ;
10317 return 0;
10318 }
10319 _ACEOF
10320 if ac_fn_c_try_link "$LINENO"; then :
10321
10322 lt_aix_libpath_sed='
10323 /Import File Strings/,/^$/ {
10324 /^0/ {
10325 s/^0 *\([^ ]*\) *$/\1/
10326 p
10327 }
10328 }'
10329 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10330 # Check for a 64-bit object if we didn't find anything.
10331 if test -z "$lt_cv_aix_libpath_"; then
10332 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10333 fi
10334 fi
10335 rm -f core conftest.err conftest.$ac_objext \
10336 conftest$ac_exeext conftest.$ac_ext
10337 if test -z "$lt_cv_aix_libpath_"; then
10338 lt_cv_aix_libpath_=/usr/lib:/lib
10339 fi
10340
10341 fi
10342
10343 aix_libpath=$lt_cv_aix_libpath_
10344 fi
10345
10346 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10347 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
10348 else
10349 if test ia64 = "$host_cpu"; then
10350 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10351 allow_undefined_flag="-z nodefs"
10352 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"
10353 else
10354 # Determine the default libpath from the value encoded in an
10355 # empty executable.
10356 if test set = "${lt_cv_aix_libpath+set}"; then
10357 aix_libpath=$lt_cv_aix_libpath
10358 else
10359 if ${lt_cv_aix_libpath_+:} false; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10364
10365 int
10366 main ()
10367 {
10368
10369 ;
10370 return 0;
10371 }
10372 _ACEOF
10373 if ac_fn_c_try_link "$LINENO"; then :
10374
10375 lt_aix_libpath_sed='
10376 /Import File Strings/,/^$/ {
10377 /^0/ {
10378 s/^0 *\([^ ]*\) *$/\1/
10379 p
10380 }
10381 }'
10382 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10383 # Check for a 64-bit object if we didn't find anything.
10384 if test -z "$lt_cv_aix_libpath_"; then
10385 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10386 fi
10387 fi
10388 rm -f core conftest.err conftest.$ac_objext \
10389 conftest$ac_exeext conftest.$ac_ext
10390 if test -z "$lt_cv_aix_libpath_"; then
10391 lt_cv_aix_libpath_=/usr/lib:/lib
10392 fi
10393
10394 fi
10395
10396 aix_libpath=$lt_cv_aix_libpath_
10397 fi
10398
10399 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10400 # Warning - without using the other run time loading flags,
10401 # -berok will link without error, but may produce a broken library.
10402 no_undefined_flag=' $wl-bernotok'
10403 allow_undefined_flag=' $wl-berok'
10404 if test yes = "$with_gnu_ld"; then
10405 # We only use this code for GNU lds that support --whole-archive.
10406 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10407 else
10408 # Exported symbols can be pulled into shared objects from archives
10409 whole_archive_flag_spec='$convenience'
10410 fi
10411 archive_cmds_need_lc=yes
10412 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10413 # -brtl affects multiple linker settings, -berok does not and is overridden later
10414 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10415 if test svr4 != "$with_aix_soname"; then
10416 # This is similar to how AIX traditionally builds its shared libraries.
10417 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'
10418 fi
10419 if test aix != "$with_aix_soname"; then
10420 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'
10421 else
10422 # used by -dlpreopen to get the symbols
10423 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10424 fi
10425 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10426 fi
10427 fi
10428 ;;
10429
10430 amigaos*)
10431 case $host_cpu in
10432 powerpc)
10433 # see comment about AmigaOS4 .so support
10434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10435 archive_expsym_cmds=''
10436 ;;
10437 m68k)
10438 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)'
10439 hardcode_libdir_flag_spec='-L$libdir'
10440 hardcode_minus_L=yes
10441 ;;
10442 esac
10443 ;;
10444
10445 bsdi[45]*)
10446 export_dynamic_flag_spec=-rdynamic
10447 ;;
10448
10449 cygwin* | mingw* | pw32* | cegcc*)
10450 # When not using gcc, we currently assume that we are using
10451 # Microsoft Visual C++.
10452 # hardcode_libdir_flag_spec is actually meaningless, as there is
10453 # no search path for DLLs.
10454 case $cc_basename in
10455 cl*)
10456 # Native MSVC
10457 hardcode_libdir_flag_spec=' '
10458 allow_undefined_flag=unsupported
10459 always_export_symbols=yes
10460 file_list_spec='@'
10461 # Tell ltmain to make .lib files, not .a files.
10462 libext=lib
10463 # Tell ltmain to make .dll files, not .so files.
10464 shrext_cmds=.dll
10465 # FIXME: Setting linknames here is a bad hack.
10466 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10467 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10468 cp "$export_symbols" "$output_objdir/$soname.def";
10469 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10470 else
10471 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10472 fi~
10473 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10474 linknames='
10475 # The linker will not automatically build a static lib if we build a DLL.
10476 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10477 enable_shared_with_static_runtimes=yes
10478 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10479 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10480 # Don't use ranlib
10481 old_postinstall_cmds='chmod 644 $oldlib'
10482 postlink_cmds='lt_outputfile="@OUTPUT@"~
10483 lt_tool_outputfile="@TOOL_OUTPUT@"~
10484 case $lt_outputfile in
10485 *.exe|*.EXE) ;;
10486 *)
10487 lt_outputfile=$lt_outputfile.exe
10488 lt_tool_outputfile=$lt_tool_outputfile.exe
10489 ;;
10490 esac~
10491 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10492 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10493 $RM "$lt_outputfile.manifest";
10494 fi'
10495 ;;
10496 *)
10497 # Assume MSVC wrapper
10498 hardcode_libdir_flag_spec=' '
10499 allow_undefined_flag=unsupported
10500 # Tell ltmain to make .lib files, not .a files.
10501 libext=lib
10502 # Tell ltmain to make .dll files, not .so files.
10503 shrext_cmds=.dll
10504 # FIXME: Setting linknames here is a bad hack.
10505 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10506 # The linker will automatically build a .lib file if we build a DLL.
10507 old_archive_from_new_cmds='true'
10508 # FIXME: Should let the user specify the lib program.
10509 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10510 enable_shared_with_static_runtimes=yes
10511 ;;
10512 esac
10513 ;;
10514
10515 darwin* | rhapsody*)
10516
10517
10518 archive_cmds_need_lc=no
10519 hardcode_direct=no
10520 hardcode_automatic=yes
10521 hardcode_shlibpath_var=unsupported
10522 if test yes = "$lt_cv_ld_force_load"; then
10523 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\"`'
10524
10525 else
10526 whole_archive_flag_spec=''
10527 fi
10528 link_all_deplibs=yes
10529 allow_undefined_flag=$_lt_dar_allow_undefined
10530 case $cc_basename in
10531 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10532 *) _lt_dar_can_shared=$GCC ;;
10533 esac
10534 if test yes = "$_lt_dar_can_shared"; then
10535 output_verbose_link_cmd=func_echo_all
10536 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10537 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10538 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"
10539 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"
10540
10541 else
10542 ld_shlibs=no
10543 fi
10544
10545 ;;
10546
10547 dgux*)
10548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10549 hardcode_libdir_flag_spec='-L$libdir'
10550 hardcode_shlibpath_var=no
10551 ;;
10552
10553 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10554 # support. Future versions do this automatically, but an explicit c++rt0.o
10555 # does not break anything, and helps significantly (at the cost of a little
10556 # extra space).
10557 freebsd2.2*)
10558 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10559 hardcode_libdir_flag_spec='-R$libdir'
10560 hardcode_direct=yes
10561 hardcode_shlibpath_var=no
10562 ;;
10563
10564 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10565 freebsd2.*)
10566 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10567 hardcode_direct=yes
10568 hardcode_minus_L=yes
10569 hardcode_shlibpath_var=no
10570 ;;
10571
10572 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10573 freebsd* | dragonfly*)
10574 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10575 hardcode_libdir_flag_spec='-R$libdir'
10576 hardcode_direct=yes
10577 hardcode_shlibpath_var=no
10578 ;;
10579
10580 hpux9*)
10581 if test yes = "$GCC"; then
10582 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'
10583 else
10584 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'
10585 fi
10586 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10587 hardcode_libdir_separator=:
10588 hardcode_direct=yes
10589
10590 # hardcode_minus_L: Not really in the search PATH,
10591 # but as the default location of the library.
10592 hardcode_minus_L=yes
10593 export_dynamic_flag_spec='$wl-E'
10594 ;;
10595
10596 hpux10*)
10597 if test yes,no = "$GCC,$with_gnu_ld"; then
10598 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10599 else
10600 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10601 fi
10602 if test no = "$with_gnu_ld"; then
10603 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10604 hardcode_libdir_separator=:
10605 hardcode_direct=yes
10606 hardcode_direct_absolute=yes
10607 export_dynamic_flag_spec='$wl-E'
10608 # hardcode_minus_L: Not really in the search PATH,
10609 # but as the default location of the library.
10610 hardcode_minus_L=yes
10611 fi
10612 ;;
10613
10614 hpux11*)
10615 if test yes,no = "$GCC,$with_gnu_ld"; then
10616 case $host_cpu in
10617 hppa*64*)
10618 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10619 ;;
10620 ia64*)
10621 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10622 ;;
10623 *)
10624 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10625 ;;
10626 esac
10627 else
10628 case $host_cpu in
10629 hppa*64*)
10630 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10631 ;;
10632 ia64*)
10633 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10634 ;;
10635 *)
10636
10637 # Older versions of the 11.00 compiler do not understand -b yet
10638 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10640 $as_echo_n "checking if $CC understands -b... " >&6; }
10641 if ${lt_cv_prog_compiler__b+:} false; then :
10642 $as_echo_n "(cached) " >&6
10643 else
10644 lt_cv_prog_compiler__b=no
10645 save_LDFLAGS=$LDFLAGS
10646 LDFLAGS="$LDFLAGS -b"
10647 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10648 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10649 # The linker can only warn and ignore the option if not recognized
10650 # So say no if there are warnings
10651 if test -s conftest.err; then
10652 # Append any errors to the config.log.
10653 cat conftest.err 1>&5
10654 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10655 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10656 if diff conftest.exp conftest.er2 >/dev/null; then
10657 lt_cv_prog_compiler__b=yes
10658 fi
10659 else
10660 lt_cv_prog_compiler__b=yes
10661 fi
10662 fi
10663 $RM -r conftest*
10664 LDFLAGS=$save_LDFLAGS
10665
10666 fi
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10668 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10669
10670 if test yes = "$lt_cv_prog_compiler__b"; then
10671 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10672 else
10673 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10674 fi
10675
10676 ;;
10677 esac
10678 fi
10679 if test no = "$with_gnu_ld"; then
10680 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10681 hardcode_libdir_separator=:
10682
10683 case $host_cpu in
10684 hppa*64*|ia64*)
10685 hardcode_direct=no
10686 hardcode_shlibpath_var=no
10687 ;;
10688 *)
10689 hardcode_direct=yes
10690 hardcode_direct_absolute=yes
10691 export_dynamic_flag_spec='$wl-E'
10692
10693 # hardcode_minus_L: Not really in the search PATH,
10694 # but as the default location of the library.
10695 hardcode_minus_L=yes
10696 ;;
10697 esac
10698 fi
10699 ;;
10700
10701 irix5* | irix6* | nonstopux*)
10702 if test yes = "$GCC"; then
10703 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'
10704 # Try to use the -exported_symbol ld option, if it does not
10705 # work, assume that -exports_file does not work either and
10706 # implicitly export all symbols.
10707 # This should be the same for all languages, so no per-tag cache variable.
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10709 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10710 if ${lt_cv_irix_exported_symbol+:} false; then :
10711 $as_echo_n "(cached) " >&6
10712 else
10713 save_LDFLAGS=$LDFLAGS
10714 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716 /* end confdefs.h. */
10717 int foo (void) { return 0; }
10718 _ACEOF
10719 if ac_fn_c_try_link "$LINENO"; then :
10720 lt_cv_irix_exported_symbol=yes
10721 else
10722 lt_cv_irix_exported_symbol=no
10723 fi
10724 rm -f core conftest.err conftest.$ac_objext \
10725 conftest$ac_exeext conftest.$ac_ext
10726 LDFLAGS=$save_LDFLAGS
10727 fi
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10729 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10730 if test yes = "$lt_cv_irix_exported_symbol"; then
10731 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'
10732 fi
10733 link_all_deplibs=no
10734 else
10735 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'
10736 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'
10737 fi
10738 archive_cmds_need_lc='no'
10739 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10740 hardcode_libdir_separator=:
10741 inherit_rpath=yes
10742 link_all_deplibs=yes
10743 ;;
10744
10745 linux*)
10746 case $cc_basename in
10747 tcc*)
10748 # Fabrice Bellard et al's Tiny C Compiler
10749 ld_shlibs=yes
10750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10751 ;;
10752 esac
10753 ;;
10754
10755 netbsd* | netbsdelf*-gnu)
10756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10758 else
10759 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10760 fi
10761 hardcode_libdir_flag_spec='-R$libdir'
10762 hardcode_direct=yes
10763 hardcode_shlibpath_var=no
10764 ;;
10765
10766 newsos6)
10767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_direct=yes
10769 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10770 hardcode_libdir_separator=:
10771 hardcode_shlibpath_var=no
10772 ;;
10773
10774 *nto* | *qnx*)
10775 ;;
10776
10777 openbsd* | bitrig*)
10778 if test -f /usr/libexec/ld.so; then
10779 hardcode_direct=yes
10780 hardcode_shlibpath_var=no
10781 hardcode_direct_absolute=yes
10782 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10783 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10784 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10785 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10786 export_dynamic_flag_spec='$wl-E'
10787 else
10788 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10789 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10790 fi
10791 else
10792 ld_shlibs=no
10793 fi
10794 ;;
10795
10796 os2*)
10797 hardcode_libdir_flag_spec='-L$libdir'
10798 hardcode_minus_L=yes
10799 allow_undefined_flag=unsupported
10800 shrext_cmds=.dll
10801 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10802 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10803 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10804 $ECHO EXPORTS >> $output_objdir/$libname.def~
10805 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10806 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10807 emximp -o $lib $output_objdir/$libname.def'
10808 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10809 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10810 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10811 $ECHO EXPORTS >> $output_objdir/$libname.def~
10812 prefix_cmds="$SED"~
10813 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10814 prefix_cmds="$prefix_cmds -e 1d";
10815 fi~
10816 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10817 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10818 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10819 emximp -o $lib $output_objdir/$libname.def'
10820 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10821 enable_shared_with_static_runtimes=yes
10822 ;;
10823
10824 osf3*)
10825 if test yes = "$GCC"; then
10826 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10827 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'
10828 else
10829 allow_undefined_flag=' -expect_unresolved \*'
10830 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'
10831 fi
10832 archive_cmds_need_lc='no'
10833 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10834 hardcode_libdir_separator=:
10835 ;;
10836
10837 osf4* | osf5*) # as osf3* with the addition of -msym flag
10838 if test yes = "$GCC"; then
10839 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10840 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'
10841 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10842 else
10843 allow_undefined_flag=' -expect_unresolved \*'
10844 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'
10845 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~
10846 $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'
10847
10848 # Both c and cxx compiler support -rpath directly
10849 hardcode_libdir_flag_spec='-rpath $libdir'
10850 fi
10851 archive_cmds_need_lc='no'
10852 hardcode_libdir_separator=:
10853 ;;
10854
10855 solaris*)
10856 no_undefined_flag=' -z defs'
10857 if test yes = "$GCC"; then
10858 wlarc='$wl'
10859 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10860 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10861 $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'
10862 else
10863 case `$CC -V 2>&1` in
10864 *"Compilers 5.0"*)
10865 wlarc=''
10866 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10867 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10868 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10869 ;;
10870 *)
10871 wlarc='$wl'
10872 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10873 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10874 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10875 ;;
10876 esac
10877 fi
10878 hardcode_libdir_flag_spec='-R$libdir'
10879 hardcode_shlibpath_var=no
10880 case $host_os in
10881 solaris2.[0-5] | solaris2.[0-5].*) ;;
10882 *)
10883 # The compiler driver will combine and reorder linker options,
10884 # but understands '-z linker_flag'. GCC discards it without '$wl',
10885 # but is careful enough not to reorder.
10886 # Supported since Solaris 2.6 (maybe 2.5.1?)
10887 if test yes = "$GCC"; then
10888 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10889 else
10890 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10891 fi
10892 ;;
10893 esac
10894 link_all_deplibs=yes
10895 ;;
10896
10897 sunos4*)
10898 if test sequent = "$host_vendor"; then
10899 # Use $CC to link under sequent, because it throws in some extra .o
10900 # files that make .init and .fini sections work.
10901 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10902 else
10903 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10904 fi
10905 hardcode_libdir_flag_spec='-L$libdir'
10906 hardcode_direct=yes
10907 hardcode_minus_L=yes
10908 hardcode_shlibpath_var=no
10909 ;;
10910
10911 sysv4)
10912 case $host_vendor in
10913 sni)
10914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10915 hardcode_direct=yes # is this really true???
10916 ;;
10917 siemens)
10918 ## LD is ld it makes a PLAMLIB
10919 ## CC just makes a GrossModule.
10920 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10921 reload_cmds='$CC -r -o $output$reload_objs'
10922 hardcode_direct=no
10923 ;;
10924 motorola)
10925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10926 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10927 ;;
10928 esac
10929 runpath_var='LD_RUN_PATH'
10930 hardcode_shlibpath_var=no
10931 ;;
10932
10933 sysv4.3*)
10934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10935 hardcode_shlibpath_var=no
10936 export_dynamic_flag_spec='-Bexport'
10937 ;;
10938
10939 sysv4*MP*)
10940 if test -d /usr/nec; then
10941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10942 hardcode_shlibpath_var=no
10943 runpath_var=LD_RUN_PATH
10944 hardcode_runpath_var=yes
10945 ld_shlibs=yes
10946 fi
10947 ;;
10948
10949 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10950 no_undefined_flag='$wl-z,text'
10951 archive_cmds_need_lc=no
10952 hardcode_shlibpath_var=no
10953 runpath_var='LD_RUN_PATH'
10954
10955 if test yes = "$GCC"; then
10956 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10957 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10958 else
10959 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10960 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10961 fi
10962 ;;
10963
10964 sysv5* | sco3.2v5* | sco5v6*)
10965 # Note: We CANNOT use -z defs as we might desire, because we do not
10966 # link with -lc, and that would cause any symbols used from libc to
10967 # always be unresolved, which means just about no library would
10968 # ever link correctly. If we're not using GNU ld we use -z text
10969 # though, which does catch some bad symbols but isn't as heavy-handed
10970 # as -z defs.
10971 no_undefined_flag='$wl-z,text'
10972 allow_undefined_flag='$wl-z,nodefs'
10973 archive_cmds_need_lc=no
10974 hardcode_shlibpath_var=no
10975 hardcode_libdir_flag_spec='$wl-R,$libdir'
10976 hardcode_libdir_separator=':'
10977 link_all_deplibs=yes
10978 export_dynamic_flag_spec='$wl-Bexport'
10979 runpath_var='LD_RUN_PATH'
10980
10981 if test yes = "$GCC"; then
10982 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10983 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10984 else
10985 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10986 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10987 fi
10988 ;;
10989
10990 uts4*)
10991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10992 hardcode_libdir_flag_spec='-L$libdir'
10993 hardcode_shlibpath_var=no
10994 ;;
10995
10996 *)
10997 ld_shlibs=no
10998 ;;
10999 esac
11000
11001 if test sni = "$host_vendor"; then
11002 case $host in
11003 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11004 export_dynamic_flag_spec='$wl-Blargedynsym'
11005 ;;
11006 esac
11007 fi
11008 fi
11009
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11011 $as_echo "$ld_shlibs" >&6; }
11012 test no = "$ld_shlibs" && can_build_shared=no
11013
11014 with_gnu_ld=$with_gnu_ld
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030 #
11031 # Do we need to explicitly link libc?
11032 #
11033 case "x$archive_cmds_need_lc" in
11034 x|xyes)
11035 # Assume -lc should be added
11036 archive_cmds_need_lc=yes
11037
11038 if test yes,yes = "$GCC,$enable_shared"; then
11039 case $archive_cmds in
11040 *'~'*)
11041 # FIXME: we may have to deal with multi-command sequences.
11042 ;;
11043 '$CC '*)
11044 # Test whether the compiler implicitly links with -lc since on some
11045 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11046 # to ld, don't add -lc before -lgcc.
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11048 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11049 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11050 $as_echo_n "(cached) " >&6
11051 else
11052 $RM conftest*
11053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11054
11055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11056 (eval $ac_compile) 2>&5
11057 ac_status=$?
11058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11059 test $ac_status = 0; } 2>conftest.err; then
11060 soname=conftest
11061 lib=conftest
11062 libobjs=conftest.$ac_objext
11063 deplibs=
11064 wl=$lt_prog_compiler_wl
11065 pic_flag=$lt_prog_compiler_pic
11066 compiler_flags=-v
11067 linker_flags=-v
11068 verstring=
11069 output_objdir=.
11070 libname=conftest
11071 lt_save_allow_undefined_flag=$allow_undefined_flag
11072 allow_undefined_flag=
11073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11074 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11075 ac_status=$?
11076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11077 test $ac_status = 0; }
11078 then
11079 lt_cv_archive_cmds_need_lc=no
11080 else
11081 lt_cv_archive_cmds_need_lc=yes
11082 fi
11083 allow_undefined_flag=$lt_save_allow_undefined_flag
11084 else
11085 cat conftest.err 1>&5
11086 fi
11087 $RM conftest*
11088
11089 fi
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11091 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11092 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11093 ;;
11094 esac
11095 fi
11096 ;;
11097 esac
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11251 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11252
11253 if test yes = "$GCC"; then
11254 case $host_os in
11255 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11256 *) lt_awk_arg='/^libraries:/' ;;
11257 esac
11258 case $host_os in
11259 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11260 *) lt_sed_strip_eq='s|=/|/|g' ;;
11261 esac
11262 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11263 case $lt_search_path_spec in
11264 *\;*)
11265 # if the path contains ";" then we assume it to be the separator
11266 # otherwise default to the standard path separator (i.e. ":") - it is
11267 # assumed that no part of a normal pathname contains ";" but that should
11268 # okay in the real world where ";" in dirpaths is itself problematic.
11269 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11270 ;;
11271 *)
11272 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11273 ;;
11274 esac
11275 # Ok, now we have the path, separated by spaces, we can step through it
11276 # and add multilib dir if necessary...
11277 lt_tmp_lt_search_path_spec=
11278 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11279 # ...but if some path component already ends with the multilib dir we assume
11280 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11281 case "$lt_multi_os_dir; $lt_search_path_spec " in
11282 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11283 lt_multi_os_dir=
11284 ;;
11285 esac
11286 for lt_sys_path in $lt_search_path_spec; do
11287 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11288 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11289 elif test -n "$lt_multi_os_dir"; then
11290 test -d "$lt_sys_path" && \
11291 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11292 fi
11293 done
11294 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11295 BEGIN {RS = " "; FS = "/|\n";} {
11296 lt_foo = "";
11297 lt_count = 0;
11298 for (lt_i = NF; lt_i > 0; lt_i--) {
11299 if ($lt_i != "" && $lt_i != ".") {
11300 if ($lt_i == "..") {
11301 lt_count++;
11302 } else {
11303 if (lt_count == 0) {
11304 lt_foo = "/" $lt_i lt_foo;
11305 } else {
11306 lt_count--;
11307 }
11308 }
11309 }
11310 }
11311 if (lt_foo != "") { lt_freq[lt_foo]++; }
11312 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11313 }'`
11314 # AWK program above erroneously prepends '/' to C:/dos/paths
11315 # for these hosts.
11316 case $host_os in
11317 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11318 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11319 esac
11320 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11321 else
11322 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11323 fi
11324 library_names_spec=
11325 libname_spec='lib$name'
11326 soname_spec=
11327 shrext_cmds=.so
11328 postinstall_cmds=
11329 postuninstall_cmds=
11330 finish_cmds=
11331 finish_eval=
11332 shlibpath_var=
11333 shlibpath_overrides_runpath=unknown
11334 version_type=none
11335 dynamic_linker="$host_os ld.so"
11336 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11337 need_lib_prefix=unknown
11338 hardcode_into_libs=no
11339
11340 # when you set need_version to no, make sure it does not cause -set_version
11341 # flags to be left without arguments
11342 need_version=unknown
11343
11344
11345
11346 case $host_os in
11347 aix3*)
11348 version_type=linux # correct to gnu/linux during the next big refactor
11349 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11350 shlibpath_var=LIBPATH
11351
11352 # AIX 3 has no versioning support, so we append a major version to the name.
11353 soname_spec='$libname$release$shared_ext$major'
11354 ;;
11355
11356 aix[4-9]*)
11357 version_type=linux # correct to gnu/linux during the next big refactor
11358 need_lib_prefix=no
11359 need_version=no
11360 hardcode_into_libs=yes
11361 if test ia64 = "$host_cpu"; then
11362 # AIX 5 supports IA64
11363 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11364 shlibpath_var=LD_LIBRARY_PATH
11365 else
11366 # With GCC up to 2.95.x, collect2 would create an import file
11367 # for dependence libraries. The import file would start with
11368 # the line '#! .'. This would cause the generated library to
11369 # depend on '.', always an invalid library. This was fixed in
11370 # development snapshots of GCC prior to 3.0.
11371 case $host_os in
11372 aix4 | aix4.[01] | aix4.[01].*)
11373 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11374 echo ' yes '
11375 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11376 :
11377 else
11378 can_build_shared=no
11379 fi
11380 ;;
11381 esac
11382 # Using Import Files as archive members, it is possible to support
11383 # filename-based versioning of shared library archives on AIX. While
11384 # this would work for both with and without runtime linking, it will
11385 # prevent static linking of such archives. So we do filename-based
11386 # shared library versioning with .so extension only, which is used
11387 # when both runtime linking and shared linking is enabled.
11388 # Unfortunately, runtime linking may impact performance, so we do
11389 # not want this to be the default eventually. Also, we use the
11390 # versioned .so libs for executables only if there is the -brtl
11391 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11392 # To allow for filename-based versioning support, we need to create
11393 # libNAME.so.V as an archive file, containing:
11394 # *) an Import File, referring to the versioned filename of the
11395 # archive as well as the shared archive member, telling the
11396 # bitwidth (32 or 64) of that shared object, and providing the
11397 # list of exported symbols of that shared object, eventually
11398 # decorated with the 'weak' keyword
11399 # *) the shared object with the F_LOADONLY flag set, to really avoid
11400 # it being seen by the linker.
11401 # At run time we better use the real file rather than another symlink,
11402 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11403
11404 case $with_aix_soname,$aix_use_runtimelinking in
11405 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11406 # soname into executable. Probably we can add versioning support to
11407 # collect2, so additional links can be useful in future.
11408 aix,yes) # traditional libtool
11409 dynamic_linker='AIX unversionable lib.so'
11410 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11411 # instead of lib<name>.a to let people know that these are not
11412 # typical AIX shared libraries.
11413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11414 ;;
11415 aix,no) # traditional AIX only
11416 dynamic_linker='AIX lib.a(lib.so.V)'
11417 # We preserve .a as extension for shared libraries through AIX4.2
11418 # and later when we are not doing run time linking.
11419 library_names_spec='$libname$release.a $libname.a'
11420 soname_spec='$libname$release$shared_ext$major'
11421 ;;
11422 svr4,*) # full svr4 only
11423 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11424 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11425 # We do not specify a path in Import Files, so LIBPATH fires.
11426 shlibpath_overrides_runpath=yes
11427 ;;
11428 *,yes) # both, prefer svr4
11429 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11430 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11431 # unpreferred sharedlib libNAME.a needs extra handling
11432 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"'
11433 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"'
11434 # We do not specify a path in Import Files, so LIBPATH fires.
11435 shlibpath_overrides_runpath=yes
11436 ;;
11437 *,no) # both, prefer aix
11438 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11439 library_names_spec='$libname$release.a $libname.a'
11440 soname_spec='$libname$release$shared_ext$major'
11441 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11442 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)'
11443 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"'
11444 ;;
11445 esac
11446 shlibpath_var=LIBPATH
11447 fi
11448 ;;
11449
11450 amigaos*)
11451 case $host_cpu in
11452 powerpc)
11453 # Since July 2007 AmigaOS4 officially supports .so libraries.
11454 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11456 ;;
11457 m68k)
11458 library_names_spec='$libname.ixlibrary $libname.a'
11459 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11460 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'
11461 ;;
11462 esac
11463 ;;
11464
11465 beos*)
11466 library_names_spec='$libname$shared_ext'
11467 dynamic_linker="$host_os ld.so"
11468 shlibpath_var=LIBRARY_PATH
11469 ;;
11470
11471 bsdi[45]*)
11472 version_type=linux # correct to gnu/linux during the next big refactor
11473 need_version=no
11474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11475 soname_spec='$libname$release$shared_ext$major'
11476 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11479 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11480 # the default ld.so.conf also contains /usr/contrib/lib and
11481 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11482 # libtool to hard-code these into programs
11483 ;;
11484
11485 cygwin* | mingw* | pw32* | cegcc*)
11486 version_type=windows
11487 shrext_cmds=.dll
11488 need_version=no
11489 need_lib_prefix=no
11490
11491 case $GCC,$cc_basename in
11492 yes,*)
11493 # gcc
11494 library_names_spec='$libname.dll.a'
11495 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11496 postinstall_cmds='base_file=`basename \$file`~
11497 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11498 dldir=$destdir/`dirname \$dlpath`~
11499 test -d \$dldir || mkdir -p \$dldir~
11500 $install_prog $dir/$dlname \$dldir/$dlname~
11501 chmod a+x \$dldir/$dlname~
11502 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11503 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11504 fi'
11505 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11506 dlpath=$dir/\$dldll~
11507 $RM \$dlpath'
11508 shlibpath_overrides_runpath=yes
11509
11510 case $host_os in
11511 cygwin*)
11512 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11513 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11514
11515 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11516 ;;
11517 mingw* | cegcc*)
11518 # MinGW DLLs use traditional 'lib' prefix
11519 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11520 ;;
11521 pw32*)
11522 # pw32 DLLs use 'pw' prefix rather than 'lib'
11523 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11524 ;;
11525 esac
11526 dynamic_linker='Win32 ld.exe'
11527 ;;
11528
11529 *,cl*)
11530 # Native MSVC
11531 libname_spec='$name'
11532 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11533 library_names_spec='$libname.dll.lib'
11534
11535 case $build_os in
11536 mingw*)
11537 sys_lib_search_path_spec=
11538 lt_save_ifs=$IFS
11539 IFS=';'
11540 for lt_path in $LIB
11541 do
11542 IFS=$lt_save_ifs
11543 # Let DOS variable expansion print the short 8.3 style file name.
11544 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11545 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11546 done
11547 IFS=$lt_save_ifs
11548 # Convert to MSYS style.
11549 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11550 ;;
11551 cygwin*)
11552 # Convert to unix form, then to dos form, then back to unix form
11553 # but this time dos style (no spaces!) so that the unix form looks
11554 # like /cygdrive/c/PROGRA~1:/cygdr...
11555 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11556 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11557 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11558 ;;
11559 *)
11560 sys_lib_search_path_spec=$LIB
11561 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11562 # It is most probably a Windows format PATH.
11563 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11564 else
11565 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11566 fi
11567 # FIXME: find the short name or the path components, as spaces are
11568 # common. (e.g. "Program Files" -> "PROGRA~1")
11569 ;;
11570 esac
11571
11572 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11573 postinstall_cmds='base_file=`basename \$file`~
11574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11575 dldir=$destdir/`dirname \$dlpath`~
11576 test -d \$dldir || mkdir -p \$dldir~
11577 $install_prog $dir/$dlname \$dldir/$dlname'
11578 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11579 dlpath=$dir/\$dldll~
11580 $RM \$dlpath'
11581 shlibpath_overrides_runpath=yes
11582 dynamic_linker='Win32 link.exe'
11583 ;;
11584
11585 *)
11586 # Assume MSVC wrapper
11587 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11588 dynamic_linker='Win32 ld.exe'
11589 ;;
11590 esac
11591 # FIXME: first we should search . and the directory the executable is in
11592 shlibpath_var=PATH
11593 ;;
11594
11595 darwin* | rhapsody*)
11596 dynamic_linker="$host_os dyld"
11597 version_type=darwin
11598 need_lib_prefix=no
11599 need_version=no
11600 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11601 soname_spec='$libname$release$major$shared_ext'
11602 shlibpath_overrides_runpath=yes
11603 shlibpath_var=DYLD_LIBRARY_PATH
11604 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11605
11606 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11607 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11608 ;;
11609
11610 dgux*)
11611 version_type=linux # correct to gnu/linux during the next big refactor
11612 need_lib_prefix=no
11613 need_version=no
11614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11615 soname_spec='$libname$release$shared_ext$major'
11616 shlibpath_var=LD_LIBRARY_PATH
11617 ;;
11618
11619 freebsd* | dragonfly*)
11620 # DragonFly does not have aout. When/if they implement a new
11621 # versioning mechanism, adjust this.
11622 if test -x /usr/bin/objformat; then
11623 objformat=`/usr/bin/objformat`
11624 else
11625 case $host_os in
11626 freebsd[23].*) objformat=aout ;;
11627 *) objformat=elf ;;
11628 esac
11629 fi
11630 version_type=freebsd-$objformat
11631 case $version_type in
11632 freebsd-elf*)
11633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11634 soname_spec='$libname$release$shared_ext$major'
11635 need_version=no
11636 need_lib_prefix=no
11637 ;;
11638 freebsd-*)
11639 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11640 need_version=yes
11641 ;;
11642 esac
11643 shlibpath_var=LD_LIBRARY_PATH
11644 case $host_os in
11645 freebsd2.*)
11646 shlibpath_overrides_runpath=yes
11647 ;;
11648 freebsd3.[01]* | freebsdelf3.[01]*)
11649 shlibpath_overrides_runpath=yes
11650 hardcode_into_libs=yes
11651 ;;
11652 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11653 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11654 shlibpath_overrides_runpath=no
11655 hardcode_into_libs=yes
11656 ;;
11657 *) # from 4.6 on, and DragonFly
11658 shlibpath_overrides_runpath=yes
11659 hardcode_into_libs=yes
11660 ;;
11661 esac
11662 ;;
11663
11664 haiku*)
11665 version_type=linux # correct to gnu/linux during the next big refactor
11666 need_lib_prefix=no
11667 need_version=no
11668 dynamic_linker="$host_os runtime_loader"
11669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11670 soname_spec='$libname$release$shared_ext$major'
11671 shlibpath_var=LIBRARY_PATH
11672 shlibpath_overrides_runpath=no
11673 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11674 hardcode_into_libs=yes
11675 ;;
11676
11677 hpux9* | hpux10* | hpux11*)
11678 # Give a soname corresponding to the major version so that dld.sl refuses to
11679 # link against other versions.
11680 version_type=sunos
11681 need_lib_prefix=no
11682 need_version=no
11683 case $host_cpu in
11684 ia64*)
11685 shrext_cmds='.so'
11686 hardcode_into_libs=yes
11687 dynamic_linker="$host_os dld.so"
11688 shlibpath_var=LD_LIBRARY_PATH
11689 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11691 soname_spec='$libname$release$shared_ext$major'
11692 if test 32 = "$HPUX_IA64_MODE"; then
11693 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11694 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11695 else
11696 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11697 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11698 fi
11699 ;;
11700 hppa*64*)
11701 shrext_cmds='.sl'
11702 hardcode_into_libs=yes
11703 dynamic_linker="$host_os dld.sl"
11704 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11707 soname_spec='$libname$release$shared_ext$major'
11708 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11710 ;;
11711 *)
11712 shrext_cmds='.sl'
11713 dynamic_linker="$host_os dld.sl"
11714 shlibpath_var=SHLIB_PATH
11715 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11717 soname_spec='$libname$release$shared_ext$major'
11718 ;;
11719 esac
11720 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11721 postinstall_cmds='chmod 555 $lib'
11722 # or fails outright, so override atomically:
11723 install_override_mode=555
11724 ;;
11725
11726 interix[3-9]*)
11727 version_type=linux # correct to gnu/linux during the next big refactor
11728 need_lib_prefix=no
11729 need_version=no
11730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11731 soname_spec='$libname$release$shared_ext$major'
11732 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11733 shlibpath_var=LD_LIBRARY_PATH
11734 shlibpath_overrides_runpath=no
11735 hardcode_into_libs=yes
11736 ;;
11737
11738 irix5* | irix6* | nonstopux*)
11739 case $host_os in
11740 nonstopux*) version_type=nonstopux ;;
11741 *)
11742 if test yes = "$lt_cv_prog_gnu_ld"; then
11743 version_type=linux # correct to gnu/linux during the next big refactor
11744 else
11745 version_type=irix
11746 fi ;;
11747 esac
11748 need_lib_prefix=no
11749 need_version=no
11750 soname_spec='$libname$release$shared_ext$major'
11751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11752 case $host_os in
11753 irix5* | nonstopux*)
11754 libsuff= shlibsuff=
11755 ;;
11756 *)
11757 case $LD in # libtool.m4 will add one of these switches to LD
11758 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11759 libsuff= shlibsuff= libmagic=32-bit;;
11760 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11761 libsuff=32 shlibsuff=N32 libmagic=N32;;
11762 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11763 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11764 *) libsuff= shlibsuff= libmagic=never-match;;
11765 esac
11766 ;;
11767 esac
11768 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11769 shlibpath_overrides_runpath=no
11770 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11771 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11772 hardcode_into_libs=yes
11773 ;;
11774
11775 # No shared lib support for Linux oldld, aout, or coff.
11776 linux*oldld* | linux*aout* | linux*coff*)
11777 dynamic_linker=no
11778 ;;
11779
11780 linux*android*)
11781 version_type=none # Android doesn't support versioned libraries.
11782 need_lib_prefix=no
11783 need_version=no
11784 library_names_spec='$libname$release$shared_ext'
11785 soname_spec='$libname$release$shared_ext'
11786 finish_cmds=
11787 shlibpath_var=LD_LIBRARY_PATH
11788 shlibpath_overrides_runpath=yes
11789
11790 # This implies no fast_install, which is unacceptable.
11791 # Some rework will be needed to allow for fast_install
11792 # before this can be enabled.
11793 hardcode_into_libs=yes
11794
11795 dynamic_linker='Android linker'
11796 # Don't embed -rpath directories since the linker doesn't support them.
11797 hardcode_libdir_flag_spec='-L$libdir'
11798 ;;
11799
11800 # This must be glibc/ELF.
11801 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11802 version_type=linux # correct to gnu/linux during the next big refactor
11803 need_lib_prefix=no
11804 need_version=no
11805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11806 soname_spec='$libname$release$shared_ext$major'
11807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11808 shlibpath_var=LD_LIBRARY_PATH
11809 shlibpath_overrides_runpath=no
11810
11811 # Some binutils ld are patched to set DT_RUNPATH
11812 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11813 $as_echo_n "(cached) " >&6
11814 else
11815 lt_cv_shlibpath_overrides_runpath=no
11816 save_LDFLAGS=$LDFLAGS
11817 save_libdir=$libdir
11818 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11819 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11821 /* end confdefs.h. */
11822
11823 int
11824 main ()
11825 {
11826
11827 ;
11828 return 0;
11829 }
11830 _ACEOF
11831 if ac_fn_c_try_link "$LINENO"; then :
11832 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11833 lt_cv_shlibpath_overrides_runpath=yes
11834 fi
11835 fi
11836 rm -f core conftest.err conftest.$ac_objext \
11837 conftest$ac_exeext conftest.$ac_ext
11838 LDFLAGS=$save_LDFLAGS
11839 libdir=$save_libdir
11840
11841 fi
11842
11843 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11844
11845 # This implies no fast_install, which is unacceptable.
11846 # Some rework will be needed to allow for fast_install
11847 # before this can be enabled.
11848 hardcode_into_libs=yes
11849
11850 # Ideally, we could use ldconfig to report *all* directores which are
11851 # searched for libraries, however this is still not possible. Aside from not
11852 # being certain /sbin/ldconfig is available, command
11853 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11854 # even though it is searched at run-time. Try to do the best guess by
11855 # appending ld.so.conf contents (and includes) to the search path.
11856 if test -f /etc/ld.so.conf; then
11857 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' ' '`
11858 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11859 fi
11860
11861 # We used to test for /lib/ld.so.1 and disable shared libraries on
11862 # powerpc, because MkLinux only supported shared libraries with the
11863 # GNU dynamic linker. Since this was broken with cross compilers,
11864 # most powerpc-linux boxes support dynamic linking these days and
11865 # people can always --disable-shared, the test was removed, and we
11866 # assume the GNU/Linux dynamic linker is in use.
11867 dynamic_linker='GNU/Linux ld.so'
11868 ;;
11869
11870 netbsdelf*-gnu)
11871 version_type=linux
11872 need_lib_prefix=no
11873 need_version=no
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11875 soname_spec='${libname}${release}${shared_ext}$major'
11876 shlibpath_var=LD_LIBRARY_PATH
11877 shlibpath_overrides_runpath=no
11878 hardcode_into_libs=yes
11879 dynamic_linker='NetBSD ld.elf_so'
11880 ;;
11881
11882 netbsd*)
11883 version_type=sunos
11884 need_lib_prefix=no
11885 need_version=no
11886 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11887 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11889 dynamic_linker='NetBSD (a.out) ld.so'
11890 else
11891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11892 soname_spec='$libname$release$shared_ext$major'
11893 dynamic_linker='NetBSD ld.elf_so'
11894 fi
11895 shlibpath_var=LD_LIBRARY_PATH
11896 shlibpath_overrides_runpath=yes
11897 hardcode_into_libs=yes
11898 ;;
11899
11900 newsos6)
11901 version_type=linux # correct to gnu/linux during the next big refactor
11902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11903 shlibpath_var=LD_LIBRARY_PATH
11904 shlibpath_overrides_runpath=yes
11905 ;;
11906
11907 *nto* | *qnx*)
11908 version_type=qnx
11909 need_lib_prefix=no
11910 need_version=no
11911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11912 soname_spec='$libname$release$shared_ext$major'
11913 shlibpath_var=LD_LIBRARY_PATH
11914 shlibpath_overrides_runpath=no
11915 hardcode_into_libs=yes
11916 dynamic_linker='ldqnx.so'
11917 ;;
11918
11919 openbsd* | bitrig*)
11920 version_type=sunos
11921 sys_lib_dlsearch_path_spec=/usr/lib
11922 need_lib_prefix=no
11923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11924 need_version=no
11925 else
11926 need_version=yes
11927 fi
11928 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11930 shlibpath_var=LD_LIBRARY_PATH
11931 shlibpath_overrides_runpath=yes
11932 ;;
11933
11934 os2*)
11935 libname_spec='$name'
11936 version_type=windows
11937 shrext_cmds=.dll
11938 need_version=no
11939 need_lib_prefix=no
11940 # OS/2 can only load a DLL with a base name of 8 characters or less.
11941 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11942 v=$($ECHO $release$versuffix | tr -d .-);
11943 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11944 $ECHO $n$v`$shared_ext'
11945 library_names_spec='${libname}_dll.$libext'
11946 dynamic_linker='OS/2 ld.exe'
11947 shlibpath_var=BEGINLIBPATH
11948 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11950 postinstall_cmds='base_file=`basename \$file`~
11951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11952 dldir=$destdir/`dirname \$dlpath`~
11953 test -d \$dldir || mkdir -p \$dldir~
11954 $install_prog $dir/$dlname \$dldir/$dlname~
11955 chmod a+x \$dldir/$dlname~
11956 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11957 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11958 fi'
11959 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11960 dlpath=$dir/\$dldll~
11961 $RM \$dlpath'
11962 ;;
11963
11964 osf3* | osf4* | osf5*)
11965 version_type=osf
11966 need_lib_prefix=no
11967 need_version=no
11968 soname_spec='$libname$release$shared_ext$major'
11969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11970 shlibpath_var=LD_LIBRARY_PATH
11971 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11972 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11973 ;;
11974
11975 rdos*)
11976 dynamic_linker=no
11977 ;;
11978
11979 solaris*)
11980 version_type=linux # correct to gnu/linux during the next big refactor
11981 need_lib_prefix=no
11982 need_version=no
11983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11984 soname_spec='$libname$release$shared_ext$major'
11985 shlibpath_var=LD_LIBRARY_PATH
11986 shlibpath_overrides_runpath=yes
11987 hardcode_into_libs=yes
11988 # ldd complains unless libraries are executable
11989 postinstall_cmds='chmod +x $lib'
11990 ;;
11991
11992 sunos4*)
11993 version_type=sunos
11994 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11995 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11996 shlibpath_var=LD_LIBRARY_PATH
11997 shlibpath_overrides_runpath=yes
11998 if test yes = "$with_gnu_ld"; then
11999 need_lib_prefix=no
12000 fi
12001 need_version=yes
12002 ;;
12003
12004 sysv4 | sysv4.3*)
12005 version_type=linux # correct to gnu/linux during the next big refactor
12006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12007 soname_spec='$libname$release$shared_ext$major'
12008 shlibpath_var=LD_LIBRARY_PATH
12009 case $host_vendor in
12010 sni)
12011 shlibpath_overrides_runpath=no
12012 need_lib_prefix=no
12013 runpath_var=LD_RUN_PATH
12014 ;;
12015 siemens)
12016 need_lib_prefix=no
12017 ;;
12018 motorola)
12019 need_lib_prefix=no
12020 need_version=no
12021 shlibpath_overrides_runpath=no
12022 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12023 ;;
12024 esac
12025 ;;
12026
12027 sysv4*MP*)
12028 if test -d /usr/nec; then
12029 version_type=linux # correct to gnu/linux during the next big refactor
12030 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12031 soname_spec='$libname$shared_ext.$major'
12032 shlibpath_var=LD_LIBRARY_PATH
12033 fi
12034 ;;
12035
12036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12037 version_type=sco
12038 need_lib_prefix=no
12039 need_version=no
12040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12041 soname_spec='$libname$release$shared_ext$major'
12042 shlibpath_var=LD_LIBRARY_PATH
12043 shlibpath_overrides_runpath=yes
12044 hardcode_into_libs=yes
12045 if test yes = "$with_gnu_ld"; then
12046 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12047 else
12048 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12049 case $host_os in
12050 sco3.2v5*)
12051 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12052 ;;
12053 esac
12054 fi
12055 sys_lib_dlsearch_path_spec='/usr/lib'
12056 ;;
12057
12058 tpf*)
12059 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12060 version_type=linux # correct to gnu/linux during the next big refactor
12061 need_lib_prefix=no
12062 need_version=no
12063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12064 shlibpath_var=LD_LIBRARY_PATH
12065 shlibpath_overrides_runpath=no
12066 hardcode_into_libs=yes
12067 ;;
12068
12069 uts4*)
12070 version_type=linux # correct to gnu/linux during the next big refactor
12071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12072 soname_spec='$libname$release$shared_ext$major'
12073 shlibpath_var=LD_LIBRARY_PATH
12074 ;;
12075
12076 *)
12077 dynamic_linker=no
12078 ;;
12079 esac
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12081 $as_echo "$dynamic_linker" >&6; }
12082 test no = "$dynamic_linker" && can_build_shared=no
12083
12084 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12085 if test yes = "$GCC"; then
12086 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12087 fi
12088
12089 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12090 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12091 fi
12092
12093 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12094 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12095 fi
12096
12097 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12098 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12099
12100 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12101 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12102
12103 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12104 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12203 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12204 hardcode_action=
12205 if test -n "$hardcode_libdir_flag_spec" ||
12206 test -n "$runpath_var" ||
12207 test yes = "$hardcode_automatic"; then
12208
12209 # We can hardcode non-existent directories.
12210 if test no != "$hardcode_direct" &&
12211 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12212 # have to relink, otherwise we might link with an installed library
12213 # when we should be linking with a yet-to-be-installed one
12214 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12215 test no != "$hardcode_minus_L"; then
12216 # Linking always hardcodes the temporary library directory.
12217 hardcode_action=relink
12218 else
12219 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12220 hardcode_action=immediate
12221 fi
12222 else
12223 # We cannot hardcode anything, or else we can only hardcode existing
12224 # directories.
12225 hardcode_action=unsupported
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12228 $as_echo "$hardcode_action" >&6; }
12229
12230 if test relink = "$hardcode_action" ||
12231 test yes = "$inherit_rpath"; then
12232 # Fast installation is not supported
12233 enable_fast_install=no
12234 elif test yes = "$shlibpath_overrides_runpath" ||
12235 test no = "$enable_shared"; then
12236 # Fast installation is not necessary
12237 enable_fast_install=needless
12238 fi
12239
12240
12241
12242
12243
12244
12245 if test yes != "$enable_dlopen"; then
12246 enable_dlopen=unknown
12247 enable_dlopen_self=unknown
12248 enable_dlopen_self_static=unknown
12249 else
12250 lt_cv_dlopen=no
12251 lt_cv_dlopen_libs=
12252
12253 case $host_os in
12254 beos*)
12255 lt_cv_dlopen=load_add_on
12256 lt_cv_dlopen_libs=
12257 lt_cv_dlopen_self=yes
12258 ;;
12259
12260 mingw* | pw32* | cegcc*)
12261 lt_cv_dlopen=LoadLibrary
12262 lt_cv_dlopen_libs=
12263 ;;
12264
12265 cygwin*)
12266 lt_cv_dlopen=dlopen
12267 lt_cv_dlopen_libs=
12268 ;;
12269
12270 darwin*)
12271 # if libdl is installed we need to link against it
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12273 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12274 if ${ac_cv_lib_dl_dlopen+:} false; then :
12275 $as_echo_n "(cached) " >&6
12276 else
12277 ac_check_lib_save_LIBS=$LIBS
12278 LIBS="-ldl $LIBS"
12279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12281
12282 /* Override any GCC internal prototype to avoid an error.
12283 Use char because int might match the return type of a GCC
12284 builtin and then its argument prototype would still apply. */
12285 #ifdef __cplusplus
12286 extern "C"
12287 #endif
12288 char dlopen ();
12289 int
12290 main ()
12291 {
12292 return dlopen ();
12293 ;
12294 return 0;
12295 }
12296 _ACEOF
12297 if ac_fn_c_try_link "$LINENO"; then :
12298 ac_cv_lib_dl_dlopen=yes
12299 else
12300 ac_cv_lib_dl_dlopen=no
12301 fi
12302 rm -f core conftest.err conftest.$ac_objext \
12303 conftest$ac_exeext conftest.$ac_ext
12304 LIBS=$ac_check_lib_save_LIBS
12305 fi
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12307 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12308 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12309 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12310 else
12311
12312 lt_cv_dlopen=dyld
12313 lt_cv_dlopen_libs=
12314 lt_cv_dlopen_self=yes
12315
12316 fi
12317
12318 ;;
12319
12320 tpf*)
12321 # Don't try to run any link tests for TPF. We know it's impossible
12322 # because TPF is a cross-compiler, and we know how we open DSOs.
12323 lt_cv_dlopen=dlopen
12324 lt_cv_dlopen_libs=
12325 lt_cv_dlopen_self=no
12326 ;;
12327
12328 *)
12329 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12330 if test "x$ac_cv_func_shl_load" = xyes; then :
12331 lt_cv_dlopen=shl_load
12332 else
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12334 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12335 if ${ac_cv_lib_dld_shl_load+:} false; then :
12336 $as_echo_n "(cached) " >&6
12337 else
12338 ac_check_lib_save_LIBS=$LIBS
12339 LIBS="-ldld $LIBS"
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h. */
12342
12343 /* Override any GCC internal prototype to avoid an error.
12344 Use char because int might match the return type of a GCC
12345 builtin and then its argument prototype would still apply. */
12346 #ifdef __cplusplus
12347 extern "C"
12348 #endif
12349 char shl_load ();
12350 int
12351 main ()
12352 {
12353 return shl_load ();
12354 ;
12355 return 0;
12356 }
12357 _ACEOF
12358 if ac_fn_c_try_link "$LINENO"; then :
12359 ac_cv_lib_dld_shl_load=yes
12360 else
12361 ac_cv_lib_dld_shl_load=no
12362 fi
12363 rm -f core conftest.err conftest.$ac_objext \
12364 conftest$ac_exeext conftest.$ac_ext
12365 LIBS=$ac_check_lib_save_LIBS
12366 fi
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12368 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12369 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12370 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12371 else
12372 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12373 if test "x$ac_cv_func_dlopen" = xyes; then :
12374 lt_cv_dlopen=dlopen
12375 else
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12377 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12378 if ${ac_cv_lib_dl_dlopen+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 ac_check_lib_save_LIBS=$LIBS
12382 LIBS="-ldl $LIBS"
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12385
12386 /* Override any GCC internal prototype to avoid an error.
12387 Use char because int might match the return type of a GCC
12388 builtin and then its argument prototype would still apply. */
12389 #ifdef __cplusplus
12390 extern "C"
12391 #endif
12392 char dlopen ();
12393 int
12394 main ()
12395 {
12396 return dlopen ();
12397 ;
12398 return 0;
12399 }
12400 _ACEOF
12401 if ac_fn_c_try_link "$LINENO"; then :
12402 ac_cv_lib_dl_dlopen=yes
12403 else
12404 ac_cv_lib_dl_dlopen=no
12405 fi
12406 rm -f core conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408 LIBS=$ac_check_lib_save_LIBS
12409 fi
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12411 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12412 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12413 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12414 else
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12416 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12417 if ${ac_cv_lib_svld_dlopen+:} false; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420 ac_check_lib_save_LIBS=$LIBS
12421 LIBS="-lsvld $LIBS"
12422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12423 /* end confdefs.h. */
12424
12425 /* Override any GCC internal prototype to avoid an error.
12426 Use char because int might match the return type of a GCC
12427 builtin and then its argument prototype would still apply. */
12428 #ifdef __cplusplus
12429 extern "C"
12430 #endif
12431 char dlopen ();
12432 int
12433 main ()
12434 {
12435 return dlopen ();
12436 ;
12437 return 0;
12438 }
12439 _ACEOF
12440 if ac_fn_c_try_link "$LINENO"; then :
12441 ac_cv_lib_svld_dlopen=yes
12442 else
12443 ac_cv_lib_svld_dlopen=no
12444 fi
12445 rm -f core conftest.err conftest.$ac_objext \
12446 conftest$ac_exeext conftest.$ac_ext
12447 LIBS=$ac_check_lib_save_LIBS
12448 fi
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12450 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12451 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12452 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12453 else
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12455 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12456 if ${ac_cv_lib_dld_dld_link+:} false; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459 ac_check_lib_save_LIBS=$LIBS
12460 LIBS="-ldld $LIBS"
12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h. */
12463
12464 /* Override any GCC internal prototype to avoid an error.
12465 Use char because int might match the return type of a GCC
12466 builtin and then its argument prototype would still apply. */
12467 #ifdef __cplusplus
12468 extern "C"
12469 #endif
12470 char dld_link ();
12471 int
12472 main ()
12473 {
12474 return dld_link ();
12475 ;
12476 return 0;
12477 }
12478 _ACEOF
12479 if ac_fn_c_try_link "$LINENO"; then :
12480 ac_cv_lib_dld_dld_link=yes
12481 else
12482 ac_cv_lib_dld_dld_link=no
12483 fi
12484 rm -f core conftest.err conftest.$ac_objext \
12485 conftest$ac_exeext conftest.$ac_ext
12486 LIBS=$ac_check_lib_save_LIBS
12487 fi
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12489 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12490 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12491 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12492 fi
12493
12494
12495 fi
12496
12497
12498 fi
12499
12500
12501 fi
12502
12503
12504 fi
12505
12506
12507 fi
12508
12509 ;;
12510 esac
12511
12512 if test no = "$lt_cv_dlopen"; then
12513 enable_dlopen=no
12514 else
12515 enable_dlopen=yes
12516 fi
12517
12518 case $lt_cv_dlopen in
12519 dlopen)
12520 save_CPPFLAGS=$CPPFLAGS
12521 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12522
12523 save_LDFLAGS=$LDFLAGS
12524 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12525
12526 save_LIBS=$LIBS
12527 LIBS="$lt_cv_dlopen_libs $LIBS"
12528
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12530 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12531 if ${lt_cv_dlopen_self+:} false; then :
12532 $as_echo_n "(cached) " >&6
12533 else
12534 if test yes = "$cross_compiling"; then :
12535 lt_cv_dlopen_self=cross
12536 else
12537 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12538 lt_status=$lt_dlunknown
12539 cat > conftest.$ac_ext <<_LT_EOF
12540 #line $LINENO "configure"
12541 #include "confdefs.h"
12542
12543 #if HAVE_DLFCN_H
12544 #include <dlfcn.h>
12545 #endif
12546
12547 #include <stdio.h>
12548
12549 #ifdef RTLD_GLOBAL
12550 # define LT_DLGLOBAL RTLD_GLOBAL
12551 #else
12552 # ifdef DL_GLOBAL
12553 # define LT_DLGLOBAL DL_GLOBAL
12554 # else
12555 # define LT_DLGLOBAL 0
12556 # endif
12557 #endif
12558
12559 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12560 find out it does not work in some platform. */
12561 #ifndef LT_DLLAZY_OR_NOW
12562 # ifdef RTLD_LAZY
12563 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12564 # else
12565 # ifdef DL_LAZY
12566 # define LT_DLLAZY_OR_NOW DL_LAZY
12567 # else
12568 # ifdef RTLD_NOW
12569 # define LT_DLLAZY_OR_NOW RTLD_NOW
12570 # else
12571 # ifdef DL_NOW
12572 # define LT_DLLAZY_OR_NOW DL_NOW
12573 # else
12574 # define LT_DLLAZY_OR_NOW 0
12575 # endif
12576 # endif
12577 # endif
12578 # endif
12579 #endif
12580
12581 /* When -fvisibility=hidden is used, assume the code has been annotated
12582 correspondingly for the symbols needed. */
12583 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12584 int fnord () __attribute__((visibility("default")));
12585 #endif
12586
12587 int fnord () { return 42; }
12588 int main ()
12589 {
12590 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12591 int status = $lt_dlunknown;
12592
12593 if (self)
12594 {
12595 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12596 else
12597 {
12598 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12599 else puts (dlerror ());
12600 }
12601 /* dlclose (self); */
12602 }
12603 else
12604 puts (dlerror ());
12605
12606 return status;
12607 }
12608 _LT_EOF
12609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12610 (eval $ac_link) 2>&5
12611 ac_status=$?
12612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12613 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12614 (./conftest; exit; ) >&5 2>/dev/null
12615 lt_status=$?
12616 case x$lt_status in
12617 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12618 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12619 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12620 esac
12621 else :
12622 # compilation failed
12623 lt_cv_dlopen_self=no
12624 fi
12625 fi
12626 rm -fr conftest*
12627
12628
12629 fi
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12631 $as_echo "$lt_cv_dlopen_self" >&6; }
12632
12633 if test yes = "$lt_cv_dlopen_self"; then
12634 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12636 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12637 if ${lt_cv_dlopen_self_static+:} false; then :
12638 $as_echo_n "(cached) " >&6
12639 else
12640 if test yes = "$cross_compiling"; then :
12641 lt_cv_dlopen_self_static=cross
12642 else
12643 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12644 lt_status=$lt_dlunknown
12645 cat > conftest.$ac_ext <<_LT_EOF
12646 #line $LINENO "configure"
12647 #include "confdefs.h"
12648
12649 #if HAVE_DLFCN_H
12650 #include <dlfcn.h>
12651 #endif
12652
12653 #include <stdio.h>
12654
12655 #ifdef RTLD_GLOBAL
12656 # define LT_DLGLOBAL RTLD_GLOBAL
12657 #else
12658 # ifdef DL_GLOBAL
12659 # define LT_DLGLOBAL DL_GLOBAL
12660 # else
12661 # define LT_DLGLOBAL 0
12662 # endif
12663 #endif
12664
12665 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12666 find out it does not work in some platform. */
12667 #ifndef LT_DLLAZY_OR_NOW
12668 # ifdef RTLD_LAZY
12669 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12670 # else
12671 # ifdef DL_LAZY
12672 # define LT_DLLAZY_OR_NOW DL_LAZY
12673 # else
12674 # ifdef RTLD_NOW
12675 # define LT_DLLAZY_OR_NOW RTLD_NOW
12676 # else
12677 # ifdef DL_NOW
12678 # define LT_DLLAZY_OR_NOW DL_NOW
12679 # else
12680 # define LT_DLLAZY_OR_NOW 0
12681 # endif
12682 # endif
12683 # endif
12684 # endif
12685 #endif
12686
12687 /* When -fvisibility=hidden is used, assume the code has been annotated
12688 correspondingly for the symbols needed. */
12689 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12690 int fnord () __attribute__((visibility("default")));
12691 #endif
12692
12693 int fnord () { return 42; }
12694 int main ()
12695 {
12696 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12697 int status = $lt_dlunknown;
12698
12699 if (self)
12700 {
12701 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12702 else
12703 {
12704 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12705 else puts (dlerror ());
12706 }
12707 /* dlclose (self); */
12708 }
12709 else
12710 puts (dlerror ());
12711
12712 return status;
12713 }
12714 _LT_EOF
12715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12716 (eval $ac_link) 2>&5
12717 ac_status=$?
12718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12719 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12720 (./conftest; exit; ) >&5 2>/dev/null
12721 lt_status=$?
12722 case x$lt_status in
12723 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12724 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12725 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12726 esac
12727 else :
12728 # compilation failed
12729 lt_cv_dlopen_self_static=no
12730 fi
12731 fi
12732 rm -fr conftest*
12733
12734
12735 fi
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12737 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12738 fi
12739
12740 CPPFLAGS=$save_CPPFLAGS
12741 LDFLAGS=$save_LDFLAGS
12742 LIBS=$save_LIBS
12743 ;;
12744 esac
12745
12746 case $lt_cv_dlopen_self in
12747 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12748 *) enable_dlopen_self=unknown ;;
12749 esac
12750
12751 case $lt_cv_dlopen_self_static in
12752 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12753 *) enable_dlopen_self_static=unknown ;;
12754 esac
12755 fi
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773 striplib=
12774 old_striplib=
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12776 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12777 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12778 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12779 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12781 $as_echo "yes" >&6; }
12782 else
12783 # FIXME - insert some real tests, host_os isn't really good enough
12784 case $host_os in
12785 darwin*)
12786 if test -n "$STRIP"; then
12787 striplib="$STRIP -x"
12788 old_striplib="$STRIP -S"
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12790 $as_echo "yes" >&6; }
12791 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12794 fi
12795 ;;
12796 *)
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798 $as_echo "no" >&6; }
12799 ;;
12800 esac
12801 fi
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814 # Report what library types will actually be built
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12816 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12818 $as_echo "$can_build_shared" >&6; }
12819
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12821 $as_echo_n "checking whether to build shared libraries... " >&6; }
12822 test no = "$can_build_shared" && enable_shared=no
12823
12824 # On AIX, shared libraries and static libraries use the same namespace, and
12825 # are all built from PIC.
12826 case $host_os in
12827 aix3*)
12828 test yes = "$enable_shared" && enable_static=no
12829 if test -n "$RANLIB"; then
12830 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12831 postinstall_cmds='$RANLIB $lib'
12832 fi
12833 ;;
12834
12835 aix[4-9]*)
12836 if test ia64 != "$host_cpu"; then
12837 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12838 yes,aix,yes) ;; # shared object as lib.so file only
12839 yes,svr4,*) ;; # shared object as lib.so archive member only
12840 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12841 esac
12842 fi
12843 ;;
12844 esac
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12846 $as_echo "$enable_shared" >&6; }
12847
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12849 $as_echo_n "checking whether to build static libraries... " >&6; }
12850 # Make sure either enable_shared or enable_static is yes.
12851 test yes = "$enable_shared" || enable_static=yes
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12853 $as_echo "$enable_static" >&6; }
12854
12855
12856
12857
12858 fi
12859 ac_ext=c
12860 ac_cpp='$CPP $CPPFLAGS'
12861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12864
12865 CC=$lt_save_CC
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881 ac_config_commands="$ac_config_commands libtool"
12882
12883
12884
12885
12886 # Only expand once:
12887
12888
12889
12890 LIBTOOL="$LIBTOOL --silent"
12891
12892
12893
12894 for ac_header in fcntl.h inttypes.h limits.h stddef.h stdint.h stdlib.h string.h unistd.h
12895 do :
12896 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12897 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12898 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12899 cat >>confdefs.h <<_ACEOF
12900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12901 _ACEOF
12902
12903 fi
12904
12905 done
12906
12907
12908 # Checks for typedefs, structures, and compiler characteristics.
12909 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
12910 case $ac_cv_c_int16_t in #(
12911 no|yes) ;; #(
12912 *)
12913
12914 cat >>confdefs.h <<_ACEOF
12915 #define int16_t $ac_cv_c_int16_t
12916 _ACEOF
12917 ;;
12918 esac
12919
12920 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
12921 case $ac_cv_c_int32_t in #(
12922 no|yes) ;; #(
12923 *)
12924
12925 cat >>confdefs.h <<_ACEOF
12926 #define int32_t $ac_cv_c_int32_t
12927 _ACEOF
12928 ;;
12929 esac
12930
12931 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
12932 case $ac_cv_c_int8_t in #(
12933 no|yes) ;; #(
12934 *)
12935
12936 cat >>confdefs.h <<_ACEOF
12937 #define int8_t $ac_cv_c_int8_t
12938 _ACEOF
12939 ;;
12940 esac
12941
12942 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12943 if test "x$ac_cv_type_off_t" = xyes; then :
12944
12945 else
12946
12947 cat >>confdefs.h <<_ACEOF
12948 #define off_t long int
12949 _ACEOF
12950
12951 fi
12952
12953 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12954 if test "x$ac_cv_type_size_t" = xyes; then :
12955
12956 else
12957
12958 cat >>confdefs.h <<_ACEOF
12959 #define size_t unsigned int
12960 _ACEOF
12961
12962 fi
12963
12964 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
12965 case $ac_cv_c_uint16_t in #(
12966 no|yes) ;; #(
12967 *)
12968
12969
12970 cat >>confdefs.h <<_ACEOF
12971 #define uint16_t $ac_cv_c_uint16_t
12972 _ACEOF
12973 ;;
12974 esac
12975
12976 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
12977 case $ac_cv_c_uint32_t in #(
12978 no|yes) ;; #(
12979 *)
12980
12981 $as_echo "#define _UINT32_T 1" >>confdefs.h
12982
12983
12984 cat >>confdefs.h <<_ACEOF
12985 #define uint32_t $ac_cv_c_uint32_t
12986 _ACEOF
12987 ;;
12988 esac
12989
12990 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
12991 case $ac_cv_c_uint64_t in #(
12992 no|yes) ;; #(
12993 *)
12994
12995 $as_echo "#define _UINT64_T 1" >>confdefs.h
12996
12997
12998 cat >>confdefs.h <<_ACEOF
12999 #define uint64_t $ac_cv_c_uint64_t
13000 _ACEOF
13001 ;;
13002 esac
13003
13004 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
13005 case $ac_cv_c_uint8_t in #(
13006 no|yes) ;; #(
13007 *)
13008
13009 $as_echo "#define _UINT8_T 1" >>confdefs.h
13010
13011
13012 cat >>confdefs.h <<_ACEOF
13013 #define uint8_t $ac_cv_c_uint8_t
13014 _ACEOF
13015 ;;
13016 esac
13017
13018
13019 # Checks for library functions.
13020 for ac_header in stdlib.h
13021 do :
13022 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13023 if test "x$ac_cv_header_stdlib_h" = xyes; then :
13024 cat >>confdefs.h <<_ACEOF
13025 #define HAVE_STDLIB_H 1
13026 _ACEOF
13027
13028 fi
13029
13030 done
13031
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13033 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13034 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
13035 $as_echo_n "(cached) " >&6
13036 else
13037 if test "$cross_compiling" = yes; then :
13038 ac_cv_func_malloc_0_nonnull=no
13039 else
13040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041 /* end confdefs.h. */
13042 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
13043 # include <stdlib.h>
13044 #else
13045 char *malloc ();
13046 #endif
13047
13048 int
13049 main ()
13050 {
13051 return ! malloc (0);
13052 ;
13053 return 0;
13054 }
13055 _ACEOF
13056 if ac_fn_c_try_run "$LINENO"; then :
13057 ac_cv_func_malloc_0_nonnull=yes
13058 else
13059 ac_cv_func_malloc_0_nonnull=no
13060 fi
13061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13062 conftest.$ac_objext conftest.beam conftest.$ac_ext
13063 fi
13064
13065 fi
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13067 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13068 if test $ac_cv_func_malloc_0_nonnull = yes; then :
13069
13070 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
13071
13072 else
13073 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
13074
13075 case " $LIBOBJS " in
13076 *" malloc.$ac_objext "* ) ;;
13077 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13078 ;;
13079 esac
13080
13081
13082 $as_echo "#define malloc rpl_malloc" >>confdefs.h
13083
13084 fi
13085
13086
13087 for ac_func in memset regcomp strcasecmp strdup strerror strncasecmp strndup strstr
13088 do :
13089 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13090 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13091 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13092 cat >>confdefs.h <<_ACEOF
13093 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13094 _ACEOF
13095
13096 fi
13097 done
13098
13099
13100 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
13101
13102
13103
13104
13105 ARCH=""
13106 LIBBURNIA_PKGCONFDIR="$libdir"/pkgconfig
13107
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target operating system" >&5
13109 $as_echo_n "checking target operating system... " >&6; }
13110
13111 LIBBURNIA_LDCONFIG_CMD="echo 'No ldconfig run performed. If needed, configure manually for:'"
13112 case $target in
13113 *-*-linux*)
13114 ARCH=linux
13115 LIBBURNIA_LDCONFIG_CMD=ldconfig
13116 ;;
13117 *-*-freebsd*)
13118 ARCH=freebsd
13119
13120 # This may later be overridden by configure --enable-libdir-pkgconfig
13121 LIBBURNIA_PKGCONFDIR=$(echo "$libdir" | sed 's/\/lib$/\/libdata/')/pkgconfig
13122 ;;
13123 *)
13124 ARCH=
13125 ;;
13126 esac
13127
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCH" >&5
13129 $as_echo "$ARCH" >&6; }
13130
13131
13132
13133
13134 if test x$GCC = xyes; then
13135 CFLAGS="$CFLAGS -std=c99 -g -pedantic -Wall"
13136 fi
13137 CFLAGS="$CFLAGS -DDEBUG"
13138
13139
13140
13141 ### for testing --enable-libdir-pkgconfig on Linux
13142 ### LIBBURNIA_PKGCONFDIR="$libdir"data/pkgconfig
13143
13144 if test "x$LIBBURNIA_PKGCONFDIR" = "x$libdir"/pkgconfig
13145 then
13146 dummy=dummy
13147 else
13148 # Check whether --enable-libdir-pkgconfig was given.
13149 if test "${enable_libdir_pkgconfig+set}" = set; then :
13150 enableval=$enable_libdir_pkgconfig;
13151 else
13152 enable_libdir_pkgconfig="no"
13153 fi
13154
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libdir-pkgconfig" >&5
13156 $as_echo_n "checking for --enable-libdir-pkgconfig... " >&6; }
13157 if test "x$enable_libdir_pkgconfig" = xyes
13158 then
13159 LIBBURNIA_PKGCONFDIR="$libdir"/pkgconfig
13160 fi
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libdir_pkgconfig" >&5
13162 $as_echo "$enable_libdir_pkgconfig" >&6; }
13163 fi
13164
13165 libburnia_pkgconfig_override="no"
13166 # Check whether --enable-pkgconfig-path was given.
13167 if test "${enable_pkgconfig_path+set}" = set; then :
13168 enableval=$enable_pkgconfig_path; libburnia_pkgconfig_override="yes"
13169 else
13170 enable_pkgconfig_path="none"
13171 fi
13172
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for overridden pkgconfig directory path" >&5
13174 $as_echo_n "checking for overridden pkgconfig directory path... " >&6; }
13175 if test "x$enable_pkgconfig_path" = xno
13176 then
13177 libburnia_pkgconfig_override="no"
13178 fi
13179 if test "x$enable_pkgconfig_path" = x -o "x$enable_pkgconfig_path" = xyes
13180 then
13181 libburnia_pkgconfig_override="invalid argument"
13182 fi
13183 if test "x$libburnia_pkgconfig_override" = xyes
13184 then
13185 LIBBURNIA_PKGCONFDIR="$enable_pkgconfig_path"
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBURNIA_PKGCONFDIR" >&5
13187 $as_echo "$LIBBURNIA_PKGCONFDIR" >&6; }
13188 else
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libburnia_pkgconfig_override" >&5
13190 $as_echo "$libburnia_pkgconfig_override" >&6; }
13191 fi
13192
13193
13194 ### AC_MSG_RESULT([LIBBURNIA_PKGCONFDIR = $LIBBURNIA_PKGCONFDIR])
13195
13196
13197
13198
13199
13200 ZLIB_DEF="-DLIBJTE_WITH_ZLIB"
13201
13202
13203 # Check whether --enable-libbz2 was given.
13204 if test "${enable_libbz2+set}" = set; then :
13205 enableval=$enable_libbz2;
13206 else
13207 enable_libbz2=yes
13208 fi
13209
13210 if test "x$enable_libbz2" = xyes; then
13211 BZIP2_DEF="-DLIBJTE_WITH_LIBBZ2"
13212 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
13213 if test "x$ac_cv_header_bzlib_h" = xyes; then :
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
13215 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
13216 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
13217 $as_echo_n "(cached) " >&6
13218 else
13219 ac_check_lib_save_LIBS=$LIBS
13220 LIBS="-lbz2 $LIBS"
13221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h. */
13223
13224 /* Override any GCC internal prototype to avoid an error.
13225 Use char because int might match the return type of a GCC
13226 builtin and then its argument prototype would still apply. */
13227 #ifdef __cplusplus
13228 extern "C"
13229 #endif
13230 char BZ2_bzCompressInit ();
13231 int
13232 main ()
13233 {
13234 return BZ2_bzCompressInit ();
13235 ;
13236 return 0;
13237 }
13238 _ACEOF
13239 if ac_fn_c_try_link "$LINENO"; then :
13240 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
13241 else
13242 ac_cv_lib_bz2_BZ2_bzCompressInit=no
13243 fi
13244 rm -f core conftest.err conftest.$ac_objext \
13245 conftest$ac_exeext conftest.$ac_ext
13246 LIBS=$ac_check_lib_save_LIBS
13247 fi
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
13249 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
13250 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
13251 cat >>confdefs.h <<_ACEOF
13252 #define HAVE_LIBBZ2 1
13253 _ACEOF
13254
13255 LIBS="-lbz2 $LIBS"
13256
13257 else
13258 BZIP2_DEF=
13259 fi
13260
13261 else
13262 BZIP2_DEF=
13263 fi
13264
13265
13266 else
13267 BZIP2_DEF=
13268 fi
13269
13270
13271 # Check whether --enable-pthreads was given.
13272 if test "${enable_pthreads+set}" = set; then :
13273 enableval=$enable_pthreads;
13274 else
13275 enable_pthreads=yes
13276 fi
13277
13278 if test "x$enable_pthreads" = xyes; then
13279 PTHREADS_DEF="-DTHREADED_CHECKSUMS"
13280 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13281 if test "x$ac_cv_header_pthread_h" = xyes; then :
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13283 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13284 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
13285 $as_echo_n "(cached) " >&6
13286 else
13287 ac_check_lib_save_LIBS=$LIBS
13288 LIBS="-lpthread $LIBS"
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h. */
13291
13292 /* Override any GCC internal prototype to avoid an error.
13293 Use char because int might match the return type of a GCC
13294 builtin and then its argument prototype would still apply. */
13295 #ifdef __cplusplus
13296 extern "C"
13297 #endif
13298 char pthread_create ();
13299 int
13300 main ()
13301 {
13302 return pthread_create ();
13303 ;
13304 return 0;
13305 }
13306 _ACEOF
13307 if ac_fn_c_try_link "$LINENO"; then :
13308 ac_cv_lib_pthread_pthread_create=yes
13309 else
13310 ac_cv_lib_pthread_pthread_create=no
13311 fi
13312 rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext
13314 LIBS=$ac_check_lib_save_LIBS
13315 fi
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13317 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13318 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
13319 cat >>confdefs.h <<_ACEOF
13320 #define HAVE_LIBPTHREAD 1
13321 _ACEOF
13322
13323 LIBS="-lpthread $LIBS"
13324
13325 else
13326 PTHREADS_DEF=
13327 fi
13328
13329 else
13330 PTHREADS_DEF=
13331 fi
13332
13333
13334 else
13335 PTHREADS_DEF=
13336 fi
13337
13338
13339 # Library versioning normally serves a complex purpose.
13340 # Since libjte obeys strict ABI backward compatibility, it needs only the
13341 # simple feature to declare function names "global:" or "local:". Only the
13342 # global ones are visible to applications at library load time.
13343 # Check whether --enable-versioned-libs was given.
13344 if test "${enable_versioned_libs+set}" = set; then :
13345 enableval=$enable_versioned_libs;
13346 else
13347 enable_versioned_libs=yes
13348 fi
13349
13350 if test x$enable_versioned_libs = xyes; then
13351 vers_libs_test=no
13352
13353 libburnia_save_LDFLAGS="$LDFLAGS"
13354 LDFLAGS="$LDFLAGS -Wl,--version-script=libjte.ver"
13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h. */
13357 #include <stdio.h>
13358 int
13359 main ()
13360 {
13361 printf("Hello\n");
13362 ;
13363 return 0;
13364 }
13365 _ACEOF
13366 if ac_fn_c_try_link "$LINENO"; then :
13367 vers_libs_test="yes"
13368 else
13369 vers_libs_test="no"
13370 fi
13371 rm -f core conftest.err conftest.$ac_objext \
13372 conftest$ac_exeext conftest.$ac_ext
13373 if test x$vers_libs_test = xno
13374 then
13375 LDFLAGS="$libburnia_save_LDFLAGS"
13376 fi
13377
13378 if test x$vers_libs_test = xno
13379 then
13380 echo "disabled strict symbol encapsulation (test failed)"
13381 else
13382 echo "enabled strict symbol encapsulation"
13383 fi
13384 else
13385 echo "disabled strict symbol encapsulation"
13386 fi
13387
13388 # Check whether --enable-ldconfig-at-install was given.
13389 if test "${enable_ldconfig_at_install+set}" = set; then :
13390 enableval=$enable_ldconfig_at_install;
13391 else
13392 ldconfig_at_install=yes
13393 fi
13394
13395 if test x$ldconfig_at_install = xyes; then
13396 dummy=dummy
13397 else
13398 LIBBURNIA_LDCONFIG_CMD="echo 'NOTE: ldconfig is disabled. If needed, configure manually for:'"
13399 echo "disabled run of ldconfig during installation on GNU/Linux"
13400 fi
13401
13402
13403 ac_config_files="$ac_config_files Makefile version.h libjte-2.pc"
13404
13405 cat >confcache <<\_ACEOF
13406 # This file is a shell script that caches the results of configure
13407 # tests run on this system so they can be shared between configure
13408 # scripts and configure runs, see configure's option --config-cache.
13409 # It is not useful on other systems. If it contains results you don't
13410 # want to keep, you may remove or edit it.
13411 #
13412 # config.status only pays attention to the cache file if you give it
13413 # the --recheck option to rerun configure.
13414 #
13415 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13416 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13417 # following values.
13418
13419 _ACEOF
13420
13421 # The following way of writing the cache mishandles newlines in values,
13422 # but we know of no workaround that is simple, portable, and efficient.
13423 # So, we kill variables containing newlines.
13424 # Ultrix sh set writes to stderr and can't be redirected directly,
13425 # and sets the high bit in the cache file unless we assign to the vars.
13426 (
13427 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13428 eval ac_val=\$$ac_var
13429 case $ac_val in #(
13430 *${as_nl}*)
13431 case $ac_var in #(
13432 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13433 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13434 esac
13435 case $ac_var in #(
13436 _ | IFS | as_nl) ;; #(
13437 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13438 *) { eval $ac_var=; unset $ac_var;} ;;
13439 esac ;;
13440 esac
13441 done
13442
13443 (set) 2>&1 |
13444 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13445 *${as_nl}ac_space=\ *)
13446 # `set' does not quote correctly, so add quotes: double-quote
13447 # substitution turns \\\\ into \\, and sed turns \\ into \.
13448 sed -n \
13449 "s/'/'\\\\''/g;
13450 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13451 ;; #(
13452 *)
13453 # `set' quotes correctly as required by POSIX, so do not add quotes.
13454 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13455 ;;
13456 esac |
13457 sort
13458 ) |
13459 sed '
13460 /^ac_cv_env_/b end
13461 t clear
13462 :clear
13463 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13464 t end
13465 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13466 :end' >>confcache
13467 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13468 if test -w "$cache_file"; then
13469 if test "x$cache_file" != "x/dev/null"; then
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13471 $as_echo "$as_me: updating cache $cache_file" >&6;}
13472 if test ! -f "$cache_file" || test -h "$cache_file"; then
13473 cat confcache >"$cache_file"
13474 else
13475 case $cache_file in #(
13476 */* | ?:*)
13477 mv -f confcache "$cache_file"$$ &&
13478 mv -f "$cache_file"$$ "$cache_file" ;; #(
13479 *)
13480 mv -f confcache "$cache_file" ;;
13481 esac
13482 fi
13483 fi
13484 else
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13486 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13487 fi
13488 fi
13489 rm -f confcache
13490
13491 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13492 # Let make expand exec_prefix.
13493 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13494
13495 # Transform confdefs.h into DEFS.
13496 # Protect against shell expansion while executing Makefile rules.
13497 # Protect against Makefile macro expansion.
13498 #
13499 # If the first sed substitution is executed (which looks for macros that
13500 # take arguments), then branch to the quote section. Otherwise,
13501 # look for a macro that doesn't take arguments.
13502 ac_script='
13503 :mline
13504 /\\$/{
13505 N
13506 s,\\\n,,
13507 b mline
13508 }
13509 t clear
13510 :clear
13511 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13512 t quote
13513 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13514 t quote
13515 b any
13516 :quote
13517 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13518 s/\[/\\&/g
13519 s/\]/\\&/g
13520 s/\$/$$/g
13521 H
13522 :any
13523 ${
13524 g
13525 s/^\n//
13526 s/\n/ /g
13527 p
13528 }
13529 '
13530 DEFS=`sed -n "$ac_script" confdefs.h`
13531
13532
13533 ac_libobjs=
13534 ac_ltlibobjs=
13535 U=
13536 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13537 # 1. Remove the extension, and $U if already installed.
13538 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13539 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13540 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13541 # will be set to the directory where LIBOBJS objects are built.
13542 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13543 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13544 done
13545 LIBOBJS=$ac_libobjs
13546
13547 LTLIBOBJS=$ac_ltlibobjs
13548
13549
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13551 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13552 if test -n "$am_sleep_pid"; then
13553 # Hide warnings about reused PIDs.
13554 wait $am_sleep_pid 2>/dev/null
13555 fi
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13557 $as_echo "done" >&6; }
13558 if test -n "$EXEEXT"; then
13559 am__EXEEXT_TRUE=
13560 am__EXEEXT_FALSE='#'
13561 else
13562 am__EXEEXT_TRUE='#'
13563 am__EXEEXT_FALSE=
13564 fi
13565
13566 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13567 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13569 fi
13570 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13571 as_fn_error $? "conditional \"AMDEP\" was never defined.
13572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13573 fi
13574 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13575 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13577 fi
13578
13579
13580 : "${CONFIG_STATUS=./config.status}"
13581 ac_write_fail=0
13582 ac_clean_files_save=$ac_clean_files
13583 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13585 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13586 as_write_fail=0
13587 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13588 #! $SHELL
13589 # Generated by $as_me.
13590 # Run this file to recreate the current configuration.
13591 # Compiler output produced by configure, useful for debugging
13592 # configure, is in config.log if it exists.
13593
13594 debug=false
13595 ac_cs_recheck=false
13596 ac_cs_silent=false
13597
13598 SHELL=\${CONFIG_SHELL-$SHELL}
13599 export SHELL
13600 _ASEOF
13601 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13602 ## -------------------- ##
13603 ## M4sh Initialization. ##
13604 ## -------------------- ##
13605
13606 # Be more Bourne compatible
13607 DUALCASE=1; export DUALCASE # for MKS sh
13608 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13609 emulate sh
13610 NULLCMD=:
13611 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13612 # is contrary to our usage. Disable this feature.
13613 alias -g '${1+"$@"}'='"$@"'
13614 setopt NO_GLOB_SUBST
13615 else
13616 case `(set -o) 2>/dev/null` in #(
13617 *posix*) :
13618 set -o posix ;; #(
13619 *) :
13620 ;;
13621 esac
13622 fi
13623
13624
13625 as_nl='
13626 '
13627 export as_nl
13628 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13629 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13630 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13631 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13632 # Prefer a ksh shell builtin over an external printf program on Solaris,
13633 # but without wasting forks for bash or zsh.
13634 if test -z "$BASH_VERSION$ZSH_VERSION" \
13635 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13636 as_echo='print -r --'
13637 as_echo_n='print -rn --'
13638 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13639 as_echo='printf %s\n'
13640 as_echo_n='printf %s'
13641 else
13642 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13643 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13644 as_echo_n='/usr/ucb/echo -n'
13645 else
13646 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13647 as_echo_n_body='eval
13648 arg=$1;
13649 case $arg in #(
13650 *"$as_nl"*)
13651 expr "X$arg" : "X\\(.*\\)$as_nl";
13652 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13653 esac;
13654 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13655 '
13656 export as_echo_n_body
13657 as_echo_n='sh -c $as_echo_n_body as_echo'
13658 fi
13659 export as_echo_body
13660 as_echo='sh -c $as_echo_body as_echo'
13661 fi
13662
13663 # The user is always right.
13664 if test "${PATH_SEPARATOR+set}" != set; then
13665 PATH_SEPARATOR=:
13666 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13667 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13668 PATH_SEPARATOR=';'
13669 }
13670 fi
13671
13672
13673 # IFS
13674 # We need space, tab and new line, in precisely that order. Quoting is
13675 # there to prevent editors from complaining about space-tab.
13676 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13677 # splitting by setting IFS to empty value.)
13678 IFS=" "" $as_nl"
13679
13680 # Find who we are. Look in the path if we contain no directory separator.
13681 as_myself=
13682 case $0 in #((
13683 *[\\/]* ) as_myself=$0 ;;
13684 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13685 for as_dir in $PATH
13686 do
13687 IFS=$as_save_IFS
13688 test -z "$as_dir" && as_dir=.
13689 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13690 done
13691 IFS=$as_save_IFS
13692
13693 ;;
13694 esac
13695 # We did not find ourselves, most probably we were run as `sh COMMAND'
13696 # in which case we are not to be found in the path.
13697 if test "x$as_myself" = x; then
13698 as_myself=$0
13699 fi
13700 if test ! -f "$as_myself"; then
13701 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13702 exit 1
13703 fi
13704
13705 # Unset variables that we do not need and which cause bugs (e.g. in
13706 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13707 # suppresses any "Segmentation fault" message there. '((' could
13708 # trigger a bug in pdksh 5.2.14.
13709 for as_var in BASH_ENV ENV MAIL MAILPATH
13710 do eval test x\${$as_var+set} = xset \
13711 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13712 done
13713 PS1='$ '
13714 PS2='> '
13715 PS4='+ '
13716
13717 # NLS nuisances.
13718 LC_ALL=C
13719 export LC_ALL
13720 LANGUAGE=C
13721 export LANGUAGE
13722
13723 # CDPATH.
13724 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13725
13726
13727 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13728 # ----------------------------------------
13729 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13730 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13731 # script with STATUS, using 1 if that was 0.
13732 as_fn_error ()
13733 {
13734 as_status=$1; test $as_status -eq 0 && as_status=1
13735 if test "$4"; then
13736 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13737 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13738 fi
13739 $as_echo "$as_me: error: $2" >&2
13740 as_fn_exit $as_status
13741 } # as_fn_error
13742
13743
13744 # as_fn_set_status STATUS
13745 # -----------------------
13746 # Set $? to STATUS, without forking.
13747 as_fn_set_status ()
13748 {
13749 return $1
13750 } # as_fn_set_status
13751
13752 # as_fn_exit STATUS
13753 # -----------------
13754 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13755 as_fn_exit ()
13756 {
13757 set +e
13758 as_fn_set_status $1
13759 exit $1
13760 } # as_fn_exit
13761
13762 # as_fn_unset VAR
13763 # ---------------
13764 # Portably unset VAR.
13765 as_fn_unset ()
13766 {
13767 { eval $1=; unset $1;}
13768 }
13769 as_unset=as_fn_unset
13770 # as_fn_append VAR VALUE
13771 # ----------------------
13772 # Append the text in VALUE to the end of the definition contained in VAR. Take
13773 # advantage of any shell optimizations that allow amortized linear growth over
13774 # repeated appends, instead of the typical quadratic growth present in naive
13775 # implementations.
13776 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13777 eval 'as_fn_append ()
13778 {
13779 eval $1+=\$2
13780 }'
13781 else
13782 as_fn_append ()
13783 {
13784 eval $1=\$$1\$2
13785 }
13786 fi # as_fn_append
13787
13788 # as_fn_arith ARG...
13789 # ------------------
13790 # Perform arithmetic evaluation on the ARGs, and store the result in the
13791 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13792 # must be portable across $(()) and expr.
13793 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13794 eval 'as_fn_arith ()
13795 {
13796 as_val=$(( $* ))
13797 }'
13798 else
13799 as_fn_arith ()
13800 {
13801 as_val=`expr "$@" || test $? -eq 1`
13802 }
13803 fi # as_fn_arith
13804
13805
13806 if expr a : '\(a\)' >/dev/null 2>&1 &&
13807 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13808 as_expr=expr
13809 else
13810 as_expr=false
13811 fi
13812
13813 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13814 as_basename=basename
13815 else
13816 as_basename=false
13817 fi
13818
13819 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13820 as_dirname=dirname
13821 else
13822 as_dirname=false
13823 fi
13824
13825 as_me=`$as_basename -- "$0" ||
13826 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13827 X"$0" : 'X\(//\)$' \| \
13828 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13829 $as_echo X/"$0" |
13830 sed '/^.*\/\([^/][^/]*\)\/*$/{
13831 s//\1/
13832 q
13833 }
13834 /^X\/\(\/\/\)$/{
13835 s//\1/
13836 q
13837 }
13838 /^X\/\(\/\).*/{
13839 s//\1/
13840 q
13841 }
13842 s/.*/./; q'`
13843
13844 # Avoid depending upon Character Ranges.
13845 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13846 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13847 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13848 as_cr_digits='0123456789'
13849 as_cr_alnum=$as_cr_Letters$as_cr_digits
13850
13851 ECHO_C= ECHO_N= ECHO_T=
13852 case `echo -n x` in #(((((
13853 -n*)
13854 case `echo 'xy\c'` in
13855 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13856 xy) ECHO_C='\c';;
13857 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13858 ECHO_T=' ';;
13859 esac;;
13860 *)
13861 ECHO_N='-n';;
13862 esac
13863
13864 rm -f conf$$ conf$$.exe conf$$.file
13865 if test -d conf$$.dir; then
13866 rm -f conf$$.dir/conf$$.file
13867 else
13868 rm -f conf$$.dir
13869 mkdir conf$$.dir 2>/dev/null
13870 fi
13871 if (echo >conf$$.file) 2>/dev/null; then
13872 if ln -s conf$$.file conf$$ 2>/dev/null; then
13873 as_ln_s='ln -s'
13874 # ... but there are two gotchas:
13875 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13876 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13877 # In both cases, we have to default to `cp -pR'.
13878 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13879 as_ln_s='cp -pR'
13880 elif ln conf$$.file conf$$ 2>/dev/null; then
13881 as_ln_s=ln
13882 else
13883 as_ln_s='cp -pR'
13884 fi
13885 else
13886 as_ln_s='cp -pR'
13887 fi
13888 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13889 rmdir conf$$.dir 2>/dev/null
13890
13891
13892 # as_fn_mkdir_p
13893 # -------------
13894 # Create "$as_dir" as a directory, including parents if necessary.
13895 as_fn_mkdir_p ()
13896 {
13897
13898 case $as_dir in #(
13899 -*) as_dir=./$as_dir;;
13900 esac
13901 test -d "$as_dir" || eval $as_mkdir_p || {
13902 as_dirs=
13903 while :; do
13904 case $as_dir in #(
13905 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13906 *) as_qdir=$as_dir;;
13907 esac
13908 as_dirs="'$as_qdir' $as_dirs"
13909 as_dir=`$as_dirname -- "$as_dir" ||
13910 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13911 X"$as_dir" : 'X\(//\)[^/]' \| \
13912 X"$as_dir" : 'X\(//\)$' \| \
13913 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13914 $as_echo X"$as_dir" |
13915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13916 s//\1/
13917 q
13918 }
13919 /^X\(\/\/\)[^/].*/{
13920 s//\1/
13921 q
13922 }
13923 /^X\(\/\/\)$/{
13924 s//\1/
13925 q
13926 }
13927 /^X\(\/\).*/{
13928 s//\1/
13929 q
13930 }
13931 s/.*/./; q'`
13932 test -d "$as_dir" && break
13933 done
13934 test -z "$as_dirs" || eval "mkdir $as_dirs"
13935 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13936
13937
13938 } # as_fn_mkdir_p
13939 if mkdir -p . 2>/dev/null; then
13940 as_mkdir_p='mkdir -p "$as_dir"'
13941 else
13942 test -d ./-p && rmdir ./-p
13943 as_mkdir_p=false
13944 fi
13945
13946
13947 # as_fn_executable_p FILE
13948 # -----------------------
13949 # Test if FILE is an executable regular file.
13950 as_fn_executable_p ()
13951 {
13952 test -f "$1" && test -x "$1"
13953 } # as_fn_executable_p
13954 as_test_x='test -x'
13955 as_executable_p=as_fn_executable_p
13956
13957 # Sed expression to map a string onto a valid CPP name.
13958 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13959
13960 # Sed expression to map a string onto a valid variable name.
13961 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13962
13963
13964 exec 6>&1
13965 ## ----------------------------------- ##
13966 ## Main body of $CONFIG_STATUS script. ##
13967 ## ----------------------------------- ##
13968 _ASEOF
13969 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13970
13971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13972 # Save the log message, to keep $0 and so on meaningful, and to
13973 # report actual input values of CONFIG_FILES etc. instead of their
13974 # values after options handling.
13975 ac_log="
13976 This file was extended by libjte $as_me 2.0.0, which was
13977 generated by GNU Autoconf 2.69. Invocation command line was
13978
13979 CONFIG_FILES = $CONFIG_FILES
13980 CONFIG_HEADERS = $CONFIG_HEADERS
13981 CONFIG_LINKS = $CONFIG_LINKS
13982 CONFIG_COMMANDS = $CONFIG_COMMANDS
13983 $ $0 $@
13984
13985 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13986 "
13987
13988 _ACEOF
13989
13990 case $ac_config_files in *"
13991 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13992 esac
13993
13994
13995
13996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13997 # Files that config.status was made for.
13998 config_files="$ac_config_files"
13999 config_commands="$ac_config_commands"
14000
14001 _ACEOF
14002
14003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14004 ac_cs_usage="\
14005 \`$as_me' instantiates files and other configuration actions
14006 from templates according to the current configuration. Unless the files
14007 and actions are specified as TAGs, all are instantiated by default.
14008
14009 Usage: $0 [OPTION]... [TAG]...
14010
14011 -h, --help print this help, then exit
14012 -V, --version print version number and configuration settings, then exit
14013 --config print configuration, then exit
14014 -q, --quiet, --silent
14015 do not print progress messages
14016 -d, --debug don't remove temporary files
14017 --recheck update $as_me by reconfiguring in the same conditions
14018 --file=FILE[:TEMPLATE]
14019 instantiate the configuration file FILE
14020
14021 Configuration files:
14022 $config_files
14023
14024 Configuration commands:
14025 $config_commands
14026
14027 Report bugs to <https://www.einval.com/~steve/software/JTE/>."
14028
14029 _ACEOF
14030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14031 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14032 ac_cs_version="\\
14033 libjte config.status 2.0.0
14034 configured by $0, generated by GNU Autoconf 2.69,
14035 with options \\"\$ac_cs_config\\"
14036
14037 Copyright (C) 2012 Free Software Foundation, Inc.
14038 This config.status script is free software; the Free Software Foundation
14039 gives unlimited permission to copy, distribute and modify it."
14040
14041 ac_pwd='$ac_pwd'
14042 srcdir='$srcdir'
14043 INSTALL='$INSTALL'
14044 MKDIR_P='$MKDIR_P'
14045 AWK='$AWK'
14046 test -n "\$AWK" || AWK=awk
14047 _ACEOF
14048
14049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14050 # The default lists apply if the user does not specify any file.
14051 ac_need_defaults=:
14052 while test $# != 0
14053 do
14054 case $1 in
14055 --*=?*)
14056 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14057 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14058 ac_shift=:
14059 ;;
14060 --*=)
14061 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14062 ac_optarg=
14063 ac_shift=:
14064 ;;
14065 *)
14066 ac_option=$1
14067 ac_optarg=$2
14068 ac_shift=shift
14069 ;;
14070 esac
14071
14072 case $ac_option in
14073 # Handling of the options.
14074 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14075 ac_cs_recheck=: ;;
14076 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14077 $as_echo "$ac_cs_version"; exit ;;
14078 --config | --confi | --conf | --con | --co | --c )
14079 $as_echo "$ac_cs_config"; exit ;;
14080 --debug | --debu | --deb | --de | --d | -d )
14081 debug=: ;;
14082 --file | --fil | --fi | --f )
14083 $ac_shift
14084 case $ac_optarg in
14085 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14086 '') as_fn_error $? "missing file argument" ;;
14087 esac
14088 as_fn_append CONFIG_FILES " '$ac_optarg'"
14089 ac_need_defaults=false;;
14090 --he | --h | --help | --hel | -h )
14091 $as_echo "$ac_cs_usage"; exit ;;
14092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14093 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14094 ac_cs_silent=: ;;
14095
14096 # This is an error.
14097 -*) as_fn_error $? "unrecognized option: \`$1'
14098 Try \`$0 --help' for more information." ;;
14099
14100 *) as_fn_append ac_config_targets " $1"
14101 ac_need_defaults=false ;;
14102
14103 esac
14104 shift
14105 done
14106
14107 ac_configure_extra_args=
14108
14109 if $ac_cs_silent; then
14110 exec 6>/dev/null
14111 ac_configure_extra_args="$ac_configure_extra_args --silent"
14112 fi
14113
14114 _ACEOF
14115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14116 if \$ac_cs_recheck; then
14117 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14118 shift
14119 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14120 CONFIG_SHELL='$SHELL'
14121 export CONFIG_SHELL
14122 exec "\$@"
14123 fi
14124
14125 _ACEOF
14126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14127 exec 5>>config.log
14128 {
14129 echo
14130 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14131 ## Running $as_me. ##
14132 _ASBOX
14133 $as_echo "$ac_log"
14134 } >&5
14135
14136 _ACEOF
14137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14138 #
14139 # INIT-COMMANDS
14140 #
14141 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14142
14143
14144 # The HP-UX ksh and POSIX shell print the target directory to stdout
14145 # if CDPATH is set.
14146 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14147
14148 sed_quote_subst='$sed_quote_subst'
14149 double_quote_subst='$double_quote_subst'
14150 delay_variable_subst='$delay_variable_subst'
14151 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14152 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14153 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14154 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14155 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14156 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14157 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14158 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14159 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14160 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14161 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14162 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14163 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14164 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14165 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14166 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14167 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14168 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14169 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14170 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14171 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14172 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14173 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14174 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14175 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14176 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14177 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14178 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14179 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14180 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14181 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14182 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14183 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14184 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14185 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14186 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14187 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14188 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14189 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14190 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14191 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14192 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14193 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14194 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14195 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14196 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14197 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14198 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14199 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14200 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14201 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14202 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14203 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14204 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14205 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14206 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14207 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14208 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14209 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"`'
14210 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14211 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14212 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14213 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14214 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14215 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14216 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14217 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14218 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14219 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14220 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14221 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14222 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14223 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14224 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14225 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14226 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14227 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14228 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14229 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14230 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14231 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14232 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14233 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14234 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14235 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14236 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14237 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14238 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14239 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14240 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14241 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14242 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14243 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14244 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14245 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14246 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14247 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14248 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14249 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14250 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14251 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14252 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14253 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14254 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14255 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14256 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14257 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14258 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14259 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14260 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14261 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14262 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14263 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14264 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14265 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14266 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14267 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14268 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14269 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14270 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14271 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14272 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14273 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14274 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14275 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14276 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14277 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14278 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14279 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14280 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14281 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14282 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14283 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14284 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14285 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14286
14287 LTCC='$LTCC'
14288 LTCFLAGS='$LTCFLAGS'
14289 compiler='$compiler_DEFAULT'
14290
14291 # A function that is used when there is no print builtin or printf.
14292 func_fallback_echo ()
14293 {
14294 eval 'cat <<_LTECHO_EOF
14295 \$1
14296 _LTECHO_EOF'
14297 }
14298
14299 # Quote evaled strings.
14300 for var in SHELL \
14301 ECHO \
14302 PATH_SEPARATOR \
14303 SED \
14304 GREP \
14305 EGREP \
14306 FGREP \
14307 LD \
14308 NM \
14309 LN_S \
14310 lt_SP2NL \
14311 lt_NL2SP \
14312 reload_flag \
14313 OBJDUMP \
14314 deplibs_check_method \
14315 file_magic_cmd \
14316 file_magic_glob \
14317 want_nocaseglob \
14318 DLLTOOL \
14319 sharedlib_from_linklib_cmd \
14320 AR \
14321 AR_FLAGS \
14322 archiver_list_spec \
14323 STRIP \
14324 RANLIB \
14325 CC \
14326 CFLAGS \
14327 compiler \
14328 lt_cv_sys_global_symbol_pipe \
14329 lt_cv_sys_global_symbol_to_cdecl \
14330 lt_cv_sys_global_symbol_to_import \
14331 lt_cv_sys_global_symbol_to_c_name_address \
14332 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14333 lt_cv_nm_interface \
14334 nm_file_list_spec \
14335 lt_cv_truncate_bin \
14336 lt_prog_compiler_no_builtin_flag \
14337 lt_prog_compiler_pic \
14338 lt_prog_compiler_wl \
14339 lt_prog_compiler_static \
14340 lt_cv_prog_compiler_c_o \
14341 need_locks \
14342 MANIFEST_TOOL \
14343 DSYMUTIL \
14344 NMEDIT \
14345 LIPO \
14346 OTOOL \
14347 OTOOL64 \
14348 shrext_cmds \
14349 export_dynamic_flag_spec \
14350 whole_archive_flag_spec \
14351 compiler_needs_object \
14352 with_gnu_ld \
14353 allow_undefined_flag \
14354 no_undefined_flag \
14355 hardcode_libdir_flag_spec \
14356 hardcode_libdir_separator \
14357 exclude_expsyms \
14358 include_expsyms \
14359 file_list_spec \
14360 variables_saved_for_relink \
14361 libname_spec \
14362 library_names_spec \
14363 soname_spec \
14364 install_override_mode \
14365 finish_eval \
14366 old_striplib \
14367 striplib; do
14368 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14369 *[\\\\\\\`\\"\\\$]*)
14370 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14371 ;;
14372 *)
14373 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14374 ;;
14375 esac
14376 done
14377
14378 # Double-quote double-evaled strings.
14379 for var in reload_cmds \
14380 old_postinstall_cmds \
14381 old_postuninstall_cmds \
14382 old_archive_cmds \
14383 extract_expsyms_cmds \
14384 old_archive_from_new_cmds \
14385 old_archive_from_expsyms_cmds \
14386 archive_cmds \
14387 archive_expsym_cmds \
14388 module_cmds \
14389 module_expsym_cmds \
14390 export_symbols_cmds \
14391 prelink_cmds \
14392 postlink_cmds \
14393 postinstall_cmds \
14394 postuninstall_cmds \
14395 finish_cmds \
14396 sys_lib_search_path_spec \
14397 configure_time_dlsearch_path \
14398 configure_time_lt_sys_library_path; do
14399 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14400 *[\\\\\\\`\\"\\\$]*)
14401 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14402 ;;
14403 *)
14404 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14405 ;;
14406 esac
14407 done
14408
14409 ac_aux_dir='$ac_aux_dir'
14410
14411 # See if we are running on zsh, and set the options that allow our
14412 # commands through without removal of \ escapes INIT.
14413 if test -n "\${ZSH_VERSION+set}"; then
14414 setopt NO_GLOB_SUBST
14415 fi
14416
14417
14418 PACKAGE='$PACKAGE'
14419 VERSION='$VERSION'
14420 RM='$RM'
14421 ofile='$ofile'
14422
14423
14424
14425
14426 _ACEOF
14427
14428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14429
14430 # Handling of arguments.
14431 for ac_config_target in $ac_config_targets
14432 do
14433 case $ac_config_target in
14434 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14435 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14436 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14437 "version.h") CONFIG_FILES="$CONFIG_FILES version.h" ;;
14438 "libjte-2.pc") CONFIG_FILES="$CONFIG_FILES libjte-2.pc" ;;
14439
14440 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14441 esac
14442 done
14443
14444
14445 # If the user did not use the arguments to specify the items to instantiate,
14446 # then the envvar interface is used. Set only those that are not.
14447 # We use the long form for the default assignment because of an extremely
14448 # bizarre bug on SunOS 4.1.3.
14449 if $ac_need_defaults; then
14450 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14451 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14452 fi
14453
14454 # Have a temporary directory for convenience. Make it in the build tree
14455 # simply because there is no reason against having it here, and in addition,
14456 # creating and moving files from /tmp can sometimes cause problems.
14457 # Hook for its removal unless debugging.
14458 # Note that there is a small window in which the directory will not be cleaned:
14459 # after its creation but before its name has been assigned to `$tmp'.
14460 $debug ||
14461 {
14462 tmp= ac_tmp=
14463 trap 'exit_status=$?
14464 : "${ac_tmp:=$tmp}"
14465 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14466 ' 0
14467 trap 'as_fn_exit 1' 1 2 13 15
14468 }
14469 # Create a (secure) tmp directory for tmp files.
14470
14471 {
14472 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14473 test -d "$tmp"
14474 } ||
14475 {
14476 tmp=./conf$$-$RANDOM
14477 (umask 077 && mkdir "$tmp")
14478 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14479 ac_tmp=$tmp
14480
14481 # Set up the scripts for CONFIG_FILES section.
14482 # No need to generate them if there are no CONFIG_FILES.
14483 # This happens for instance with `./config.status config.h'.
14484 if test -n "$CONFIG_FILES"; then
14485
14486
14487 ac_cr=`echo X | tr X '\015'`
14488 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14489 # But we know of no other shell where ac_cr would be empty at this
14490 # point, so we can use a bashism as a fallback.
14491 if test "x$ac_cr" = x; then
14492 eval ac_cr=\$\'\\r\'
14493 fi
14494 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14495 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14496 ac_cs_awk_cr='\\r'
14497 else
14498 ac_cs_awk_cr=$ac_cr
14499 fi
14500
14501 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14502 _ACEOF
14503
14504
14505 {
14506 echo "cat >conf$$subs.awk <<_ACEOF" &&
14507 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14508 echo "_ACEOF"
14509 } >conf$$subs.sh ||
14510 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14511 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14512 ac_delim='%!_!# '
14513 for ac_last_try in false false false false false :; do
14514 . ./conf$$subs.sh ||
14515 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14516
14517 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14518 if test $ac_delim_n = $ac_delim_num; then
14519 break
14520 elif $ac_last_try; then
14521 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14522 else
14523 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14524 fi
14525 done
14526 rm -f conf$$subs.sh
14527
14528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14529 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14530 _ACEOF
14531 sed -n '
14532 h
14533 s/^/S["/; s/!.*/"]=/
14534 p
14535 g
14536 s/^[^!]*!//
14537 :repl
14538 t repl
14539 s/'"$ac_delim"'$//
14540 t delim
14541 :nl
14542 h
14543 s/\(.\{148\}\)..*/\1/
14544 t more1
14545 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14546 p
14547 n
14548 b repl
14549 :more1
14550 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14551 p
14552 g
14553 s/.\{148\}//
14554 t nl
14555 :delim
14556 h
14557 s/\(.\{148\}\)..*/\1/
14558 t more2
14559 s/["\\]/\\&/g; s/^/"/; s/$/"/
14560 p
14561 b
14562 :more2
14563 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14564 p
14565 g
14566 s/.\{148\}//
14567 t delim
14568 ' <conf$$subs.awk | sed '
14569 /^[^""]/{
14570 N
14571 s/\n//
14572 }
14573 ' >>$CONFIG_STATUS || ac_write_fail=1
14574 rm -f conf$$subs.awk
14575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14576 _ACAWK
14577 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14578 for (key in S) S_is_set[key] = 1
14579 FS = ""
14580
14581 }
14582 {
14583 line = $ 0
14584 nfields = split(line, field, "@")
14585 substed = 0
14586 len = length(field[1])
14587 for (i = 2; i < nfields; i++) {
14588 key = field[i]
14589 keylen = length(key)
14590 if (S_is_set[key]) {
14591 value = S[key]
14592 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14593 len += length(value) + length(field[++i])
14594 substed = 1
14595 } else
14596 len += 1 + keylen
14597 }
14598
14599 print line
14600 }
14601
14602 _ACAWK
14603 _ACEOF
14604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14605 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14606 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14607 else
14608 cat
14609 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14610 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14611 _ACEOF
14612
14613 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14614 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14615 # trailing colons and then remove the whole line if VPATH becomes empty
14616 # (actually we leave an empty line to preserve line numbers).
14617 if test "x$srcdir" = x.; then
14618 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14619 h
14620 s///
14621 s/^/:/
14622 s/[ ]*$/:/
14623 s/:\$(srcdir):/:/g
14624 s/:\${srcdir}:/:/g
14625 s/:@srcdir@:/:/g
14626 s/^:*//
14627 s/:*$//
14628 x
14629 s/\(=[ ]*\).*/\1/
14630 G
14631 s/\n//
14632 s/^[^=]*=[ ]*$//
14633 }'
14634 fi
14635
14636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14637 fi # test -n "$CONFIG_FILES"
14638
14639
14640 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
14641 shift
14642 for ac_tag
14643 do
14644 case $ac_tag in
14645 :[FHLC]) ac_mode=$ac_tag; continue;;
14646 esac
14647 case $ac_mode$ac_tag in
14648 :[FHL]*:*);;
14649 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14650 :[FH]-) ac_tag=-:-;;
14651 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14652 esac
14653 ac_save_IFS=$IFS
14654 IFS=:
14655 set x $ac_tag
14656 IFS=$ac_save_IFS
14657 shift
14658 ac_file=$1
14659 shift
14660
14661 case $ac_mode in
14662 :L) ac_source=$1;;
14663 :[FH])
14664 ac_file_inputs=
14665 for ac_f
14666 do
14667 case $ac_f in
14668 -) ac_f="$ac_tmp/stdin";;
14669 *) # Look for the file first in the build tree, then in the source tree
14670 # (if the path is not absolute). The absolute path cannot be DOS-style,
14671 # because $ac_f cannot contain `:'.
14672 test -f "$ac_f" ||
14673 case $ac_f in
14674 [\\/$]*) false;;
14675 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14676 esac ||
14677 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14678 esac
14679 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14680 as_fn_append ac_file_inputs " '$ac_f'"
14681 done
14682
14683 # Let's still pretend it is `configure' which instantiates (i.e., don't
14684 # use $as_me), people would be surprised to read:
14685 # /* config.h. Generated by config.status. */
14686 configure_input='Generated from '`
14687 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14688 `' by configure.'
14689 if test x"$ac_file" != x-; then
14690 configure_input="$ac_file. $configure_input"
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14692 $as_echo "$as_me: creating $ac_file" >&6;}
14693 fi
14694 # Neutralize special characters interpreted by sed in replacement strings.
14695 case $configure_input in #(
14696 *\&* | *\|* | *\\* )
14697 ac_sed_conf_input=`$as_echo "$configure_input" |
14698 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14699 *) ac_sed_conf_input=$configure_input;;
14700 esac
14701
14702 case $ac_tag in
14703 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14704 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14705 esac
14706 ;;
14707 esac
14708
14709 ac_dir=`$as_dirname -- "$ac_file" ||
14710 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14711 X"$ac_file" : 'X\(//\)[^/]' \| \
14712 X"$ac_file" : 'X\(//\)$' \| \
14713 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14714 $as_echo X"$ac_file" |
14715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14716 s//\1/
14717 q
14718 }
14719 /^X\(\/\/\)[^/].*/{
14720 s//\1/
14721 q
14722 }
14723 /^X\(\/\/\)$/{
14724 s//\1/
14725 q
14726 }
14727 /^X\(\/\).*/{
14728 s//\1/
14729 q
14730 }
14731 s/.*/./; q'`
14732 as_dir="$ac_dir"; as_fn_mkdir_p
14733 ac_builddir=.
14734
14735 case "$ac_dir" in
14736 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14737 *)
14738 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14739 # A ".." for each directory in $ac_dir_suffix.
14740 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14741 case $ac_top_builddir_sub in
14742 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14743 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14744 esac ;;
14745 esac
14746 ac_abs_top_builddir=$ac_pwd
14747 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14748 # for backward compatibility:
14749 ac_top_builddir=$ac_top_build_prefix
14750
14751 case $srcdir in
14752 .) # We are building in place.
14753 ac_srcdir=.
14754 ac_top_srcdir=$ac_top_builddir_sub
14755 ac_abs_top_srcdir=$ac_pwd ;;
14756 [\\/]* | ?:[\\/]* ) # Absolute name.
14757 ac_srcdir=$srcdir$ac_dir_suffix;
14758 ac_top_srcdir=$srcdir
14759 ac_abs_top_srcdir=$srcdir ;;
14760 *) # Relative name.
14761 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14762 ac_top_srcdir=$ac_top_build_prefix$srcdir
14763 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14764 esac
14765 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14766
14767
14768 case $ac_mode in
14769 :F)
14770 #
14771 # CONFIG_FILE
14772 #
14773
14774 case $INSTALL in
14775 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14776 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14777 esac
14778 ac_MKDIR_P=$MKDIR_P
14779 case $MKDIR_P in
14780 [\\/$]* | ?:[\\/]* ) ;;
14781 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14782 esac
14783 _ACEOF
14784
14785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14786 # If the template does not know about datarootdir, expand it.
14787 # FIXME: This hack should be removed a few years after 2.60.
14788 ac_datarootdir_hack=; ac_datarootdir_seen=
14789 ac_sed_dataroot='
14790 /datarootdir/ {
14791 p
14792 q
14793 }
14794 /@datadir@/p
14795 /@docdir@/p
14796 /@infodir@/p
14797 /@localedir@/p
14798 /@mandir@/p'
14799 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14800 *datarootdir*) ac_datarootdir_seen=yes;;
14801 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14803 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14804 _ACEOF
14805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14806 ac_datarootdir_hack='
14807 s&@datadir@&$datadir&g
14808 s&@docdir@&$docdir&g
14809 s&@infodir@&$infodir&g
14810 s&@localedir@&$localedir&g
14811 s&@mandir@&$mandir&g
14812 s&\\\${datarootdir}&$datarootdir&g' ;;
14813 esac
14814 _ACEOF
14815
14816 # Neutralize VPATH when `$srcdir' = `.'.
14817 # Shell code in configure.ac might set extrasub.
14818 # FIXME: do we really want to maintain this feature?
14819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14820 ac_sed_extra="$ac_vpsub
14821 $extrasub
14822 _ACEOF
14823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14824 :t
14825 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14826 s|@configure_input@|$ac_sed_conf_input|;t t
14827 s&@top_builddir@&$ac_top_builddir_sub&;t t
14828 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14829 s&@srcdir@&$ac_srcdir&;t t
14830 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14831 s&@top_srcdir@&$ac_top_srcdir&;t t
14832 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14833 s&@builddir@&$ac_builddir&;t t
14834 s&@abs_builddir@&$ac_abs_builddir&;t t
14835 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14836 s&@INSTALL@&$ac_INSTALL&;t t
14837 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14838 $ac_datarootdir_hack
14839 "
14840 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14841 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14842
14843 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14844 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14845 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14846 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14848 which seems to be undefined. Please make sure it is defined" >&5
14849 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14850 which seems to be undefined. Please make sure it is defined" >&2;}
14851
14852 rm -f "$ac_tmp/stdin"
14853 case $ac_file in
14854 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14855 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14856 esac \
14857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14858 ;;
14859
14860
14861 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14862 $as_echo "$as_me: executing $ac_file commands" >&6;}
14863 ;;
14864 esac
14865
14866
14867 case $ac_file$ac_mode in
14868 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14869 # Older Autoconf quotes --file arguments for eval, but not when files
14870 # are listed without --file. Let's play safe and only enable the eval
14871 # if we detect the quoting.
14872 # TODO: see whether this extra hack can be removed once we start
14873 # requiring Autoconf 2.70 or later.
14874 case $CONFIG_FILES in #(
14875 *\'*) :
14876 eval set x "$CONFIG_FILES" ;; #(
14877 *) :
14878 set x $CONFIG_FILES ;; #(
14879 *) :
14880 ;;
14881 esac
14882 shift
14883 # Used to flag and report bootstrapping failures.
14884 am_rc=0
14885 for am_mf
14886 do
14887 # Strip MF so we end up with the name of the file.
14888 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14889 # Check whether this is an Automake generated Makefile which includes
14890 # dependency-tracking related rules and includes.
14891 # Grep'ing the whole file directly is not great: AIX grep has a line
14892 # limit of 2048, but all sed's we know have understand at least 4000.
14893 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14894 || continue
14895 am_dirpart=`$as_dirname -- "$am_mf" ||
14896 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14897 X"$am_mf" : 'X\(//\)[^/]' \| \
14898 X"$am_mf" : 'X\(//\)$' \| \
14899 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14900 $as_echo X"$am_mf" |
14901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14902 s//\1/
14903 q
14904 }
14905 /^X\(\/\/\)[^/].*/{
14906 s//\1/
14907 q
14908 }
14909 /^X\(\/\/\)$/{
14910 s//\1/
14911 q
14912 }
14913 /^X\(\/\).*/{
14914 s//\1/
14915 q
14916 }
14917 s/.*/./; q'`
14918 am_filepart=`$as_basename -- "$am_mf" ||
14919 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14920 X"$am_mf" : 'X\(//\)$' \| \
14921 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14922 $as_echo X/"$am_mf" |
14923 sed '/^.*\/\([^/][^/]*\)\/*$/{
14924 s//\1/
14925 q
14926 }
14927 /^X\/\(\/\/\)$/{
14928 s//\1/
14929 q
14930 }
14931 /^X\/\(\/\).*/{
14932 s//\1/
14933 q
14934 }
14935 s/.*/./; q'`
14936 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14937 && sed -e '/# am--include-marker/d' "$am_filepart" \
14938 | $MAKE -f - am--depfiles" >&5
14939 (cd "$am_dirpart" \
14940 && sed -e '/# am--include-marker/d' "$am_filepart" \
14941 | $MAKE -f - am--depfiles) >&5 2>&5
14942 ac_status=$?
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } || am_rc=$?
14945 done
14946 if test $am_rc -ne 0; then
14947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14949 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14950 for automatic dependency tracking. Try re-running configure with the
14951 '--disable-dependency-tracking' option to at least be able to build
14952 the package (albeit without support for automatic dependency tracking).
14953 See \`config.log' for more details" "$LINENO" 5; }
14954 fi
14955 { am_dirpart=; unset am_dirpart;}
14956 { am_filepart=; unset am_filepart;}
14957 { am_mf=; unset am_mf;}
14958 { am_rc=; unset am_rc;}
14959 rm -f conftest-deps.mk
14960 }
14961 ;;
14962 "libtool":C)
14963
14964 # See if we are running on zsh, and set the options that allow our
14965 # commands through without removal of \ escapes.
14966 if test -n "${ZSH_VERSION+set}"; then
14967 setopt NO_GLOB_SUBST
14968 fi
14969
14970 cfgfile=${ofile}T
14971 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14972 $RM "$cfgfile"
14973
14974 cat <<_LT_EOF >> "$cfgfile"
14975 #! $SHELL
14976 # Generated automatically by $as_me ($PACKAGE) $VERSION
14977 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14978
14979 # Provide generalized library-building support services.
14980 # Written by Gordon Matzigkeit, 1996
14981
14982 # Copyright (C) 2014 Free Software Foundation, Inc.
14983 # This is free software; see the source for copying conditions. There is NO
14984 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14985
14986 # GNU Libtool is free software; you can redistribute it and/or modify
14987 # it under the terms of the GNU General Public License as published by
14988 # the Free Software Foundation; either version 2 of of the License, or
14989 # (at your option) any later version.
14990 #
14991 # As a special exception to the GNU General Public License, if you
14992 # distribute this file as part of a program or library that is built
14993 # using GNU Libtool, you may include this file under the same
14994 # distribution terms that you use for the rest of that program.
14995 #
14996 # GNU Libtool is distributed in the hope that it will be useful, but
14997 # WITHOUT ANY WARRANTY; without even the implied warranty of
14998 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14999 # GNU General Public License for more details.
15000 #
15001 # You should have received a copy of the GNU General Public License
15002 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15003
15004
15005 # The names of the tagged configurations supported by this script.
15006 available_tags=''
15007
15008 # Configured defaults for sys_lib_dlsearch_path munging.
15009 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15010
15011 # ### BEGIN LIBTOOL CONFIG
15012
15013 # Which release of libtool.m4 was used?
15014 macro_version=$macro_version
15015 macro_revision=$macro_revision
15016
15017 # Whether or not to build shared libraries.
15018 build_libtool_libs=$enable_shared
15019
15020 # Whether or not to build static libraries.
15021 build_old_libs=$enable_static
15022
15023 # What type of objects to build.
15024 pic_mode=$pic_mode
15025
15026 # Whether or not to optimize for fast installation.
15027 fast_install=$enable_fast_install
15028
15029 # Shared archive member basename,for filename based shared library versioning on AIX.
15030 shared_archive_member_spec=$shared_archive_member_spec
15031
15032 # Shell to use when invoking shell scripts.
15033 SHELL=$lt_SHELL
15034
15035 # An echo program that protects backslashes.
15036 ECHO=$lt_ECHO
15037
15038 # The PATH separator for the build system.
15039 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15040
15041 # The host system.
15042 host_alias=$host_alias
15043 host=$host
15044 host_os=$host_os
15045
15046 # The build system.
15047 build_alias=$build_alias
15048 build=$build
15049 build_os=$build_os
15050
15051 # A sed program that does not truncate output.
15052 SED=$lt_SED
15053
15054 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15055 Xsed="\$SED -e 1s/^X//"
15056
15057 # A grep program that handles long lines.
15058 GREP=$lt_GREP
15059
15060 # An ERE matcher.
15061 EGREP=$lt_EGREP
15062
15063 # A literal string matcher.
15064 FGREP=$lt_FGREP
15065
15066 # A BSD- or MS-compatible name lister.
15067 NM=$lt_NM
15068
15069 # Whether we need soft or hard links.
15070 LN_S=$lt_LN_S
15071
15072 # What is the maximum length of a command?
15073 max_cmd_len=$max_cmd_len
15074
15075 # Object file suffix (normally "o").
15076 objext=$ac_objext
15077
15078 # Executable file suffix (normally "").
15079 exeext=$exeext
15080
15081 # whether the shell understands "unset".
15082 lt_unset=$lt_unset
15083
15084 # turn spaces into newlines.
15085 SP2NL=$lt_lt_SP2NL
15086
15087 # turn newlines into spaces.
15088 NL2SP=$lt_lt_NL2SP
15089
15090 # convert \$build file names to \$host format.
15091 to_host_file_cmd=$lt_cv_to_host_file_cmd
15092
15093 # convert \$build files to toolchain format.
15094 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15095
15096 # An object symbol dumper.
15097 OBJDUMP=$lt_OBJDUMP
15098
15099 # Method to check whether dependent libraries are shared objects.
15100 deplibs_check_method=$lt_deplibs_check_method
15101
15102 # Command to use when deplibs_check_method = "file_magic".
15103 file_magic_cmd=$lt_file_magic_cmd
15104
15105 # How to find potential files when deplibs_check_method = "file_magic".
15106 file_magic_glob=$lt_file_magic_glob
15107
15108 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15109 want_nocaseglob=$lt_want_nocaseglob
15110
15111 # DLL creation program.
15112 DLLTOOL=$lt_DLLTOOL
15113
15114 # Command to associate shared and link libraries.
15115 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15116
15117 # The archiver.
15118 AR=$lt_AR
15119
15120 # Flags to create an archive.
15121 AR_FLAGS=$lt_AR_FLAGS
15122
15123 # How to feed a file listing to the archiver.
15124 archiver_list_spec=$lt_archiver_list_spec
15125
15126 # A symbol stripping program.
15127 STRIP=$lt_STRIP
15128
15129 # Commands used to install an old-style archive.
15130 RANLIB=$lt_RANLIB
15131 old_postinstall_cmds=$lt_old_postinstall_cmds
15132 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15133
15134 # Whether to use a lock for old archive extraction.
15135 lock_old_archive_extraction=$lock_old_archive_extraction
15136
15137 # A C compiler.
15138 LTCC=$lt_CC
15139
15140 # LTCC compiler flags.
15141 LTCFLAGS=$lt_CFLAGS
15142
15143 # Take the output of nm and produce a listing of raw symbols and C names.
15144 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15145
15146 # Transform the output of nm in a proper C declaration.
15147 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15148
15149 # Transform the output of nm into a list of symbols to manually relocate.
15150 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15151
15152 # Transform the output of nm in a C name address pair.
15153 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15154
15155 # Transform the output of nm in a C name address pair when lib prefix is needed.
15156 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15157
15158 # The name lister interface.
15159 nm_interface=$lt_lt_cv_nm_interface
15160
15161 # Specify filename containing input files for \$NM.
15162 nm_file_list_spec=$lt_nm_file_list_spec
15163
15164 # The root where to search for dependent libraries,and where our libraries should be installed.
15165 lt_sysroot=$lt_sysroot
15166
15167 # Command to truncate a binary pipe.
15168 lt_truncate_bin=$lt_lt_cv_truncate_bin
15169
15170 # The name of the directory that contains temporary libtool files.
15171 objdir=$objdir
15172
15173 # Used to examine libraries when file_magic_cmd begins with "file".
15174 MAGIC_CMD=$MAGIC_CMD
15175
15176 # Must we lock files when doing compilation?
15177 need_locks=$lt_need_locks
15178
15179 # Manifest tool.
15180 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15181
15182 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15183 DSYMUTIL=$lt_DSYMUTIL
15184
15185 # Tool to change global to local symbols on Mac OS X.
15186 NMEDIT=$lt_NMEDIT
15187
15188 # Tool to manipulate fat objects and archives on Mac OS X.
15189 LIPO=$lt_LIPO
15190
15191 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15192 OTOOL=$lt_OTOOL
15193
15194 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15195 OTOOL64=$lt_OTOOL64
15196
15197 # Old archive suffix (normally "a").
15198 libext=$libext
15199
15200 # Shared library suffix (normally ".so").
15201 shrext_cmds=$lt_shrext_cmds
15202
15203 # The commands to extract the exported symbol list from a shared archive.
15204 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15205
15206 # Variables whose values should be saved in libtool wrapper scripts and
15207 # restored at link time.
15208 variables_saved_for_relink=$lt_variables_saved_for_relink
15209
15210 # Do we need the "lib" prefix for modules?
15211 need_lib_prefix=$need_lib_prefix
15212
15213 # Do we need a version for libraries?
15214 need_version=$need_version
15215
15216 # Library versioning type.
15217 version_type=$version_type
15218
15219 # Shared library runtime path variable.
15220 runpath_var=$runpath_var
15221
15222 # Shared library path variable.
15223 shlibpath_var=$shlibpath_var
15224
15225 # Is shlibpath searched before the hard-coded library search path?
15226 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15227
15228 # Format of library name prefix.
15229 libname_spec=$lt_libname_spec
15230
15231 # List of archive names. First name is the real one, the rest are links.
15232 # The last name is the one that the linker finds with -lNAME
15233 library_names_spec=$lt_library_names_spec
15234
15235 # The coded name of the library, if different from the real name.
15236 soname_spec=$lt_soname_spec
15237
15238 # Permission mode override for installation of shared libraries.
15239 install_override_mode=$lt_install_override_mode
15240
15241 # Command to use after installation of a shared archive.
15242 postinstall_cmds=$lt_postinstall_cmds
15243
15244 # Command to use after uninstallation of a shared archive.
15245 postuninstall_cmds=$lt_postuninstall_cmds
15246
15247 # Commands used to finish a libtool library installation in a directory.
15248 finish_cmds=$lt_finish_cmds
15249
15250 # As "finish_cmds", except a single script fragment to be evaled but
15251 # not shown.
15252 finish_eval=$lt_finish_eval
15253
15254 # Whether we should hardcode library paths into libraries.
15255 hardcode_into_libs=$hardcode_into_libs
15256
15257 # Compile-time system search path for libraries.
15258 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15259
15260 # Detected run-time system search path for libraries.
15261 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15262
15263 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15264 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15265
15266 # Whether dlopen is supported.
15267 dlopen_support=$enable_dlopen
15268
15269 # Whether dlopen of programs is supported.
15270 dlopen_self=$enable_dlopen_self
15271
15272 # Whether dlopen of statically linked programs is supported.
15273 dlopen_self_static=$enable_dlopen_self_static
15274
15275 # Commands to strip libraries.
15276 old_striplib=$lt_old_striplib
15277 striplib=$lt_striplib
15278
15279
15280 # The linker used to build libraries.
15281 LD=$lt_LD
15282
15283 # How to create reloadable object files.
15284 reload_flag=$lt_reload_flag
15285 reload_cmds=$lt_reload_cmds
15286
15287 # Commands used to build an old-style archive.
15288 old_archive_cmds=$lt_old_archive_cmds
15289
15290 # A language specific compiler.
15291 CC=$lt_compiler
15292
15293 # Is the compiler the GNU compiler?
15294 with_gcc=$GCC
15295
15296 # Compiler flag to turn off builtin functions.
15297 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15298
15299 # Additional compiler flags for building library objects.
15300 pic_flag=$lt_lt_prog_compiler_pic
15301
15302 # How to pass a linker flag through the compiler.
15303 wl=$lt_lt_prog_compiler_wl
15304
15305 # Compiler flag to prevent dynamic linking.
15306 link_static_flag=$lt_lt_prog_compiler_static
15307
15308 # Does compiler simultaneously support -c and -o options?
15309 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15310
15311 # Whether or not to add -lc for building shared libraries.
15312 build_libtool_need_lc=$archive_cmds_need_lc
15313
15314 # Whether or not to disallow shared libs when runtime libs are static.
15315 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15316
15317 # Compiler flag to allow reflexive dlopens.
15318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15319
15320 # Compiler flag to generate shared objects directly from archives.
15321 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15322
15323 # Whether the compiler copes with passing no objects directly.
15324 compiler_needs_object=$lt_compiler_needs_object
15325
15326 # Create an old-style archive from a shared archive.
15327 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15328
15329 # Create a temporary old-style archive to link instead of a shared archive.
15330 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15331
15332 # Commands used to build a shared archive.
15333 archive_cmds=$lt_archive_cmds
15334 archive_expsym_cmds=$lt_archive_expsym_cmds
15335
15336 # Commands used to build a loadable module if different from building
15337 # a shared archive.
15338 module_cmds=$lt_module_cmds
15339 module_expsym_cmds=$lt_module_expsym_cmds
15340
15341 # Whether we are building with GNU ld or not.
15342 with_gnu_ld=$lt_with_gnu_ld
15343
15344 # Flag that allows shared libraries with undefined symbols to be built.
15345 allow_undefined_flag=$lt_allow_undefined_flag
15346
15347 # Flag that enforces no undefined symbols.
15348 no_undefined_flag=$lt_no_undefined_flag
15349
15350 # Flag to hardcode \$libdir into a binary during linking.
15351 # This must work even if \$libdir does not exist
15352 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15353
15354 # Whether we need a single "-rpath" flag with a separated argument.
15355 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15356
15357 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15358 # DIR into the resulting binary.
15359 hardcode_direct=$hardcode_direct
15360
15361 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15362 # DIR into the resulting binary and the resulting library dependency is
15363 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15364 # library is relocated.
15365 hardcode_direct_absolute=$hardcode_direct_absolute
15366
15367 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15368 # into the resulting binary.
15369 hardcode_minus_L=$hardcode_minus_L
15370
15371 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15372 # into the resulting binary.
15373 hardcode_shlibpath_var=$hardcode_shlibpath_var
15374
15375 # Set to "yes" if building a shared library automatically hardcodes DIR
15376 # into the library and all subsequent libraries and executables linked
15377 # against it.
15378 hardcode_automatic=$hardcode_automatic
15379
15380 # Set to yes if linker adds runtime paths of dependent libraries
15381 # to runtime path list.
15382 inherit_rpath=$inherit_rpath
15383
15384 # Whether libtool must link a program against all its dependency libraries.
15385 link_all_deplibs=$link_all_deplibs
15386
15387 # Set to "yes" if exported symbols are required.
15388 always_export_symbols=$always_export_symbols
15389
15390 # The commands to list exported symbols.
15391 export_symbols_cmds=$lt_export_symbols_cmds
15392
15393 # Symbols that should not be listed in the preloaded symbols.
15394 exclude_expsyms=$lt_exclude_expsyms
15395
15396 # Symbols that must always be exported.
15397 include_expsyms=$lt_include_expsyms
15398
15399 # Commands necessary for linking programs (against libraries) with templates.
15400 prelink_cmds=$lt_prelink_cmds
15401
15402 # Commands necessary for finishing linking programs.
15403 postlink_cmds=$lt_postlink_cmds
15404
15405 # Specify filename containing input files.
15406 file_list_spec=$lt_file_list_spec
15407
15408 # How to hardcode a shared library path into an executable.
15409 hardcode_action=$hardcode_action
15410
15411 # ### END LIBTOOL CONFIG
15412
15413 _LT_EOF
15414
15415 cat <<'_LT_EOF' >> "$cfgfile"
15416
15417 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15418
15419 # func_munge_path_list VARIABLE PATH
15420 # -----------------------------------
15421 # VARIABLE is name of variable containing _space_ separated list of
15422 # directories to be munged by the contents of PATH, which is string
15423 # having a format:
15424 # "DIR[:DIR]:"
15425 # string "DIR[ DIR]" will be prepended to VARIABLE
15426 # ":DIR[:DIR]"
15427 # string "DIR[ DIR]" will be appended to VARIABLE
15428 # "DIRP[:DIRP]::[DIRA:]DIRA"
15429 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15430 # "DIRA[ DIRA]" will be appended to VARIABLE
15431 # "DIR[:DIR]"
15432 # VARIABLE will be replaced by "DIR[ DIR]"
15433 func_munge_path_list ()
15434 {
15435 case x$2 in
15436 x)
15437 ;;
15438 *:)
15439 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15440 ;;
15441 x:*)
15442 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15443 ;;
15444 *::*)
15445 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15446 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15447 ;;
15448 *)
15449 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15450 ;;
15451 esac
15452 }
15453
15454
15455 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15456 func_cc_basename ()
15457 {
15458 for cc_temp in $*""; do
15459 case $cc_temp in
15460 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15461 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15462 \-*) ;;
15463 *) break;;
15464 esac
15465 done
15466 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15467 }
15468
15469
15470 # ### END FUNCTIONS SHARED WITH CONFIGURE
15471
15472 _LT_EOF
15473
15474 case $host_os in
15475 aix3*)
15476 cat <<\_LT_EOF >> "$cfgfile"
15477 # AIX sometimes has problems with the GCC collect2 program. For some
15478 # reason, if we set the COLLECT_NAMES environment variable, the problems
15479 # vanish in a puff of smoke.
15480 if test set != "${COLLECT_NAMES+set}"; then
15481 COLLECT_NAMES=
15482 export COLLECT_NAMES
15483 fi
15484 _LT_EOF
15485 ;;
15486 esac
15487
15488
15489 ltmain=$ac_aux_dir/ltmain.sh
15490
15491
15492 # We use sed instead of cat because bash on DJGPP gets confused if
15493 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15494 # text mode, it properly converts lines to CR/LF. This bash problem
15495 # is reportedly fixed, but why not run on old versions too?
15496 sed '$q' "$ltmain" >> "$cfgfile" \
15497 || (rm -f "$cfgfile"; exit 1)
15498
15499 mv -f "$cfgfile" "$ofile" ||
15500 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15501 chmod +x "$ofile"
15502
15503 ;;
15504
15505 esac
15506 done # for ac_tag
15507
15508
15509 as_fn_exit 0
15510 _ACEOF
15511 ac_clean_files=$ac_clean_files_save
15512
15513 test $ac_write_fail = 0 ||
15514 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15515
15516
15517 # configure is writing to config.log, and then calls config.status.
15518 # config.status does its own redirection, appending to config.log.
15519 # Unfortunately, on DOS this fails, as config.log is still kept open
15520 # by configure, so config.status won't be able to write to it; its
15521 # output is simply discarded. So we exec the FD to /dev/null,
15522 # effectively closing config.log, so it can be properly (re)opened and
15523 # appended to by config.status. When coming back to configure, we
15524 # need to make the FD available again.
15525 if test "$no_create" != yes; then
15526 ac_cs_success=:
15527 ac_config_status_args=
15528 test "$silent" = yes &&
15529 ac_config_status_args="$ac_config_status_args --quiet"
15530 exec 5>/dev/null
15531 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15532 exec 5>>config.log
15533 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15534 # would make configure fail if this is the last instruction.
15535 $ac_cs_success || as_fn_exit 1
15536 fi
15537 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15539 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15540 fi
15541