Debian Codegraph @

tap/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for tap 1.01.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 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 case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='tap'
613 PACKAGE_TARNAME='tap'
614 PACKAGE_VERSION='1.01'
615 PACKAGE_STRING='tap 1.01'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 ac_unique_file="src/tap.c"
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_c_list=
652 ac_func_c_list=
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 MAINT
658 MAINTAINER_MODE_FALSE
659 MAINTAINER_MODE_TRUE
660 LT_SYS_LIBRARY_PATH
661 OTOOL64
662 OTOOL
663 LIPO
664 NMEDIT
665 DSYMUTIL
666 MANIFEST_TOOL
667 RANLIB
668 ac_ct_AR
669 AR
670 DLLTOOL
671 OBJDUMP
672 FILECMD
673 LN_S
674 NM
675 ac_ct_DUMPBIN
676 DUMPBIN
677 LD
678 FGREP
679 EGREP
680 GREP
681 SED
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 LIBTOOL
691 am__fastdepCC_FALSE
692 am__fastdepCC_TRUE
693 CCDEPMODE
694 am__nodep
695 AMDEPBACKSLASH
696 AMDEP_FALSE
697 AMDEP_TRUE
698 am__include
699 DEPDIR
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
706 CC
707 am__xargs_n
708 am__rm_f_notfound
709 AM_BACKSLASH
710 AM_DEFAULT_VERBOSITY
711 AM_DEFAULT_V
712 AM_V
713 CSCOPE
714 ETAGS
715 CTAGS
716 am__untar
717 am__tar
718 AMTAR
719 am__leading_dot
720 SET_MAKE
721 AWK
722 mkdir_p
723 MKDIR_P
724 INSTALL_STRIP_PROGRAM
725 STRIP
726 install_sh
727 MAKEINFO
728 AUTOHEADER
729 AUTOMAKE
730 AUTOCONF
731 ACLOCAL
732 VERSION
733 PACKAGE
734 CYGPATH_W
735 am__isrc
736 INSTALL_DATA
737 INSTALL_SCRIPT
738 INSTALL_PROGRAM
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 runstatedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL
778 am__quote'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_silent_rules
783 enable_dependency_tracking
784 enable_shared
785 enable_static
786 with_pic
787 enable_fast_install
788 with_aix_soname
789 with_gnu_ld
790 with_sysroot
791 enable_libtool_lock
792 enable_maintainer_mode
793 '
794 ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
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 case $ac_dashdash$ac_option in
872 --)
873 ac_dashdash=yes ;;
874
875 -bindir | --bindir | --bindi | --bind | --bin | --bi)
876 ac_prev=bindir ;;
877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878 bindir=$ac_optarg ;;
879
880 -build | --build | --buil | --bui | --bu)
881 ac_prev=build_alias ;;
882 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883 build_alias=$ac_optarg ;;
884
885 -cache-file | --cache-file | --cache-fil | --cache-fi \
886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887 ac_prev=cache_file ;;
888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890 cache_file=$ac_optarg ;;
891
892 --config-cache | -C)
893 cache_file=config.cache ;;
894
895 -datadir | --datadir | --datadi | --datad)
896 ac_prev=datadir ;;
897 -datadir=* | --datadir=* | --datadi=* | --datad=*)
898 datadir=$ac_optarg ;;
899
900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901 | --dataroo | --dataro | --datar)
902 ac_prev=datarootdir ;;
903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905 datarootdir=$ac_optarg ;;
906
907 -disable-* | --disable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: '$ac_useropt'"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
915 *"
916 "enable_$ac_useropt"
917 "*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=no ;;
922
923 -docdir | --docdir | --docdi | --doc | --do)
924 ac_prev=docdir ;;
925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926 docdir=$ac_optarg ;;
927
928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929 ac_prev=dvidir ;;
930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931 dvidir=$ac_optarg ;;
932
933 -enable-* | --enable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error $? "invalid feature name: '$ac_useropt'"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942 "enable_$ac_useropt"
943 "*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=\$ac_optarg ;;
948
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
957
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
961
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
968
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
973
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
979
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
986
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
991
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
996
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1003
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1008
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1015
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1020
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1024
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1028
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1032
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1041
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1046
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1053
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1060
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1077
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1082
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1087
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1091
1092 -runstatedir | --runstatedir | --runstatedi | --runstated \
1093 | --runstate | --runstat | --runsta | --runst | --runs \
1094 | --run | --ru | --r)
1095 ac_prev=runstatedir ;;
1096 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1097 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1098 | --run=* | --ru=* | --r=*)
1099 runstatedir=$ac_optarg ;;
1100
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 ac_prev=sbindir ;;
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 | --sbi=* | --sb=*)
1105 sbindir=$ac_optarg ;;
1106
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1110 | --sha | --sh)
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 | --sha=* | --sh=*)
1116 sharedstatedir=$ac_optarg ;;
1117
1118 -site | --site | --sit)
1119 ac_prev=site ;;
1120 -site=* | --site=* | --sit=*)
1121 site=$ac_optarg ;;
1122
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 ac_prev=srcdir ;;
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1127
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1134
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1139
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141 verbose=yes ;;
1142
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1145
1146 -with-* | --with-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid package name: '$ac_useropt'"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155 "with_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=\$ac_optarg ;;
1161
1162 -without-* | --without-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: '$ac_useropt'"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=no ;;
1177
1178 --x)
1179 # Obsolete; use --with-x.
1180 with_x=yes ;;
1181
1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183 | --x-incl | --x-inc | --x-in | --x-i)
1184 ac_prev=x_includes ;;
1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187 x_includes=$ac_optarg ;;
1188
1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191 ac_prev=x_libraries ;;
1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194 x_libraries=$ac_optarg ;;
1195
1196 -*) as_fn_error $? "unrecognized option: '$ac_option'
1197 Try '$0 --help' for more information"
1198 ;;
1199
1200 *=*)
1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202 # Reject names that are not valid shell variable names.
1203 case $ac_envvar in #(
1204 '' | [0-9]* | *[!_$as_cr_alnum]* )
1205 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1206 esac
1207 eval $ac_envvar=\$ac_optarg
1208 export $ac_envvar ;;
1209
1210 *)
1211 # FIXME: should be removed in autoconf 3.0.
1212 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1215 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1216 ;;
1217
1218 esac
1219 done
1220
1221 if test -n "$ac_prev"; then
1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223 as_fn_error $? "missing argument to $ac_option"
1224 fi
1225
1226 if test -n "$ac_unrecognized_opts"; then
1227 case $enable_option_checking in
1228 no) ;;
1229 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1230 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231 esac
1232 fi
1233
1234 # Check all directory arguments for consistency.
1235 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir runstatedir
1239 do
1240 eval ac_val=\$$ac_var
1241 # Remove trailing slashes.
1242 case $ac_val in
1243 */ )
1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245 eval $ac_var=\$ac_val;;
1246 esac
1247 # Be sure to have absolute directory names.
1248 case $ac_val in
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251 esac
1252 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1253 done
1254
1255 # There might be people who depend on the old broken behavior: '$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1258 build=$build_alias
1259 host=$host_alias
1260 target=$target_alias
1261
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
1266 elif test "x$build_alias" != "x$host_alias"; then
1267 cross_compiling=yes
1268 fi
1269 fi
1270
1271 ac_tool_prefix=
1272 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274 test "$silent" = yes && exec 6>/dev/null
1275
1276
1277 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di=`ls -di .` &&
1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error $? "working directory cannot be determined"
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error $? "pwd does not report name of working directory"
1283
1284
1285 # Find the source files, if location was not specified.
1286 if test -z "$srcdir"; then
1287 ac_srcdir_defaulted=yes
1288 # Try the directory containing this script, then the parent directory.
1289 ac_confdir=`$as_dirname -- "$as_myself" ||
1290 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 X"$as_myself" : 'X\(//\)[^/]' \| \
1292 X"$as_myself" : 'X\(//\)$' \| \
1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294 printf "%s\n" X"$as_myself" |
1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)[^/].*/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\/\)$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\).*/{
1308 s//\1/
1309 q
1310 }
1311 s/.*/./; q'`
1312 srcdir=$ac_confdir
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 srcdir=..
1315 fi
1316 else
1317 ac_srcdir_defaulted=no
1318 fi
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1322 fi
1323 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1324 ac_abs_confdir=`(
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1326 pwd)`
1327 # When building in place, set srcdir=.
1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 srcdir=.
1330 fi
1331 # Remove unnecessary trailing slashes from srcdir.
1332 # Double slashes in file names in object file debugging info
1333 # mess up M-x gdb in Emacs.
1334 case $srcdir in
1335 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 esac
1337 for ac_var in $ac_precious_vars; do
1338 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_${ac_var}_value=\$${ac_var}
1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342 done
1343
1344 #
1345 # Report the --help message.
1346 #
1347 if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1350 cat <<_ACEOF
1351 'configure' configures tap 1.01 to adapt to many kinds of systems.
1352
1353 Usage: $0 [OPTION]... [VAR=VALUE]...
1354
1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356 VAR=VALUE. See below for descriptions of some of the useful variables.
1357
1358 Defaults for the options are specified in brackets.
1359
1360 Configuration:
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print 'checking ...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for '--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or '..']
1370
1371 Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
1373 [$ac_default_prefix]
1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1375 [PREFIX]
1376
1377 By default, 'make install' will install all the files in
1378 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1379 an installation prefix other than '$ac_default_prefix' using '--prefix',
1380 for instance '--prefix=\$HOME'.
1381
1382 For better control, use the options below.
1383
1384 Fine tuning of the installation directories:
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/tap]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1405 _ACEOF
1406
1407 cat <<\_ACEOF
1408
1409 Program names:
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413
1414 System types:
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 _ACEOF
1418 fi
1419
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive ) echo "Configuration of tap 1.01:";;
1423 esac
1424 cat <<\_ACEOF
1425
1426 Optional Features:
1427 --disable-option-checking ignore unrecognized --enable/--with options
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1430 --enable-silent-rules less verbose build output (undo: "make V=1")
1431 --disable-silent-rules verbose build output (undo: "make V=0")
1432 --enable-dependency-tracking
1433 do not reject slow dependency extractors
1434 --disable-dependency-tracking
1435 speeds up one-time build
1436 --enable-shared[=PKGS] build shared libraries [default=yes]
1437 --enable-static[=PKGS] build static libraries [default=yes]
1438 --enable-fast-install[=PKGS]
1439 optimize for fast installation [default=yes]
1440 --disable-libtool-lock avoid locking (might break parallel builds)
1441 --enable-maintainer-mode
1442 enable make rules and dependencies not useful (and
1443 sometimes confusing) to the casual installer
1444
1445 Optional Packages:
1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1448 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1449 both]
1450 --with-aix-soname=aix|svr4|both
1451 shared library versioning (aka "SONAME") variant to
1452 provide on AIX, [default=aix].
1453 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1454 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1455 compiler's sysroot if not specified).
1456
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 LIBS libraries to pass to the linker, e.g. -l<library>
1463 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 LT_SYS_LIBRARY_PATH
1466 User-defined run-time library search path.
1467
1468 Use these variables to override the choices made by 'configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to the package provider.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" ||
1480 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481 continue
1482 ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501 .) # We are building in place.
1502 ac_srcdir=.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for configure.gnu first; this name is used for a wrapper for
1518 # Metaconfig's "Configure" on case-insensitive file systems.
1519 if test -f "$ac_srcdir/configure.gnu"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522 elif test -f "$ac_srcdir/configure"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure" --help=recursive
1525 else
1526 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 fi || ac_status=$?
1528 cd "$ac_pwd" || { ac_status=$?; break; }
1529 done
1530 fi
1531
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1534 cat <<\_ACEOF
1535 tap configure 1.01
1536 generated by GNU Autoconf 2.72
1537
1538 Copyright (C) 2023 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1541 _ACEOF
1542 exit
1543 fi
1544
1545 ## ------------------------ ##
1546 ## Autoconf initialization. ##
1547 ## ------------------------ ##
1548
1549 # ac_fn_c_try_compile LINENO
1550 # --------------------------
1551 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_compile ()
1553 {
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext conftest.beam
1556 if { { ac_try="$ac_compile"
1557 case "(($ac_try" in
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1560 esac
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 printf "%s\n" "$ac_try_echo"; } >&5
1563 (eval "$ac_compile") 2>conftest.err
1564 ac_status=$?
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1569 fi
1570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest.$ac_objext
1575 then :
1576 ac_retval=0
1577 else case e in #(
1578 e) printf "%s\n" "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1 ;;
1582 esac
1583 fi
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1586
1587 } # ac_fn_c_try_compile
1588
1589 # ac_fn_c_try_link LINENO
1590 # -----------------------
1591 # Try to link conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_link ()
1593 {
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1596 if { { ac_try="$ac_link"
1597 case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 printf "%s\n" "$ac_try_echo"; } >&5
1603 (eval "$ac_link") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1609 fi
1610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest$ac_exeext && {
1615 test "$cross_compiling" = yes ||
1616 test -x conftest$ac_exeext
1617 }
1618 then :
1619 ac_retval=0
1620 else case e in #(
1621 e) printf "%s\n" "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1 ;;
1625 esac
1626 fi
1627 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1628 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1629 # interfere with the next link command; also delete a directory that is
1630 # left behind by Apple's compiler. We do this before executing the actions.
1631 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1634
1635 } # ac_fn_c_try_link
1636
1637 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1638 # -------------------------------------------------------
1639 # Tests whether HEADER exists and can be compiled using the include files in
1640 # INCLUDES, setting the cache variable VAR accordingly.
1641 ac_fn_c_check_header_compile ()
1642 {
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 printf %s "checking for $2... " >&6; }
1646 if eval test \${$3+y}
1647 then :
1648 printf %s "(cached) " >&6
1649 else case e in #(
1650 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1652 $4
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_c_try_compile "$LINENO"
1656 then :
1657 eval "$3=yes"
1658 else case e in #(
1659 e) eval "$3=no" ;;
1660 esac
1661 fi
1662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1663 esac
1664 fi
1665 eval ac_res=\$$3
1666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667 printf "%s\n" "$ac_res" >&6; }
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669
1670 } # ac_fn_c_check_header_compile
1671
1672 # ac_fn_c_check_func LINENO FUNC VAR
1673 # ----------------------------------
1674 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1675 ac_fn_c_check_func ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679 printf %s "checking for $2... " >&6; }
1680 if eval test \${$3+y}
1681 then :
1682 printf %s "(cached) " >&6
1683 else case e in #(
1684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1686 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1688 #define $2 innocuous_$2
1689
1690 /* System header to define __stub macros and hopefully few prototypes,
1691 which can conflict with char $2 (void); below. */
1692
1693 #include <limits.h>
1694 #undef $2
1695
1696 /* Override any GCC internal prototype to avoid an error.
1697 Use char because int might match the return type of a GCC
1698 builtin and then its argument prototype would still apply. */
1699 #ifdef __cplusplus
1700 extern "C"
1701 #endif
1702 char $2 (void);
1703 /* The GNU C library defines this for functions which it implements
1704 to always fail with ENOSYS. Some functions are actually named
1705 something starting with __ and the normal name is an alias. */
1706 #if defined __stub_$2 || defined __stub___$2
1707 choke me
1708 #endif
1709
1710 int
1711 main (void)
1712 {
1713 return $2 ();
1714 ;
1715 return 0;
1716 }
1717 _ACEOF
1718 if ac_fn_c_try_link "$LINENO"
1719 then :
1720 eval "$3=yes"
1721 else case e in #(
1722 e) eval "$3=no" ;;
1723 esac
1724 fi
1725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1726 conftest$ac_exeext conftest.$ac_ext ;;
1727 esac
1728 fi
1729 eval ac_res=\$$3
1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 printf "%s\n" "$ac_res" >&6; }
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
1734 } # ac_fn_c_check_func
1735 ac_configure_args_raw=
1736 for ac_arg
1737 do
1738 case $ac_arg in
1739 *\'*)
1740 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1741 esac
1742 as_fn_append ac_configure_args_raw " '$ac_arg'"
1743 done
1744
1745 case $ac_configure_args_raw in
1746 *$as_nl*)
1747 ac_safe_unquote= ;;
1748 *)
1749 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1750 ac_unsafe_a="$ac_unsafe_z#~"
1751 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1752 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1753 esac
1754
1755 cat >config.log <<_ACEOF
1756 This file contains any messages produced by compilers while
1757 running configure, to aid debugging if configure makes a mistake.
1758
1759 It was created by tap $as_me 1.01, which was
1760 generated by GNU Autoconf 2.72. Invocation command line was
1761
1762 $ $0$ac_configure_args_raw
1763
1764 _ACEOF
1765 exec 5>>config.log
1766 {
1767 cat <<_ASUNAME
1768 ## --------- ##
1769 ## Platform. ##
1770 ## --------- ##
1771
1772 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1773 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1774 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1775 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1776 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1777
1778 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1779 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1780
1781 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1782 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1783 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1784 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1785 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1786 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1787 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1788
1789 _ASUNAME
1790
1791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792 for as_dir in $PATH
1793 do
1794 IFS=$as_save_IFS
1795 case $as_dir in #(((
1796 '') as_dir=./ ;;
1797 */) ;;
1798 *) as_dir=$as_dir/ ;;
1799 esac
1800 printf "%s\n" "PATH: $as_dir"
1801 done
1802 IFS=$as_save_IFS
1803
1804 } >&5
1805
1806 cat >&5 <<_ACEOF
1807
1808
1809 ## ----------- ##
1810 ## Core tests. ##
1811 ## ----------- ##
1812
1813 _ACEOF
1814
1815
1816 # Keep a trace of the command line.
1817 # Strip out --no-create and --no-recursion so they do not pile up.
1818 # Strip out --silent because we don't want to record it for future runs.
1819 # Also quote any args containing shell meta-characters.
1820 # Make two passes to allow for proper duplicate-argument suppression.
1821 ac_configure_args=
1822 ac_configure_args0=
1823 ac_configure_args1=
1824 ac_must_keep_next=false
1825 for ac_pass in 1 2
1826 do
1827 for ac_arg
1828 do
1829 case $ac_arg in
1830 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1831 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1832 | -silent | --silent | --silen | --sile | --sil)
1833 continue ;;
1834 *\'*)
1835 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1836 esac
1837 case $ac_pass in
1838 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1839 2)
1840 as_fn_append ac_configure_args1 " '$ac_arg'"
1841 if test $ac_must_keep_next = true; then
1842 ac_must_keep_next=false # Got value, back to normal.
1843 else
1844 case $ac_arg in
1845 *=* | --config-cache | -C | -disable-* | --disable-* \
1846 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1847 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1848 | -with-* | --with-* | -without-* | --without-* | --x)
1849 case "$ac_configure_args0 " in
1850 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1851 esac
1852 ;;
1853 -* ) ac_must_keep_next=true ;;
1854 esac
1855 fi
1856 as_fn_append ac_configure_args " '$ac_arg'"
1857 ;;
1858 esac
1859 done
1860 done
1861 { ac_configure_args0=; unset ac_configure_args0;}
1862 { ac_configure_args1=; unset ac_configure_args1;}
1863
1864 # When interrupted or exit'd, cleanup temporary files, and complete
1865 # config.log. We remove comments because anyway the quotes in there
1866 # would cause problems or look ugly.
1867 # WARNING: Use '\'' to represent an apostrophe within the trap.
1868 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1869 trap 'exit_status=$?
1870 # Sanitize IFS.
1871 IFS=" "" $as_nl"
1872 # Save into config.log some information that might help in debugging.
1873 {
1874 echo
1875
1876 printf "%s\n" "## ---------------- ##
1877 ## Cache variables. ##
1878 ## ---------------- ##"
1879 echo
1880 # The following way of writing the cache mishandles newlines in values,
1881 (
1882 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1883 eval ac_val=\$$ac_var
1884 case $ac_val in #(
1885 *${as_nl}*)
1886 case $ac_var in #(
1887 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1888 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1889 esac
1890 case $ac_var in #(
1891 _ | IFS | as_nl) ;; #(
1892 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1893 *) { eval $ac_var=; unset $ac_var;} ;;
1894 esac ;;
1895 esac
1896 done
1897 (set) 2>&1 |
1898 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1899 *${as_nl}ac_space=\ *)
1900 sed -n \
1901 "s/'\''/'\''\\\\'\'''\''/g;
1902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1903 ;; #(
1904 *)
1905 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1906 ;;
1907 esac |
1908 sort
1909 )
1910 echo
1911
1912 printf "%s\n" "## ----------------- ##
1913 ## Output variables. ##
1914 ## ----------------- ##"
1915 echo
1916 for ac_var in $ac_subst_vars
1917 do
1918 eval ac_val=\$$ac_var
1919 case $ac_val in
1920 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1921 esac
1922 printf "%s\n" "$ac_var='\''$ac_val'\''"
1923 done | sort
1924 echo
1925
1926 if test -n "$ac_subst_files"; then
1927 printf "%s\n" "## ------------------- ##
1928 ## File substitutions. ##
1929 ## ------------------- ##"
1930 echo
1931 for ac_var in $ac_subst_files
1932 do
1933 eval ac_val=\$$ac_var
1934 case $ac_val in
1935 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1936 esac
1937 printf "%s\n" "$ac_var='\''$ac_val'\''"
1938 done | sort
1939 echo
1940 fi
1941
1942 if test -s confdefs.h; then
1943 printf "%s\n" "## ----------- ##
1944 ## confdefs.h. ##
1945 ## ----------- ##"
1946 echo
1947 cat confdefs.h
1948 echo
1949 fi
1950 test "$ac_signal" != 0 &&
1951 printf "%s\n" "$as_me: caught signal $ac_signal"
1952 printf "%s\n" "$as_me: exit $exit_status"
1953 } >&5
1954 rm -f core *.core core.conftest.* &&
1955 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1956 exit $exit_status
1957 ' 0
1958 for ac_signal in 1 2 13 15; do
1959 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1960 done
1961 ac_signal=0
1962
1963 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1964 rm -f -r conftest* confdefs.h
1965
1966 printf "%s\n" "/* confdefs.h */" > confdefs.h
1967
1968 # Predefined preprocessor variables.
1969
1970 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1971
1972 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1973
1974 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1975
1976 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1977
1978 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1979
1980 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1981
1982
1983 # Let the site file select an alternate cache file if it wants to.
1984 # Prefer an explicitly selected file to automatically selected ones.
1985 if test -n "$CONFIG_SITE"; then
1986 ac_site_files="$CONFIG_SITE"
1987 elif test "x$prefix" != xNONE; then
1988 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1989 else
1990 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1991 fi
1992
1993 for ac_site_file in $ac_site_files
1994 do
1995 case $ac_site_file in #(
1996 */*) :
1997 ;; #(
1998 *) :
1999 ac_site_file=./$ac_site_file ;;
2000 esac
2001 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2003 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2004 sed 's/^/| /' "$ac_site_file" >&5
2005 . "$ac_site_file" \
2006 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2007 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2008 as_fn_error $? "failed to load site script $ac_site_file
2009 See 'config.log' for more details" "$LINENO" 5; }
2010 fi
2011 done
2012
2013 if test -r "$cache_file"; then
2014 # Some versions of bash will fail to source /dev/null (special files
2015 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2016 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2018 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2019 case $cache_file in
2020 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2021 *) . "./$cache_file";;
2022 esac
2023 fi
2024 else
2025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2026 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2027 >$cache_file
2028 fi
2029
2030 # Test code for whether the C compiler supports C89 (global declarations)
2031 ac_c_conftest_c89_globals='
2032 /* Does the compiler advertise C89 conformance?
2033 Do not test the value of __STDC__, because some compilers set it to 0
2034 while being otherwise adequately conformant. */
2035 #if !defined __STDC__
2036 # error "Compiler does not advertise C89 conformance"
2037 #endif
2038
2039 #include <stddef.h>
2040 #include <stdarg.h>
2041 struct stat;
2042 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2043 struct buf { int x; };
2044 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2045 static char *e (char **p, int i)
2046 {
2047 return p[i];
2048 }
2049 static char *f (char * (*g) (char **, int), char **p, ...)
2050 {
2051 char *s;
2052 va_list v;
2053 va_start (v,p);
2054 s = g (p, va_arg (v,int));
2055 va_end (v);
2056 return s;
2057 }
2058
2059 /* C89 style stringification. */
2060 #define noexpand_stringify(a) #a
2061 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2062
2063 /* C89 style token pasting. Exercises some of the corner cases that
2064 e.g. old MSVC gets wrong, but not very hard. */
2065 #define noexpand_concat(a,b) a##b
2066 #define expand_concat(a,b) noexpand_concat(a,b)
2067 extern int vA;
2068 extern int vbee;
2069 #define aye A
2070 #define bee B
2071 int *pvA = &expand_concat(v,aye);
2072 int *pvbee = &noexpand_concat(v,bee);
2073
2074 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2075 function prototypes and stuff, but not \xHH hex character constants.
2076 These do not provoke an error unfortunately, instead are silently treated
2077 as an "x". The following induces an error, until -std is added to get
2078 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2079 array size at least. It is necessary to write \x00 == 0 to get something
2080 that is true only with -std. */
2081 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2082
2083 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2084 inside strings and character constants. */
2085 #define FOO(x) '\''x'\''
2086 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2087
2088 int test (int i, double x);
2089 struct s1 {int (*f) (int a);};
2090 struct s2 {int (*f) (double a);};
2091 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2092 int, int);'
2093
2094 # Test code for whether the C compiler supports C89 (body of main).
2095 ac_c_conftest_c89_main='
2096 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2097 '
2098
2099 # Test code for whether the C compiler supports C99 (global declarations)
2100 ac_c_conftest_c99_globals='
2101 /* Does the compiler advertise C99 conformance? */
2102 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2103 # error "Compiler does not advertise C99 conformance"
2104 #endif
2105
2106 // See if C++-style comments work.
2107
2108 #include <stdbool.h>
2109 extern int puts (const char *);
2110 extern int printf (const char *, ...);
2111 extern int dprintf (int, const char *, ...);
2112 extern void *malloc (size_t);
2113 extern void free (void *);
2114
2115 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2116 // dprintf is used instead of fprintf to avoid needing to declare
2117 // FILE and stderr.
2118 #define debug(...) dprintf (2, __VA_ARGS__)
2119 #define showlist(...) puts (#__VA_ARGS__)
2120 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2121 static void
2122 test_varargs_macros (void)
2123 {
2124 int x = 1234;
2125 int y = 5678;
2126 debug ("Flag");
2127 debug ("X = %d\n", x);
2128 showlist (The first, second, and third items.);
2129 report (x>y, "x is %d but y is %d", x, y);
2130 }
2131
2132 // Check long long types.
2133 #define BIG64 18446744073709551615ull
2134 #define BIG32 4294967295ul
2135 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2136 #if !BIG_OK
2137 #error "your preprocessor is broken"
2138 #endif
2139 #if BIG_OK
2140 #else
2141 #error "your preprocessor is broken"
2142 #endif
2143 static long long int bignum = -9223372036854775807LL;
2144 static unsigned long long int ubignum = BIG64;
2145
2146 struct incomplete_array
2147 {
2148 int datasize;
2149 double data[];
2150 };
2151
2152 struct named_init {
2153 int number;
2154 const wchar_t *name;
2155 double average;
2156 };
2157
2158 typedef const char *ccp;
2159
2160 static inline int
2161 test_restrict (ccp restrict text)
2162 {
2163 // Iterate through items via the restricted pointer.
2164 // Also check for declarations in for loops.
2165 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2166 continue;
2167 return 0;
2168 }
2169
2170 // Check varargs and va_copy.
2171 static bool
2172 test_varargs (const char *format, ...)
2173 {
2174 va_list args;
2175 va_start (args, format);
2176 va_list args_copy;
2177 va_copy (args_copy, args);
2178
2179 const char *str = "";
2180 int number = 0;
2181 float fnumber = 0;
2182
2183 while (*format)
2184 {
2185 switch (*format++)
2186 {
2187 case '\''s'\'': // string
2188 str = va_arg (args_copy, const char *);
2189 break;
2190 case '\''d'\'': // int
2191 number = va_arg (args_copy, int);
2192 break;
2193 case '\''f'\'': // float
2194 fnumber = va_arg (args_copy, double);
2195 break;
2196 default:
2197 break;
2198 }
2199 }
2200 va_end (args_copy);
2201 va_end (args);
2202
2203 return *str && number && fnumber;
2204 }
2205 '
2206
2207 # Test code for whether the C compiler supports C99 (body of main).
2208 ac_c_conftest_c99_main='
2209 // Check bool.
2210 _Bool success = false;
2211 success |= (argc != 0);
2212
2213 // Check restrict.
2214 if (test_restrict ("String literal") == 0)
2215 success = true;
2216 char *restrict newvar = "Another string";
2217
2218 // Check varargs.
2219 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2220 test_varargs_macros ();
2221
2222 // Check flexible array members.
2223 struct incomplete_array *ia =
2224 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2225 ia->datasize = 10;
2226 for (int i = 0; i < ia->datasize; ++i)
2227 ia->data[i] = i * 1.234;
2228 // Work around memory leak warnings.
2229 free (ia);
2230
2231 // Check named initializers.
2232 struct named_init ni = {
2233 .number = 34,
2234 .name = L"Test wide string",
2235 .average = 543.34343,
2236 };
2237
2238 ni.number = 58;
2239
2240 int dynamic_array[ni.number];
2241 dynamic_array[0] = argv[0][0];
2242 dynamic_array[ni.number - 1] = 543;
2243
2244 // work around unused variable warnings
2245 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2246 || dynamic_array[ni.number - 1] != 543);
2247 '
2248
2249 # Test code for whether the C compiler supports C11 (global declarations)
2250 ac_c_conftest_c11_globals='
2251 /* Does the compiler advertise C11 conformance? */
2252 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2253 # error "Compiler does not advertise C11 conformance"
2254 #endif
2255
2256 // Check _Alignas.
2257 char _Alignas (double) aligned_as_double;
2258 char _Alignas (0) no_special_alignment;
2259 extern char aligned_as_int;
2260 char _Alignas (0) _Alignas (int) aligned_as_int;
2261
2262 // Check _Alignof.
2263 enum
2264 {
2265 int_alignment = _Alignof (int),
2266 int_array_alignment = _Alignof (int[100]),
2267 char_alignment = _Alignof (char)
2268 };
2269 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2270
2271 // Check _Noreturn.
2272 int _Noreturn does_not_return (void) { for (;;) continue; }
2273
2274 // Check _Static_assert.
2275 struct test_static_assert
2276 {
2277 int x;
2278 _Static_assert (sizeof (int) <= sizeof (long int),
2279 "_Static_assert does not work in struct");
2280 long int y;
2281 };
2282
2283 // Check UTF-8 literals.
2284 #define u8 syntax error!
2285 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2286
2287 // Check duplicate typedefs.
2288 typedef long *long_ptr;
2289 typedef long int *long_ptr;
2290 typedef long_ptr long_ptr;
2291
2292 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2293 struct anonymous
2294 {
2295 union {
2296 struct { int i; int j; };
2297 struct { int k; long int l; } w;
2298 };
2299 int m;
2300 } v1;
2301 '
2302
2303 # Test code for whether the C compiler supports C11 (body of main).
2304 ac_c_conftest_c11_main='
2305 _Static_assert ((offsetof (struct anonymous, i)
2306 == offsetof (struct anonymous, w.k)),
2307 "Anonymous union alignment botch");
2308 v1.i = 2;
2309 v1.w.k = 5;
2310 ok |= v1.i != 5;
2311 '
2312
2313 # Test code for whether the C compiler supports C11 (complete).
2314 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2315 ${ac_c_conftest_c99_globals}
2316 ${ac_c_conftest_c11_globals}
2317
2318 int
2319 main (int argc, char **argv)
2320 {
2321 int ok = 0;
2322 ${ac_c_conftest_c89_main}
2323 ${ac_c_conftest_c99_main}
2324 ${ac_c_conftest_c11_main}
2325 return ok;
2326 }
2327 "
2328
2329 # Test code for whether the C compiler supports C99 (complete).
2330 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2331 ${ac_c_conftest_c99_globals}
2332
2333 int
2334 main (int argc, char **argv)
2335 {
2336 int ok = 0;
2337 ${ac_c_conftest_c89_main}
2338 ${ac_c_conftest_c99_main}
2339 return ok;
2340 }
2341 "
2342
2343 # Test code for whether the C compiler supports C89 (complete).
2344 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2345
2346 int
2347 main (int argc, char **argv)
2348 {
2349 int ok = 0;
2350 ${ac_c_conftest_c89_main}
2351 return ok;
2352 }
2353 "
2354
2355 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2356 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2357 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2358 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2359 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2360 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2361 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2362 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2363 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2364 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
2365
2366 # Auxiliary files required by this configure script.
2367 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2368
2369 # Locations in which to look for auxiliary files.
2370 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2371
2372 # Search for a directory containing all of the required auxiliary files,
2373 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2374 # If we don't find one directory that contains all the files we need,
2375 # we report the set of missing files from the *first* directory in
2376 # $ac_aux_dir_candidates and give up.
2377 ac_missing_aux_files=""
2378 ac_first_candidate=:
2379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 as_found=false
2382 for as_dir in $ac_aux_dir_candidates
2383 do
2384 IFS=$as_save_IFS
2385 case $as_dir in #(((
2386 '') as_dir=./ ;;
2387 */) ;;
2388 *) as_dir=$as_dir/ ;;
2389 esac
2390 as_found=:
2391
2392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2393 ac_aux_dir_found=yes
2394 ac_install_sh=
2395 for ac_aux in $ac_aux_files
2396 do
2397 # As a special case, if "install-sh" is required, that requirement
2398 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2399 # and $ac_install_sh is set appropriately for whichever one is found.
2400 if test x"$ac_aux" = x"install-sh"
2401 then
2402 if test -f "${as_dir}install-sh"; then
2403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2404 ac_install_sh="${as_dir}install-sh -c"
2405 elif test -f "${as_dir}install.sh"; then
2406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2407 ac_install_sh="${as_dir}install.sh -c"
2408 elif test -f "${as_dir}shtool"; then
2409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2410 ac_install_sh="${as_dir}shtool install -c"
2411 else
2412 ac_aux_dir_found=no
2413 if $ac_first_candidate; then
2414 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2415 else
2416 break
2417 fi
2418 fi
2419 else
2420 if test -f "${as_dir}${ac_aux}"; then
2421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2422 else
2423 ac_aux_dir_found=no
2424 if $ac_first_candidate; then
2425 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2426 else
2427 break
2428 fi
2429 fi
2430 fi
2431 done
2432 if test "$ac_aux_dir_found" = yes; then
2433 ac_aux_dir="$as_dir"
2434 break
2435 fi
2436 ac_first_candidate=false
2437
2438 as_found=false
2439 done
2440 IFS=$as_save_IFS
2441 if $as_found
2442 then :
2443
2444 else case e in #(
2445 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2446 esac
2447 fi
2448
2449
2450 # These three variables are undocumented and unsupported,
2451 # and are intended to be withdrawn in a future Autoconf release.
2452 # They can cause serious problems if a builder's source tree is in a directory
2453 # whose full name contains unusual characters.
2454 if test -f "${ac_aux_dir}config.guess"; then
2455 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2456 fi
2457 if test -f "${ac_aux_dir}config.sub"; then
2458 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2459 fi
2460 if test -f "$ac_aux_dir/configure"; then
2461 ac_configure="$SHELL ${ac_aux_dir}configure"
2462 fi
2463
2464 # Check that the precious variables saved in the cache have kept the same
2465 # value.
2466 ac_cache_corrupted=false
2467 for ac_var in $ac_precious_vars; do
2468 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2469 eval ac_new_set=\$ac_env_${ac_var}_set
2470 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2471 eval ac_new_val=\$ac_env_${ac_var}_value
2472 case $ac_old_set,$ac_new_set in
2473 set,)
2474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2475 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2476 ac_cache_corrupted=: ;;
2477 ,set)
2478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2479 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2480 ac_cache_corrupted=: ;;
2481 ,);;
2482 *)
2483 if test "x$ac_old_val" != "x$ac_new_val"; then
2484 # differences in whitespace do not lead to failure.
2485 ac_old_val_w=`echo x $ac_old_val`
2486 ac_new_val_w=`echo x $ac_new_val`
2487 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2489 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2490 ac_cache_corrupted=:
2491 else
2492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2493 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2494 eval $ac_var=\$ac_old_val
2495 fi
2496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2497 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2499 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2500 fi;;
2501 esac
2502 # Pass precious variables to config.status.
2503 if test "$ac_new_set" = set; then
2504 case $ac_new_val in
2505 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2506 *) ac_arg=$ac_var=$ac_new_val ;;
2507 esac
2508 case " $ac_configure_args " in
2509 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2510 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2511 esac
2512 fi
2513 done
2514 if $ac_cache_corrupted; then
2515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2516 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2518 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2519 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2520 and start over" "$LINENO" 5
2521 fi
2522 ## -------------------- ##
2523 ## Main body of script. ##
2524 ## -------------------- ##
2525
2526 ac_ext=c
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531
2532
2533
2534 am__api_version='1.17'
2535
2536
2537
2538 # Find a good install program. We prefer a C program (faster),
2539 # so one script is as good as another. But avoid the broken or
2540 # incompatible versions:
2541 # SysV /etc/install, /usr/sbin/install
2542 # SunOS /usr/etc/install
2543 # IRIX /sbin/install
2544 # AIX /bin/install
2545 # AmigaOS /C/install, which installs bootblocks on floppy discs
2546 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2547 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2548 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2549 # OS/2's system install, which has a completely different semantic
2550 # ./install, which can be erroneously created by make from ./install.sh.
2551 # Reject install programs that cannot install multiple files.
2552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2553 printf %s "checking for a BSD-compatible install... " >&6; }
2554 if test -z "$INSTALL"; then
2555 if test ${ac_cv_path_install+y}
2556 then :
2557 printf %s "(cached) " >&6
2558 else case e in #(
2559 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562 IFS=$as_save_IFS
2563 case $as_dir in #(((
2564 '') as_dir=./ ;;
2565 */) ;;
2566 *) as_dir=$as_dir/ ;;
2567 esac
2568 # Account for fact that we put trailing slashes in our PATH walk.
2569 case $as_dir in #((
2570 ./ | /[cC]/* | \
2571 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2572 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2573 /usr/ucb/* ) ;;
2574 *)
2575 # OSF1 and SCO ODT 3.0 have their own names for install.
2576 # Don't use installbsd from OSF since it installs stuff as root
2577 # by default.
2578 for ac_prog in ginstall scoinst install; do
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2581 if test $ac_prog = install &&
2582 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2583 # AIX install. It has an incompatible calling convention.
2584 :
2585 elif test $ac_prog = install &&
2586 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2587 # program-specific install script used by HP pwplus--don't use.
2588 :
2589 else
2590 rm -rf conftest.one conftest.two conftest.dir
2591 echo one > conftest.one
2592 echo two > conftest.two
2593 mkdir conftest.dir
2594 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2595 test -s conftest.one && test -s conftest.two &&
2596 test -s conftest.dir/conftest.one &&
2597 test -s conftest.dir/conftest.two
2598 then
2599 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2600 break 3
2601 fi
2602 fi
2603 fi
2604 done
2605 done
2606 ;;
2607 esac
2608
2609 done
2610 IFS=$as_save_IFS
2611
2612 rm -rf conftest.one conftest.two conftest.dir
2613 ;;
2614 esac
2615 fi
2616 if test ${ac_cv_path_install+y}; then
2617 INSTALL=$ac_cv_path_install
2618 else
2619 # As a last resort, use the slow shell script. Don't cache a
2620 # value for INSTALL within a source directory, because that will
2621 # break other packages using the cache if that directory is
2622 # removed, or if the value is a relative name.
2623 INSTALL=$ac_install_sh
2624 fi
2625 fi
2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2627 printf "%s\n" "$INSTALL" >&6; }
2628
2629 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2630 # It thinks the first close brace ends the variable substitution.
2631 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2632
2633 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2634
2635 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2636
2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2638 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2639 if test ${am_cv_sleep_fractional_seconds+y}
2640 then :
2641 printf %s "(cached) " >&6
2642 else case e in #(
2643 e) if sleep 0.001 2>/dev/null
2644 then :
2645 am_cv_sleep_fractional_seconds=yes
2646 else case e in #(
2647 e) am_cv_sleep_fractional_seconds=no ;;
2648 esac
2649 fi
2650 ;;
2651 esac
2652 fi
2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2654 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2655
2656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2657 printf %s "checking filesystem timestamp resolution... " >&6; }
2658 if test ${am_cv_filesystem_timestamp_resolution+y}
2659 then :
2660 printf %s "(cached) " >&6
2661 else case e in #(
2662 e) # Default to the worst case.
2663 am_cv_filesystem_timestamp_resolution=2
2664
2665 # Only try to go finer than 1 sec if sleep can do it.
2666 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2667 # - 1 sec is not much of a win compared to 2 sec, and
2668 # - it takes 2 seconds to perform the test whether 1 sec works.
2669 #
2670 # Instead, just use the default 2s on platforms that have 1s resolution,
2671 # accept the extra 1s delay when using $sleep in the Automake tests, in
2672 # exchange for not incurring the 2s delay for running the test for all
2673 # packages.
2674 #
2675 am_try_resolutions=
2676 if test "$am_cv_sleep_fractional_seconds" = yes; then
2677 # Even a millisecond often causes a bunch of false positives,
2678 # so just try a hundredth of a second. The time saved between .001 and
2679 # .01 is not terribly consequential.
2680 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2681 fi
2682
2683 # In order to catch current-generation FAT out, we must *modify* files
2684 # that already exist; the *creation* timestamp is finer. Use names
2685 # that make ls -t sort them differently when they have equal
2686 # timestamps than when they have distinct timestamps, keeping
2687 # in mind that ls -t prints the *newest* file first.
2688 rm -f conftest.ts?
2689 : > conftest.ts1
2690 : > conftest.ts2
2691 : > conftest.ts3
2692
2693 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2694 # clobber the current shell's arguments. (Outer-level square brackets
2695 # are removed by m4; they're present so that m4 does not expand
2696 # <dollar><star>; be careful, easy to get confused.)
2697 if (
2698 set X `ls -t conftest.ts[12]` &&
2699 {
2700 test "$*" != "X conftest.ts1 conftest.ts2" ||
2701 test "$*" != "X conftest.ts2 conftest.ts1";
2702 }
2703 ); then :; else
2704 # If neither matched, then we have a broken ls. This can happen
2705 # if, for instance, CONFIG_SHELL is bash and it inherits a
2706 # broken ls alias from the environment. This has actually
2707 # happened. Such a system could not be considered "sane".
2708 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2709 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2710 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2711 as_fn_error $? "ls -t produces unexpected output.
2712 Make sure there is not a broken ls alias in your environment.
2713 See 'config.log' for more details" "$LINENO" 5; }
2714 fi
2715
2716 for am_try_res in $am_try_resolutions; do
2717 # Any one fine-grained sleep might happen to cross the boundary
2718 # between two values of a coarser actual resolution, but if we do
2719 # two fine-grained sleeps in a row, at least one of them will fall
2720 # entirely within a coarse interval.
2721 echo alpha > conftest.ts1
2722 sleep $am_try_res
2723 echo beta > conftest.ts2
2724 sleep $am_try_res
2725 echo gamma > conftest.ts3
2726
2727 # We assume that 'ls -t' will make use of high-resolution
2728 # timestamps if the operating system supports them at all.
2729 if (set X `ls -t conftest.ts?` &&
2730 test "$2" = conftest.ts3 &&
2731 test "$3" = conftest.ts2 &&
2732 test "$4" = conftest.ts1); then
2733 #
2734 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2735 # because we don't need to test make.
2736 make_ok=true
2737 if test $am_try_res != 1; then
2738 # But if we've succeeded so far with a subsecond resolution, we
2739 # have one more thing to check: make. It can happen that
2740 # everything else supports the subsecond mtimes, but make doesn't;
2741 # notably on macOS, which ships make 3.81 from 2006 (the last one
2742 # released under GPLv2). https://bugs.gnu.org/68808
2743 #
2744 # We test $MAKE if it is defined in the environment, else "make".
2745 # It might get overridden later, but our hope is that in practice
2746 # it does not matter: it is the system "make" which is (by far)
2747 # the most likely to be broken, whereas if the user overrides it,
2748 # probably they did so with a better, or at least not worse, make.
2749 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2750 #
2751 # Create a Makefile (real tab character here):
2752 rm -f conftest.mk
2753 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2754 echo ' touch conftest.ts2' >>conftest.mk
2755 #
2756 # Now, running
2757 # touch conftest.ts1; touch conftest.ts2; make
2758 # should touch ts1 because ts2 is newer. This could happen by luck,
2759 # but most often, it will fail if make's support is insufficient. So
2760 # test for several consecutive successes.
2761 #
2762 # (We reuse conftest.ts[12] because we still want to modify existing
2763 # files, not create new ones, per above.)
2764 n=0
2765 make=${MAKE-make}
2766 until test $n -eq 3; do
2767 echo one > conftest.ts1
2768 sleep $am_try_res
2769 echo two > conftest.ts2 # ts2 should now be newer than ts1
2770 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2771 make_ok=false
2772 break # out of $n loop
2773 fi
2774 n=`expr $n + 1`
2775 done
2776 fi
2777 #
2778 if $make_ok; then
2779 # Everything we know to check worked out, so call this resolution good.
2780 am_cv_filesystem_timestamp_resolution=$am_try_res
2781 break # out of $am_try_res loop
2782 fi
2783 # Otherwise, we'll go on to check the next resolution.
2784 fi
2785 done
2786 rm -f conftest.ts?
2787 # (end _am_filesystem_timestamp_resolution)
2788 ;;
2789 esac
2790 fi
2791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2792 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2793
2794 # This check should not be cached, as it may vary across builds of
2795 # different projects.
2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2797 printf %s "checking whether build environment is sane... " >&6; }
2798 # Reject unsafe characters in $srcdir or the absolute working directory
2799 # name. Accept space and tab only in the latter.
2800 am_lf='
2801 '
2802 case `pwd` in
2803 *[\\\"\#\$\&\'\`$am_lf]*)
2804 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2805 esac
2806 case $srcdir in
2807 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2808 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2809 esac
2810
2811 # Do 'set' in a subshell so we don't clobber the current shell's
2812 # arguments. Must try -L first in case configure is actually a
2813 # symlink; some systems play weird games with the mod time of symlinks
2814 # (eg FreeBSD returns the mod time of the symlink's containing
2815 # directory).
2816 am_build_env_is_sane=no
2817 am_has_slept=no
2818 rm -f conftest.file
2819 for am_try in 1 2; do
2820 echo "timestamp, slept: $am_has_slept" > conftest.file
2821 if (
2822 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2823 if test "$*" = "X"; then
2824 # -L didn't work.
2825 set X `ls -t "$srcdir/configure" conftest.file`
2826 fi
2827 test "$2" = conftest.file
2828 ); then
2829 am_build_env_is_sane=yes
2830 break
2831 fi
2832 # Just in case.
2833 sleep "$am_cv_filesystem_timestamp_resolution"
2834 am_has_slept=yes
2835 done
2836
2837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2838 printf "%s\n" "$am_build_env_is_sane" >&6; }
2839 if test "$am_build_env_is_sane" = no; then
2840 as_fn_error $? "newly created file is older than distributed files!
2841 Check your system clock" "$LINENO" 5
2842 fi
2843
2844 # If we didn't sleep, we still need to ensure time stamps of config.status and
2845 # generated files are strictly newer.
2846 am_sleep_pid=
2847 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2848 then :
2849
2850 else case e in #(
2851 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2852 am_sleep_pid=$!
2853 ;;
2854 esac
2855 fi
2856
2857 rm -f conftest.file
2858
2859 test "$program_prefix" != NONE &&
2860 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2861 # Use a double $ so make ignores it.
2862 test "$program_suffix" != NONE &&
2863 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2864 # Double any \ or $.
2865 # By default was 's,x,x', remove it if useless.
2866 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2867 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2868
2869
2870 # Expand $ac_aux_dir to an absolute path.
2871 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2872
2873
2874 if test x"${MISSING+set}" != xset; then
2875 MISSING="\${SHELL} '$am_aux_dir/missing'"
2876 fi
2877 # Use eval to expand $SHELL
2878 if eval "$MISSING --is-lightweight"; then
2879 am_missing_run="$MISSING "
2880 else
2881 am_missing_run=
2882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2883 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2884 fi
2885
2886 if test x"${install_sh+set}" != xset; then
2887 case $am_aux_dir in
2888 *\ * | *\ *)
2889 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2890 *)
2891 install_sh="\${SHELL} $am_aux_dir/install-sh"
2892 esac
2893 fi
2894
2895 # Installed binaries are usually stripped using 'strip' when the user
2896 # run "make install-strip". However 'strip' might not be the right
2897 # tool to use in cross-compilation environments, therefore Automake
2898 # will honor the 'STRIP' environment variable to overrule this program.
2899 if test "$cross_compiling" != no; then
2900 if test -n "$ac_tool_prefix"; then
2901 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2902 set dummy ${ac_tool_prefix}strip; ac_word=$2
2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 printf %s "checking for $ac_word... " >&6; }
2905 if test ${ac_cv_prog_STRIP+y}
2906 then :
2907 printf %s "(cached) " >&6
2908 else case e in #(
2909 e) if test -n "$STRIP"; then
2910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2914 do
2915 IFS=$as_save_IFS
2916 case $as_dir in #(((
2917 '') as_dir=./ ;;
2918 */) ;;
2919 *) as_dir=$as_dir/ ;;
2920 esac
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2923 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2925 break 2
2926 fi
2927 done
2928 done
2929 IFS=$as_save_IFS
2930
2931 fi ;;
2932 esac
2933 fi
2934 STRIP=$ac_cv_prog_STRIP
2935 if test -n "$STRIP"; then
2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2937 printf "%s\n" "$STRIP" >&6; }
2938 else
2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 printf "%s\n" "no" >&6; }
2941 fi
2942
2943
2944 fi
2945 if test -z "$ac_cv_prog_STRIP"; then
2946 ac_ct_STRIP=$STRIP
2947 # Extract the first word of "strip", so it can be a program name with args.
2948 set dummy strip; ac_word=$2
2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 printf %s "checking for $ac_word... " >&6; }
2951 if test ${ac_cv_prog_ac_ct_STRIP+y}
2952 then :
2953 printf %s "(cached) " >&6
2954 else case e in #(
2955 e) if test -n "$ac_ct_STRIP"; then
2956 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2960 do
2961 IFS=$as_save_IFS
2962 case $as_dir in #(((
2963 '') as_dir=./ ;;
2964 */) ;;
2965 *) as_dir=$as_dir/ ;;
2966 esac
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2969 ac_cv_prog_ac_ct_STRIP="strip"
2970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2971 break 2
2972 fi
2973 done
2974 done
2975 IFS=$as_save_IFS
2976
2977 fi ;;
2978 esac
2979 fi
2980 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2981 if test -n "$ac_ct_STRIP"; then
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2983 printf "%s\n" "$ac_ct_STRIP" >&6; }
2984 else
2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 printf "%s\n" "no" >&6; }
2987 fi
2988
2989 if test "x$ac_ct_STRIP" = x; then
2990 STRIP=":"
2991 else
2992 case $cross_compiling:$ac_tool_warned in
2993 yes:)
2994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2995 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2996 ac_tool_warned=yes ;;
2997 esac
2998 STRIP=$ac_ct_STRIP
2999 fi
3000 else
3001 STRIP="$ac_cv_prog_STRIP"
3002 fi
3003
3004 fi
3005 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3006
3007
3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3009 printf %s "checking for a race-free mkdir -p... " >&6; }
3010 if test -z "$MKDIR_P"; then
3011 if test ${ac_cv_path_mkdir+y}
3012 then :
3013 printf %s "(cached) " >&6
3014 else case e in #(
3015 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3017 do
3018 IFS=$as_save_IFS
3019 case $as_dir in #(((
3020 '') as_dir=./ ;;
3021 */) ;;
3022 *) as_dir=$as_dir/ ;;
3023 esac
3024 for ac_prog in mkdir gmkdir; do
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3027 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3028 'mkdir ('*'coreutils) '* | \
3029 *'BusyBox '* | \
3030 'mkdir (fileutils) '4.1*)
3031 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3032 break 3;;
3033 esac
3034 done
3035 done
3036 done
3037 IFS=$as_save_IFS
3038 ;;
3039 esac
3040 fi
3041
3042 test -d ./--version && rmdir ./--version
3043 if test ${ac_cv_path_mkdir+y}; then
3044 MKDIR_P="$ac_cv_path_mkdir -p"
3045 else
3046 # As a last resort, use plain mkdir -p,
3047 # in the hope it doesn't have the bugs of ancient mkdir.
3048 MKDIR_P='mkdir -p'
3049 fi
3050 fi
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3052 printf "%s\n" "$MKDIR_P" >&6; }
3053
3054 for ac_prog in gawk mawk nawk awk
3055 do
3056 # Extract the first word of "$ac_prog", so it can be a program name with args.
3057 set dummy $ac_prog; ac_word=$2
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 printf %s "checking for $ac_word... " >&6; }
3060 if test ${ac_cv_prog_AWK+y}
3061 then :
3062 printf %s "(cached) " >&6
3063 else case e in #(
3064 e) if test -n "$AWK"; then
3065 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070 IFS=$as_save_IFS
3071 case $as_dir in #(((
3072 '') as_dir=./ ;;
3073 */) ;;
3074 *) as_dir=$as_dir/ ;;
3075 esac
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_AWK="$ac_prog"
3079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084 IFS=$as_save_IFS
3085
3086 fi ;;
3087 esac
3088 fi
3089 AWK=$ac_cv_prog_AWK
3090 if test -n "$AWK"; then
3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3092 printf "%s\n" "$AWK" >&6; }
3093 else
3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 printf "%s\n" "no" >&6; }
3096 fi
3097
3098
3099 test -n "$AWK" && break
3100 done
3101
3102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3103 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3104 set x ${MAKE-make}
3105 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3106 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3107 then :
3108 printf %s "(cached) " >&6
3109 else case e in #(
3110 e) cat >conftest.make <<\_ACEOF
3111 SHELL = /bin/sh
3112 all:
3113 @echo '@@@%%%=$(MAKE)=@@@%%%'
3114 _ACEOF
3115 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3116 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3117 *@@@%%%=?*=@@@%%%*)
3118 eval ac_cv_prog_make_${ac_make}_set=yes;;
3119 *)
3120 eval ac_cv_prog_make_${ac_make}_set=no;;
3121 esac
3122 rm -f conftest.make ;;
3123 esac
3124 fi
3125 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3127 printf "%s\n" "yes" >&6; }
3128 SET_MAKE=
3129 else
3130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 printf "%s\n" "no" >&6; }
3132 SET_MAKE="MAKE=${MAKE-make}"
3133 fi
3134
3135 rm -rf .tst 2>/dev/null
3136 mkdir .tst 2>/dev/null
3137 if test -d .tst; then
3138 am__leading_dot=.
3139 else
3140 am__leading_dot=_
3141 fi
3142 rmdir .tst 2>/dev/null
3143
3144 AM_DEFAULT_VERBOSITY=1
3145 # Check whether --enable-silent-rules was given.
3146 if test ${enable_silent_rules+y}
3147 then :
3148 enableval=$enable_silent_rules;
3149 fi
3150
3151 am_make=${MAKE-make}
3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3153 printf %s "checking whether $am_make supports nested variables... " >&6; }
3154 if test ${am_cv_make_support_nested_variables+y}
3155 then :
3156 printf %s "(cached) " >&6
3157 else case e in #(
3158 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3159 BAR0=false
3160 BAR1=true
3161 V=1
3162 am__doit:
3163 @$(TRUE)
3164 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3165 am_cv_make_support_nested_variables=yes
3166 else
3167 am_cv_make_support_nested_variables=no
3168 fi ;;
3169 esac
3170 fi
3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3172 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3173 AM_BACKSLASH='\'
3174
3175 am__rm_f_notfound=
3176 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3177 then :
3178
3179 else case e in #(
3180 e) am__rm_f_notfound='""' ;;
3181 esac
3182 fi
3183
3184
3185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3186 printf %s "checking xargs -n works... " >&6; }
3187 if test ${am_cv_xargs_n_works+y}
3188 then :
3189 printf %s "(cached) " >&6
3190 else case e in #(
3191 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3192 3"
3193 then :
3194 am_cv_xargs_n_works=yes
3195 else case e in #(
3196 e) am_cv_xargs_n_works=no ;;
3197 esac
3198 fi ;;
3199 esac
3200 fi
3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3202 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3203 if test "$am_cv_xargs_n_works" = yes
3204 then :
3205 am__xargs_n='xargs -n'
3206 else case e in #(
3207 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3208 ;;
3209 esac
3210 fi
3211
3212 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3213 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3214 # is not polluted with repeated "-I."
3215 am__isrc=' -I$(srcdir)'
3216 # test to see if srcdir already configured
3217 if test -f $srcdir/config.status; then
3218 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3219 fi
3220 fi
3221
3222 # test whether we have cygpath
3223 if test -z "$CYGPATH_W"; then
3224 if (cygpath --version) >/dev/null 2>/dev/null; then
3225 CYGPATH_W='cygpath -w'
3226 else
3227 CYGPATH_W=echo
3228 fi
3229 fi
3230
3231
3232 # Define the identity of the package.
3233 PACKAGE='tap'
3234 VERSION='1.01'
3235
3236
3237 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3238
3239
3240 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3241
3242 # Some tools Automake needs.
3243
3244 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3245
3246
3247 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3248
3249
3250 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3251
3252
3253 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3254
3255
3256 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3257
3258 # For better backward compatibility. To be removed once Automake 1.9.x
3259 # dies out for good. For more background, see:
3260 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3261 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3262 mkdir_p='$(MKDIR_P)'
3263
3264 # We need awk for the "check" target (and possibly the TAP driver). The
3265 # system "awk" is bad on some platforms.
3266 # Always define AMTAR for backward compatibility. Yes, it's still used
3267 # in the wild :-( We should find a proper way to deprecate it ...
3268 AMTAR='$${TAR-tar}'
3269
3270
3271 # We'll loop over all known methods to create a tar archive until one works.
3272 _am_tools='gnutar pax cpio none'
3273
3274 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3275
3276
3277
3278
3279
3280 # Variables for tags utilities; see am/tags.am
3281 if test -z "$CTAGS"; then
3282 CTAGS=ctags
3283 fi
3284
3285 if test -z "$ETAGS"; then
3286 ETAGS=etags
3287 fi
3288
3289 if test -z "$CSCOPE"; then
3290 CSCOPE=cscope
3291 fi
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308 ac_ext=c
3309 ac_cpp='$CPP $CPPFLAGS'
3310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3313 if test -n "$ac_tool_prefix"; then
3314 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3315 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 printf %s "checking for $ac_word... " >&6; }
3318 if test ${ac_cv_prog_CC+y}
3319 then :
3320 printf %s "(cached) " >&6
3321 else case e in #(
3322 e) if test -n "$CC"; then
3323 ac_cv_prog_CC="$CC" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328 IFS=$as_save_IFS
3329 case $as_dir in #(((
3330 '') as_dir=./ ;;
3331 */) ;;
3332 *) as_dir=$as_dir/ ;;
3333 esac
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3336 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3338 break 2
3339 fi
3340 done
3341 done
3342 IFS=$as_save_IFS
3343
3344 fi ;;
3345 esac
3346 fi
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 printf "%s\n" "$CC" >&6; }
3351 else
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 printf "%s\n" "no" >&6; }
3354 fi
3355
3356
3357 fi
3358 if test -z "$ac_cv_prog_CC"; then
3359 ac_ct_CC=$CC
3360 # Extract the first word of "gcc", so it can be a program name with args.
3361 set dummy gcc; ac_word=$2
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 printf %s "checking for $ac_word... " >&6; }
3364 if test ${ac_cv_prog_ac_ct_CC+y}
3365 then :
3366 printf %s "(cached) " >&6
3367 else case e in #(
3368 e) if test -n "$ac_ct_CC"; then
3369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3370 else
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3373 do
3374 IFS=$as_save_IFS
3375 case $as_dir in #(((
3376 '') as_dir=./ ;;
3377 */) ;;
3378 *) as_dir=$as_dir/ ;;
3379 esac
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3382 ac_cv_prog_ac_ct_CC="gcc"
3383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3384 break 2
3385 fi
3386 done
3387 done
3388 IFS=$as_save_IFS
3389
3390 fi ;;
3391 esac
3392 fi
3393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3394 if test -n "$ac_ct_CC"; then
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3396 printf "%s\n" "$ac_ct_CC" >&6; }
3397 else
3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 printf "%s\n" "no" >&6; }
3400 fi
3401
3402 if test "x$ac_ct_CC" = x; then
3403 CC=""
3404 else
3405 case $cross_compiling:$ac_tool_warned in
3406 yes:)
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3408 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3409 ac_tool_warned=yes ;;
3410 esac
3411 CC=$ac_ct_CC
3412 fi
3413 else
3414 CC="$ac_cv_prog_CC"
3415 fi
3416
3417 if test -z "$CC"; then
3418 if test -n "$ac_tool_prefix"; then
3419 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3420 set dummy ${ac_tool_prefix}cc; ac_word=$2
3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 printf %s "checking for $ac_word... " >&6; }
3423 if test ${ac_cv_prog_CC+y}
3424 then :
3425 printf %s "(cached) " >&6
3426 else case e in #(
3427 e) if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433 IFS=$as_save_IFS
3434 case $as_dir in #(((
3435 '') as_dir=./ ;;
3436 */) ;;
3437 *) as_dir=$as_dir/ ;;
3438 esac
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3441 ac_cv_prog_CC="${ac_tool_prefix}cc"
3442 printf "%s\n" "$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 fi ;;
3450 esac
3451 fi
3452 CC=$ac_cv_prog_CC
3453 if test -n "$CC"; then
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455 printf "%s\n" "$CC" >&6; }
3456 else
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 printf "%s\n" "no" >&6; }
3459 fi
3460
3461
3462 fi
3463 fi
3464 if test -z "$CC"; then
3465 # Extract the first word of "cc", so it can be a program name with args.
3466 set dummy cc; ac_word=$2
3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468 printf %s "checking for $ac_word... " >&6; }
3469 if test ${ac_cv_prog_CC+y}
3470 then :
3471 printf %s "(cached) " >&6
3472 else case e in #(
3473 e) if test -n "$CC"; then
3474 ac_cv_prog_CC="$CC" # Let the user override the test.
3475 else
3476 ac_prog_rejected=no
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3479 do
3480 IFS=$as_save_IFS
3481 case $as_dir in #(((
3482 '') as_dir=./ ;;
3483 */) ;;
3484 *) as_dir=$as_dir/ ;;
3485 esac
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3488 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3489 ac_prog_rejected=yes
3490 continue
3491 fi
3492 ac_cv_prog_CC="cc"
3493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3494 break 2
3495 fi
3496 done
3497 done
3498 IFS=$as_save_IFS
3499
3500 if test $ac_prog_rejected = yes; then
3501 # We found a bogon in the path, so make sure we never use it.
3502 set dummy $ac_cv_prog_CC
3503 shift
3504 if test $# != 0; then
3505 # We chose a different compiler from the bogus one.
3506 # However, it has the same basename, so the bogon will be chosen
3507 # first if we set CC to just the basename; use the full file name.
3508 shift
3509 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3510 fi
3511 fi
3512 fi ;;
3513 esac
3514 fi
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518 printf "%s\n" "$CC" >&6; }
3519 else
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 printf "%s\n" "no" >&6; }
3522 fi
3523
3524
3525 fi
3526 if test -z "$CC"; then
3527 if test -n "$ac_tool_prefix"; then
3528 for ac_prog in cl.exe
3529 do
3530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533 printf %s "checking for $ac_word... " >&6; }
3534 if test ${ac_cv_prog_CC+y}
3535 then :
3536 printf %s "(cached) " >&6
3537 else case e in #(
3538 e) if test -n "$CC"; then
3539 ac_cv_prog_CC="$CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544 IFS=$as_save_IFS
3545 case $as_dir in #(((
3546 '') as_dir=./ ;;
3547 */) ;;
3548 *) as_dir=$as_dir/ ;;
3549 esac
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556 done
3557 done
3558 IFS=$as_save_IFS
3559
3560 fi ;;
3561 esac
3562 fi
3563 CC=$ac_cv_prog_CC
3564 if test -n "$CC"; then
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3566 printf "%s\n" "$CC" >&6; }
3567 else
3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 printf "%s\n" "no" >&6; }
3570 fi
3571
3572
3573 test -n "$CC" && break
3574 done
3575 fi
3576 if test -z "$CC"; then
3577 ac_ct_CC=$CC
3578 for ac_prog in cl.exe
3579 do
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; ac_word=$2
3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 printf %s "checking for $ac_word... " >&6; }
3584 if test ${ac_cv_prog_ac_ct_CC+y}
3585 then :
3586 printf %s "(cached) " >&6
3587 else case e in #(
3588 e) if test -n "$ac_ct_CC"; then
3589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594 IFS=$as_save_IFS
3595 case $as_dir in #(((
3596 '') as_dir=./ ;;
3597 */) ;;
3598 *) as_dir=$as_dir/ ;;
3599 esac
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_ac_ct_CC="$ac_prog"
3603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3604 break 2
3605 fi
3606 done
3607 done
3608 IFS=$as_save_IFS
3609
3610 fi ;;
3611 esac
3612 fi
3613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3614 if test -n "$ac_ct_CC"; then
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3616 printf "%s\n" "$ac_ct_CC" >&6; }
3617 else
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 printf "%s\n" "no" >&6; }
3620 fi
3621
3622
3623 test -n "$ac_ct_CC" && break
3624 done
3625
3626 if test "x$ac_ct_CC" = x; then
3627 CC=""
3628 else
3629 case $cross_compiling:$ac_tool_warned in
3630 yes:)
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3632 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3633 ac_tool_warned=yes ;;
3634 esac
3635 CC=$ac_ct_CC
3636 fi
3637 fi
3638
3639 fi
3640 if test -z "$CC"; then
3641 if test -n "$ac_tool_prefix"; then
3642 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3643 set dummy ${ac_tool_prefix}clang; ac_word=$2
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 printf %s "checking for $ac_word... " >&6; }
3646 if test ${ac_cv_prog_CC+y}
3647 then :
3648 printf %s "(cached) " >&6
3649 else case e in #(
3650 e) if test -n "$CC"; then
3651 ac_cv_prog_CC="$CC" # Let the user override the test.
3652 else
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3655 do
3656 IFS=$as_save_IFS
3657 case $as_dir in #(((
3658 '') as_dir=./ ;;
3659 */) ;;
3660 *) as_dir=$as_dir/ ;;
3661 esac
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_CC="${ac_tool_prefix}clang"
3665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3666 break 2
3667 fi
3668 done
3669 done
3670 IFS=$as_save_IFS
3671
3672 fi ;;
3673 esac
3674 fi
3675 CC=$ac_cv_prog_CC
3676 if test -n "$CC"; then
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678 printf "%s\n" "$CC" >&6; }
3679 else
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 printf "%s\n" "no" >&6; }
3682 fi
3683
3684
3685 fi
3686 if test -z "$ac_cv_prog_CC"; then
3687 ac_ct_CC=$CC
3688 # Extract the first word of "clang", so it can be a program name with args.
3689 set dummy clang; ac_word=$2
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 printf %s "checking for $ac_word... " >&6; }
3692 if test ${ac_cv_prog_ac_ct_CC+y}
3693 then :
3694 printf %s "(cached) " >&6
3695 else case e in #(
3696 e) if test -n "$ac_ct_CC"; then
3697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702 IFS=$as_save_IFS
3703 case $as_dir in #(((
3704 '') as_dir=./ ;;
3705 */) ;;
3706 *) as_dir=$as_dir/ ;;
3707 esac
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3710 ac_cv_prog_ac_ct_CC="clang"
3711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3712 break 2
3713 fi
3714 done
3715 done
3716 IFS=$as_save_IFS
3717
3718 fi ;;
3719 esac
3720 fi
3721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3724 printf "%s\n" "$ac_ct_CC" >&6; }
3725 else
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 printf "%s\n" "no" >&6; }
3728 fi
3729
3730 if test "x$ac_ct_CC" = x; then
3731 CC=""
3732 else
3733 case $cross_compiling:$ac_tool_warned in
3734 yes:)
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3736 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3737 ac_tool_warned=yes ;;
3738 esac
3739 CC=$ac_ct_CC
3740 fi
3741 else
3742 CC="$ac_cv_prog_CC"
3743 fi
3744
3745 fi
3746
3747
3748 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3749 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3750 as_fn_error $? "no acceptable C compiler found in \$PATH
3751 See 'config.log' for more details" "$LINENO" 5; }
3752
3753 # Provide some information about the compiler.
3754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3755 set X $ac_compile
3756 ac_compiler=$2
3757 for ac_option in --version -v -V -qversion -version; do
3758 { { ac_try="$ac_compiler $ac_option >&5"
3759 case "(($ac_try" in
3760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761 *) ac_try_echo=$ac_try;;
3762 esac
3763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764 printf "%s\n" "$ac_try_echo"; } >&5
3765 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3766 ac_status=$?
3767 if test -s conftest.err; then
3768 sed '10a\
3769 ... rest of stderr output deleted ...
3770 10q' conftest.err >conftest.er1
3771 cat conftest.er1 >&5
3772 fi
3773 rm -f conftest.er1 conftest.err
3774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775 test $ac_status = 0; }
3776 done
3777
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3780
3781 int
3782 main (void)
3783 {
3784
3785 ;
3786 return 0;
3787 }
3788 _ACEOF
3789 ac_clean_files_save=$ac_clean_files
3790 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3791 # Try to create an executable without -o first, disregard a.out.
3792 # It will help us diagnose broken compilers, and finding out an intuition
3793 # of exeext.
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3795 printf %s "checking whether the C compiler works... " >&6; }
3796 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3797
3798 # The possible output files:
3799 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3800
3801 ac_rmfiles=
3802 for ac_file in $ac_files
3803 do
3804 case $ac_file in
3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3806 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3807 esac
3808 done
3809 rm -f $ac_rmfiles
3810
3811 if { { ac_try="$ac_link_default"
3812 case "(($ac_try" in
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3815 esac
3816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 printf "%s\n" "$ac_try_echo"; } >&5
3818 (eval "$ac_link_default") 2>&5
3819 ac_status=$?
3820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }
3822 then :
3823 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3824 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3825 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3826 # so that the user can short-circuit this test for compilers unknown to
3827 # Autoconf.
3828 for ac_file in $ac_files ''
3829 do
3830 test -f "$ac_file" || continue
3831 case $ac_file in
3832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3833 ;;
3834 [ab].out )
3835 # We found the default executable, but exeext='' is most
3836 # certainly right.
3837 break;;
3838 *.* )
3839 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3840 then :; else
3841 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3842 fi
3843 # We set ac_cv_exeext here because the later test for it is not
3844 # safe: cross compilers may not add the suffix if given an '-o'
3845 # argument, so we may need to know it at that point already.
3846 # Even if this section looks crufty: it has the advantage of
3847 # actually working.
3848 break;;
3849 * )
3850 break;;
3851 esac
3852 done
3853 test "$ac_cv_exeext" = no && ac_cv_exeext=
3854
3855 else case e in #(
3856 e) ac_file='' ;;
3857 esac
3858 fi
3859 if test -z "$ac_file"
3860 then :
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 printf "%s\n" "no" >&6; }
3863 printf "%s\n" "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3865
3866 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3867 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3868 as_fn_error 77 "C compiler cannot create executables
3869 See 'config.log' for more details" "$LINENO" 5; }
3870 else case e in #(
3871 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3872 printf "%s\n" "yes" >&6; } ;;
3873 esac
3874 fi
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3876 printf %s "checking for C compiler default output file name... " >&6; }
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3878 printf "%s\n" "$ac_file" >&6; }
3879 ac_exeext=$ac_cv_exeext
3880
3881 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3882 ac_clean_files=$ac_clean_files_save
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3884 printf %s "checking for suffix of executables... " >&6; }
3885 if { { ac_try="$ac_link"
3886 case "(($ac_try" in
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3889 esac
3890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891 printf "%s\n" "$ac_try_echo"; } >&5
3892 (eval "$ac_link") 2>&5
3893 ac_status=$?
3894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895 test $ac_status = 0; }
3896 then :
3897 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3898 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3899 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3900 # 'rm'.
3901 for ac_file in conftest.exe conftest conftest.*; do
3902 test -f "$ac_file" || continue
3903 case $ac_file in
3904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3905 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3906 break;;
3907 * ) break;;
3908 esac
3909 done
3910 else case e in #(
3911 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3912 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3913 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3914 See 'config.log' for more details" "$LINENO" 5; } ;;
3915 esac
3916 fi
3917 rm -f conftest conftest$ac_cv_exeext
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3919 printf "%s\n" "$ac_cv_exeext" >&6; }
3920
3921 rm -f conftest.$ac_ext
3922 EXEEXT=$ac_cv_exeext
3923 ac_exeext=$EXEEXT
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926 #include <stdio.h>
3927 int
3928 main (void)
3929 {
3930 FILE *f = fopen ("conftest.out", "w");
3931 if (!f)
3932 return 1;
3933 return ferror (f) || fclose (f) != 0;
3934
3935 ;
3936 return 0;
3937 }
3938 _ACEOF
3939 ac_clean_files="$ac_clean_files conftest.out"
3940 # Check that the compiler produces executables we can run. If not, either
3941 # the compiler is broken, or we cross compile.
3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3943 printf %s "checking whether we are cross compiling... " >&6; }
3944 if test "$cross_compiling" != yes; then
3945 { { ac_try="$ac_link"
3946 case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949 esac
3950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3951 printf "%s\n" "$ac_try_echo"; } >&5
3952 (eval "$ac_link") 2>&5
3953 ac_status=$?
3954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3955 test $ac_status = 0; }
3956 if { ac_try='./conftest$ac_cv_exeext'
3957 { { case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 printf "%s\n" "$ac_try_echo"; } >&5
3963 (eval "$ac_try") 2>&5
3964 ac_status=$?
3965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }; }; then
3967 cross_compiling=no
3968 else
3969 if test "$cross_compiling" = maybe; then
3970 cross_compiling=yes
3971 else
3972 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3973 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3974 as_fn_error 77 "cannot run C compiled programs.
3975 If you meant to cross compile, use '--host'.
3976 See 'config.log' for more details" "$LINENO" 5; }
3977 fi
3978 fi
3979 fi
3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3981 printf "%s\n" "$cross_compiling" >&6; }
3982
3983 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3984 conftest.o conftest.obj conftest.out
3985 ac_clean_files=$ac_clean_files_save
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3987 printf %s "checking for suffix of object files... " >&6; }
3988 if test ${ac_cv_objext+y}
3989 then :
3990 printf %s "(cached) " >&6
3991 else case e in #(
3992 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3994
3995 int
3996 main (void)
3997 {
3998
3999 ;
4000 return 0;
4001 }
4002 _ACEOF
4003 rm -f conftest.o conftest.obj
4004 if { { ac_try="$ac_compile"
4005 case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008 esac
4009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4010 printf "%s\n" "$ac_try_echo"; } >&5
4011 (eval "$ac_compile") 2>&5
4012 ac_status=$?
4013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014 test $ac_status = 0; }
4015 then :
4016 for ac_file in conftest.o conftest.obj conftest.*; do
4017 test -f "$ac_file" || continue;
4018 case $ac_file in
4019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4020 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4021 break;;
4022 esac
4023 done
4024 else case e in #(
4025 e) printf "%s\n" "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4027
4028 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4029 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4030 as_fn_error $? "cannot compute suffix of object files: cannot compile
4031 See 'config.log' for more details" "$LINENO" 5; } ;;
4032 esac
4033 fi
4034 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4035 esac
4036 fi
4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4038 printf "%s\n" "$ac_cv_objext" >&6; }
4039 OBJEXT=$ac_cv_objext
4040 ac_objext=$OBJEXT
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4042 printf %s "checking whether the compiler supports GNU C... " >&6; }
4043 if test ${ac_cv_c_compiler_gnu+y}
4044 then :
4045 printf %s "(cached) " >&6
4046 else case e in #(
4047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049
4050 int
4051 main (void)
4052 {
4053 #ifndef __GNUC__
4054 choke me
4055 #endif
4056
4057 ;
4058 return 0;
4059 }
4060 _ACEOF
4061 if ac_fn_c_try_compile "$LINENO"
4062 then :
4063 ac_compiler_gnu=yes
4064 else case e in #(
4065 e) ac_compiler_gnu=no ;;
4066 esac
4067 fi
4068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4069 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4070 ;;
4071 esac
4072 fi
4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4074 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076
4077 if test $ac_compiler_gnu = yes; then
4078 GCC=yes
4079 else
4080 GCC=
4081 fi
4082 ac_test_CFLAGS=${CFLAGS+y}
4083 ac_save_CFLAGS=$CFLAGS
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4085 printf %s "checking whether $CC accepts -g... " >&6; }
4086 if test ${ac_cv_prog_cc_g+y}
4087 then :
4088 printf %s "(cached) " >&6
4089 else case e in #(
4090 e) ac_save_c_werror_flag=$ac_c_werror_flag
4091 ac_c_werror_flag=yes
4092 ac_cv_prog_cc_g=no
4093 CFLAGS="-g"
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4096
4097 int
4098 main (void)
4099 {
4100
4101 ;
4102 return 0;
4103 }
4104 _ACEOF
4105 if ac_fn_c_try_compile "$LINENO"
4106 then :
4107 ac_cv_prog_cc_g=yes
4108 else case e in #(
4109 e) CFLAGS=""
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112
4113 int
4114 main (void)
4115 {
4116
4117 ;
4118 return 0;
4119 }
4120 _ACEOF
4121 if ac_fn_c_try_compile "$LINENO"
4122 then :
4123
4124 else case e in #(
4125 e) ac_c_werror_flag=$ac_save_c_werror_flag
4126 CFLAGS="-g"
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4129
4130 int
4131 main (void)
4132 {
4133
4134 ;
4135 return 0;
4136 }
4137 _ACEOF
4138 if ac_fn_c_try_compile "$LINENO"
4139 then :
4140 ac_cv_prog_cc_g=yes
4141 fi
4142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4143 esac
4144 fi
4145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4146 esac
4147 fi
4148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4149 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4150 esac
4151 fi
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4153 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4154 if test $ac_test_CFLAGS; then
4155 CFLAGS=$ac_save_CFLAGS
4156 elif test $ac_cv_prog_cc_g = yes; then
4157 if test "$GCC" = yes; then
4158 CFLAGS="-g -O2"
4159 else
4160 CFLAGS="-g"
4161 fi
4162 else
4163 if test "$GCC" = yes; then
4164 CFLAGS="-O2"
4165 else
4166 CFLAGS=
4167 fi
4168 fi
4169 ac_prog_cc_stdc=no
4170 if test x$ac_prog_cc_stdc = xno
4171 then :
4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4173 printf %s "checking for $CC option to enable C11 features... " >&6; }
4174 if test ${ac_cv_prog_cc_c11+y}
4175 then :
4176 printf %s "(cached) " >&6
4177 else case e in #(
4178 e) ac_cv_prog_cc_c11=no
4179 ac_save_CC=$CC
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182 $ac_c_conftest_c11_program
4183 _ACEOF
4184 for ac_arg in '' -std=gnu11
4185 do
4186 CC="$ac_save_CC $ac_arg"
4187 if ac_fn_c_try_compile "$LINENO"
4188 then :
4189 ac_cv_prog_cc_c11=$ac_arg
4190 fi
4191 rm -f core conftest.err conftest.$ac_objext conftest.beam
4192 test "x$ac_cv_prog_cc_c11" != "xno" && break
4193 done
4194 rm -f conftest.$ac_ext
4195 CC=$ac_save_CC ;;
4196 esac
4197 fi
4198
4199 if test "x$ac_cv_prog_cc_c11" = xno
4200 then :
4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4202 printf "%s\n" "unsupported" >&6; }
4203 else case e in #(
4204 e) if test "x$ac_cv_prog_cc_c11" = x
4205 then :
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4207 printf "%s\n" "none needed" >&6; }
4208 else case e in #(
4209 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4210 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4211 CC="$CC $ac_cv_prog_cc_c11" ;;
4212 esac
4213 fi
4214 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4215 ac_prog_cc_stdc=c11 ;;
4216 esac
4217 fi
4218 fi
4219 if test x$ac_prog_cc_stdc = xno
4220 then :
4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4222 printf %s "checking for $CC option to enable C99 features... " >&6; }
4223 if test ${ac_cv_prog_cc_c99+y}
4224 then :
4225 printf %s "(cached) " >&6
4226 else case e in #(
4227 e) ac_cv_prog_cc_c99=no
4228 ac_save_CC=$CC
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231 $ac_c_conftest_c99_program
4232 _ACEOF
4233 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4234 do
4235 CC="$ac_save_CC $ac_arg"
4236 if ac_fn_c_try_compile "$LINENO"
4237 then :
4238 ac_cv_prog_cc_c99=$ac_arg
4239 fi
4240 rm -f core conftest.err conftest.$ac_objext conftest.beam
4241 test "x$ac_cv_prog_cc_c99" != "xno" && break
4242 done
4243 rm -f conftest.$ac_ext
4244 CC=$ac_save_CC ;;
4245 esac
4246 fi
4247
4248 if test "x$ac_cv_prog_cc_c99" = xno
4249 then :
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4251 printf "%s\n" "unsupported" >&6; }
4252 else case e in #(
4253 e) if test "x$ac_cv_prog_cc_c99" = x
4254 then :
4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4256 printf "%s\n" "none needed" >&6; }
4257 else case e in #(
4258 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4259 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4260 CC="$CC $ac_cv_prog_cc_c99" ;;
4261 esac
4262 fi
4263 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4264 ac_prog_cc_stdc=c99 ;;
4265 esac
4266 fi
4267 fi
4268 if test x$ac_prog_cc_stdc = xno
4269 then :
4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4271 printf %s "checking for $CC option to enable C89 features... " >&6; }
4272 if test ${ac_cv_prog_cc_c89+y}
4273 then :
4274 printf %s "(cached) " >&6
4275 else case e in #(
4276 e) ac_cv_prog_cc_c89=no
4277 ac_save_CC=$CC
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280 $ac_c_conftest_c89_program
4281 _ACEOF
4282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4283 do
4284 CC="$ac_save_CC $ac_arg"
4285 if ac_fn_c_try_compile "$LINENO"
4286 then :
4287 ac_cv_prog_cc_c89=$ac_arg
4288 fi
4289 rm -f core conftest.err conftest.$ac_objext conftest.beam
4290 test "x$ac_cv_prog_cc_c89" != "xno" && break
4291 done
4292 rm -f conftest.$ac_ext
4293 CC=$ac_save_CC ;;
4294 esac
4295 fi
4296
4297 if test "x$ac_cv_prog_cc_c89" = xno
4298 then :
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4300 printf "%s\n" "unsupported" >&6; }
4301 else case e in #(
4302 e) if test "x$ac_cv_prog_cc_c89" = x
4303 then :
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4305 printf "%s\n" "none needed" >&6; }
4306 else case e in #(
4307 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4308 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4309 CC="$CC $ac_cv_prog_cc_c89" ;;
4310 esac
4311 fi
4312 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4313 ac_prog_cc_stdc=c89 ;;
4314 esac
4315 fi
4316 fi
4317
4318 ac_ext=c
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323
4324
4325 ac_ext=c
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4331 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4332 if test ${am_cv_prog_cc_c_o+y}
4333 then :
4334 printf %s "(cached) " >&6
4335 else case e in #(
4336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4338
4339 int
4340 main (void)
4341 {
4342
4343 ;
4344 return 0;
4345 }
4346 _ACEOF
4347 # Make sure it works both with $CC and with simple cc.
4348 # Following AC_PROG_CC_C_O, we do the test twice because some
4349 # compilers refuse to overwrite an existing .o file with -o,
4350 # though they will create one.
4351 am_cv_prog_cc_c_o=yes
4352 for am_i in 1 2; do
4353 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4354 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } \
4358 && test -f conftest2.$ac_objext; then
4359 : OK
4360 else
4361 am_cv_prog_cc_c_o=no
4362 break
4363 fi
4364 done
4365 rm -f core conftest*
4366 unset am_i ;;
4367 esac
4368 fi
4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4370 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4371 if test "$am_cv_prog_cc_c_o" != yes; then
4372 # Losing compiler, so override with the script.
4373 # FIXME: It is wrong to rewrite CC.
4374 # But if we don't then we get into trouble of one sort or another.
4375 # A longer-term fix would be to have automake use am__CC in this case,
4376 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4377 CC="$am_aux_dir/compile $CC"
4378 fi
4379 ac_ext=c
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4384
4385 DEPDIR="${am__leading_dot}deps"
4386
4387 ac_config_commands="$ac_config_commands depfiles"
4388
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4390 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4391 cat > confinc.mk << 'END'
4392 am__doit:
4393 @echo this is the am__doit target >confinc.out
4394 .PHONY: am__doit
4395 END
4396 am__include="#"
4397 am__quote=
4398 # BSD make does it like this.
4399 echo '.include "confinc.mk" # ignored' > confmf.BSD
4400 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4401 echo 'include confinc.mk # ignored' > confmf.GNU
4402 _am_result=no
4403 for s in GNU BSD; do
4404 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4405 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4406 ac_status=$?
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }
4409 case $?:`cat confinc.out 2>/dev/null` in #(
4410 '0:this is the am__doit target') :
4411 case $s in #(
4412 BSD) :
4413 am__include='.include' am__quote='"' ;; #(
4414 *) :
4415 am__include='include' am__quote='' ;;
4416 esac ;; #(
4417 *) :
4418 ;;
4419 esac
4420 if test "$am__include" != "#"; then
4421 _am_result="yes ($s style)"
4422 break
4423 fi
4424 done
4425 rm -f confinc.* confmf.*
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4427 printf "%s\n" "${_am_result}" >&6; }
4428
4429 # Check whether --enable-dependency-tracking was given.
4430 if test ${enable_dependency_tracking+y}
4431 then :
4432 enableval=$enable_dependency_tracking;
4433 fi
4434
4435 if test "x$enable_dependency_tracking" != xno; then
4436 am_depcomp="$ac_aux_dir/depcomp"
4437 AMDEPBACKSLASH='\'
4438 am__nodep='_no'
4439 fi
4440 if test "x$enable_dependency_tracking" != xno; then
4441 AMDEP_TRUE=
4442 AMDEP_FALSE='#'
4443 else
4444 AMDEP_TRUE='#'
4445 AMDEP_FALSE=
4446 fi
4447
4448
4449
4450 depcc="$CC" am_compiler_list=
4451
4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4453 printf %s "checking dependency style of $depcc... " >&6; }
4454 if test ${am_cv_CC_dependencies_compiler_type+y}
4455 then :
4456 printf %s "(cached) " >&6
4457 else case e in #(
4458 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4459 # We make a subdir and do the tests there. Otherwise we can end up
4460 # making bogus files that we don't know about and never remove. For
4461 # instance it was reported that on HP-UX the gcc test will end up
4462 # making a dummy file named 'D' -- because '-MD' means "put the output
4463 # in D".
4464 rm -rf conftest.dir
4465 mkdir conftest.dir
4466 # Copy depcomp to subdir because otherwise we won't find it if we're
4467 # using a relative directory.
4468 cp "$am_depcomp" conftest.dir
4469 cd conftest.dir
4470 # We will build objects and dependencies in a subdirectory because
4471 # it helps to detect inapplicable dependency modes. For instance
4472 # both Tru64's cc and ICC support -MD to output dependencies as a
4473 # side effect of compilation, but ICC will put the dependencies in
4474 # the current directory while Tru64 will put them in the object
4475 # directory.
4476 mkdir sub
4477
4478 am_cv_CC_dependencies_compiler_type=none
4479 if test "$am_compiler_list" = ""; then
4480 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4481 fi
4482 am__universal=false
4483 case " $depcc " in #(
4484 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4485 esac
4486
4487 for depmode in $am_compiler_list; do
4488 # Setup a source with many dependencies, because some compilers
4489 # like to wrap large dependency lists on column 80 (with \), and
4490 # we should not choose a depcomp mode which is confused by this.
4491 #
4492 # We need to recreate these files for each test, as the compiler may
4493 # overwrite some of them when testing with obscure command lines.
4494 # This happens at least with the AIX C compiler.
4495 : > sub/conftest.c
4496 for i in 1 2 3 4 5 6; do
4497 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4498 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4499 # Solaris 10 /bin/sh.
4500 echo '/* dummy */' > sub/conftst$i.h
4501 done
4502 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4503
4504 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4505 # mode. It turns out that the SunPro C++ compiler does not properly
4506 # handle '-M -o', and we need to detect this. Also, some Intel
4507 # versions had trouble with output in subdirs.
4508 am__obj=sub/conftest.${OBJEXT-o}
4509 am__minus_obj="-o $am__obj"
4510 case $depmode in
4511 gcc)
4512 # This depmode causes a compiler race in universal mode.
4513 test "$am__universal" = false || continue
4514 ;;
4515 nosideeffect)
4516 # After this tag, mechanisms are not by side-effect, so they'll
4517 # only be used when explicitly requested.
4518 if test "x$enable_dependency_tracking" = xyes; then
4519 continue
4520 else
4521 break
4522 fi
4523 ;;
4524 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4525 # This compiler won't grok '-c -o', but also, the minuso test has
4526 # not run yet. These depmodes are late enough in the game, and
4527 # so weak that their functioning should not be impacted.
4528 am__obj=conftest.${OBJEXT-o}
4529 am__minus_obj=
4530 ;;
4531 none) break ;;
4532 esac
4533 if depmode=$depmode \
4534 source=sub/conftest.c object=$am__obj \
4535 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4536 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4537 >/dev/null 2>conftest.err &&
4538 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4539 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4540 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4541 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4542 # icc doesn't choke on unknown options, it will just issue warnings
4543 # or remarks (even with -Werror). So we grep stderr for any message
4544 # that says an option was ignored or not supported.
4545 # When given -MP, icc 7.0 and 7.1 complain thus:
4546 # icc: Command line warning: ignoring option '-M'; no argument required
4547 # The diagnosis changed in icc 8.0:
4548 # icc: Command line remark: option '-MP' not supported
4549 if (grep 'ignoring option' conftest.err ||
4550 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4551 am_cv_CC_dependencies_compiler_type=$depmode
4552 break
4553 fi
4554 fi
4555 done
4556
4557 cd ..
4558 rm -rf conftest.dir
4559 else
4560 am_cv_CC_dependencies_compiler_type=none
4561 fi
4562 ;;
4563 esac
4564 fi
4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4566 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4567 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4568
4569 if
4570 test "x$enable_dependency_tracking" != xno \
4571 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4572 am__fastdepCC_TRUE=
4573 am__fastdepCC_FALSE='#'
4574 else
4575 am__fastdepCC_TRUE='#'
4576 am__fastdepCC_FALSE=
4577 fi
4578
4579
4580 case `pwd` in
4581 *\ * | *\ *)
4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4583 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4584 esac
4585
4586
4587
4588 macro_version='2.4.7'
4589 macro_revision='2.4.7'
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604 ltmain=$ac_aux_dir/ltmain.sh
4605
4606
4607
4608 # Make sure we can run config.sub.
4609 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4610 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4611
4612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4613 printf %s "checking build system type... " >&6; }
4614 if test ${ac_cv_build+y}
4615 then :
4616 printf %s "(cached) " >&6
4617 else case e in #(
4618 e) ac_build_alias=$build_alias
4619 test "x$ac_build_alias" = x &&
4620 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4621 test "x$ac_build_alias" = x &&
4622 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4623 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4624 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4625 ;;
4626 esac
4627 fi
4628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4629 printf "%s\n" "$ac_cv_build" >&6; }
4630 case $ac_cv_build in
4631 *-*-*) ;;
4632 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4633 esac
4634 build=$ac_cv_build
4635 ac_save_IFS=$IFS; IFS='-'
4636 set x $ac_cv_build
4637 shift
4638 build_cpu=$1
4639 build_vendor=$2
4640 shift; shift
4641 # Remember, the first character of IFS is used to create $*,
4642 # except with old shells:
4643 build_os=$*
4644 IFS=$ac_save_IFS
4645 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4646
4647
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4649 printf %s "checking host system type... " >&6; }
4650 if test ${ac_cv_host+y}
4651 then :
4652 printf %s "(cached) " >&6
4653 else case e in #(
4654 e) if test "x$host_alias" = x; then
4655 ac_cv_host=$ac_cv_build
4656 else
4657 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4658 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4659 fi
4660 ;;
4661 esac
4662 fi
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4664 printf "%s\n" "$ac_cv_host" >&6; }
4665 case $ac_cv_host in
4666 *-*-*) ;;
4667 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4668 esac
4669 host=$ac_cv_host
4670 ac_save_IFS=$IFS; IFS='-'
4671 set x $ac_cv_host
4672 shift
4673 host_cpu=$1
4674 host_vendor=$2
4675 shift; shift
4676 # Remember, the first character of IFS is used to create $*,
4677 # except with old shells:
4678 host_os=$*
4679 IFS=$ac_save_IFS
4680 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4681
4682
4683 # Backslashify metacharacters that are still active within
4684 # double-quoted strings.
4685 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4686
4687 # Same as above, but do not quote variable references.
4688 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4689
4690 # Sed substitution to delay expansion of an escaped shell variable in a
4691 # double_quote_subst'ed string.
4692 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4693
4694 # Sed substitution to delay expansion of an escaped single quote.
4695 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4696
4697 # Sed substitution to avoid accidental globbing in evaled expressions
4698 no_glob_subst='s/\*/\\\*/g'
4699
4700 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4701 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4702 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4703
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4705 printf %s "checking how to print strings... " >&6; }
4706 # Test print first, because it will be a builtin if present.
4707 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4708 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4709 ECHO='print -r --'
4710 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4711 ECHO='printf %s\n'
4712 else
4713 # Use this function as a fallback that always works.
4714 func_fallback_echo ()
4715 {
4716 eval 'cat <<_LTECHO_EOF
4717 $1
4718 _LTECHO_EOF'
4719 }
4720 ECHO='func_fallback_echo'
4721 fi
4722
4723 # func_echo_all arg...
4724 # Invoke $ECHO with all args, space-separated.
4725 func_echo_all ()
4726 {
4727 $ECHO ""
4728 }
4729
4730 case $ECHO in
4731 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4732 printf "%s\n" "printf" >&6; } ;;
4733 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4734 printf "%s\n" "print -r" >&6; } ;;
4735 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4736 printf "%s\n" "cat" >&6; } ;;
4737 esac
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4753 printf %s "checking for a sed that does not truncate output... " >&6; }
4754 if test ${ac_cv_path_SED+y}
4755 then :
4756 printf %s "(cached) " >&6
4757 else case e in #(
4758 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4759 for ac_i in 1 2 3 4 5 6 7; do
4760 ac_script="$ac_script$as_nl$ac_script"
4761 done
4762 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4763 { ac_script=; unset ac_script;}
4764 if test -z "$SED"; then
4765 ac_path_SED_found=false
4766 # Loop through the user's path and test for each of PROGNAME-LIST
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4769 do
4770 IFS=$as_save_IFS
4771 case $as_dir in #(((
4772 '') as_dir=./ ;;
4773 */) ;;
4774 *) as_dir=$as_dir/ ;;
4775 esac
4776 for ac_prog in sed gsed
4777 do
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4780 as_fn_executable_p "$ac_path_SED" || continue
4781 # Check for GNU ac_path_SED and select it if it is found.
4782 # Check for GNU $ac_path_SED
4783 case `"$ac_path_SED" --version 2>&1` in #(
4784 *GNU*)
4785 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4786 #(
4787 *)
4788 ac_count=0
4789 printf %s 0123456789 >"conftest.in"
4790 while :
4791 do
4792 cat "conftest.in" "conftest.in" >"conftest.tmp"
4793 mv "conftest.tmp" "conftest.in"
4794 cp "conftest.in" "conftest.nl"
4795 printf "%s\n" '' >> "conftest.nl"
4796 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4798 as_fn_arith $ac_count + 1 && ac_count=$as_val
4799 if test $ac_count -gt ${ac_path_SED_max-0}; then
4800 # Best one so far, save it but keep looking for a better one
4801 ac_cv_path_SED="$ac_path_SED"
4802 ac_path_SED_max=$ac_count
4803 fi
4804 # 10*(2^10) chars as input seems more than enough
4805 test $ac_count -gt 10 && break
4806 done
4807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4808 esac
4809
4810 $ac_path_SED_found && break 3
4811 done
4812 done
4813 done
4814 IFS=$as_save_IFS
4815 if test -z "$ac_cv_path_SED"; then
4816 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4817 fi
4818 else
4819 ac_cv_path_SED=$SED
4820 fi
4821 ;;
4822 esac
4823 fi
4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4825 printf "%s\n" "$ac_cv_path_SED" >&6; }
4826 SED="$ac_cv_path_SED"
4827 rm -f conftest.sed
4828
4829 test -z "$SED" && SED=sed
4830 Xsed="$SED -e 1s/^X//"
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4843 printf %s "checking for grep that handles long lines and -e... " >&6; }
4844 if test ${ac_cv_path_GREP+y}
4845 then :
4846 printf %s "(cached) " >&6
4847 else case e in #(
4848 e) if test -z "$GREP"; then
4849 ac_path_GREP_found=false
4850 # Loop through the user's path and test for each of PROGNAME-LIST
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4853 do
4854 IFS=$as_save_IFS
4855 case $as_dir in #(((
4856 '') as_dir=./ ;;
4857 */) ;;
4858 *) as_dir=$as_dir/ ;;
4859 esac
4860 for ac_prog in grep ggrep
4861 do
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4864 as_fn_executable_p "$ac_path_GREP" || continue
4865 # Check for GNU ac_path_GREP and select it if it is found.
4866 # Check for GNU $ac_path_GREP
4867 case `"$ac_path_GREP" --version 2>&1` in #(
4868 *GNU*)
4869 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4870 #(
4871 *)
4872 ac_count=0
4873 printf %s 0123456789 >"conftest.in"
4874 while :
4875 do
4876 cat "conftest.in" "conftest.in" >"conftest.tmp"
4877 mv "conftest.tmp" "conftest.in"
4878 cp "conftest.in" "conftest.nl"
4879 printf "%s\n" 'GREP' >> "conftest.nl"
4880 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4882 as_fn_arith $ac_count + 1 && ac_count=$as_val
4883 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4884 # Best one so far, save it but keep looking for a better one
4885 ac_cv_path_GREP="$ac_path_GREP"
4886 ac_path_GREP_max=$ac_count
4887 fi
4888 # 10*(2^10) chars as input seems more than enough
4889 test $ac_count -gt 10 && break
4890 done
4891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4892 esac
4893
4894 $ac_path_GREP_found && break 3
4895 done
4896 done
4897 done
4898 IFS=$as_save_IFS
4899 if test -z "$ac_cv_path_GREP"; then
4900 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4901 fi
4902 else
4903 ac_cv_path_GREP=$GREP
4904 fi
4905 ;;
4906 esac
4907 fi
4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4909 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4910 GREP="$ac_cv_path_GREP"
4911
4912
4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4914 printf %s "checking for egrep... " >&6; }
4915 if test ${ac_cv_path_EGREP+y}
4916 then :
4917 printf %s "(cached) " >&6
4918 else case e in #(
4919 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4920 then ac_cv_path_EGREP="$GREP -E"
4921 else
4922 if test -z "$EGREP"; then
4923 ac_path_EGREP_found=false
4924 # Loop through the user's path and test for each of PROGNAME-LIST
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4927 do
4928 IFS=$as_save_IFS
4929 case $as_dir in #(((
4930 '') as_dir=./ ;;
4931 */) ;;
4932 *) as_dir=$as_dir/ ;;
4933 esac
4934 for ac_prog in egrep
4935 do
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4938 as_fn_executable_p "$ac_path_EGREP" || continue
4939 # Check for GNU ac_path_EGREP and select it if it is found.
4940 # Check for GNU $ac_path_EGREP
4941 case `"$ac_path_EGREP" --version 2>&1` in #(
4942 *GNU*)
4943 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4944 #(
4945 *)
4946 ac_count=0
4947 printf %s 0123456789 >"conftest.in"
4948 while :
4949 do
4950 cat "conftest.in" "conftest.in" >"conftest.tmp"
4951 mv "conftest.tmp" "conftest.in"
4952 cp "conftest.in" "conftest.nl"
4953 printf "%s\n" 'EGREP' >> "conftest.nl"
4954 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4956 as_fn_arith $ac_count + 1 && ac_count=$as_val
4957 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4958 # Best one so far, save it but keep looking for a better one
4959 ac_cv_path_EGREP="$ac_path_EGREP"
4960 ac_path_EGREP_max=$ac_count
4961 fi
4962 # 10*(2^10) chars as input seems more than enough
4963 test $ac_count -gt 10 && break
4964 done
4965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4966 esac
4967
4968 $ac_path_EGREP_found && break 3
4969 done
4970 done
4971 done
4972 IFS=$as_save_IFS
4973 if test -z "$ac_cv_path_EGREP"; then
4974 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4975 fi
4976 else
4977 ac_cv_path_EGREP=$EGREP
4978 fi
4979
4980 fi ;;
4981 esac
4982 fi
4983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4984 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4985 EGREP="$ac_cv_path_EGREP"
4986
4987 EGREP_TRADITIONAL=$EGREP
4988 ac_cv_path_EGREP_TRADITIONAL=$EGREP
4989
4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4991 printf %s "checking for fgrep... " >&6; }
4992 if test ${ac_cv_path_FGREP+y}
4993 then :
4994 printf %s "(cached) " >&6
4995 else case e in #(
4996 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4997 then ac_cv_path_FGREP="$GREP -F"
4998 else
4999 if test -z "$FGREP"; then
5000 ac_path_FGREP_found=false
5001 # Loop through the user's path and test for each of PROGNAME-LIST
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5004 do
5005 IFS=$as_save_IFS
5006 case $as_dir in #(((
5007 '') as_dir=./ ;;
5008 */) ;;
5009 *) as_dir=$as_dir/ ;;
5010 esac
5011 for ac_prog in fgrep
5012 do
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5015 as_fn_executable_p "$ac_path_FGREP" || continue
5016 # Check for GNU ac_path_FGREP and select it if it is found.
5017 # Check for GNU $ac_path_FGREP
5018 case `"$ac_path_FGREP" --version 2>&1` in #(
5019 *GNU*)
5020 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5021 #(
5022 *)
5023 ac_count=0
5024 printf %s 0123456789 >"conftest.in"
5025 while :
5026 do
5027 cat "conftest.in" "conftest.in" >"conftest.tmp"
5028 mv "conftest.tmp" "conftest.in"
5029 cp "conftest.in" "conftest.nl"
5030 printf "%s\n" 'FGREP' >> "conftest.nl"
5031 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5033 as_fn_arith $ac_count + 1 && ac_count=$as_val
5034 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5035 # Best one so far, save it but keep looking for a better one
5036 ac_cv_path_FGREP="$ac_path_FGREP"
5037 ac_path_FGREP_max=$ac_count
5038 fi
5039 # 10*(2^10) chars as input seems more than enough
5040 test $ac_count -gt 10 && break
5041 done
5042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5043 esac
5044
5045 $ac_path_FGREP_found && break 3
5046 done
5047 done
5048 done
5049 IFS=$as_save_IFS
5050 if test -z "$ac_cv_path_FGREP"; then
5051 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5052 fi
5053 else
5054 ac_cv_path_FGREP=$FGREP
5055 fi
5056
5057 fi ;;
5058 esac
5059 fi
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5061 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5062 FGREP="$ac_cv_path_FGREP"
5063
5064
5065 test -z "$GREP" && GREP=grep
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085 # Check whether --with-gnu-ld was given.
5086 if test ${with_gnu_ld+y}
5087 then :
5088 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5089 else case e in #(
5090 e) with_gnu_ld=no ;;
5091 esac
5092 fi
5093
5094 ac_prog=ld
5095 if test yes = "$GCC"; then
5096 # Check if gcc -print-prog-name=ld gives a path.
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5098 printf %s "checking for ld used by $CC... " >&6; }
5099 case $host in
5100 *-*-mingw*)
5101 # gcc leaves a trailing carriage return, which upsets mingw
5102 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5103 *)
5104 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5105 esac
5106 case $ac_prog in
5107 # Accept absolute paths.
5108 [\\/]* | ?:[\\/]*)
5109 re_direlt='/[^/][^/]*/\.\./'
5110 # Canonicalize the pathname of ld
5111 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5112 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5113 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5114 done
5115 test -z "$LD" && LD=$ac_prog
5116 ;;
5117 "")
5118 # If it fails, then pretend we aren't using GCC.
5119 ac_prog=ld
5120 ;;
5121 *)
5122 # If it is relative, then search for the first ld in PATH.
5123 with_gnu_ld=unknown
5124 ;;
5125 esac
5126 elif test yes = "$with_gnu_ld"; then
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5128 printf %s "checking for GNU ld... " >&6; }
5129 else
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5131 printf %s "checking for non-GNU ld... " >&6; }
5132 fi
5133 if test ${lt_cv_path_LD+y}
5134 then :
5135 printf %s "(cached) " >&6
5136 else case e in #(
5137 e) if test -z "$LD"; then
5138 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5139 for ac_dir in $PATH; do
5140 IFS=$lt_save_ifs
5141 test -z "$ac_dir" && ac_dir=.
5142 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5143 lt_cv_path_LD=$ac_dir/$ac_prog
5144 # Check to see if the program is GNU ld. I'd rather use --version,
5145 # but apparently some variants of GNU ld only accept -v.
5146 # Break only if it was the GNU/non-GNU ld that we prefer.
5147 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5148 *GNU* | *'with BFD'*)
5149 test no != "$with_gnu_ld" && break
5150 ;;
5151 *)
5152 test yes != "$with_gnu_ld" && break
5153 ;;
5154 esac
5155 fi
5156 done
5157 IFS=$lt_save_ifs
5158 else
5159 lt_cv_path_LD=$LD # Let the user override the test with a path.
5160 fi ;;
5161 esac
5162 fi
5163
5164 LD=$lt_cv_path_LD
5165 if test -n "$LD"; then
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5167 printf "%s\n" "$LD" >&6; }
5168 else
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 printf "%s\n" "no" >&6; }
5171 fi
5172 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5174 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5175 if test ${lt_cv_prog_gnu_ld+y}
5176 then :
5177 printf %s "(cached) " >&6
5178 else case e in #(
5179 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5180 case `$LD -v 2>&1 </dev/null` in
5181 *GNU* | *'with BFD'*)
5182 lt_cv_prog_gnu_ld=yes
5183 ;;
5184 *)
5185 lt_cv_prog_gnu_ld=no
5186 ;;
5187 esac ;;
5188 esac
5189 fi
5190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5191 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5192 with_gnu_ld=$lt_cv_prog_gnu_ld
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5203 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5204 if test ${lt_cv_path_NM+y}
5205 then :
5206 printf %s "(cached) " >&6
5207 else case e in #(
5208 e) if test -n "$NM"; then
5209 # Let the user override the test.
5210 lt_cv_path_NM=$NM
5211 else
5212 lt_nm_to_check=${ac_tool_prefix}nm
5213 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5214 lt_nm_to_check="$lt_nm_to_check nm"
5215 fi
5216 for lt_tmp_nm in $lt_nm_to_check; do
5217 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5218 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5219 IFS=$lt_save_ifs
5220 test -z "$ac_dir" && ac_dir=.
5221 tmp_nm=$ac_dir/$lt_tmp_nm
5222 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5223 # Check to see if the nm accepts a BSD-compat flag.
5224 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5225 # nm: unknown option "B" ignored
5226 # Tru64's nm complains that /dev/null is an invalid object file
5227 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5228 case $build_os in
5229 mingw*) lt_bad_file=conftest.nm/nofile ;;
5230 *) lt_bad_file=/dev/null ;;
5231 esac
5232 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5233 *$lt_bad_file* | *'Invalid file or object type'*)
5234 lt_cv_path_NM="$tmp_nm -B"
5235 break 2
5236 ;;
5237 *)
5238 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5239 */dev/null*)
5240 lt_cv_path_NM="$tmp_nm -p"
5241 break 2
5242 ;;
5243 *)
5244 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5245 continue # so that we can try to find one that supports BSD flags
5246 ;;
5247 esac
5248 ;;
5249 esac
5250 fi
5251 done
5252 IFS=$lt_save_ifs
5253 done
5254 : ${lt_cv_path_NM=no}
5255 fi ;;
5256 esac
5257 fi
5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5259 printf "%s\n" "$lt_cv_path_NM" >&6; }
5260 if test no != "$lt_cv_path_NM"; then
5261 NM=$lt_cv_path_NM
5262 else
5263 # Didn't find any BSD compatible name lister, look for dumpbin.
5264 if test -n "$DUMPBIN"; then :
5265 # Let the user override the test.
5266 else
5267 if test -n "$ac_tool_prefix"; then
5268 for ac_prog in dumpbin "link -dump"
5269 do
5270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 printf %s "checking for $ac_word... " >&6; }
5274 if test ${ac_cv_prog_DUMPBIN+y}
5275 then :
5276 printf %s "(cached) " >&6
5277 else case e in #(
5278 e) if test -n "$DUMPBIN"; then
5279 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5280 else
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5283 do
5284 IFS=$as_save_IFS
5285 case $as_dir in #(((
5286 '') as_dir=./ ;;
5287 */) ;;
5288 *) as_dir=$as_dir/ ;;
5289 esac
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5292 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5294 break 2
5295 fi
5296 done
5297 done
5298 IFS=$as_save_IFS
5299
5300 fi ;;
5301 esac
5302 fi
5303 DUMPBIN=$ac_cv_prog_DUMPBIN
5304 if test -n "$DUMPBIN"; then
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5306 printf "%s\n" "$DUMPBIN" >&6; }
5307 else
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 printf "%s\n" "no" >&6; }
5310 fi
5311
5312
5313 test -n "$DUMPBIN" && break
5314 done
5315 fi
5316 if test -z "$DUMPBIN"; then
5317 ac_ct_DUMPBIN=$DUMPBIN
5318 for ac_prog in dumpbin "link -dump"
5319 do
5320 # Extract the first word of "$ac_prog", so it can be a program name with args.
5321 set dummy $ac_prog; ac_word=$2
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323 printf %s "checking for $ac_word... " >&6; }
5324 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5325 then :
5326 printf %s "(cached) " >&6
5327 else case e in #(
5328 e) if test -n "$ac_ct_DUMPBIN"; then
5329 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5333 do
5334 IFS=$as_save_IFS
5335 case $as_dir in #(((
5336 '') as_dir=./ ;;
5337 */) ;;
5338 *) as_dir=$as_dir/ ;;
5339 esac
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5342 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5344 break 2
5345 fi
5346 done
5347 done
5348 IFS=$as_save_IFS
5349
5350 fi ;;
5351 esac
5352 fi
5353 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5354 if test -n "$ac_ct_DUMPBIN"; then
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5356 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5357 else
5358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 printf "%s\n" "no" >&6; }
5360 fi
5361
5362
5363 test -n "$ac_ct_DUMPBIN" && break
5364 done
5365
5366 if test "x$ac_ct_DUMPBIN" = x; then
5367 DUMPBIN=":"
5368 else
5369 case $cross_compiling:$ac_tool_warned in
5370 yes:)
5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5372 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5373 ac_tool_warned=yes ;;
5374 esac
5375 DUMPBIN=$ac_ct_DUMPBIN
5376 fi
5377 fi
5378
5379 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5380 *COFF*)
5381 DUMPBIN="$DUMPBIN -symbols -headers"
5382 ;;
5383 *)
5384 DUMPBIN=:
5385 ;;
5386 esac
5387 fi
5388
5389 if test : != "$DUMPBIN"; then
5390 NM=$DUMPBIN
5391 fi
5392 fi
5393 test -z "$NM" && NM=nm
5394
5395
5396
5397
5398
5399
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5401 printf %s "checking the name lister ($NM) interface... " >&6; }
5402 if test ${lt_cv_nm_interface+y}
5403 then :
5404 printf %s "(cached) " >&6
5405 else case e in #(
5406 e) lt_cv_nm_interface="BSD nm"
5407 echo "int some_variable = 0;" > conftest.$ac_ext
5408 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5409 (eval "$ac_compile" 2>conftest.err)
5410 cat conftest.err >&5
5411 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5412 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5413 cat conftest.err >&5
5414 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5415 cat conftest.out >&5
5416 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5417 lt_cv_nm_interface="MS dumpbin"
5418 fi
5419 rm -f conftest* ;;
5420 esac
5421 fi
5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5423 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5424
5425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5426 printf %s "checking whether ln -s works... " >&6; }
5427 LN_S=$as_ln_s
5428 if test "$LN_S" = "ln -s"; then
5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5430 printf "%s\n" "yes" >&6; }
5431 else
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5433 printf "%s\n" "no, using $LN_S" >&6; }
5434 fi
5435
5436 # find the maximum length of command line arguments
5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5438 printf %s "checking the maximum length of command line arguments... " >&6; }
5439 if test ${lt_cv_sys_max_cmd_len+y}
5440 then :
5441 printf %s "(cached) " >&6
5442 else case e in #(
5443 e) i=0
5444 teststring=ABCD
5445
5446 case $build_os in
5447 msdosdjgpp*)
5448 # On DJGPP, this test can blow up pretty badly due to problems in libc
5449 # (any single argument exceeding 2000 bytes causes a buffer overrun
5450 # during glob expansion). Even if it were fixed, the result of this
5451 # check would be larger than it should be.
5452 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5453 ;;
5454
5455 gnu*)
5456 # Under GNU Hurd, this test is not required because there is
5457 # no limit to the length of command line arguments.
5458 # Libtool will interpret -1 as no limit whatsoever
5459 lt_cv_sys_max_cmd_len=-1;
5460 ;;
5461
5462 cygwin* | mingw* | cegcc*)
5463 # On Win9x/ME, this test blows up -- it succeeds, but takes
5464 # about 5 minutes as the teststring grows exponentially.
5465 # Worse, since 9x/ME are not pre-emptively multitasking,
5466 # you end up with a "frozen" computer, even though with patience
5467 # the test eventually succeeds (with a max line length of 256k).
5468 # Instead, let's just punt: use the minimum linelength reported by
5469 # all of the supported platforms: 8192 (on NT/2K/XP).
5470 lt_cv_sys_max_cmd_len=8192;
5471 ;;
5472
5473 mint*)
5474 # On MiNT this can take a long time and run out of memory.
5475 lt_cv_sys_max_cmd_len=8192;
5476 ;;
5477
5478 amigaos*)
5479 # On AmigaOS with pdksh, this test takes hours, literally.
5480 # So we just punt and use a minimum line length of 8192.
5481 lt_cv_sys_max_cmd_len=8192;
5482 ;;
5483
5484 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5485 # This has been around since 386BSD, at least. Likely further.
5486 if test -x /sbin/sysctl; then
5487 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5488 elif test -x /usr/sbin/sysctl; then
5489 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5490 else
5491 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5492 fi
5493 # And add a safety zone
5494 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5495 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5496 ;;
5497
5498 interix*)
5499 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5500 lt_cv_sys_max_cmd_len=196608
5501 ;;
5502
5503 os2*)
5504 # The test takes a long time on OS/2.
5505 lt_cv_sys_max_cmd_len=8192
5506 ;;
5507
5508 osf*)
5509 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5510 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5511 # nice to cause kernel panics so lets avoid the loop below.
5512 # First set a reasonable default.
5513 lt_cv_sys_max_cmd_len=16384
5514 #
5515 if test -x /sbin/sysconfig; then
5516 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5517 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5518 esac
5519 fi
5520 ;;
5521 sco3.2v5*)
5522 lt_cv_sys_max_cmd_len=102400
5523 ;;
5524 sysv5* | sco5v6* | sysv4.2uw2*)
5525 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5526 if test -n "$kargmax"; then
5527 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5528 else
5529 lt_cv_sys_max_cmd_len=32768
5530 fi
5531 ;;
5532 *)
5533 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5534 if test -n "$lt_cv_sys_max_cmd_len" && \
5535 test undefined != "$lt_cv_sys_max_cmd_len"; then
5536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5537 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5538 else
5539 # Make teststring a little bigger before we do anything with it.
5540 # a 1K string should be a reasonable start.
5541 for i in 1 2 3 4 5 6 7 8; do
5542 teststring=$teststring$teststring
5543 done
5544 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5545 # If test is not a shell built-in, we'll probably end up computing a
5546 # maximum length that is only half of the actual maximum length, but
5547 # we can't tell.
5548 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5549 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5550 test 17 != "$i" # 1/2 MB should be enough
5551 do
5552 i=`expr $i + 1`
5553 teststring=$teststring$teststring
5554 done
5555 # Only check the string length outside the loop.
5556 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5557 teststring=
5558 # Add a significant safety factor because C++ compilers can tack on
5559 # massive amounts of additional arguments before passing them to the
5560 # linker. It appears as though 1/2 is a usable value.
5561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5562 fi
5563 ;;
5564 esac
5565 ;;
5566 esac
5567 fi
5568
5569 if test -n "$lt_cv_sys_max_cmd_len"; then
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5571 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5572 else
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5574 printf "%s\n" "none" >&6; }
5575 fi
5576 max_cmd_len=$lt_cv_sys_max_cmd_len
5577
5578
5579
5580
5581
5582
5583 : ${CP="cp -f"}
5584 : ${MV="mv -f"}
5585 : ${RM="rm -f"}
5586
5587 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5588 lt_unset=unset
5589 else
5590 lt_unset=false
5591 fi
5592
5593
5594
5595
5596
5597 # test EBCDIC or ASCII
5598 case `echo X|tr X '\101'` in
5599 A) # ASCII based system
5600 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5601 lt_SP2NL='tr \040 \012'
5602 lt_NL2SP='tr \015\012 \040\040'
5603 ;;
5604 *) # EBCDIC based system
5605 lt_SP2NL='tr \100 \n'
5606 lt_NL2SP='tr \r\n \100\100'
5607 ;;
5608 esac
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5619 printf %s "checking how to convert $build file names to $host format... " >&6; }
5620 if test ${lt_cv_to_host_file_cmd+y}
5621 then :
5622 printf %s "(cached) " >&6
5623 else case e in #(
5624 e) case $host in
5625 *-*-mingw* )
5626 case $build in
5627 *-*-mingw* ) # actually msys
5628 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5629 ;;
5630 *-*-cygwin* )
5631 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5632 ;;
5633 * ) # otherwise, assume *nix
5634 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5635 ;;
5636 esac
5637 ;;
5638 *-*-cygwin* )
5639 case $build in
5640 *-*-mingw* ) # actually msys
5641 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5642 ;;
5643 *-*-cygwin* )
5644 lt_cv_to_host_file_cmd=func_convert_file_noop
5645 ;;
5646 * ) # otherwise, assume *nix
5647 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5648 ;;
5649 esac
5650 ;;
5651 * ) # unhandled hosts (and "normal" native builds)
5652 lt_cv_to_host_file_cmd=func_convert_file_noop
5653 ;;
5654 esac
5655 ;;
5656 esac
5657 fi
5658
5659 to_host_file_cmd=$lt_cv_to_host_file_cmd
5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5661 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5662
5663
5664
5665
5666
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5668 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5669 if test ${lt_cv_to_tool_file_cmd+y}
5670 then :
5671 printf %s "(cached) " >&6
5672 else case e in #(
5673 e) #assume ordinary cross tools, or native build.
5674 lt_cv_to_tool_file_cmd=func_convert_file_noop
5675 case $host in
5676 *-*-mingw* )
5677 case $build in
5678 *-*-mingw* ) # actually msys
5679 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5680 ;;
5681 esac
5682 ;;
5683 esac
5684 ;;
5685 esac
5686 fi
5687
5688 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5690 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5691
5692
5693
5694
5695
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5697 printf %s "checking for $LD option to reload object files... " >&6; }
5698 if test ${lt_cv_ld_reload_flag+y}
5699 then :
5700 printf %s "(cached) " >&6
5701 else case e in #(
5702 e) lt_cv_ld_reload_flag='-r' ;;
5703 esac
5704 fi
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5706 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5707 reload_flag=$lt_cv_ld_reload_flag
5708 case $reload_flag in
5709 "" | " "*) ;;
5710 *) reload_flag=" $reload_flag" ;;
5711 esac
5712 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5713 case $host_os in
5714 cygwin* | mingw* | pw32* | cegcc*)
5715 if test yes != "$GCC"; then
5716 reload_cmds=false
5717 fi
5718 ;;
5719 darwin*)
5720 if test yes = "$GCC"; then
5721 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5722 else
5723 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5724 fi
5725 ;;
5726 esac
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736 if test -n "$ac_tool_prefix"; then
5737 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5738 set dummy ${ac_tool_prefix}file; ac_word=$2
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 printf %s "checking for $ac_word... " >&6; }
5741 if test ${ac_cv_prog_FILECMD+y}
5742 then :
5743 printf %s "(cached) " >&6
5744 else case e in #(
5745 e) if test -n "$FILECMD"; then
5746 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751 IFS=$as_save_IFS
5752 case $as_dir in #(((
5753 '') as_dir=./ ;;
5754 */) ;;
5755 *) as_dir=$as_dir/ ;;
5756 esac
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5761 break 2
5762 fi
5763 done
5764 done
5765 IFS=$as_save_IFS
5766
5767 fi ;;
5768 esac
5769 fi
5770 FILECMD=$ac_cv_prog_FILECMD
5771 if test -n "$FILECMD"; then
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5773 printf "%s\n" "$FILECMD" >&6; }
5774 else
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 printf "%s\n" "no" >&6; }
5777 fi
5778
5779
5780 fi
5781 if test -z "$ac_cv_prog_FILECMD"; then
5782 ac_ct_FILECMD=$FILECMD
5783 # Extract the first word of "file", so it can be a program name with args.
5784 set dummy file; ac_word=$2
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 printf %s "checking for $ac_word... " >&6; }
5787 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5788 then :
5789 printf %s "(cached) " >&6
5790 else case e in #(
5791 e) if test -n "$ac_ct_FILECMD"; then
5792 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5793 else
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5796 do
5797 IFS=$as_save_IFS
5798 case $as_dir in #(((
5799 '') as_dir=./ ;;
5800 */) ;;
5801 *) as_dir=$as_dir/ ;;
5802 esac
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5805 ac_cv_prog_ac_ct_FILECMD="file"
5806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5807 break 2
5808 fi
5809 done
5810 done
5811 IFS=$as_save_IFS
5812
5813 fi ;;
5814 esac
5815 fi
5816 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5817 if test -n "$ac_ct_FILECMD"; then
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5819 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5820 else
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 printf "%s\n" "no" >&6; }
5823 fi
5824
5825 if test "x$ac_ct_FILECMD" = x; then
5826 FILECMD=":"
5827 else
5828 case $cross_compiling:$ac_tool_warned in
5829 yes:)
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5831 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5832 ac_tool_warned=yes ;;
5833 esac
5834 FILECMD=$ac_ct_FILECMD
5835 fi
5836 else
5837 FILECMD="$ac_cv_prog_FILECMD"
5838 fi
5839
5840
5841
5842
5843
5844
5845
5846 if test -n "$ac_tool_prefix"; then
5847 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5848 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 printf %s "checking for $ac_word... " >&6; }
5851 if test ${ac_cv_prog_OBJDUMP+y}
5852 then :
5853 printf %s "(cached) " >&6
5854 else case e in #(
5855 e) if test -n "$OBJDUMP"; then
5856 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861 IFS=$as_save_IFS
5862 case $as_dir in #(((
5863 '') as_dir=./ ;;
5864 */) ;;
5865 *) as_dir=$as_dir/ ;;
5866 esac
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5869 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5871 break 2
5872 fi
5873 done
5874 done
5875 IFS=$as_save_IFS
5876
5877 fi ;;
5878 esac
5879 fi
5880 OBJDUMP=$ac_cv_prog_OBJDUMP
5881 if test -n "$OBJDUMP"; then
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5883 printf "%s\n" "$OBJDUMP" >&6; }
5884 else
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 printf "%s\n" "no" >&6; }
5887 fi
5888
5889
5890 fi
5891 if test -z "$ac_cv_prog_OBJDUMP"; then
5892 ac_ct_OBJDUMP=$OBJDUMP
5893 # Extract the first word of "objdump", so it can be a program name with args.
5894 set dummy objdump; ac_word=$2
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 printf %s "checking for $ac_word... " >&6; }
5897 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5898 then :
5899 printf %s "(cached) " >&6
5900 else case e in #(
5901 e) if test -n "$ac_ct_OBJDUMP"; then
5902 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5906 do
5907 IFS=$as_save_IFS
5908 case $as_dir in #(((
5909 '') as_dir=./ ;;
5910 */) ;;
5911 *) as_dir=$as_dir/ ;;
5912 esac
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5915 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5917 break 2
5918 fi
5919 done
5920 done
5921 IFS=$as_save_IFS
5922
5923 fi ;;
5924 esac
5925 fi
5926 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5927 if test -n "$ac_ct_OBJDUMP"; then
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5929 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5930 else
5931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 printf "%s\n" "no" >&6; }
5933 fi
5934
5935 if test "x$ac_ct_OBJDUMP" = x; then
5936 OBJDUMP="false"
5937 else
5938 case $cross_compiling:$ac_tool_warned in
5939 yes:)
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5941 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5942 ac_tool_warned=yes ;;
5943 esac
5944 OBJDUMP=$ac_ct_OBJDUMP
5945 fi
5946 else
5947 OBJDUMP="$ac_cv_prog_OBJDUMP"
5948 fi
5949
5950 test -z "$OBJDUMP" && OBJDUMP=objdump
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5961 printf %s "checking how to recognize dependent libraries... " >&6; }
5962 if test ${lt_cv_deplibs_check_method+y}
5963 then :
5964 printf %s "(cached) " >&6
5965 else case e in #(
5966 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
5967 lt_cv_file_magic_test_file=
5968 lt_cv_deplibs_check_method='unknown'
5969 # Need to set the preceding variable on all platforms that support
5970 # interlibrary dependencies.
5971 # 'none' -- dependencies not supported.
5972 # 'unknown' -- same as none, but documents that we really don't know.
5973 # 'pass_all' -- all dependencies passed with no checks.
5974 # 'test_compile' -- check by making test program.
5975 # 'file_magic [[regex]]' -- check by looking for files in library path
5976 # that responds to the $file_magic_cmd with a given extended regex.
5977 # If you have 'file' or equivalent on your system and you're not sure
5978 # whether 'pass_all' will *always* work, you probably want this one.
5979
5980 case $host_os in
5981 aix[4-9]*)
5982 lt_cv_deplibs_check_method=pass_all
5983 ;;
5984
5985 beos*)
5986 lt_cv_deplibs_check_method=pass_all
5987 ;;
5988
5989 bsdi[45]*)
5990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5991 lt_cv_file_magic_cmd='$FILECMD -L'
5992 lt_cv_file_magic_test_file=/shlib/libc.so
5993 ;;
5994
5995 cygwin*)
5996 # func_win32_libid is a shell function defined in ltmain.sh
5997 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5998 lt_cv_file_magic_cmd='func_win32_libid'
5999 ;;
6000
6001 mingw* | pw32*)
6002 # Base MSYS/MinGW do not provide the 'file' command needed by
6003 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6004 # unless we find 'file', for example because we are cross-compiling.
6005 if ( file / ) >/dev/null 2>&1; then
6006 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6007 lt_cv_file_magic_cmd='func_win32_libid'
6008 else
6009 # Keep this pattern in sync with the one in func_win32_libid.
6010 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6011 lt_cv_file_magic_cmd='$OBJDUMP -f'
6012 fi
6013 ;;
6014
6015 cegcc*)
6016 # use the weaker test based on 'objdump'. See mingw*.
6017 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6018 lt_cv_file_magic_cmd='$OBJDUMP -f'
6019 ;;
6020
6021 darwin* | rhapsody*)
6022 lt_cv_deplibs_check_method=pass_all
6023 ;;
6024
6025 freebsd* | dragonfly* | midnightbsd*)
6026 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6027 case $host_cpu in
6028 i*86 )
6029 # Not sure whether the presence of OpenBSD here was a mistake.
6030 # Let's accept both of them until this is cleared up.
6031 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6032 lt_cv_file_magic_cmd=$FILECMD
6033 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6034 ;;
6035 esac
6036 else
6037 lt_cv_deplibs_check_method=pass_all
6038 fi
6039 ;;
6040
6041 haiku*)
6042 lt_cv_deplibs_check_method=pass_all
6043 ;;
6044
6045 hpux10.20* | hpux11*)
6046 lt_cv_file_magic_cmd=$FILECMD
6047 case $host_cpu in
6048 ia64*)
6049 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6050 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6051 ;;
6052 hppa*64*)
6053 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]'
6054 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6055 ;;
6056 *)
6057 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6058 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6059 ;;
6060 esac
6061 ;;
6062
6063 interix[3-9]*)
6064 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6066 ;;
6067
6068 irix5* | irix6* | nonstopux*)
6069 case $LD in
6070 *-32|*"-32 ") libmagic=32-bit;;
6071 *-n32|*"-n32 ") libmagic=N32;;
6072 *-64|*"-64 ") libmagic=64-bit;;
6073 *) libmagic=never-match;;
6074 esac
6075 lt_cv_deplibs_check_method=pass_all
6076 ;;
6077
6078 # This must be glibc/ELF.
6079 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6080 lt_cv_deplibs_check_method=pass_all
6081 ;;
6082
6083 netbsd*)
6084 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6086 else
6087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6088 fi
6089 ;;
6090
6091 newos6*)
6092 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6093 lt_cv_file_magic_cmd=$FILECMD
6094 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6095 ;;
6096
6097 *nto* | *qnx*)
6098 lt_cv_deplibs_check_method=pass_all
6099 ;;
6100
6101 openbsd* | bitrig*)
6102 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6104 else
6105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6106 fi
6107 ;;
6108
6109 osf3* | osf4* | osf5*)
6110 lt_cv_deplibs_check_method=pass_all
6111 ;;
6112
6113 rdos*)
6114 lt_cv_deplibs_check_method=pass_all
6115 ;;
6116
6117 solaris*)
6118 lt_cv_deplibs_check_method=pass_all
6119 ;;
6120
6121 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6122 lt_cv_deplibs_check_method=pass_all
6123 ;;
6124
6125 sysv4 | sysv4.3*)
6126 case $host_vendor in
6127 motorola)
6128 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]'
6129 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6130 ;;
6131 ncr)
6132 lt_cv_deplibs_check_method=pass_all
6133 ;;
6134 sequent)
6135 lt_cv_file_magic_cmd='/bin/file'
6136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6137 ;;
6138 sni)
6139 lt_cv_file_magic_cmd='/bin/file'
6140 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6141 lt_cv_file_magic_test_file=/lib/libc.so
6142 ;;
6143 siemens)
6144 lt_cv_deplibs_check_method=pass_all
6145 ;;
6146 pc)
6147 lt_cv_deplibs_check_method=pass_all
6148 ;;
6149 esac
6150 ;;
6151
6152 tpf*)
6153 lt_cv_deplibs_check_method=pass_all
6154 ;;
6155 os2*)
6156 lt_cv_deplibs_check_method=pass_all
6157 ;;
6158 esac
6159 ;;
6160 esac
6161 fi
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6163 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6164
6165 file_magic_glob=
6166 want_nocaseglob=no
6167 if test "$build" = "$host"; then
6168 case $host_os in
6169 mingw* | pw32*)
6170 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6171 want_nocaseglob=yes
6172 else
6173 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6174 fi
6175 ;;
6176 esac
6177 fi
6178
6179 file_magic_cmd=$lt_cv_file_magic_cmd
6180 deplibs_check_method=$lt_cv_deplibs_check_method
6181 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204 if test -n "$ac_tool_prefix"; then
6205 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6206 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208 printf %s "checking for $ac_word... " >&6; }
6209 if test ${ac_cv_prog_DLLTOOL+y}
6210 then :
6211 printf %s "(cached) " >&6
6212 else case e in #(
6213 e) if test -n "$DLLTOOL"; then
6214 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219 IFS=$as_save_IFS
6220 case $as_dir in #(((
6221 '') as_dir=./ ;;
6222 */) ;;
6223 *) as_dir=$as_dir/ ;;
6224 esac
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6227 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6229 break 2
6230 fi
6231 done
6232 done
6233 IFS=$as_save_IFS
6234
6235 fi ;;
6236 esac
6237 fi
6238 DLLTOOL=$ac_cv_prog_DLLTOOL
6239 if test -n "$DLLTOOL"; then
6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6241 printf "%s\n" "$DLLTOOL" >&6; }
6242 else
6243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244 printf "%s\n" "no" >&6; }
6245 fi
6246
6247
6248 fi
6249 if test -z "$ac_cv_prog_DLLTOOL"; then
6250 ac_ct_DLLTOOL=$DLLTOOL
6251 # Extract the first word of "dlltool", so it can be a program name with args.
6252 set dummy dlltool; ac_word=$2
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254 printf %s "checking for $ac_word... " >&6; }
6255 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6256 then :
6257 printf %s "(cached) " >&6
6258 else case e in #(
6259 e) if test -n "$ac_ct_DLLTOOL"; then
6260 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265 IFS=$as_save_IFS
6266 case $as_dir in #(((
6267 '') as_dir=./ ;;
6268 */) ;;
6269 *) as_dir=$as_dir/ ;;
6270 esac
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6273 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6275 break 2
6276 fi
6277 done
6278 done
6279 IFS=$as_save_IFS
6280
6281 fi ;;
6282 esac
6283 fi
6284 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6285 if test -n "$ac_ct_DLLTOOL"; then
6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6287 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6288 else
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 printf "%s\n" "no" >&6; }
6291 fi
6292
6293 if test "x$ac_ct_DLLTOOL" = x; then
6294 DLLTOOL="false"
6295 else
6296 case $cross_compiling:$ac_tool_warned in
6297 yes:)
6298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6299 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6300 ac_tool_warned=yes ;;
6301 esac
6302 DLLTOOL=$ac_ct_DLLTOOL
6303 fi
6304 else
6305 DLLTOOL="$ac_cv_prog_DLLTOOL"
6306 fi
6307
6308 test -z "$DLLTOOL" && DLLTOOL=dlltool
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6320 printf %s "checking how to associate runtime and link libraries... " >&6; }
6321 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6322 then :
6323 printf %s "(cached) " >&6
6324 else case e in #(
6325 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6326
6327 case $host_os in
6328 cygwin* | mingw* | pw32* | cegcc*)
6329 # two different shell functions defined in ltmain.sh;
6330 # decide which one to use based on capabilities of $DLLTOOL
6331 case `$DLLTOOL --help 2>&1` in
6332 *--identify-strict*)
6333 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6334 ;;
6335 *)
6336 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6337 ;;
6338 esac
6339 ;;
6340 *)
6341 # fallback: assume linklib IS sharedlib
6342 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6343 ;;
6344 esac
6345 ;;
6346 esac
6347 fi
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6349 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6350 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6351 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6352
6353
6354
6355
6356
6357
6358
6359
6360 if test -n "$ac_tool_prefix"; then
6361 for ac_prog in ar
6362 do
6363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366 printf %s "checking for $ac_word... " >&6; }
6367 if test ${ac_cv_prog_AR+y}
6368 then :
6369 printf %s "(cached) " >&6
6370 else case e in #(
6371 e) if test -n "$AR"; then
6372 ac_cv_prog_AR="$AR" # Let the user override the test.
6373 else
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6376 do
6377 IFS=$as_save_IFS
6378 case $as_dir in #(((
6379 '') as_dir=./ ;;
6380 */) ;;
6381 *) as_dir=$as_dir/ ;;
6382 esac
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6385 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6387 break 2
6388 fi
6389 done
6390 done
6391 IFS=$as_save_IFS
6392
6393 fi ;;
6394 esac
6395 fi
6396 AR=$ac_cv_prog_AR
6397 if test -n "$AR"; then
6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6399 printf "%s\n" "$AR" >&6; }
6400 else
6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 printf "%s\n" "no" >&6; }
6403 fi
6404
6405
6406 test -n "$AR" && break
6407 done
6408 fi
6409 if test -z "$AR"; then
6410 ac_ct_AR=$AR
6411 for ac_prog in ar
6412 do
6413 # Extract the first word of "$ac_prog", so it can be a program name with args.
6414 set dummy $ac_prog; ac_word=$2
6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 printf %s "checking for $ac_word... " >&6; }
6417 if test ${ac_cv_prog_ac_ct_AR+y}
6418 then :
6419 printf %s "(cached) " >&6
6420 else case e in #(
6421 e) if test -n "$ac_ct_AR"; then
6422 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6423 else
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6426 do
6427 IFS=$as_save_IFS
6428 case $as_dir in #(((
6429 '') as_dir=./ ;;
6430 */) ;;
6431 *) as_dir=$as_dir/ ;;
6432 esac
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6435 ac_cv_prog_ac_ct_AR="$ac_prog"
6436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6437 break 2
6438 fi
6439 done
6440 done
6441 IFS=$as_save_IFS
6442
6443 fi ;;
6444 esac
6445 fi
6446 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6447 if test -n "$ac_ct_AR"; then
6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6449 printf "%s\n" "$ac_ct_AR" >&6; }
6450 else
6451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 printf "%s\n" "no" >&6; }
6453 fi
6454
6455
6456 test -n "$ac_ct_AR" && break
6457 done
6458
6459 if test "x$ac_ct_AR" = x; then
6460 AR="false"
6461 else
6462 case $cross_compiling:$ac_tool_warned in
6463 yes:)
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6465 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6466 ac_tool_warned=yes ;;
6467 esac
6468 AR=$ac_ct_AR
6469 fi
6470 fi
6471
6472 : ${AR=ar}
6473
6474
6475
6476
6477
6478
6479 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6480 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6481 # higher priority because thats what people were doing historically (setting
6482 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6483 # variable obsoleted/removed.
6484
6485 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6486 lt_ar_flags=$AR_FLAGS
6487
6488
6489
6490
6491
6492
6493 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6494 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6495
6496
6497
6498
6499
6500
6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6502 printf %s "checking for archiver @FILE support... " >&6; }
6503 if test ${lt_cv_ar_at_file+y}
6504 then :
6505 printf %s "(cached) " >&6
6506 else case e in #(
6507 e) lt_cv_ar_at_file=no
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510
6511 int
6512 main (void)
6513 {
6514
6515 ;
6516 return 0;
6517 }
6518 _ACEOF
6519 if ac_fn_c_try_compile "$LINENO"
6520 then :
6521 echo conftest.$ac_objext > conftest.lst
6522 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6524 (eval $lt_ar_try) 2>&5
6525 ac_status=$?
6526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6527 test $ac_status = 0; }
6528 if test 0 -eq "$ac_status"; then
6529 # Ensure the archiver fails upon bogus file names.
6530 rm -f conftest.$ac_objext libconftest.a
6531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6532 (eval $lt_ar_try) 2>&5
6533 ac_status=$?
6534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6535 test $ac_status = 0; }
6536 if test 0 -ne "$ac_status"; then
6537 lt_cv_ar_at_file=@
6538 fi
6539 fi
6540 rm -f conftest.* libconftest.a
6541
6542 fi
6543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6544 ;;
6545 esac
6546 fi
6547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6548 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6549
6550 if test no = "$lt_cv_ar_at_file"; then
6551 archiver_list_spec=
6552 else
6553 archiver_list_spec=$lt_cv_ar_at_file
6554 fi
6555
6556
6557
6558
6559
6560
6561
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6564 set dummy ${ac_tool_prefix}strip; ac_word=$2
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566 printf %s "checking for $ac_word... " >&6; }
6567 if test ${ac_cv_prog_STRIP+y}
6568 then :
6569 printf %s "(cached) " >&6
6570 else case e in #(
6571 e) if test -n "$STRIP"; then
6572 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577 IFS=$as_save_IFS
6578 case $as_dir in #(((
6579 '') as_dir=./ ;;
6580 */) ;;
6581 *) as_dir=$as_dir/ ;;
6582 esac
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6585 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6587 break 2
6588 fi
6589 done
6590 done
6591 IFS=$as_save_IFS
6592
6593 fi ;;
6594 esac
6595 fi
6596 STRIP=$ac_cv_prog_STRIP
6597 if test -n "$STRIP"; then
6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6599 printf "%s\n" "$STRIP" >&6; }
6600 else
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 printf "%s\n" "no" >&6; }
6603 fi
6604
6605
6606 fi
6607 if test -z "$ac_cv_prog_STRIP"; then
6608 ac_ct_STRIP=$STRIP
6609 # Extract the first word of "strip", so it can be a program name with args.
6610 set dummy strip; ac_word=$2
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 printf %s "checking for $ac_word... " >&6; }
6613 if test ${ac_cv_prog_ac_ct_STRIP+y}
6614 then :
6615 printf %s "(cached) " >&6
6616 else case e in #(
6617 e) if test -n "$ac_ct_STRIP"; then
6618 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623 IFS=$as_save_IFS
6624 case $as_dir in #(((
6625 '') as_dir=./ ;;
6626 */) ;;
6627 *) as_dir=$as_dir/ ;;
6628 esac
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6631 ac_cv_prog_ac_ct_STRIP="strip"
6632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6633 break 2
6634 fi
6635 done
6636 done
6637 IFS=$as_save_IFS
6638
6639 fi ;;
6640 esac
6641 fi
6642 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6643 if test -n "$ac_ct_STRIP"; then
6644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6645 printf "%s\n" "$ac_ct_STRIP" >&6; }
6646 else
6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 printf "%s\n" "no" >&6; }
6649 fi
6650
6651 if test "x$ac_ct_STRIP" = x; then
6652 STRIP=":"
6653 else
6654 case $cross_compiling:$ac_tool_warned in
6655 yes:)
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6657 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6658 ac_tool_warned=yes ;;
6659 esac
6660 STRIP=$ac_ct_STRIP
6661 fi
6662 else
6663 STRIP="$ac_cv_prog_STRIP"
6664 fi
6665
6666 test -z "$STRIP" && STRIP=:
6667
6668
6669
6670
6671
6672
6673 if test -n "$ac_tool_prefix"; then
6674 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6675 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 printf %s "checking for $ac_word... " >&6; }
6678 if test ${ac_cv_prog_RANLIB+y}
6679 then :
6680 printf %s "(cached) " >&6
6681 else case e in #(
6682 e) if test -n "$RANLIB"; then
6683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6684 else
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688 IFS=$as_save_IFS
6689 case $as_dir in #(((
6690 '') as_dir=./ ;;
6691 */) ;;
6692 *) as_dir=$as_dir/ ;;
6693 esac
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704 fi ;;
6705 esac
6706 fi
6707 RANLIB=$ac_cv_prog_RANLIB
6708 if test -n "$RANLIB"; then
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6710 printf "%s\n" "$RANLIB" >&6; }
6711 else
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 printf "%s\n" "no" >&6; }
6714 fi
6715
6716
6717 fi
6718 if test -z "$ac_cv_prog_RANLIB"; then
6719 ac_ct_RANLIB=$RANLIB
6720 # Extract the first word of "ranlib", so it can be a program name with args.
6721 set dummy ranlib; ac_word=$2
6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 printf %s "checking for $ac_word... " >&6; }
6724 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6725 then :
6726 printf %s "(cached) " >&6
6727 else case e in #(
6728 e) if test -n "$ac_ct_RANLIB"; then
6729 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734 IFS=$as_save_IFS
6735 case $as_dir in #(((
6736 '') as_dir=./ ;;
6737 */) ;;
6738 *) as_dir=$as_dir/ ;;
6739 esac
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6742 ac_cv_prog_ac_ct_RANLIB="ranlib"
6743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750 fi ;;
6751 esac
6752 fi
6753 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6754 if test -n "$ac_ct_RANLIB"; then
6755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6756 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6757 else
6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 printf "%s\n" "no" >&6; }
6760 fi
6761
6762 if test "x$ac_ct_RANLIB" = x; then
6763 RANLIB=":"
6764 else
6765 case $cross_compiling:$ac_tool_warned in
6766 yes:)
6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6768 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6769 ac_tool_warned=yes ;;
6770 esac
6771 RANLIB=$ac_ct_RANLIB
6772 fi
6773 else
6774 RANLIB="$ac_cv_prog_RANLIB"
6775 fi
6776
6777 test -z "$RANLIB" && RANLIB=:
6778
6779
6780
6781
6782
6783
6784 # Determine commands to create old-style static archives.
6785 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6786 old_postinstall_cmds='chmod 644 $oldlib'
6787 old_postuninstall_cmds=
6788
6789 if test -n "$RANLIB"; then
6790 case $host_os in
6791 bitrig* | openbsd*)
6792 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6793 ;;
6794 *)
6795 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6796 ;;
6797 esac
6798 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6799 fi
6800
6801 case $host_os in
6802 darwin*)
6803 lock_old_archive_extraction=yes ;;
6804 *)
6805 lock_old_archive_extraction=no ;;
6806 esac
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846 # If no C compiler was specified, use CC.
6847 LTCC=${LTCC-"$CC"}
6848
6849 # If no C compiler flags were specified, use CFLAGS.
6850 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6851
6852 # Allow CC to be a program name with arguments.
6853 compiler=$CC
6854
6855
6856 # Check for command to grab the raw symbol name followed by C symbol from nm.
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6858 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6859 if test ${lt_cv_sys_global_symbol_pipe+y}
6860 then :
6861 printf %s "(cached) " >&6
6862 else case e in #(
6863 e)
6864 # These are sane defaults that work on at least a few old systems.
6865 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6866
6867 # Character class describing NM global symbol codes.
6868 symcode='[BCDEGRST]'
6869
6870 # Regexp to match symbols that can be accessed directly from C.
6871 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6872
6873 # Define system-specific variables.
6874 case $host_os in
6875 aix*)
6876 symcode='[BCDT]'
6877 ;;
6878 cygwin* | mingw* | pw32* | cegcc*)
6879 symcode='[ABCDGISTW]'
6880 ;;
6881 hpux*)
6882 if test ia64 = "$host_cpu"; then
6883 symcode='[ABCDEGRST]'
6884 fi
6885 ;;
6886 irix* | nonstopux*)
6887 symcode='[BCDEGRST]'
6888 ;;
6889 osf*)
6890 symcode='[BCDEGQRST]'
6891 ;;
6892 solaris*)
6893 symcode='[BDRT]'
6894 ;;
6895 sco3.2v5*)
6896 symcode='[DT]'
6897 ;;
6898 sysv4.2uw2*)
6899 symcode='[DT]'
6900 ;;
6901 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6902 symcode='[ABDT]'
6903 ;;
6904 sysv4)
6905 symcode='[DFNSTU]'
6906 ;;
6907 esac
6908
6909 # If we're using GNU nm, then use its standard symbol codes.
6910 case `$NM -V 2>&1` in
6911 *GNU* | *'with BFD'*)
6912 symcode='[ABCDGIRSTW]' ;;
6913 esac
6914
6915 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6916 # Gets list of data symbols to import.
6917 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6918 # Adjust the below global symbol transforms to fixup imported variables.
6919 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6920 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6921 lt_c_name_lib_hook="\
6922 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6923 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6924 else
6925 # Disable hooks by default.
6926 lt_cv_sys_global_symbol_to_import=
6927 lt_cdecl_hook=
6928 lt_c_name_hook=
6929 lt_c_name_lib_hook=
6930 fi
6931
6932 # Transform an extracted symbol line into a proper C declaration.
6933 # Some systems (esp. on ia64) link data and code symbols differently,
6934 # so use this general approach.
6935 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6936 $lt_cdecl_hook\
6937 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6938 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6939
6940 # Transform an extracted symbol line into symbol name and symbol address
6941 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6942 $lt_c_name_hook\
6943 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6944 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6945
6946 # Transform an extracted symbol line into symbol name with lib prefix and
6947 # symbol address.
6948 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6949 $lt_c_name_lib_hook\
6950 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6951 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6952 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6953
6954 # Handle CRLF in mingw tool chain
6955 opt_cr=
6956 case $build_os in
6957 mingw*)
6958 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6959 ;;
6960 esac
6961
6962 # Try without a prefix underscore, then with it.
6963 for ac_symprfx in "" "_"; do
6964
6965 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6966 symxfrm="\\1 $ac_symprfx\\2 \\2"
6967
6968 # Write the raw and C identifiers.
6969 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6970 # Fake it for dumpbin and say T for any non-static function,
6971 # D for any global variable and I for any imported variable.
6972 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6973 # which start with @ or ?.
6974 lt_cv_sys_global_symbol_pipe="$AWK '"\
6975 " {last_section=section; section=\$ 3};"\
6976 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6977 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6978 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6979 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6980 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6981 " \$ 0!~/External *\|/{next};"\
6982 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6983 " {if(hide[section]) next};"\
6984 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6985 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6986 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6987 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6988 " ' prfx=^$ac_symprfx"
6989 else
6990 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6991 fi
6992 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6993
6994 # Check to see that the pipe works correctly.
6995 pipe_works=no
6996
6997 rm -f conftest*
6998 cat > conftest.$ac_ext <<_LT_EOF
6999 #ifdef __cplusplus
7000 extern "C" {
7001 #endif
7002 char nm_test_var;
7003 void nm_test_func(void);
7004 void nm_test_func(void){}
7005 #ifdef __cplusplus
7006 }
7007 #endif
7008 int main(){nm_test_var='a';nm_test_func();return(0);}
7009 _LT_EOF
7010
7011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7012 (eval $ac_compile) 2>&5
7013 ac_status=$?
7014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7015 test $ac_status = 0; }; then
7016 # Now try to grab the symbols.
7017 nlist=conftest.nm
7018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7019 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7020 ac_status=$?
7021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7022 test $ac_status = 0; } && test -s "$nlist"; then
7023 # Try sorting and uniquifying the output.
7024 if sort "$nlist" | uniq > "$nlist"T; then
7025 mv -f "$nlist"T "$nlist"
7026 else
7027 rm -f "$nlist"T
7028 fi
7029
7030 # Make sure that we snagged all the symbols we need.
7031 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7032 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7033 cat <<_LT_EOF > conftest.$ac_ext
7034 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7035 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7036 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7037 relocations are performed -- see ld's documentation on pseudo-relocs. */
7038 # define LT_DLSYM_CONST
7039 #elif defined __osf__
7040 /* This system does not cope well with relocations in const data. */
7041 # define LT_DLSYM_CONST
7042 #else
7043 # define LT_DLSYM_CONST const
7044 #endif
7045
7046 #ifdef __cplusplus
7047 extern "C" {
7048 #endif
7049
7050 _LT_EOF
7051 # Now generate the symbol file.
7052 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7053
7054 cat <<_LT_EOF >> conftest.$ac_ext
7055
7056 /* The mapping between symbol names and symbols. */
7057 LT_DLSYM_CONST struct {
7058 const char *name;
7059 void *address;
7060 }
7061 lt__PROGRAM__LTX_preloaded_symbols[] =
7062 {
7063 { "@PROGRAM@", (void *) 0 },
7064 _LT_EOF
7065 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7066 cat <<\_LT_EOF >> conftest.$ac_ext
7067 {0, (void *) 0}
7068 };
7069
7070 /* This works around a problem in FreeBSD linker */
7071 #ifdef FREEBSD_WORKAROUND
7072 static const void *lt_preloaded_setup() {
7073 return lt__PROGRAM__LTX_preloaded_symbols;
7074 }
7075 #endif
7076
7077 #ifdef __cplusplus
7078 }
7079 #endif
7080 _LT_EOF
7081 # Now try linking the two files.
7082 mv conftest.$ac_objext conftstm.$ac_objext
7083 lt_globsym_save_LIBS=$LIBS
7084 lt_globsym_save_CFLAGS=$CFLAGS
7085 LIBS=conftstm.$ac_objext
7086 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7088 (eval $ac_link) 2>&5
7089 ac_status=$?
7090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7092 pipe_works=yes
7093 fi
7094 LIBS=$lt_globsym_save_LIBS
7095 CFLAGS=$lt_globsym_save_CFLAGS
7096 else
7097 echo "cannot find nm_test_func in $nlist" >&5
7098 fi
7099 else
7100 echo "cannot find nm_test_var in $nlist" >&5
7101 fi
7102 else
7103 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7104 fi
7105 else
7106 echo "$progname: failed program was:" >&5
7107 cat conftest.$ac_ext >&5
7108 fi
7109 rm -rf conftest* conftst*
7110
7111 # Do not use the global_symbol_pipe unless it works.
7112 if test yes = "$pipe_works"; then
7113 break
7114 else
7115 lt_cv_sys_global_symbol_pipe=
7116 fi
7117 done
7118 ;;
7119 esac
7120 fi
7121
7122 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7123 lt_cv_sys_global_symbol_to_cdecl=
7124 fi
7125 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7127 printf "%s\n" "failed" >&6; }
7128 else
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7130 printf "%s\n" "ok" >&6; }
7131 fi
7132
7133 # Response file support.
7134 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7135 nm_file_list_spec='@'
7136 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7137 nm_file_list_spec='@'
7138 fi
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7177 printf %s "checking for sysroot... " >&6; }
7178
7179 # Check whether --with-sysroot was given.
7180 if test ${with_sysroot+y}
7181 then :
7182 withval=$with_sysroot;
7183 else case e in #(
7184 e) with_sysroot=no ;;
7185 esac
7186 fi
7187
7188
7189 lt_sysroot=
7190 case $with_sysroot in #(
7191 yes)
7192 if test yes = "$GCC"; then
7193 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7194 fi
7195 ;; #(
7196 /*)
7197 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7198 ;; #(
7199 no|'')
7200 ;; #(
7201 *)
7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7203 printf "%s\n" "$with_sysroot" >&6; }
7204 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7205 ;;
7206 esac
7207
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7209 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7210
7211
7212
7213
7214
7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7216 printf %s "checking for a working dd... " >&6; }
7217 if test ${ac_cv_path_lt_DD+y}
7218 then :
7219 printf %s "(cached) " >&6
7220 else case e in #(
7221 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7222 cat conftest.i conftest.i >conftest2.i
7223 : ${lt_DD:=$DD}
7224 if test -z "$lt_DD"; then
7225 ac_path_lt_DD_found=false
7226 # Loop through the user's path and test for each of PROGNAME-LIST
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230 IFS=$as_save_IFS
7231 case $as_dir in #(((
7232 '') as_dir=./ ;;
7233 */) ;;
7234 *) as_dir=$as_dir/ ;;
7235 esac
7236 for ac_prog in dd
7237 do
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7240 as_fn_executable_p "$ac_path_lt_DD" || continue
7241 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7242 cmp -s conftest.i conftest.out \
7243 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7244 fi
7245 $ac_path_lt_DD_found && break 3
7246 done
7247 done
7248 done
7249 IFS=$as_save_IFS
7250 if test -z "$ac_cv_path_lt_DD"; then
7251 :
7252 fi
7253 else
7254 ac_cv_path_lt_DD=$lt_DD
7255 fi
7256
7257 rm -f conftest.i conftest2.i conftest.out ;;
7258 esac
7259 fi
7260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7261 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7262
7263
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7265 printf %s "checking how to truncate binary pipes... " >&6; }
7266 if test ${lt_cv_truncate_bin+y}
7267 then :
7268 printf %s "(cached) " >&6
7269 else case e in #(
7270 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7271 cat conftest.i conftest.i >conftest2.i
7272 lt_cv_truncate_bin=
7273 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7274 cmp -s conftest.i conftest.out \
7275 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7276 fi
7277 rm -f conftest.i conftest2.i conftest.out
7278 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7279 esac
7280 fi
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7282 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7283
7284
7285
7286
7287
7288
7289
7290 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7291 func_cc_basename ()
7292 {
7293 for cc_temp in $*""; do
7294 case $cc_temp in
7295 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7296 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7297 \-*) ;;
7298 *) break;;
7299 esac
7300 done
7301 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7302 }
7303
7304 # Check whether --enable-libtool-lock was given.
7305 if test ${enable_libtool_lock+y}
7306 then :
7307 enableval=$enable_libtool_lock;
7308 fi
7309
7310 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7311
7312 # Some flags need to be propagated to the compiler or linker for good
7313 # libtool support.
7314 case $host in
7315 ia64-*-hpux*)
7316 # Find out what ABI is being produced by ac_compile, and set mode
7317 # options accordingly.
7318 echo 'int i;' > conftest.$ac_ext
7319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7320 (eval $ac_compile) 2>&5
7321 ac_status=$?
7322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7323 test $ac_status = 0; }; then
7324 case `$FILECMD conftest.$ac_objext` in
7325 *ELF-32*)
7326 HPUX_IA64_MODE=32
7327 ;;
7328 *ELF-64*)
7329 HPUX_IA64_MODE=64
7330 ;;
7331 esac
7332 fi
7333 rm -rf conftest*
7334 ;;
7335 *-*-irix6*)
7336 # Find out what ABI is being produced by ac_compile, and set linker
7337 # options accordingly.
7338 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7340 (eval $ac_compile) 2>&5
7341 ac_status=$?
7342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7343 test $ac_status = 0; }; then
7344 if test yes = "$lt_cv_prog_gnu_ld"; then
7345 case `$FILECMD conftest.$ac_objext` in
7346 *32-bit*)
7347 LD="${LD-ld} -melf32bsmip"
7348 ;;
7349 *N32*)
7350 LD="${LD-ld} -melf32bmipn32"
7351 ;;
7352 *64-bit*)
7353 LD="${LD-ld} -melf64bmip"
7354 ;;
7355 esac
7356 else
7357 case `$FILECMD conftest.$ac_objext` in
7358 *32-bit*)
7359 LD="${LD-ld} -32"
7360 ;;
7361 *N32*)
7362 LD="${LD-ld} -n32"
7363 ;;
7364 *64-bit*)
7365 LD="${LD-ld} -64"
7366 ;;
7367 esac
7368 fi
7369 fi
7370 rm -rf conftest*
7371 ;;
7372
7373 mips64*-*linux*)
7374 # Find out what ABI is being produced by ac_compile, and set linker
7375 # options accordingly.
7376 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7378 (eval $ac_compile) 2>&5
7379 ac_status=$?
7380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7381 test $ac_status = 0; }; then
7382 emul=elf
7383 case `$FILECMD conftest.$ac_objext` in
7384 *32-bit*)
7385 emul="${emul}32"
7386 ;;
7387 *64-bit*)
7388 emul="${emul}64"
7389 ;;
7390 esac
7391 case `$FILECMD conftest.$ac_objext` in
7392 *MSB*)
7393 emul="${emul}btsmip"
7394 ;;
7395 *LSB*)
7396 emul="${emul}ltsmip"
7397 ;;
7398 esac
7399 case `$FILECMD conftest.$ac_objext` in
7400 *N32*)
7401 emul="${emul}n32"
7402 ;;
7403 esac
7404 LD="${LD-ld} -m $emul"
7405 fi
7406 rm -rf conftest*
7407 ;;
7408
7409 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7410 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7411 # Find out what ABI is being produced by ac_compile, and set linker
7412 # options accordingly. Note that the listed cases only cover the
7413 # situations where additional linker options are needed (such as when
7414 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7415 # vice versa); the common cases where no linker options are needed do
7416 # not appear in the list.
7417 echo 'int i;' > conftest.$ac_ext
7418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7419 (eval $ac_compile) 2>&5
7420 ac_status=$?
7421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7422 test $ac_status = 0; }; then
7423 case `$FILECMD conftest.o` in
7424 *32-bit*)
7425 case $host in
7426 x86_64-*kfreebsd*-gnu)
7427 LD="${LD-ld} -m elf_i386_fbsd"
7428 ;;
7429 x86_64-*linux*)
7430 case `$FILECMD conftest.o` in
7431 *x86-64*)
7432 LD="${LD-ld} -m elf32_x86_64"
7433 ;;
7434 *)
7435 LD="${LD-ld} -m elf_i386"
7436 ;;
7437 esac
7438 ;;
7439 powerpc64le-*linux*)
7440 LD="${LD-ld} -m elf32lppclinux"
7441 ;;
7442 powerpc64-*linux*)
7443 LD="${LD-ld} -m elf32ppclinux"
7444 ;;
7445 s390x-*linux*)
7446 LD="${LD-ld} -m elf_s390"
7447 ;;
7448 sparc64-*linux*)
7449 LD="${LD-ld} -m elf32_sparc"
7450 ;;
7451 esac
7452 ;;
7453 *64-bit*)
7454 case $host in
7455 x86_64-*kfreebsd*-gnu)
7456 LD="${LD-ld} -m elf_x86_64_fbsd"
7457 ;;
7458 x86_64-*linux*)
7459 LD="${LD-ld} -m elf_x86_64"
7460 ;;
7461 powerpcle-*linux*)
7462 LD="${LD-ld} -m elf64lppc"
7463 ;;
7464 powerpc-*linux*)
7465 LD="${LD-ld} -m elf64ppc"
7466 ;;
7467 s390*-*linux*|s390*-*tpf*)
7468 LD="${LD-ld} -m elf64_s390"
7469 ;;
7470 sparc*-*linux*)
7471 LD="${LD-ld} -m elf64_sparc"
7472 ;;
7473 esac
7474 ;;
7475 esac
7476 fi
7477 rm -rf conftest*
7478 ;;
7479
7480 *-*-sco3.2v5*)
7481 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7482 SAVE_CFLAGS=$CFLAGS
7483 CFLAGS="$CFLAGS -belf"
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7485 printf %s "checking whether the C compiler needs -belf... " >&6; }
7486 if test ${lt_cv_cc_needs_belf+y}
7487 then :
7488 printf %s "(cached) " >&6
7489 else case e in #(
7490 e) ac_ext=c
7491 ac_cpp='$CPP $CPPFLAGS'
7492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7495
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7498
7499 int
7500 main (void)
7501 {
7502
7503 ;
7504 return 0;
7505 }
7506 _ACEOF
7507 if ac_fn_c_try_link "$LINENO"
7508 then :
7509 lt_cv_cc_needs_belf=yes
7510 else case e in #(
7511 e) lt_cv_cc_needs_belf=no ;;
7512 esac
7513 fi
7514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7515 conftest$ac_exeext conftest.$ac_ext
7516 ac_ext=c
7517 ac_cpp='$CPP $CPPFLAGS'
7518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7521 ;;
7522 esac
7523 fi
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7525 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7526 if test yes != "$lt_cv_cc_needs_belf"; then
7527 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7528 CFLAGS=$SAVE_CFLAGS
7529 fi
7530 ;;
7531 *-*solaris*)
7532 # Find out what ABI is being produced by ac_compile, and set linker
7533 # options accordingly.
7534 echo 'int i;' > conftest.$ac_ext
7535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7536 (eval $ac_compile) 2>&5
7537 ac_status=$?
7538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7539 test $ac_status = 0; }; then
7540 case `$FILECMD conftest.o` in
7541 *64-bit*)
7542 case $lt_cv_prog_gnu_ld in
7543 yes*)
7544 case $host in
7545 i?86-*-solaris*|x86_64-*-solaris*)
7546 LD="${LD-ld} -m elf_x86_64"
7547 ;;
7548 sparc*-*-solaris*)
7549 LD="${LD-ld} -m elf64_sparc"
7550 ;;
7551 esac
7552 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7553 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7554 LD=${LD-ld}_sol2
7555 fi
7556 ;;
7557 *)
7558 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7559 LD="${LD-ld} -64"
7560 fi
7561 ;;
7562 esac
7563 ;;
7564 esac
7565 fi
7566 rm -rf conftest*
7567 ;;
7568 esac
7569
7570 need_locks=$enable_libtool_lock
7571
7572 if test -n "$ac_tool_prefix"; then
7573 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7574 set dummy ${ac_tool_prefix}mt; ac_word=$2
7575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 printf %s "checking for $ac_word... " >&6; }
7577 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7578 then :
7579 printf %s "(cached) " >&6
7580 else case e in #(
7581 e) if test -n "$MANIFEST_TOOL"; then
7582 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587 IFS=$as_save_IFS
7588 case $as_dir in #(((
7589 '') as_dir=./ ;;
7590 */) ;;
7591 *) as_dir=$as_dir/ ;;
7592 esac
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7595 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7597 break 2
7598 fi
7599 done
7600 done
7601 IFS=$as_save_IFS
7602
7603 fi ;;
7604 esac
7605 fi
7606 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7607 if test -n "$MANIFEST_TOOL"; then
7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7609 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7610 else
7611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 printf "%s\n" "no" >&6; }
7613 fi
7614
7615
7616 fi
7617 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7618 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7619 # Extract the first word of "mt", so it can be a program name with args.
7620 set dummy mt; ac_word=$2
7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622 printf %s "checking for $ac_word... " >&6; }
7623 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7624 then :
7625 printf %s "(cached) " >&6
7626 else case e in #(
7627 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7628 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7629 else
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7632 do
7633 IFS=$as_save_IFS
7634 case $as_dir in #(((
7635 '') as_dir=./ ;;
7636 */) ;;
7637 *) as_dir=$as_dir/ ;;
7638 esac
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7641 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7643 break 2
7644 fi
7645 done
7646 done
7647 IFS=$as_save_IFS
7648
7649 fi ;;
7650 esac
7651 fi
7652 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7653 if test -n "$ac_ct_MANIFEST_TOOL"; then
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7655 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7656 else
7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 printf "%s\n" "no" >&6; }
7659 fi
7660
7661 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7662 MANIFEST_TOOL=":"
7663 else
7664 case $cross_compiling:$ac_tool_warned in
7665 yes:)
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668 ac_tool_warned=yes ;;
7669 esac
7670 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7671 fi
7672 else
7673 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7674 fi
7675
7676 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7678 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7679 if test ${lt_cv_path_mainfest_tool+y}
7680 then :
7681 printf %s "(cached) " >&6
7682 else case e in #(
7683 e) lt_cv_path_mainfest_tool=no
7684 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7685 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7686 cat conftest.err >&5
7687 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7688 lt_cv_path_mainfest_tool=yes
7689 fi
7690 rm -f conftest* ;;
7691 esac
7692 fi
7693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7694 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7695 if test yes != "$lt_cv_path_mainfest_tool"; then
7696 MANIFEST_TOOL=:
7697 fi
7698
7699
7700
7701
7702
7703
7704 case $host_os in
7705 rhapsody* | darwin*)
7706 if test -n "$ac_tool_prefix"; then
7707 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7708 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710 printf %s "checking for $ac_word... " >&6; }
7711 if test ${ac_cv_prog_DSYMUTIL+y}
7712 then :
7713 printf %s "(cached) " >&6
7714 else case e in #(
7715 e) if test -n "$DSYMUTIL"; then
7716 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7717 else
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7720 do
7721 IFS=$as_save_IFS
7722 case $as_dir in #(((
7723 '') as_dir=./ ;;
7724 */) ;;
7725 *) as_dir=$as_dir/ ;;
7726 esac
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7729 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7731 break 2
7732 fi
7733 done
7734 done
7735 IFS=$as_save_IFS
7736
7737 fi ;;
7738 esac
7739 fi
7740 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7741 if test -n "$DSYMUTIL"; then
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7743 printf "%s\n" "$DSYMUTIL" >&6; }
7744 else
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 printf "%s\n" "no" >&6; }
7747 fi
7748
7749
7750 fi
7751 if test -z "$ac_cv_prog_DSYMUTIL"; then
7752 ac_ct_DSYMUTIL=$DSYMUTIL
7753 # Extract the first word of "dsymutil", so it can be a program name with args.
7754 set dummy dsymutil; ac_word=$2
7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 printf %s "checking for $ac_word... " >&6; }
7757 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7758 then :
7759 printf %s "(cached) " >&6
7760 else case e in #(
7761 e) if test -n "$ac_ct_DSYMUTIL"; then
7762 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7763 else
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7766 do
7767 IFS=$as_save_IFS
7768 case $as_dir in #(((
7769 '') as_dir=./ ;;
7770 */) ;;
7771 *) as_dir=$as_dir/ ;;
7772 esac
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7775 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7777 break 2
7778 fi
7779 done
7780 done
7781 IFS=$as_save_IFS
7782
7783 fi ;;
7784 esac
7785 fi
7786 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7787 if test -n "$ac_ct_DSYMUTIL"; then
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7789 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7790 else
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 printf "%s\n" "no" >&6; }
7793 fi
7794
7795 if test "x$ac_ct_DSYMUTIL" = x; then
7796 DSYMUTIL=":"
7797 else
7798 case $cross_compiling:$ac_tool_warned in
7799 yes:)
7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7801 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7802 ac_tool_warned=yes ;;
7803 esac
7804 DSYMUTIL=$ac_ct_DSYMUTIL
7805 fi
7806 else
7807 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7808 fi
7809
7810 if test -n "$ac_tool_prefix"; then
7811 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7812 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 printf %s "checking for $ac_word... " >&6; }
7815 if test ${ac_cv_prog_NMEDIT+y}
7816 then :
7817 printf %s "(cached) " >&6
7818 else case e in #(
7819 e) if test -n "$NMEDIT"; then
7820 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825 IFS=$as_save_IFS
7826 case $as_dir in #(((
7827 '') as_dir=./ ;;
7828 */) ;;
7829 *) as_dir=$as_dir/ ;;
7830 esac
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7833 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7835 break 2
7836 fi
7837 done
7838 done
7839 IFS=$as_save_IFS
7840
7841 fi ;;
7842 esac
7843 fi
7844 NMEDIT=$ac_cv_prog_NMEDIT
7845 if test -n "$NMEDIT"; then
7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7847 printf "%s\n" "$NMEDIT" >&6; }
7848 else
7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 printf "%s\n" "no" >&6; }
7851 fi
7852
7853
7854 fi
7855 if test -z "$ac_cv_prog_NMEDIT"; then
7856 ac_ct_NMEDIT=$NMEDIT
7857 # Extract the first word of "nmedit", so it can be a program name with args.
7858 set dummy nmedit; ac_word=$2
7859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 printf %s "checking for $ac_word... " >&6; }
7861 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7862 then :
7863 printf %s "(cached) " >&6
7864 else case e in #(
7865 e) if test -n "$ac_ct_NMEDIT"; then
7866 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7867 else
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7870 do
7871 IFS=$as_save_IFS
7872 case $as_dir in #(((
7873 '') as_dir=./ ;;
7874 */) ;;
7875 *) as_dir=$as_dir/ ;;
7876 esac
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7879 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7881 break 2
7882 fi
7883 done
7884 done
7885 IFS=$as_save_IFS
7886
7887 fi ;;
7888 esac
7889 fi
7890 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7891 if test -n "$ac_ct_NMEDIT"; then
7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7893 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7894 else
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 printf "%s\n" "no" >&6; }
7897 fi
7898
7899 if test "x$ac_ct_NMEDIT" = x; then
7900 NMEDIT=":"
7901 else
7902 case $cross_compiling:$ac_tool_warned in
7903 yes:)
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7905 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7906 ac_tool_warned=yes ;;
7907 esac
7908 NMEDIT=$ac_ct_NMEDIT
7909 fi
7910 else
7911 NMEDIT="$ac_cv_prog_NMEDIT"
7912 fi
7913
7914 if test -n "$ac_tool_prefix"; then
7915 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7916 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918 printf %s "checking for $ac_word... " >&6; }
7919 if test ${ac_cv_prog_LIPO+y}
7920 then :
7921 printf %s "(cached) " >&6
7922 else case e in #(
7923 e) if test -n "$LIPO"; then
7924 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7925 else
7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927 for as_dir in $PATH
7928 do
7929 IFS=$as_save_IFS
7930 case $as_dir in #(((
7931 '') as_dir=./ ;;
7932 */) ;;
7933 *) as_dir=$as_dir/ ;;
7934 esac
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7937 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7939 break 2
7940 fi
7941 done
7942 done
7943 IFS=$as_save_IFS
7944
7945 fi ;;
7946 esac
7947 fi
7948 LIPO=$ac_cv_prog_LIPO
7949 if test -n "$LIPO"; then
7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7951 printf "%s\n" "$LIPO" >&6; }
7952 else
7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 printf "%s\n" "no" >&6; }
7955 fi
7956
7957
7958 fi
7959 if test -z "$ac_cv_prog_LIPO"; then
7960 ac_ct_LIPO=$LIPO
7961 # Extract the first word of "lipo", so it can be a program name with args.
7962 set dummy lipo; ac_word=$2
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 printf %s "checking for $ac_word... " >&6; }
7965 if test ${ac_cv_prog_ac_ct_LIPO+y}
7966 then :
7967 printf %s "(cached) " >&6
7968 else case e in #(
7969 e) if test -n "$ac_ct_LIPO"; then
7970 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7971 else
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in $PATH
7974 do
7975 IFS=$as_save_IFS
7976 case $as_dir in #(((
7977 '') as_dir=./ ;;
7978 */) ;;
7979 *) as_dir=$as_dir/ ;;
7980 esac
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7983 ac_cv_prog_ac_ct_LIPO="lipo"
7984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7985 break 2
7986 fi
7987 done
7988 done
7989 IFS=$as_save_IFS
7990
7991 fi ;;
7992 esac
7993 fi
7994 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7995 if test -n "$ac_ct_LIPO"; then
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7997 printf "%s\n" "$ac_ct_LIPO" >&6; }
7998 else
7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 printf "%s\n" "no" >&6; }
8001 fi
8002
8003 if test "x$ac_ct_LIPO" = x; then
8004 LIPO=":"
8005 else
8006 case $cross_compiling:$ac_tool_warned in
8007 yes:)
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8009 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8010 ac_tool_warned=yes ;;
8011 esac
8012 LIPO=$ac_ct_LIPO
8013 fi
8014 else
8015 LIPO="$ac_cv_prog_LIPO"
8016 fi
8017
8018 if test -n "$ac_tool_prefix"; then
8019 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8020 set dummy ${ac_tool_prefix}otool; ac_word=$2
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 printf %s "checking for $ac_word... " >&6; }
8023 if test ${ac_cv_prog_OTOOL+y}
8024 then :
8025 printf %s "(cached) " >&6
8026 else case e in #(
8027 e) if test -n "$OTOOL"; then
8028 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033 IFS=$as_save_IFS
8034 case $as_dir in #(((
8035 '') as_dir=./ ;;
8036 */) ;;
8037 *) as_dir=$as_dir/ ;;
8038 esac
8039 for ac_exec_ext in '' $ac_executable_extensions; do
8040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8041 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8043 break 2
8044 fi
8045 done
8046 done
8047 IFS=$as_save_IFS
8048
8049 fi ;;
8050 esac
8051 fi
8052 OTOOL=$ac_cv_prog_OTOOL
8053 if test -n "$OTOOL"; then
8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8055 printf "%s\n" "$OTOOL" >&6; }
8056 else
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 printf "%s\n" "no" >&6; }
8059 fi
8060
8061
8062 fi
8063 if test -z "$ac_cv_prog_OTOOL"; then
8064 ac_ct_OTOOL=$OTOOL
8065 # Extract the first word of "otool", so it can be a program name with args.
8066 set dummy otool; ac_word=$2
8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 printf %s "checking for $ac_word... " >&6; }
8069 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8070 then :
8071 printf %s "(cached) " >&6
8072 else case e in #(
8073 e) if test -n "$ac_ct_OTOOL"; then
8074 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8075 else
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 for as_dir in $PATH
8078 do
8079 IFS=$as_save_IFS
8080 case $as_dir in #(((
8081 '') as_dir=./ ;;
8082 */) ;;
8083 *) as_dir=$as_dir/ ;;
8084 esac
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8087 ac_cv_prog_ac_ct_OTOOL="otool"
8088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8089 break 2
8090 fi
8091 done
8092 done
8093 IFS=$as_save_IFS
8094
8095 fi ;;
8096 esac
8097 fi
8098 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8099 if test -n "$ac_ct_OTOOL"; then
8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8101 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8102 else
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 printf "%s\n" "no" >&6; }
8105 fi
8106
8107 if test "x$ac_ct_OTOOL" = x; then
8108 OTOOL=":"
8109 else
8110 case $cross_compiling:$ac_tool_warned in
8111 yes:)
8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8113 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8114 ac_tool_warned=yes ;;
8115 esac
8116 OTOOL=$ac_ct_OTOOL
8117 fi
8118 else
8119 OTOOL="$ac_cv_prog_OTOOL"
8120 fi
8121
8122 if test -n "$ac_tool_prefix"; then
8123 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8124 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 printf %s "checking for $ac_word... " >&6; }
8127 if test ${ac_cv_prog_OTOOL64+y}
8128 then :
8129 printf %s "(cached) " >&6
8130 else case e in #(
8131 e) if test -n "$OTOOL64"; then
8132 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8133 else
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8136 do
8137 IFS=$as_save_IFS
8138 case $as_dir in #(((
8139 '') as_dir=./ ;;
8140 */) ;;
8141 *) as_dir=$as_dir/ ;;
8142 esac
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8145 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8147 break 2
8148 fi
8149 done
8150 done
8151 IFS=$as_save_IFS
8152
8153 fi ;;
8154 esac
8155 fi
8156 OTOOL64=$ac_cv_prog_OTOOL64
8157 if test -n "$OTOOL64"; then
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8159 printf "%s\n" "$OTOOL64" >&6; }
8160 else
8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 printf "%s\n" "no" >&6; }
8163 fi
8164
8165
8166 fi
8167 if test -z "$ac_cv_prog_OTOOL64"; then
8168 ac_ct_OTOOL64=$OTOOL64
8169 # Extract the first word of "otool64", so it can be a program name with args.
8170 set dummy otool64; ac_word=$2
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 printf %s "checking for $ac_word... " >&6; }
8173 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8174 then :
8175 printf %s "(cached) " >&6
8176 else case e in #(
8177 e) if test -n "$ac_ct_OTOOL64"; then
8178 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8179 else
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 for as_dir in $PATH
8182 do
8183 IFS=$as_save_IFS
8184 case $as_dir in #(((
8185 '') as_dir=./ ;;
8186 */) ;;
8187 *) as_dir=$as_dir/ ;;
8188 esac
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8191 ac_cv_prog_ac_ct_OTOOL64="otool64"
8192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8193 break 2
8194 fi
8195 done
8196 done
8197 IFS=$as_save_IFS
8198
8199 fi ;;
8200 esac
8201 fi
8202 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8203 if test -n "$ac_ct_OTOOL64"; then
8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8205 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8206 else
8207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 printf "%s\n" "no" >&6; }
8209 fi
8210
8211 if test "x$ac_ct_OTOOL64" = x; then
8212 OTOOL64=":"
8213 else
8214 case $cross_compiling:$ac_tool_warned in
8215 yes:)
8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8217 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8218 ac_tool_warned=yes ;;
8219 esac
8220 OTOOL64=$ac_ct_OTOOL64
8221 fi
8222 else
8223 OTOOL64="$ac_cv_prog_OTOOL64"
8224 fi
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8253 printf %s "checking for -single_module linker flag... " >&6; }
8254 if test ${lt_cv_apple_cc_single_mod+y}
8255 then :
8256 printf %s "(cached) " >&6
8257 else case e in #(
8258 e) lt_cv_apple_cc_single_mod=no
8259 if test -z "$LT_MULTI_MODULE"; then
8260 # By default we will add the -single_module flag. You can override
8261 # by either setting the environment variable LT_MULTI_MODULE
8262 # non-empty at configure time, or by adding -multi_module to the
8263 # link flags.
8264 rm -rf libconftest.dylib*
8265 echo "int foo(void){return 1;}" > conftest.c
8266 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8267 -dynamiclib -Wl,-single_module conftest.c" >&5
8268 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8269 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8270 _lt_result=$?
8271 # If there is a non-empty error log, and "single_module"
8272 # appears in it, assume the flag caused a linker warning
8273 if test -s conftest.err && $GREP single_module conftest.err; then
8274 cat conftest.err >&5
8275 # Otherwise, if the output was created with a 0 exit code from
8276 # the compiler, it worked.
8277 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8278 lt_cv_apple_cc_single_mod=yes
8279 else
8280 cat conftest.err >&5
8281 fi
8282 rm -rf libconftest.dylib*
8283 rm -f conftest.*
8284 fi ;;
8285 esac
8286 fi
8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8288 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8289
8290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8291 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8292 if test ${lt_cv_ld_exported_symbols_list+y}
8293 then :
8294 printf %s "(cached) " >&6
8295 else case e in #(
8296 e) lt_cv_ld_exported_symbols_list=no
8297 save_LDFLAGS=$LDFLAGS
8298 echo "_main" > conftest.sym
8299 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301 /* end confdefs.h. */
8302
8303 int
8304 main (void)
8305 {
8306
8307 ;
8308 return 0;
8309 }
8310 _ACEOF
8311 if ac_fn_c_try_link "$LINENO"
8312 then :
8313 lt_cv_ld_exported_symbols_list=yes
8314 else case e in #(
8315 e) lt_cv_ld_exported_symbols_list=no ;;
8316 esac
8317 fi
8318 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8319 conftest$ac_exeext conftest.$ac_ext
8320 LDFLAGS=$save_LDFLAGS
8321 ;;
8322 esac
8323 fi
8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8325 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8326
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8328 printf %s "checking for -force_load linker flag... " >&6; }
8329 if test ${lt_cv_ld_force_load+y}
8330 then :
8331 printf %s "(cached) " >&6
8332 else case e in #(
8333 e) lt_cv_ld_force_load=no
8334 cat > conftest.c << _LT_EOF
8335 int forced_loaded() { return 2;}
8336 _LT_EOF
8337 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8338 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8339 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8340 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8341 echo "$RANLIB libconftest.a" >&5
8342 $RANLIB libconftest.a 2>&5
8343 cat > conftest.c << _LT_EOF
8344 int main() { return 0;}
8345 _LT_EOF
8346 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8347 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8348 _lt_result=$?
8349 if test -s conftest.err && $GREP force_load conftest.err; then
8350 cat conftest.err >&5
8351 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8352 lt_cv_ld_force_load=yes
8353 else
8354 cat conftest.err >&5
8355 fi
8356 rm -f conftest.err libconftest.a conftest conftest.c
8357 rm -rf conftest.dSYM
8358 ;;
8359 esac
8360 fi
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8362 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8363 case $host_os in
8364 rhapsody* | darwin1.[012])
8365 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8366 darwin1.*)
8367 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8368 darwin*)
8369 case $MACOSX_DEPLOYMENT_TARGET,$host in
8370 10.[012],*|,*powerpc*-darwin[5-8]*)
8371 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8372 *)
8373 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8374 esac
8375 ;;
8376 esac
8377 if test yes = "$lt_cv_apple_cc_single_mod"; then
8378 _lt_dar_single_mod='$single_module'
8379 fi
8380 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8381 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8382 else
8383 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8384 fi
8385 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8386 _lt_dsymutil='~$DSYMUTIL $lib || :'
8387 else
8388 _lt_dsymutil=
8389 fi
8390 ;;
8391 esac
8392
8393 # func_munge_path_list VARIABLE PATH
8394 # -----------------------------------
8395 # VARIABLE is name of variable containing _space_ separated list of
8396 # directories to be munged by the contents of PATH, which is string
8397 # having a format:
8398 # "DIR[:DIR]:"
8399 # string "DIR[ DIR]" will be prepended to VARIABLE
8400 # ":DIR[:DIR]"
8401 # string "DIR[ DIR]" will be appended to VARIABLE
8402 # "DIRP[:DIRP]::[DIRA:]DIRA"
8403 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8404 # "DIRA[ DIRA]" will be appended to VARIABLE
8405 # "DIR[:DIR]"
8406 # VARIABLE will be replaced by "DIR[ DIR]"
8407 func_munge_path_list ()
8408 {
8409 case x$2 in
8410 x)
8411 ;;
8412 *:)
8413 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8414 ;;
8415 x:*)
8416 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8417 ;;
8418 *::*)
8419 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8420 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8421 ;;
8422 *)
8423 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8424 ;;
8425 esac
8426 }
8427
8428 ac_header= ac_cache=
8429 for ac_item in $ac_header_c_list
8430 do
8431 if test $ac_cache; then
8432 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8433 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8434 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8435 fi
8436 ac_header= ac_cache=
8437 elif test $ac_header; then
8438 ac_cache=$ac_item
8439 else
8440 ac_header=$ac_item
8441 fi
8442 done
8443
8444
8445
8446
8447
8448
8449
8450
8451 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8452 then :
8453
8454 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8455
8456 fi
8457 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8458 "
8459 if test "x$ac_cv_header_dlfcn_h" = xyes
8460 then :
8461 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8462
8463 fi
8464
8465
8466
8467
8468
8469 # Set options
8470
8471
8472
8473 enable_dlopen=no
8474
8475
8476 enable_win32_dll=no
8477
8478
8479 # Check whether --enable-shared was given.
8480 if test ${enable_shared+y}
8481 then :
8482 enableval=$enable_shared; p=${PACKAGE-default}
8483 case $enableval in
8484 yes) enable_shared=yes ;;
8485 no) enable_shared=no ;;
8486 *)
8487 enable_shared=no
8488 # Look at the argument we got. We use all the common list separators.
8489 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8490 for pkg in $enableval; do
8491 IFS=$lt_save_ifs
8492 if test "X$pkg" = "X$p"; then
8493 enable_shared=yes
8494 fi
8495 done
8496 IFS=$lt_save_ifs
8497 ;;
8498 esac
8499 else case e in #(
8500 e) enable_shared=yes ;;
8501 esac
8502 fi
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512 # Check whether --enable-static was given.
8513 if test ${enable_static+y}
8514 then :
8515 enableval=$enable_static; p=${PACKAGE-default}
8516 case $enableval in
8517 yes) enable_static=yes ;;
8518 no) enable_static=no ;;
8519 *)
8520 enable_static=no
8521 # Look at the argument we got. We use all the common list separators.
8522 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8523 for pkg in $enableval; do
8524 IFS=$lt_save_ifs
8525 if test "X$pkg" = "X$p"; then
8526 enable_static=yes
8527 fi
8528 done
8529 IFS=$lt_save_ifs
8530 ;;
8531 esac
8532 else case e in #(
8533 e) enable_static=yes ;;
8534 esac
8535 fi
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546 # Check whether --with-pic was given.
8547 if test ${with_pic+y}
8548 then :
8549 withval=$with_pic; lt_p=${PACKAGE-default}
8550 case $withval in
8551 yes|no) pic_mode=$withval ;;
8552 *)
8553 pic_mode=default
8554 # Look at the argument we got. We use all the common list separators.
8555 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8556 for lt_pkg in $withval; do
8557 IFS=$lt_save_ifs
8558 if test "X$lt_pkg" = "X$lt_p"; then
8559 pic_mode=yes
8560 fi
8561 done
8562 IFS=$lt_save_ifs
8563 ;;
8564 esac
8565 else case e in #(
8566 e) pic_mode=default ;;
8567 esac
8568 fi
8569
8570
8571
8572
8573
8574
8575
8576
8577 # Check whether --enable-fast-install was given.
8578 if test ${enable_fast_install+y}
8579 then :
8580 enableval=$enable_fast_install; p=${PACKAGE-default}
8581 case $enableval in
8582 yes) enable_fast_install=yes ;;
8583 no) enable_fast_install=no ;;
8584 *)
8585 enable_fast_install=no
8586 # Look at the argument we got. We use all the common list separators.
8587 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8588 for pkg in $enableval; do
8589 IFS=$lt_save_ifs
8590 if test "X$pkg" = "X$p"; then
8591 enable_fast_install=yes
8592 fi
8593 done
8594 IFS=$lt_save_ifs
8595 ;;
8596 esac
8597 else case e in #(
8598 e) enable_fast_install=yes ;;
8599 esac
8600 fi
8601
8602
8603
8604
8605
8606
8607
8608
8609 shared_archive_member_spec=
8610 case $host,$enable_shared in
8611 power*-*-aix[5-9]*,yes)
8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8613 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8614
8615 # Check whether --with-aix-soname was given.
8616 if test ${with_aix_soname+y}
8617 then :
8618 withval=$with_aix_soname; case $withval in
8619 aix|svr4|both)
8620 ;;
8621 *)
8622 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8623 ;;
8624 esac
8625 lt_cv_with_aix_soname=$with_aix_soname
8626 else case e in #(
8627 e) if test ${lt_cv_with_aix_soname+y}
8628 then :
8629 printf %s "(cached) " >&6
8630 else case e in #(
8631 e) lt_cv_with_aix_soname=aix ;;
8632 esac
8633 fi
8634
8635 with_aix_soname=$lt_cv_with_aix_soname ;;
8636 esac
8637 fi
8638
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8640 printf "%s\n" "$with_aix_soname" >&6; }
8641 if test aix != "$with_aix_soname"; then
8642 # For the AIX way of multilib, we name the shared archive member
8643 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8644 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8645 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8646 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8647 if test 64 = "${OBJECT_MODE-32}"; then
8648 shared_archive_member_spec=shr_64
8649 else
8650 shared_archive_member_spec=shr
8651 fi
8652 fi
8653 ;;
8654 *)
8655 with_aix_soname=aix
8656 ;;
8657 esac
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668 # This can be used to rebuild libtool when needed
8669 LIBTOOL_DEPS=$ltmain
8670
8671 # Always use our own libtool.
8672 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703 test -z "$LN_S" && LN_S="ln -s"
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718 if test -n "${ZSH_VERSION+set}"; then
8719 setopt NO_GLOB_SUBST
8720 fi
8721
8722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8723 printf %s "checking for objdir... " >&6; }
8724 if test ${lt_cv_objdir+y}
8725 then :
8726 printf %s "(cached) " >&6
8727 else case e in #(
8728 e) rm -f .libs 2>/dev/null
8729 mkdir .libs 2>/dev/null
8730 if test -d .libs; then
8731 lt_cv_objdir=.libs
8732 else
8733 # MS-DOS does not allow filenames that begin with a dot.
8734 lt_cv_objdir=_libs
8735 fi
8736 rmdir .libs 2>/dev/null ;;
8737 esac
8738 fi
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8740 printf "%s\n" "$lt_cv_objdir" >&6; }
8741 objdir=$lt_cv_objdir
8742
8743
8744
8745
8746
8747 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8748
8749
8750
8751
8752 case $host_os in
8753 aix3*)
8754 # AIX sometimes has problems with the GCC collect2 program. For some
8755 # reason, if we set the COLLECT_NAMES environment variable, the problems
8756 # vanish in a puff of smoke.
8757 if test set != "${COLLECT_NAMES+set}"; then
8758 COLLECT_NAMES=
8759 export COLLECT_NAMES
8760 fi
8761 ;;
8762 esac
8763
8764 # Global variables:
8765 ofile=libtool
8766 can_build_shared=yes
8767
8768 # All known linkers require a '.a' archive for static linking (except MSVC and
8769 # ICC, which need '.lib').
8770 libext=a
8771
8772 with_gnu_ld=$lt_cv_prog_gnu_ld
8773
8774 old_CC=$CC
8775 old_CFLAGS=$CFLAGS
8776
8777 # Set sane defaults for various variables
8778 test -z "$CC" && CC=cc
8779 test -z "$LTCC" && LTCC=$CC
8780 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8781 test -z "$LD" && LD=ld
8782 test -z "$ac_objext" && ac_objext=o
8783
8784 func_cc_basename $compiler
8785 cc_basename=$func_cc_basename_result
8786
8787
8788 # Only perform the check for file, if the check method requires it
8789 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8790 case $deplibs_check_method in
8791 file_magic*)
8792 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8794 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8795 if test ${lt_cv_path_MAGIC_CMD+y}
8796 then :
8797 printf %s "(cached) " >&6
8798 else case e in #(
8799 e) case $MAGIC_CMD in
8800 [\\/*] | ?:[\\/]*)
8801 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8802 ;;
8803 *)
8804 lt_save_MAGIC_CMD=$MAGIC_CMD
8805 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8806 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8807 for ac_dir in $ac_dummy; do
8808 IFS=$lt_save_ifs
8809 test -z "$ac_dir" && ac_dir=.
8810 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8811 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8812 if test -n "$file_magic_test_file"; then
8813 case $deplibs_check_method in
8814 "file_magic "*)
8815 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8816 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8817 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8818 $EGREP "$file_magic_regex" > /dev/null; then
8819 :
8820 else
8821 cat <<_LT_EOF 1>&2
8822
8823 *** Warning: the command libtool uses to detect shared libraries,
8824 *** $file_magic_cmd, produces output that libtool cannot recognize.
8825 *** The result is that libtool may fail to recognize shared libraries
8826 *** as such. This will affect the creation of libtool libraries that
8827 *** depend on shared libraries, but programs linked with such libtool
8828 *** libraries will work regardless of this problem. Nevertheless, you
8829 *** may want to report the problem to your system manager and/or to
8830 *** [email protected]
8831
8832 _LT_EOF
8833 fi ;;
8834 esac
8835 fi
8836 break
8837 fi
8838 done
8839 IFS=$lt_save_ifs
8840 MAGIC_CMD=$lt_save_MAGIC_CMD
8841 ;;
8842 esac ;;
8843 esac
8844 fi
8845
8846 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8847 if test -n "$MAGIC_CMD"; then
8848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8849 printf "%s\n" "$MAGIC_CMD" >&6; }
8850 else
8851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 printf "%s\n" "no" >&6; }
8853 fi
8854
8855
8856
8857
8858
8859 if test -z "$lt_cv_path_MAGIC_CMD"; then
8860 if test -n "$ac_tool_prefix"; then
8861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8862 printf %s "checking for file... " >&6; }
8863 if test ${lt_cv_path_MAGIC_CMD+y}
8864 then :
8865 printf %s "(cached) " >&6
8866 else case e in #(
8867 e) case $MAGIC_CMD in
8868 [\\/*] | ?:[\\/]*)
8869 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8870 ;;
8871 *)
8872 lt_save_MAGIC_CMD=$MAGIC_CMD
8873 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8874 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8875 for ac_dir in $ac_dummy; do
8876 IFS=$lt_save_ifs
8877 test -z "$ac_dir" && ac_dir=.
8878 if test -f "$ac_dir/file"; then
8879 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8880 if test -n "$file_magic_test_file"; then
8881 case $deplibs_check_method in
8882 "file_magic "*)
8883 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8884 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8885 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8886 $EGREP "$file_magic_regex" > /dev/null; then
8887 :
8888 else
8889 cat <<_LT_EOF 1>&2
8890
8891 *** Warning: the command libtool uses to detect shared libraries,
8892 *** $file_magic_cmd, produces output that libtool cannot recognize.
8893 *** The result is that libtool may fail to recognize shared libraries
8894 *** as such. This will affect the creation of libtool libraries that
8895 *** depend on shared libraries, but programs linked with such libtool
8896 *** libraries will work regardless of this problem. Nevertheless, you
8897 *** may want to report the problem to your system manager and/or to
8898 *** [email protected]
8899
8900 _LT_EOF
8901 fi ;;
8902 esac
8903 fi
8904 break
8905 fi
8906 done
8907 IFS=$lt_save_ifs
8908 MAGIC_CMD=$lt_save_MAGIC_CMD
8909 ;;
8910 esac ;;
8911 esac
8912 fi
8913
8914 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8915 if test -n "$MAGIC_CMD"; then
8916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8917 printf "%s\n" "$MAGIC_CMD" >&6; }
8918 else
8919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920 printf "%s\n" "no" >&6; }
8921 fi
8922
8923
8924 else
8925 MAGIC_CMD=:
8926 fi
8927 fi
8928
8929 fi
8930 ;;
8931 esac
8932
8933 # Use C for the default configuration in the libtool script
8934
8935 lt_save_CC=$CC
8936 ac_ext=c
8937 ac_cpp='$CPP $CPPFLAGS'
8938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8941
8942
8943 # Source file extension for C test sources.
8944 ac_ext=c
8945
8946 # Object file extension for compiled C test sources.
8947 objext=o
8948 objext=$objext
8949
8950 # Code to be used in simple compile tests
8951 lt_simple_compile_test_code="int some_variable = 0;"
8952
8953 # Code to be used in simple link tests
8954 lt_simple_link_test_code='int main(){return(0);}'
8955
8956
8957
8958
8959
8960
8961
8962 # If no C compiler was specified, use CC.
8963 LTCC=${LTCC-"$CC"}
8964
8965 # If no C compiler flags were specified, use CFLAGS.
8966 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8967
8968 # Allow CC to be a program name with arguments.
8969 compiler=$CC
8970
8971 # Save the default compiler, since it gets overwritten when the other
8972 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8973 compiler_DEFAULT=$CC
8974
8975 # save warnings/boilerplate of simple test code
8976 ac_outfile=conftest.$ac_objext
8977 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8978 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8979 _lt_compiler_boilerplate=`cat conftest.err`
8980 $RM conftest*
8981
8982 ac_outfile=conftest.$ac_objext
8983 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8984 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8985 _lt_linker_boilerplate=`cat conftest.err`
8986 $RM -r conftest*
8987
8988
8989 if test -n "$compiler"; then
8990
8991 lt_prog_compiler_no_builtin_flag=
8992
8993 if test yes = "$GCC"; then
8994 case $cc_basename in
8995 nvcc*)
8996 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8997 *)
8998 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8999 esac
9000
9001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9002 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9003 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9004 then :
9005 printf %s "(cached) " >&6
9006 else case e in #(
9007 e) lt_cv_prog_compiler_rtti_exceptions=no
9008 ac_outfile=conftest.$ac_objext
9009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9010 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9011 # Insert the option either (1) after the last *FLAGS variable, or
9012 # (2) before a word containing "conftest.", or (3) at the end.
9013 # Note that $ac_compile itself does not contain backslashes and begins
9014 # with a dollar sign (not a hyphen), so the echo should work correctly.
9015 # The option is referenced via a variable to avoid confusing sed.
9016 lt_compile=`echo "$ac_compile" | $SED \
9017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9019 -e 's:$: $lt_compiler_flag:'`
9020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9021 (eval "$lt_compile" 2>conftest.err)
9022 ac_status=$?
9023 cat conftest.err >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 if (exit $ac_status) && test -s "$ac_outfile"; then
9026 # The compiler can only warn and ignore the option if not recognized
9027 # So say no if there are warnings other than the usual output.
9028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9030 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9031 lt_cv_prog_compiler_rtti_exceptions=yes
9032 fi
9033 fi
9034 $RM conftest*
9035 ;;
9036 esac
9037 fi
9038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9039 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9040
9041 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9042 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9043 else
9044 :
9045 fi
9046
9047 fi
9048
9049
9050
9051
9052
9053
9054 lt_prog_compiler_wl=
9055 lt_prog_compiler_pic=
9056 lt_prog_compiler_static=
9057
9058
9059 if test yes = "$GCC"; then
9060 lt_prog_compiler_wl='-Wl,'
9061 lt_prog_compiler_static='-static'
9062
9063 case $host_os in
9064 aix*)
9065 # All AIX code is PIC.
9066 if test ia64 = "$host_cpu"; then
9067 # AIX 5 now supports IA64 processor
9068 lt_prog_compiler_static='-Bstatic'
9069 fi
9070 lt_prog_compiler_pic='-fPIC'
9071 ;;
9072
9073 amigaos*)
9074 case $host_cpu in
9075 powerpc)
9076 # see comment about AmigaOS4 .so support
9077 lt_prog_compiler_pic='-fPIC'
9078 ;;
9079 m68k)
9080 # FIXME: we need at least 68020 code to build shared libraries, but
9081 # adding the '-m68020' flag to GCC prevents building anything better,
9082 # like '-m68040'.
9083 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9084 ;;
9085 esac
9086 ;;
9087
9088 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9089 # PIC is the default for these OSes.
9090 ;;
9091
9092 mingw* | cygwin* | pw32* | os2* | cegcc*)
9093 # This hack is so that the source file can tell whether it is being
9094 # built for inclusion in a dll (and should export symbols for example).
9095 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9096 # (--disable-auto-import) libraries
9097 lt_prog_compiler_pic='-DDLL_EXPORT'
9098 case $host_os in
9099 os2*)
9100 lt_prog_compiler_static='$wl-static'
9101 ;;
9102 esac
9103 ;;
9104
9105 darwin* | rhapsody*)
9106 # PIC is the default on this platform
9107 # Common symbols not allowed in MH_DYLIB files
9108 lt_prog_compiler_pic='-fno-common'
9109 ;;
9110
9111 haiku*)
9112 # PIC is the default for Haiku.
9113 # The "-static" flag exists, but is broken.
9114 lt_prog_compiler_static=
9115 ;;
9116
9117 hpux*)
9118 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9119 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9120 # sets the default TLS model and affects inlining.
9121 case $host_cpu in
9122 hppa*64*)
9123 # +Z the default
9124 ;;
9125 *)
9126 lt_prog_compiler_pic='-fPIC'
9127 ;;
9128 esac
9129 ;;
9130
9131 interix[3-9]*)
9132 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9133 # Instead, we relocate shared libraries at runtime.
9134 ;;
9135
9136 msdosdjgpp*)
9137 # Just because we use GCC doesn't mean we suddenly get shared libraries
9138 # on systems that don't support them.
9139 lt_prog_compiler_can_build_shared=no
9140 enable_shared=no
9141 ;;
9142
9143 *nto* | *qnx*)
9144 # QNX uses GNU C++, but need to define -shared option too, otherwise
9145 # it will coredump.
9146 lt_prog_compiler_pic='-fPIC -shared'
9147 ;;
9148
9149 sysv4*MP*)
9150 if test -d /usr/nec; then
9151 lt_prog_compiler_pic=-Kconform_pic
9152 fi
9153 ;;
9154
9155 *)
9156 lt_prog_compiler_pic='-fPIC'
9157 ;;
9158 esac
9159
9160 case $cc_basename in
9161 nvcc*) # Cuda Compiler Driver 2.2
9162 lt_prog_compiler_wl='-Xlinker '
9163 if test -n "$lt_prog_compiler_pic"; then
9164 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9165 fi
9166 ;;
9167 esac
9168 else
9169 # PORTME Check for flag to pass linker flags through the system compiler.
9170 case $host_os in
9171 aix*)
9172 lt_prog_compiler_wl='-Wl,'
9173 if test ia64 = "$host_cpu"; then
9174 # AIX 5 now supports IA64 processor
9175 lt_prog_compiler_static='-Bstatic'
9176 else
9177 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9178 fi
9179 ;;
9180
9181 darwin* | rhapsody*)
9182 # PIC is the default on this platform
9183 # Common symbols not allowed in MH_DYLIB files
9184 lt_prog_compiler_pic='-fno-common'
9185 case $cc_basename in
9186 nagfor*)
9187 # NAG Fortran compiler
9188 lt_prog_compiler_wl='-Wl,-Wl,,'
9189 lt_prog_compiler_pic='-PIC'
9190 lt_prog_compiler_static='-Bstatic'
9191 ;;
9192 esac
9193 ;;
9194
9195 mingw* | cygwin* | pw32* | os2* | cegcc*)
9196 # This hack is so that the source file can tell whether it is being
9197 # built for inclusion in a dll (and should export symbols for example).
9198 lt_prog_compiler_pic='-DDLL_EXPORT'
9199 case $host_os in
9200 os2*)
9201 lt_prog_compiler_static='$wl-static'
9202 ;;
9203 esac
9204 ;;
9205
9206 hpux9* | hpux10* | hpux11*)
9207 lt_prog_compiler_wl='-Wl,'
9208 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9209 # not for PA HP-UX.
9210 case $host_cpu in
9211 hppa*64*|ia64*)
9212 # +Z the default
9213 ;;
9214 *)
9215 lt_prog_compiler_pic='+Z'
9216 ;;
9217 esac
9218 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9219 lt_prog_compiler_static='$wl-a ${wl}archive'
9220 ;;
9221
9222 irix5* | irix6* | nonstopux*)
9223 lt_prog_compiler_wl='-Wl,'
9224 # PIC (with -KPIC) is the default.
9225 lt_prog_compiler_static='-non_shared'
9226 ;;
9227
9228 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9229 case $cc_basename in
9230 # old Intel for x86_64, which still supported -KPIC.
9231 ecc*)
9232 lt_prog_compiler_wl='-Wl,'
9233 lt_prog_compiler_pic='-KPIC'
9234 lt_prog_compiler_static='-static'
9235 ;;
9236 # icc used to be incompatible with GCC.
9237 # ICC 10 doesn't accept -KPIC any more.
9238 icc* | ifort*)
9239 lt_prog_compiler_wl='-Wl,'
9240 lt_prog_compiler_pic='-fPIC'
9241 lt_prog_compiler_static='-static'
9242 ;;
9243 # Lahey Fortran 8.1.
9244 lf95*)
9245 lt_prog_compiler_wl='-Wl,'
9246 lt_prog_compiler_pic='--shared'
9247 lt_prog_compiler_static='--static'
9248 ;;
9249 nagfor*)
9250 # NAG Fortran compiler
9251 lt_prog_compiler_wl='-Wl,-Wl,,'
9252 lt_prog_compiler_pic='-PIC'
9253 lt_prog_compiler_static='-Bstatic'
9254 ;;
9255 tcc*)
9256 # Fabrice Bellard et al's Tiny C Compiler
9257 lt_prog_compiler_wl='-Wl,'
9258 lt_prog_compiler_pic='-fPIC'
9259 lt_prog_compiler_static='-static'
9260 ;;
9261 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9262 # Portland Group compilers (*not* the Pentium gcc compiler,
9263 # which looks to be a dead project)
9264 lt_prog_compiler_wl='-Wl,'
9265 lt_prog_compiler_pic='-fpic'
9266 lt_prog_compiler_static='-Bstatic'
9267 ;;
9268 ccc*)
9269 lt_prog_compiler_wl='-Wl,'
9270 # All Alpha code is PIC.
9271 lt_prog_compiler_static='-non_shared'
9272 ;;
9273 xl* | bgxl* | bgf* | mpixl*)
9274 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9275 lt_prog_compiler_wl='-Wl,'
9276 lt_prog_compiler_pic='-qpic'
9277 lt_prog_compiler_static='-qstaticlink'
9278 ;;
9279 *)
9280 case `$CC -V 2>&1 | $SED 5q` in
9281 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9282 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9283 lt_prog_compiler_pic='-KPIC'
9284 lt_prog_compiler_static='-Bstatic'
9285 lt_prog_compiler_wl=''
9286 ;;
9287 *Sun\ F* | *Sun*Fortran*)
9288 lt_prog_compiler_pic='-KPIC'
9289 lt_prog_compiler_static='-Bstatic'
9290 lt_prog_compiler_wl='-Qoption ld '
9291 ;;
9292 *Sun\ C*)
9293 # Sun C 5.9
9294 lt_prog_compiler_pic='-KPIC'
9295 lt_prog_compiler_static='-Bstatic'
9296 lt_prog_compiler_wl='-Wl,'
9297 ;;
9298 *Intel*\ [CF]*Compiler*)
9299 lt_prog_compiler_wl='-Wl,'
9300 lt_prog_compiler_pic='-fPIC'
9301 lt_prog_compiler_static='-static'
9302 ;;
9303 *Portland\ Group*)
9304 lt_prog_compiler_wl='-Wl,'
9305 lt_prog_compiler_pic='-fpic'
9306 lt_prog_compiler_static='-Bstatic'
9307 ;;
9308 esac
9309 ;;
9310 esac
9311 ;;
9312
9313 newsos6)
9314 lt_prog_compiler_pic='-KPIC'
9315 lt_prog_compiler_static='-Bstatic'
9316 ;;
9317
9318 *nto* | *qnx*)
9319 # QNX uses GNU C++, but need to define -shared option too, otherwise
9320 # it will coredump.
9321 lt_prog_compiler_pic='-fPIC -shared'
9322 ;;
9323
9324 osf3* | osf4* | osf5*)
9325 lt_prog_compiler_wl='-Wl,'
9326 # All OSF/1 code is PIC.
9327 lt_prog_compiler_static='-non_shared'
9328 ;;
9329
9330 rdos*)
9331 lt_prog_compiler_static='-non_shared'
9332 ;;
9333
9334 solaris*)
9335 lt_prog_compiler_pic='-KPIC'
9336 lt_prog_compiler_static='-Bstatic'
9337 case $cc_basename in
9338 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9339 lt_prog_compiler_wl='-Qoption ld ';;
9340 *)
9341 lt_prog_compiler_wl='-Wl,';;
9342 esac
9343 ;;
9344
9345 sunos4*)
9346 lt_prog_compiler_wl='-Qoption ld '
9347 lt_prog_compiler_pic='-PIC'
9348 lt_prog_compiler_static='-Bstatic'
9349 ;;
9350
9351 sysv4 | sysv4.2uw2* | sysv4.3*)
9352 lt_prog_compiler_wl='-Wl,'
9353 lt_prog_compiler_pic='-KPIC'
9354 lt_prog_compiler_static='-Bstatic'
9355 ;;
9356
9357 sysv4*MP*)
9358 if test -d /usr/nec; then
9359 lt_prog_compiler_pic='-Kconform_pic'
9360 lt_prog_compiler_static='-Bstatic'
9361 fi
9362 ;;
9363
9364 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9365 lt_prog_compiler_wl='-Wl,'
9366 lt_prog_compiler_pic='-KPIC'
9367 lt_prog_compiler_static='-Bstatic'
9368 ;;
9369
9370 unicos*)
9371 lt_prog_compiler_wl='-Wl,'
9372 lt_prog_compiler_can_build_shared=no
9373 ;;
9374
9375 uts4*)
9376 lt_prog_compiler_pic='-pic'
9377 lt_prog_compiler_static='-Bstatic'
9378 ;;
9379
9380 *)
9381 lt_prog_compiler_can_build_shared=no
9382 ;;
9383 esac
9384 fi
9385
9386 case $host_os in
9387 # For platforms that do not support PIC, -DPIC is meaningless:
9388 *djgpp*)
9389 lt_prog_compiler_pic=
9390 ;;
9391 *)
9392 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9393 ;;
9394 esac
9395
9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9397 printf %s "checking for $compiler option to produce PIC... " >&6; }
9398 if test ${lt_cv_prog_compiler_pic+y}
9399 then :
9400 printf %s "(cached) " >&6
9401 else case e in #(
9402 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9403 esac
9404 fi
9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9406 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9407 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9408
9409 #
9410 # Check to make sure the PIC flag actually works.
9411 #
9412 if test -n "$lt_prog_compiler_pic"; then
9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9414 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9415 if test ${lt_cv_prog_compiler_pic_works+y}
9416 then :
9417 printf %s "(cached) " >&6
9418 else case e in #(
9419 e) lt_cv_prog_compiler_pic_works=no
9420 ac_outfile=conftest.$ac_objext
9421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9422 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9423 # Insert the option either (1) after the last *FLAGS variable, or
9424 # (2) before a word containing "conftest.", or (3) at the end.
9425 # Note that $ac_compile itself does not contain backslashes and begins
9426 # with a dollar sign (not a hyphen), so the echo should work correctly.
9427 # The option is referenced via a variable to avoid confusing sed.
9428 lt_compile=`echo "$ac_compile" | $SED \
9429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9431 -e 's:$: $lt_compiler_flag:'`
9432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9433 (eval "$lt_compile" 2>conftest.err)
9434 ac_status=$?
9435 cat conftest.err >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 if (exit $ac_status) && test -s "$ac_outfile"; then
9438 # The compiler can only warn and ignore the option if not recognized
9439 # So say no if there are warnings other than the usual output.
9440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9443 lt_cv_prog_compiler_pic_works=yes
9444 fi
9445 fi
9446 $RM conftest*
9447 ;;
9448 esac
9449 fi
9450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9451 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9452
9453 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9454 case $lt_prog_compiler_pic in
9455 "" | " "*) ;;
9456 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9457 esac
9458 else
9459 lt_prog_compiler_pic=
9460 lt_prog_compiler_can_build_shared=no
9461 fi
9462
9463 fi
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475 #
9476 # Check to make sure the static flag actually works.
9477 #
9478 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9480 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9481 if test ${lt_cv_prog_compiler_static_works+y}
9482 then :
9483 printf %s "(cached) " >&6
9484 else case e in #(
9485 e) lt_cv_prog_compiler_static_works=no
9486 save_LDFLAGS=$LDFLAGS
9487 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9488 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9489 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9490 # The linker can only warn and ignore the option if not recognized
9491 # So say no if there are warnings
9492 if test -s conftest.err; then
9493 # Append any errors to the config.log.
9494 cat conftest.err 1>&5
9495 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9497 if diff conftest.exp conftest.er2 >/dev/null; then
9498 lt_cv_prog_compiler_static_works=yes
9499 fi
9500 else
9501 lt_cv_prog_compiler_static_works=yes
9502 fi
9503 fi
9504 $RM -r conftest*
9505 LDFLAGS=$save_LDFLAGS
9506 ;;
9507 esac
9508 fi
9509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9510 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9511
9512 if test yes = "$lt_cv_prog_compiler_static_works"; then
9513 :
9514 else
9515 lt_prog_compiler_static=
9516 fi
9517
9518
9519
9520
9521
9522
9523
9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9525 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9526 if test ${lt_cv_prog_compiler_c_o+y}
9527 then :
9528 printf %s "(cached) " >&6
9529 else case e in #(
9530 e) lt_cv_prog_compiler_c_o=no
9531 $RM -r conftest 2>/dev/null
9532 mkdir conftest
9533 cd conftest
9534 mkdir out
9535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9536
9537 lt_compiler_flag="-o out/conftest2.$ac_objext"
9538 # Insert the option either (1) after the last *FLAGS variable, or
9539 # (2) before a word containing "conftest.", or (3) at the end.
9540 # Note that $ac_compile itself does not contain backslashes and begins
9541 # with a dollar sign (not a hyphen), so the echo should work correctly.
9542 lt_compile=`echo "$ac_compile" | $SED \
9543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9545 -e 's:$: $lt_compiler_flag:'`
9546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9547 (eval "$lt_compile" 2>out/conftest.err)
9548 ac_status=$?
9549 cat out/conftest.err >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9552 then
9553 # The compiler can only warn and ignore the option if not recognized
9554 # So say no if there are warnings
9555 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9556 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9557 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9558 lt_cv_prog_compiler_c_o=yes
9559 fi
9560 fi
9561 chmod u+w . 2>&5
9562 $RM conftest*
9563 # SGI C++ compiler will create directory out/ii_files/ for
9564 # template instantiation
9565 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9566 $RM out/* && rmdir out
9567 cd ..
9568 $RM -r conftest
9569 $RM conftest*
9570 ;;
9571 esac
9572 fi
9573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9574 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9575
9576
9577
9578
9579
9580
9581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9582 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9583 if test ${lt_cv_prog_compiler_c_o+y}
9584 then :
9585 printf %s "(cached) " >&6
9586 else case e in #(
9587 e) lt_cv_prog_compiler_c_o=no
9588 $RM -r conftest 2>/dev/null
9589 mkdir conftest
9590 cd conftest
9591 mkdir out
9592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9593
9594 lt_compiler_flag="-o out/conftest2.$ac_objext"
9595 # Insert the option either (1) after the last *FLAGS variable, or
9596 # (2) before a word containing "conftest.", or (3) at the end.
9597 # Note that $ac_compile itself does not contain backslashes and begins
9598 # with a dollar sign (not a hyphen), so the echo should work correctly.
9599 lt_compile=`echo "$ac_compile" | $SED \
9600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9602 -e 's:$: $lt_compiler_flag:'`
9603 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9604 (eval "$lt_compile" 2>out/conftest.err)
9605 ac_status=$?
9606 cat out/conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9609 then
9610 # The compiler can only warn and ignore the option if not recognized
9611 # So say no if there are warnings
9612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9613 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9614 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9615 lt_cv_prog_compiler_c_o=yes
9616 fi
9617 fi
9618 chmod u+w . 2>&5
9619 $RM conftest*
9620 # SGI C++ compiler will create directory out/ii_files/ for
9621 # template instantiation
9622 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9623 $RM out/* && rmdir out
9624 cd ..
9625 $RM -r conftest
9626 $RM conftest*
9627 ;;
9628 esac
9629 fi
9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9631 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9632
9633
9634
9635
9636 hard_links=nottested
9637 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9638 # do not overwrite the value of need_locks provided by the user
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9640 printf %s "checking if we can lock with hard links... " >&6; }
9641 hard_links=yes
9642 $RM conftest*
9643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9644 touch conftest.a
9645 ln conftest.a conftest.b 2>&5 || hard_links=no
9646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9648 printf "%s\n" "$hard_links" >&6; }
9649 if test no = "$hard_links"; then
9650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9651 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9652 need_locks=warn
9653 fi
9654 else
9655 need_locks=no
9656 fi
9657
9658
9659
9660
9661
9662
9663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9664 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9665
9666 runpath_var=
9667 allow_undefined_flag=
9668 always_export_symbols=no
9669 archive_cmds=
9670 archive_expsym_cmds=
9671 compiler_needs_object=no
9672 enable_shared_with_static_runtimes=no
9673 export_dynamic_flag_spec=
9674 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9675 hardcode_automatic=no
9676 hardcode_direct=no
9677 hardcode_direct_absolute=no
9678 hardcode_libdir_flag_spec=
9679 hardcode_libdir_separator=
9680 hardcode_minus_L=no
9681 hardcode_shlibpath_var=unsupported
9682 inherit_rpath=no
9683 link_all_deplibs=unknown
9684 module_cmds=
9685 module_expsym_cmds=
9686 old_archive_from_new_cmds=
9687 old_archive_from_expsyms_cmds=
9688 thread_safe_flag_spec=
9689 whole_archive_flag_spec=
9690 # include_expsyms should be a list of space-separated symbols to be *always*
9691 # included in the symbol list
9692 include_expsyms=
9693 # exclude_expsyms can be an extended regexp of symbols to exclude
9694 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9695 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9696 # as well as any symbol that contains 'd'.
9697 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9698 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9699 # platforms (ab)use it in PIC code, but their linkers get confused if
9700 # the symbol is explicitly referenced. Since portable code cannot
9701 # rely on this symbol name, it's probably fine to never include it in
9702 # preloaded symbol tables.
9703 # Exclude shared library initialization/finalization symbols.
9704 extract_expsyms_cmds=
9705
9706 case $host_os in
9707 cygwin* | mingw* | pw32* | cegcc*)
9708 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9709 # When not using gcc, we currently assume that we are using
9710 # Microsoft Visual C++ or Intel C++ Compiler.
9711 if test yes != "$GCC"; then
9712 with_gnu_ld=no
9713 fi
9714 ;;
9715 interix*)
9716 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9717 with_gnu_ld=yes
9718 ;;
9719 openbsd* | bitrig*)
9720 with_gnu_ld=no
9721 ;;
9722 esac
9723
9724 ld_shlibs=yes
9725
9726 # On some targets, GNU ld is compatible enough with the native linker
9727 # that we're better off using the native interface for both.
9728 lt_use_gnu_ld_interface=no
9729 if test yes = "$with_gnu_ld"; then
9730 case $host_os in
9731 aix*)
9732 # The AIX port of GNU ld has always aspired to compatibility
9733 # with the native linker. However, as the warning in the GNU ld
9734 # block says, versions before 2.19.5* couldn't really create working
9735 # shared libraries, regardless of the interface used.
9736 case `$LD -v 2>&1` in
9737 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9738 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9739 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9740 *)
9741 lt_use_gnu_ld_interface=yes
9742 ;;
9743 esac
9744 ;;
9745 *)
9746 lt_use_gnu_ld_interface=yes
9747 ;;
9748 esac
9749 fi
9750
9751 if test yes = "$lt_use_gnu_ld_interface"; then
9752 # If archive_cmds runs LD, not CC, wlarc should be empty
9753 wlarc='$wl'
9754
9755 # Set some defaults for GNU ld with shared library support. These
9756 # are reset later if shared libraries are not supported. Putting them
9757 # here allows them to be overridden if necessary.
9758 runpath_var=LD_RUN_PATH
9759 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9760 export_dynamic_flag_spec='$wl--export-dynamic'
9761 # ancient GNU ld didn't support --whole-archive et. al.
9762 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9763 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9764 else
9765 whole_archive_flag_spec=
9766 fi
9767 supports_anon_versioning=no
9768 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9769 *GNU\ gold*) supports_anon_versioning=yes ;;
9770 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9771 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9772 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9773 *\ 2.11.*) ;; # other 2.11 versions
9774 *) supports_anon_versioning=yes ;;
9775 esac
9776
9777 # See if GNU ld supports shared libraries.
9778 case $host_os in
9779 aix[3-9]*)
9780 # On AIX/PPC, the GNU linker is very broken
9781 if test ia64 != "$host_cpu"; then
9782 ld_shlibs=no
9783 cat <<_LT_EOF 1>&2
9784
9785 *** Warning: the GNU linker, at least up to release 2.19, is reported
9786 *** to be unable to reliably create shared libraries on AIX.
9787 *** Therefore, libtool is disabling shared libraries support. If you
9788 *** really care for shared libraries, you may want to install binutils
9789 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9790 *** You will then need to restart the configuration process.
9791
9792 _LT_EOF
9793 fi
9794 ;;
9795
9796 amigaos*)
9797 case $host_cpu in
9798 powerpc)
9799 # see comment about AmigaOS4 .so support
9800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9801 archive_expsym_cmds=''
9802 ;;
9803 m68k)
9804 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)'
9805 hardcode_libdir_flag_spec='-L$libdir'
9806 hardcode_minus_L=yes
9807 ;;
9808 esac
9809 ;;
9810
9811 beos*)
9812 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9813 allow_undefined_flag=unsupported
9814 # Joseph Beckenbach <[email protected]> says some releases of gcc
9815 # support --undefined. This deserves some investigation. FIXME
9816 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9817 else
9818 ld_shlibs=no
9819 fi
9820 ;;
9821
9822 cygwin* | mingw* | pw32* | cegcc*)
9823 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9824 # as there is no search path for DLLs.
9825 hardcode_libdir_flag_spec='-L$libdir'
9826 export_dynamic_flag_spec='$wl--export-all-symbols'
9827 allow_undefined_flag=unsupported
9828 always_export_symbols=no
9829 enable_shared_with_static_runtimes=yes
9830 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'
9831 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9832
9833 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9835 # If the export-symbols file already is a .def file, use it as
9836 # is; otherwise, prepend EXPORTS...
9837 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9838 cp $export_symbols $output_objdir/$soname.def;
9839 else
9840 echo EXPORTS > $output_objdir/$soname.def;
9841 cat $export_symbols >> $output_objdir/$soname.def;
9842 fi~
9843 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9844 else
9845 ld_shlibs=no
9846 fi
9847 ;;
9848
9849 haiku*)
9850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9851 link_all_deplibs=yes
9852 ;;
9853
9854 os2*)
9855 hardcode_libdir_flag_spec='-L$libdir'
9856 hardcode_minus_L=yes
9857 allow_undefined_flag=unsupported
9858 shrext_cmds=.dll
9859 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9860 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9861 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9862 $ECHO EXPORTS >> $output_objdir/$libname.def~
9863 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9864 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9865 emximp -o $lib $output_objdir/$libname.def'
9866 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9867 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9868 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9869 $ECHO EXPORTS >> $output_objdir/$libname.def~
9870 prefix_cmds="$SED"~
9871 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9872 prefix_cmds="$prefix_cmds -e 1d";
9873 fi~
9874 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9875 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9876 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9877 emximp -o $lib $output_objdir/$libname.def'
9878 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9879 enable_shared_with_static_runtimes=yes
9880 file_list_spec='@'
9881 ;;
9882
9883 interix[3-9]*)
9884 hardcode_direct=no
9885 hardcode_shlibpath_var=no
9886 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9887 export_dynamic_flag_spec='$wl-E'
9888 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9889 # Instead, shared libraries are loaded at an image base (0x10000000 by
9890 # default) and relocated if they conflict, which is a slow very memory
9891 # consuming and fragmenting process. To avoid this, we pick a random,
9892 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9893 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9894 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9895 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'
9896 ;;
9897
9898 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9899 tmp_diet=no
9900 if test linux-dietlibc = "$host_os"; then
9901 case $cc_basename in
9902 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9903 esac
9904 fi
9905 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9906 && test no = "$tmp_diet"
9907 then
9908 tmp_addflag=' $pic_flag'
9909 tmp_sharedflag='-shared'
9910 case $cc_basename,$host_cpu in
9911 pgcc*) # Portland Group C compiler
9912 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'
9913 tmp_addflag=' $pic_flag'
9914 ;;
9915 pgf77* | pgf90* | pgf95* | pgfortran*)
9916 # Portland Group f77 and f90 compilers
9917 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'
9918 tmp_addflag=' $pic_flag -Mnomain' ;;
9919 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9920 tmp_addflag=' -i_dynamic' ;;
9921 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9922 tmp_addflag=' -i_dynamic -nofor_main' ;;
9923 ifc* | ifort*) # Intel Fortran compiler
9924 tmp_addflag=' -nofor_main' ;;
9925 lf95*) # Lahey Fortran 8.1
9926 whole_archive_flag_spec=
9927 tmp_sharedflag='--shared' ;;
9928 nagfor*) # NAGFOR 5.3
9929 tmp_sharedflag='-Wl,-shared' ;;
9930 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9931 tmp_sharedflag='-qmkshrobj'
9932 tmp_addflag= ;;
9933 nvcc*) # Cuda Compiler Driver 2.2
9934 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'
9935 compiler_needs_object=yes
9936 ;;
9937 esac
9938 case `$CC -V 2>&1 | $SED 5q` in
9939 *Sun\ C*) # Sun C 5.9
9940 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'
9941 compiler_needs_object=yes
9942 tmp_sharedflag='-G' ;;
9943 *Sun\ F*) # Sun Fortran 8.3
9944 tmp_sharedflag='-G' ;;
9945 esac
9946 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9947
9948 if test yes = "$supports_anon_versioning"; then
9949 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9950 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9951 echo "local: *; };" >> $output_objdir/$libname.ver~
9952 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9953 fi
9954
9955 case $cc_basename in
9956 tcc*)
9957 export_dynamic_flag_spec='-rdynamic'
9958 ;;
9959 xlf* | bgf* | bgxlf* | mpixlf*)
9960 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9961 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9962 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9963 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9964 if test yes = "$supports_anon_versioning"; then
9965 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9966 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9967 echo "local: *; };" >> $output_objdir/$libname.ver~
9968 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9969 fi
9970 ;;
9971 esac
9972 else
9973 ld_shlibs=no
9974 fi
9975 ;;
9976
9977 netbsd*)
9978 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9979 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9980 wlarc=
9981 else
9982 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9983 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9984 fi
9985 ;;
9986
9987 solaris*)
9988 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9989 ld_shlibs=no
9990 cat <<_LT_EOF 1>&2
9991
9992 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9993 *** create shared libraries on Solaris systems. Therefore, libtool
9994 *** is disabling shared libraries support. We urge you to upgrade GNU
9995 *** binutils to release 2.9.1 or newer. Another option is to modify
9996 *** your PATH or compiler configuration so that the native linker is
9997 *** used, and then restart.
9998
9999 _LT_EOF
10000 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10001 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10002 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10003 else
10004 ld_shlibs=no
10005 fi
10006 ;;
10007
10008 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10009 case `$LD -v 2>&1` in
10010 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10011 ld_shlibs=no
10012 cat <<_LT_EOF 1>&2
10013
10014 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10015 *** reliably create shared libraries on SCO systems. Therefore, libtool
10016 *** is disabling shared libraries support. We urge you to upgrade GNU
10017 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10018 *** your PATH or compiler configuration so that the native linker is
10019 *** used, and then restart.
10020
10021 _LT_EOF
10022 ;;
10023 *)
10024 # For security reasons, it is highly recommended that you always
10025 # use absolute paths for naming shared libraries, and exclude the
10026 # DT_RUNPATH tag from executables and libraries. But doing so
10027 # requires that you compile everything twice, which is a pain.
10028 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10029 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10031 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10032 else
10033 ld_shlibs=no
10034 fi
10035 ;;
10036 esac
10037 ;;
10038
10039 sunos4*)
10040 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10041 wlarc=
10042 hardcode_direct=yes
10043 hardcode_shlibpath_var=no
10044 ;;
10045
10046 *)
10047 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10048 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10049 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10050 else
10051 ld_shlibs=no
10052 fi
10053 ;;
10054 esac
10055
10056 if test no = "$ld_shlibs"; then
10057 runpath_var=
10058 hardcode_libdir_flag_spec=
10059 export_dynamic_flag_spec=
10060 whole_archive_flag_spec=
10061 fi
10062 else
10063 # PORTME fill in a description of your system's linker (not GNU ld)
10064 case $host_os in
10065 aix3*)
10066 allow_undefined_flag=unsupported
10067 always_export_symbols=yes
10068 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'
10069 # Note: this linker hardcodes the directories in LIBPATH if there
10070 # are no directories specified by -L.
10071 hardcode_minus_L=yes
10072 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10073 # Neither direct hardcoding nor static linking is supported with a
10074 # broken collect2.
10075 hardcode_direct=unsupported
10076 fi
10077 ;;
10078
10079 aix[4-9]*)
10080 if test ia64 = "$host_cpu"; then
10081 # On IA64, the linker does run time linking by default, so we don't
10082 # have to do anything special.
10083 aix_use_runtimelinking=no
10084 exp_sym_flag='-Bexport'
10085 no_entry_flag=
10086 else
10087 # If we're using GNU nm, then we don't want the "-C" option.
10088 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10089 # Without the "-l" option, or with the "-B" option, AIX nm treats
10090 # weak defined symbols like other global defined symbols, whereas
10091 # GNU nm marks them as "W".
10092 # While the 'weak' keyword is ignored in the Export File, we need
10093 # it in the Import File for the 'aix-soname' feature, so we have
10094 # to replace the "-B" option with "-P" for AIX nm.
10095 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10096 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'
10097 else
10098 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10099 fi
10100 aix_use_runtimelinking=no
10101
10102 # Test if we are trying to use run time linking or normal
10103 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10104 # have runtime linking enabled, and use it for executables.
10105 # For shared libraries, we enable/disable runtime linking
10106 # depending on the kind of the shared library created -
10107 # when "with_aix_soname,aix_use_runtimelinking" is:
10108 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10109 # "aix,yes" lib.so shared, rtl:yes, for executables
10110 # lib.a static archive
10111 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10112 # lib.a(lib.so.V) shared, rtl:no, for executables
10113 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10114 # lib.a(lib.so.V) shared, rtl:no
10115 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10116 # lib.a static archive
10117 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10118 for ld_flag in $LDFLAGS; do
10119 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10120 aix_use_runtimelinking=yes
10121 break
10122 fi
10123 done
10124 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10125 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10126 # so we don't have lib.a shared libs to link our executables.
10127 # We have to force runtime linking in this case.
10128 aix_use_runtimelinking=yes
10129 LDFLAGS="$LDFLAGS -Wl,-brtl"
10130 fi
10131 ;;
10132 esac
10133
10134 exp_sym_flag='-bexport'
10135 no_entry_flag='-bnoentry'
10136 fi
10137
10138 # When large executables or shared objects are built, AIX ld can
10139 # have problems creating the table of contents. If linking a library
10140 # or program results in "error TOC overflow" add -mminimal-toc to
10141 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10142 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10143
10144 archive_cmds=''
10145 hardcode_direct=yes
10146 hardcode_direct_absolute=yes
10147 hardcode_libdir_separator=':'
10148 link_all_deplibs=yes
10149 file_list_spec='$wl-f,'
10150 case $with_aix_soname,$aix_use_runtimelinking in
10151 aix,*) ;; # traditional, no import file
10152 svr4,* | *,yes) # use import file
10153 # The Import File defines what to hardcode.
10154 hardcode_direct=no
10155 hardcode_direct_absolute=no
10156 ;;
10157 esac
10158
10159 if test yes = "$GCC"; then
10160 case $host_os in aix4.[012]|aix4.[012].*)
10161 # We only want to do this on AIX 4.2 and lower, the check
10162 # below for broken collect2 doesn't work under 4.3+
10163 collect2name=`$CC -print-prog-name=collect2`
10164 if test -f "$collect2name" &&
10165 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10166 then
10167 # We have reworked collect2
10168 :
10169 else
10170 # We have old collect2
10171 hardcode_direct=unsupported
10172 # It fails to find uninstalled libraries when the uninstalled
10173 # path is not listed in the libpath. Setting hardcode_minus_L
10174 # to unsupported forces relinking
10175 hardcode_minus_L=yes
10176 hardcode_libdir_flag_spec='-L$libdir'
10177 hardcode_libdir_separator=
10178 fi
10179 ;;
10180 esac
10181 shared_flag='-shared'
10182 if test yes = "$aix_use_runtimelinking"; then
10183 shared_flag="$shared_flag "'$wl-G'
10184 fi
10185 # Need to ensure runtime linking is disabled for the traditional
10186 # shared library, or the linker may eventually find shared libraries
10187 # /with/ Import File - we do not want to mix them.
10188 shared_flag_aix='-shared'
10189 shared_flag_svr4='-shared $wl-G'
10190 else
10191 # not using gcc
10192 if test ia64 = "$host_cpu"; then
10193 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10194 # chokes on -Wl,-G. The following line is correct:
10195 shared_flag='-G'
10196 else
10197 if test yes = "$aix_use_runtimelinking"; then
10198 shared_flag='$wl-G'
10199 else
10200 shared_flag='$wl-bM:SRE'
10201 fi
10202 shared_flag_aix='$wl-bM:SRE'
10203 shared_flag_svr4='$wl-G'
10204 fi
10205 fi
10206
10207 export_dynamic_flag_spec='$wl-bexpall'
10208 # It seems that -bexpall does not export symbols beginning with
10209 # underscore (_), so it is better to generate a list of symbols to export.
10210 always_export_symbols=yes
10211 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10212 # Warning - without using the other runtime loading flags (-brtl),
10213 # -berok will link without error, but may produce a broken library.
10214 allow_undefined_flag='-berok'
10215 # Determine the default libpath from the value encoded in an
10216 # empty executable.
10217 if test set = "${lt_cv_aix_libpath+set}"; then
10218 aix_libpath=$lt_cv_aix_libpath
10219 else
10220 if test ${lt_cv_aix_libpath_+y}
10221 then :
10222 printf %s "(cached) " >&6
10223 else case e in #(
10224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h. */
10226
10227 int
10228 main (void)
10229 {
10230
10231 ;
10232 return 0;
10233 }
10234 _ACEOF
10235 if ac_fn_c_try_link "$LINENO"
10236 then :
10237
10238 lt_aix_libpath_sed='
10239 /Import File Strings/,/^$/ {
10240 /^0/ {
10241 s/^0 *\([^ ]*\) *$/\1/
10242 p
10243 }
10244 }'
10245 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10246 # Check for a 64-bit object if we didn't find anything.
10247 if test -z "$lt_cv_aix_libpath_"; then
10248 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10249 fi
10250 fi
10251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10252 conftest$ac_exeext conftest.$ac_ext
10253 if test -z "$lt_cv_aix_libpath_"; then
10254 lt_cv_aix_libpath_=/usr/lib:/lib
10255 fi
10256 ;;
10257 esac
10258 fi
10259
10260 aix_libpath=$lt_cv_aix_libpath_
10261 fi
10262
10263 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10264 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
10265 else
10266 if test ia64 = "$host_cpu"; then
10267 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10268 allow_undefined_flag="-z nodefs"
10269 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"
10270 else
10271 # Determine the default libpath from the value encoded in an
10272 # empty executable.
10273 if test set = "${lt_cv_aix_libpath+set}"; then
10274 aix_libpath=$lt_cv_aix_libpath
10275 else
10276 if test ${lt_cv_aix_libpath_+y}
10277 then :
10278 printf %s "(cached) " >&6
10279 else case e in #(
10280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282
10283 int
10284 main (void)
10285 {
10286
10287 ;
10288 return 0;
10289 }
10290 _ACEOF
10291 if ac_fn_c_try_link "$LINENO"
10292 then :
10293
10294 lt_aix_libpath_sed='
10295 /Import File Strings/,/^$/ {
10296 /^0/ {
10297 s/^0 *\([^ ]*\) *$/\1/
10298 p
10299 }
10300 }'
10301 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10302 # Check for a 64-bit object if we didn't find anything.
10303 if test -z "$lt_cv_aix_libpath_"; then
10304 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10305 fi
10306 fi
10307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10308 conftest$ac_exeext conftest.$ac_ext
10309 if test -z "$lt_cv_aix_libpath_"; then
10310 lt_cv_aix_libpath_=/usr/lib:/lib
10311 fi
10312 ;;
10313 esac
10314 fi
10315
10316 aix_libpath=$lt_cv_aix_libpath_
10317 fi
10318
10319 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10320 # Warning - without using the other run time loading flags,
10321 # -berok will link without error, but may produce a broken library.
10322 no_undefined_flag=' $wl-bernotok'
10323 allow_undefined_flag=' $wl-berok'
10324 if test yes = "$with_gnu_ld"; then
10325 # We only use this code for GNU lds that support --whole-archive.
10326 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10327 else
10328 # Exported symbols can be pulled into shared objects from archives
10329 whole_archive_flag_spec='$convenience'
10330 fi
10331 archive_cmds_need_lc=yes
10332 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10333 # -brtl affects multiple linker settings, -berok does not and is overridden later
10334 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10335 if test svr4 != "$with_aix_soname"; then
10336 # This is similar to how AIX traditionally builds its shared libraries.
10337 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'
10338 fi
10339 if test aix != "$with_aix_soname"; then
10340 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'
10341 else
10342 # used by -dlpreopen to get the symbols
10343 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10344 fi
10345 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10346 fi
10347 fi
10348 ;;
10349
10350 amigaos*)
10351 case $host_cpu in
10352 powerpc)
10353 # see comment about AmigaOS4 .so support
10354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10355 archive_expsym_cmds=''
10356 ;;
10357 m68k)
10358 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)'
10359 hardcode_libdir_flag_spec='-L$libdir'
10360 hardcode_minus_L=yes
10361 ;;
10362 esac
10363 ;;
10364
10365 bsdi[45]*)
10366 export_dynamic_flag_spec=-rdynamic
10367 ;;
10368
10369 cygwin* | mingw* | pw32* | cegcc*)
10370 # When not using gcc, we currently assume that we are using
10371 # Microsoft Visual C++ or Intel C++ Compiler.
10372 # hardcode_libdir_flag_spec is actually meaningless, as there is
10373 # no search path for DLLs.
10374 case $cc_basename in
10375 cl* | icl*)
10376 # Native MSVC or ICC
10377 hardcode_libdir_flag_spec=' '
10378 allow_undefined_flag=unsupported
10379 always_export_symbols=yes
10380 file_list_spec='@'
10381 # Tell ltmain to make .lib files, not .a files.
10382 libext=lib
10383 # Tell ltmain to make .dll files, not .so files.
10384 shrext_cmds=.dll
10385 # FIXME: Setting linknames here is a bad hack.
10386 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10387 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10388 cp "$export_symbols" "$output_objdir/$soname.def";
10389 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10390 else
10391 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10392 fi~
10393 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10394 linknames='
10395 # The linker will not automatically build a static lib if we build a DLL.
10396 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10397 enable_shared_with_static_runtimes=yes
10398 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10399 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10400 # Don't use ranlib
10401 old_postinstall_cmds='chmod 644 $oldlib'
10402 postlink_cmds='lt_outputfile="@OUTPUT@"~
10403 lt_tool_outputfile="@TOOL_OUTPUT@"~
10404 case $lt_outputfile in
10405 *.exe|*.EXE) ;;
10406 *)
10407 lt_outputfile=$lt_outputfile.exe
10408 lt_tool_outputfile=$lt_tool_outputfile.exe
10409 ;;
10410 esac~
10411 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10412 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10413 $RM "$lt_outputfile.manifest";
10414 fi'
10415 ;;
10416 *)
10417 # Assume MSVC and ICC wrapper
10418 hardcode_libdir_flag_spec=' '
10419 allow_undefined_flag=unsupported
10420 # Tell ltmain to make .lib files, not .a files.
10421 libext=lib
10422 # Tell ltmain to make .dll files, not .so files.
10423 shrext_cmds=.dll
10424 # FIXME: Setting linknames here is a bad hack.
10425 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10426 # The linker will automatically build a .lib file if we build a DLL.
10427 old_archive_from_new_cmds='true'
10428 # FIXME: Should let the user specify the lib program.
10429 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10430 enable_shared_with_static_runtimes=yes
10431 ;;
10432 esac
10433 ;;
10434
10435 darwin* | rhapsody*)
10436
10437
10438 archive_cmds_need_lc=no
10439 hardcode_direct=no
10440 hardcode_automatic=yes
10441 hardcode_shlibpath_var=unsupported
10442 if test yes = "$lt_cv_ld_force_load"; then
10443 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\"`'
10444
10445 else
10446 whole_archive_flag_spec=''
10447 fi
10448 link_all_deplibs=yes
10449 allow_undefined_flag=$_lt_dar_allow_undefined
10450 case $cc_basename in
10451 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10452 *) _lt_dar_can_shared=$GCC ;;
10453 esac
10454 if test yes = "$_lt_dar_can_shared"; then
10455 output_verbose_link_cmd=func_echo_all
10456 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10457 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10458 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"
10459 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"
10460
10461 else
10462 ld_shlibs=no
10463 fi
10464
10465 ;;
10466
10467 dgux*)
10468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10469 hardcode_libdir_flag_spec='-L$libdir'
10470 hardcode_shlibpath_var=no
10471 ;;
10472
10473 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10474 # support. Future versions do this automatically, but an explicit c++rt0.o
10475 # does not break anything, and helps significantly (at the cost of a little
10476 # extra space).
10477 freebsd2.2*)
10478 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10479 hardcode_libdir_flag_spec='-R$libdir'
10480 hardcode_direct=yes
10481 hardcode_shlibpath_var=no
10482 ;;
10483
10484 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10485 freebsd2.*)
10486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10487 hardcode_direct=yes
10488 hardcode_minus_L=yes
10489 hardcode_shlibpath_var=no
10490 ;;
10491
10492 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10493 freebsd* | dragonfly* | midnightbsd*)
10494 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10495 hardcode_libdir_flag_spec='-R$libdir'
10496 hardcode_direct=yes
10497 hardcode_shlibpath_var=no
10498 ;;
10499
10500 hpux9*)
10501 if test yes = "$GCC"; then
10502 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'
10503 else
10504 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'
10505 fi
10506 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10507 hardcode_libdir_separator=:
10508 hardcode_direct=yes
10509
10510 # hardcode_minus_L: Not really in the search PATH,
10511 # but as the default location of the library.
10512 hardcode_minus_L=yes
10513 export_dynamic_flag_spec='$wl-E'
10514 ;;
10515
10516 hpux10*)
10517 if test yes,no = "$GCC,$with_gnu_ld"; then
10518 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10519 else
10520 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10521 fi
10522 if test no = "$with_gnu_ld"; then
10523 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10524 hardcode_libdir_separator=:
10525 hardcode_direct=yes
10526 hardcode_direct_absolute=yes
10527 export_dynamic_flag_spec='$wl-E'
10528 # hardcode_minus_L: Not really in the search PATH,
10529 # but as the default location of the library.
10530 hardcode_minus_L=yes
10531 fi
10532 ;;
10533
10534 hpux11*)
10535 if test yes,no = "$GCC,$with_gnu_ld"; then
10536 case $host_cpu in
10537 hppa*64*)
10538 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10539 ;;
10540 ia64*)
10541 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10542 ;;
10543 *)
10544 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10545 ;;
10546 esac
10547 else
10548 case $host_cpu in
10549 hppa*64*)
10550 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10551 ;;
10552 ia64*)
10553 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10554 ;;
10555 *)
10556
10557 # Older versions of the 11.00 compiler do not understand -b yet
10558 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10560 printf %s "checking if $CC understands -b... " >&6; }
10561 if test ${lt_cv_prog_compiler__b+y}
10562 then :
10563 printf %s "(cached) " >&6
10564 else case e in #(
10565 e) lt_cv_prog_compiler__b=no
10566 save_LDFLAGS=$LDFLAGS
10567 LDFLAGS="$LDFLAGS -b"
10568 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10569 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10570 # The linker can only warn and ignore the option if not recognized
10571 # So say no if there are warnings
10572 if test -s conftest.err; then
10573 # Append any errors to the config.log.
10574 cat conftest.err 1>&5
10575 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10577 if diff conftest.exp conftest.er2 >/dev/null; then
10578 lt_cv_prog_compiler__b=yes
10579 fi
10580 else
10581 lt_cv_prog_compiler__b=yes
10582 fi
10583 fi
10584 $RM -r conftest*
10585 LDFLAGS=$save_LDFLAGS
10586 ;;
10587 esac
10588 fi
10589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10590 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10591
10592 if test yes = "$lt_cv_prog_compiler__b"; then
10593 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10594 else
10595 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10596 fi
10597
10598 ;;
10599 esac
10600 fi
10601 if test no = "$with_gnu_ld"; then
10602 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10603 hardcode_libdir_separator=:
10604
10605 case $host_cpu in
10606 hppa*64*|ia64*)
10607 hardcode_direct=no
10608 hardcode_shlibpath_var=no
10609 ;;
10610 *)
10611 hardcode_direct=yes
10612 hardcode_direct_absolute=yes
10613 export_dynamic_flag_spec='$wl-E'
10614
10615 # hardcode_minus_L: Not really in the search PATH,
10616 # but as the default location of the library.
10617 hardcode_minus_L=yes
10618 ;;
10619 esac
10620 fi
10621 ;;
10622
10623 irix5* | irix6* | nonstopux*)
10624 if test yes = "$GCC"; then
10625 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'
10626 # Try to use the -exported_symbol ld option, if it does not
10627 # work, assume that -exports_file does not work either and
10628 # implicitly export all symbols.
10629 # This should be the same for all languages, so no per-tag cache variable.
10630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10631 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10632 if test ${lt_cv_irix_exported_symbol+y}
10633 then :
10634 printf %s "(cached) " >&6
10635 else case e in #(
10636 e) save_LDFLAGS=$LDFLAGS
10637 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10640 int foo (void) { return 0; }
10641 _ACEOF
10642 if ac_fn_c_try_link "$LINENO"
10643 then :
10644 lt_cv_irix_exported_symbol=yes
10645 else case e in #(
10646 e) lt_cv_irix_exported_symbol=no ;;
10647 esac
10648 fi
10649 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10650 conftest$ac_exeext conftest.$ac_ext
10651 LDFLAGS=$save_LDFLAGS ;;
10652 esac
10653 fi
10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10655 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10656 if test yes = "$lt_cv_irix_exported_symbol"; then
10657 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'
10658 fi
10659 else
10660 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'
10661 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'
10662 fi
10663 archive_cmds_need_lc='no'
10664 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10665 hardcode_libdir_separator=:
10666 inherit_rpath=yes
10667 link_all_deplibs=yes
10668 ;;
10669
10670 linux*)
10671 case $cc_basename in
10672 tcc*)
10673 # Fabrice Bellard et al's Tiny C Compiler
10674 ld_shlibs=yes
10675 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10676 ;;
10677 esac
10678 ;;
10679
10680 netbsd*)
10681 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10682 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10683 else
10684 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10685 fi
10686 hardcode_libdir_flag_spec='-R$libdir'
10687 hardcode_direct=yes
10688 hardcode_shlibpath_var=no
10689 ;;
10690
10691 newsos6)
10692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10693 hardcode_direct=yes
10694 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10695 hardcode_libdir_separator=:
10696 hardcode_shlibpath_var=no
10697 ;;
10698
10699 *nto* | *qnx*)
10700 ;;
10701
10702 openbsd* | bitrig*)
10703 if test -f /usr/libexec/ld.so; then
10704 hardcode_direct=yes
10705 hardcode_shlibpath_var=no
10706 hardcode_direct_absolute=yes
10707 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10708 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10709 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10710 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10711 export_dynamic_flag_spec='$wl-E'
10712 else
10713 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10714 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10715 fi
10716 else
10717 ld_shlibs=no
10718 fi
10719 ;;
10720
10721 os2*)
10722 hardcode_libdir_flag_spec='-L$libdir'
10723 hardcode_minus_L=yes
10724 allow_undefined_flag=unsupported
10725 shrext_cmds=.dll
10726 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10727 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10728 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10729 $ECHO EXPORTS >> $output_objdir/$libname.def~
10730 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10731 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10732 emximp -o $lib $output_objdir/$libname.def'
10733 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10734 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10735 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10736 $ECHO EXPORTS >> $output_objdir/$libname.def~
10737 prefix_cmds="$SED"~
10738 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10739 prefix_cmds="$prefix_cmds -e 1d";
10740 fi~
10741 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10742 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10743 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10744 emximp -o $lib $output_objdir/$libname.def'
10745 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10746 enable_shared_with_static_runtimes=yes
10747 file_list_spec='@'
10748 ;;
10749
10750 osf3*)
10751 if test yes = "$GCC"; then
10752 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10753 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'
10754 else
10755 allow_undefined_flag=' -expect_unresolved \*'
10756 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'
10757 fi
10758 archive_cmds_need_lc='no'
10759 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10760 hardcode_libdir_separator=:
10761 ;;
10762
10763 osf4* | osf5*) # as osf3* with the addition of -msym flag
10764 if test yes = "$GCC"; then
10765 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10766 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'
10767 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10768 else
10769 allow_undefined_flag=' -expect_unresolved \*'
10770 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'
10771 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~
10772 $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'
10773
10774 # Both c and cxx compiler support -rpath directly
10775 hardcode_libdir_flag_spec='-rpath $libdir'
10776 fi
10777 archive_cmds_need_lc='no'
10778 hardcode_libdir_separator=:
10779 ;;
10780
10781 solaris*)
10782 no_undefined_flag=' -z defs'
10783 if test yes = "$GCC"; then
10784 wlarc='$wl'
10785 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10786 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10787 $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'
10788 else
10789 case `$CC -V 2>&1` in
10790 *"Compilers 5.0"*)
10791 wlarc=''
10792 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10793 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10794 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10795 ;;
10796 *)
10797 wlarc='$wl'
10798 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10799 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10800 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10801 ;;
10802 esac
10803 fi
10804 hardcode_libdir_flag_spec='-R$libdir'
10805 hardcode_shlibpath_var=no
10806 case $host_os in
10807 solaris2.[0-5] | solaris2.[0-5].*) ;;
10808 *)
10809 # The compiler driver will combine and reorder linker options,
10810 # but understands '-z linker_flag'. GCC discards it without '$wl',
10811 # but is careful enough not to reorder.
10812 # Supported since Solaris 2.6 (maybe 2.5.1?)
10813 if test yes = "$GCC"; then
10814 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10815 else
10816 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10817 fi
10818 ;;
10819 esac
10820 link_all_deplibs=yes
10821 ;;
10822
10823 sunos4*)
10824 if test sequent = "$host_vendor"; then
10825 # Use $CC to link under sequent, because it throws in some extra .o
10826 # files that make .init and .fini sections work.
10827 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10828 else
10829 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10830 fi
10831 hardcode_libdir_flag_spec='-L$libdir'
10832 hardcode_direct=yes
10833 hardcode_minus_L=yes
10834 hardcode_shlibpath_var=no
10835 ;;
10836
10837 sysv4)
10838 case $host_vendor in
10839 sni)
10840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10841 hardcode_direct=yes # is this really true???
10842 ;;
10843 siemens)
10844 ## LD is ld it makes a PLAMLIB
10845 ## CC just makes a GrossModule.
10846 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10847 reload_cmds='$CC -r -o $output$reload_objs'
10848 hardcode_direct=no
10849 ;;
10850 motorola)
10851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10852 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10853 ;;
10854 esac
10855 runpath_var='LD_RUN_PATH'
10856 hardcode_shlibpath_var=no
10857 ;;
10858
10859 sysv4.3*)
10860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10861 hardcode_shlibpath_var=no
10862 export_dynamic_flag_spec='-Bexport'
10863 ;;
10864
10865 sysv4*MP*)
10866 if test -d /usr/nec; then
10867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10868 hardcode_shlibpath_var=no
10869 runpath_var=LD_RUN_PATH
10870 hardcode_runpath_var=yes
10871 ld_shlibs=yes
10872 fi
10873 ;;
10874
10875 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10876 no_undefined_flag='$wl-z,text'
10877 archive_cmds_need_lc=no
10878 hardcode_shlibpath_var=no
10879 runpath_var='LD_RUN_PATH'
10880
10881 if test yes = "$GCC"; then
10882 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10883 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10884 else
10885 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10886 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10887 fi
10888 ;;
10889
10890 sysv5* | sco3.2v5* | sco5v6*)
10891 # Note: We CANNOT use -z defs as we might desire, because we do not
10892 # link with -lc, and that would cause any symbols used from libc to
10893 # always be unresolved, which means just about no library would
10894 # ever link correctly. If we're not using GNU ld we use -z text
10895 # though, which does catch some bad symbols but isn't as heavy-handed
10896 # as -z defs.
10897 no_undefined_flag='$wl-z,text'
10898 allow_undefined_flag='$wl-z,nodefs'
10899 archive_cmds_need_lc=no
10900 hardcode_shlibpath_var=no
10901 hardcode_libdir_flag_spec='$wl-R,$libdir'
10902 hardcode_libdir_separator=':'
10903 link_all_deplibs=yes
10904 export_dynamic_flag_spec='$wl-Bexport'
10905 runpath_var='LD_RUN_PATH'
10906
10907 if test yes = "$GCC"; then
10908 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10909 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10910 else
10911 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10912 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10913 fi
10914 ;;
10915
10916 uts4*)
10917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10918 hardcode_libdir_flag_spec='-L$libdir'
10919 hardcode_shlibpath_var=no
10920 ;;
10921
10922 *)
10923 ld_shlibs=no
10924 ;;
10925 esac
10926
10927 if test sni = "$host_vendor"; then
10928 case $host in
10929 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10930 export_dynamic_flag_spec='$wl-Blargedynsym'
10931 ;;
10932 esac
10933 fi
10934 fi
10935
10936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10937 printf "%s\n" "$ld_shlibs" >&6; }
10938 test no = "$ld_shlibs" && can_build_shared=no
10939
10940 with_gnu_ld=$with_gnu_ld
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956 #
10957 # Do we need to explicitly link libc?
10958 #
10959 case "x$archive_cmds_need_lc" in
10960 x|xyes)
10961 # Assume -lc should be added
10962 archive_cmds_need_lc=yes
10963
10964 if test yes,yes = "$GCC,$enable_shared"; then
10965 case $archive_cmds in
10966 *'~'*)
10967 # FIXME: we may have to deal with multi-command sequences.
10968 ;;
10969 '$CC '*)
10970 # Test whether the compiler implicitly links with -lc since on some
10971 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10972 # to ld, don't add -lc before -lgcc.
10973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10974 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10975 if test ${lt_cv_archive_cmds_need_lc+y}
10976 then :
10977 printf %s "(cached) " >&6
10978 else case e in #(
10979 e) $RM conftest*
10980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10981
10982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10983 (eval $ac_compile) 2>&5
10984 ac_status=$?
10985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10986 test $ac_status = 0; } 2>conftest.err; then
10987 soname=conftest
10988 lib=conftest
10989 libobjs=conftest.$ac_objext
10990 deplibs=
10991 wl=$lt_prog_compiler_wl
10992 pic_flag=$lt_prog_compiler_pic
10993 compiler_flags=-v
10994 linker_flags=-v
10995 verstring=
10996 output_objdir=.
10997 libname=conftest
10998 lt_save_allow_undefined_flag=$allow_undefined_flag
10999 allow_undefined_flag=
11000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11001 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11002 ac_status=$?
11003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11004 test $ac_status = 0; }
11005 then
11006 lt_cv_archive_cmds_need_lc=no
11007 else
11008 lt_cv_archive_cmds_need_lc=yes
11009 fi
11010 allow_undefined_flag=$lt_save_allow_undefined_flag
11011 else
11012 cat conftest.err 1>&5
11013 fi
11014 $RM conftest*
11015 ;;
11016 esac
11017 fi
11018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11019 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11020 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11021 ;;
11022 esac
11023 fi
11024 ;;
11025 esac
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11179 printf %s "checking dynamic linker characteristics... " >&6; }
11180
11181 if test yes = "$GCC"; then
11182 case $host_os in
11183 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11184 *) lt_awk_arg='/^libraries:/' ;;
11185 esac
11186 case $host_os in
11187 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11188 *) lt_sed_strip_eq='s|=/|/|g' ;;
11189 esac
11190 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11191 case $lt_search_path_spec in
11192 *\;*)
11193 # if the path contains ";" then we assume it to be the separator
11194 # otherwise default to the standard path separator (i.e. ":") - it is
11195 # assumed that no part of a normal pathname contains ";" but that should
11196 # okay in the real world where ";" in dirpaths is itself problematic.
11197 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11198 ;;
11199 *)
11200 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11201 ;;
11202 esac
11203 # Ok, now we have the path, separated by spaces, we can step through it
11204 # and add multilib dir if necessary...
11205 lt_tmp_lt_search_path_spec=
11206 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11207 # ...but if some path component already ends with the multilib dir we assume
11208 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11209 case "$lt_multi_os_dir; $lt_search_path_spec " in
11210 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11211 lt_multi_os_dir=
11212 ;;
11213 esac
11214 for lt_sys_path in $lt_search_path_spec; do
11215 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11216 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11217 elif test -n "$lt_multi_os_dir"; then
11218 test -d "$lt_sys_path" && \
11219 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11220 fi
11221 done
11222 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11223 BEGIN {RS = " "; FS = "/|\n";} {
11224 lt_foo = "";
11225 lt_count = 0;
11226 for (lt_i = NF; lt_i > 0; lt_i--) {
11227 if ($lt_i != "" && $lt_i != ".") {
11228 if ($lt_i == "..") {
11229 lt_count++;
11230 } else {
11231 if (lt_count == 0) {
11232 lt_foo = "/" $lt_i lt_foo;
11233 } else {
11234 lt_count--;
11235 }
11236 }
11237 }
11238 }
11239 if (lt_foo != "") { lt_freq[lt_foo]++; }
11240 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11241 }'`
11242 # AWK program above erroneously prepends '/' to C:/dos/paths
11243 # for these hosts.
11244 case $host_os in
11245 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11246 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11247 esac
11248 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11249 else
11250 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11251 fi
11252 library_names_spec=
11253 libname_spec='lib$name'
11254 soname_spec=
11255 shrext_cmds=.so
11256 postinstall_cmds=
11257 postuninstall_cmds=
11258 finish_cmds=
11259 finish_eval=
11260 shlibpath_var=
11261 shlibpath_overrides_runpath=unknown
11262 version_type=none
11263 dynamic_linker="$host_os ld.so"
11264 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11265 need_lib_prefix=unknown
11266 hardcode_into_libs=no
11267
11268 # when you set need_version to no, make sure it does not cause -set_version
11269 # flags to be left without arguments
11270 need_version=unknown
11271
11272
11273
11274 case $host_os in
11275 aix3*)
11276 version_type=linux # correct to gnu/linux during the next big refactor
11277 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11278 shlibpath_var=LIBPATH
11279
11280 # AIX 3 has no versioning support, so we append a major version to the name.
11281 soname_spec='$libname$release$shared_ext$major'
11282 ;;
11283
11284 aix[4-9]*)
11285 version_type=linux # correct to gnu/linux during the next big refactor
11286 need_lib_prefix=no
11287 need_version=no
11288 hardcode_into_libs=yes
11289 if test ia64 = "$host_cpu"; then
11290 # AIX 5 supports IA64
11291 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11292 shlibpath_var=LD_LIBRARY_PATH
11293 else
11294 # With GCC up to 2.95.x, collect2 would create an import file
11295 # for dependence libraries. The import file would start with
11296 # the line '#! .'. This would cause the generated library to
11297 # depend on '.', always an invalid library. This was fixed in
11298 # development snapshots of GCC prior to 3.0.
11299 case $host_os in
11300 aix4 | aix4.[01] | aix4.[01].*)
11301 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11302 echo ' yes '
11303 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11304 :
11305 else
11306 can_build_shared=no
11307 fi
11308 ;;
11309 esac
11310 # Using Import Files as archive members, it is possible to support
11311 # filename-based versioning of shared library archives on AIX. While
11312 # this would work for both with and without runtime linking, it will
11313 # prevent static linking of such archives. So we do filename-based
11314 # shared library versioning with .so extension only, which is used
11315 # when both runtime linking and shared linking is enabled.
11316 # Unfortunately, runtime linking may impact performance, so we do
11317 # not want this to be the default eventually. Also, we use the
11318 # versioned .so libs for executables only if there is the -brtl
11319 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11320 # To allow for filename-based versioning support, we need to create
11321 # libNAME.so.V as an archive file, containing:
11322 # *) an Import File, referring to the versioned filename of the
11323 # archive as well as the shared archive member, telling the
11324 # bitwidth (32 or 64) of that shared object, and providing the
11325 # list of exported symbols of that shared object, eventually
11326 # decorated with the 'weak' keyword
11327 # *) the shared object with the F_LOADONLY flag set, to really avoid
11328 # it being seen by the linker.
11329 # At run time we better use the real file rather than another symlink,
11330 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11331
11332 case $with_aix_soname,$aix_use_runtimelinking in
11333 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11334 # soname into executable. Probably we can add versioning support to
11335 # collect2, so additional links can be useful in future.
11336 aix,yes) # traditional libtool
11337 dynamic_linker='AIX unversionable lib.so'
11338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11339 # instead of lib<name>.a to let people know that these are not
11340 # typical AIX shared libraries.
11341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11342 ;;
11343 aix,no) # traditional AIX only
11344 dynamic_linker='AIX lib.a(lib.so.V)'
11345 # We preserve .a as extension for shared libraries through AIX4.2
11346 # and later when we are not doing run time linking.
11347 library_names_spec='$libname$release.a $libname.a'
11348 soname_spec='$libname$release$shared_ext$major'
11349 ;;
11350 svr4,*) # full svr4 only
11351 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11352 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11353 # We do not specify a path in Import Files, so LIBPATH fires.
11354 shlibpath_overrides_runpath=yes
11355 ;;
11356 *,yes) # both, prefer svr4
11357 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11358 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11359 # unpreferred sharedlib libNAME.a needs extra handling
11360 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"'
11361 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"'
11362 # We do not specify a path in Import Files, so LIBPATH fires.
11363 shlibpath_overrides_runpath=yes
11364 ;;
11365 *,no) # both, prefer aix
11366 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11367 library_names_spec='$libname$release.a $libname.a'
11368 soname_spec='$libname$release$shared_ext$major'
11369 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11370 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)'
11371 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"'
11372 ;;
11373 esac
11374 shlibpath_var=LIBPATH
11375 fi
11376 ;;
11377
11378 amigaos*)
11379 case $host_cpu in
11380 powerpc)
11381 # Since July 2007 AmigaOS4 officially supports .so libraries.
11382 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11384 ;;
11385 m68k)
11386 library_names_spec='$libname.ixlibrary $libname.a'
11387 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11388 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'
11389 ;;
11390 esac
11391 ;;
11392
11393 beos*)
11394 library_names_spec='$libname$shared_ext'
11395 dynamic_linker="$host_os ld.so"
11396 shlibpath_var=LIBRARY_PATH
11397 ;;
11398
11399 bsdi[45]*)
11400 version_type=linux # correct to gnu/linux during the next big refactor
11401 need_version=no
11402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11403 soname_spec='$libname$release$shared_ext$major'
11404 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11405 shlibpath_var=LD_LIBRARY_PATH
11406 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11407 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11408 # the default ld.so.conf also contains /usr/contrib/lib and
11409 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11410 # libtool to hard-code these into programs
11411 ;;
11412
11413 cygwin* | mingw* | pw32* | cegcc*)
11414 version_type=windows
11415 shrext_cmds=.dll
11416 need_version=no
11417 need_lib_prefix=no
11418
11419 case $GCC,$cc_basename in
11420 yes,*)
11421 # gcc
11422 library_names_spec='$libname.dll.a'
11423 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11424 postinstall_cmds='base_file=`basename \$file`~
11425 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11426 dldir=$destdir/`dirname \$dlpath`~
11427 test -d \$dldir || mkdir -p \$dldir~
11428 $install_prog $dir/$dlname \$dldir/$dlname~
11429 chmod a+x \$dldir/$dlname~
11430 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11431 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11432 fi'
11433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11434 dlpath=$dir/\$dldll~
11435 $RM \$dlpath'
11436 shlibpath_overrides_runpath=yes
11437
11438 case $host_os in
11439 cygwin*)
11440 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11441 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11442
11443 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11444 ;;
11445 mingw* | cegcc*)
11446 # MinGW DLLs use traditional 'lib' prefix
11447 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11448 ;;
11449 pw32*)
11450 # pw32 DLLs use 'pw' prefix rather than 'lib'
11451 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11452 ;;
11453 esac
11454 dynamic_linker='Win32 ld.exe'
11455 ;;
11456
11457 *,cl* | *,icl*)
11458 # Native MSVC or ICC
11459 libname_spec='$name'
11460 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11461 library_names_spec='$libname.dll.lib'
11462
11463 case $build_os in
11464 mingw*)
11465 sys_lib_search_path_spec=
11466 lt_save_ifs=$IFS
11467 IFS=';'
11468 for lt_path in $LIB
11469 do
11470 IFS=$lt_save_ifs
11471 # Let DOS variable expansion print the short 8.3 style file name.
11472 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11473 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11474 done
11475 IFS=$lt_save_ifs
11476 # Convert to MSYS style.
11477 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11478 ;;
11479 cygwin*)
11480 # Convert to unix form, then to dos form, then back to unix form
11481 # but this time dos style (no spaces!) so that the unix form looks
11482 # like /cygdrive/c/PROGRA~1:/cygdr...
11483 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11484 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11485 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11486 ;;
11487 *)
11488 sys_lib_search_path_spec=$LIB
11489 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11490 # It is most probably a Windows format PATH.
11491 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11492 else
11493 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11494 fi
11495 # FIXME: find the short name or the path components, as spaces are
11496 # common. (e.g. "Program Files" -> "PROGRA~1")
11497 ;;
11498 esac
11499
11500 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11501 postinstall_cmds='base_file=`basename \$file`~
11502 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11503 dldir=$destdir/`dirname \$dlpath`~
11504 test -d \$dldir || mkdir -p \$dldir~
11505 $install_prog $dir/$dlname \$dldir/$dlname'
11506 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11507 dlpath=$dir/\$dldll~
11508 $RM \$dlpath'
11509 shlibpath_overrides_runpath=yes
11510 dynamic_linker='Win32 link.exe'
11511 ;;
11512
11513 *)
11514 # Assume MSVC and ICC wrapper
11515 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11516 dynamic_linker='Win32 ld.exe'
11517 ;;
11518 esac
11519 # FIXME: first we should search . and the directory the executable is in
11520 shlibpath_var=PATH
11521 ;;
11522
11523 darwin* | rhapsody*)
11524 dynamic_linker="$host_os dyld"
11525 version_type=darwin
11526 need_lib_prefix=no
11527 need_version=no
11528 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11529 soname_spec='$libname$release$major$shared_ext'
11530 shlibpath_overrides_runpath=yes
11531 shlibpath_var=DYLD_LIBRARY_PATH
11532 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11533
11534 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11535 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11536 ;;
11537
11538 dgux*)
11539 version_type=linux # correct to gnu/linux during the next big refactor
11540 need_lib_prefix=no
11541 need_version=no
11542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11543 soname_spec='$libname$release$shared_ext$major'
11544 shlibpath_var=LD_LIBRARY_PATH
11545 ;;
11546
11547 freebsd* | dragonfly* | midnightbsd*)
11548 # DragonFly does not have aout. When/if they implement a new
11549 # versioning mechanism, adjust this.
11550 if test -x /usr/bin/objformat; then
11551 objformat=`/usr/bin/objformat`
11552 else
11553 case $host_os in
11554 freebsd[23].*) objformat=aout ;;
11555 *) objformat=elf ;;
11556 esac
11557 fi
11558 version_type=freebsd-$objformat
11559 case $version_type in
11560 freebsd-elf*)
11561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11562 soname_spec='$libname$release$shared_ext$major'
11563 need_version=no
11564 need_lib_prefix=no
11565 ;;
11566 freebsd-*)
11567 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11568 need_version=yes
11569 ;;
11570 esac
11571 shlibpath_var=LD_LIBRARY_PATH
11572 case $host_os in
11573 freebsd2.*)
11574 shlibpath_overrides_runpath=yes
11575 ;;
11576 freebsd3.[01]* | freebsdelf3.[01]*)
11577 shlibpath_overrides_runpath=yes
11578 hardcode_into_libs=yes
11579 ;;
11580 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11581 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11582 shlibpath_overrides_runpath=no
11583 hardcode_into_libs=yes
11584 ;;
11585 *) # from 4.6 on, and DragonFly
11586 shlibpath_overrides_runpath=yes
11587 hardcode_into_libs=yes
11588 ;;
11589 esac
11590 ;;
11591
11592 haiku*)
11593 version_type=linux # correct to gnu/linux during the next big refactor
11594 need_lib_prefix=no
11595 need_version=no
11596 dynamic_linker="$host_os runtime_loader"
11597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11598 soname_spec='$libname$release$shared_ext$major'
11599 shlibpath_var=LIBRARY_PATH
11600 shlibpath_overrides_runpath=no
11601 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11602 hardcode_into_libs=yes
11603 ;;
11604
11605 hpux9* | hpux10* | hpux11*)
11606 # Give a soname corresponding to the major version so that dld.sl refuses to
11607 # link against other versions.
11608 version_type=sunos
11609 need_lib_prefix=no
11610 need_version=no
11611 case $host_cpu in
11612 ia64*)
11613 shrext_cmds='.so'
11614 hardcode_into_libs=yes
11615 dynamic_linker="$host_os dld.so"
11616 shlibpath_var=LD_LIBRARY_PATH
11617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11618 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11619 soname_spec='$libname$release$shared_ext$major'
11620 if test 32 = "$HPUX_IA64_MODE"; then
11621 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11622 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11623 else
11624 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11625 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11626 fi
11627 ;;
11628 hppa*64*)
11629 shrext_cmds='.sl'
11630 hardcode_into_libs=yes
11631 dynamic_linker="$host_os dld.sl"
11632 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11633 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11635 soname_spec='$libname$release$shared_ext$major'
11636 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11638 ;;
11639 *)
11640 shrext_cmds='.sl'
11641 dynamic_linker="$host_os dld.sl"
11642 shlibpath_var=SHLIB_PATH
11643 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11645 soname_spec='$libname$release$shared_ext$major'
11646 ;;
11647 esac
11648 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11649 postinstall_cmds='chmod 555 $lib'
11650 # or fails outright, so override atomically:
11651 install_override_mode=555
11652 ;;
11653
11654 interix[3-9]*)
11655 version_type=linux # correct to gnu/linux during the next big refactor
11656 need_lib_prefix=no
11657 need_version=no
11658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11659 soname_spec='$libname$release$shared_ext$major'
11660 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11661 shlibpath_var=LD_LIBRARY_PATH
11662 shlibpath_overrides_runpath=no
11663 hardcode_into_libs=yes
11664 ;;
11665
11666 irix5* | irix6* | nonstopux*)
11667 case $host_os in
11668 nonstopux*) version_type=nonstopux ;;
11669 *)
11670 if test yes = "$lt_cv_prog_gnu_ld"; then
11671 version_type=linux # correct to gnu/linux during the next big refactor
11672 else
11673 version_type=irix
11674 fi ;;
11675 esac
11676 need_lib_prefix=no
11677 need_version=no
11678 soname_spec='$libname$release$shared_ext$major'
11679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11680 case $host_os in
11681 irix5* | nonstopux*)
11682 libsuff= shlibsuff=
11683 ;;
11684 *)
11685 case $LD in # libtool.m4 will add one of these switches to LD
11686 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11687 libsuff= shlibsuff= libmagic=32-bit;;
11688 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11689 libsuff=32 shlibsuff=N32 libmagic=N32;;
11690 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11691 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11692 *) libsuff= shlibsuff= libmagic=never-match;;
11693 esac
11694 ;;
11695 esac
11696 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11697 shlibpath_overrides_runpath=no
11698 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11699 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11700 hardcode_into_libs=yes
11701 ;;
11702
11703 # No shared lib support for Linux oldld, aout, or coff.
11704 linux*oldld* | linux*aout* | linux*coff*)
11705 dynamic_linker=no
11706 ;;
11707
11708 linux*android*)
11709 version_type=none # Android doesn't support versioned libraries.
11710 need_lib_prefix=no
11711 need_version=no
11712 library_names_spec='$libname$release$shared_ext'
11713 soname_spec='$libname$release$shared_ext'
11714 finish_cmds=
11715 shlibpath_var=LD_LIBRARY_PATH
11716 shlibpath_overrides_runpath=yes
11717
11718 # This implies no fast_install, which is unacceptable.
11719 # Some rework will be needed to allow for fast_install
11720 # before this can be enabled.
11721 hardcode_into_libs=yes
11722
11723 dynamic_linker='Android linker'
11724 # Don't embed -rpath directories since the linker doesn't support them.
11725 hardcode_libdir_flag_spec='-L$libdir'
11726 ;;
11727
11728 # This must be glibc/ELF.
11729 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11730 version_type=linux # correct to gnu/linux during the next big refactor
11731 need_lib_prefix=no
11732 need_version=no
11733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11734 soname_spec='$libname$release$shared_ext$major'
11735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11736 shlibpath_var=LD_LIBRARY_PATH
11737 shlibpath_overrides_runpath=no
11738
11739 # Some binutils ld are patched to set DT_RUNPATH
11740 if test ${lt_cv_shlibpath_overrides_runpath+y}
11741 then :
11742 printf %s "(cached) " >&6
11743 else case e in #(
11744 e) lt_cv_shlibpath_overrides_runpath=no
11745 save_LDFLAGS=$LDFLAGS
11746 save_libdir=$libdir
11747 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11748 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h. */
11751
11752 int
11753 main (void)
11754 {
11755
11756 ;
11757 return 0;
11758 }
11759 _ACEOF
11760 if ac_fn_c_try_link "$LINENO"
11761 then :
11762 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11763 then :
11764 lt_cv_shlibpath_overrides_runpath=yes
11765 fi
11766 fi
11767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11768 conftest$ac_exeext conftest.$ac_ext
11769 LDFLAGS=$save_LDFLAGS
11770 libdir=$save_libdir
11771 ;;
11772 esac
11773 fi
11774
11775 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11776
11777 # This implies no fast_install, which is unacceptable.
11778 # Some rework will be needed to allow for fast_install
11779 # before this can be enabled.
11780 hardcode_into_libs=yes
11781
11782 # Ideally, we could use ldconfig to report *all* directores which are
11783 # searched for libraries, however this is still not possible. Aside from not
11784 # being certain /sbin/ldconfig is available, command
11785 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11786 # even though it is searched at run-time. Try to do the best guess by
11787 # appending ld.so.conf contents (and includes) to the search path.
11788 if test -f /etc/ld.so.conf; then
11789 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' ' '`
11790 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11791 fi
11792
11793 # We used to test for /lib/ld.so.1 and disable shared libraries on
11794 # powerpc, because MkLinux only supported shared libraries with the
11795 # GNU dynamic linker. Since this was broken with cross compilers,
11796 # most powerpc-linux boxes support dynamic linking these days and
11797 # people can always --disable-shared, the test was removed, and we
11798 # assume the GNU/Linux dynamic linker is in use.
11799 dynamic_linker='GNU/Linux ld.so'
11800 ;;
11801
11802 netbsd*)
11803 version_type=sunos
11804 need_lib_prefix=no
11805 need_version=no
11806 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11809 dynamic_linker='NetBSD (a.out) ld.so'
11810 else
11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11812 soname_spec='$libname$release$shared_ext$major'
11813 dynamic_linker='NetBSD ld.elf_so'
11814 fi
11815 shlibpath_var=LD_LIBRARY_PATH
11816 shlibpath_overrides_runpath=yes
11817 hardcode_into_libs=yes
11818 ;;
11819
11820 newsos6)
11821 version_type=linux # correct to gnu/linux during the next big refactor
11822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11823 shlibpath_var=LD_LIBRARY_PATH
11824 shlibpath_overrides_runpath=yes
11825 ;;
11826
11827 *nto* | *qnx*)
11828 version_type=qnx
11829 need_lib_prefix=no
11830 need_version=no
11831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11832 soname_spec='$libname$release$shared_ext$major'
11833 shlibpath_var=LD_LIBRARY_PATH
11834 shlibpath_overrides_runpath=no
11835 hardcode_into_libs=yes
11836 dynamic_linker='ldqnx.so'
11837 ;;
11838
11839 openbsd* | bitrig*)
11840 version_type=sunos
11841 sys_lib_dlsearch_path_spec=/usr/lib
11842 need_lib_prefix=no
11843 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11844 need_version=no
11845 else
11846 need_version=yes
11847 fi
11848 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11850 shlibpath_var=LD_LIBRARY_PATH
11851 shlibpath_overrides_runpath=yes
11852 ;;
11853
11854 os2*)
11855 libname_spec='$name'
11856 version_type=windows
11857 shrext_cmds=.dll
11858 need_version=no
11859 need_lib_prefix=no
11860 # OS/2 can only load a DLL with a base name of 8 characters or less.
11861 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11862 v=$($ECHO $release$versuffix | tr -d .-);
11863 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11864 $ECHO $n$v`$shared_ext'
11865 library_names_spec='${libname}_dll.$libext'
11866 dynamic_linker='OS/2 ld.exe'
11867 shlibpath_var=BEGINLIBPATH
11868 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11870 postinstall_cmds='base_file=`basename \$file`~
11871 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11872 dldir=$destdir/`dirname \$dlpath`~
11873 test -d \$dldir || mkdir -p \$dldir~
11874 $install_prog $dir/$dlname \$dldir/$dlname~
11875 chmod a+x \$dldir/$dlname~
11876 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11877 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11878 fi'
11879 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11880 dlpath=$dir/\$dldll~
11881 $RM \$dlpath'
11882 ;;
11883
11884 osf3* | osf4* | osf5*)
11885 version_type=osf
11886 need_lib_prefix=no
11887 need_version=no
11888 soname_spec='$libname$release$shared_ext$major'
11889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11893 ;;
11894
11895 rdos*)
11896 dynamic_linker=no
11897 ;;
11898
11899 solaris*)
11900 version_type=linux # correct to gnu/linux during the next big refactor
11901 need_lib_prefix=no
11902 need_version=no
11903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11904 soname_spec='$libname$release$shared_ext$major'
11905 shlibpath_var=LD_LIBRARY_PATH
11906 shlibpath_overrides_runpath=yes
11907 hardcode_into_libs=yes
11908 # ldd complains unless libraries are executable
11909 postinstall_cmds='chmod +x $lib'
11910 ;;
11911
11912 sunos4*)
11913 version_type=sunos
11914 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11915 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11916 shlibpath_var=LD_LIBRARY_PATH
11917 shlibpath_overrides_runpath=yes
11918 if test yes = "$with_gnu_ld"; then
11919 need_lib_prefix=no
11920 fi
11921 need_version=yes
11922 ;;
11923
11924 sysv4 | sysv4.3*)
11925 version_type=linux # correct to gnu/linux during the next big refactor
11926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11927 soname_spec='$libname$release$shared_ext$major'
11928 shlibpath_var=LD_LIBRARY_PATH
11929 case $host_vendor in
11930 sni)
11931 shlibpath_overrides_runpath=no
11932 need_lib_prefix=no
11933 runpath_var=LD_RUN_PATH
11934 ;;
11935 siemens)
11936 need_lib_prefix=no
11937 ;;
11938 motorola)
11939 need_lib_prefix=no
11940 need_version=no
11941 shlibpath_overrides_runpath=no
11942 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11943 ;;
11944 esac
11945 ;;
11946
11947 sysv4*MP*)
11948 if test -d /usr/nec; then
11949 version_type=linux # correct to gnu/linux during the next big refactor
11950 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11951 soname_spec='$libname$shared_ext.$major'
11952 shlibpath_var=LD_LIBRARY_PATH
11953 fi
11954 ;;
11955
11956 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11957 version_type=sco
11958 need_lib_prefix=no
11959 need_version=no
11960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11961 soname_spec='$libname$release$shared_ext$major'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 shlibpath_overrides_runpath=yes
11964 hardcode_into_libs=yes
11965 if test yes = "$with_gnu_ld"; then
11966 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11967 else
11968 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11969 case $host_os in
11970 sco3.2v5*)
11971 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11972 ;;
11973 esac
11974 fi
11975 sys_lib_dlsearch_path_spec='/usr/lib'
11976 ;;
11977
11978 tpf*)
11979 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
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 shlibpath_var=LD_LIBRARY_PATH
11985 shlibpath_overrides_runpath=no
11986 hardcode_into_libs=yes
11987 ;;
11988
11989 uts4*)
11990 version_type=linux # correct to gnu/linux during the next big refactor
11991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11992 soname_spec='$libname$release$shared_ext$major'
11993 shlibpath_var=LD_LIBRARY_PATH
11994 ;;
11995
11996 *)
11997 dynamic_linker=no
11998 ;;
11999 esac
12000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12001 printf "%s\n" "$dynamic_linker" >&6; }
12002 test no = "$dynamic_linker" && can_build_shared=no
12003
12004 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12005 if test yes = "$GCC"; then
12006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12007 fi
12008
12009 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12010 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12011 fi
12012
12013 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12014 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12015 fi
12016
12017 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12018 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12019
12020 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12021 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12022
12023 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12024 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12123 printf %s "checking how to hardcode library paths into programs... " >&6; }
12124 hardcode_action=
12125 if test -n "$hardcode_libdir_flag_spec" ||
12126 test -n "$runpath_var" ||
12127 test yes = "$hardcode_automatic"; then
12128
12129 # We can hardcode non-existent directories.
12130 if test no != "$hardcode_direct" &&
12131 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12132 # have to relink, otherwise we might link with an installed library
12133 # when we should be linking with a yet-to-be-installed one
12134 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12135 test no != "$hardcode_minus_L"; then
12136 # Linking always hardcodes the temporary library directory.
12137 hardcode_action=relink
12138 else
12139 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12140 hardcode_action=immediate
12141 fi
12142 else
12143 # We cannot hardcode anything, or else we can only hardcode existing
12144 # directories.
12145 hardcode_action=unsupported
12146 fi
12147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12148 printf "%s\n" "$hardcode_action" >&6; }
12149
12150 if test relink = "$hardcode_action" ||
12151 test yes = "$inherit_rpath"; then
12152 # Fast installation is not supported
12153 enable_fast_install=no
12154 elif test yes = "$shlibpath_overrides_runpath" ||
12155 test no = "$enable_shared"; then
12156 # Fast installation is not necessary
12157 enable_fast_install=needless
12158 fi
12159
12160
12161
12162
12163
12164
12165 if test yes != "$enable_dlopen"; then
12166 enable_dlopen=unknown
12167 enable_dlopen_self=unknown
12168 enable_dlopen_self_static=unknown
12169 else
12170 lt_cv_dlopen=no
12171 lt_cv_dlopen_libs=
12172
12173 case $host_os in
12174 beos*)
12175 lt_cv_dlopen=load_add_on
12176 lt_cv_dlopen_libs=
12177 lt_cv_dlopen_self=yes
12178 ;;
12179
12180 mingw* | pw32* | cegcc*)
12181 lt_cv_dlopen=LoadLibrary
12182 lt_cv_dlopen_libs=
12183 ;;
12184
12185 cygwin*)
12186 lt_cv_dlopen=dlopen
12187 lt_cv_dlopen_libs=
12188 ;;
12189
12190 darwin*)
12191 # if libdl is installed we need to link against it
12192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12193 printf %s "checking for dlopen in -ldl... " >&6; }
12194 if test ${ac_cv_lib_dl_dlopen+y}
12195 then :
12196 printf %s "(cached) " >&6
12197 else case e in #(
12198 e) ac_check_lib_save_LIBS=$LIBS
12199 LIBS="-ldl $LIBS"
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12202
12203 /* Override any GCC internal prototype to avoid an error.
12204 Use char because int might match the return type of a GCC
12205 builtin and then its argument prototype would still apply.
12206 The 'extern "C"' is for builds by C++ compilers;
12207 although this is not generally supported in C code supporting it here
12208 has little cost and some practical benefit (sr 110532). */
12209 #ifdef __cplusplus
12210 extern "C"
12211 #endif
12212 char dlopen (void);
12213 int
12214 main (void)
12215 {
12216 return dlopen ();
12217 ;
12218 return 0;
12219 }
12220 _ACEOF
12221 if ac_fn_c_try_link "$LINENO"
12222 then :
12223 ac_cv_lib_dl_dlopen=yes
12224 else case e in #(
12225 e) ac_cv_lib_dl_dlopen=no ;;
12226 esac
12227 fi
12228 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12229 conftest$ac_exeext conftest.$ac_ext
12230 LIBS=$ac_check_lib_save_LIBS ;;
12231 esac
12232 fi
12233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12234 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12235 if test "x$ac_cv_lib_dl_dlopen" = xyes
12236 then :
12237 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12238 else case e in #(
12239 e)
12240 lt_cv_dlopen=dyld
12241 lt_cv_dlopen_libs=
12242 lt_cv_dlopen_self=yes
12243 ;;
12244 esac
12245 fi
12246
12247 ;;
12248
12249 tpf*)
12250 # Don't try to run any link tests for TPF. We know it's impossible
12251 # because TPF is a cross-compiler, and we know how we open DSOs.
12252 lt_cv_dlopen=dlopen
12253 lt_cv_dlopen_libs=
12254 lt_cv_dlopen_self=no
12255 ;;
12256
12257 *)
12258 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12259 if test "x$ac_cv_func_shl_load" = xyes
12260 then :
12261 lt_cv_dlopen=shl_load
12262 else case e in #(
12263 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12264 printf %s "checking for shl_load in -ldld... " >&6; }
12265 if test ${ac_cv_lib_dld_shl_load+y}
12266 then :
12267 printf %s "(cached) " >&6
12268 else case e in #(
12269 e) ac_check_lib_save_LIBS=$LIBS
12270 LIBS="-ldld $LIBS"
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12273
12274 /* Override any GCC internal prototype to avoid an error.
12275 Use char because int might match the return type of a GCC
12276 builtin and then its argument prototype would still apply.
12277 The 'extern "C"' is for builds by C++ compilers;
12278 although this is not generally supported in C code supporting it here
12279 has little cost and some practical benefit (sr 110532). */
12280 #ifdef __cplusplus
12281 extern "C"
12282 #endif
12283 char shl_load (void);
12284 int
12285 main (void)
12286 {
12287 return shl_load ();
12288 ;
12289 return 0;
12290 }
12291 _ACEOF
12292 if ac_fn_c_try_link "$LINENO"
12293 then :
12294 ac_cv_lib_dld_shl_load=yes
12295 else case e in #(
12296 e) ac_cv_lib_dld_shl_load=no ;;
12297 esac
12298 fi
12299 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12300 conftest$ac_exeext conftest.$ac_ext
12301 LIBS=$ac_check_lib_save_LIBS ;;
12302 esac
12303 fi
12304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12305 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12306 if test "x$ac_cv_lib_dld_shl_load" = xyes
12307 then :
12308 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12309 else case e in #(
12310 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12311 if test "x$ac_cv_func_dlopen" = xyes
12312 then :
12313 lt_cv_dlopen=dlopen
12314 else case e in #(
12315 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12316 printf %s "checking for dlopen in -ldl... " >&6; }
12317 if test ${ac_cv_lib_dl_dlopen+y}
12318 then :
12319 printf %s "(cached) " >&6
12320 else case e in #(
12321 e) ac_check_lib_save_LIBS=$LIBS
12322 LIBS="-ldl $LIBS"
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h. */
12325
12326 /* Override any GCC internal prototype to avoid an error.
12327 Use char because int might match the return type of a GCC
12328 builtin and then its argument prototype would still apply.
12329 The 'extern "C"' is for builds by C++ compilers;
12330 although this is not generally supported in C code supporting it here
12331 has little cost and some practical benefit (sr 110532). */
12332 #ifdef __cplusplus
12333 extern "C"
12334 #endif
12335 char dlopen (void);
12336 int
12337 main (void)
12338 {
12339 return dlopen ();
12340 ;
12341 return 0;
12342 }
12343 _ACEOF
12344 if ac_fn_c_try_link "$LINENO"
12345 then :
12346 ac_cv_lib_dl_dlopen=yes
12347 else case e in #(
12348 e) ac_cv_lib_dl_dlopen=no ;;
12349 esac
12350 fi
12351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12352 conftest$ac_exeext conftest.$ac_ext
12353 LIBS=$ac_check_lib_save_LIBS ;;
12354 esac
12355 fi
12356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12357 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12358 if test "x$ac_cv_lib_dl_dlopen" = xyes
12359 then :
12360 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12361 else case e in #(
12362 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12363 printf %s "checking for dlopen in -lsvld... " >&6; }
12364 if test ${ac_cv_lib_svld_dlopen+y}
12365 then :
12366 printf %s "(cached) " >&6
12367 else case e in #(
12368 e) ac_check_lib_save_LIBS=$LIBS
12369 LIBS="-lsvld $LIBS"
12370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h. */
12372
12373 /* Override any GCC internal prototype to avoid an error.
12374 Use char because int might match the return type of a GCC
12375 builtin and then its argument prototype would still apply.
12376 The 'extern "C"' is for builds by C++ compilers;
12377 although this is not generally supported in C code supporting it here
12378 has little cost and some practical benefit (sr 110532). */
12379 #ifdef __cplusplus
12380 extern "C"
12381 #endif
12382 char dlopen (void);
12383 int
12384 main (void)
12385 {
12386 return dlopen ();
12387 ;
12388 return 0;
12389 }
12390 _ACEOF
12391 if ac_fn_c_try_link "$LINENO"
12392 then :
12393 ac_cv_lib_svld_dlopen=yes
12394 else case e in #(
12395 e) ac_cv_lib_svld_dlopen=no ;;
12396 esac
12397 fi
12398 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12399 conftest$ac_exeext conftest.$ac_ext
12400 LIBS=$ac_check_lib_save_LIBS ;;
12401 esac
12402 fi
12403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12404 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12405 if test "x$ac_cv_lib_svld_dlopen" = xyes
12406 then :
12407 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12408 else case e in #(
12409 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12410 printf %s "checking for dld_link in -ldld... " >&6; }
12411 if test ${ac_cv_lib_dld_dld_link+y}
12412 then :
12413 printf %s "(cached) " >&6
12414 else case e in #(
12415 e) ac_check_lib_save_LIBS=$LIBS
12416 LIBS="-ldld $LIBS"
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12419
12420 /* Override any GCC internal prototype to avoid an error.
12421 Use char because int might match the return type of a GCC
12422 builtin and then its argument prototype would still apply.
12423 The 'extern "C"' is for builds by C++ compilers;
12424 although this is not generally supported in C code supporting it here
12425 has little cost and some practical benefit (sr 110532). */
12426 #ifdef __cplusplus
12427 extern "C"
12428 #endif
12429 char dld_link (void);
12430 int
12431 main (void)
12432 {
12433 return dld_link ();
12434 ;
12435 return 0;
12436 }
12437 _ACEOF
12438 if ac_fn_c_try_link "$LINENO"
12439 then :
12440 ac_cv_lib_dld_dld_link=yes
12441 else case e in #(
12442 e) ac_cv_lib_dld_dld_link=no ;;
12443 esac
12444 fi
12445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12446 conftest$ac_exeext conftest.$ac_ext
12447 LIBS=$ac_check_lib_save_LIBS ;;
12448 esac
12449 fi
12450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12451 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12452 if test "x$ac_cv_lib_dld_dld_link" = xyes
12453 then :
12454 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12455 fi
12456
12457 ;;
12458 esac
12459 fi
12460
12461 ;;
12462 esac
12463 fi
12464
12465 ;;
12466 esac
12467 fi
12468
12469 ;;
12470 esac
12471 fi
12472
12473 ;;
12474 esac
12475 fi
12476
12477 ;;
12478 esac
12479
12480 if test no = "$lt_cv_dlopen"; then
12481 enable_dlopen=no
12482 else
12483 enable_dlopen=yes
12484 fi
12485
12486 case $lt_cv_dlopen in
12487 dlopen)
12488 save_CPPFLAGS=$CPPFLAGS
12489 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12490
12491 save_LDFLAGS=$LDFLAGS
12492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12493
12494 save_LIBS=$LIBS
12495 LIBS="$lt_cv_dlopen_libs $LIBS"
12496
12497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12498 printf %s "checking whether a program can dlopen itself... " >&6; }
12499 if test ${lt_cv_dlopen_self+y}
12500 then :
12501 printf %s "(cached) " >&6
12502 else case e in #(
12503 e) if test yes = "$cross_compiling"; then :
12504 lt_cv_dlopen_self=cross
12505 else
12506 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12507 lt_status=$lt_dlunknown
12508 cat > conftest.$ac_ext <<_LT_EOF
12509 #line $LINENO "configure"
12510 #include "confdefs.h"
12511
12512 #if HAVE_DLFCN_H
12513 #include <dlfcn.h>
12514 #endif
12515
12516 #include <stdio.h>
12517
12518 #ifdef RTLD_GLOBAL
12519 # define LT_DLGLOBAL RTLD_GLOBAL
12520 #else
12521 # ifdef DL_GLOBAL
12522 # define LT_DLGLOBAL DL_GLOBAL
12523 # else
12524 # define LT_DLGLOBAL 0
12525 # endif
12526 #endif
12527
12528 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12529 find out it does not work in some platform. */
12530 #ifndef LT_DLLAZY_OR_NOW
12531 # ifdef RTLD_LAZY
12532 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12533 # else
12534 # ifdef DL_LAZY
12535 # define LT_DLLAZY_OR_NOW DL_LAZY
12536 # else
12537 # ifdef RTLD_NOW
12538 # define LT_DLLAZY_OR_NOW RTLD_NOW
12539 # else
12540 # ifdef DL_NOW
12541 # define LT_DLLAZY_OR_NOW DL_NOW
12542 # else
12543 # define LT_DLLAZY_OR_NOW 0
12544 # endif
12545 # endif
12546 # endif
12547 # endif
12548 #endif
12549
12550 /* When -fvisibility=hidden is used, assume the code has been annotated
12551 correspondingly for the symbols needed. */
12552 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12553 int fnord () __attribute__((visibility("default")));
12554 #endif
12555
12556 int fnord () { return 42; }
12557 int main ()
12558 {
12559 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12560 int status = $lt_dlunknown;
12561
12562 if (self)
12563 {
12564 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12565 else
12566 {
12567 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12568 else puts (dlerror ());
12569 }
12570 /* dlclose (self); */
12571 }
12572 else
12573 puts (dlerror ());
12574
12575 return status;
12576 }
12577 _LT_EOF
12578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12579 (eval $ac_link) 2>&5
12580 ac_status=$?
12581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12582 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12583 (./conftest; exit; ) >&5 2>/dev/null
12584 lt_status=$?
12585 case x$lt_status in
12586 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12587 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12588 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12589 esac
12590 else :
12591 # compilation failed
12592 lt_cv_dlopen_self=no
12593 fi
12594 fi
12595 rm -fr conftest*
12596
12597 ;;
12598 esac
12599 fi
12600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12601 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12602
12603 if test yes = "$lt_cv_dlopen_self"; then
12604 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12606 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12607 if test ${lt_cv_dlopen_self_static+y}
12608 then :
12609 printf %s "(cached) " >&6
12610 else case e in #(
12611 e) if test yes = "$cross_compiling"; then :
12612 lt_cv_dlopen_self_static=cross
12613 else
12614 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12615 lt_status=$lt_dlunknown
12616 cat > conftest.$ac_ext <<_LT_EOF
12617 #line $LINENO "configure"
12618 #include "confdefs.h"
12619
12620 #if HAVE_DLFCN_H
12621 #include <dlfcn.h>
12622 #endif
12623
12624 #include <stdio.h>
12625
12626 #ifdef RTLD_GLOBAL
12627 # define LT_DLGLOBAL RTLD_GLOBAL
12628 #else
12629 # ifdef DL_GLOBAL
12630 # define LT_DLGLOBAL DL_GLOBAL
12631 # else
12632 # define LT_DLGLOBAL 0
12633 # endif
12634 #endif
12635
12636 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12637 find out it does not work in some platform. */
12638 #ifndef LT_DLLAZY_OR_NOW
12639 # ifdef RTLD_LAZY
12640 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12641 # else
12642 # ifdef DL_LAZY
12643 # define LT_DLLAZY_OR_NOW DL_LAZY
12644 # else
12645 # ifdef RTLD_NOW
12646 # define LT_DLLAZY_OR_NOW RTLD_NOW
12647 # else
12648 # ifdef DL_NOW
12649 # define LT_DLLAZY_OR_NOW DL_NOW
12650 # else
12651 # define LT_DLLAZY_OR_NOW 0
12652 # endif
12653 # endif
12654 # endif
12655 # endif
12656 #endif
12657
12658 /* When -fvisibility=hidden is used, assume the code has been annotated
12659 correspondingly for the symbols needed. */
12660 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12661 int fnord () __attribute__((visibility("default")));
12662 #endif
12663
12664 int fnord () { return 42; }
12665 int main ()
12666 {
12667 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12668 int status = $lt_dlunknown;
12669
12670 if (self)
12671 {
12672 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12673 else
12674 {
12675 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12676 else puts (dlerror ());
12677 }
12678 /* dlclose (self); */
12679 }
12680 else
12681 puts (dlerror ());
12682
12683 return status;
12684 }
12685 _LT_EOF
12686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12687 (eval $ac_link) 2>&5
12688 ac_status=$?
12689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12690 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12691 (./conftest; exit; ) >&5 2>/dev/null
12692 lt_status=$?
12693 case x$lt_status in
12694 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12695 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12696 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12697 esac
12698 else :
12699 # compilation failed
12700 lt_cv_dlopen_self_static=no
12701 fi
12702 fi
12703 rm -fr conftest*
12704
12705 ;;
12706 esac
12707 fi
12708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12709 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12710 fi
12711
12712 CPPFLAGS=$save_CPPFLAGS
12713 LDFLAGS=$save_LDFLAGS
12714 LIBS=$save_LIBS
12715 ;;
12716 esac
12717
12718 case $lt_cv_dlopen_self in
12719 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12720 *) enable_dlopen_self=unknown ;;
12721 esac
12722
12723 case $lt_cv_dlopen_self_static in
12724 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12725 *) enable_dlopen_self_static=unknown ;;
12726 esac
12727 fi
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745 striplib=
12746 old_striplib=
12747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12748 printf %s "checking whether stripping libraries is possible... " >&6; }
12749 if test -z "$STRIP"; then
12750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751 printf "%s\n" "no" >&6; }
12752 else
12753 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12754 old_striplib="$STRIP --strip-debug"
12755 striplib="$STRIP --strip-unneeded"
12756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12757 printf "%s\n" "yes" >&6; }
12758 else
12759 case $host_os in
12760 darwin*)
12761 # FIXME - insert some real tests, host_os isn't really good enough
12762 striplib="$STRIP -x"
12763 old_striplib="$STRIP -S"
12764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12765 printf "%s\n" "yes" >&6; }
12766 ;;
12767 freebsd*)
12768 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12769 old_striplib="$STRIP --strip-debug"
12770 striplib="$STRIP --strip-unneeded"
12771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12772 printf "%s\n" "yes" >&6; }
12773 else
12774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775 printf "%s\n" "no" >&6; }
12776 fi
12777 ;;
12778 *)
12779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12780 printf "%s\n" "no" >&6; }
12781 ;;
12782 esac
12783 fi
12784 fi
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797 # Report what library types will actually be built
12798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12799 printf %s "checking if libtool supports shared libraries... " >&6; }
12800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12801 printf "%s\n" "$can_build_shared" >&6; }
12802
12803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12804 printf %s "checking whether to build shared libraries... " >&6; }
12805 test no = "$can_build_shared" && enable_shared=no
12806
12807 # On AIX, shared libraries and static libraries use the same namespace, and
12808 # are all built from PIC.
12809 case $host_os in
12810 aix3*)
12811 test yes = "$enable_shared" && enable_static=no
12812 if test -n "$RANLIB"; then
12813 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12814 postinstall_cmds='$RANLIB $lib'
12815 fi
12816 ;;
12817
12818 aix[4-9]*)
12819 if test ia64 != "$host_cpu"; then
12820 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12821 yes,aix,yes) ;; # shared object as lib.so file only
12822 yes,svr4,*) ;; # shared object as lib.so archive member only
12823 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12824 esac
12825 fi
12826 ;;
12827 esac
12828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12829 printf "%s\n" "$enable_shared" >&6; }
12830
12831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12832 printf %s "checking whether to build static libraries... " >&6; }
12833 # Make sure either enable_shared or enable_static is yes.
12834 test yes = "$enable_shared" || enable_static=yes
12835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12836 printf "%s\n" "$enable_static" >&6; }
12837
12838
12839
12840
12841 fi
12842 ac_ext=c
12843 ac_cpp='$CPP $CPPFLAGS'
12844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12847
12848 CC=$lt_save_CC
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864 ac_config_commands="$ac_config_commands libtool"
12865
12866
12867
12868
12869 # Only expand once:
12870
12871
12872
12873
12874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12875 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12876 # Check whether --enable-maintainer-mode was given.
12877 if test ${enable_maintainer_mode+y}
12878 then :
12879 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12880 else case e in #(
12881 e) USE_MAINTAINER_MODE=no ;;
12882 esac
12883 fi
12884
12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12886 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
12887 if test $USE_MAINTAINER_MODE = yes; then
12888 MAINTAINER_MODE_TRUE=
12889 MAINTAINER_MODE_FALSE='#'
12890 else
12891 MAINTAINER_MODE_TRUE='#'
12892 MAINTAINER_MODE_FALSE=
12893 fi
12894
12895 MAINT=$MAINTAINER_MODE_TRUE
12896
12897
12898
12899 # Checks for libraries
12900 case "$host" in
12901 *-*-*freebsd4*)
12902 LDFLAGS="$LDFLAGS -pthread"
12903 HAVE_LIBPTHREAD=1
12904 ;;
12905 *)
12906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
12907 printf %s "checking for main in -lpthread... " >&6; }
12908 if test ${ac_cv_lib_pthread_main+y}
12909 then :
12910 printf %s "(cached) " >&6
12911 else case e in #(
12912 e) ac_check_lib_save_LIBS=$LIBS
12913 LIBS="-lpthread $LIBS"
12914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915 /* end confdefs.h. */
12916
12917
12918 int
12919 main (void)
12920 {
12921 return main ();
12922 ;
12923 return 0;
12924 }
12925 _ACEOF
12926 if ac_fn_c_try_link "$LINENO"
12927 then :
12928 ac_cv_lib_pthread_main=yes
12929 else case e in #(
12930 e) ac_cv_lib_pthread_main=no ;;
12931 esac
12932 fi
12933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12934 conftest$ac_exeext conftest.$ac_ext
12935 LIBS=$ac_check_lib_save_LIBS ;;
12936 esac
12937 fi
12938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
12939 printf "%s\n" "$ac_cv_lib_pthread_main" >&6; }
12940 if test "x$ac_cv_lib_pthread_main" = xyes
12941 then :
12942 printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
12943
12944 LIBS="-lpthread $LIBS"
12945
12946 fi
12947
12948 ;;
12949 esac
12950
12951 # Checks for header files
12952 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12953 if test "x$ac_cv_header_stdlib_h" = xyes
12954 then :
12955 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
12956
12957 fi
12958
12959 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12960 if test "x$ac_cv_header_pthread_h" = xyes
12961 then :
12962 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
12963
12964 fi
12965
12966
12967 # Checks for typedefs, structures, and compiler characteristics.
12968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12969 printf %s "checking for an ANSI C-conforming const... " >&6; }
12970 if test ${ac_cv_c_const+y}
12971 then :
12972 printf %s "(cached) " >&6
12973 else case e in #(
12974 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12976
12977 int
12978 main (void)
12979 {
12980
12981 #ifndef __cplusplus
12982 /* Ultrix mips cc rejects this sort of thing. */
12983 typedef int charset[2];
12984 const charset cs = { 0, 0 };
12985 /* SunOS 4.1.1 cc rejects this. */
12986 char const *const *pcpcc;
12987 char **ppc;
12988 /* NEC SVR4.0.2 mips cc rejects this. */
12989 struct point {int x, y;};
12990 static struct point const zero = {0,0};
12991 /* IBM XL C 1.02.0.0 rejects this.
12992 It does not let you subtract one const X* pointer from another in
12993 an arm of an if-expression whose if-part is not a constant
12994 expression */
12995 const char *g = "string";
12996 pcpcc = &g + (g ? g-g : 0);
12997 /* HPUX 7.0 cc rejects these. */
12998 ++pcpcc;
12999 ppc = (char**) pcpcc;
13000 pcpcc = (char const *const *) ppc;
13001 { /* SCO 3.2v4 cc rejects this sort of thing. */
13002 char tx;
13003 char *t = &tx;
13004 char const *s = 0 ? (char *) 0 : (char const *) 0;
13005
13006 *t++ = 0;
13007 if (s) return 0;
13008 }
13009 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13010 int x[] = {25, 17};
13011 const int *foo = &x[0];
13012 ++foo;
13013 }
13014 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13015 typedef const int *iptr;
13016 iptr p = 0;
13017 ++p;
13018 }
13019 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13020 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13021 struct s { int j; const int *ap[3]; } bx;
13022 struct s *b = &bx; b->j = 5;
13023 }
13024 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13025 const int foo = 10;
13026 if (!foo) return 0;
13027 }
13028 return !cs[0] && !zero.x;
13029 #endif
13030
13031 ;
13032 return 0;
13033 }
13034 _ACEOF
13035 if ac_fn_c_try_compile "$LINENO"
13036 then :
13037 ac_cv_c_const=yes
13038 else case e in #(
13039 e) ac_cv_c_const=no ;;
13040 esac
13041 fi
13042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13043 esac
13044 fi
13045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13046 printf "%s\n" "$ac_cv_c_const" >&6; }
13047 if test $ac_cv_c_const = no; then
13048
13049 printf "%s\n" "#define const /**/" >>confdefs.h
13050
13051 fi
13052
13053
13054 # Checks for library functions.
13055 ac_func=
13056 for ac_item in $ac_func_c_list
13057 do
13058 if test $ac_func; then
13059 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
13060 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
13061 echo "#define $ac_item 1" >> confdefs.h
13062 fi
13063 ac_func=
13064 else
13065 ac_func=$ac_item
13066 fi
13067 done
13068
13069 if test "x$ac_cv_func_vprintf" = xno
13070 then :
13071 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
13072 if test "x$ac_cv_func__doprnt" = xyes
13073 then :
13074
13075 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
13076
13077 fi
13078
13079 fi
13080 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
13081 if test "x$ac_cv_func_atexit" = xyes
13082 then :
13083 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
13084
13085 fi
13086
13087
13088 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/diag/Makefile tests/fail/Makefile tests/ok/Makefile tests/ok/ok-hash/Makefile tests/ok/ok-numeric/Makefile tests/ok/ok/Makefile tests/pass/Makefile tests/plan/Makefile tests/plan/no-tests/Makefile tests/plan/no_plan/Makefile tests/plan/not-enough-tests/Makefile tests/plan/sane/Makefile tests/plan/skip_all/Makefile tests/plan/too-many-plans/Makefile tests/plan/too-many-tests/Makefile tests/skip/Makefile tests/todo/Makefile"
13089
13090 cat >confcache <<\_ACEOF
13091 # This file is a shell script that caches the results of configure
13092 # tests run on this system so they can be shared between configure
13093 # scripts and configure runs, see configure's option --config-cache.
13094 # It is not useful on other systems. If it contains results you don't
13095 # want to keep, you may remove or edit it.
13096 #
13097 # config.status only pays attention to the cache file if you give it
13098 # the --recheck option to rerun configure.
13099 #
13100 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
13101 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
13102 # following values.
13103
13104 _ACEOF
13105
13106 # The following way of writing the cache mishandles newlines in values,
13107 # but we know of no workaround that is simple, portable, and efficient.
13108 # So, we kill variables containing newlines.
13109 # Ultrix sh set writes to stderr and can't be redirected directly,
13110 # and sets the high bit in the cache file unless we assign to the vars.
13111 (
13112 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13113 eval ac_val=\$$ac_var
13114 case $ac_val in #(
13115 *${as_nl}*)
13116 case $ac_var in #(
13117 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13118 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13119 esac
13120 case $ac_var in #(
13121 _ | IFS | as_nl) ;; #(
13122 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13123 *) { eval $ac_var=; unset $ac_var;} ;;
13124 esac ;;
13125 esac
13126 done
13127
13128 (set) 2>&1 |
13129 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13130 *${as_nl}ac_space=\ *)
13131 # 'set' does not quote correctly, so add quotes: double-quote
13132 # substitution turns \\\\ into \\, and sed turns \\ into \.
13133 sed -n \
13134 "s/'/'\\\\''/g;
13135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13136 ;; #(
13137 *)
13138 # 'set' quotes correctly as required by POSIX, so do not add quotes.
13139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13140 ;;
13141 esac |
13142 sort
13143 ) |
13144 sed '
13145 /^ac_cv_env_/b end
13146 t clear
13147 :clear
13148 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
13149 t end
13150 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13151 :end' >>confcache
13152 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13153 if test -w "$cache_file"; then
13154 if test "x$cache_file" != "x/dev/null"; then
13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13156 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
13157 if test ! -f "$cache_file" || test -h "$cache_file"; then
13158 cat confcache >"$cache_file"
13159 else
13160 case $cache_file in #(
13161 */* | ?:*)
13162 mv -f confcache "$cache_file"$$ &&
13163 mv -f "$cache_file"$$ "$cache_file" ;; #(
13164 *)
13165 mv -f confcache "$cache_file" ;;
13166 esac
13167 fi
13168 fi
13169 else
13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13171 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
13172 fi
13173 fi
13174 rm -f confcache
13175
13176 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13177 # Let make expand exec_prefix.
13178 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13179
13180 # Transform confdefs.h into DEFS.
13181 # Protect against shell expansion while executing Makefile rules.
13182 # Protect against Makefile macro expansion.
13183 #
13184 # If the first sed substitution is executed (which looks for macros that
13185 # take arguments), then branch to the quote section. Otherwise,
13186 # look for a macro that doesn't take arguments.
13187 ac_script='
13188 :mline
13189 /\\$/{
13190 N
13191 s,\\\n,,
13192 b mline
13193 }
13194 t clear
13195 :clear
13196 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13197 t quote
13198 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13199 t quote
13200 b any
13201 :quote
13202 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13203 s/\$/$$/g
13204 H
13205 :any
13206 ${
13207 g
13208 s/^\n//
13209 s/\n/ /g
13210 p
13211 }
13212 '
13213 DEFS=`sed -n "$ac_script" confdefs.h`
13214
13215
13216 ac_libobjs=
13217 ac_ltlibobjs=
13218 U=
13219 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13220 # 1. Remove the extension, and $U if already installed.
13221 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13222 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
13223 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13224 # will be set to the directory where LIBOBJS objects are built.
13225 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13226 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13227 done
13228 LIBOBJS=$ac_libobjs
13229
13230 LTLIBOBJS=$ac_ltlibobjs
13231
13232
13233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13234 printf %s "checking that generated files are newer than configure... " >&6; }
13235 if test -n "$am_sleep_pid"; then
13236 # Hide warnings about reused PIDs.
13237 wait $am_sleep_pid 2>/dev/null
13238 fi
13239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13240 printf "%s\n" "done" >&6; }
13241 case $enable_silent_rules in # (((
13242 yes) AM_DEFAULT_VERBOSITY=0;;
13243 no) AM_DEFAULT_VERBOSITY=1;;
13244 esac
13245 if test $am_cv_make_support_nested_variables = yes; then
13246 AM_V='$(V)'
13247 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13248 else
13249 AM_V=$AM_DEFAULT_VERBOSITY
13250 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13251 fi
13252
13253 if test -n "$EXEEXT"; then
13254 am__EXEEXT_TRUE=
13255 am__EXEEXT_FALSE='#'
13256 else
13257 am__EXEEXT_TRUE='#'
13258 am__EXEEXT_FALSE=
13259 fi
13260
13261 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13262 as_fn_error $? "conditional \"AMDEP\" was never defined.
13263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13264 fi
13265 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13266 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13268 fi
13269 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13270 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13272 fi
13273
13274 : "${CONFIG_STATUS=./config.status}"
13275 ac_write_fail=0
13276 ac_clean_files_save=$ac_clean_files
13277 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13279 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
13280 as_write_fail=0
13281 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13282 #! $SHELL
13283 # Generated by $as_me.
13284 # Run this file to recreate the current configuration.
13285 # Compiler output produced by configure, useful for debugging
13286 # configure, is in config.log if it exists.
13287
13288 debug=false
13289 ac_cs_recheck=false
13290 ac_cs_silent=false
13291
13292 SHELL=\${CONFIG_SHELL-$SHELL}
13293 export SHELL
13294 _ASEOF
13295 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13296 ## -------------------- ##
13297 ## M4sh Initialization. ##
13298 ## -------------------- ##
13299
13300 # Be more Bourne compatible
13301 DUALCASE=1; export DUALCASE # for MKS sh
13302 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
13303 then :
13304 emulate sh
13305 NULLCMD=:
13306 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13307 # is contrary to our usage. Disable this feature.
13308 alias -g '${1+"$@"}'='"$@"'
13309 setopt NO_GLOB_SUBST
13310 else case e in #(
13311 e) case `(set -o) 2>/dev/null` in #(
13312 *posix*) :
13313 set -o posix ;; #(
13314 *) :
13315 ;;
13316 esac ;;
13317 esac
13318 fi
13319
13320
13321
13322 # Reset variables that may have inherited troublesome values from
13323 # the environment.
13324
13325 # IFS needs to be set, to space, tab, and newline, in precisely that order.
13326 # (If _AS_PATH_WALK were called with IFS unset, it would have the
13327 # side effect of setting IFS to empty, thus disabling word splitting.)
13328 # Quoting is to prevent editors from complaining about space-tab.
13329 as_nl='
13330 '
13331 export as_nl
13332 IFS=" "" $as_nl"
13333
13334 PS1='$ '
13335 PS2='> '
13336 PS4='+ '
13337
13338 # Ensure predictable behavior from utilities with locale-dependent output.
13339 LC_ALL=C
13340 export LC_ALL
13341 LANGUAGE=C
13342 export LANGUAGE
13343
13344 # We cannot yet rely on "unset" to work, but we need these variables
13345 # to be unset--not just set to an empty or harmless value--now, to
13346 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
13347 # also avoids known problems related to "unset" and subshell syntax
13348 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
13349 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
13350 do eval test \${$as_var+y} \
13351 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13352 done
13353
13354 # Ensure that fds 0, 1, and 2 are open.
13355 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
13356 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
13357 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
13358
13359 # The user is always right.
13360 if ${PATH_SEPARATOR+false} :; then
13361 PATH_SEPARATOR=:
13362 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13363 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13364 PATH_SEPARATOR=';'
13365 }
13366 fi
13367
13368
13369 # Find who we are. Look in the path if we contain no directory separator.
13370 as_myself=
13371 case $0 in #((
13372 *[\\/]* ) as_myself=$0 ;;
13373 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374 for as_dir in $PATH
13375 do
13376 IFS=$as_save_IFS
13377 case $as_dir in #(((
13378 '') as_dir=./ ;;
13379 */) ;;
13380 *) as_dir=$as_dir/ ;;
13381 esac
13382 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
13383 done
13384 IFS=$as_save_IFS
13385
13386 ;;
13387 esac
13388 # We did not find ourselves, most probably we were run as 'sh COMMAND'
13389 # in which case we are not to be found in the path.
13390 if test "x$as_myself" = x; then
13391 as_myself=$0
13392 fi
13393 if test ! -f "$as_myself"; then
13394 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13395 exit 1
13396 fi
13397
13398
13399
13400 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13401 # ----------------------------------------
13402 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13403 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13404 # script with STATUS, using 1 if that was 0.
13405 as_fn_error ()
13406 {
13407 as_status=$1; test $as_status -eq 0 && as_status=1
13408 if test "$4"; then
13409 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13411 fi
13412 printf "%s\n" "$as_me: error: $2" >&2
13413 as_fn_exit $as_status
13414 } # as_fn_error
13415
13416
13417 # as_fn_set_status STATUS
13418 # -----------------------
13419 # Set $? to STATUS, without forking.
13420 as_fn_set_status ()
13421 {
13422 return $1
13423 } # as_fn_set_status
13424
13425 # as_fn_exit STATUS
13426 # -----------------
13427 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13428 as_fn_exit ()
13429 {
13430 set +e
13431 as_fn_set_status $1
13432 exit $1
13433 } # as_fn_exit
13434
13435 # as_fn_unset VAR
13436 # ---------------
13437 # Portably unset VAR.
13438 as_fn_unset ()
13439 {
13440 { eval $1=; unset $1;}
13441 }
13442 as_unset=as_fn_unset
13443
13444 # as_fn_append VAR VALUE
13445 # ----------------------
13446 # Append the text in VALUE to the end of the definition contained in VAR. Take
13447 # advantage of any shell optimizations that allow amortized linear growth over
13448 # repeated appends, instead of the typical quadratic growth present in naive
13449 # implementations.
13450 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
13451 then :
13452 eval 'as_fn_append ()
13453 {
13454 eval $1+=\$2
13455 }'
13456 else case e in #(
13457 e) as_fn_append ()
13458 {
13459 eval $1=\$$1\$2
13460 } ;;
13461 esac
13462 fi # as_fn_append
13463
13464 # as_fn_arith ARG...
13465 # ------------------
13466 # Perform arithmetic evaluation on the ARGs, and store the result in the
13467 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13468 # must be portable across $(()) and expr.
13469 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
13470 then :
13471 eval 'as_fn_arith ()
13472 {
13473 as_val=$(( $* ))
13474 }'
13475 else case e in #(
13476 e) as_fn_arith ()
13477 {
13478 as_val=`expr "$@" || test $? -eq 1`
13479 } ;;
13480 esac
13481 fi # as_fn_arith
13482
13483
13484 if expr a : '\(a\)' >/dev/null 2>&1 &&
13485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13486 as_expr=expr
13487 else
13488 as_expr=false
13489 fi
13490
13491 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13492 as_basename=basename
13493 else
13494 as_basename=false
13495 fi
13496
13497 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13498 as_dirname=dirname
13499 else
13500 as_dirname=false
13501 fi
13502
13503 as_me=`$as_basename -- "$0" ||
13504 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13505 X"$0" : 'X\(//\)$' \| \
13506 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13507 printf "%s\n" X/"$0" |
13508 sed '/^.*\/\([^/][^/]*\)\/*$/{
13509 s//\1/
13510 q
13511 }
13512 /^X\/\(\/\/\)$/{
13513 s//\1/
13514 q
13515 }
13516 /^X\/\(\/\).*/{
13517 s//\1/
13518 q
13519 }
13520 s/.*/./; q'`
13521
13522 # Avoid depending upon Character Ranges.
13523 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13524 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13525 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13526 as_cr_digits='0123456789'
13527 as_cr_alnum=$as_cr_Letters$as_cr_digits
13528
13529
13530 # Determine whether it's possible to make 'echo' print without a newline.
13531 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
13532 # for compatibility with existing Makefiles.
13533 ECHO_C= ECHO_N= ECHO_T=
13534 case `echo -n x` in #(((((
13535 -n*)
13536 case `echo 'xy\c'` in
13537 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13538 xy) ECHO_C='\c';;
13539 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13540 ECHO_T=' ';;
13541 esac;;
13542 *)
13543 ECHO_N='-n';;
13544 esac
13545
13546 # For backward compatibility with old third-party macros, we provide
13547 # the shell variables $as_echo and $as_echo_n. New code should use
13548 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
13549 as_echo='printf %s\n'
13550 as_echo_n='printf %s'
13551
13552 rm -f conf$$ conf$$.exe conf$$.file
13553 if test -d conf$$.dir; then
13554 rm -f conf$$.dir/conf$$.file
13555 else
13556 rm -f conf$$.dir
13557 mkdir conf$$.dir 2>/dev/null
13558 fi
13559 if (echo >conf$$.file) 2>/dev/null; then
13560 if ln -s conf$$.file conf$$ 2>/dev/null; then
13561 as_ln_s='ln -s'
13562 # ... but there are two gotchas:
13563 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
13564 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
13565 # In both cases, we have to default to 'cp -pR'.
13566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13567 as_ln_s='cp -pR'
13568 elif ln conf$$.file conf$$ 2>/dev/null; then
13569 as_ln_s=ln
13570 else
13571 as_ln_s='cp -pR'
13572 fi
13573 else
13574 as_ln_s='cp -pR'
13575 fi
13576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13577 rmdir conf$$.dir 2>/dev/null
13578
13579
13580 # as_fn_mkdir_p
13581 # -------------
13582 # Create "$as_dir" as a directory, including parents if necessary.
13583 as_fn_mkdir_p ()
13584 {
13585
13586 case $as_dir in #(
13587 -*) as_dir=./$as_dir;;
13588 esac
13589 test -d "$as_dir" || eval $as_mkdir_p || {
13590 as_dirs=
13591 while :; do
13592 case $as_dir in #(
13593 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13594 *) as_qdir=$as_dir;;
13595 esac
13596 as_dirs="'$as_qdir' $as_dirs"
13597 as_dir=`$as_dirname -- "$as_dir" ||
13598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13599 X"$as_dir" : 'X\(//\)[^/]' \| \
13600 X"$as_dir" : 'X\(//\)$' \| \
13601 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13602 printf "%s\n" X"$as_dir" |
13603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13604 s//\1/
13605 q
13606 }
13607 /^X\(\/\/\)[^/].*/{
13608 s//\1/
13609 q
13610 }
13611 /^X\(\/\/\)$/{
13612 s//\1/
13613 q
13614 }
13615 /^X\(\/\).*/{
13616 s//\1/
13617 q
13618 }
13619 s/.*/./; q'`
13620 test -d "$as_dir" && break
13621 done
13622 test -z "$as_dirs" || eval "mkdir $as_dirs"
13623 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13624
13625
13626 } # as_fn_mkdir_p
13627 if mkdir -p . 2>/dev/null; then
13628 as_mkdir_p='mkdir -p "$as_dir"'
13629 else
13630 test -d ./-p && rmdir ./-p
13631 as_mkdir_p=false
13632 fi
13633
13634
13635 # as_fn_executable_p FILE
13636 # -----------------------
13637 # Test if FILE is an executable regular file.
13638 as_fn_executable_p ()
13639 {
13640 test -f "$1" && test -x "$1"
13641 } # as_fn_executable_p
13642 as_test_x='test -x'
13643 as_executable_p=as_fn_executable_p
13644
13645 # Sed expression to map a string onto a valid CPP name.
13646 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13647 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
13648
13649 # Sed expression to map a string onto a valid variable name.
13650 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13651 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
13652
13653
13654 exec 6>&1
13655 ## ----------------------------------- ##
13656 ## Main body of $CONFIG_STATUS script. ##
13657 ## ----------------------------------- ##
13658 _ASEOF
13659 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13660
13661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13662 # Save the log message, to keep $0 and so on meaningful, and to
13663 # report actual input values of CONFIG_FILES etc. instead of their
13664 # values after options handling.
13665 ac_log="
13666 This file was extended by tap $as_me 1.01, which was
13667 generated by GNU Autoconf 2.72. Invocation command line was
13668
13669 CONFIG_FILES = $CONFIG_FILES
13670 CONFIG_HEADERS = $CONFIG_HEADERS
13671 CONFIG_LINKS = $CONFIG_LINKS
13672 CONFIG_COMMANDS = $CONFIG_COMMANDS
13673 $ $0 $@
13674
13675 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13676 "
13677
13678 _ACEOF
13679
13680 case $ac_config_files in *"
13681 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13682 esac
13683
13684
13685
13686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13687 # Files that config.status was made for.
13688 config_files="$ac_config_files"
13689 config_commands="$ac_config_commands"
13690
13691 _ACEOF
13692
13693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13694 ac_cs_usage="\
13695 '$as_me' instantiates files and other configuration actions
13696 from templates according to the current configuration. Unless the files
13697 and actions are specified as TAGs, all are instantiated by default.
13698
13699 Usage: $0 [OPTION]... [TAG]...
13700
13701 -h, --help print this help, then exit
13702 -V, --version print version number and configuration settings, then exit
13703 --config print configuration, then exit
13704 -q, --quiet, --silent
13705 do not print progress messages
13706 -d, --debug don't remove temporary files
13707 --recheck update $as_me by reconfiguring in the same conditions
13708 --file=FILE[:TEMPLATE]
13709 instantiate the configuration file FILE
13710
13711 Configuration files:
13712 $config_files
13713
13714 Configuration commands:
13715 $config_commands
13716
13717 Report bugs to the package provider."
13718
13719 _ACEOF
13720 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
13721 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
13722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13723 ac_cs_config='$ac_cs_config_escaped'
13724 ac_cs_version="\\
13725 tap config.status 1.01
13726 configured by $0, generated by GNU Autoconf 2.72,
13727 with options \\"\$ac_cs_config\\"
13728
13729 Copyright (C) 2023 Free Software Foundation, Inc.
13730 This config.status script is free software; the Free Software Foundation
13731 gives unlimited permission to copy, distribute and modify it."
13732
13733 ac_pwd='$ac_pwd'
13734 srcdir='$srcdir'
13735 INSTALL='$INSTALL'
13736 MKDIR_P='$MKDIR_P'
13737 AWK='$AWK'
13738 test -n "\$AWK" || AWK=awk
13739 _ACEOF
13740
13741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13742 # The default lists apply if the user does not specify any file.
13743 ac_need_defaults=:
13744 while test $# != 0
13745 do
13746 case $1 in
13747 --*=?*)
13748 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13749 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13750 ac_shift=:
13751 ;;
13752 --*=)
13753 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13754 ac_optarg=
13755 ac_shift=:
13756 ;;
13757 *)
13758 ac_option=$1
13759 ac_optarg=$2
13760 ac_shift=shift
13761 ;;
13762 esac
13763
13764 case $ac_option in
13765 # Handling of the options.
13766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13767 ac_cs_recheck=: ;;
13768 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13769 printf "%s\n" "$ac_cs_version"; exit ;;
13770 --config | --confi | --conf | --con | --co | --c )
13771 printf "%s\n" "$ac_cs_config"; exit ;;
13772 --debug | --debu | --deb | --de | --d | -d )
13773 debug=: ;;
13774 --file | --fil | --fi | --f )
13775 $ac_shift
13776 case $ac_optarg in
13777 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13778 '') as_fn_error $? "missing file argument" ;;
13779 esac
13780 as_fn_append CONFIG_FILES " '$ac_optarg'"
13781 ac_need_defaults=false;;
13782 --he | --h | --help | --hel | -h )
13783 printf "%s\n" "$ac_cs_usage"; exit ;;
13784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13785 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13786 ac_cs_silent=: ;;
13787
13788 # This is an error.
13789 -*) as_fn_error $? "unrecognized option: '$1'
13790 Try '$0 --help' for more information." ;;
13791
13792 *) as_fn_append ac_config_targets " $1"
13793 ac_need_defaults=false ;;
13794
13795 esac
13796 shift
13797 done
13798
13799 ac_configure_extra_args=
13800
13801 if $ac_cs_silent; then
13802 exec 6>/dev/null
13803 ac_configure_extra_args="$ac_configure_extra_args --silent"
13804 fi
13805
13806 _ACEOF
13807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13808 if \$ac_cs_recheck; then
13809 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13810 shift
13811 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13812 CONFIG_SHELL='$SHELL'
13813 export CONFIG_SHELL
13814 exec "\$@"
13815 fi
13816
13817 _ACEOF
13818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13819 exec 5>>config.log
13820 {
13821 echo
13822 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13823 ## Running $as_me. ##
13824 _ASBOX
13825 printf "%s\n" "$ac_log"
13826 } >&5
13827
13828 _ACEOF
13829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13830 #
13831 # INIT-COMMANDS
13832 #
13833 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13834
13835
13836 # The HP-UX ksh and POSIX shell print the target directory to stdout
13837 # if CDPATH is set.
13838 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13839
13840 sed_quote_subst='$sed_quote_subst'
13841 double_quote_subst='$double_quote_subst'
13842 delay_variable_subst='$delay_variable_subst'
13843 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13844 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13845 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13846 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13847 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13848 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13849 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13850 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13851 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13852 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13853 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13854 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13855 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13856 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13857 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13858 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13859 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13860 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13861 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13862 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13863 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13864 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13865 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13866 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13867 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13868 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13869 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13870 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13871 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13872 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13873 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13874 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13875 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13876 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13877 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
13878 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13879 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13880 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13881 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13882 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13883 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13884 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13885 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13886 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
13887 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13888 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13889 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13890 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13891 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13892 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13893 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13894 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13895 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13896 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13897 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13898 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13899 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13900 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13901 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13902 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13903 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"`'
13904 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13905 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13906 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13907 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13908 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13909 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13910 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13911 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13912 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13913 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13914 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13915 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13916 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13917 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13918 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13919 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13920 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13921 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13922 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13923 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13924 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13925 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13926 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13927 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13928 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13929 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13930 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13931 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13932 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13933 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13934 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13935 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13936 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13937 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13938 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13939 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13940 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13941 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13942 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13943 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13944 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13945 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13946 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13947 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13948 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13949 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13950 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13951 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13952 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13953 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13954 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13955 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13956 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13957 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13958 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13959 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13960 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13961 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13962 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13963 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13964 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13965 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13966 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13967 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13968 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13969 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13970 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13971 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13972 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13973 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13974 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13975 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13976 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13977 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13978 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13979 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13980
13981 LTCC='$LTCC'
13982 LTCFLAGS='$LTCFLAGS'
13983 compiler='$compiler_DEFAULT'
13984
13985 # A function that is used when there is no print builtin or printf.
13986 func_fallback_echo ()
13987 {
13988 eval 'cat <<_LTECHO_EOF
13989 \$1
13990 _LTECHO_EOF'
13991 }
13992
13993 # Quote evaled strings.
13994 for var in SHELL \
13995 ECHO \
13996 PATH_SEPARATOR \
13997 SED \
13998 GREP \
13999 EGREP \
14000 FGREP \
14001 LD \
14002 NM \
14003 LN_S \
14004 lt_SP2NL \
14005 lt_NL2SP \
14006 reload_flag \
14007 FILECMD \
14008 OBJDUMP \
14009 deplibs_check_method \
14010 file_magic_cmd \
14011 file_magic_glob \
14012 want_nocaseglob \
14013 DLLTOOL \
14014 sharedlib_from_linklib_cmd \
14015 AR \
14016 archiver_list_spec \
14017 STRIP \
14018 RANLIB \
14019 CC \
14020 CFLAGS \
14021 compiler \
14022 lt_cv_sys_global_symbol_pipe \
14023 lt_cv_sys_global_symbol_to_cdecl \
14024 lt_cv_sys_global_symbol_to_import \
14025 lt_cv_sys_global_symbol_to_c_name_address \
14026 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14027 lt_cv_nm_interface \
14028 nm_file_list_spec \
14029 lt_cv_truncate_bin \
14030 lt_prog_compiler_no_builtin_flag \
14031 lt_prog_compiler_pic \
14032 lt_prog_compiler_wl \
14033 lt_prog_compiler_static \
14034 lt_cv_prog_compiler_c_o \
14035 need_locks \
14036 MANIFEST_TOOL \
14037 DSYMUTIL \
14038 NMEDIT \
14039 LIPO \
14040 OTOOL \
14041 OTOOL64 \
14042 shrext_cmds \
14043 export_dynamic_flag_spec \
14044 whole_archive_flag_spec \
14045 compiler_needs_object \
14046 with_gnu_ld \
14047 allow_undefined_flag \
14048 no_undefined_flag \
14049 hardcode_libdir_flag_spec \
14050 hardcode_libdir_separator \
14051 exclude_expsyms \
14052 include_expsyms \
14053 file_list_spec \
14054 variables_saved_for_relink \
14055 libname_spec \
14056 library_names_spec \
14057 soname_spec \
14058 install_override_mode \
14059 finish_eval \
14060 old_striplib \
14061 striplib; do
14062 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14063 *[\\\\\\\`\\"\\\$]*)
14064 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14065 ;;
14066 *)
14067 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14068 ;;
14069 esac
14070 done
14071
14072 # Double-quote double-evaled strings.
14073 for var in reload_cmds \
14074 old_postinstall_cmds \
14075 old_postuninstall_cmds \
14076 old_archive_cmds \
14077 extract_expsyms_cmds \
14078 old_archive_from_new_cmds \
14079 old_archive_from_expsyms_cmds \
14080 archive_cmds \
14081 archive_expsym_cmds \
14082 module_cmds \
14083 module_expsym_cmds \
14084 export_symbols_cmds \
14085 prelink_cmds \
14086 postlink_cmds \
14087 postinstall_cmds \
14088 postuninstall_cmds \
14089 finish_cmds \
14090 sys_lib_search_path_spec \
14091 configure_time_dlsearch_path \
14092 configure_time_lt_sys_library_path; do
14093 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14094 *[\\\\\\\`\\"\\\$]*)
14095 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14096 ;;
14097 *)
14098 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14099 ;;
14100 esac
14101 done
14102
14103 ac_aux_dir='$ac_aux_dir'
14104
14105 # See if we are running on zsh, and set the options that allow our
14106 # commands through without removal of \ escapes INIT.
14107 if test -n "\${ZSH_VERSION+set}"; then
14108 setopt NO_GLOB_SUBST
14109 fi
14110
14111
14112 PACKAGE='$PACKAGE'
14113 VERSION='$VERSION'
14114 RM='$RM'
14115 ofile='$ofile'
14116
14117
14118
14119
14120 _ACEOF
14121
14122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14123
14124 # Handling of arguments.
14125 for ac_config_target in $ac_config_targets
14126 do
14127 case $ac_config_target in
14128 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14129 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14130 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14131 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14132 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14133 "tests/diag/Makefile") CONFIG_FILES="$CONFIG_FILES tests/diag/Makefile" ;;
14134 "tests/fail/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fail/Makefile" ;;
14135 "tests/ok/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ok/Makefile" ;;
14136 "tests/ok/ok-hash/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ok/ok-hash/Makefile" ;;
14137 "tests/ok/ok-numeric/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ok/ok-numeric/Makefile" ;;
14138 "tests/ok/ok/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ok/ok/Makefile" ;;
14139 "tests/pass/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pass/Makefile" ;;
14140 "tests/plan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/Makefile" ;;
14141 "tests/plan/no-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/no-tests/Makefile" ;;
14142 "tests/plan/no_plan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/no_plan/Makefile" ;;
14143 "tests/plan/not-enough-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/not-enough-tests/Makefile" ;;
14144 "tests/plan/sane/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/sane/Makefile" ;;
14145 "tests/plan/skip_all/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/skip_all/Makefile" ;;
14146 "tests/plan/too-many-plans/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/too-many-plans/Makefile" ;;
14147 "tests/plan/too-many-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plan/too-many-tests/Makefile" ;;
14148 "tests/skip/Makefile") CONFIG_FILES="$CONFIG_FILES tests/skip/Makefile" ;;
14149 "tests/todo/Makefile") CONFIG_FILES="$CONFIG_FILES tests/todo/Makefile" ;;
14150
14151 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
14152 esac
14153 done
14154
14155
14156 # If the user did not use the arguments to specify the items to instantiate,
14157 # then the envvar interface is used. Set only those that are not.
14158 # We use the long form for the default assignment because of an extremely
14159 # bizarre bug on SunOS 4.1.3.
14160 if $ac_need_defaults; then
14161 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
14162 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
14163 fi
14164
14165 # Have a temporary directory for convenience. Make it in the build tree
14166 # simply because there is no reason against having it here, and in addition,
14167 # creating and moving files from /tmp can sometimes cause problems.
14168 # Hook for its removal unless debugging.
14169 # Note that there is a small window in which the directory will not be cleaned:
14170 # after its creation but before its name has been assigned to '$tmp'.
14171 $debug ||
14172 {
14173 tmp= ac_tmp=
14174 trap 'exit_status=$?
14175 : "${ac_tmp:=$tmp}"
14176 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14177 ' 0
14178 trap 'as_fn_exit 1' 1 2 13 15
14179 }
14180 # Create a (secure) tmp directory for tmp files.
14181
14182 {
14183 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14184 test -d "$tmp"
14185 } ||
14186 {
14187 tmp=./conf$$-$RANDOM
14188 (umask 077 && mkdir "$tmp")
14189 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14190 ac_tmp=$tmp
14191
14192 # Set up the scripts for CONFIG_FILES section.
14193 # No need to generate them if there are no CONFIG_FILES.
14194 # This happens for instance with './config.status config.h'.
14195 if test -n "$CONFIG_FILES"; then
14196
14197
14198 ac_cr=`echo X | tr X '\015'`
14199 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14200 # But we know of no other shell where ac_cr would be empty at this
14201 # point, so we can use a bashism as a fallback.
14202 if test "x$ac_cr" = x; then
14203 eval ac_cr=\$\'\\r\'
14204 fi
14205 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14206 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14207 ac_cs_awk_cr='\\r'
14208 else
14209 ac_cs_awk_cr=$ac_cr
14210 fi
14211
14212 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14213 _ACEOF
14214
14215
14216 {
14217 echo "cat >conf$$subs.awk <<_ACEOF" &&
14218 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14219 echo "_ACEOF"
14220 } >conf$$subs.sh ||
14221 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14222 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14223 ac_delim='%!_!# '
14224 for ac_last_try in false false false false false :; do
14225 . ./conf$$subs.sh ||
14226 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14227
14228 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14229 if test $ac_delim_n = $ac_delim_num; then
14230 break
14231 elif $ac_last_try; then
14232 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14233 else
14234 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14235 fi
14236 done
14237 rm -f conf$$subs.sh
14238
14239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14240 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14241 _ACEOF
14242 sed -n '
14243 h
14244 s/^/S["/; s/!.*/"]=/
14245 p
14246 g
14247 s/^[^!]*!//
14248 :repl
14249 t repl
14250 s/'"$ac_delim"'$//
14251 t delim
14252 :nl
14253 h
14254 s/\(.\{148\}\)..*/\1/
14255 t more1
14256 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14257 p
14258 n
14259 b repl
14260 :more1
14261 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14262 p
14263 g
14264 s/.\{148\}//
14265 t nl
14266 :delim
14267 h
14268 s/\(.\{148\}\)..*/\1/
14269 t more2
14270 s/["\\]/\\&/g; s/^/"/; s/$/"/
14271 p
14272 b
14273 :more2
14274 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14275 p
14276 g
14277 s/.\{148\}//
14278 t delim
14279 ' <conf$$subs.awk | sed '
14280 /^[^""]/{
14281 N
14282 s/\n//
14283 }
14284 ' >>$CONFIG_STATUS || ac_write_fail=1
14285 rm -f conf$$subs.awk
14286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14287 _ACAWK
14288 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14289 for (key in S) S_is_set[key] = 1
14290 FS = ""
14291
14292 }
14293 {
14294 line = $ 0
14295 nfields = split(line, field, "@")
14296 substed = 0
14297 len = length(field[1])
14298 for (i = 2; i < nfields; i++) {
14299 key = field[i]
14300 keylen = length(key)
14301 if (S_is_set[key]) {
14302 value = S[key]
14303 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14304 len += length(value) + length(field[++i])
14305 substed = 1
14306 } else
14307 len += 1 + keylen
14308 }
14309
14310 print line
14311 }
14312
14313 _ACAWK
14314 _ACEOF
14315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14316 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14317 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14318 else
14319 cat
14320 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14321 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14322 _ACEOF
14323
14324 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14325 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14326 # trailing colons and then remove the whole line if VPATH becomes empty
14327 # (actually we leave an empty line to preserve line numbers).
14328 if test "x$srcdir" = x.; then
14329 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14330 h
14331 s///
14332 s/^/:/
14333 s/[ ]*$/:/
14334 s/:\$(srcdir):/:/g
14335 s/:\${srcdir}:/:/g
14336 s/:@srcdir@:/:/g
14337 s/^:*//
14338 s/:*$//
14339 x
14340 s/\(=[ ]*\).*/\1/
14341 G
14342 s/\n//
14343 s/^[^=]*=[ ]*$//
14344 }'
14345 fi
14346
14347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14348 fi # test -n "$CONFIG_FILES"
14349
14350
14351 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
14352 shift
14353 for ac_tag
14354 do
14355 case $ac_tag in
14356 :[FHLC]) ac_mode=$ac_tag; continue;;
14357 esac
14358 case $ac_mode$ac_tag in
14359 :[FHL]*:*);;
14360 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
14361 :[FH]-) ac_tag=-:-;;
14362 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14363 esac
14364 ac_save_IFS=$IFS
14365 IFS=:
14366 set x $ac_tag
14367 IFS=$ac_save_IFS
14368 shift
14369 ac_file=$1
14370 shift
14371
14372 case $ac_mode in
14373 :L) ac_source=$1;;
14374 :[FH])
14375 ac_file_inputs=
14376 for ac_f
14377 do
14378 case $ac_f in
14379 -) ac_f="$ac_tmp/stdin";;
14380 *) # Look for the file first in the build tree, then in the source tree
14381 # (if the path is not absolute). The absolute path cannot be DOS-style,
14382 # because $ac_f cannot contain ':'.
14383 test -f "$ac_f" ||
14384 case $ac_f in
14385 [\\/$]*) false;;
14386 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14387 esac ||
14388 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
14389 esac
14390 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14391 as_fn_append ac_file_inputs " '$ac_f'"
14392 done
14393
14394 # Let's still pretend it is 'configure' which instantiates (i.e., don't
14395 # use $as_me), people would be surprised to read:
14396 # /* config.h. Generated by config.status. */
14397 configure_input='Generated from '`
14398 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14399 `' by configure.'
14400 if test x"$ac_file" != x-; then
14401 configure_input="$ac_file. $configure_input"
14402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14403 printf "%s\n" "$as_me: creating $ac_file" >&6;}
14404 fi
14405 # Neutralize special characters interpreted by sed in replacement strings.
14406 case $configure_input in #(
14407 *\&* | *\|* | *\\* )
14408 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
14409 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14410 *) ac_sed_conf_input=$configure_input;;
14411 esac
14412
14413 case $ac_tag in
14414 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14415 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14416 esac
14417 ;;
14418 esac
14419
14420 ac_dir=`$as_dirname -- "$ac_file" ||
14421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14422 X"$ac_file" : 'X\(//\)[^/]' \| \
14423 X"$ac_file" : 'X\(//\)$' \| \
14424 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14425 printf "%s\n" X"$ac_file" |
14426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14427 s//\1/
14428 q
14429 }
14430 /^X\(\/\/\)[^/].*/{
14431 s//\1/
14432 q
14433 }
14434 /^X\(\/\/\)$/{
14435 s//\1/
14436 q
14437 }
14438 /^X\(\/\).*/{
14439 s//\1/
14440 q
14441 }
14442 s/.*/./; q'`
14443 as_dir="$ac_dir"; as_fn_mkdir_p
14444 ac_builddir=.
14445
14446 case "$ac_dir" in
14447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14448 *)
14449 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14450 # A ".." for each directory in $ac_dir_suffix.
14451 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14452 case $ac_top_builddir_sub in
14453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14455 esac ;;
14456 esac
14457 ac_abs_top_builddir=$ac_pwd
14458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14459 # for backward compatibility:
14460 ac_top_builddir=$ac_top_build_prefix
14461
14462 case $srcdir in
14463 .) # We are building in place.
14464 ac_srcdir=.
14465 ac_top_srcdir=$ac_top_builddir_sub
14466 ac_abs_top_srcdir=$ac_pwd ;;
14467 [\\/]* | ?:[\\/]* ) # Absolute name.
14468 ac_srcdir=$srcdir$ac_dir_suffix;
14469 ac_top_srcdir=$srcdir
14470 ac_abs_top_srcdir=$srcdir ;;
14471 *) # Relative name.
14472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14473 ac_top_srcdir=$ac_top_build_prefix$srcdir
14474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14475 esac
14476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14477
14478
14479 case $ac_mode in
14480 :F)
14481 #
14482 # CONFIG_FILE
14483 #
14484
14485 case $INSTALL in
14486 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14487 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14488 esac
14489 ac_MKDIR_P=$MKDIR_P
14490 case $MKDIR_P in
14491 [\\/$]* | ?:[\\/]* ) ;;
14492 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14493 esac
14494 _ACEOF
14495
14496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14497 # If the template does not know about datarootdir, expand it.
14498 # FIXME: This hack should be removed a few years after 2.60.
14499 ac_datarootdir_hack=; ac_datarootdir_seen=
14500 ac_sed_dataroot='
14501 /datarootdir/ {
14502 p
14503 q
14504 }
14505 /@datadir@/p
14506 /@docdir@/p
14507 /@infodir@/p
14508 /@localedir@/p
14509 /@mandir@/p'
14510 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14511 *datarootdir*) ac_datarootdir_seen=yes;;
14512 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14514 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14515 _ACEOF
14516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14517 ac_datarootdir_hack='
14518 s&@datadir@&$datadir&g
14519 s&@docdir@&$docdir&g
14520 s&@infodir@&$infodir&g
14521 s&@localedir@&$localedir&g
14522 s&@mandir@&$mandir&g
14523 s&\\\${datarootdir}&$datarootdir&g' ;;
14524 esac
14525 _ACEOF
14526
14527 # Neutralize VPATH when '$srcdir' = '.'.
14528 # Shell code in configure.ac might set extrasub.
14529 # FIXME: do we really want to maintain this feature?
14530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14531 ac_sed_extra="$ac_vpsub
14532 $extrasub
14533 _ACEOF
14534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14535 :t
14536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14537 s|@configure_input@|$ac_sed_conf_input|;t t
14538 s&@top_builddir@&$ac_top_builddir_sub&;t t
14539 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14540 s&@srcdir@&$ac_srcdir&;t t
14541 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14542 s&@top_srcdir@&$ac_top_srcdir&;t t
14543 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14544 s&@builddir@&$ac_builddir&;t t
14545 s&@abs_builddir@&$ac_abs_builddir&;t t
14546 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14547 s&@INSTALL@&$ac_INSTALL&;t t
14548 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14549 $ac_datarootdir_hack
14550 "
14551 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14552 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14553
14554 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14555 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14556 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14557 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
14559 which seems to be undefined. Please make sure it is defined" >&5
14560 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
14561 which seems to be undefined. Please make sure it is defined" >&2;}
14562
14563 rm -f "$ac_tmp/stdin"
14564 case $ac_file in
14565 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14566 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14567 esac \
14568 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14569 ;;
14570
14571
14572 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14573 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
14574 ;;
14575 esac
14576
14577
14578 case $ac_file$ac_mode in
14579 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14580 # Older Autoconf quotes --file arguments for eval, but not when files
14581 # are listed without --file. Let's play safe and only enable the eval
14582 # if we detect the quoting.
14583 # TODO: see whether this extra hack can be removed once we start
14584 # requiring Autoconf 2.70 or later.
14585 case $CONFIG_FILES in #(
14586 *\'*) :
14587 eval set x "$CONFIG_FILES" ;; #(
14588 *) :
14589 set x $CONFIG_FILES ;; #(
14590 *) :
14591 ;;
14592 esac
14593 shift
14594 # Used to flag and report bootstrapping failures.
14595 am_rc=0
14596 for am_mf
14597 do
14598 # Strip MF so we end up with the name of the file.
14599 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
14600 # Check whether this is an Automake generated Makefile which includes
14601 # dependency-tracking related rules and includes.
14602 # Grep'ing the whole file directly is not great: AIX grep has a line
14603 # limit of 2048, but all sed's we know have understand at least 4000.
14604 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14605 || continue
14606 am_dirpart=`$as_dirname -- "$am_mf" ||
14607 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14608 X"$am_mf" : 'X\(//\)[^/]' \| \
14609 X"$am_mf" : 'X\(//\)$' \| \
14610 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14611 printf "%s\n" X"$am_mf" |
14612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14613 s//\1/
14614 q
14615 }
14616 /^X\(\/\/\)[^/].*/{
14617 s//\1/
14618 q
14619 }
14620 /^X\(\/\/\)$/{
14621 s//\1/
14622 q
14623 }
14624 /^X\(\/\).*/{
14625 s//\1/
14626 q
14627 }
14628 s/.*/./; q'`
14629 am_filepart=`$as_basename -- "$am_mf" ||
14630 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14631 X"$am_mf" : 'X\(//\)$' \| \
14632 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14633 printf "%s\n" X/"$am_mf" |
14634 sed '/^.*\/\([^/][^/]*\)\/*$/{
14635 s//\1/
14636 q
14637 }
14638 /^X\/\(\/\/\)$/{
14639 s//\1/
14640 q
14641 }
14642 /^X\/\(\/\).*/{
14643 s//\1/
14644 q
14645 }
14646 s/.*/./; q'`
14647 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14648 && sed -e '/# am--include-marker/d' "$am_filepart" \
14649 | $MAKE -f - am--depfiles" >&5
14650 (cd "$am_dirpart" \
14651 && sed -e '/# am--include-marker/d' "$am_filepart" \
14652 | $MAKE -f - am--depfiles) >&5 2>&5
14653 ac_status=$?
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } || am_rc=$?
14656 done
14657 if test $am_rc -ne 0; then
14658 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14659 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14660 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14661 for automatic dependency tracking. If GNU make was not used, consider
14662 re-running the configure script with MAKE=\"gmake\" (or whatever is
14663 necessary). You can also try re-running configure with the
14664 '--disable-dependency-tracking' option to at least be able to build
14665 the package (albeit without support for automatic dependency tracking).
14666 See 'config.log' for more details" "$LINENO" 5; }
14667 fi
14668 { am_dirpart=; unset am_dirpart;}
14669 { am_filepart=; unset am_filepart;}
14670 { am_mf=; unset am_mf;}
14671 { am_rc=; unset am_rc;}
14672 rm -f conftest-deps.mk
14673 }
14674 ;;
14675 "libtool":C)
14676
14677 # See if we are running on zsh, and set the options that allow our
14678 # commands through without removal of \ escapes.
14679 if test -n "${ZSH_VERSION+set}"; then
14680 setopt NO_GLOB_SUBST
14681 fi
14682
14683 cfgfile=${ofile}T
14684 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14685 $RM "$cfgfile"
14686
14687 cat <<_LT_EOF >> "$cfgfile"
14688 #! $SHELL
14689 # Generated automatically by $as_me ($PACKAGE) $VERSION
14690 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14691 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14692
14693 # Provide generalized library-building support services.
14694 # Written by Gordon Matzigkeit, 1996
14695
14696 # Copyright (C) 2014 Free Software Foundation, Inc.
14697 # This is free software; see the source for copying conditions. There is NO
14698 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14699
14700 # GNU Libtool is free software; you can redistribute it and/or modify
14701 # it under the terms of the GNU General Public License as published by
14702 # the Free Software Foundation; either version 2 of of the License, or
14703 # (at your option) any later version.
14704 #
14705 # As a special exception to the GNU General Public License, if you
14706 # distribute this file as part of a program or library that is built
14707 # using GNU Libtool, you may include this file under the same
14708 # distribution terms that you use for the rest of that program.
14709 #
14710 # GNU Libtool is distributed in the hope that it will be useful, but
14711 # WITHOUT ANY WARRANTY; without even the implied warranty of
14712 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14713 # GNU General Public License for more details.
14714 #
14715 # You should have received a copy of the GNU General Public License
14716 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14717
14718
14719 # The names of the tagged configurations supported by this script.
14720 available_tags=''
14721
14722 # Configured defaults for sys_lib_dlsearch_path munging.
14723 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14724
14725 # ### BEGIN LIBTOOL CONFIG
14726
14727 # Which release of libtool.m4 was used?
14728 macro_version=$macro_version
14729 macro_revision=$macro_revision
14730
14731 # Whether or not to build shared libraries.
14732 build_libtool_libs=$enable_shared
14733
14734 # Whether or not to build static libraries.
14735 build_old_libs=$enable_static
14736
14737 # What type of objects to build.
14738 pic_mode=$pic_mode
14739
14740 # Whether or not to optimize for fast installation.
14741 fast_install=$enable_fast_install
14742
14743 # Shared archive member basename,for filename based shared library versioning on AIX.
14744 shared_archive_member_spec=$shared_archive_member_spec
14745
14746 # Shell to use when invoking shell scripts.
14747 SHELL=$lt_SHELL
14748
14749 # An echo program that protects backslashes.
14750 ECHO=$lt_ECHO
14751
14752 # The PATH separator for the build system.
14753 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14754
14755 # The host system.
14756 host_alias=$host_alias
14757 host=$host
14758 host_os=$host_os
14759
14760 # The build system.
14761 build_alias=$build_alias
14762 build=$build
14763 build_os=$build_os
14764
14765 # A sed program that does not truncate output.
14766 SED=$lt_SED
14767
14768 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14769 Xsed="\$SED -e 1s/^X//"
14770
14771 # A grep program that handles long lines.
14772 GREP=$lt_GREP
14773
14774 # An ERE matcher.
14775 EGREP=$lt_EGREP
14776
14777 # A literal string matcher.
14778 FGREP=$lt_FGREP
14779
14780 # A BSD- or MS-compatible name lister.
14781 NM=$lt_NM
14782
14783 # Whether we need soft or hard links.
14784 LN_S=$lt_LN_S
14785
14786 # What is the maximum length of a command?
14787 max_cmd_len=$max_cmd_len
14788
14789 # Object file suffix (normally "o").
14790 objext=$ac_objext
14791
14792 # Executable file suffix (normally "").
14793 exeext=$exeext
14794
14795 # whether the shell understands "unset".
14796 lt_unset=$lt_unset
14797
14798 # turn spaces into newlines.
14799 SP2NL=$lt_lt_SP2NL
14800
14801 # turn newlines into spaces.
14802 NL2SP=$lt_lt_NL2SP
14803
14804 # convert \$build file names to \$host format.
14805 to_host_file_cmd=$lt_cv_to_host_file_cmd
14806
14807 # convert \$build files to toolchain format.
14808 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14809
14810 # A file(cmd) program that detects file types.
14811 FILECMD=$lt_FILECMD
14812
14813 # An object symbol dumper.
14814 OBJDUMP=$lt_OBJDUMP
14815
14816 # Method to check whether dependent libraries are shared objects.
14817 deplibs_check_method=$lt_deplibs_check_method
14818
14819 # Command to use when deplibs_check_method = "file_magic".
14820 file_magic_cmd=$lt_file_magic_cmd
14821
14822 # How to find potential files when deplibs_check_method = "file_magic".
14823 file_magic_glob=$lt_file_magic_glob
14824
14825 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14826 want_nocaseglob=$lt_want_nocaseglob
14827
14828 # DLL creation program.
14829 DLLTOOL=$lt_DLLTOOL
14830
14831 # Command to associate shared and link libraries.
14832 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14833
14834 # The archiver.
14835 AR=$lt_AR
14836
14837 # Flags to create an archive (by configure).
14838 lt_ar_flags=$lt_ar_flags
14839
14840 # Flags to create an archive.
14841 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
14842
14843 # How to feed a file listing to the archiver.
14844 archiver_list_spec=$lt_archiver_list_spec
14845
14846 # A symbol stripping program.
14847 STRIP=$lt_STRIP
14848
14849 # Commands used to install an old-style archive.
14850 RANLIB=$lt_RANLIB
14851 old_postinstall_cmds=$lt_old_postinstall_cmds
14852 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14853
14854 # Whether to use a lock for old archive extraction.
14855 lock_old_archive_extraction=$lock_old_archive_extraction
14856
14857 # A C compiler.
14858 LTCC=$lt_CC
14859
14860 # LTCC compiler flags.
14861 LTCFLAGS=$lt_CFLAGS
14862
14863 # Take the output of nm and produce a listing of raw symbols and C names.
14864 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14865
14866 # Transform the output of nm in a proper C declaration.
14867 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14868
14869 # Transform the output of nm into a list of symbols to manually relocate.
14870 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14871
14872 # Transform the output of nm in a C name address pair.
14873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14874
14875 # Transform the output of nm in a C name address pair when lib prefix is needed.
14876 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14877
14878 # The name lister interface.
14879 nm_interface=$lt_lt_cv_nm_interface
14880
14881 # Specify filename containing input files for \$NM.
14882 nm_file_list_spec=$lt_nm_file_list_spec
14883
14884 # The root where to search for dependent libraries,and where our libraries should be installed.
14885 lt_sysroot=$lt_sysroot
14886
14887 # Command to truncate a binary pipe.
14888 lt_truncate_bin=$lt_lt_cv_truncate_bin
14889
14890 # The name of the directory that contains temporary libtool files.
14891 objdir=$objdir
14892
14893 # Used to examine libraries when file_magic_cmd begins with "file".
14894 MAGIC_CMD=$MAGIC_CMD
14895
14896 # Must we lock files when doing compilation?
14897 need_locks=$lt_need_locks
14898
14899 # Manifest tool.
14900 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14901
14902 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14903 DSYMUTIL=$lt_DSYMUTIL
14904
14905 # Tool to change global to local symbols on Mac OS X.
14906 NMEDIT=$lt_NMEDIT
14907
14908 # Tool to manipulate fat objects and archives on Mac OS X.
14909 LIPO=$lt_LIPO
14910
14911 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14912 OTOOL=$lt_OTOOL
14913
14914 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14915 OTOOL64=$lt_OTOOL64
14916
14917 # Old archive suffix (normally "a").
14918 libext=$libext
14919
14920 # Shared library suffix (normally ".so").
14921 shrext_cmds=$lt_shrext_cmds
14922
14923 # The commands to extract the exported symbol list from a shared archive.
14924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14925
14926 # Variables whose values should be saved in libtool wrapper scripts and
14927 # restored at link time.
14928 variables_saved_for_relink=$lt_variables_saved_for_relink
14929
14930 # Do we need the "lib" prefix for modules?
14931 need_lib_prefix=$need_lib_prefix
14932
14933 # Do we need a version for libraries?
14934 need_version=$need_version
14935
14936 # Library versioning type.
14937 version_type=$version_type
14938
14939 # Shared library runtime path variable.
14940 runpath_var=$runpath_var
14941
14942 # Shared library path variable.
14943 shlibpath_var=$shlibpath_var
14944
14945 # Is shlibpath searched before the hard-coded library search path?
14946 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14947
14948 # Format of library name prefix.
14949 libname_spec=$lt_libname_spec
14950
14951 # List of archive names. First name is the real one, the rest are links.
14952 # The last name is the one that the linker finds with -lNAME
14953 library_names_spec=$lt_library_names_spec
14954
14955 # The coded name of the library, if different from the real name.
14956 soname_spec=$lt_soname_spec
14957
14958 # Permission mode override for installation of shared libraries.
14959 install_override_mode=$lt_install_override_mode
14960
14961 # Command to use after installation of a shared archive.
14962 postinstall_cmds=$lt_postinstall_cmds
14963
14964 # Command to use after uninstallation of a shared archive.
14965 postuninstall_cmds=$lt_postuninstall_cmds
14966
14967 # Commands used to finish a libtool library installation in a directory.
14968 finish_cmds=$lt_finish_cmds
14969
14970 # As "finish_cmds", except a single script fragment to be evaled but
14971 # not shown.
14972 finish_eval=$lt_finish_eval
14973
14974 # Whether we should hardcode library paths into libraries.
14975 hardcode_into_libs=$hardcode_into_libs
14976
14977 # Compile-time system search path for libraries.
14978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14979
14980 # Detected run-time system search path for libraries.
14981 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14982
14983 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14984 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14985
14986 # Whether dlopen is supported.
14987 dlopen_support=$enable_dlopen
14988
14989 # Whether dlopen of programs is supported.
14990 dlopen_self=$enable_dlopen_self
14991
14992 # Whether dlopen of statically linked programs is supported.
14993 dlopen_self_static=$enable_dlopen_self_static
14994
14995 # Commands to strip libraries.
14996 old_striplib=$lt_old_striplib
14997 striplib=$lt_striplib
14998
14999
15000 # The linker used to build libraries.
15001 LD=$lt_LD
15002
15003 # How to create reloadable object files.
15004 reload_flag=$lt_reload_flag
15005 reload_cmds=$lt_reload_cmds
15006
15007 # Commands used to build an old-style archive.
15008 old_archive_cmds=$lt_old_archive_cmds
15009
15010 # A language specific compiler.
15011 CC=$lt_compiler
15012
15013 # Is the compiler the GNU compiler?
15014 with_gcc=$GCC
15015
15016 # Compiler flag to turn off builtin functions.
15017 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15018
15019 # Additional compiler flags for building library objects.
15020 pic_flag=$lt_lt_prog_compiler_pic
15021
15022 # How to pass a linker flag through the compiler.
15023 wl=$lt_lt_prog_compiler_wl
15024
15025 # Compiler flag to prevent dynamic linking.
15026 link_static_flag=$lt_lt_prog_compiler_static
15027
15028 # Does compiler simultaneously support -c and -o options?
15029 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15030
15031 # Whether or not to add -lc for building shared libraries.
15032 build_libtool_need_lc=$archive_cmds_need_lc
15033
15034 # Whether or not to disallow shared libs when runtime libs are static.
15035 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15036
15037 # Compiler flag to allow reflexive dlopens.
15038 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15039
15040 # Compiler flag to generate shared objects directly from archives.
15041 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15042
15043 # Whether the compiler copes with passing no objects directly.
15044 compiler_needs_object=$lt_compiler_needs_object
15045
15046 # Create an old-style archive from a shared archive.
15047 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15048
15049 # Create a temporary old-style archive to link instead of a shared archive.
15050 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15051
15052 # Commands used to build a shared archive.
15053 archive_cmds=$lt_archive_cmds
15054 archive_expsym_cmds=$lt_archive_expsym_cmds
15055
15056 # Commands used to build a loadable module if different from building
15057 # a shared archive.
15058 module_cmds=$lt_module_cmds
15059 module_expsym_cmds=$lt_module_expsym_cmds
15060
15061 # Whether we are building with GNU ld or not.
15062 with_gnu_ld=$lt_with_gnu_ld
15063
15064 # Flag that allows shared libraries with undefined symbols to be built.
15065 allow_undefined_flag=$lt_allow_undefined_flag
15066
15067 # Flag that enforces no undefined symbols.
15068 no_undefined_flag=$lt_no_undefined_flag
15069
15070 # Flag to hardcode \$libdir into a binary during linking.
15071 # This must work even if \$libdir does not exist
15072 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15073
15074 # Whether we need a single "-rpath" flag with a separated argument.
15075 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15076
15077 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15078 # DIR into the resulting binary.
15079 hardcode_direct=$hardcode_direct
15080
15081 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15082 # DIR into the resulting binary and the resulting library dependency is
15083 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15084 # library is relocated.
15085 hardcode_direct_absolute=$hardcode_direct_absolute
15086
15087 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15088 # into the resulting binary.
15089 hardcode_minus_L=$hardcode_minus_L
15090
15091 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15092 # into the resulting binary.
15093 hardcode_shlibpath_var=$hardcode_shlibpath_var
15094
15095 # Set to "yes" if building a shared library automatically hardcodes DIR
15096 # into the library and all subsequent libraries and executables linked
15097 # against it.
15098 hardcode_automatic=$hardcode_automatic
15099
15100 # Set to yes if linker adds runtime paths of dependent libraries
15101 # to runtime path list.
15102 inherit_rpath=$inherit_rpath
15103
15104 # Whether libtool must link a program against all its dependency libraries.
15105 link_all_deplibs=$link_all_deplibs
15106
15107 # Set to "yes" if exported symbols are required.
15108 always_export_symbols=$always_export_symbols
15109
15110 # The commands to list exported symbols.
15111 export_symbols_cmds=$lt_export_symbols_cmds
15112
15113 # Symbols that should not be listed in the preloaded symbols.
15114 exclude_expsyms=$lt_exclude_expsyms
15115
15116 # Symbols that must always be exported.
15117 include_expsyms=$lt_include_expsyms
15118
15119 # Commands necessary for linking programs (against libraries) with templates.
15120 prelink_cmds=$lt_prelink_cmds
15121
15122 # Commands necessary for finishing linking programs.
15123 postlink_cmds=$lt_postlink_cmds
15124
15125 # Specify filename containing input files.
15126 file_list_spec=$lt_file_list_spec
15127
15128 # How to hardcode a shared library path into an executable.
15129 hardcode_action=$hardcode_action
15130
15131 # ### END LIBTOOL CONFIG
15132
15133 _LT_EOF
15134
15135 cat <<'_LT_EOF' >> "$cfgfile"
15136
15137 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15138
15139 # func_munge_path_list VARIABLE PATH
15140 # -----------------------------------
15141 # VARIABLE is name of variable containing _space_ separated list of
15142 # directories to be munged by the contents of PATH, which is string
15143 # having a format:
15144 # "DIR[:DIR]:"
15145 # string "DIR[ DIR]" will be prepended to VARIABLE
15146 # ":DIR[:DIR]"
15147 # string "DIR[ DIR]" will be appended to VARIABLE
15148 # "DIRP[:DIRP]::[DIRA:]DIRA"
15149 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15150 # "DIRA[ DIRA]" will be appended to VARIABLE
15151 # "DIR[:DIR]"
15152 # VARIABLE will be replaced by "DIR[ DIR]"
15153 func_munge_path_list ()
15154 {
15155 case x$2 in
15156 x)
15157 ;;
15158 *:)
15159 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15160 ;;
15161 x:*)
15162 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15163 ;;
15164 *::*)
15165 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15166 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15167 ;;
15168 *)
15169 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15170 ;;
15171 esac
15172 }
15173
15174
15175 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15176 func_cc_basename ()
15177 {
15178 for cc_temp in $*""; do
15179 case $cc_temp in
15180 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15181 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15182 \-*) ;;
15183 *) break;;
15184 esac
15185 done
15186 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15187 }
15188
15189
15190 # ### END FUNCTIONS SHARED WITH CONFIGURE
15191
15192 _LT_EOF
15193
15194 case $host_os in
15195 aix3*)
15196 cat <<\_LT_EOF >> "$cfgfile"
15197 # AIX sometimes has problems with the GCC collect2 program. For some
15198 # reason, if we set the COLLECT_NAMES environment variable, the problems
15199 # vanish in a puff of smoke.
15200 if test set != "${COLLECT_NAMES+set}"; then
15201 COLLECT_NAMES=
15202 export COLLECT_NAMES
15203 fi
15204 _LT_EOF
15205 ;;
15206 esac
15207
15208
15209
15210 ltmain=$ac_aux_dir/ltmain.sh
15211
15212
15213 # We use sed instead of cat because bash on DJGPP gets confused if
15214 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15215 # text mode, it properly converts lines to CR/LF. This bash problem
15216 # is reportedly fixed, but why not run on old versions too?
15217 $SED '$q' "$ltmain" >> "$cfgfile" \
15218 || (rm -f "$cfgfile"; exit 1)
15219
15220 mv -f "$cfgfile" "$ofile" ||
15221 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15222 chmod +x "$ofile"
15223
15224 ;;
15225
15226 esac
15227 done # for ac_tag
15228
15229
15230 as_fn_exit 0
15231 _ACEOF
15232 ac_clean_files=$ac_clean_files_save
15233
15234 test $ac_write_fail = 0 ||
15235 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15236
15237
15238 # configure is writing to config.log, and then calls config.status.
15239 # config.status does its own redirection, appending to config.log.
15240 # Unfortunately, on DOS this fails, as config.log is still kept open
15241 # by configure, so config.status won't be able to write to it; its
15242 # output is simply discarded. So we exec the FD to /dev/null,
15243 # effectively closing config.log, so it can be properly (re)opened and
15244 # appended to by config.status. When coming back to configure, we
15245 # need to make the FD available again.
15246 if test "$no_create" != yes; then
15247 ac_cs_success=:
15248 ac_config_status_args=
15249 test "$silent" = yes &&
15250 ac_config_status_args="$ac_config_status_args --quiet"
15251 exec 5>/dev/null
15252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15253 exec 5>>config.log
15254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15255 # would make configure fail if this is the last instruction.
15256 $ac_cs_success || as_fn_exit 1
15257 fi
15258 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15260 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15261 fi
15262
15263