Debian Codegraph @

texk/cjkutils/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 CJK utils (TeX Live) 4.8.5.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and [email protected]
282 $0: about your system, including any error possibly output
283 $0: before this message. Then install a modern shell, or
284 $0: manually run the script under such a shell if you do
285 $0: have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='CJK utils (TeX Live)'
616 PACKAGE_TARNAME='cjk-utils--tex-live-'
617 PACKAGE_VERSION='4.8.5'
618 PACKAGE_STRING='CJK utils (TeX Live) 4.8.5'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 ac_unique_file="cjkutils-src/hbf2gf/hbf.h"
623 # Factoring default headers for most tests.
624 ac_includes_default="\
625 #include <stddef.h>
626 #ifdef HAVE_STDIO_H
627 # include <stdio.h>
628 #endif
629 #ifdef HAVE_STDLIB_H
630 # include <stdlib.h>
631 #endif
632 #ifdef HAVE_STRING_H
633 # include <string.h>
634 #endif
635 #ifdef HAVE_INTTYPES_H
636 # include <inttypes.h>
637 #endif
638 #ifdef HAVE_STDINT_H
639 # include <stdint.h>
640 #endif
641 #ifdef HAVE_STRINGS_H
642 # include <strings.h>
643 #endif
644 #ifdef HAVE_SYS_TYPES_H
645 # include <sys/types.h>
646 #endif
647 #ifdef HAVE_SYS_STAT_H
648 # include <sys/stat.h>
649 #endif
650 #ifdef HAVE_UNISTD_H
651 # include <unistd.h>
652 #endif"
653
654 ac_header_c_list=
655 ac_func_c_list=
656 enable_year2038=no
657 ac_subst_vars='am__EXEEXT_FALSE
658 am__EXEEXT_TRUE
659 LTLIBOBJS
660 LIBOBJS
661 CJKUTILS_TREE
662 WIN32_FALSE
663 WIN32_TRUE
664 do_cweb_FALSE
665 do_cweb_TRUE
666 TEX
667 CWEAVE
668 CTANGLE
669 KPATHSEA_RULE
670 KPATHSEA_DEPEND
671 KPATHSEA_LIBS
672 KPATHSEA_INCLUDES
673 PKG_CONFIG
674 XX_CPPFLAGS
675 XX_CFLAGS
676 LT_SYS_LIBRARY_PATH
677 OTOOL64
678 OTOOL
679 LIPO
680 NMEDIT
681 DSYMUTIL
682 MANIFEST_TOOL
683 RANLIB
684 FILECMD
685 LN_S
686 NM
687 ac_ct_DUMPBIN
688 DUMPBIN
689 LD
690 FGREP
691 EGREP
692 GREP
693 SED
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 LIBTOOL
703 OBJDUMP
704 DLLTOOL
705 AS
706 ac_ct_AR
707 AR
708 WARNING_CFLAGS
709 am__fastdepCC_FALSE
710 am__fastdepCC_TRUE
711 CCDEPMODE
712 am__nodep
713 AMDEPBACKSLASH
714 AMDEP_FALSE
715 AMDEP_TRUE
716 am__include
717 DEPDIR
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
724 CC
725 MAINT
726 MAINTAINER_MODE_FALSE
727 MAINTAINER_MODE_TRUE
728 am__xargs_n
729 am__rm_f_notfound
730 AM_BACKSLASH
731 AM_DEFAULT_VERBOSITY
732 AM_DEFAULT_V
733 AM_V
734 CSCOPE
735 ETAGS
736 CTAGS
737 am__untar
738 am__tar
739 AMTAR
740 am__leading_dot
741 SET_MAKE
742 AWK
743 mkdir_p
744 MKDIR_P
745 INSTALL_STRIP_PROGRAM
746 STRIP
747 install_sh
748 MAKEINFO
749 AUTOHEADER
750 AUTOMAKE
751 AUTOCONF
752 ACLOCAL
753 VERSION
754 PACKAGE
755 CYGPATH_W
756 am__isrc
757 INSTALL_DATA
758 INSTALL_SCRIPT
759 INSTALL_PROGRAM
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 runstatedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL
799 am__quote'
800 ac_subst_files=''
801 ac_user_opts='
802 enable_option_checking
803 enable_silent_rules
804 enable_maintainer_mode
805 enable_dependency_tracking
806 enable_compiler_warnings
807 enable_shared
808 enable_static
809 enable_pic
810 with_pic
811 enable_fast_install
812 enable_aix_soname
813 with_aix_soname
814 with_gnu_ld
815 with_sysroot
816 enable_libtool_lock
817 enable_largefile
818 with_system_kpathsea
819 enable_year2038
820 '
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
824 CC
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
829 LT_SYS_LIBRARY_PATH'
830
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 runstatedir='${localstatedir}/run'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
890 fi
891
892 case $ac_option in
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
896 esac
897
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
906
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
921
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
926
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: '$ac_useropt'"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
959
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: '$ac_useropt'"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
995
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1000
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1030
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1047
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1104
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
1119 -runstatedir | --runstatedir | --runstatedi | --runstated \
1120 | --runstate | --runstat | --runsta | --runst | --runs \
1121 | --run | --ru | --r)
1122 ac_prev=runstatedir ;;
1123 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1124 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1125 | --run=* | --ru=* | --r=*)
1126 runstatedir=$ac_optarg ;;
1127
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1133
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1144
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1149
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1154
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1161
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1166
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1169
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1172
1173 -with-* | --with-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: '$ac_useropt'"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
1188
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: '$ac_useropt'"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
1204
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1208
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1215
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1222
1223 -*) as_fn_error $? "unrecognized option: '$ac_option'
1224 Try '$0 --help' for more information"
1225 ;;
1226
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1236
1237 *)
1238 # FIXME: should be removed in autoconf 3.0.
1239 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243 ;;
1244
1245 esac
1246 done
1247
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error $? "missing argument to $ac_option"
1251 fi
1252
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 esac
1259 fi
1260
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir runstatedir
1266 do
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
1275 case $ac_val in
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 esac
1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1281
1282 # There might be people who depend on the old broken behavior: '$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1288
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1295 fi
1296 fi
1297
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301 test "$silent" = yes && exec 6>/dev/null
1302
1303
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $? "pwd does not report name of working directory"
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 printf "%s\n" X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\).*/{
1335 s//\1/
1336 q
1337 }
1338 s/.*/./; q'`
1339 srcdir=$ac_confdir
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 srcdir=..
1342 fi
1343 else
1344 ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 fi
1350 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353 pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378 'configure' configures CJK utils (TeX Live) 4.8.5 to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print 'checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for '--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or '..']
1397
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 [PREFIX]
1403
1404 By default, 'make install' will install all the files in
1405 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than '$ac_default_prefix' using '--prefix',
1407 for instance '--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root
1428 [DATAROOTDIR/doc/cjk-utils--tex-live-]
1429 --htmldir=DIR html documentation [DOCDIR]
1430 --dvidir=DIR dvi documentation [DOCDIR]
1431 --pdfdir=DIR pdf documentation [DOCDIR]
1432 --psdir=DIR ps documentation [DOCDIR]
1433 _ACEOF
1434
1435 cat <<\_ACEOF
1436
1437 Program names:
1438 --program-prefix=PREFIX prepend PREFIX to installed program names
1439 --program-suffix=SUFFIX append SUFFIX to installed program names
1440 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1441
1442 System types:
1443 --build=BUILD configure for building on BUILD [guessed]
1444 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1445 _ACEOF
1446 fi
1447
1448 if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive ) echo "Configuration of CJK utils (TeX Live) 4.8.5:";;
1451 esac
1452 cat <<\_ACEOF
1453
1454 Optional Features:
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --enable-silent-rules less verbose build output (undo: "make V=1")
1459 --disable-silent-rules verbose build output (undo: "make V=0")
1460 --enable-maintainer-mode
1461 enable make rules and dependencies not useful (and
1462 sometimes confusing) to the casual installer
1463 --enable-dependency-tracking
1464 do not reject slow dependency extractors
1465 --disable-dependency-tracking
1466 speeds up one-time build
1467 --enable-compiler-warnings=[no|min|yes|max|all]
1468 Turn on compiler warnings [default: yes if
1469 maintainer-mode, min otherwise]
1470 --enable-shared[=PKGS] build shared libraries [default=yes]
1471 --enable-static[=PKGS] build static libraries [default=yes]
1472 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1473 both]
1474 --enable-fast-install[=PKGS]
1475 optimize for fast installation [default=yes]
1476 --enable-aix-soname=aix|svr4|both
1477 shared library versioning (aka "SONAME") variant to
1478 provide on AIX, [default=aix].
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480 --disable-largefile omit support for large files
1481 --enable-year2038 support timestamps after 2038
1482
1483 Optional Packages:
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1487 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1488 compiler's sysroot if not specified).
1489 --with-system-kpathsea use installed kpathsea headers and library (requires
1490 pkg-config)
1491
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1500 LT_SYS_LIBRARY_PATH
1501 User-defined run-time library search path.
1502
1503 Use these variables to override the choices made by 'configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1505
1506 Report bugs to <[email protected]>.
1507 _ACEOF
1508 ac_status=$?
1509 fi
1510
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" ||
1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516 continue
1517 ac_builddir=.
1518
1519 case "$ac_dir" in
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *)
1522 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529 esac
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1534
1535 case $srcdir in
1536 .) # We are building in place.
1537 ac_srcdir=.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 esac
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for configure.gnu first; this name is used for a wrapper for
1553 # Metaconfig's "Configure" on case-insensitive file systems.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 CJK utils (TeX Live) configure 4.8.5
1571 generated by GNU Autoconf 2.72
1572
1573 Copyright (C) 2023 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577 exit
1578 fi
1579
1580 ## ------------------------ ##
1581 ## Autoconf initialization. ##
1582 ## ------------------------ ##
1583
1584 # ac_fn_c_try_compile LINENO
1585 # --------------------------
1586 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_compile ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext conftest.beam
1591 if { { ac_try="$ac_compile"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 printf "%s\n" "$ac_try_echo"; } >&5
1598 (eval "$ac_compile") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1604 fi
1605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest.$ac_objext
1610 then :
1611 ac_retval=0
1612 else case e in #(
1613 e) printf "%s\n" "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1 ;;
1617 esac
1618 fi
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1621
1622 } # ac_fn_c_try_compile
1623
1624 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1625 # -------------------------------------------------------
1626 # Tests whether HEADER exists and can be compiled using the include files in
1627 # INCLUDES, setting the cache variable VAR accordingly.
1628 ac_fn_c_check_header_compile ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632 printf %s "checking for $2... " >&6; }
1633 if eval test \${$3+y}
1634 then :
1635 printf %s "(cached) " >&6
1636 else case e in #(
1637 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h. */
1639 $4
1640 #include <$2>
1641 _ACEOF
1642 if ac_fn_c_try_compile "$LINENO"
1643 then :
1644 eval "$3=yes"
1645 else case e in #(
1646 e) eval "$3=no" ;;
1647 esac
1648 fi
1649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1650 esac
1651 fi
1652 eval ac_res=\$$3
1653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 printf "%s\n" "$ac_res" >&6; }
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657 } # ac_fn_c_check_header_compile
1658
1659 # ac_fn_c_try_link LINENO
1660 # -----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_link ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1666 if { { ac_try="$ac_link"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 printf "%s\n" "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1679 fi
1680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest$ac_exeext && {
1685 test "$cross_compiling" = yes ||
1686 test -x conftest$ac_exeext
1687 }
1688 then :
1689 ac_retval=0
1690 else case e in #(
1691 e) printf "%s\n" "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1 ;;
1695 esac
1696 fi
1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699 # interfere with the next link command; also delete a directory that is
1700 # left behind by Apple's compiler. We do this before executing the actions.
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_link
1706
1707 # ac_fn_c_check_func LINENO FUNC VAR
1708 # ----------------------------------
1709 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1710 ac_fn_c_check_func ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 printf %s "checking for $2... " >&6; }
1715 if eval test \${$3+y}
1716 then :
1717 printf %s "(cached) " >&6
1718 else case e in #(
1719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1721 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1723 #define $2 innocuous_$2
1724
1725 /* System header to define __stub macros and hopefully few prototypes,
1726 which can conflict with char $2 (void); below. */
1727
1728 #include <limits.h>
1729 #undef $2
1730
1731 /* Override any GCC internal prototype to avoid an error.
1732 Use char because int might match the return type of a GCC
1733 builtin and then its argument prototype would still apply. */
1734 #ifdef __cplusplus
1735 extern "C"
1736 #endif
1737 char $2 (void);
1738 /* The GNU C library defines this for functions which it implements
1739 to always fail with ENOSYS. Some functions are actually named
1740 something starting with __ and the normal name is an alias. */
1741 #if defined __stub_$2 || defined __stub___$2
1742 choke me
1743 #endif
1744
1745 int
1746 main (void)
1747 {
1748 return $2 ();
1749 ;
1750 return 0;
1751 }
1752 _ACEOF
1753 if ac_fn_c_try_link "$LINENO"
1754 then :
1755 eval "$3=yes"
1756 else case e in #(
1757 e) eval "$3=no" ;;
1758 esac
1759 fi
1760 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1761 conftest$ac_exeext conftest.$ac_ext ;;
1762 esac
1763 fi
1764 eval ac_res=\$$3
1765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 printf "%s\n" "$ac_res" >&6; }
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768
1769 } # ac_fn_c_check_func
1770
1771 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1772 # -------------------------------------------
1773 # Tests whether TYPE exists after having included INCLUDES, setting cache
1774 # variable VAR accordingly.
1775 ac_fn_c_check_type ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 printf %s "checking for $2... " >&6; }
1780 if eval test \${$3+y}
1781 then :
1782 printf %s "(cached) " >&6
1783 else case e in #(
1784 e) eval "$3=no"
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 $4
1788 int
1789 main (void)
1790 {
1791 if (sizeof ($2))
1792 return 0;
1793 ;
1794 return 0;
1795 }
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"
1798 then :
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1801 $4
1802 int
1803 main (void)
1804 {
1805 if (sizeof (($2)))
1806 return 0;
1807 ;
1808 return 0;
1809 }
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"
1812 then :
1813
1814 else case e in #(
1815 e) eval "$3=yes" ;;
1816 esac
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1821 esac
1822 fi
1823 eval ac_res=\$$3
1824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 printf "%s\n" "$ac_res" >&6; }
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828 } # ac_fn_c_check_type
1829
1830 # ac_fn_c_find_intX_t LINENO BITS VAR
1831 # -----------------------------------
1832 # Finds a signed integer type with width BITS, setting cache variable VAR
1833 # accordingly.
1834 ac_fn_c_find_intX_t ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1838 printf %s "checking for int$2_t... " >&6; }
1839 if eval test \${$3+y}
1840 then :
1841 printf %s "(cached) " >&6
1842 else case e in #(
1843 e) eval "$3=no"
1844 # Order is important - never check a type that is potentially smaller
1845 # than half of the expected target width.
1846 for ac_type in int$2_t 'int' 'long int' \
1847 'long long int' 'short int' 'signed char'; do
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 $ac_includes_default
1851 enum { N = $2 / 2 - 1 };
1852 int
1853 main (void)
1854 {
1855 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1856 test_array [0] = 0;
1857 return test_array [0];
1858
1859 ;
1860 return 0;
1861 }
1862 _ACEOF
1863 if ac_fn_c_try_compile "$LINENO"
1864 then :
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 $ac_includes_default
1868 enum { N = $2 / 2 - 1 };
1869 int
1870 main (void)
1871 {
1872 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1873 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1874 test_array [0] = 0;
1875 return test_array [0];
1876
1877 ;
1878 return 0;
1879 }
1880 _ACEOF
1881 if ac_fn_c_try_compile "$LINENO"
1882 then :
1883
1884 else case e in #(
1885 e) case $ac_type in #(
1886 int$2_t) :
1887 eval "$3=yes" ;; #(
1888 *) :
1889 eval "$3=\$ac_type" ;;
1890 esac ;;
1891 esac
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1896 if eval test \"x\$"$3"\" = x"no"
1897 then :
1898
1899 else case e in #(
1900 e) break ;;
1901 esac
1902 fi
1903 done ;;
1904 esac
1905 fi
1906 eval ac_res=\$$3
1907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908 printf "%s\n" "$ac_res" >&6; }
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910
1911 } # ac_fn_c_find_intX_t
1912
1913 # ac_fn_c_find_uintX_t LINENO BITS VAR
1914 # ------------------------------------
1915 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1916 # accordingly.
1917 ac_fn_c_find_uintX_t ()
1918 {
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1921 printf %s "checking for uint$2_t... " >&6; }
1922 if eval test \${$3+y}
1923 then :
1924 printf %s "(cached) " >&6
1925 else case e in #(
1926 e) eval "$3=no"
1927 # Order is important - never check a type that is potentially smaller
1928 # than half of the expected target width.
1929 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1930 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1933 $ac_includes_default
1934 int
1935 main (void)
1936 {
1937 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1938 test_array [0] = 0;
1939 return test_array [0];
1940
1941 ;
1942 return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"
1946 then :
1947 case $ac_type in #(
1948 uint$2_t) :
1949 eval "$3=yes" ;; #(
1950 *) :
1951 eval "$3=\$ac_type" ;;
1952 esac
1953 fi
1954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1955 if eval test \"x\$"$3"\" = x"no"
1956 then :
1957
1958 else case e in #(
1959 e) break ;;
1960 esac
1961 fi
1962 done ;;
1963 esac
1964 fi
1965 eval ac_res=\$$3
1966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 printf "%s\n" "$ac_res" >&6; }
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969
1970 } # ac_fn_c_find_uintX_t
1971
1972 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1973 # ------------------------------------------------------------------
1974 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1975 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1976 ac_fn_check_decl ()
1977 {
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 as_decl_name=`echo $2|sed 's/ *(.*//'`
1980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1981 printf %s "checking whether $as_decl_name is declared... " >&6; }
1982 if eval test \${$3+y}
1983 then :
1984 printf %s "(cached) " >&6
1985 else case e in #(
1986 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1987 eval ac_save_FLAGS=\$$6
1988 as_fn_append $6 " $5"
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1991 $4
1992 int
1993 main (void)
1994 {
1995 #ifndef $as_decl_name
1996 #ifdef __cplusplus
1997 (void) $as_decl_use;
1998 #else
1999 (void) $as_decl_name;
2000 #endif
2001 #endif
2002
2003 ;
2004 return 0;
2005 }
2006 _ACEOF
2007 if ac_fn_c_try_compile "$LINENO"
2008 then :
2009 eval "$3=yes"
2010 else case e in #(
2011 e) eval "$3=no" ;;
2012 esac
2013 fi
2014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2015 eval $6=\$ac_save_FLAGS
2016 ;;
2017 esac
2018 fi
2019 eval ac_res=\$$3
2020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 printf "%s\n" "$ac_res" >&6; }
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023
2024 } # ac_fn_check_decl
2025
2026 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2027 # ----------------------------------------------------
2028 # Tries to find if the field MEMBER exists in type AGGR, after including
2029 # INCLUDES, setting cache variable VAR accordingly.
2030 ac_fn_c_check_member ()
2031 {
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2034 printf %s "checking for $2.$3... " >&6; }
2035 if eval test \${$4+y}
2036 then :
2037 printf %s "(cached) " >&6
2038 else case e in #(
2039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 $5
2042 int
2043 main (void)
2044 {
2045 static $2 ac_aggr;
2046 if (ac_aggr.$3)
2047 return 0;
2048 ;
2049 return 0;
2050 }
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"
2053 then :
2054 eval "$4=yes"
2055 else case e in #(
2056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 $5
2059 int
2060 main (void)
2061 {
2062 static $2 ac_aggr;
2063 if (sizeof ac_aggr.$3)
2064 return 0;
2065 ;
2066 return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"
2070 then :
2071 eval "$4=yes"
2072 else case e in #(
2073 e) eval "$4=no" ;;
2074 esac
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2077 esac
2078 fi
2079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2080 esac
2081 fi
2082 eval ac_res=\$$4
2083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084 printf "%s\n" "$ac_res" >&6; }
2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086
2087 } # ac_fn_c_check_member
2088 ac_configure_args_raw=
2089 for ac_arg
2090 do
2091 case $ac_arg in
2092 *\'*)
2093 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2094 esac
2095 as_fn_append ac_configure_args_raw " '$ac_arg'"
2096 done
2097
2098 case $ac_configure_args_raw in
2099 *$as_nl*)
2100 ac_safe_unquote= ;;
2101 *)
2102 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2103 ac_unsafe_a="$ac_unsafe_z#~"
2104 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2105 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2106 esac
2107
2108 cat >config.log <<_ACEOF
2109 This file contains any messages produced by compilers while
2110 running configure, to aid debugging if configure makes a mistake.
2111
2112 It was created by CJK utils (TeX Live) $as_me 4.8.5, which was
2113 generated by GNU Autoconf 2.72. Invocation command line was
2114
2115 $ $0$ac_configure_args_raw
2116
2117 _ACEOF
2118 exec 5>>config.log
2119 {
2120 cat <<_ASUNAME
2121 ## --------- ##
2122 ## Platform. ##
2123 ## --------- ##
2124
2125 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2126 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2127 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2128 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2129 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2130
2131 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2132 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2133
2134 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2135 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2136 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2137 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2138 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2139 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2140 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2141
2142 _ASUNAME
2143
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147 IFS=$as_save_IFS
2148 case $as_dir in #(((
2149 '') as_dir=./ ;;
2150 */) ;;
2151 *) as_dir=$as_dir/ ;;
2152 esac
2153 printf "%s\n" "PATH: $as_dir"
2154 done
2155 IFS=$as_save_IFS
2156
2157 } >&5
2158
2159 cat >&5 <<_ACEOF
2160
2161
2162 ## ----------- ##
2163 ## Core tests. ##
2164 ## ----------- ##
2165
2166 _ACEOF
2167
2168
2169 # Keep a trace of the command line.
2170 # Strip out --no-create and --no-recursion so they do not pile up.
2171 # Strip out --silent because we don't want to record it for future runs.
2172 # Also quote any args containing shell meta-characters.
2173 # Make two passes to allow for proper duplicate-argument suppression.
2174 ac_configure_args=
2175 ac_configure_args0=
2176 ac_configure_args1=
2177 ac_must_keep_next=false
2178 for ac_pass in 1 2
2179 do
2180 for ac_arg
2181 do
2182 case $ac_arg in
2183 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2185 | -silent | --silent | --silen | --sile | --sil)
2186 continue ;;
2187 *\'*)
2188 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2189 esac
2190 case $ac_pass in
2191 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2192 2)
2193 as_fn_append ac_configure_args1 " '$ac_arg'"
2194 if test $ac_must_keep_next = true; then
2195 ac_must_keep_next=false # Got value, back to normal.
2196 else
2197 case $ac_arg in
2198 *=* | --config-cache | -C | -disable-* | --disable-* \
2199 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2200 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2201 | -with-* | --with-* | -without-* | --without-* | --x)
2202 case "$ac_configure_args0 " in
2203 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2204 esac
2205 ;;
2206 -* ) ac_must_keep_next=true ;;
2207 esac
2208 fi
2209 as_fn_append ac_configure_args " '$ac_arg'"
2210 ;;
2211 esac
2212 done
2213 done
2214 { ac_configure_args0=; unset ac_configure_args0;}
2215 { ac_configure_args1=; unset ac_configure_args1;}
2216
2217 # When interrupted or exit'd, cleanup temporary files, and complete
2218 # config.log. We remove comments because anyway the quotes in there
2219 # would cause problems or look ugly.
2220 # WARNING: Use '\'' to represent an apostrophe within the trap.
2221 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2222 trap 'exit_status=$?
2223 # Sanitize IFS.
2224 IFS=" "" $as_nl"
2225 # Save into config.log some information that might help in debugging.
2226 {
2227 echo
2228
2229 printf "%s\n" "## ---------------- ##
2230 ## Cache variables. ##
2231 ## ---------------- ##"
2232 echo
2233 # The following way of writing the cache mishandles newlines in values,
2234 (
2235 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2236 eval ac_val=\$$ac_var
2237 case $ac_val in #(
2238 *${as_nl}*)
2239 case $ac_var in #(
2240 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2241 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2242 esac
2243 case $ac_var in #(
2244 _ | IFS | as_nl) ;; #(
2245 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2246 *) { eval $ac_var=; unset $ac_var;} ;;
2247 esac ;;
2248 esac
2249 done
2250 (set) 2>&1 |
2251 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2252 *${as_nl}ac_space=\ *)
2253 sed -n \
2254 "s/'\''/'\''\\\\'\'''\''/g;
2255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2256 ;; #(
2257 *)
2258 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2259 ;;
2260 esac |
2261 sort
2262 )
2263 echo
2264
2265 printf "%s\n" "## ----------------- ##
2266 ## Output variables. ##
2267 ## ----------------- ##"
2268 echo
2269 for ac_var in $ac_subst_vars
2270 do
2271 eval ac_val=\$$ac_var
2272 case $ac_val in
2273 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274 esac
2275 printf "%s\n" "$ac_var='\''$ac_val'\''"
2276 done | sort
2277 echo
2278
2279 if test -n "$ac_subst_files"; then
2280 printf "%s\n" "## ------------------- ##
2281 ## File substitutions. ##
2282 ## ------------------- ##"
2283 echo
2284 for ac_var in $ac_subst_files
2285 do
2286 eval ac_val=\$$ac_var
2287 case $ac_val in
2288 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289 esac
2290 printf "%s\n" "$ac_var='\''$ac_val'\''"
2291 done | sort
2292 echo
2293 fi
2294
2295 if test -s confdefs.h; then
2296 printf "%s\n" "## ----------- ##
2297 ## confdefs.h. ##
2298 ## ----------- ##"
2299 echo
2300 cat confdefs.h
2301 echo
2302 fi
2303 test "$ac_signal" != 0 &&
2304 printf "%s\n" "$as_me: caught signal $ac_signal"
2305 printf "%s\n" "$as_me: exit $exit_status"
2306 } >&5
2307 rm -f core *.core core.conftest.* &&
2308 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2309 exit $exit_status
2310 ' 0
2311 for ac_signal in 1 2 13 15; do
2312 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2313 done
2314 ac_signal=0
2315
2316 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2317 rm -f -r conftest* confdefs.h
2318
2319 printf "%s\n" "/* confdefs.h */" > confdefs.h
2320
2321 # Predefined preprocessor variables.
2322
2323 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2324
2325 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2326
2327 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2328
2329 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2330
2331 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2332
2333 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2334
2335
2336 # Let the site file select an alternate cache file if it wants to.
2337 # Prefer an explicitly selected file to automatically selected ones.
2338 if test -n "$CONFIG_SITE"; then
2339 ac_site_files="$CONFIG_SITE"
2340 elif test "x$prefix" != xNONE; then
2341 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2342 else
2343 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2344 fi
2345
2346 for ac_site_file in $ac_site_files
2347 do
2348 case $ac_site_file in #(
2349 */*) :
2350 ;; #(
2351 *) :
2352 ac_site_file=./$ac_site_file ;;
2353 esac
2354 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2356 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2357 sed 's/^/| /' "$ac_site_file" >&5
2358 . "$ac_site_file" \
2359 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2360 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2361 as_fn_error $? "failed to load site script $ac_site_file
2362 See 'config.log' for more details" "$LINENO" 5; }
2363 fi
2364 done
2365
2366 if test -r "$cache_file"; then
2367 # Some versions of bash will fail to source /dev/null (special files
2368 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2369 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2371 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2372 case $cache_file in
2373 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2374 *) . "./$cache_file";;
2375 esac
2376 fi
2377 else
2378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2379 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2380 >$cache_file
2381 fi
2382
2383 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2384 # Test code for whether the C compiler supports C89 (global declarations)
2385 ac_c_conftest_c89_globals='
2386 /* Does the compiler advertise C89 conformance?
2387 Do not test the value of __STDC__, because some compilers set it to 0
2388 while being otherwise adequately conformant. */
2389 #if !defined __STDC__
2390 # error "Compiler does not advertise C89 conformance"
2391 #endif
2392
2393 #include <stddef.h>
2394 #include <stdarg.h>
2395 struct stat;
2396 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2397 struct buf { int x; };
2398 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2399 static char *e (char **p, int i)
2400 {
2401 return p[i];
2402 }
2403 static char *f (char * (*g) (char **, int), char **p, ...)
2404 {
2405 char *s;
2406 va_list v;
2407 va_start (v,p);
2408 s = g (p, va_arg (v,int));
2409 va_end (v);
2410 return s;
2411 }
2412
2413 /* C89 style stringification. */
2414 #define noexpand_stringify(a) #a
2415 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2416
2417 /* C89 style token pasting. Exercises some of the corner cases that
2418 e.g. old MSVC gets wrong, but not very hard. */
2419 #define noexpand_concat(a,b) a##b
2420 #define expand_concat(a,b) noexpand_concat(a,b)
2421 extern int vA;
2422 extern int vbee;
2423 #define aye A
2424 #define bee B
2425 int *pvA = &expand_concat(v,aye);
2426 int *pvbee = &noexpand_concat(v,bee);
2427
2428 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2429 function prototypes and stuff, but not \xHH hex character constants.
2430 These do not provoke an error unfortunately, instead are silently treated
2431 as an "x". The following induces an error, until -std is added to get
2432 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2433 array size at least. It is necessary to write \x00 == 0 to get something
2434 that is true only with -std. */
2435 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2436
2437 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2438 inside strings and character constants. */
2439 #define FOO(x) '\''x'\''
2440 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2441
2442 int test (int i, double x);
2443 struct s1 {int (*f) (int a);};
2444 struct s2 {int (*f) (double a);};
2445 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2446 int, int);'
2447
2448 # Test code for whether the C compiler supports C89 (body of main).
2449 ac_c_conftest_c89_main='
2450 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2451 '
2452
2453 # Test code for whether the C compiler supports C99 (global declarations)
2454 ac_c_conftest_c99_globals='
2455 /* Does the compiler advertise C99 conformance? */
2456 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2457 # error "Compiler does not advertise C99 conformance"
2458 #endif
2459
2460 // See if C++-style comments work.
2461
2462 #include <stdbool.h>
2463 extern int puts (const char *);
2464 extern int printf (const char *, ...);
2465 extern int dprintf (int, const char *, ...);
2466 extern void *malloc (size_t);
2467 extern void free (void *);
2468
2469 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2470 // dprintf is used instead of fprintf to avoid needing to declare
2471 // FILE and stderr.
2472 #define debug(...) dprintf (2, __VA_ARGS__)
2473 #define showlist(...) puts (#__VA_ARGS__)
2474 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2475 static void
2476 test_varargs_macros (void)
2477 {
2478 int x = 1234;
2479 int y = 5678;
2480 debug ("Flag");
2481 debug ("X = %d\n", x);
2482 showlist (The first, second, and third items.);
2483 report (x>y, "x is %d but y is %d", x, y);
2484 }
2485
2486 // Check long long types.
2487 #define BIG64 18446744073709551615ull
2488 #define BIG32 4294967295ul
2489 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2490 #if !BIG_OK
2491 #error "your preprocessor is broken"
2492 #endif
2493 #if BIG_OK
2494 #else
2495 #error "your preprocessor is broken"
2496 #endif
2497 static long long int bignum = -9223372036854775807LL;
2498 static unsigned long long int ubignum = BIG64;
2499
2500 struct incomplete_array
2501 {
2502 int datasize;
2503 double data[];
2504 };
2505
2506 struct named_init {
2507 int number;
2508 const wchar_t *name;
2509 double average;
2510 };
2511
2512 typedef const char *ccp;
2513
2514 static inline int
2515 test_restrict (ccp restrict text)
2516 {
2517 // Iterate through items via the restricted pointer.
2518 // Also check for declarations in for loops.
2519 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2520 continue;
2521 return 0;
2522 }
2523
2524 // Check varargs and va_copy.
2525 static bool
2526 test_varargs (const char *format, ...)
2527 {
2528 va_list args;
2529 va_start (args, format);
2530 va_list args_copy;
2531 va_copy (args_copy, args);
2532
2533 const char *str = "";
2534 int number = 0;
2535 float fnumber = 0;
2536
2537 while (*format)
2538 {
2539 switch (*format++)
2540 {
2541 case '\''s'\'': // string
2542 str = va_arg (args_copy, const char *);
2543 break;
2544 case '\''d'\'': // int
2545 number = va_arg (args_copy, int);
2546 break;
2547 case '\''f'\'': // float
2548 fnumber = va_arg (args_copy, double);
2549 break;
2550 default:
2551 break;
2552 }
2553 }
2554 va_end (args_copy);
2555 va_end (args);
2556
2557 return *str && number && fnumber;
2558 }
2559 '
2560
2561 # Test code for whether the C compiler supports C99 (body of main).
2562 ac_c_conftest_c99_main='
2563 // Check bool.
2564 _Bool success = false;
2565 success |= (argc != 0);
2566
2567 // Check restrict.
2568 if (test_restrict ("String literal") == 0)
2569 success = true;
2570 char *restrict newvar = "Another string";
2571
2572 // Check varargs.
2573 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2574 test_varargs_macros ();
2575
2576 // Check flexible array members.
2577 struct incomplete_array *ia =
2578 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2579 ia->datasize = 10;
2580 for (int i = 0; i < ia->datasize; ++i)
2581 ia->data[i] = i * 1.234;
2582 // Work around memory leak warnings.
2583 free (ia);
2584
2585 // Check named initializers.
2586 struct named_init ni = {
2587 .number = 34,
2588 .name = L"Test wide string",
2589 .average = 543.34343,
2590 };
2591
2592 ni.number = 58;
2593
2594 int dynamic_array[ni.number];
2595 dynamic_array[0] = argv[0][0];
2596 dynamic_array[ni.number - 1] = 543;
2597
2598 // work around unused variable warnings
2599 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2600 || dynamic_array[ni.number - 1] != 543);
2601 '
2602
2603 # Test code for whether the C compiler supports C11 (global declarations)
2604 ac_c_conftest_c11_globals='
2605 /* Does the compiler advertise C11 conformance? */
2606 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2607 # error "Compiler does not advertise C11 conformance"
2608 #endif
2609
2610 // Check _Alignas.
2611 char _Alignas (double) aligned_as_double;
2612 char _Alignas (0) no_special_alignment;
2613 extern char aligned_as_int;
2614 char _Alignas (0) _Alignas (int) aligned_as_int;
2615
2616 // Check _Alignof.
2617 enum
2618 {
2619 int_alignment = _Alignof (int),
2620 int_array_alignment = _Alignof (int[100]),
2621 char_alignment = _Alignof (char)
2622 };
2623 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2624
2625 // Check _Noreturn.
2626 int _Noreturn does_not_return (void) { for (;;) continue; }
2627
2628 // Check _Static_assert.
2629 struct test_static_assert
2630 {
2631 int x;
2632 _Static_assert (sizeof (int) <= sizeof (long int),
2633 "_Static_assert does not work in struct");
2634 long int y;
2635 };
2636
2637 // Check UTF-8 literals.
2638 #define u8 syntax error!
2639 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2640
2641 // Check duplicate typedefs.
2642 typedef long *long_ptr;
2643 typedef long int *long_ptr;
2644 typedef long_ptr long_ptr;
2645
2646 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2647 struct anonymous
2648 {
2649 union {
2650 struct { int i; int j; };
2651 struct { int k; long int l; } w;
2652 };
2653 int m;
2654 } v1;
2655 '
2656
2657 # Test code for whether the C compiler supports C11 (body of main).
2658 ac_c_conftest_c11_main='
2659 _Static_assert ((offsetof (struct anonymous, i)
2660 == offsetof (struct anonymous, w.k)),
2661 "Anonymous union alignment botch");
2662 v1.i = 2;
2663 v1.w.k = 5;
2664 ok |= v1.i != 5;
2665 '
2666
2667 # Test code for whether the C compiler supports C11 (complete).
2668 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2669 ${ac_c_conftest_c99_globals}
2670 ${ac_c_conftest_c11_globals}
2671
2672 int
2673 main (int argc, char **argv)
2674 {
2675 int ok = 0;
2676 ${ac_c_conftest_c89_main}
2677 ${ac_c_conftest_c99_main}
2678 ${ac_c_conftest_c11_main}
2679 return ok;
2680 }
2681 "
2682
2683 # Test code for whether the C compiler supports C99 (complete).
2684 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2685 ${ac_c_conftest_c99_globals}
2686
2687 int
2688 main (int argc, char **argv)
2689 {
2690 int ok = 0;
2691 ${ac_c_conftest_c89_main}
2692 ${ac_c_conftest_c99_main}
2693 return ok;
2694 }
2695 "
2696
2697 # Test code for whether the C compiler supports C89 (complete).
2698 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2699
2700 int
2701 main (int argc, char **argv)
2702 {
2703 int ok = 0;
2704 ${ac_c_conftest_c89_main}
2705 return ok;
2706 }
2707 "
2708
2709 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2710 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2711 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2712 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2713 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2714 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2715 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2716 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2717 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2718 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2719 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
2720
2721 # Auxiliary files required by this configure script.
2722 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2723
2724 # Locations in which to look for auxiliary files.
2725 ac_aux_dir_candidates="${srcdir}/../../build-aux"
2726
2727 # Search for a directory containing all of the required auxiliary files,
2728 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2729 # If we don't find one directory that contains all the files we need,
2730 # we report the set of missing files from the *first* directory in
2731 # $ac_aux_dir_candidates and give up.
2732 ac_missing_aux_files=""
2733 ac_first_candidate=:
2734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 as_found=false
2737 for as_dir in $ac_aux_dir_candidates
2738 do
2739 IFS=$as_save_IFS
2740 case $as_dir in #(((
2741 '') as_dir=./ ;;
2742 */) ;;
2743 *) as_dir=$as_dir/ ;;
2744 esac
2745 as_found=:
2746
2747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2748 ac_aux_dir_found=yes
2749 ac_install_sh=
2750 for ac_aux in $ac_aux_files
2751 do
2752 # As a special case, if "install-sh" is required, that requirement
2753 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2754 # and $ac_install_sh is set appropriately for whichever one is found.
2755 if test x"$ac_aux" = x"install-sh"
2756 then
2757 if test -f "${as_dir}install-sh"; then
2758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2759 ac_install_sh="${as_dir}install-sh -c"
2760 elif test -f "${as_dir}install.sh"; then
2761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2762 ac_install_sh="${as_dir}install.sh -c"
2763 elif test -f "${as_dir}shtool"; then
2764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2765 ac_install_sh="${as_dir}shtool install -c"
2766 else
2767 ac_aux_dir_found=no
2768 if $ac_first_candidate; then
2769 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2770 else
2771 break
2772 fi
2773 fi
2774 else
2775 if test -f "${as_dir}${ac_aux}"; then
2776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2777 else
2778 ac_aux_dir_found=no
2779 if $ac_first_candidate; then
2780 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2781 else
2782 break
2783 fi
2784 fi
2785 fi
2786 done
2787 if test "$ac_aux_dir_found" = yes; then
2788 ac_aux_dir="$as_dir"
2789 break
2790 fi
2791 ac_first_candidate=false
2792
2793 as_found=false
2794 done
2795 IFS=$as_save_IFS
2796 if $as_found
2797 then :
2798
2799 else case e in #(
2800 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2801 esac
2802 fi
2803
2804
2805 # These three variables are undocumented and unsupported,
2806 # and are intended to be withdrawn in a future Autoconf release.
2807 # They can cause serious problems if a builder's source tree is in a directory
2808 # whose full name contains unusual characters.
2809 if test -f "${ac_aux_dir}config.guess"; then
2810 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2811 fi
2812 if test -f "${ac_aux_dir}config.sub"; then
2813 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2814 fi
2815 if test -f "$ac_aux_dir/configure"; then
2816 ac_configure="$SHELL ${ac_aux_dir}configure"
2817 fi
2818
2819 # Check that the precious variables saved in the cache have kept the same
2820 # value.
2821 ac_cache_corrupted=false
2822 for ac_var in $ac_precious_vars; do
2823 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2824 eval ac_new_set=\$ac_env_${ac_var}_set
2825 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2826 eval ac_new_val=\$ac_env_${ac_var}_value
2827 case $ac_old_set,$ac_new_set in
2828 set,)
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2830 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2831 ac_cache_corrupted=: ;;
2832 ,set)
2833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2834 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2835 ac_cache_corrupted=: ;;
2836 ,);;
2837 *)
2838 if test "x$ac_old_val" != "x$ac_new_val"; then
2839 # differences in whitespace do not lead to failure.
2840 ac_old_val_w=`echo x $ac_old_val`
2841 ac_new_val_w=`echo x $ac_new_val`
2842 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2844 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2845 ac_cache_corrupted=:
2846 else
2847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2848 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2849 eval $ac_var=\$ac_old_val
2850 fi
2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2852 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2854 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2855 fi;;
2856 esac
2857 # Pass precious variables to config.status.
2858 if test "$ac_new_set" = set; then
2859 case $ac_new_val in
2860 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2861 *) ac_arg=$ac_var=$ac_new_val ;;
2862 esac
2863 case " $ac_configure_args " in
2864 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2865 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2866 esac
2867 fi
2868 done
2869 if $ac_cache_corrupted; then
2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2871 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2873 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2874 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2875 and start over" "$LINENO" 5
2876 fi
2877 ## -------------------- ##
2878 ## Main body of script. ##
2879 ## -------------------- ##
2880
2881 ac_ext=c
2882 ac_cpp='$CPP $CPPFLAGS'
2883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2886
2887
2888
2889
2890
2891
2892
2893 am__api_version='1.18'
2894
2895
2896
2897 # Find a good install program. We prefer a C program (faster),
2898 # so one script is as good as another. But avoid the broken or
2899 # incompatible versions:
2900 # SysV /etc/install, /usr/sbin/install
2901 # SunOS /usr/etc/install
2902 # IRIX /sbin/install
2903 # AIX /bin/install
2904 # AmigaOS /C/install, which installs bootblocks on floppy discs
2905 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2906 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2907 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2908 # OS/2's system install, which has a completely different semantic
2909 # ./install, which can be erroneously created by make from ./install.sh.
2910 # Reject install programs that cannot install multiple files.
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2912 printf %s "checking for a BSD-compatible install... " >&6; }
2913 if test -z "$INSTALL"; then
2914 if test ${ac_cv_path_install+y}
2915 then :
2916 printf %s "(cached) " >&6
2917 else case e in #(
2918 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 case $as_dir in #(((
2923 '') as_dir=./ ;;
2924 */) ;;
2925 *) as_dir=$as_dir/ ;;
2926 esac
2927 # Account for fact that we put trailing slashes in our PATH walk.
2928 case $as_dir in #((
2929 ./ | /[cC]/* | \
2930 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2931 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2932 /usr/ucb/* ) ;;
2933 *)
2934 # OSF1 and SCO ODT 3.0 have their own names for install.
2935 # Don't use installbsd from OSF since it installs stuff as root
2936 # by default.
2937 for ac_prog in ginstall scoinst install; do
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2940 if test $ac_prog = install &&
2941 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2942 # AIX install. It has an incompatible calling convention.
2943 :
2944 elif test $ac_prog = install &&
2945 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2946 # program-specific install script used by HP pwplus--don't use.
2947 :
2948 else
2949 rm -rf conftest.one conftest.two conftest.dir
2950 echo one > conftest.one
2951 echo two > conftest.two
2952 mkdir conftest.dir
2953 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2954 test -s conftest.one && test -s conftest.two &&
2955 test -s conftest.dir/conftest.one &&
2956 test -s conftest.dir/conftest.two
2957 then
2958 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2959 break 3
2960 fi
2961 fi
2962 fi
2963 done
2964 done
2965 ;;
2966 esac
2967
2968 done
2969 IFS=$as_save_IFS
2970
2971 rm -rf conftest.one conftest.two conftest.dir
2972 ;;
2973 esac
2974 fi
2975 if test ${ac_cv_path_install+y}; then
2976 INSTALL=$ac_cv_path_install
2977 else
2978 # As a last resort, use the slow shell script. Don't cache a
2979 # value for INSTALL within a source directory, because that will
2980 # break other packages using the cache if that directory is
2981 # removed, or if the value is a relative name.
2982 INSTALL=$ac_install_sh
2983 fi
2984 fi
2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2986 printf "%s\n" "$INSTALL" >&6; }
2987
2988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2989 # It thinks the first close brace ends the variable substitution.
2990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2991
2992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2993
2994 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2995
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2997 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2998 if test ${am_cv_sleep_fractional_seconds+y}
2999 then :
3000 printf %s "(cached) " >&6
3001 else case e in #(
3002 e) if sleep 0.001 2>/dev/null
3003 then :
3004 am_cv_sleep_fractional_seconds=yes
3005 else case e in #(
3006 e) am_cv_sleep_fractional_seconds=no ;;
3007 esac
3008 fi
3009 ;;
3010 esac
3011 fi
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3013 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3014
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3016 printf %s "checking filesystem timestamp resolution... " >&6; }
3017 if test ${am_cv_filesystem_timestamp_resolution+y}
3018 then :
3019 printf %s "(cached) " >&6
3020 else case e in #(
3021 e) # Default to the worst case.
3022 am_cv_filesystem_timestamp_resolution=2
3023
3024 # Only try to go finer than 1 sec if sleep can do it.
3025 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3026 # - 1 sec is not much of a win compared to 2 sec, and
3027 # - it takes 2 seconds to perform the test whether 1 sec works.
3028 #
3029 # Instead, just use the default 2s on platforms that have 1s resolution,
3030 # accept the extra 1s delay when using $sleep in the Automake tests, in
3031 # exchange for not incurring the 2s delay for running the test for all
3032 # packages.
3033 #
3034 am_try_resolutions=
3035 if test "$am_cv_sleep_fractional_seconds" = yes; then
3036 # Even a millisecond often causes a bunch of false positives,
3037 # so just try a hundredth of a second. The time saved between .001 and
3038 # .01 is not terribly consequential.
3039 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3040 fi
3041
3042 # In order to catch current-generation FAT out, we must *modify* files
3043 # that already exist; the *creation* timestamp is finer. Use names
3044 # that make ls -t sort them differently when they have equal
3045 # timestamps than when they have distinct timestamps, keeping
3046 # in mind that ls -t prints the *newest* file first.
3047 rm -f conftest.ts?
3048 : > conftest.ts1
3049 : > conftest.ts2
3050 : > conftest.ts3
3051
3052 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3053 # clobber the current shell's arguments. (Outer-level square brackets
3054 # are removed by m4; they're present so that m4 does not expand
3055 # <dollar><star>; be careful, easy to get confused.)
3056 if (
3057 set X `ls -t conftest.ts[12]` &&
3058 {
3059 test "$*" != "X conftest.ts1 conftest.ts2" ||
3060 test "$*" != "X conftest.ts2 conftest.ts1";
3061 }
3062 ); then :; else
3063 # If neither matched, then we have a broken ls. This can happen
3064 # if, for instance, CONFIG_SHELL is bash and it inherits a
3065 # broken ls alias from the environment. This has actually
3066 # happened. Such a system could not be considered "sane".
3067 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3068 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3069 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3070 as_fn_error $? "ls -t produces unexpected output.
3071 Make sure there is not a broken ls alias in your environment.
3072 See 'config.log' for more details" "$LINENO" 5; }
3073 fi
3074
3075 for am_try_res in $am_try_resolutions; do
3076 # Any one fine-grained sleep might happen to cross the boundary
3077 # between two values of a coarser actual resolution, but if we do
3078 # two fine-grained sleeps in a row, at least one of them will fall
3079 # entirely within a coarse interval.
3080 echo alpha > conftest.ts1
3081 sleep $am_try_res
3082 echo beta > conftest.ts2
3083 sleep $am_try_res
3084 echo gamma > conftest.ts3
3085
3086 # We assume that 'ls -t' will make use of high-resolution
3087 # timestamps if the operating system supports them at all.
3088 if (set X `ls -t conftest.ts?` &&
3089 test "$2" = conftest.ts3 &&
3090 test "$3" = conftest.ts2 &&
3091 test "$4" = conftest.ts1); then
3092 #
3093 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3094 # because we don't need to test make.
3095 make_ok=true
3096 if test $am_try_res != 1; then
3097 # But if we've succeeded so far with a subsecond resolution, we
3098 # have one more thing to check: make. It can happen that
3099 # everything else supports the subsecond mtimes, but make doesn't;
3100 # notably on macOS, which ships make 3.81 from 2006 (the last one
3101 # released under GPLv2). https://bugs.gnu.org/68808
3102 #
3103 # We test $MAKE if it is defined in the environment, else "make".
3104 # It might get overridden later, but our hope is that in practice
3105 # it does not matter: it is the system "make" which is (by far)
3106 # the most likely to be broken, whereas if the user overrides it,
3107 # probably they did so with a better, or at least not worse, make.
3108 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3109 #
3110 # Create a Makefile (real tab character here):
3111 rm -f conftest.mk
3112 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3113 echo ' touch conftest.ts2' >>conftest.mk
3114 #
3115 # Now, running
3116 # touch conftest.ts1; touch conftest.ts2; make
3117 # should touch ts1 because ts2 is newer. This could happen by luck,
3118 # but most often, it will fail if make's support is insufficient. So
3119 # test for several consecutive successes.
3120 #
3121 # (We reuse conftest.ts[12] because we still want to modify existing
3122 # files, not create new ones, per above.)
3123 n=0
3124 make=${MAKE-make}
3125 until test $n -eq 3; do
3126 echo one > conftest.ts1
3127 sleep $am_try_res
3128 echo two > conftest.ts2 # ts2 should now be newer than ts1
3129 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3130 make_ok=false
3131 break # out of $n loop
3132 fi
3133 n=`expr $n + 1`
3134 done
3135 fi
3136 #
3137 if $make_ok; then
3138 # Everything we know to check worked out, so call this resolution good.
3139 am_cv_filesystem_timestamp_resolution=$am_try_res
3140 break # out of $am_try_res loop
3141 fi
3142 # Otherwise, we'll go on to check the next resolution.
3143 fi
3144 done
3145 rm -f conftest.ts?
3146 # (end _am_filesystem_timestamp_resolution)
3147 ;;
3148 esac
3149 fi
3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3151 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3152
3153 # This check should not be cached, as it may vary across builds of
3154 # different projects.
3155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3156 printf %s "checking whether build environment is sane... " >&6; }
3157 # Reject unsafe characters in $srcdir or the absolute working directory
3158 # name. Accept space and tab only in the latter.
3159 am_lf='
3160 '
3161 case `pwd` in
3162 *[\\\"\#\$\&\'\`$am_lf]*)
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 printf "%s\n" "no" >&6; }
3165 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3166 esac
3167 case $srcdir in
3168 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 printf "%s\n" "no" >&6; }
3171 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3172 esac
3173
3174 # Do 'set' in a subshell so we don't clobber the current shell's
3175 # arguments. Must try -L first in case configure is actually a
3176 # symlink; some systems play weird games with the mod time of symlinks
3177 # (eg FreeBSD returns the mod time of the symlink's containing
3178 # directory).
3179 am_build_env_is_sane=no
3180 am_has_slept=no
3181 rm -f conftest.file
3182 for am_try in 1 2; do
3183 echo "timestamp, slept: $am_has_slept" > conftest.file
3184 if (
3185 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3186 if test "$*" = "X"; then
3187 # -L didn't work.
3188 set X `ls -t "$srcdir/configure" conftest.file`
3189 fi
3190 test "$2" = conftest.file
3191 ); then
3192 am_build_env_is_sane=yes
3193 break
3194 fi
3195 # Just in case.
3196 sleep "$am_cv_filesystem_timestamp_resolution"
3197 am_has_slept=yes
3198 done
3199
3200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3201 printf "%s\n" "$am_build_env_is_sane" >&6; }
3202 if test "$am_build_env_is_sane" = no; then
3203 as_fn_error $? "newly created file is older than distributed files!
3204 Check your system clock" "$LINENO" 5
3205 fi
3206
3207 # If we didn't sleep, we still need to ensure time stamps of config.status and
3208 # generated files are strictly newer.
3209 am_sleep_pid=
3210 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3211 then :
3212
3213 else case e in #(
3214 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3215 am_sleep_pid=$!
3216 ;;
3217 esac
3218 fi
3219
3220 rm -f conftest.file
3221
3222 test "$program_prefix" != NONE &&
3223 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3224 # Use a double $ so make ignores it.
3225 test "$program_suffix" != NONE &&
3226 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3227 # Double any \ or $.
3228 # By default was 's,x,x', remove it if useless.
3229 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3230 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3231
3232
3233 # Expand $ac_aux_dir to an absolute path.
3234 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3235
3236
3237 if test x"${MISSING+set}" != xset; then
3238 MISSING="\${SHELL} '$am_aux_dir/missing'"
3239 fi
3240 # Use eval to expand $SHELL
3241 if eval "$MISSING --is-lightweight"; then
3242 am_missing_run="$MISSING "
3243 else
3244 am_missing_run=
3245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3246 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3247 fi
3248
3249 if test x"${install_sh+set}" != xset; then
3250 case $am_aux_dir in
3251 *\ * | *\ *)
3252 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3253 *)
3254 install_sh="\${SHELL} $am_aux_dir/install-sh"
3255 esac
3256 fi
3257
3258 # Installed binaries are usually stripped using 'strip' when the user
3259 # run "make install-strip". However 'strip' might not be the right
3260 # tool to use in cross-compilation environments, therefore Automake
3261 # will honor the 'STRIP' environment variable to overrule this program.
3262 if test "$cross_compiling" != no; then
3263 if test -n "$ac_tool_prefix"; then
3264 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3265 set dummy ${ac_tool_prefix}strip; ac_word=$2
3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 printf %s "checking for $ac_word... " >&6; }
3268 if test ${ac_cv_prog_STRIP+y}
3269 then :
3270 printf %s "(cached) " >&6
3271 else case e in #(
3272 e) if test -n "$STRIP"; then
3273 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3274 else
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3277 do
3278 IFS=$as_save_IFS
3279 case $as_dir in #(((
3280 '') as_dir=./ ;;
3281 */) ;;
3282 *) as_dir=$as_dir/ ;;
3283 esac
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3286 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3288 break 2
3289 fi
3290 done
3291 done
3292 IFS=$as_save_IFS
3293
3294 fi ;;
3295 esac
3296 fi
3297 STRIP=$ac_cv_prog_STRIP
3298 if test -n "$STRIP"; then
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3300 printf "%s\n" "$STRIP" >&6; }
3301 else
3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 printf "%s\n" "no" >&6; }
3304 fi
3305
3306
3307 fi
3308 if test -z "$ac_cv_prog_STRIP"; then
3309 ac_ct_STRIP=$STRIP
3310 # Extract the first word of "strip", so it can be a program name with args.
3311 set dummy strip; ac_word=$2
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313 printf %s "checking for $ac_word... " >&6; }
3314 if test ${ac_cv_prog_ac_ct_STRIP+y}
3315 then :
3316 printf %s "(cached) " >&6
3317 else case e in #(
3318 e) if test -n "$ac_ct_STRIP"; then
3319 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324 IFS=$as_save_IFS
3325 case $as_dir in #(((
3326 '') as_dir=./ ;;
3327 */) ;;
3328 *) as_dir=$as_dir/ ;;
3329 esac
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_ac_ct_STRIP="strip"
3333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3334 break 2
3335 fi
3336 done
3337 done
3338 IFS=$as_save_IFS
3339
3340 fi ;;
3341 esac
3342 fi
3343 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3344 if test -n "$ac_ct_STRIP"; then
3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3346 printf "%s\n" "$ac_ct_STRIP" >&6; }
3347 else
3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 printf "%s\n" "no" >&6; }
3350 fi
3351
3352 if test "x$ac_ct_STRIP" = x; then
3353 STRIP=":"
3354 else
3355 case $cross_compiling:$ac_tool_warned in
3356 yes:)
3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3358 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3359 ac_tool_warned=yes ;;
3360 esac
3361 STRIP=$ac_ct_STRIP
3362 fi
3363 else
3364 STRIP="$ac_cv_prog_STRIP"
3365 fi
3366
3367 fi
3368 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3369
3370
3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3372 printf %s "checking for a race-free mkdir -p... " >&6; }
3373 if test -z "$MKDIR_P"; then
3374 if test ${ac_cv_path_mkdir+y}
3375 then :
3376 printf %s "(cached) " >&6
3377 else case e in #(
3378 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3380 do
3381 IFS=$as_save_IFS
3382 case $as_dir in #(((
3383 '') as_dir=./ ;;
3384 */) ;;
3385 *) as_dir=$as_dir/ ;;
3386 esac
3387 for ac_prog in mkdir gmkdir; do
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3390 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3391 'mkdir ('*'coreutils) '* | \
3392 *'BusyBox '* | \
3393 'mkdir (fileutils) '4.1*)
3394 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3395 break 3;;
3396 esac
3397 done
3398 done
3399 done
3400 IFS=$as_save_IFS
3401 ;;
3402 esac
3403 fi
3404
3405 test -d ./--version && rmdir ./--version
3406 if test ${ac_cv_path_mkdir+y}; then
3407 MKDIR_P="$ac_cv_path_mkdir -p"
3408 else
3409 # As a last resort, use plain mkdir -p,
3410 # in the hope it doesn't have the bugs of ancient mkdir.
3411 MKDIR_P='mkdir -p'
3412 fi
3413 fi
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3415 printf "%s\n" "$MKDIR_P" >&6; }
3416
3417 for ac_prog in gawk mawk nawk awk
3418 do
3419 # Extract the first word of "$ac_prog", so it can be a program name with args.
3420 set dummy $ac_prog; 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_AWK+y}
3424 then :
3425 printf %s "(cached) " >&6
3426 else case e in #(
3427 e) if test -n "$AWK"; then
3428 ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
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 AWK=$ac_cv_prog_AWK
3453 if test -n "$AWK"; then
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3455 printf "%s\n" "$AWK" >&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 test -n "$AWK" && break
3463 done
3464
3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3466 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3467 set x ${MAKE-make}
3468 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3469 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3470 then :
3471 printf %s "(cached) " >&6
3472 else case e in #(
3473 e) cat >conftest.make <<\_ACEOF
3474 SHELL = /bin/sh
3475 all:
3476 @echo '@@@%%%=$(MAKE)=@@@%%%'
3477 _ACEOF
3478 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3479 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3480 *@@@%%%=?*=@@@%%%*)
3481 eval ac_cv_prog_make_${ac_make}_set=yes;;
3482 *)
3483 eval ac_cv_prog_make_${ac_make}_set=no;;
3484 esac
3485 rm -f conftest.make ;;
3486 esac
3487 fi
3488 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3490 printf "%s\n" "yes" >&6; }
3491 SET_MAKE=
3492 else
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 printf "%s\n" "no" >&6; }
3495 SET_MAKE="MAKE=${MAKE-make}"
3496 fi
3497
3498 rm -rf .tst 2>/dev/null
3499 mkdir .tst 2>/dev/null
3500 if test -d .tst; then
3501 am__leading_dot=.
3502 else
3503 am__leading_dot=_
3504 fi
3505 rmdir .tst 2>/dev/null
3506
3507 AM_DEFAULT_VERBOSITY=1
3508 # Check whether --enable-silent-rules was given.
3509 if test ${enable_silent_rules+y}
3510 then :
3511 enableval=$enable_silent_rules;
3512 fi
3513
3514 am_make=${MAKE-make}
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3516 printf %s "checking whether $am_make supports nested variables... " >&6; }
3517 if test ${am_cv_make_support_nested_variables+y}
3518 then :
3519 printf %s "(cached) " >&6
3520 else case e in #(
3521 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3522 BAR0=false
3523 BAR1=true
3524 V=1
3525 am__doit:
3526 @$(TRUE)
3527 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3528 am_cv_make_support_nested_variables=yes
3529 else
3530 am_cv_make_support_nested_variables=no
3531 fi ;;
3532 esac
3533 fi
3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3535 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3536 AM_BACKSLASH='\'
3537
3538 am__rm_f_notfound=
3539 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3540 then :
3541
3542 else case e in #(
3543 e) am__rm_f_notfound='""' ;;
3544 esac
3545 fi
3546
3547
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3549 printf %s "checking xargs -n works... " >&6; }
3550 if test ${am_cv_xargs_n_works+y}
3551 then :
3552 printf %s "(cached) " >&6
3553 else case e in #(
3554 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3555 3"
3556 then :
3557 am_cv_xargs_n_works=yes
3558 else case e in #(
3559 e) am_cv_xargs_n_works=no ;;
3560 esac
3561 fi ;;
3562 esac
3563 fi
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3565 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3566 if test "$am_cv_xargs_n_works" = yes
3567 then :
3568 am__xargs_n='xargs -n'
3569 else case e in #(
3570 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3571 ;;
3572 esac
3573 fi
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584 DEPDIR="${am__leading_dot}deps"
3585
3586 ac_config_commands="$ac_config_commands depfiles"
3587
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3589 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3590 cat > confinc.mk << 'END'
3591 am__doit:
3592 @echo this is the am__doit target >confinc.out
3593 .PHONY: am__doit
3594 END
3595 am__include="#"
3596 am__quote=
3597 # BSD make does it like this.
3598 echo '.include "confinc.mk" # ignored' > confmf.BSD
3599 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3600 echo 'include confinc.mk # ignored' > confmf.GNU
3601 _am_result=no
3602 for s in GNU BSD; do
3603 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3604 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3605 ac_status=$?
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }
3608 case $?:`cat confinc.out 2>/dev/null` in #(
3609 '0:this is the am__doit target') :
3610 case $s in #(
3611 BSD) :
3612 am__include='.include' am__quote='"' ;; #(
3613 *) :
3614 am__include='include' am__quote='' ;;
3615 esac ;; #(
3616 *) :
3617 ;;
3618 esac
3619 if test "$am__include" != "#"; then
3620 _am_result="yes ($s style)"
3621 break
3622 fi
3623 done
3624 rm -f confinc.* confmf.*
3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3626 printf "%s\n" "${_am_result}" >&6; }
3627
3628 # Check whether --enable-dependency-tracking was given.
3629 if test ${enable_dependency_tracking+y}
3630 then :
3631 enableval=$enable_dependency_tracking;
3632 fi
3633
3634 if test "x$enable_dependency_tracking" != xno; then
3635 am_depcomp="$ac_aux_dir/depcomp"
3636 AMDEPBACKSLASH='\'
3637 am__nodep='_no'
3638 fi
3639 if test "x$enable_dependency_tracking" != xno; then
3640 AMDEP_TRUE=
3641 AMDEP_FALSE='#'
3642 else
3643 AMDEP_TRUE='#'
3644 AMDEP_FALSE=
3645 fi
3646
3647
3648 ac_ext=c
3649 ac_cpp='$CPP $CPPFLAGS'
3650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3653 if test -n "$ac_tool_prefix"; then
3654 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3655 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657 printf %s "checking for $ac_word... " >&6; }
3658 if test ${ac_cv_prog_CC+y}
3659 then :
3660 printf %s "(cached) " >&6
3661 else case e in #(
3662 e) if test -n "$CC"; then
3663 ac_cv_prog_CC="$CC" # Let the user override the test.
3664 else
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH
3667 do
3668 IFS=$as_save_IFS
3669 case $as_dir in #(((
3670 '') as_dir=./ ;;
3671 */) ;;
3672 *) as_dir=$as_dir/ ;;
3673 esac
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3676 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3678 break 2
3679 fi
3680 done
3681 done
3682 IFS=$as_save_IFS
3683
3684 fi ;;
3685 esac
3686 fi
3687 CC=$ac_cv_prog_CC
3688 if test -n "$CC"; then
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3690 printf "%s\n" "$CC" >&6; }
3691 else
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 printf "%s\n" "no" >&6; }
3694 fi
3695
3696
3697 fi
3698 if test -z "$ac_cv_prog_CC"; then
3699 ac_ct_CC=$CC
3700 # Extract the first word of "gcc", so it can be a program name with args.
3701 set dummy gcc; ac_word=$2
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 printf %s "checking for $ac_word... " >&6; }
3704 if test ${ac_cv_prog_ac_ct_CC+y}
3705 then :
3706 printf %s "(cached) " >&6
3707 else case e in #(
3708 e) if test -n "$ac_ct_CC"; then
3709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714 IFS=$as_save_IFS
3715 case $as_dir in #(((
3716 '') as_dir=./ ;;
3717 */) ;;
3718 *) as_dir=$as_dir/ ;;
3719 esac
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3722 ac_cv_prog_ac_ct_CC="gcc"
3723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3724 break 2
3725 fi
3726 done
3727 done
3728 IFS=$as_save_IFS
3729
3730 fi ;;
3731 esac
3732 fi
3733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3734 if test -n "$ac_ct_CC"; then
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3736 printf "%s\n" "$ac_ct_CC" >&6; }
3737 else
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 printf "%s\n" "no" >&6; }
3740 fi
3741
3742 if test "x$ac_ct_CC" = x; then
3743 CC=""
3744 else
3745 case $cross_compiling:$ac_tool_warned in
3746 yes:)
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3748 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3749 ac_tool_warned=yes ;;
3750 esac
3751 CC=$ac_ct_CC
3752 fi
3753 else
3754 CC="$ac_cv_prog_CC"
3755 fi
3756
3757 if test -z "$CC"; then
3758 if test -n "$ac_tool_prefix"; then
3759 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3760 set dummy ${ac_tool_prefix}cc; ac_word=$2
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 printf %s "checking for $ac_word... " >&6; }
3763 if test ${ac_cv_prog_CC+y}
3764 then :
3765 printf %s "(cached) " >&6
3766 else case e in #(
3767 e) if test -n "$CC"; then
3768 ac_cv_prog_CC="$CC" # Let the user override the test.
3769 else
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3772 do
3773 IFS=$as_save_IFS
3774 case $as_dir in #(((
3775 '') as_dir=./ ;;
3776 */) ;;
3777 *) as_dir=$as_dir/ ;;
3778 esac
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3781 ac_cv_prog_CC="${ac_tool_prefix}cc"
3782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3783 break 2
3784 fi
3785 done
3786 done
3787 IFS=$as_save_IFS
3788
3789 fi ;;
3790 esac
3791 fi
3792 CC=$ac_cv_prog_CC
3793 if test -n "$CC"; then
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3795 printf "%s\n" "$CC" >&6; }
3796 else
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798 printf "%s\n" "no" >&6; }
3799 fi
3800
3801
3802 fi
3803 fi
3804 if test -z "$CC"; then
3805 # Extract the first word of "cc", so it can be a program name with args.
3806 set dummy cc; ac_word=$2
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3808 printf %s "checking for $ac_word... " >&6; }
3809 if test ${ac_cv_prog_CC+y}
3810 then :
3811 printf %s "(cached) " >&6
3812 else case e in #(
3813 e) if test -n "$CC"; then
3814 ac_cv_prog_CC="$CC" # Let the user override the test.
3815 else
3816 ac_prog_rejected=no
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3819 do
3820 IFS=$as_save_IFS
3821 case $as_dir in #(((
3822 '') as_dir=./ ;;
3823 */) ;;
3824 *) as_dir=$as_dir/ ;;
3825 esac
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3828 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3829 ac_prog_rejected=yes
3830 continue
3831 fi
3832 ac_cv_prog_CC="cc"
3833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3834 break 2
3835 fi
3836 done
3837 done
3838 IFS=$as_save_IFS
3839
3840 if test $ac_prog_rejected = yes; then
3841 # We found a bogon in the path, so make sure we never use it.
3842 set dummy $ac_cv_prog_CC
3843 shift
3844 if test $# != 0; then
3845 # We chose a different compiler from the bogus one.
3846 # However, it has the same basename, so the bogon will be chosen
3847 # first if we set CC to just the basename; use the full file name.
3848 shift
3849 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3850 fi
3851 fi
3852 fi ;;
3853 esac
3854 fi
3855 CC=$ac_cv_prog_CC
3856 if test -n "$CC"; then
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3858 printf "%s\n" "$CC" >&6; }
3859 else
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 printf "%s\n" "no" >&6; }
3862 fi
3863
3864
3865 fi
3866 if test -z "$CC"; then
3867 if test -n "$ac_tool_prefix"; then
3868 for ac_prog in cl.exe
3869 do
3870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873 printf %s "checking for $ac_word... " >&6; }
3874 if test ${ac_cv_prog_CC+y}
3875 then :
3876 printf %s "(cached) " >&6
3877 else case e in #(
3878 e) if test -n "$CC"; then
3879 ac_cv_prog_CC="$CC" # Let the user override the test.
3880 else
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884 IFS=$as_save_IFS
3885 case $as_dir in #(((
3886 '') as_dir=./ ;;
3887 */) ;;
3888 *) as_dir=$as_dir/ ;;
3889 esac
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3892 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3894 break 2
3895 fi
3896 done
3897 done
3898 IFS=$as_save_IFS
3899
3900 fi ;;
3901 esac
3902 fi
3903 CC=$ac_cv_prog_CC
3904 if test -n "$CC"; then
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3906 printf "%s\n" "$CC" >&6; }
3907 else
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 printf "%s\n" "no" >&6; }
3910 fi
3911
3912
3913 test -n "$CC" && break
3914 done
3915 fi
3916 if test -z "$CC"; then
3917 ac_ct_CC=$CC
3918 for ac_prog in cl.exe
3919 do
3920 # Extract the first word of "$ac_prog", so it can be a program name with args.
3921 set dummy $ac_prog; ac_word=$2
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 printf %s "checking for $ac_word... " >&6; }
3924 if test ${ac_cv_prog_ac_ct_CC+y}
3925 then :
3926 printf %s "(cached) " >&6
3927 else case e in #(
3928 e) if test -n "$ac_ct_CC"; then
3929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3930 else
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH
3933 do
3934 IFS=$as_save_IFS
3935 case $as_dir in #(((
3936 '') as_dir=./ ;;
3937 */) ;;
3938 *) as_dir=$as_dir/ ;;
3939 esac
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3942 ac_cv_prog_ac_ct_CC="$ac_prog"
3943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946 done
3947 done
3948 IFS=$as_save_IFS
3949
3950 fi ;;
3951 esac
3952 fi
3953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3954 if test -n "$ac_ct_CC"; then
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3956 printf "%s\n" "$ac_ct_CC" >&6; }
3957 else
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 printf "%s\n" "no" >&6; }
3960 fi
3961
3962
3963 test -n "$ac_ct_CC" && break
3964 done
3965
3966 if test "x$ac_ct_CC" = x; then
3967 CC=""
3968 else
3969 case $cross_compiling:$ac_tool_warned in
3970 yes:)
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3972 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3973 ac_tool_warned=yes ;;
3974 esac
3975 CC=$ac_ct_CC
3976 fi
3977 fi
3978
3979 fi
3980 if test -z "$CC"; then
3981 if test -n "$ac_tool_prefix"; then
3982 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3983 set dummy ${ac_tool_prefix}clang; ac_word=$2
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985 printf %s "checking for $ac_word... " >&6; }
3986 if test ${ac_cv_prog_CC+y}
3987 then :
3988 printf %s "(cached) " >&6
3989 else case e in #(
3990 e) if test -n "$CC"; then
3991 ac_cv_prog_CC="$CC" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996 IFS=$as_save_IFS
3997 case $as_dir in #(((
3998 '') as_dir=./ ;;
3999 */) ;;
4000 *) as_dir=$as_dir/ ;;
4001 esac
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4004 ac_cv_prog_CC="${ac_tool_prefix}clang"
4005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4006 break 2
4007 fi
4008 done
4009 done
4010 IFS=$as_save_IFS
4011
4012 fi ;;
4013 esac
4014 fi
4015 CC=$ac_cv_prog_CC
4016 if test -n "$CC"; then
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4018 printf "%s\n" "$CC" >&6; }
4019 else
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 printf "%s\n" "no" >&6; }
4022 fi
4023
4024
4025 fi
4026 if test -z "$ac_cv_prog_CC"; then
4027 ac_ct_CC=$CC
4028 # Extract the first word of "clang", so it can be a program name with args.
4029 set dummy clang; ac_word=$2
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031 printf %s "checking for $ac_word... " >&6; }
4032 if test ${ac_cv_prog_ac_ct_CC+y}
4033 then :
4034 printf %s "(cached) " >&6
4035 else case e in #(
4036 e) if test -n "$ac_ct_CC"; then
4037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042 IFS=$as_save_IFS
4043 case $as_dir in #(((
4044 '') as_dir=./ ;;
4045 */) ;;
4046 *) as_dir=$as_dir/ ;;
4047 esac
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4050 ac_cv_prog_ac_ct_CC="clang"
4051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4052 break 2
4053 fi
4054 done
4055 done
4056 IFS=$as_save_IFS
4057
4058 fi ;;
4059 esac
4060 fi
4061 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4062 if test -n "$ac_ct_CC"; then
4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4064 printf "%s\n" "$ac_ct_CC" >&6; }
4065 else
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 printf "%s\n" "no" >&6; }
4068 fi
4069
4070 if test "x$ac_ct_CC" = x; then
4071 CC=""
4072 else
4073 case $cross_compiling:$ac_tool_warned in
4074 yes:)
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4076 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4077 ac_tool_warned=yes ;;
4078 esac
4079 CC=$ac_ct_CC
4080 fi
4081 else
4082 CC="$ac_cv_prog_CC"
4083 fi
4084
4085 fi
4086
4087
4088 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4089 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4090 as_fn_error $? "no acceptable C compiler found in \$PATH
4091 See 'config.log' for more details" "$LINENO" 5; }
4092
4093 # Provide some information about the compiler.
4094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4095 set X $ac_compile
4096 ac_compiler=$2
4097 for ac_option in --version -v -V -qversion -version; do
4098 { { ac_try="$ac_compiler $ac_option >&5"
4099 case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 printf "%s\n" "$ac_try_echo"; } >&5
4105 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4106 ac_status=$?
4107 if test -s conftest.err; then
4108 sed '10a\
4109 ... rest of stderr output deleted ...
4110 10q' conftest.err >conftest.er1
4111 cat conftest.er1 >&5
4112 fi
4113 rm -f conftest.er1 conftest.err
4114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4115 test $ac_status = 0; }
4116 done
4117
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120
4121 int
4122 main (void)
4123 {
4124
4125 ;
4126 return 0;
4127 }
4128 _ACEOF
4129 ac_clean_files_save=$ac_clean_files
4130 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4131 # Try to create an executable without -o first, disregard a.out.
4132 # It will help us diagnose broken compilers, and finding out an intuition
4133 # of exeext.
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4135 printf %s "checking whether the C compiler works... " >&6; }
4136 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4137
4138 # The possible output files:
4139 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4140
4141 ac_rmfiles=
4142 for ac_file in $ac_files
4143 do
4144 case $ac_file in
4145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4146 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4147 esac
4148 done
4149 rm -f $ac_rmfiles
4150
4151 if { { ac_try="$ac_link_default"
4152 case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155 esac
4156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4157 printf "%s\n" "$ac_try_echo"; } >&5
4158 (eval "$ac_link_default") 2>&5
4159 ac_status=$?
4160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161 test $ac_status = 0; }
4162 then :
4163 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4164 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4165 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4166 # so that the user can short-circuit this test for compilers unknown to
4167 # Autoconf.
4168 for ac_file in $ac_files ''
4169 do
4170 test -f "$ac_file" || continue
4171 case $ac_file in
4172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4173 ;;
4174 [ab].out )
4175 # We found the default executable, but exeext='' is most
4176 # certainly right.
4177 break;;
4178 *.* )
4179 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4180 then :; else
4181 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4182 fi
4183 # We set ac_cv_exeext here because the later test for it is not
4184 # safe: cross compilers may not add the suffix if given an '-o'
4185 # argument, so we may need to know it at that point already.
4186 # Even if this section looks crufty: it has the advantage of
4187 # actually working.
4188 break;;
4189 * )
4190 break;;
4191 esac
4192 done
4193 test "$ac_cv_exeext" = no && ac_cv_exeext=
4194
4195 else case e in #(
4196 e) ac_file='' ;;
4197 esac
4198 fi
4199 if test -z "$ac_file"
4200 then :
4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 printf "%s\n" "no" >&6; }
4203 printf "%s\n" "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4205
4206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4207 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4208 as_fn_error 77 "C compiler cannot create executables
4209 See 'config.log' for more details" "$LINENO" 5; }
4210 else case e in #(
4211 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4212 printf "%s\n" "yes" >&6; } ;;
4213 esac
4214 fi
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4216 printf %s "checking for C compiler default output file name... " >&6; }
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4218 printf "%s\n" "$ac_file" >&6; }
4219 ac_exeext=$ac_cv_exeext
4220
4221 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4222 ac_clean_files=$ac_clean_files_save
4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4224 printf %s "checking for suffix of executables... " >&6; }
4225 if { { ac_try="$ac_link"
4226 case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229 esac
4230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4231 printf "%s\n" "$ac_try_echo"; } >&5
4232 (eval "$ac_link") 2>&5
4233 ac_status=$?
4234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4235 test $ac_status = 0; }
4236 then :
4237 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4238 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4239 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4240 # 'rm'.
4241 for ac_file in conftest.exe conftest conftest.*; do
4242 test -f "$ac_file" || continue
4243 case $ac_file in
4244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4245 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4246 break;;
4247 * ) break;;
4248 esac
4249 done
4250 else case e in #(
4251 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4252 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4253 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4254 See 'config.log' for more details" "$LINENO" 5; } ;;
4255 esac
4256 fi
4257 rm -f conftest conftest$ac_cv_exeext
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4259 printf "%s\n" "$ac_cv_exeext" >&6; }
4260
4261 rm -f conftest.$ac_ext
4262 EXEEXT=$ac_cv_exeext
4263 ac_exeext=$EXEEXT
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4266 #include <stdio.h>
4267 int
4268 main (void)
4269 {
4270 FILE *f = fopen ("conftest.out", "w");
4271 if (!f)
4272 return 1;
4273 return ferror (f) || fclose (f) != 0;
4274
4275 ;
4276 return 0;
4277 }
4278 _ACEOF
4279 ac_clean_files="$ac_clean_files conftest.out"
4280 # Check that the compiler produces executables we can run. If not, either
4281 # the compiler is broken, or we cross compile.
4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4283 printf %s "checking whether we are cross compiling... " >&6; }
4284 if test "$cross_compiling" != yes; then
4285 { { ac_try="$ac_link"
4286 case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289 esac
4290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291 printf "%s\n" "$ac_try_echo"; } >&5
4292 (eval "$ac_link") 2>&5
4293 ac_status=$?
4294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295 test $ac_status = 0; }
4296 if { ac_try='./conftest$ac_cv_exeext'
4297 { { case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4300 esac
4301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4302 printf "%s\n" "$ac_try_echo"; } >&5
4303 (eval "$ac_try") 2>&5
4304 ac_status=$?
4305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4306 test $ac_status = 0; }; }; then
4307 cross_compiling=no
4308 else
4309 if test "$cross_compiling" = maybe; then
4310 cross_compiling=yes
4311 else
4312 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4313 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4314 as_fn_error 77 "cannot run C compiled programs.
4315 If you meant to cross compile, use '--host'.
4316 See 'config.log' for more details" "$LINENO" 5; }
4317 fi
4318 fi
4319 fi
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4321 printf "%s\n" "$cross_compiling" >&6; }
4322
4323 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4324 conftest.o conftest.obj conftest.out
4325 ac_clean_files=$ac_clean_files_save
4326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4327 printf %s "checking for suffix of object files... " >&6; }
4328 if test ${ac_cv_objext+y}
4329 then :
4330 printf %s "(cached) " >&6
4331 else case e in #(
4332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334
4335 int
4336 main (void)
4337 {
4338
4339 ;
4340 return 0;
4341 }
4342 _ACEOF
4343 rm -f conftest.o conftest.obj
4344 if { { ac_try="$ac_compile"
4345 case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348 esac
4349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350 printf "%s\n" "$ac_try_echo"; } >&5
4351 (eval "$ac_compile") 2>&5
4352 ac_status=$?
4353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354 test $ac_status = 0; }
4355 then :
4356 for ac_file in conftest.o conftest.obj conftest.*; do
4357 test -f "$ac_file" || continue;
4358 case $ac_file in
4359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4360 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4361 break;;
4362 esac
4363 done
4364 else case e in #(
4365 e) printf "%s\n" "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4367
4368 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4369 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4370 as_fn_error $? "cannot compute suffix of object files: cannot compile
4371 See 'config.log' for more details" "$LINENO" 5; } ;;
4372 esac
4373 fi
4374 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4375 esac
4376 fi
4377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4378 printf "%s\n" "$ac_cv_objext" >&6; }
4379 OBJEXT=$ac_cv_objext
4380 ac_objext=$OBJEXT
4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4382 printf %s "checking whether the compiler supports GNU C... " >&6; }
4383 if test ${ac_cv_c_compiler_gnu+y}
4384 then :
4385 printf %s "(cached) " >&6
4386 else case e in #(
4387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389
4390 int
4391 main (void)
4392 {
4393 #ifndef __GNUC__
4394 choke me
4395 #endif
4396
4397 ;
4398 return 0;
4399 }
4400 _ACEOF
4401 if ac_fn_c_try_compile "$LINENO"
4402 then :
4403 ac_compiler_gnu=yes
4404 else case e in #(
4405 e) ac_compiler_gnu=no ;;
4406 esac
4407 fi
4408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4410 ;;
4411 esac
4412 fi
4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4414 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416
4417 if test $ac_compiler_gnu = yes; then
4418 GCC=yes
4419 else
4420 GCC=
4421 fi
4422 ac_test_CFLAGS=${CFLAGS+y}
4423 ac_save_CFLAGS=$CFLAGS
4424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4425 printf %s "checking whether $CC accepts -g... " >&6; }
4426 if test ${ac_cv_prog_cc_g+y}
4427 then :
4428 printf %s "(cached) " >&6
4429 else case e in #(
4430 e) ac_save_c_werror_flag=$ac_c_werror_flag
4431 ac_c_werror_flag=yes
4432 ac_cv_prog_cc_g=no
4433 CFLAGS="-g"
4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4436
4437 int
4438 main (void)
4439 {
4440
4441 ;
4442 return 0;
4443 }
4444 _ACEOF
4445 if ac_fn_c_try_compile "$LINENO"
4446 then :
4447 ac_cv_prog_cc_g=yes
4448 else case e in #(
4449 e) CFLAGS=""
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4452
4453 int
4454 main (void)
4455 {
4456
4457 ;
4458 return 0;
4459 }
4460 _ACEOF
4461 if ac_fn_c_try_compile "$LINENO"
4462 then :
4463
4464 else case e in #(
4465 e) ac_c_werror_flag=$ac_save_c_werror_flag
4466 CFLAGS="-g"
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4469
4470 int
4471 main (void)
4472 {
4473
4474 ;
4475 return 0;
4476 }
4477 _ACEOF
4478 if ac_fn_c_try_compile "$LINENO"
4479 then :
4480 ac_cv_prog_cc_g=yes
4481 fi
4482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4483 esac
4484 fi
4485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4486 esac
4487 fi
4488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4489 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4490 esac
4491 fi
4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4493 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4494 if test $ac_test_CFLAGS; then
4495 CFLAGS=$ac_save_CFLAGS
4496 elif test $ac_cv_prog_cc_g = yes; then
4497 if test "$GCC" = yes; then
4498 CFLAGS="-g -O2"
4499 else
4500 CFLAGS="-g"
4501 fi
4502 else
4503 if test "$GCC" = yes; then
4504 CFLAGS="-O2"
4505 else
4506 CFLAGS=
4507 fi
4508 fi
4509 ac_prog_cc_stdc=no
4510 if test x$ac_prog_cc_stdc = xno
4511 then :
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4513 printf %s "checking for $CC option to enable C11 features... " >&6; }
4514 if test ${ac_cv_prog_cc_c11+y}
4515 then :
4516 printf %s "(cached) " >&6
4517 else case e in #(
4518 e) ac_cv_prog_cc_c11=no
4519 ac_save_CC=$CC
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4522 $ac_c_conftest_c11_program
4523 _ACEOF
4524 for ac_arg in '' -std=gnu11
4525 do
4526 CC="$ac_save_CC $ac_arg"
4527 if ac_fn_c_try_compile "$LINENO"
4528 then :
4529 ac_cv_prog_cc_c11=$ac_arg
4530 fi
4531 rm -f core conftest.err conftest.$ac_objext conftest.beam
4532 test "x$ac_cv_prog_cc_c11" != "xno" && break
4533 done
4534 rm -f conftest.$ac_ext
4535 CC=$ac_save_CC ;;
4536 esac
4537 fi
4538
4539 if test "x$ac_cv_prog_cc_c11" = xno
4540 then :
4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4542 printf "%s\n" "unsupported" >&6; }
4543 else case e in #(
4544 e) if test "x$ac_cv_prog_cc_c11" = x
4545 then :
4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4547 printf "%s\n" "none needed" >&6; }
4548 else case e in #(
4549 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4550 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4551 CC="$CC $ac_cv_prog_cc_c11" ;;
4552 esac
4553 fi
4554 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4555 ac_prog_cc_stdc=c11 ;;
4556 esac
4557 fi
4558 fi
4559 if test x$ac_prog_cc_stdc = xno
4560 then :
4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4562 printf %s "checking for $CC option to enable C99 features... " >&6; }
4563 if test ${ac_cv_prog_cc_c99+y}
4564 then :
4565 printf %s "(cached) " >&6
4566 else case e in #(
4567 e) ac_cv_prog_cc_c99=no
4568 ac_save_CC=$CC
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4571 $ac_c_conftest_c99_program
4572 _ACEOF
4573 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4574 do
4575 CC="$ac_save_CC $ac_arg"
4576 if ac_fn_c_try_compile "$LINENO"
4577 then :
4578 ac_cv_prog_cc_c99=$ac_arg
4579 fi
4580 rm -f core conftest.err conftest.$ac_objext conftest.beam
4581 test "x$ac_cv_prog_cc_c99" != "xno" && break
4582 done
4583 rm -f conftest.$ac_ext
4584 CC=$ac_save_CC ;;
4585 esac
4586 fi
4587
4588 if test "x$ac_cv_prog_cc_c99" = xno
4589 then :
4590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4591 printf "%s\n" "unsupported" >&6; }
4592 else case e in #(
4593 e) if test "x$ac_cv_prog_cc_c99" = x
4594 then :
4595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4596 printf "%s\n" "none needed" >&6; }
4597 else case e in #(
4598 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4599 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4600 CC="$CC $ac_cv_prog_cc_c99" ;;
4601 esac
4602 fi
4603 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4604 ac_prog_cc_stdc=c99 ;;
4605 esac
4606 fi
4607 fi
4608 if test x$ac_prog_cc_stdc = xno
4609 then :
4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4611 printf %s "checking for $CC option to enable C89 features... " >&6; }
4612 if test ${ac_cv_prog_cc_c89+y}
4613 then :
4614 printf %s "(cached) " >&6
4615 else case e in #(
4616 e) ac_cv_prog_cc_c89=no
4617 ac_save_CC=$CC
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4620 $ac_c_conftest_c89_program
4621 _ACEOF
4622 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4623 do
4624 CC="$ac_save_CC $ac_arg"
4625 if ac_fn_c_try_compile "$LINENO"
4626 then :
4627 ac_cv_prog_cc_c89=$ac_arg
4628 fi
4629 rm -f core conftest.err conftest.$ac_objext conftest.beam
4630 test "x$ac_cv_prog_cc_c89" != "xno" && break
4631 done
4632 rm -f conftest.$ac_ext
4633 CC=$ac_save_CC ;;
4634 esac
4635 fi
4636
4637 if test "x$ac_cv_prog_cc_c89" = xno
4638 then :
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4640 printf "%s\n" "unsupported" >&6; }
4641 else case e in #(
4642 e) if test "x$ac_cv_prog_cc_c89" = x
4643 then :
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4645 printf "%s\n" "none needed" >&6; }
4646 else case e in #(
4647 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4648 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4649 CC="$CC $ac_cv_prog_cc_c89" ;;
4650 esac
4651 fi
4652 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4653 ac_prog_cc_stdc=c89 ;;
4654 esac
4655 fi
4656 fi
4657
4658 ac_ext=c
4659 ac_cpp='$CPP $CPPFLAGS'
4660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4663
4664
4665 ac_ext=c
4666 ac_cpp='$CPP $CPPFLAGS'
4667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4671 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4672 if test ${am_cv_prog_cc_c_o+y}
4673 then :
4674 printf %s "(cached) " >&6
4675 else case e in #(
4676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4678
4679 int
4680 main (void)
4681 {
4682
4683 ;
4684 return 0;
4685 }
4686 _ACEOF
4687 # Make sure it works both with $CC and with simple cc.
4688 # Following AC_PROG_CC_C_O, we do the test twice because some
4689 # compilers refuse to overwrite an existing .o file with -o,
4690 # though they will create one.
4691 am_cv_prog_cc_c_o=yes
4692 for am_i in 1 2; do
4693 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4694 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } \
4698 && test -f conftest2.$ac_objext; then
4699 : OK
4700 else
4701 am_cv_prog_cc_c_o=no
4702 break
4703 fi
4704 done
4705 # aligned with autoconf, so not including core; see bug#72225.
4706 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4707 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4708 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4709 unset am_i ;;
4710 esac
4711 fi
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4713 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4714 if test "$am_cv_prog_cc_c_o" != yes; then
4715 # Losing compiler, so override with the script.
4716 # FIXME: It is wrong to rewrite CC.
4717 # But if we don't then we get into trouble of one sort or another.
4718 # A longer-term fix would be to have automake use am__CC in this case,
4719 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4720 CC="$am_aux_dir/compile $CC"
4721 fi
4722 ac_ext=c
4723 ac_cpp='$CPP $CPPFLAGS'
4724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4727
4728
4729 depcc="$CC" am_compiler_list=
4730
4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4732 printf %s "checking dependency style of $depcc... " >&6; }
4733 if test ${am_cv_CC_dependencies_compiler_type+y}
4734 then :
4735 printf %s "(cached) " >&6
4736 else case e in #(
4737 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4738 # We make a subdir and do the tests there. Otherwise we can end up
4739 # making bogus files that we don't know about and never remove. For
4740 # instance it was reported that on HP-UX the gcc test will end up
4741 # making a dummy file named 'D' -- because '-MD' means "put the output
4742 # in D".
4743 rm -rf conftest.dir
4744 mkdir conftest.dir
4745 # Copy depcomp to subdir because otherwise we won't find it if we're
4746 # using a relative directory.
4747 cp "$am_depcomp" conftest.dir
4748 cd conftest.dir
4749 # We will build objects and dependencies in a subdirectory because
4750 # it helps to detect inapplicable dependency modes. For instance
4751 # both Tru64's cc and ICC support -MD to output dependencies as a
4752 # side effect of compilation, but ICC will put the dependencies in
4753 # the current directory while Tru64 will put them in the object
4754 # directory.
4755 mkdir sub
4756
4757 am_cv_CC_dependencies_compiler_type=none
4758 if test "$am_compiler_list" = ""; then
4759 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4760 fi
4761 am__universal=false
4762 case " $depcc " in #(
4763 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4764 esac
4765
4766 for depmode in $am_compiler_list; do
4767 # Setup a source with many dependencies, because some compilers
4768 # like to wrap large dependency lists on column 80 (with \), and
4769 # we should not choose a depcomp mode which is confused by this.
4770 #
4771 # We need to recreate these files for each test, as the compiler may
4772 # overwrite some of them when testing with obscure command lines.
4773 # This happens at least with the AIX C compiler.
4774 : > sub/conftest.c
4775 for i in 1 2 3 4 5 6; do
4776 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4777 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4778 # Solaris 10 /bin/sh.
4779 echo '/* dummy */' > sub/conftst$i.h
4780 done
4781 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4782
4783 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4784 # mode. It turns out that the SunPro C++ compiler does not properly
4785 # handle '-M -o', and we need to detect this. Also, some Intel
4786 # versions had trouble with output in subdirs.
4787 am__obj=sub/conftest.${OBJEXT-o}
4788 am__minus_obj="-o $am__obj"
4789 case $depmode in
4790 gcc)
4791 # This depmode causes a compiler race in universal mode.
4792 test "$am__universal" = false || continue
4793 ;;
4794 nosideeffect)
4795 # After this tag, mechanisms are not by side-effect, so they'll
4796 # only be used when explicitly requested.
4797 if test "x$enable_dependency_tracking" = xyes; then
4798 continue
4799 else
4800 break
4801 fi
4802 ;;
4803 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4804 # This compiler won't grok '-c -o', but also, the minuso test has
4805 # not run yet. These depmodes are late enough in the game, and
4806 # so weak that their functioning should not be impacted.
4807 am__obj=conftest.${OBJEXT-o}
4808 am__minus_obj=
4809 ;;
4810 none) break ;;
4811 esac
4812 if depmode=$depmode \
4813 source=sub/conftest.c object=$am__obj \
4814 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4815 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4816 >/dev/null 2>conftest.err &&
4817 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4818 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4819 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4820 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4821 # icc doesn't choke on unknown options, it will just issue warnings
4822 # or remarks (even with -Werror). So we grep stderr for any message
4823 # that says an option was ignored or not supported.
4824 # When given -MP, icc 7.0 and 7.1 complain thus:
4825 # icc: Command line warning: ignoring option '-M'; no argument required
4826 # The diagnosis changed in icc 8.0:
4827 # icc: Command line remark: option '-MP' not supported
4828 if (grep 'ignoring option' conftest.err ||
4829 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4830 am_cv_CC_dependencies_compiler_type=$depmode
4831 break
4832 fi
4833 fi
4834 done
4835
4836 cd ..
4837 rm -rf conftest.dir
4838 else
4839 am_cv_CC_dependencies_compiler_type=none
4840 fi
4841 ;;
4842 esac
4843 fi
4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4845 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4846 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4847
4848 if
4849 test "x$enable_dependency_tracking" != xno \
4850 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4851 am__fastdepCC_TRUE=
4852 am__fastdepCC_FALSE='#'
4853 else
4854 am__fastdepCC_TRUE='#'
4855 am__fastdepCC_FALSE=
4856 fi
4857
4858
4859
4860 ac_header= ac_cache=
4861 for ac_item in $ac_header_c_list
4862 do
4863 if test $ac_cache; then
4864 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4865 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4866 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4867 fi
4868 ac_header= ac_cache=
4869 elif test $ac_header; then
4870 ac_cache=$ac_item
4871 else
4872 ac_header=$ac_item
4873 fi
4874 done
4875
4876
4877
4878
4879
4880
4881
4882
4883 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4884 then :
4885
4886 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4887
4888 fi
4889
4890
4891
4892
4893
4894
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4896 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4897 if test ${ac_cv_safe_to_define___extensions__+y}
4898 then :
4899 printf %s "(cached) " >&6
4900 else case e in #(
4901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4903
4904 # define __EXTENSIONS__ 1
4905 $ac_includes_default
4906 int
4907 main (void)
4908 {
4909
4910 ;
4911 return 0;
4912 }
4913 _ACEOF
4914 if ac_fn_c_try_compile "$LINENO"
4915 then :
4916 ac_cv_safe_to_define___extensions__=yes
4917 else case e in #(
4918 e) ac_cv_safe_to_define___extensions__=no ;;
4919 esac
4920 fi
4921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4922 esac
4923 fi
4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4925 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4926
4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4928 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4929 if test ${ac_cv_should_define__xopen_source+y}
4930 then :
4931 printf %s "(cached) " >&6
4932 else case e in #(
4933 e) ac_cv_should_define__xopen_source=no
4934 if test $ac_cv_header_wchar_h = yes
4935 then :
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938
4939 #include <wchar.h>
4940 mbstate_t x;
4941 int
4942 main (void)
4943 {
4944
4945 ;
4946 return 0;
4947 }
4948 _ACEOF
4949 if ac_fn_c_try_compile "$LINENO"
4950 then :
4951
4952 else case e in #(
4953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4955
4956 #define _XOPEN_SOURCE 500
4957 #include <wchar.h>
4958 mbstate_t x;
4959 int
4960 main (void)
4961 {
4962
4963 ;
4964 return 0;
4965 }
4966 _ACEOF
4967 if ac_fn_c_try_compile "$LINENO"
4968 then :
4969 ac_cv_should_define__xopen_source=yes
4970 fi
4971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4972 esac
4973 fi
4974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4975 fi ;;
4976 esac
4977 fi
4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4979 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4980
4981 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4982
4983 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4984
4985 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4986
4987 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4988
4989 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4990
4991 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4992
4993 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4994
4995 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4996
4997 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4998
4999 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5000
5001 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5002
5003 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5004
5005 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5006
5007 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5008
5009 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5010
5011 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5012
5013 if test $ac_cv_header_minix_config_h = yes
5014 then :
5015 MINIX=yes
5016 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5017
5018 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5019
5020 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5021
5022 else case e in #(
5023 e) MINIX= ;;
5024 esac
5025 fi
5026 if test $ac_cv_safe_to_define___extensions__ = yes
5027 then :
5028 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5029
5030 fi
5031 if test $ac_cv_should_define__xopen_source = yes
5032 then :
5033 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5034
5035 fi
5036
5037 # Check whether --enable-compiler-warnings was given.
5038 if test ${enable_compiler_warnings+y}
5039 then :
5040 enableval=$enable_compiler_warnings;
5041 fi
5042 case $enable_compiler_warnings in #(
5043 no | min | yes | max | all) :
5044 ;; #(
5045 *) :
5046 if test "x$enable_maintainer_mode" = xyes
5047 then :
5048 enable_compiler_warnings=yes
5049 else case e in #(
5050 e) enable_compiler_warnings=min ;;
5051 esac
5052 fi ;;
5053 esac
5054
5055 case `pwd` in
5056 *\ * | *\ *)
5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5058 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5059 esac
5060
5061
5062
5063 macro_version='2.5.4'
5064 macro_revision='2.5.4'
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079 ltmain=$ac_aux_dir/ltmain.sh
5080
5081
5082
5083 # Make sure we can run config.sub.
5084 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5085 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5086
5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5088 printf %s "checking build system type... " >&6; }
5089 if test ${ac_cv_build+y}
5090 then :
5091 printf %s "(cached) " >&6
5092 else case e in #(
5093 e) ac_build_alias=$build_alias
5094 test "x$ac_build_alias" = x &&
5095 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5096 test "x$ac_build_alias" = x &&
5097 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5098 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5099 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5100 ;;
5101 esac
5102 fi
5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5104 printf "%s\n" "$ac_cv_build" >&6; }
5105 case $ac_cv_build in
5106 *-*-*) ;;
5107 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5108 esac
5109 build=$ac_cv_build
5110 ac_save_IFS=$IFS; IFS='-'
5111 set x $ac_cv_build
5112 shift
5113 build_cpu=$1
5114 build_vendor=$2
5115 shift; shift
5116 # Remember, the first character of IFS is used to create $*,
5117 # except with old shells:
5118 build_os=$*
5119 IFS=$ac_save_IFS
5120 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5121
5122
5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5124 printf %s "checking host system type... " >&6; }
5125 if test ${ac_cv_host+y}
5126 then :
5127 printf %s "(cached) " >&6
5128 else case e in #(
5129 e) if test "x$host_alias" = x; then
5130 ac_cv_host=$ac_cv_build
5131 else
5132 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5133 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5134 fi
5135 ;;
5136 esac
5137 fi
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5139 printf "%s\n" "$ac_cv_host" >&6; }
5140 case $ac_cv_host in
5141 *-*-*) ;;
5142 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5143 esac
5144 host=$ac_cv_host
5145 ac_save_IFS=$IFS; IFS='-'
5146 set x $ac_cv_host
5147 shift
5148 host_cpu=$1
5149 host_vendor=$2
5150 shift; shift
5151 # Remember, the first character of IFS is used to create $*,
5152 # except with old shells:
5153 host_os=$*
5154 IFS=$ac_save_IFS
5155 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5156
5157
5158 # Backslashify metacharacters that are still active within
5159 # double-quoted strings.
5160 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5161
5162 # Same as above, but do not quote variable references.
5163 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5164
5165 # Sed substitution to delay expansion of an escaped shell variable in a
5166 # double_quote_subst'ed string.
5167 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5168
5169 # Sed substitution to delay expansion of an escaped single quote.
5170 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5171
5172 # Sed substitution to avoid accidental globbing in evaled expressions
5173 no_glob_subst='s/\*/\\\*/g'
5174
5175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5176 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5177 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5178
5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5180 printf %s "checking how to print strings... " >&6; }
5181 # Test print first, because it will be a builtin if present.
5182 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5183 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5184 ECHO='print -r --'
5185 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5186 ECHO='printf %s\n'
5187 else
5188 # Use this function as a fallback that always works.
5189 func_fallback_echo ()
5190 {
5191 eval 'cat <<_LTECHO_EOF
5192 $1
5193 _LTECHO_EOF'
5194 }
5195 ECHO='func_fallback_echo'
5196 fi
5197
5198 # func_echo_all arg...
5199 # Invoke $ECHO with all args, space-separated.
5200 func_echo_all ()
5201 {
5202 $ECHO ""
5203 }
5204
5205 case $ECHO in
5206 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5207 printf "%s\n" "printf" >&6; } ;;
5208 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5209 printf "%s\n" "print -r" >&6; } ;;
5210 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5211 printf "%s\n" "cat" >&6; } ;;
5212 esac
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5228 printf %s "checking for a sed that does not truncate output... " >&6; }
5229 if test ${ac_cv_path_SED+y}
5230 then :
5231 printf %s "(cached) " >&6
5232 else case e in #(
5233 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5234 for ac_i in 1 2 3 4 5 6 7; do
5235 ac_script="$ac_script$as_nl$ac_script"
5236 done
5237 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5238 { ac_script=; unset ac_script;}
5239 if test -z "$SED"; then
5240 ac_path_SED_found=false
5241 # Loop through the user's path and test for each of PROGNAME-LIST
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5244 do
5245 IFS=$as_save_IFS
5246 case $as_dir in #(((
5247 '') as_dir=./ ;;
5248 */) ;;
5249 *) as_dir=$as_dir/ ;;
5250 esac
5251 for ac_prog in sed gsed
5252 do
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5255 as_fn_executable_p "$ac_path_SED" || continue
5256 # Check for GNU ac_path_SED and select it if it is found.
5257 # Check for GNU $ac_path_SED
5258 case `"$ac_path_SED" --version 2>&1` in #(
5259 *GNU*)
5260 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5261 #(
5262 *)
5263 ac_count=0
5264 printf %s 0123456789 >"conftest.in"
5265 while :
5266 do
5267 cat "conftest.in" "conftest.in" >"conftest.tmp"
5268 mv "conftest.tmp" "conftest.in"
5269 cp "conftest.in" "conftest.nl"
5270 printf "%s\n" '' >> "conftest.nl"
5271 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5273 as_fn_arith $ac_count + 1 && ac_count=$as_val
5274 if test $ac_count -gt ${ac_path_SED_max-0}; then
5275 # Best one so far, save it but keep looking for a better one
5276 ac_cv_path_SED="$ac_path_SED"
5277 ac_path_SED_max=$ac_count
5278 fi
5279 # 10*(2^10) chars as input seems more than enough
5280 test $ac_count -gt 10 && break
5281 done
5282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5283 esac
5284
5285 $ac_path_SED_found && break 3
5286 done
5287 done
5288 done
5289 IFS=$as_save_IFS
5290 if test -z "$ac_cv_path_SED"; then
5291 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5292 fi
5293 else
5294 ac_cv_path_SED=$SED
5295 fi
5296 ;;
5297 esac
5298 fi
5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5300 printf "%s\n" "$ac_cv_path_SED" >&6; }
5301 SED="$ac_cv_path_SED"
5302 rm -f conftest.sed
5303
5304 test -z "$SED" && SED=sed
5305 Xsed="$SED -e 1s/^X//"
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5318 printf %s "checking for grep that handles long lines and -e... " >&6; }
5319 if test ${ac_cv_path_GREP+y}
5320 then :
5321 printf %s "(cached) " >&6
5322 else case e in #(
5323 e) if test -z "$GREP"; then
5324 ac_path_GREP_found=false
5325 # Loop through the user's path and test for each of PROGNAME-LIST
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5328 do
5329 IFS=$as_save_IFS
5330 case $as_dir in #(((
5331 '') as_dir=./ ;;
5332 */) ;;
5333 *) as_dir=$as_dir/ ;;
5334 esac
5335 for ac_prog in grep ggrep
5336 do
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5339 as_fn_executable_p "$ac_path_GREP" || continue
5340 # Check for GNU ac_path_GREP and select it if it is found.
5341 # Check for GNU $ac_path_GREP
5342 case `"$ac_path_GREP" --version 2>&1` in #(
5343 *GNU*)
5344 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5345 #(
5346 *)
5347 ac_count=0
5348 printf %s 0123456789 >"conftest.in"
5349 while :
5350 do
5351 cat "conftest.in" "conftest.in" >"conftest.tmp"
5352 mv "conftest.tmp" "conftest.in"
5353 cp "conftest.in" "conftest.nl"
5354 printf "%s\n" 'GREP' >> "conftest.nl"
5355 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5357 as_fn_arith $ac_count + 1 && ac_count=$as_val
5358 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5359 # Best one so far, save it but keep looking for a better one
5360 ac_cv_path_GREP="$ac_path_GREP"
5361 ac_path_GREP_max=$ac_count
5362 fi
5363 # 10*(2^10) chars as input seems more than enough
5364 test $ac_count -gt 10 && break
5365 done
5366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5367 esac
5368
5369 $ac_path_GREP_found && break 3
5370 done
5371 done
5372 done
5373 IFS=$as_save_IFS
5374 if test -z "$ac_cv_path_GREP"; then
5375 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5376 fi
5377 else
5378 ac_cv_path_GREP=$GREP
5379 fi
5380 ;;
5381 esac
5382 fi
5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5384 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5385 GREP="$ac_cv_path_GREP"
5386
5387
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5389 printf %s "checking for egrep... " >&6; }
5390 if test ${ac_cv_path_EGREP+y}
5391 then :
5392 printf %s "(cached) " >&6
5393 else case e in #(
5394 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5395 then ac_cv_path_EGREP="$GREP -E"
5396 else
5397 if test -z "$EGREP"; then
5398 ac_path_EGREP_found=false
5399 # Loop through the user's path and test for each of PROGNAME-LIST
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5402 do
5403 IFS=$as_save_IFS
5404 case $as_dir in #(((
5405 '') as_dir=./ ;;
5406 */) ;;
5407 *) as_dir=$as_dir/ ;;
5408 esac
5409 for ac_prog in egrep
5410 do
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5413 as_fn_executable_p "$ac_path_EGREP" || continue
5414 # Check for GNU ac_path_EGREP and select it if it is found.
5415 # Check for GNU $ac_path_EGREP
5416 case `"$ac_path_EGREP" --version 2>&1` in #(
5417 *GNU*)
5418 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5419 #(
5420 *)
5421 ac_count=0
5422 printf %s 0123456789 >"conftest.in"
5423 while :
5424 do
5425 cat "conftest.in" "conftest.in" >"conftest.tmp"
5426 mv "conftest.tmp" "conftest.in"
5427 cp "conftest.in" "conftest.nl"
5428 printf "%s\n" 'EGREP' >> "conftest.nl"
5429 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5430 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5431 as_fn_arith $ac_count + 1 && ac_count=$as_val
5432 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5433 # Best one so far, save it but keep looking for a better one
5434 ac_cv_path_EGREP="$ac_path_EGREP"
5435 ac_path_EGREP_max=$ac_count
5436 fi
5437 # 10*(2^10) chars as input seems more than enough
5438 test $ac_count -gt 10 && break
5439 done
5440 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5441 esac
5442
5443 $ac_path_EGREP_found && break 3
5444 done
5445 done
5446 done
5447 IFS=$as_save_IFS
5448 if test -z "$ac_cv_path_EGREP"; then
5449 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5450 fi
5451 else
5452 ac_cv_path_EGREP=$EGREP
5453 fi
5454
5455 fi ;;
5456 esac
5457 fi
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5459 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5460 EGREP="$ac_cv_path_EGREP"
5461
5462 EGREP_TRADITIONAL=$EGREP
5463 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5464
5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5466 printf %s "checking for fgrep... " >&6; }
5467 if test ${ac_cv_path_FGREP+y}
5468 then :
5469 printf %s "(cached) " >&6
5470 else case e in #(
5471 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5472 then ac_cv_path_FGREP="$GREP -F"
5473 else
5474 if test -z "$FGREP"; then
5475 ac_path_FGREP_found=false
5476 # Loop through the user's path and test for each of PROGNAME-LIST
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5479 do
5480 IFS=$as_save_IFS
5481 case $as_dir in #(((
5482 '') as_dir=./ ;;
5483 */) ;;
5484 *) as_dir=$as_dir/ ;;
5485 esac
5486 for ac_prog in fgrep
5487 do
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5490 as_fn_executable_p "$ac_path_FGREP" || continue
5491 # Check for GNU ac_path_FGREP and select it if it is found.
5492 # Check for GNU $ac_path_FGREP
5493 case `"$ac_path_FGREP" --version 2>&1` in #(
5494 *GNU*)
5495 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5496 #(
5497 *)
5498 ac_count=0
5499 printf %s 0123456789 >"conftest.in"
5500 while :
5501 do
5502 cat "conftest.in" "conftest.in" >"conftest.tmp"
5503 mv "conftest.tmp" "conftest.in"
5504 cp "conftest.in" "conftest.nl"
5505 printf "%s\n" 'FGREP' >> "conftest.nl"
5506 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5507 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5508 as_fn_arith $ac_count + 1 && ac_count=$as_val
5509 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5510 # Best one so far, save it but keep looking for a better one
5511 ac_cv_path_FGREP="$ac_path_FGREP"
5512 ac_path_FGREP_max=$ac_count
5513 fi
5514 # 10*(2^10) chars as input seems more than enough
5515 test $ac_count -gt 10 && break
5516 done
5517 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5518 esac
5519
5520 $ac_path_FGREP_found && break 3
5521 done
5522 done
5523 done
5524 IFS=$as_save_IFS
5525 if test -z "$ac_cv_path_FGREP"; then
5526 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5527 fi
5528 else
5529 ac_cv_path_FGREP=$FGREP
5530 fi
5531
5532 fi ;;
5533 esac
5534 fi
5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5536 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5537 FGREP="$ac_cv_path_FGREP"
5538
5539
5540 test -z "$GREP" && GREP=grep
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560 # Check whether --with-gnu-ld was given.
5561 if test ${with_gnu_ld+y}
5562 then :
5563 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5564 else case e in #(
5565 e) with_gnu_ld=no ;;
5566 esac
5567 fi
5568
5569 ac_prog=ld
5570 if test yes = "$GCC"; then
5571 # Check if gcc -print-prog-name=ld gives a path.
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5573 printf %s "checking for ld used by $CC... " >&6; }
5574 case $host in
5575 *-*-mingw* | *-*-windows*)
5576 # gcc leaves a trailing carriage return, which upsets mingw
5577 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5578 *)
5579 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5580 esac
5581 case $ac_prog in
5582 # Accept absolute paths.
5583 [\\/]* | ?:[\\/]*)
5584 re_direlt='/[^/][^/]*/\.\./'
5585 # Canonicalize the pathname of ld
5586 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5587 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5588 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5589 done
5590 test -z "$LD" && LD=$ac_prog
5591 ;;
5592 "")
5593 # If it fails, then pretend we aren't using GCC.
5594 ac_prog=ld
5595 ;;
5596 *)
5597 # If it is relative, then search for the first ld in PATH.
5598 with_gnu_ld=unknown
5599 ;;
5600 esac
5601 elif test yes = "$with_gnu_ld"; then
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5603 printf %s "checking for GNU ld... " >&6; }
5604 else
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5606 printf %s "checking for non-GNU ld... " >&6; }
5607 fi
5608 if test ${lt_cv_path_LD+y}
5609 then :
5610 printf %s "(cached) " >&6
5611 else case e in #(
5612 e) if test -z "$LD"; then
5613 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5614 for ac_dir in $PATH; do
5615 IFS=$lt_save_ifs
5616 test -z "$ac_dir" && ac_dir=.
5617 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5618 lt_cv_path_LD=$ac_dir/$ac_prog
5619 # Check to see if the program is GNU ld. I'd rather use --version,
5620 # but apparently some variants of GNU ld only accept -v.
5621 # Break only if it was the GNU/non-GNU ld that we prefer.
5622 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5623 *GNU* | *'with BFD'*)
5624 test no != "$with_gnu_ld" && break
5625 ;;
5626 *)
5627 test yes != "$with_gnu_ld" && break
5628 ;;
5629 esac
5630 fi
5631 done
5632 IFS=$lt_save_ifs
5633 else
5634 lt_cv_path_LD=$LD # Let the user override the test with a path.
5635 fi ;;
5636 esac
5637 fi
5638
5639 LD=$lt_cv_path_LD
5640 if test -n "$LD"; then
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5642 printf "%s\n" "$LD" >&6; }
5643 else
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 printf "%s\n" "no" >&6; }
5646 fi
5647 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5649 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5650 if test ${lt_cv_prog_gnu_ld+y}
5651 then :
5652 printf %s "(cached) " >&6
5653 else case e in #(
5654 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5655 case `$LD -v 2>&1 </dev/null` in
5656 *GNU* | *'with BFD'*)
5657 lt_cv_prog_gnu_ld=yes
5658 ;;
5659 *)
5660 lt_cv_prog_gnu_ld=no
5661 ;;
5662 esac ;;
5663 esac
5664 fi
5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5666 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5667 with_gnu_ld=$lt_cv_prog_gnu_ld
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5678 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5679 if test ${lt_cv_path_NM+y}
5680 then :
5681 printf %s "(cached) " >&6
5682 else case e in #(
5683 e) if test -n "$NM"; then
5684 # Let the user override the test.
5685 lt_cv_path_NM=$NM
5686 else
5687 lt_nm_to_check=${ac_tool_prefix}nm
5688 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5689 lt_nm_to_check="$lt_nm_to_check nm"
5690 fi
5691 for lt_tmp_nm in $lt_nm_to_check; do
5692 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5693 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5694 IFS=$lt_save_ifs
5695 test -z "$ac_dir" && ac_dir=.
5696 tmp_nm=$ac_dir/$lt_tmp_nm
5697 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5698 # Check to see if the nm accepts a BSD-compat flag.
5699 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5700 # nm: unknown option "B" ignored
5701 # Tru64's nm complains that /dev/null is an invalid object file
5702 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5703 case $build_os in
5704 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5705 *) lt_bad_file=/dev/null ;;
5706 esac
5707 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5708 *$lt_bad_file* | *'Invalid file or object type'*)
5709 lt_cv_path_NM="$tmp_nm -B"
5710 break 2
5711 ;;
5712 *)
5713 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5714 */dev/null*)
5715 lt_cv_path_NM="$tmp_nm -p"
5716 break 2
5717 ;;
5718 *)
5719 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5720 continue # so that we can try to find one that supports BSD flags
5721 ;;
5722 esac
5723 ;;
5724 esac
5725 fi
5726 done
5727 IFS=$lt_save_ifs
5728 done
5729 : ${lt_cv_path_NM=no}
5730 fi ;;
5731 esac
5732 fi
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5734 printf "%s\n" "$lt_cv_path_NM" >&6; }
5735 if test no != "$lt_cv_path_NM"; then
5736 NM=$lt_cv_path_NM
5737 else
5738 # Didn't find any BSD compatible name lister, look for dumpbin.
5739 if test -n "$DUMPBIN"; then :
5740 # Let the user override the test.
5741 else
5742 if test -n "$ac_tool_prefix"; then
5743 for ac_prog in dumpbin "link -dump"
5744 do
5745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 printf %s "checking for $ac_word... " >&6; }
5749 if test ${ac_cv_prog_DUMPBIN+y}
5750 then :
5751 printf %s "(cached) " >&6
5752 else case e in #(
5753 e) if test -n "$DUMPBIN"; then
5754 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5758 do
5759 IFS=$as_save_IFS
5760 case $as_dir in #(((
5761 '') as_dir=./ ;;
5762 */) ;;
5763 *) as_dir=$as_dir/ ;;
5764 esac
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5767 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5769 break 2
5770 fi
5771 done
5772 done
5773 IFS=$as_save_IFS
5774
5775 fi ;;
5776 esac
5777 fi
5778 DUMPBIN=$ac_cv_prog_DUMPBIN
5779 if test -n "$DUMPBIN"; then
5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5781 printf "%s\n" "$DUMPBIN" >&6; }
5782 else
5783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 printf "%s\n" "no" >&6; }
5785 fi
5786
5787
5788 test -n "$DUMPBIN" && break
5789 done
5790 fi
5791 if test -z "$DUMPBIN"; then
5792 ac_ct_DUMPBIN=$DUMPBIN
5793 for ac_prog in dumpbin "link -dump"
5794 do
5795 # Extract the first word of "$ac_prog", so it can be a program name with args.
5796 set dummy $ac_prog; ac_word=$2
5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 printf %s "checking for $ac_word... " >&6; }
5799 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5800 then :
5801 printf %s "(cached) " >&6
5802 else case e in #(
5803 e) if test -n "$ac_ct_DUMPBIN"; then
5804 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809 IFS=$as_save_IFS
5810 case $as_dir in #(((
5811 '') as_dir=./ ;;
5812 */) ;;
5813 *) as_dir=$as_dir/ ;;
5814 esac
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5817 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5819 break 2
5820 fi
5821 done
5822 done
5823 IFS=$as_save_IFS
5824
5825 fi ;;
5826 esac
5827 fi
5828 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5829 if test -n "$ac_ct_DUMPBIN"; then
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5831 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5832 else
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 printf "%s\n" "no" >&6; }
5835 fi
5836
5837
5838 test -n "$ac_ct_DUMPBIN" && break
5839 done
5840
5841 if test "x$ac_ct_DUMPBIN" = x; then
5842 DUMPBIN=":"
5843 else
5844 case $cross_compiling:$ac_tool_warned in
5845 yes:)
5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5847 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5848 ac_tool_warned=yes ;;
5849 esac
5850 DUMPBIN=$ac_ct_DUMPBIN
5851 fi
5852 fi
5853
5854 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5855 *COFF*)
5856 DUMPBIN="$DUMPBIN -symbols -headers"
5857 ;;
5858 *)
5859 DUMPBIN=:
5860 ;;
5861 esac
5862 fi
5863
5864 if test : != "$DUMPBIN"; then
5865 NM=$DUMPBIN
5866 fi
5867 fi
5868 test -z "$NM" && NM=nm
5869
5870
5871
5872
5873
5874
5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5876 printf %s "checking the name lister ($NM) interface... " >&6; }
5877 if test ${lt_cv_nm_interface+y}
5878 then :
5879 printf %s "(cached) " >&6
5880 else case e in #(
5881 e) lt_cv_nm_interface="BSD nm"
5882 echo "int some_variable = 0;" > conftest.$ac_ext
5883 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5884 (eval "$ac_compile" 2>conftest.err)
5885 cat conftest.err >&5
5886 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5887 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5888 cat conftest.err >&5
5889 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5890 cat conftest.out >&5
5891 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5892 lt_cv_nm_interface="MS dumpbin"
5893 fi
5894 rm -f conftest* ;;
5895 esac
5896 fi
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5898 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5899
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5901 printf %s "checking whether ln -s works... " >&6; }
5902 LN_S=$as_ln_s
5903 if test "$LN_S" = "ln -s"; then
5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5905 printf "%s\n" "yes" >&6; }
5906 else
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5908 printf "%s\n" "no, using $LN_S" >&6; }
5909 fi
5910
5911 # find the maximum length of command line arguments
5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5913 printf %s "checking the maximum length of command line arguments... " >&6; }
5914 if test ${lt_cv_sys_max_cmd_len+y}
5915 then :
5916 printf %s "(cached) " >&6
5917 else case e in #(
5918 e) i=0
5919 teststring=ABCD
5920
5921 case $build_os in
5922 msdosdjgpp*)
5923 # On DJGPP, this test can blow up pretty badly due to problems in libc
5924 # (any single argument exceeding 2000 bytes causes a buffer overrun
5925 # during glob expansion). Even if it were fixed, the result of this
5926 # check would be larger than it should be.
5927 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5928 ;;
5929
5930 gnu* | ironclad*)
5931 # Under GNU Hurd and Ironclad, this test is not required because there
5932 # is no limit to the length of command line arguments.
5933 # Libtool will interpret -1 as no limit whatsoever
5934 lt_cv_sys_max_cmd_len=-1;
5935 ;;
5936
5937 cygwin* | mingw* | windows* | cegcc*)
5938 # On Win9x/ME, this test blows up -- it succeeds, but takes
5939 # about 5 minutes as the teststring grows exponentially.
5940 # Worse, since 9x/ME are not pre-emptively multitasking,
5941 # you end up with a "frozen" computer, even though with patience
5942 # the test eventually succeeds (with a max line length of 256k).
5943 # Instead, let's just punt: use the minimum linelength reported by
5944 # all of the supported platforms: 8192 (on NT/2K/XP).
5945 lt_cv_sys_max_cmd_len=8192;
5946 ;;
5947
5948 mint*)
5949 # On MiNT this can take a long time and run out of memory.
5950 lt_cv_sys_max_cmd_len=8192;
5951 ;;
5952
5953 amigaos*)
5954 # On AmigaOS with pdksh, this test takes hours, literally.
5955 # So we just punt and use a minimum line length of 8192.
5956 lt_cv_sys_max_cmd_len=8192;
5957 ;;
5958
5959 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5960 # This has been around since 386BSD, at least. Likely further.
5961 if test -x /sbin/sysctl; then
5962 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5963 elif test -x /usr/sbin/sysctl; then
5964 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5965 else
5966 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5967 fi
5968 # And add a safety zone
5969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5970 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5971 ;;
5972
5973 interix*)
5974 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5975 lt_cv_sys_max_cmd_len=196608
5976 ;;
5977
5978 os2*)
5979 # The test takes a long time on OS/2.
5980 lt_cv_sys_max_cmd_len=8192
5981 ;;
5982
5983 osf*)
5984 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5985 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5986 # nice to cause kernel panics so lets avoid the loop below.
5987 # First set a reasonable default.
5988 lt_cv_sys_max_cmd_len=16384
5989 #
5990 if test -x /sbin/sysconfig; then
5991 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5992 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5993 esac
5994 fi
5995 ;;
5996 sco3.2v5*)
5997 lt_cv_sys_max_cmd_len=102400
5998 ;;
5999 sysv5* | sco5v6* | sysv4.2uw2*)
6000 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6001 if test -n "$kargmax"; then
6002 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6003 else
6004 lt_cv_sys_max_cmd_len=32768
6005 fi
6006 ;;
6007 *)
6008 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6009 if test -n "$lt_cv_sys_max_cmd_len" && \
6010 test undefined != "$lt_cv_sys_max_cmd_len"; then
6011 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6012 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6013 else
6014 # Make teststring a little bigger before we do anything with it.
6015 # a 1K string should be a reasonable start.
6016 for i in 1 2 3 4 5 6 7 8; do
6017 teststring=$teststring$teststring
6018 done
6019 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6020 # If test is not a shell built-in, we'll probably end up computing a
6021 # maximum length that is only half of the actual maximum length, but
6022 # we can't tell.
6023 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6024 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6025 test 17 != "$i" # 1/2 MB should be enough
6026 do
6027 i=`expr $i + 1`
6028 teststring=$teststring$teststring
6029 done
6030 # Only check the string length outside the loop.
6031 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6032 teststring=
6033 # Add a significant safety factor because C++ compilers can tack on
6034 # massive amounts of additional arguments before passing them to the
6035 # linker. It appears as though 1/2 is a usable value.
6036 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6037 fi
6038 ;;
6039 esac
6040 ;;
6041 esac
6042 fi
6043
6044 if test -n "$lt_cv_sys_max_cmd_len"; then
6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6046 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6047 else
6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6049 printf "%s\n" "none" >&6; }
6050 fi
6051 max_cmd_len=$lt_cv_sys_max_cmd_len
6052
6053
6054
6055
6056
6057
6058 : ${CP="cp -f"}
6059 : ${MV="mv -f"}
6060 : ${RM="rm -f"}
6061
6062 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6063 lt_unset=unset
6064 else
6065 lt_unset=false
6066 fi
6067
6068
6069
6070
6071
6072 # test EBCDIC or ASCII
6073 case `echo X|tr X '\101'` in
6074 A) # ASCII based system
6075 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6076 lt_SP2NL='tr \040 \012'
6077 lt_NL2SP='tr \015\012 \040\040'
6078 ;;
6079 *) # EBCDIC based system
6080 lt_SP2NL='tr \100 \n'
6081 lt_NL2SP='tr \r\n \100\100'
6082 ;;
6083 esac
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6094 printf %s "checking how to convert $build file names to $host format... " >&6; }
6095 if test ${lt_cv_to_host_file_cmd+y}
6096 then :
6097 printf %s "(cached) " >&6
6098 else case e in #(
6099 e) case $host in
6100 *-*-mingw* )
6101 case $build in
6102 *-*-mingw* | *-*-windows* ) # actually msys
6103 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6104 ;;
6105 *-*-cygwin* )
6106 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6107 ;;
6108 * ) # otherwise, assume *nix
6109 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6110 ;;
6111 esac
6112 ;;
6113 *-*-cygwin* )
6114 case $build in
6115 *-*-mingw* | *-*-windows* ) # actually msys
6116 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6117 ;;
6118 *-*-cygwin* )
6119 lt_cv_to_host_file_cmd=func_convert_file_noop
6120 ;;
6121 * ) # otherwise, assume *nix
6122 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6123 ;;
6124 esac
6125 ;;
6126 * ) # unhandled hosts (and "normal" native builds)
6127 lt_cv_to_host_file_cmd=func_convert_file_noop
6128 ;;
6129 esac
6130 ;;
6131 esac
6132 fi
6133
6134 to_host_file_cmd=$lt_cv_to_host_file_cmd
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6136 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6137
6138
6139
6140
6141
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6143 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6144 if test ${lt_cv_to_tool_file_cmd+y}
6145 then :
6146 printf %s "(cached) " >&6
6147 else case e in #(
6148 e) #assume ordinary cross tools, or native build.
6149 lt_cv_to_tool_file_cmd=func_convert_file_noop
6150 case $host in
6151 *-*-mingw* | *-*-windows* )
6152 case $build in
6153 *-*-mingw* | *-*-windows* ) # actually msys
6154 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6155 ;;
6156 esac
6157 ;;
6158 esac
6159 ;;
6160 esac
6161 fi
6162
6163 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6165 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6166
6167
6168
6169
6170
6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6172 printf %s "checking for $LD option to reload object files... " >&6; }
6173 if test ${lt_cv_ld_reload_flag+y}
6174 then :
6175 printf %s "(cached) " >&6
6176 else case e in #(
6177 e) lt_cv_ld_reload_flag='-r' ;;
6178 esac
6179 fi
6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6181 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6182 reload_flag=$lt_cv_ld_reload_flag
6183 case $reload_flag in
6184 "" | " "*) ;;
6185 *) reload_flag=" $reload_flag" ;;
6186 esac
6187 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6188 case $host_os in
6189 cygwin* | mingw* | windows* | pw32* | cegcc*)
6190 if test yes != "$GCC"; then
6191 reload_cmds=false
6192 fi
6193 ;;
6194 darwin*)
6195 if test yes = "$GCC"; then
6196 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6197 else
6198 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6199 fi
6200 ;;
6201 esac
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211 # Extract the first word of "file", so it can be a program name with args.
6212 set dummy file; ac_word=$2
6213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6214 printf %s "checking for $ac_word... " >&6; }
6215 if test ${ac_cv_prog_FILECMD+y}
6216 then :
6217 printf %s "(cached) " >&6
6218 else case e in #(
6219 e) if test -n "$FILECMD"; then
6220 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6221 else
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 for as_dir in $PATH
6224 do
6225 IFS=$as_save_IFS
6226 case $as_dir in #(((
6227 '') as_dir=./ ;;
6228 */) ;;
6229 *) as_dir=$as_dir/ ;;
6230 esac
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6233 ac_cv_prog_FILECMD="file"
6234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6235 break 2
6236 fi
6237 done
6238 done
6239 IFS=$as_save_IFS
6240
6241 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6242 fi ;;
6243 esac
6244 fi
6245 FILECMD=$ac_cv_prog_FILECMD
6246 if test -n "$FILECMD"; then
6247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6248 printf "%s\n" "$FILECMD" >&6; }
6249 else
6250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6251 printf "%s\n" "no" >&6; }
6252 fi
6253
6254
6255
6256
6257
6258
6259
6260
6261 if test -n "$ac_tool_prefix"; then
6262 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6263 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 printf %s "checking for $ac_word... " >&6; }
6266 if test ${ac_cv_prog_OBJDUMP+y}
6267 then :
6268 printf %s "(cached) " >&6
6269 else case e in #(
6270 e) if test -n "$OBJDUMP"; then
6271 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276 IFS=$as_save_IFS
6277 case $as_dir in #(((
6278 '') as_dir=./ ;;
6279 */) ;;
6280 *) as_dir=$as_dir/ ;;
6281 esac
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6284 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6286 break 2
6287 fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292 fi ;;
6293 esac
6294 fi
6295 OBJDUMP=$ac_cv_prog_OBJDUMP
6296 if test -n "$OBJDUMP"; then
6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6298 printf "%s\n" "$OBJDUMP" >&6; }
6299 else
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 printf "%s\n" "no" >&6; }
6302 fi
6303
6304
6305 fi
6306 if test -z "$ac_cv_prog_OBJDUMP"; then
6307 ac_ct_OBJDUMP=$OBJDUMP
6308 # Extract the first word of "objdump", so it can be a program name with args.
6309 set dummy objdump; ac_word=$2
6310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 printf %s "checking for $ac_word... " >&6; }
6312 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6313 then :
6314 printf %s "(cached) " >&6
6315 else case e in #(
6316 e) if test -n "$ac_ct_OBJDUMP"; then
6317 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6318 else
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322 IFS=$as_save_IFS
6323 case $as_dir in #(((
6324 '') as_dir=./ ;;
6325 */) ;;
6326 *) as_dir=$as_dir/ ;;
6327 esac
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6330 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6332 break 2
6333 fi
6334 done
6335 done
6336 IFS=$as_save_IFS
6337
6338 fi ;;
6339 esac
6340 fi
6341 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6342 if test -n "$ac_ct_OBJDUMP"; then
6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6344 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6345 else
6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 printf "%s\n" "no" >&6; }
6348 fi
6349
6350 if test "x$ac_ct_OBJDUMP" = x; then
6351 OBJDUMP="false"
6352 else
6353 case $cross_compiling:$ac_tool_warned in
6354 yes:)
6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357 ac_tool_warned=yes ;;
6358 esac
6359 OBJDUMP=$ac_ct_OBJDUMP
6360 fi
6361 else
6362 OBJDUMP="$ac_cv_prog_OBJDUMP"
6363 fi
6364
6365 test -z "$OBJDUMP" && OBJDUMP=objdump
6366
6367
6368
6369
6370
6371
6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6373 printf %s "checking how to recognize dependent libraries... " >&6; }
6374 if test ${lt_cv_deplibs_check_method+y}
6375 then :
6376 printf %s "(cached) " >&6
6377 else case e in #(
6378 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6379 lt_cv_file_magic_test_file=
6380 lt_cv_deplibs_check_method='unknown'
6381 # Need to set the preceding variable on all platforms that support
6382 # interlibrary dependencies.
6383 # 'none' -- dependencies not supported.
6384 # 'unknown' -- same as none, but documents that we really don't know.
6385 # 'pass_all' -- all dependencies passed with no checks.
6386 # 'file_magic [[regex]]' -- check by looking for files in library path
6387 # that responds to the $file_magic_cmd with a given extended regex.
6388 # If you have 'file' or equivalent on your system and you're not sure
6389 # whether 'pass_all' will *always* work, you probably want this one.
6390
6391 case $host_os in
6392 aix[4-9]*)
6393 lt_cv_deplibs_check_method=pass_all
6394 ;;
6395
6396 beos*)
6397 lt_cv_deplibs_check_method=pass_all
6398 ;;
6399
6400 bsdi[45]*)
6401 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6402 lt_cv_file_magic_cmd='$FILECMD -L'
6403 lt_cv_file_magic_test_file=/shlib/libc.so
6404 ;;
6405
6406 cygwin*)
6407 # func_win32_libid is a shell function defined in ltmain.sh
6408 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6409 lt_cv_file_magic_cmd='func_win32_libid'
6410 ;;
6411
6412 mingw* | windows* | pw32*)
6413 # Base MSYS/MinGW do not provide the 'file' command needed by
6414 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6415 # unless we find 'file', for example because we are cross-compiling.
6416 if ( file / ) >/dev/null 2>&1; then
6417 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6418 lt_cv_file_magic_cmd='func_win32_libid'
6419 else
6420 # Keep this pattern in sync with the one in func_win32_libid.
6421 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6422 lt_cv_file_magic_cmd='$OBJDUMP -f'
6423 fi
6424 ;;
6425
6426 cegcc*)
6427 # use the weaker test based on 'objdump'. See mingw*.
6428 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6429 lt_cv_file_magic_cmd='$OBJDUMP -f'
6430 ;;
6431
6432 darwin* | rhapsody*)
6433 lt_cv_deplibs_check_method=pass_all
6434 ;;
6435
6436 freebsd* | dragonfly* | midnightbsd*)
6437 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6438 case $host_cpu in
6439 i*86 )
6440 # Not sure whether the presence of OpenBSD here was a mistake.
6441 # Let's accept both of them until this is cleared up.
6442 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6443 lt_cv_file_magic_cmd=$FILECMD
6444 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6445 ;;
6446 esac
6447 else
6448 lt_cv_deplibs_check_method=pass_all
6449 fi
6450 ;;
6451
6452 haiku*)
6453 lt_cv_deplibs_check_method=pass_all
6454 ;;
6455
6456 hpux10.20* | hpux11*)
6457 lt_cv_file_magic_cmd=$FILECMD
6458 case $host_cpu in
6459 ia64*)
6460 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6461 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6462 ;;
6463 hppa*64*)
6464 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]'
6465 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6466 ;;
6467 *)
6468 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6469 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6470 ;;
6471 esac
6472 ;;
6473
6474 interix[3-9]*)
6475 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6476 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6477 ;;
6478
6479 irix5* | irix6* | nonstopux*)
6480 case $LD in
6481 *-32|*"-32 ") libmagic=32-bit;;
6482 *-n32|*"-n32 ") libmagic=N32;;
6483 *-64|*"-64 ") libmagic=64-bit;;
6484 *) libmagic=never-match;;
6485 esac
6486 lt_cv_deplibs_check_method=pass_all
6487 ;;
6488
6489 # This must be glibc/ELF.
6490 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6491 lt_cv_deplibs_check_method=pass_all
6492 ;;
6493
6494 *-mlibc)
6495 lt_cv_deplibs_check_method=pass_all
6496 ;;
6497
6498 netbsd* | netbsdelf*-gnu)
6499 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6501 else
6502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6503 fi
6504 ;;
6505
6506 newos6*)
6507 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6508 lt_cv_file_magic_cmd=$FILECMD
6509 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6510 ;;
6511
6512 *nto* | *qnx*)
6513 lt_cv_deplibs_check_method=pass_all
6514 ;;
6515
6516 openbsd*)
6517 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6518 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6519 else
6520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6521 fi
6522 ;;
6523
6524 osf3* | osf4* | osf5*)
6525 lt_cv_deplibs_check_method=pass_all
6526 ;;
6527
6528 rdos*)
6529 lt_cv_deplibs_check_method=pass_all
6530 ;;
6531
6532 serenity*)
6533 lt_cv_deplibs_check_method=pass_all
6534 ;;
6535
6536 solaris*)
6537 lt_cv_deplibs_check_method=pass_all
6538 ;;
6539
6540 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6541 lt_cv_deplibs_check_method=pass_all
6542 ;;
6543
6544 sysv4 | sysv4.3*)
6545 case $host_vendor in
6546 motorola)
6547 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]'
6548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6549 ;;
6550 ncr)
6551 lt_cv_deplibs_check_method=pass_all
6552 ;;
6553 sequent)
6554 lt_cv_file_magic_cmd='/bin/file'
6555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6556 ;;
6557 sni)
6558 lt_cv_file_magic_cmd='/bin/file'
6559 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6560 lt_cv_file_magic_test_file=/lib/libc.so
6561 ;;
6562 siemens)
6563 lt_cv_deplibs_check_method=pass_all
6564 ;;
6565 pc)
6566 lt_cv_deplibs_check_method=pass_all
6567 ;;
6568 esac
6569 ;;
6570
6571 tpf*)
6572 lt_cv_deplibs_check_method=pass_all
6573 ;;
6574 os2*)
6575 lt_cv_deplibs_check_method=pass_all
6576 ;;
6577 esac
6578 ;;
6579 esac
6580 fi
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6582 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6583
6584 file_magic_glob=
6585 want_nocaseglob=no
6586 if test "$build" = "$host"; then
6587 case $host_os in
6588 mingw* | windows* | pw32*)
6589 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6590 want_nocaseglob=yes
6591 else
6592 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6593 fi
6594 ;;
6595 esac
6596 fi
6597
6598 file_magic_cmd=$lt_cv_file_magic_cmd
6599 deplibs_check_method=$lt_cv_deplibs_check_method
6600 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623 if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 printf %s "checking for $ac_word... " >&6; }
6628 if test ${ac_cv_prog_DLLTOOL+y}
6629 then :
6630 printf %s "(cached) " >&6
6631 else case e in #(
6632 e) if test -n "$DLLTOOL"; then
6633 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638 IFS=$as_save_IFS
6639 case $as_dir in #(((
6640 '') as_dir=./ ;;
6641 */) ;;
6642 *) as_dir=$as_dir/ ;;
6643 esac
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6646 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6648 break 2
6649 fi
6650 done
6651 done
6652 IFS=$as_save_IFS
6653
6654 fi ;;
6655 esac
6656 fi
6657 DLLTOOL=$ac_cv_prog_DLLTOOL
6658 if test -n "$DLLTOOL"; then
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6660 printf "%s\n" "$DLLTOOL" >&6; }
6661 else
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 printf "%s\n" "no" >&6; }
6664 fi
6665
6666
6667 fi
6668 if test -z "$ac_cv_prog_DLLTOOL"; then
6669 ac_ct_DLLTOOL=$DLLTOOL
6670 # Extract the first word of "dlltool", so it can be a program name with args.
6671 set dummy dlltool; ac_word=$2
6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 printf %s "checking for $ac_word... " >&6; }
6674 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6675 then :
6676 printf %s "(cached) " >&6
6677 else case e in #(
6678 e) if test -n "$ac_ct_DLLTOOL"; then
6679 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684 IFS=$as_save_IFS
6685 case $as_dir in #(((
6686 '') as_dir=./ ;;
6687 */) ;;
6688 *) as_dir=$as_dir/ ;;
6689 esac
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6692 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6694 break 2
6695 fi
6696 done
6697 done
6698 IFS=$as_save_IFS
6699
6700 fi ;;
6701 esac
6702 fi
6703 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6704 if test -n "$ac_ct_DLLTOOL"; then
6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6706 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6707 else
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 printf "%s\n" "no" >&6; }
6710 fi
6711
6712 if test "x$ac_ct_DLLTOOL" = x; then
6713 DLLTOOL="false"
6714 else
6715 case $cross_compiling:$ac_tool_warned in
6716 yes:)
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6718 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6719 ac_tool_warned=yes ;;
6720 esac
6721 DLLTOOL=$ac_ct_DLLTOOL
6722 fi
6723 else
6724 DLLTOOL="$ac_cv_prog_DLLTOOL"
6725 fi
6726
6727 test -z "$DLLTOOL" && DLLTOOL=dlltool
6728
6729
6730
6731
6732
6733
6734
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6736 printf %s "checking how to associate runtime and link libraries... " >&6; }
6737 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6738 then :
6739 printf %s "(cached) " >&6
6740 else case e in #(
6741 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6742
6743 case $host_os in
6744 cygwin* | mingw* | windows* | pw32* | cegcc*)
6745 # two different shell functions defined in ltmain.sh;
6746 # decide which one to use based on capabilities of $DLLTOOL
6747 case `$DLLTOOL --help 2>&1` in
6748 *--identify-strict*)
6749 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6750 ;;
6751 *)
6752 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6753 ;;
6754 esac
6755 ;;
6756 *)
6757 # fallback: assume linklib IS sharedlib
6758 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6759 ;;
6760 esac
6761 ;;
6762 esac
6763 fi
6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6765 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6766 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6767 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6768
6769
6770
6771
6772
6773
6774
6775 if test -n "$ac_tool_prefix"; then
6776 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6777 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779 printf %s "checking for $ac_word... " >&6; }
6780 if test ${ac_cv_prog_RANLIB+y}
6781 then :
6782 printf %s "(cached) " >&6
6783 else case e in #(
6784 e) if test -n "$RANLIB"; then
6785 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6789 do
6790 IFS=$as_save_IFS
6791 case $as_dir in #(((
6792 '') as_dir=./ ;;
6793 */) ;;
6794 *) as_dir=$as_dir/ ;;
6795 esac
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6798 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802 done
6803 done
6804 IFS=$as_save_IFS
6805
6806 fi ;;
6807 esac
6808 fi
6809 RANLIB=$ac_cv_prog_RANLIB
6810 if test -n "$RANLIB"; then
6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6812 printf "%s\n" "$RANLIB" >&6; }
6813 else
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815 printf "%s\n" "no" >&6; }
6816 fi
6817
6818
6819 fi
6820 if test -z "$ac_cv_prog_RANLIB"; then
6821 ac_ct_RANLIB=$RANLIB
6822 # Extract the first word of "ranlib", so it can be a program name with args.
6823 set dummy ranlib; ac_word=$2
6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 printf %s "checking for $ac_word... " >&6; }
6826 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6827 then :
6828 printf %s "(cached) " >&6
6829 else case e in #(
6830 e) if test -n "$ac_ct_RANLIB"; then
6831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836 IFS=$as_save_IFS
6837 case $as_dir in #(((
6838 '') as_dir=./ ;;
6839 */) ;;
6840 *) as_dir=$as_dir/ ;;
6841 esac
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6844 ac_cv_prog_ac_ct_RANLIB="ranlib"
6845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848 done
6849 done
6850 IFS=$as_save_IFS
6851
6852 fi ;;
6853 esac
6854 fi
6855 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6856 if test -n "$ac_ct_RANLIB"; then
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6858 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6859 else
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 printf "%s\n" "no" >&6; }
6862 fi
6863
6864 if test "x$ac_ct_RANLIB" = x; then
6865 RANLIB=":"
6866 else
6867 case $cross_compiling:$ac_tool_warned in
6868 yes:)
6869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6870 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871 ac_tool_warned=yes ;;
6872 esac
6873 RANLIB=$ac_ct_RANLIB
6874 fi
6875 else
6876 RANLIB="$ac_cv_prog_RANLIB"
6877 fi
6878
6879 if test -n "$ac_tool_prefix"; then
6880 for ac_prog in ar
6881 do
6882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 printf %s "checking for $ac_word... " >&6; }
6886 if test ${ac_cv_prog_AR+y}
6887 then :
6888 printf %s "(cached) " >&6
6889 else case e in #(
6890 e) if test -n "$AR"; then
6891 ac_cv_prog_AR="$AR" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896 IFS=$as_save_IFS
6897 case $as_dir in #(((
6898 '') as_dir=./ ;;
6899 */) ;;
6900 *) as_dir=$as_dir/ ;;
6901 esac
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6904 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908 done
6909 done
6910 IFS=$as_save_IFS
6911
6912 fi ;;
6913 esac
6914 fi
6915 AR=$ac_cv_prog_AR
6916 if test -n "$AR"; then
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6918 printf "%s\n" "$AR" >&6; }
6919 else
6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 printf "%s\n" "no" >&6; }
6922 fi
6923
6924
6925 test -n "$AR" && break
6926 done
6927 fi
6928 if test -z "$AR"; then
6929 ac_ct_AR=$AR
6930 for ac_prog in ar
6931 do
6932 # Extract the first word of "$ac_prog", so it can be a program name with args.
6933 set dummy $ac_prog; ac_word=$2
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 printf %s "checking for $ac_word... " >&6; }
6936 if test ${ac_cv_prog_ac_ct_AR+y}
6937 then :
6938 printf %s "(cached) " >&6
6939 else case e in #(
6940 e) if test -n "$ac_ct_AR"; then
6941 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946 IFS=$as_save_IFS
6947 case $as_dir in #(((
6948 '') as_dir=./ ;;
6949 */) ;;
6950 *) as_dir=$as_dir/ ;;
6951 esac
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6954 ac_cv_prog_ac_ct_AR="$ac_prog"
6955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958 done
6959 done
6960 IFS=$as_save_IFS
6961
6962 fi ;;
6963 esac
6964 fi
6965 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6966 if test -n "$ac_ct_AR"; then
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6968 printf "%s\n" "$ac_ct_AR" >&6; }
6969 else
6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 printf "%s\n" "no" >&6; }
6972 fi
6973
6974
6975 test -n "$ac_ct_AR" && break
6976 done
6977
6978 if test "x$ac_ct_AR" = x; then
6979 AR="false"
6980 else
6981 case $cross_compiling:$ac_tool_warned in
6982 yes:)
6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985 ac_tool_warned=yes ;;
6986 esac
6987 AR=$ac_ct_AR
6988 fi
6989 fi
6990
6991 : ${AR=ar}
6992
6993
6994
6995
6996
6997
6998 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6999 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7000 # higher priority because that's what people were doing historically (setting
7001 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7002 # variable obsoleted/removed.
7003
7004 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7005 lt_ar_flags=$AR_FLAGS
7006
7007
7008
7009
7010
7011
7012 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7013 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7014
7015
7016
7017
7018
7019
7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7021 printf %s "checking for archiver @FILE support... " >&6; }
7022 if test ${lt_cv_ar_at_file+y}
7023 then :
7024 printf %s "(cached) " >&6
7025 else case e in #(
7026 e) lt_cv_ar_at_file=no
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7029
7030 int
7031 main (void)
7032 {
7033
7034 ;
7035 return 0;
7036 }
7037 _ACEOF
7038 if ac_fn_c_try_compile "$LINENO"
7039 then :
7040 echo conftest.$ac_objext > conftest.lst
7041 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7043 (eval $lt_ar_try) 2>&5
7044 ac_status=$?
7045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7046 test $ac_status = 0; }
7047 if test 0 -eq "$ac_status"; then
7048 # Ensure the archiver fails upon bogus file names.
7049 rm -f conftest.$ac_objext libconftest.a
7050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7051 (eval $lt_ar_try) 2>&5
7052 ac_status=$?
7053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054 test $ac_status = 0; }
7055 if test 0 -ne "$ac_status"; then
7056 lt_cv_ar_at_file=@
7057 fi
7058 fi
7059 rm -f conftest.* libconftest.a
7060
7061 fi
7062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7063 ;;
7064 esac
7065 fi
7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7067 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7068
7069 if test no = "$lt_cv_ar_at_file"; then
7070 archiver_list_spec=
7071 else
7072 archiver_list_spec=$lt_cv_ar_at_file
7073 fi
7074
7075
7076
7077
7078
7079
7080
7081 if test -n "$ac_tool_prefix"; then
7082 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7083 set dummy ${ac_tool_prefix}strip; ac_word=$2
7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 printf %s "checking for $ac_word... " >&6; }
7086 if test ${ac_cv_prog_STRIP+y}
7087 then :
7088 printf %s "(cached) " >&6
7089 else case e in #(
7090 e) if test -n "$STRIP"; then
7091 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096 IFS=$as_save_IFS
7097 case $as_dir in #(((
7098 '') as_dir=./ ;;
7099 */) ;;
7100 *) as_dir=$as_dir/ ;;
7101 esac
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112 fi ;;
7113 esac
7114 fi
7115 STRIP=$ac_cv_prog_STRIP
7116 if test -n "$STRIP"; then
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7118 printf "%s\n" "$STRIP" >&6; }
7119 else
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 printf "%s\n" "no" >&6; }
7122 fi
7123
7124
7125 fi
7126 if test -z "$ac_cv_prog_STRIP"; then
7127 ac_ct_STRIP=$STRIP
7128 # Extract the first word of "strip", so it can be a program name with args.
7129 set dummy strip; ac_word=$2
7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 printf %s "checking for $ac_word... " >&6; }
7132 if test ${ac_cv_prog_ac_ct_STRIP+y}
7133 then :
7134 printf %s "(cached) " >&6
7135 else case e in #(
7136 e) if test -n "$ac_ct_STRIP"; then
7137 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142 IFS=$as_save_IFS
7143 case $as_dir in #(((
7144 '') as_dir=./ ;;
7145 */) ;;
7146 *) as_dir=$as_dir/ ;;
7147 esac
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7150 ac_cv_prog_ac_ct_STRIP="strip"
7151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7152 break 2
7153 fi
7154 done
7155 done
7156 IFS=$as_save_IFS
7157
7158 fi ;;
7159 esac
7160 fi
7161 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7162 if test -n "$ac_ct_STRIP"; then
7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7164 printf "%s\n" "$ac_ct_STRIP" >&6; }
7165 else
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 printf "%s\n" "no" >&6; }
7168 fi
7169
7170 if test "x$ac_ct_STRIP" = x; then
7171 STRIP=":"
7172 else
7173 case $cross_compiling:$ac_tool_warned in
7174 yes:)
7175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177 ac_tool_warned=yes ;;
7178 esac
7179 STRIP=$ac_ct_STRIP
7180 fi
7181 else
7182 STRIP="$ac_cv_prog_STRIP"
7183 fi
7184
7185 test -z "$STRIP" && STRIP=:
7186
7187
7188
7189
7190
7191
7192
7193 test -z "$RANLIB" && RANLIB=:
7194
7195
7196
7197
7198
7199
7200 # Determine commands to create old-style static archives.
7201 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7202 old_postinstall_cmds='chmod 644 $oldlib'
7203 old_postuninstall_cmds=
7204
7205 if test -n "$RANLIB"; then
7206 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7207 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7208 fi
7209
7210 case $host_os in
7211 darwin*)
7212 lock_old_archive_extraction=yes ;;
7213 *)
7214 lock_old_archive_extraction=no ;;
7215 esac
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255 # If no C compiler was specified, use CC.
7256 LTCC=${LTCC-"$CC"}
7257
7258 # If no C compiler flags were specified, use CFLAGS.
7259 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7260
7261 # Allow CC to be a program name with arguments.
7262 compiler=$CC
7263
7264
7265 # Check for command to grab the raw symbol name followed by C symbol from nm.
7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7267 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7268 if test ${lt_cv_sys_global_symbol_pipe+y}
7269 then :
7270 printf %s "(cached) " >&6
7271 else case e in #(
7272 e)
7273 # These are sane defaults that work on at least a few old systems.
7274 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7275
7276 # Character class describing NM global symbol codes.
7277 symcode='[BCDEGRST]'
7278
7279 # Regexp to match symbols that can be accessed directly from C.
7280 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7281
7282 # Define system-specific variables.
7283 case $host_os in
7284 aix*)
7285 symcode='[BCDT]'
7286 ;;
7287 cygwin* | mingw* | windows* | pw32* | cegcc*)
7288 symcode='[ABCDGISTW]'
7289 ;;
7290 hpux*)
7291 if test ia64 = "$host_cpu"; then
7292 symcode='[ABCDEGRST]'
7293 fi
7294 ;;
7295 irix* | nonstopux*)
7296 symcode='[BCDEGRST]'
7297 ;;
7298 osf*)
7299 symcode='[BCDEGQRST]'
7300 ;;
7301 solaris*)
7302 symcode='[BCDRT]'
7303 ;;
7304 sco3.2v5*)
7305 symcode='[DT]'
7306 ;;
7307 sysv4.2uw2*)
7308 symcode='[DT]'
7309 ;;
7310 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7311 symcode='[ABDT]'
7312 ;;
7313 sysv4)
7314 symcode='[DFNSTU]'
7315 ;;
7316 esac
7317
7318 # If we're using GNU nm, then use its standard symbol codes.
7319 case `$NM -V 2>&1` in
7320 *GNU* | *'with BFD'*)
7321 symcode='[ABCDGIRSTW]' ;;
7322 esac
7323
7324 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7325 # Gets list of data symbols to import.
7326 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7327 # Adjust the below global symbol transforms to fixup imported variables.
7328 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7329 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7330 lt_c_name_lib_hook="\
7331 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7332 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7333 else
7334 # Disable hooks by default.
7335 lt_cv_sys_global_symbol_to_import=
7336 lt_cdecl_hook=
7337 lt_c_name_hook=
7338 lt_c_name_lib_hook=
7339 fi
7340
7341 # Transform an extracted symbol line into a proper C declaration.
7342 # Some systems (esp. on ia64) link data and code symbols differently,
7343 # so use this general approach.
7344 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7345 $lt_cdecl_hook\
7346 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7347 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7348
7349 # Transform an extracted symbol line into symbol name and symbol address
7350 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7351 $lt_c_name_hook\
7352 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7353 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7354
7355 # Transform an extracted symbol line into symbol name with lib prefix and
7356 # symbol address.
7357 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7358 $lt_c_name_lib_hook\
7359 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7360 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7361 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7362
7363 # Handle CRLF in mingw tool chain
7364 opt_cr=
7365 case $build_os in
7366 mingw* | windows*)
7367 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7368 ;;
7369 esac
7370
7371 # Try without a prefix underscore, then with it.
7372 for ac_symprfx in "" "_"; do
7373
7374 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7375 symxfrm="\\1 $ac_symprfx\\2 \\2"
7376
7377 # Write the raw and C identifiers.
7378 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7379 # Fake it for dumpbin and say T for any non-static function,
7380 # D for any global variable and I for any imported variable.
7381 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7382 # which start with @ or ?.
7383 lt_cv_sys_global_symbol_pipe="$AWK '"\
7384 " {last_section=section; section=\$ 3};"\
7385 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7386 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7387 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7388 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7389 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7390 " \$ 0!~/External *\|/{next};"\
7391 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7392 " {if(hide[section]) next};"\
7393 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7394 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7395 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7396 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7397 " ' prfx=^$ac_symprfx"
7398 else
7399 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7400 fi
7401 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7402
7403 # Check to see that the pipe works correctly.
7404 pipe_works=no
7405
7406 rm -f conftest*
7407 cat > conftest.$ac_ext <<_LT_EOF
7408 #ifdef __cplusplus
7409 extern "C" {
7410 #endif
7411 char nm_test_var;
7412 void nm_test_func(void);
7413 void nm_test_func(void){}
7414 #ifdef __cplusplus
7415 }
7416 #endif
7417 int main(void){nm_test_var='a';nm_test_func();return(0);}
7418 _LT_EOF
7419
7420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7421 (eval $ac_compile) 2>&5
7422 ac_status=$?
7423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7424 test $ac_status = 0; }; then
7425 # Now try to grab the symbols.
7426 nlist=conftest.nm
7427 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7428 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7429 # Try sorting and uniquifying the output.
7430 if sort "$nlist" | uniq > "$nlist"T; then
7431 mv -f "$nlist"T "$nlist"
7432 else
7433 rm -f "$nlist"T
7434 fi
7435
7436 # Make sure that we snagged all the symbols we need.
7437 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7438 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7439 cat <<_LT_EOF > conftest.$ac_ext
7440 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7441 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7442 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7443 relocations are performed -- see ld's documentation on pseudo-relocs. */
7444 # define LT_DLSYM_CONST
7445 #elif defined __osf__
7446 /* This system does not cope well with relocations in const data. */
7447 # define LT_DLSYM_CONST
7448 #else
7449 # define LT_DLSYM_CONST const
7450 #endif
7451
7452 #ifdef __cplusplus
7453 extern "C" {
7454 #endif
7455
7456 _LT_EOF
7457 # Now generate the symbol file.
7458 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7459
7460 cat <<_LT_EOF >> conftest.$ac_ext
7461
7462 /* The mapping between symbol names and symbols. */
7463 LT_DLSYM_CONST struct {
7464 const char *name;
7465 void *address;
7466 }
7467 lt__PROGRAM__LTX_preloaded_symbols[] =
7468 {
7469 { "@PROGRAM@", (void *) 0 },
7470 _LT_EOF
7471 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7472 cat <<\_LT_EOF >> conftest.$ac_ext
7473 {0, (void *) 0}
7474 };
7475
7476 /* This works around a problem in FreeBSD linker */
7477 #ifdef FREEBSD_WORKAROUND
7478 static const void *lt_preloaded_setup() {
7479 return lt__PROGRAM__LTX_preloaded_symbols;
7480 }
7481 #endif
7482
7483 #ifdef __cplusplus
7484 }
7485 #endif
7486 _LT_EOF
7487 # Now try linking the two files.
7488 mv conftest.$ac_objext conftstm.$ac_objext
7489 lt_globsym_save_LIBS=$LIBS
7490 lt_globsym_save_CFLAGS=$CFLAGS
7491 LIBS=conftstm.$ac_objext
7492 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7494 (eval $ac_link) 2>&5
7495 ac_status=$?
7496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7498 pipe_works=yes
7499 fi
7500 LIBS=$lt_globsym_save_LIBS
7501 CFLAGS=$lt_globsym_save_CFLAGS
7502 else
7503 echo "cannot find nm_test_func in $nlist" >&5
7504 fi
7505 else
7506 echo "cannot find nm_test_var in $nlist" >&5
7507 fi
7508 else
7509 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7510 fi
7511 else
7512 echo "$progname: failed program was:" >&5
7513 cat conftest.$ac_ext >&5
7514 fi
7515 rm -rf conftest* conftst*
7516
7517 # Do not use the global_symbol_pipe unless it works.
7518 if test yes = "$pipe_works"; then
7519 break
7520 else
7521 lt_cv_sys_global_symbol_pipe=
7522 fi
7523 done
7524 ;;
7525 esac
7526 fi
7527
7528 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7529 lt_cv_sys_global_symbol_to_cdecl=
7530 fi
7531 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7533 printf "%s\n" "failed" >&6; }
7534 else
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7536 printf "%s\n" "ok" >&6; }
7537 fi
7538
7539 # Response file support.
7540 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7541 nm_file_list_spec='@'
7542 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7543 nm_file_list_spec='@'
7544 fi
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7583 printf %s "checking for sysroot... " >&6; }
7584
7585 # Check whether --with-sysroot was given.
7586 if test ${with_sysroot+y}
7587 then :
7588 withval=$with_sysroot;
7589 else case e in #(
7590 e) with_sysroot=no ;;
7591 esac
7592 fi
7593
7594
7595 lt_sysroot=
7596 case $with_sysroot in #(
7597 yes)
7598 if test yes = "$GCC"; then
7599 # Trim trailing / since we'll always append absolute paths and we want
7600 # to avoid //, if only for less confusing output for the user.
7601 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7602 fi
7603 ;; #(
7604 /*)
7605 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7606 ;; #(
7607 no|'')
7608 ;; #(
7609 *)
7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7611 printf "%s\n" "$with_sysroot" >&6; }
7612 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7613 ;;
7614 esac
7615
7616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7617 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7618
7619
7620
7621
7622
7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7624 printf %s "checking for a working dd... " >&6; }
7625 if test ${ac_cv_path_lt_DD+y}
7626 then :
7627 printf %s "(cached) " >&6
7628 else case e in #(
7629 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7630 cat conftest.i conftest.i >conftest2.i
7631 : ${lt_DD:=$DD}
7632 if test -z "$lt_DD"; then
7633 ac_path_lt_DD_found=false
7634 # Loop through the user's path and test for each of PROGNAME-LIST
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638 IFS=$as_save_IFS
7639 case $as_dir in #(((
7640 '') as_dir=./ ;;
7641 */) ;;
7642 *) as_dir=$as_dir/ ;;
7643 esac
7644 for ac_prog in dd
7645 do
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7648 as_fn_executable_p "$ac_path_lt_DD" || continue
7649 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7650 cmp -s conftest.i conftest.out \
7651 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7652 fi
7653 $ac_path_lt_DD_found && break 3
7654 done
7655 done
7656 done
7657 IFS=$as_save_IFS
7658 if test -z "$ac_cv_path_lt_DD"; then
7659 :
7660 fi
7661 else
7662 ac_cv_path_lt_DD=$lt_DD
7663 fi
7664
7665 rm -f conftest.i conftest2.i conftest.out ;;
7666 esac
7667 fi
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7669 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7670
7671
7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7673 printf %s "checking how to truncate binary pipes... " >&6; }
7674 if test ${lt_cv_truncate_bin+y}
7675 then :
7676 printf %s "(cached) " >&6
7677 else case e in #(
7678 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7679 cat conftest.i conftest.i >conftest2.i
7680 lt_cv_truncate_bin=
7681 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7682 cmp -s conftest.i conftest.out \
7683 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7684 fi
7685 rm -f conftest.i conftest2.i conftest.out
7686 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7687 esac
7688 fi
7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7690 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7691
7692
7693
7694
7695
7696
7697
7698 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7699 func_cc_basename ()
7700 {
7701 for cc_temp in $*""; do
7702 case $cc_temp in
7703 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7704 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7705 \-*) ;;
7706 *) break;;
7707 esac
7708 done
7709 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7710 }
7711
7712 # Check whether --enable-libtool-lock was given.
7713 if test ${enable_libtool_lock+y}
7714 then :
7715 enableval=$enable_libtool_lock;
7716 fi
7717
7718 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7719
7720 # Some flags need to be propagated to the compiler or linker for good
7721 # libtool support.
7722 case $host in
7723 ia64-*-hpux*)
7724 # Find out what ABI is being produced by ac_compile, and set mode
7725 # options accordingly.
7726 echo 'int i;' > conftest.$ac_ext
7727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7728 (eval $ac_compile) 2>&5
7729 ac_status=$?
7730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7731 test $ac_status = 0; }; then
7732 case `$FILECMD conftest.$ac_objext` in
7733 *ELF-32*)
7734 HPUX_IA64_MODE=32
7735 ;;
7736 *ELF-64*)
7737 HPUX_IA64_MODE=64
7738 ;;
7739 esac
7740 fi
7741 rm -rf conftest*
7742 ;;
7743 *-*-irix6*)
7744 # Find out what ABI is being produced by ac_compile, and set linker
7745 # options accordingly.
7746 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7748 (eval $ac_compile) 2>&5
7749 ac_status=$?
7750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7751 test $ac_status = 0; }; then
7752 if test yes = "$lt_cv_prog_gnu_ld"; then
7753 case `$FILECMD conftest.$ac_objext` in
7754 *32-bit*)
7755 LD="${LD-ld} -melf32bsmip"
7756 ;;
7757 *N32*)
7758 LD="${LD-ld} -melf32bmipn32"
7759 ;;
7760 *64-bit*)
7761 LD="${LD-ld} -melf64bmip"
7762 ;;
7763 esac
7764 else
7765 case `$FILECMD conftest.$ac_objext` in
7766 *32-bit*)
7767 LD="${LD-ld} -32"
7768 ;;
7769 *N32*)
7770 LD="${LD-ld} -n32"
7771 ;;
7772 *64-bit*)
7773 LD="${LD-ld} -64"
7774 ;;
7775 esac
7776 fi
7777 fi
7778 rm -rf conftest*
7779 ;;
7780
7781 mips64*-*linux*)
7782 # Find out what ABI is being produced by ac_compile, and set linker
7783 # options accordingly.
7784 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7786 (eval $ac_compile) 2>&5
7787 ac_status=$?
7788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7789 test $ac_status = 0; }; then
7790 emul=elf
7791 case `$FILECMD conftest.$ac_objext` in
7792 *32-bit*)
7793 emul="${emul}32"
7794 ;;
7795 *64-bit*)
7796 emul="${emul}64"
7797 ;;
7798 esac
7799 case `$FILECMD conftest.$ac_objext` in
7800 *MSB*)
7801 emul="${emul}btsmip"
7802 ;;
7803 *LSB*)
7804 emul="${emul}ltsmip"
7805 ;;
7806 esac
7807 case `$FILECMD conftest.$ac_objext` in
7808 *N32*)
7809 emul="${emul}n32"
7810 ;;
7811 esac
7812 LD="${LD-ld} -m $emul"
7813 fi
7814 rm -rf conftest*
7815 ;;
7816
7817 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7818 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7819 # Find out what ABI is being produced by ac_compile, and set linker
7820 # options accordingly. Note that the listed cases only cover the
7821 # situations where additional linker options are needed (such as when
7822 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7823 # vice versa); the common cases where no linker options are needed do
7824 # not appear in the list.
7825 echo 'int i;' > conftest.$ac_ext
7826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7827 (eval $ac_compile) 2>&5
7828 ac_status=$?
7829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7830 test $ac_status = 0; }; then
7831 case `$FILECMD conftest.o` in
7832 *32-bit*)
7833 case $host in
7834 x86_64-*kfreebsd*-gnu)
7835 LD="${LD-ld} -m elf_i386_fbsd"
7836 ;;
7837 x86_64-*linux*|x86_64-gnu*)
7838 case `$FILECMD conftest.o` in
7839 *x86-64*)
7840 LD="${LD-ld} -m elf32_x86_64"
7841 ;;
7842 *)
7843 LD="${LD-ld} -m elf_i386"
7844 ;;
7845 esac
7846 ;;
7847 powerpc64le-*linux*)
7848 LD="${LD-ld} -m elf32lppclinux"
7849 ;;
7850 powerpc64-*linux*)
7851 LD="${LD-ld} -m elf32ppclinux"
7852 ;;
7853 s390x-*linux*)
7854 LD="${LD-ld} -m elf_s390"
7855 ;;
7856 sparc64-*linux*)
7857 LD="${LD-ld} -m elf32_sparc"
7858 ;;
7859 esac
7860 ;;
7861 *64-bit*)
7862 case $host in
7863 x86_64-*kfreebsd*-gnu)
7864 LD="${LD-ld} -m elf_x86_64_fbsd"
7865 ;;
7866 x86_64-*linux*|x86_64-gnu*)
7867 LD="${LD-ld} -m elf_x86_64"
7868 ;;
7869 powerpcle-*linux*)
7870 LD="${LD-ld} -m elf64lppc"
7871 ;;
7872 powerpc-*linux*)
7873 LD="${LD-ld} -m elf64ppc"
7874 ;;
7875 s390*-*linux*|s390*-*tpf*)
7876 LD="${LD-ld} -m elf64_s390"
7877 ;;
7878 sparc*-*linux*)
7879 LD="${LD-ld} -m elf64_sparc"
7880 ;;
7881 esac
7882 ;;
7883 esac
7884 fi
7885 rm -rf conftest*
7886 ;;
7887
7888 *-*-sco3.2v5*)
7889 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7890 SAVE_CFLAGS=$CFLAGS
7891 CFLAGS="$CFLAGS -belf"
7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7893 printf %s "checking whether the C compiler needs -belf... " >&6; }
7894 if test ${lt_cv_cc_needs_belf+y}
7895 then :
7896 printf %s "(cached) " >&6
7897 else case e in #(
7898 e) ac_ext=c
7899 ac_cpp='$CPP $CPPFLAGS'
7900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7903
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906
7907 int
7908 main (void)
7909 {
7910
7911 ;
7912 return 0;
7913 }
7914 _ACEOF
7915 if ac_fn_c_try_link "$LINENO"
7916 then :
7917 lt_cv_cc_needs_belf=yes
7918 else case e in #(
7919 e) lt_cv_cc_needs_belf=no ;;
7920 esac
7921 fi
7922 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7923 conftest$ac_exeext conftest.$ac_ext
7924 ac_ext=c
7925 ac_cpp='$CPP $CPPFLAGS'
7926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7929 ;;
7930 esac
7931 fi
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7933 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7934 if test yes != "$lt_cv_cc_needs_belf"; then
7935 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7936 CFLAGS=$SAVE_CFLAGS
7937 fi
7938 ;;
7939 *-*solaris*)
7940 # Find out what ABI is being produced by ac_compile, and set linker
7941 # options accordingly.
7942 echo 'int i;' > conftest.$ac_ext
7943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7944 (eval $ac_compile) 2>&5
7945 ac_status=$?
7946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7947 test $ac_status = 0; }; then
7948 case `$FILECMD conftest.o` in
7949 *64-bit*)
7950 case $lt_cv_prog_gnu_ld in
7951 yes*)
7952 case $host in
7953 i?86-*-solaris*|x86_64-*-solaris*)
7954 LD="${LD-ld} -m elf_x86_64"
7955 ;;
7956 sparc*-*-solaris*)
7957 LD="${LD-ld} -m elf64_sparc"
7958 ;;
7959 esac
7960 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7961 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7962 LD=${LD-ld}_sol2
7963 fi
7964 ;;
7965 *)
7966 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7967 LD="${LD-ld} -64"
7968 fi
7969 ;;
7970 esac
7971 ;;
7972 esac
7973 fi
7974 rm -rf conftest*
7975 ;;
7976 esac
7977
7978 need_locks=$enable_libtool_lock
7979
7980 if test -n "$ac_tool_prefix"; then
7981 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7982 set dummy ${ac_tool_prefix}mt; ac_word=$2
7983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 printf %s "checking for $ac_word... " >&6; }
7985 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7986 then :
7987 printf %s "(cached) " >&6
7988 else case e in #(
7989 e) if test -n "$MANIFEST_TOOL"; then
7990 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7991 else
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7994 do
7995 IFS=$as_save_IFS
7996 case $as_dir in #(((
7997 '') as_dir=./ ;;
7998 */) ;;
7999 *) as_dir=$as_dir/ ;;
8000 esac
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8003 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8005 break 2
8006 fi
8007 done
8008 done
8009 IFS=$as_save_IFS
8010
8011 fi ;;
8012 esac
8013 fi
8014 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8015 if test -n "$MANIFEST_TOOL"; then
8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8017 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8018 else
8019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 printf "%s\n" "no" >&6; }
8021 fi
8022
8023
8024 fi
8025 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8026 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8027 # Extract the first word of "mt", so it can be a program name with args.
8028 set dummy mt; ac_word=$2
8029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030 printf %s "checking for $ac_word... " >&6; }
8031 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8032 then :
8033 printf %s "(cached) " >&6
8034 else case e in #(
8035 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8036 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8037 else
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8040 do
8041 IFS=$as_save_IFS
8042 case $as_dir in #(((
8043 '') as_dir=./ ;;
8044 */) ;;
8045 *) as_dir=$as_dir/ ;;
8046 esac
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8049 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8051 break 2
8052 fi
8053 done
8054 done
8055 IFS=$as_save_IFS
8056
8057 fi ;;
8058 esac
8059 fi
8060 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8061 if test -n "$ac_ct_MANIFEST_TOOL"; then
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8063 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8064 else
8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 printf "%s\n" "no" >&6; }
8067 fi
8068
8069 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8070 MANIFEST_TOOL=":"
8071 else
8072 case $cross_compiling:$ac_tool_warned in
8073 yes:)
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8075 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8076 ac_tool_warned=yes ;;
8077 esac
8078 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8079 fi
8080 else
8081 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8082 fi
8083
8084 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8086 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8087 if test ${lt_cv_path_manifest_tool+y}
8088 then :
8089 printf %s "(cached) " >&6
8090 else case e in #(
8091 e) lt_cv_path_manifest_tool=no
8092 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8093 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8094 cat conftest.err >&5
8095 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8096 lt_cv_path_manifest_tool=yes
8097 fi
8098 rm -f conftest* ;;
8099 esac
8100 fi
8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8102 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8103 if test yes != "$lt_cv_path_manifest_tool"; then
8104 MANIFEST_TOOL=:
8105 fi
8106
8107
8108
8109
8110
8111
8112 case $host_os in
8113 rhapsody* | darwin*)
8114 if test -n "$ac_tool_prefix"; then
8115 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8116 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 printf %s "checking for $ac_word... " >&6; }
8119 if test ${ac_cv_prog_DSYMUTIL+y}
8120 then :
8121 printf %s "(cached) " >&6
8122 else case e in #(
8123 e) if test -n "$DSYMUTIL"; then
8124 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8125 else
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 for as_dir in $PATH
8128 do
8129 IFS=$as_save_IFS
8130 case $as_dir in #(((
8131 '') as_dir=./ ;;
8132 */) ;;
8133 *) as_dir=$as_dir/ ;;
8134 esac
8135 for ac_exec_ext in '' $ac_executable_extensions; do
8136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8137 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8139 break 2
8140 fi
8141 done
8142 done
8143 IFS=$as_save_IFS
8144
8145 fi ;;
8146 esac
8147 fi
8148 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8149 if test -n "$DSYMUTIL"; then
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8151 printf "%s\n" "$DSYMUTIL" >&6; }
8152 else
8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 printf "%s\n" "no" >&6; }
8155 fi
8156
8157
8158 fi
8159 if test -z "$ac_cv_prog_DSYMUTIL"; then
8160 ac_ct_DSYMUTIL=$DSYMUTIL
8161 # Extract the first word of "dsymutil", so it can be a program name with args.
8162 set dummy dsymutil; ac_word=$2
8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 printf %s "checking for $ac_word... " >&6; }
8165 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8166 then :
8167 printf %s "(cached) " >&6
8168 else case e in #(
8169 e) if test -n "$ac_ct_DSYMUTIL"; then
8170 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8171 else
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 for as_dir in $PATH
8174 do
8175 IFS=$as_save_IFS
8176 case $as_dir in #(((
8177 '') as_dir=./ ;;
8178 */) ;;
8179 *) as_dir=$as_dir/ ;;
8180 esac
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8183 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8185 break 2
8186 fi
8187 done
8188 done
8189 IFS=$as_save_IFS
8190
8191 fi ;;
8192 esac
8193 fi
8194 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8195 if test -n "$ac_ct_DSYMUTIL"; then
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8197 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8198 else
8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 printf "%s\n" "no" >&6; }
8201 fi
8202
8203 if test "x$ac_ct_DSYMUTIL" = x; then
8204 DSYMUTIL=":"
8205 else
8206 case $cross_compiling:$ac_tool_warned in
8207 yes:)
8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8209 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8210 ac_tool_warned=yes ;;
8211 esac
8212 DSYMUTIL=$ac_ct_DSYMUTIL
8213 fi
8214 else
8215 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8216 fi
8217
8218 if test -n "$ac_tool_prefix"; then
8219 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8220 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 printf %s "checking for $ac_word... " >&6; }
8223 if test ${ac_cv_prog_NMEDIT+y}
8224 then :
8225 printf %s "(cached) " >&6
8226 else case e in #(
8227 e) if test -n "$NMEDIT"; then
8228 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8229 else
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 for as_dir in $PATH
8232 do
8233 IFS=$as_save_IFS
8234 case $as_dir in #(((
8235 '') as_dir=./ ;;
8236 */) ;;
8237 *) as_dir=$as_dir/ ;;
8238 esac
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8243 break 2
8244 fi
8245 done
8246 done
8247 IFS=$as_save_IFS
8248
8249 fi ;;
8250 esac
8251 fi
8252 NMEDIT=$ac_cv_prog_NMEDIT
8253 if test -n "$NMEDIT"; then
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8255 printf "%s\n" "$NMEDIT" >&6; }
8256 else
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 printf "%s\n" "no" >&6; }
8259 fi
8260
8261
8262 fi
8263 if test -z "$ac_cv_prog_NMEDIT"; then
8264 ac_ct_NMEDIT=$NMEDIT
8265 # Extract the first word of "nmedit", so it can be a program name with args.
8266 set dummy nmedit; ac_word=$2
8267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8268 printf %s "checking for $ac_word... " >&6; }
8269 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8270 then :
8271 printf %s "(cached) " >&6
8272 else case e in #(
8273 e) if test -n "$ac_ct_NMEDIT"; then
8274 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8275 else
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 for as_dir in $PATH
8278 do
8279 IFS=$as_save_IFS
8280 case $as_dir in #(((
8281 '') as_dir=./ ;;
8282 */) ;;
8283 *) as_dir=$as_dir/ ;;
8284 esac
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8287 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8289 break 2
8290 fi
8291 done
8292 done
8293 IFS=$as_save_IFS
8294
8295 fi ;;
8296 esac
8297 fi
8298 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8299 if test -n "$ac_ct_NMEDIT"; then
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8301 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8302 else
8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 printf "%s\n" "no" >&6; }
8305 fi
8306
8307 if test "x$ac_ct_NMEDIT" = x; then
8308 NMEDIT=":"
8309 else
8310 case $cross_compiling:$ac_tool_warned in
8311 yes:)
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8313 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8314 ac_tool_warned=yes ;;
8315 esac
8316 NMEDIT=$ac_ct_NMEDIT
8317 fi
8318 else
8319 NMEDIT="$ac_cv_prog_NMEDIT"
8320 fi
8321
8322 if test -n "$ac_tool_prefix"; then
8323 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8324 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8326 printf %s "checking for $ac_word... " >&6; }
8327 if test ${ac_cv_prog_LIPO+y}
8328 then :
8329 printf %s "(cached) " >&6
8330 else case e in #(
8331 e) if test -n "$LIPO"; then
8332 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8333 else
8334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335 for as_dir in $PATH
8336 do
8337 IFS=$as_save_IFS
8338 case $as_dir in #(((
8339 '') as_dir=./ ;;
8340 */) ;;
8341 *) as_dir=$as_dir/ ;;
8342 esac
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8345 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8347 break 2
8348 fi
8349 done
8350 done
8351 IFS=$as_save_IFS
8352
8353 fi ;;
8354 esac
8355 fi
8356 LIPO=$ac_cv_prog_LIPO
8357 if test -n "$LIPO"; then
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8359 printf "%s\n" "$LIPO" >&6; }
8360 else
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362 printf "%s\n" "no" >&6; }
8363 fi
8364
8365
8366 fi
8367 if test -z "$ac_cv_prog_LIPO"; then
8368 ac_ct_LIPO=$LIPO
8369 # Extract the first word of "lipo", so it can be a program name with args.
8370 set dummy lipo; ac_word=$2
8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372 printf %s "checking for $ac_word... " >&6; }
8373 if test ${ac_cv_prog_ac_ct_LIPO+y}
8374 then :
8375 printf %s "(cached) " >&6
8376 else case e in #(
8377 e) if test -n "$ac_ct_LIPO"; then
8378 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8379 else
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 for as_dir in $PATH
8382 do
8383 IFS=$as_save_IFS
8384 case $as_dir in #(((
8385 '') as_dir=./ ;;
8386 */) ;;
8387 *) as_dir=$as_dir/ ;;
8388 esac
8389 for ac_exec_ext in '' $ac_executable_extensions; do
8390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8391 ac_cv_prog_ac_ct_LIPO="lipo"
8392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8393 break 2
8394 fi
8395 done
8396 done
8397 IFS=$as_save_IFS
8398
8399 fi ;;
8400 esac
8401 fi
8402 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8403 if test -n "$ac_ct_LIPO"; then
8404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8405 printf "%s\n" "$ac_ct_LIPO" >&6; }
8406 else
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408 printf "%s\n" "no" >&6; }
8409 fi
8410
8411 if test "x$ac_ct_LIPO" = x; then
8412 LIPO=":"
8413 else
8414 case $cross_compiling:$ac_tool_warned in
8415 yes:)
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8417 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8418 ac_tool_warned=yes ;;
8419 esac
8420 LIPO=$ac_ct_LIPO
8421 fi
8422 else
8423 LIPO="$ac_cv_prog_LIPO"
8424 fi
8425
8426 if test -n "$ac_tool_prefix"; then
8427 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8428 set dummy ${ac_tool_prefix}otool; ac_word=$2
8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 printf %s "checking for $ac_word... " >&6; }
8431 if test ${ac_cv_prog_OTOOL+y}
8432 then :
8433 printf %s "(cached) " >&6
8434 else case e in #(
8435 e) if test -n "$OTOOL"; then
8436 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8437 else
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8440 do
8441 IFS=$as_save_IFS
8442 case $as_dir in #(((
8443 '') as_dir=./ ;;
8444 */) ;;
8445 *) as_dir=$as_dir/ ;;
8446 esac
8447 for ac_exec_ext in '' $ac_executable_extensions; do
8448 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8449 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8451 break 2
8452 fi
8453 done
8454 done
8455 IFS=$as_save_IFS
8456
8457 fi ;;
8458 esac
8459 fi
8460 OTOOL=$ac_cv_prog_OTOOL
8461 if test -n "$OTOOL"; then
8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8463 printf "%s\n" "$OTOOL" >&6; }
8464 else
8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8466 printf "%s\n" "no" >&6; }
8467 fi
8468
8469
8470 fi
8471 if test -z "$ac_cv_prog_OTOOL"; then
8472 ac_ct_OTOOL=$OTOOL
8473 # Extract the first word of "otool", so it can be a program name with args.
8474 set dummy otool; ac_word=$2
8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8476 printf %s "checking for $ac_word... " >&6; }
8477 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8478 then :
8479 printf %s "(cached) " >&6
8480 else case e in #(
8481 e) if test -n "$ac_ct_OTOOL"; then
8482 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8483 else
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485 for as_dir in $PATH
8486 do
8487 IFS=$as_save_IFS
8488 case $as_dir in #(((
8489 '') as_dir=./ ;;
8490 */) ;;
8491 *) as_dir=$as_dir/ ;;
8492 esac
8493 for ac_exec_ext in '' $ac_executable_extensions; do
8494 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8495 ac_cv_prog_ac_ct_OTOOL="otool"
8496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8497 break 2
8498 fi
8499 done
8500 done
8501 IFS=$as_save_IFS
8502
8503 fi ;;
8504 esac
8505 fi
8506 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8507 if test -n "$ac_ct_OTOOL"; then
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8509 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8510 else
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8512 printf "%s\n" "no" >&6; }
8513 fi
8514
8515 if test "x$ac_ct_OTOOL" = x; then
8516 OTOOL=":"
8517 else
8518 case $cross_compiling:$ac_tool_warned in
8519 yes:)
8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8521 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8522 ac_tool_warned=yes ;;
8523 esac
8524 OTOOL=$ac_ct_OTOOL
8525 fi
8526 else
8527 OTOOL="$ac_cv_prog_OTOOL"
8528 fi
8529
8530 if test -n "$ac_tool_prefix"; then
8531 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8532 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 printf %s "checking for $ac_word... " >&6; }
8535 if test ${ac_cv_prog_OTOOL64+y}
8536 then :
8537 printf %s "(cached) " >&6
8538 else case e in #(
8539 e) if test -n "$OTOOL64"; then
8540 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8541 else
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH
8544 do
8545 IFS=$as_save_IFS
8546 case $as_dir in #(((
8547 '') as_dir=./ ;;
8548 */) ;;
8549 *) as_dir=$as_dir/ ;;
8550 esac
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8553 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8555 break 2
8556 fi
8557 done
8558 done
8559 IFS=$as_save_IFS
8560
8561 fi ;;
8562 esac
8563 fi
8564 OTOOL64=$ac_cv_prog_OTOOL64
8565 if test -n "$OTOOL64"; then
8566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8567 printf "%s\n" "$OTOOL64" >&6; }
8568 else
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 printf "%s\n" "no" >&6; }
8571 fi
8572
8573
8574 fi
8575 if test -z "$ac_cv_prog_OTOOL64"; then
8576 ac_ct_OTOOL64=$OTOOL64
8577 # Extract the first word of "otool64", so it can be a program name with args.
8578 set dummy otool64; ac_word=$2
8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 printf %s "checking for $ac_word... " >&6; }
8581 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8582 then :
8583 printf %s "(cached) " >&6
8584 else case e in #(
8585 e) if test -n "$ac_ct_OTOOL64"; then
8586 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8587 else
8588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589 for as_dir in $PATH
8590 do
8591 IFS=$as_save_IFS
8592 case $as_dir in #(((
8593 '') as_dir=./ ;;
8594 */) ;;
8595 *) as_dir=$as_dir/ ;;
8596 esac
8597 for ac_exec_ext in '' $ac_executable_extensions; do
8598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8599 ac_cv_prog_ac_ct_OTOOL64="otool64"
8600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8601 break 2
8602 fi
8603 done
8604 done
8605 IFS=$as_save_IFS
8606
8607 fi ;;
8608 esac
8609 fi
8610 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8611 if test -n "$ac_ct_OTOOL64"; then
8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8613 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8614 else
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 printf "%s\n" "no" >&6; }
8617 fi
8618
8619 if test "x$ac_ct_OTOOL64" = x; then
8620 OTOOL64=":"
8621 else
8622 case $cross_compiling:$ac_tool_warned in
8623 yes:)
8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8625 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8626 ac_tool_warned=yes ;;
8627 esac
8628 OTOOL64=$ac_ct_OTOOL64
8629 fi
8630 else
8631 OTOOL64="$ac_cv_prog_OTOOL64"
8632 fi
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8661 printf %s "checking for -single_module linker flag... " >&6; }
8662 if test ${lt_cv_apple_cc_single_mod+y}
8663 then :
8664 printf %s "(cached) " >&6
8665 else case e in #(
8666 e) lt_cv_apple_cc_single_mod=no
8667 if test -z "$LT_MULTI_MODULE"; then
8668 # By default we will add the -single_module flag. You can override
8669 # by either setting the environment variable LT_MULTI_MODULE
8670 # non-empty at configure time, or by adding -multi_module to the
8671 # link flags.
8672 rm -rf libconftest.dylib*
8673 echo "int foo(void){return 1;}" > conftest.c
8674 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8675 -dynamiclib -Wl,-single_module conftest.c" >&5
8676 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8677 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8678 _lt_result=$?
8679 # If there is a non-empty error log, and "single_module"
8680 # appears in it, assume the flag caused a linker warning
8681 if test -s conftest.err && $GREP single_module conftest.err; then
8682 cat conftest.err >&5
8683 # Otherwise, if the output was created with a 0 exit code from
8684 # the compiler, it worked.
8685 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8686 lt_cv_apple_cc_single_mod=yes
8687 else
8688 cat conftest.err >&5
8689 fi
8690 rm -rf libconftest.dylib*
8691 rm -f conftest.*
8692 fi ;;
8693 esac
8694 fi
8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8696 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8697
8698 # Feature test to disable chained fixups since it is not
8699 # compatible with '-undefined dynamic_lookup'
8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8701 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8702 if test ${lt_cv_support_no_fixup_chains+y}
8703 then :
8704 printf %s "(cached) " >&6
8705 else case e in #(
8706 e) save_LDFLAGS=$LDFLAGS
8707 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8710
8711 int
8712 main (void)
8713 {
8714
8715 ;
8716 return 0;
8717 }
8718 _ACEOF
8719 if ac_fn_c_try_link "$LINENO"
8720 then :
8721 lt_cv_support_no_fixup_chains=yes
8722 else case e in #(
8723 e) lt_cv_support_no_fixup_chains=no
8724 ;;
8725 esac
8726 fi
8727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8728 conftest$ac_exeext conftest.$ac_ext
8729 LDFLAGS=$save_LDFLAGS
8730
8731 ;;
8732 esac
8733 fi
8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8735 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8736
8737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8738 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8739 if test ${lt_cv_ld_exported_symbols_list+y}
8740 then :
8741 printf %s "(cached) " >&6
8742 else case e in #(
8743 e) lt_cv_ld_exported_symbols_list=no
8744 save_LDFLAGS=$LDFLAGS
8745 echo "_main" > conftest.sym
8746 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8749
8750 int
8751 main (void)
8752 {
8753
8754 ;
8755 return 0;
8756 }
8757 _ACEOF
8758 if ac_fn_c_try_link "$LINENO"
8759 then :
8760 lt_cv_ld_exported_symbols_list=yes
8761 else case e in #(
8762 e) lt_cv_ld_exported_symbols_list=no ;;
8763 esac
8764 fi
8765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8766 conftest$ac_exeext conftest.$ac_ext
8767 LDFLAGS=$save_LDFLAGS
8768 ;;
8769 esac
8770 fi
8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8772 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8773
8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8775 printf %s "checking for -force_load linker flag... " >&6; }
8776 if test ${lt_cv_ld_force_load+y}
8777 then :
8778 printf %s "(cached) " >&6
8779 else case e in #(
8780 e) lt_cv_ld_force_load=no
8781 cat > conftest.c << _LT_EOF
8782 int forced_loaded() { return 2;}
8783 _LT_EOF
8784 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8785 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8786 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8787 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8788 echo "$RANLIB libconftest.a" >&5
8789 $RANLIB libconftest.a 2>&5
8790 cat > conftest.c << _LT_EOF
8791 int main(void) { return 0;}
8792 _LT_EOF
8793 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8794 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8795 _lt_result=$?
8796 if test -s conftest.err && $GREP force_load conftest.err; then
8797 cat conftest.err >&5
8798 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8799 lt_cv_ld_force_load=yes
8800 else
8801 cat conftest.err >&5
8802 fi
8803 rm -f conftest.err libconftest.a conftest conftest.c
8804 rm -rf conftest.dSYM
8805 ;;
8806 esac
8807 fi
8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8809 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8810 case $host_os in
8811 rhapsody* | darwin1.[012])
8812 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8813 darwin1.*)
8814 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8815 darwin*)
8816 case $MACOSX_DEPLOYMENT_TARGET,$host in
8817 10.[012],*|,*powerpc*-darwin[5-8]*)
8818 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8819 *)
8820 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8821 if test yes = "$lt_cv_support_no_fixup_chains"; then
8822 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8823 fi
8824 ;;
8825 esac
8826 ;;
8827 esac
8828 if test yes = "$lt_cv_apple_cc_single_mod"; then
8829 _lt_dar_single_mod='$single_module'
8830 fi
8831 _lt_dar_needs_single_mod=no
8832 case $host_os in
8833 rhapsody* | darwin1.*)
8834 _lt_dar_needs_single_mod=yes ;;
8835 darwin*)
8836 # When targeting Mac OS X 10.4 (darwin 8) or later,
8837 # -single_module is the default and -multi_module is unsupported.
8838 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8839 # target any OS version that needs -single_module.
8840 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8841 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8842 _lt_dar_needs_single_mod=yes ;;
8843 esac
8844 ;;
8845 esac
8846 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8847 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8848 else
8849 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8850 fi
8851 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8852 _lt_dsymutil='~$DSYMUTIL $lib || :'
8853 else
8854 _lt_dsymutil=
8855 fi
8856 ;;
8857 esac
8858
8859 # func_munge_path_list VARIABLE PATH
8860 # -----------------------------------
8861 # VARIABLE is name of variable containing _space_ separated list of
8862 # directories to be munged by the contents of PATH, which is string
8863 # having a format:
8864 # "DIR[:DIR]:"
8865 # string "DIR[ DIR]" will be prepended to VARIABLE
8866 # ":DIR[:DIR]"
8867 # string "DIR[ DIR]" will be appended to VARIABLE
8868 # "DIRP[:DIRP]::[DIRA:]DIRA"
8869 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8870 # "DIRA[ DIRA]" will be appended to VARIABLE
8871 # "DIR[:DIR]"
8872 # VARIABLE will be replaced by "DIR[ DIR]"
8873 func_munge_path_list ()
8874 {
8875 case x$2 in
8876 x)
8877 ;;
8878 *:)
8879 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8880 ;;
8881 x:*)
8882 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8883 ;;
8884 *::*)
8885 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8886 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8887 ;;
8888 *)
8889 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8890 ;;
8891 esac
8892 }
8893
8894 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8895 "
8896 if test "x$ac_cv_header_dlfcn_h" = xyes
8897 then :
8898 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8899
8900 fi
8901
8902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
8903 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
8904 if test ${ac_cv_c_undeclared_builtin_options+y}
8905 then :
8906 printf %s "(cached) " >&6
8907 else case e in #(
8908 e) ac_save_CFLAGS=$CFLAGS
8909 ac_cv_c_undeclared_builtin_options='cannot detect'
8910 for ac_arg in '' -fno-builtin; do
8911 CFLAGS="$ac_save_CFLAGS $ac_arg"
8912 # This test program should *not* compile successfully.
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915
8916 int
8917 main (void)
8918 {
8919 (void) strchr;
8920 ;
8921 return 0;
8922 }
8923 _ACEOF
8924 if ac_fn_c_try_compile "$LINENO"
8925 then :
8926
8927 else case e in #(
8928 e) # This test program should compile successfully.
8929 # No library function is consistently available on
8930 # freestanding implementations, so test against a dummy
8931 # declaration. Include always-available headers on the
8932 # off chance that they somehow elicit warnings.
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8935 #include <float.h>
8936 #include <limits.h>
8937 #include <stdarg.h>
8938 #include <stddef.h>
8939 extern void ac_decl (int, char *);
8940
8941 int
8942 main (void)
8943 {
8944 (void) ac_decl (0, (char *) 0);
8945 (void) ac_decl;
8946
8947 ;
8948 return 0;
8949 }
8950 _ACEOF
8951 if ac_fn_c_try_compile "$LINENO"
8952 then :
8953 if test x"$ac_arg" = x
8954 then :
8955 ac_cv_c_undeclared_builtin_options='none needed'
8956 else case e in #(
8957 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
8958 esac
8959 fi
8960 break
8961 fi
8962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8963 esac
8964 fi
8965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8966 done
8967 CFLAGS=$ac_save_CFLAGS
8968 ;;
8969 esac
8970 fi
8971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
8972 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
8973 case $ac_cv_c_undeclared_builtin_options in #(
8974 'cannot detect') :
8975 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8976 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8977 as_fn_error $? "cannot make $CC report undeclared builtins
8978 See 'config.log' for more details" "$LINENO" 5; } ;; #(
8979 'none needed') :
8980 ac_c_undeclared_builtin_options='' ;; #(
8981 *) :
8982 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
8983 esac
8984
8985 echo 'tldbg:KPSE_COMMON called (pkg=cjkutils, amopt=no-define)' >&5
8986 echo 'tldbg:KPSE_BASIC called (pkg=cjkutils, amopt=no-define)' >&5
8987
8988 #
8989 # am_init_automake
8990 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8991 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8992 # is not polluted with repeated "-I."
8993 am__isrc=' -I$(srcdir)'
8994 # test to see if srcdir already configured
8995 if test -f $srcdir/config.status; then
8996 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
8997 fi
8998 fi
8999
9000 # test whether we have cygpath
9001 if test -z "$CYGPATH_W"; then
9002 if (cygpath --version) >/dev/null 2>/dev/null; then
9003 CYGPATH_W='cygpath -w'
9004 else
9005 CYGPATH_W=echo
9006 fi
9007 fi
9008
9009
9010 # Define the identity of the package.
9011 PACKAGE='cjk-utils--tex-live-'
9012 VERSION='4.8.5'
9013
9014
9015 # Some tools Automake needs.
9016
9017 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9018
9019
9020 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9021
9022
9023 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9024
9025
9026 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9027
9028
9029 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9030
9031 # For better backward compatibility. To be removed once Automake 1.9.x
9032 # dies out for good. For more background, see:
9033 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9034 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9035 mkdir_p='$(MKDIR_P)'
9036
9037 # We need awk for the "check" target (and possibly the TAP driver). The
9038 # system "awk" is bad on some platforms.
9039 # Always define AMTAR for backward compatibility. Yes, it's still used
9040 # in the wild :-( We should find a proper way to deprecate it ...
9041 AMTAR='$${TAR-tar}'
9042
9043
9044 # We'll loop over all known methods to create a tar archive until one works.
9045 _am_tools='gnutar plaintar pax cpio none'
9046
9047 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
9048 # There is notably a 21 bits limit for the UID and the GID. In fact,
9049 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
9050 # and bug#13588).
9051 am_max_uid=2097151 # 2^21 - 1
9052 am_max_gid=$am_max_uid
9053 # The $UID and $GID variables are not portable, so we need to resort
9054 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
9055 # below are definitely unexpected, so allow the users to see them
9056 # (that is, avoid stderr redirection).
9057 am_uid=`id -u || echo unknown`
9058 am_gid=`id -g || echo unknown`
9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
9060 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
9061 if test x$am_uid = xunknown; then
9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
9063 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
9064 elif test $am_uid -le $am_max_uid; then
9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9066 printf "%s\n" "yes" >&6; }
9067 else
9068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069 printf "%s\n" "no" >&6; }
9070 _am_tools=none
9071 fi
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
9073 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
9074 if test x$gm_gid = xunknown; then
9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
9076 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
9077 elif test $am_gid -le $am_max_gid; then
9078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9079 printf "%s\n" "yes" >&6; }
9080 else
9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082 printf "%s\n" "no" >&6; }
9083 _am_tools=none
9084 fi
9085
9086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
9087 printf %s "checking how to create a ustar tar archive... " >&6; }
9088
9089 # Go ahead even if we have the value already cached. We do so because we
9090 # need to set the values for the 'am__tar' and 'am__untar' variables.
9091 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
9092
9093 for _am_tool in $_am_tools; do
9094 case $_am_tool in
9095 gnutar)
9096 for _am_tar in tar gnutar gtar; do
9097 { echo "$as_me:$LINENO: $_am_tar --version" >&5
9098 ($_am_tar --version) >&5 2>&5
9099 ac_status=$?
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } && break
9102 done
9103 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
9104 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
9105 am__untar="$_am_tar -xf -"
9106 ;;
9107 plaintar)
9108 # Must skip GNU tar: if it does not support --format= it doesn't create
9109 # ustar tarball either.
9110 (tar --version) >/dev/null 2>&1 && continue
9111 am__tar='tar chf - "$$tardir"'
9112 am__tar_='tar chf - "$tardir"'
9113 am__untar='tar xf -'
9114 ;;
9115 pax)
9116 am__tar='pax -L -x ustar -w "$$tardir"'
9117 am__tar_='pax -L -x ustar -w "$tardir"'
9118 am__untar='pax -r'
9119 ;;
9120 cpio)
9121 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
9122 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
9123 am__untar='cpio -i -H ustar -d'
9124 ;;
9125 none)
9126 am__tar=false
9127 am__tar_=false
9128 am__untar=false
9129 ;;
9130 esac
9131
9132 # If the value was cached, stop now. We just wanted to have am__tar
9133 # and am__untar set.
9134 test -n "${am_cv_prog_tar_ustar}" && break
9135
9136 # tar/untar a dummy directory, and stop if the command works.
9137 rm -rf conftest.dir
9138 mkdir conftest.dir
9139 echo GrepMe > conftest.dir/file
9140 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
9141 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }
9145 rm -rf conftest.dir
9146 if test -s conftest.tar; then
9147 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
9148 ($am__untar <conftest.tar) >&5 2>&5
9149 ac_status=$?
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }
9152 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
9153 (cat conftest.dir/file) >&5 2>&5
9154 ac_status=$?
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }
9157 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9158 fi
9159 done
9160 rm -rf conftest.dir
9161
9162 if test ${am_cv_prog_tar_ustar+y}
9163 then :
9164 printf %s "(cached) " >&6
9165 else case e in #(
9166 e) am_cv_prog_tar_ustar=$_am_tool ;;
9167 esac
9168 fi
9169
9170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
9171 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
9172
9173
9174
9175
9176
9177 # Variables for tags utilities; see am/tags.am
9178 if test -z "$CTAGS"; then
9179 CTAGS=ctags
9180 fi
9181
9182 if test -z "$ETAGS"; then
9183 ETAGS=etags
9184 fi
9185
9186 if test -z "$CSCOPE"; then
9187 CSCOPE=cscope
9188 fi
9189
9190
9191
9192
9193
9194
9195
9196
9197 # am_maintainer_mode
9198
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9200 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9201 # Check whether --enable-maintainer-mode was given.
9202 if test ${enable_maintainer_mode+y}
9203 then :
9204 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9205 else case e in #(
9206 e) USE_MAINTAINER_MODE=no ;;
9207 esac
9208 fi
9209
9210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9211 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
9212 if test $USE_MAINTAINER_MODE = yes; then
9213 MAINTAINER_MODE_TRUE=
9214 MAINTAINER_MODE_FALSE='#'
9215 else
9216 MAINTAINER_MODE_TRUE='#'
9217 MAINTAINER_MODE_FALSE=
9218 fi
9219
9220 MAINT=$MAINTAINER_MODE_TRUE
9221
9222
9223
9224 # See comments in kpse-setup.m4 about system extensions.
9225
9226
9227 # Check whether prototypes work.
9228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
9229 printf %s "checking whether the compiler accepts prototypes... " >&6; }
9230 if test ${kb_cv_c_prototypes+y}
9231 then :
9232 printf %s "(cached) " >&6
9233 else case e in #(
9234 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9236 #include <stdarg.h>
9237 int
9238 main (void)
9239 {
9240 extern void foo(int i,...);
9241 ;
9242 return 0;
9243 }
9244 _ACEOF
9245 if ac_fn_c_try_link "$LINENO"
9246 then :
9247 kb_cv_c_prototypes=yes
9248 else case e in #(
9249 e) kb_cv_c_prototypes=no ;;
9250 esac
9251 fi
9252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9253 conftest$ac_exeext conftest.$ac_ext ;;
9254 esac
9255 fi
9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
9257 printf "%s\n" "$kb_cv_c_prototypes" >&6; }
9258 if test "x$kb_cv_c_prototypes" = xno; then
9259 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
9260 fi
9261
9262 # kpse_compiler_warnings options.
9263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
9264 printf %s "checking what warning flags to pass to the C compiler... " >&6; }
9265 if test ${kpse_cv_warning_cflags+y}
9266 then :
9267 printf %s "(cached) " >&6
9268 else case e in #(
9269 e) if test "x$GCC" = xyes; then
9270 kpse_cv_warning_cflags=
9271 if test "x$enable_compiler_warnings" != xno; then
9272 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
9273 case `$CC -dumpversion` in #(
9274 3.4.* | 4.* | 5.*) :
9275 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
9276 *) :
9277 ;;
9278 esac
9279 case `$CC -dumpversion` in #(
9280 3.[234].* | 4.* | 5.*) :
9281 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
9282 *) :
9283 ;;
9284 esac
9285 if test "x$enable_compiler_warnings" != xmin; then
9286 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
9287 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
9288 if test "x$enable_compiler_warnings" != xyes; then
9289 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
9290 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
9291 case `$CC -dumpversion` in #(
9292 3.4.* | 4.* | 5.*) :
9293 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
9294 *) :
9295 ;;
9296 esac
9297 if test "x$enable_compiler_warnings" != xmax; then
9298 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
9299 fi
9300 fi
9301 fi
9302 fi
9303 elif test "x$enable_compiler_warnings" = xno; then
9304 kpse_cv_warning_cflags=
9305 else
9306 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
9307 fi ;;
9308 esac
9309 fi
9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
9311 printf "%s\n" "$kpse_cv_warning_cflags" >&6; }
9312 WARNING_CFLAGS=$kpse_cv_warning_cflags
9313
9314
9315
9316
9317
9318
9319
9320 # end of kpse_basic macro.
9321 echo 'tldbg:KPSE_BASIC done (pkg=cjkutils, amopt=no-define)' >&5
9322
9323 # am_prog_ar must be called before lt_init.
9324
9325 if test -n "$ac_tool_prefix"; then
9326 for ac_prog in ar lib "link -lib"
9327 do
9328 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9331 printf %s "checking for $ac_word... " >&6; }
9332 if test ${ac_cv_prog_AR+y}
9333 then :
9334 printf %s "(cached) " >&6
9335 else case e in #(
9336 e) if test -n "$AR"; then
9337 ac_cv_prog_AR="$AR" # Let the user override the test.
9338 else
9339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340 for as_dir in $PATH
9341 do
9342 IFS=$as_save_IFS
9343 case $as_dir in #(((
9344 '') as_dir=./ ;;
9345 */) ;;
9346 *) as_dir=$as_dir/ ;;
9347 esac
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9350 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9352 break 2
9353 fi
9354 done
9355 done
9356 IFS=$as_save_IFS
9357
9358 fi ;;
9359 esac
9360 fi
9361 AR=$ac_cv_prog_AR
9362 if test -n "$AR"; then
9363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9364 printf "%s\n" "$AR" >&6; }
9365 else
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 printf "%s\n" "no" >&6; }
9368 fi
9369
9370
9371 test -n "$AR" && break
9372 done
9373 fi
9374 if test -z "$AR"; then
9375 ac_ct_AR=$AR
9376 for ac_prog in ar lib "link -lib"
9377 do
9378 # Extract the first word of "$ac_prog", so it can be a program name with args.
9379 set dummy $ac_prog; ac_word=$2
9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9381 printf %s "checking for $ac_word... " >&6; }
9382 if test ${ac_cv_prog_ac_ct_AR+y}
9383 then :
9384 printf %s "(cached) " >&6
9385 else case e in #(
9386 e) if test -n "$ac_ct_AR"; then
9387 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9388 else
9389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390 for as_dir in $PATH
9391 do
9392 IFS=$as_save_IFS
9393 case $as_dir in #(((
9394 '') as_dir=./ ;;
9395 */) ;;
9396 *) as_dir=$as_dir/ ;;
9397 esac
9398 for ac_exec_ext in '' $ac_executable_extensions; do
9399 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9400 ac_cv_prog_ac_ct_AR="$ac_prog"
9401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9402 break 2
9403 fi
9404 done
9405 done
9406 IFS=$as_save_IFS
9407
9408 fi ;;
9409 esac
9410 fi
9411 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9412 if test -n "$ac_ct_AR"; then
9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9414 printf "%s\n" "$ac_ct_AR" >&6; }
9415 else
9416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9417 printf "%s\n" "no" >&6; }
9418 fi
9419
9420
9421 test -n "$ac_ct_AR" && break
9422 done
9423
9424 if test "x$ac_ct_AR" = x; then
9425 AR="false"
9426 else
9427 case $cross_compiling:$ac_tool_warned in
9428 yes:)
9429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9430 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9431 ac_tool_warned=yes ;;
9432 esac
9433 AR=$ac_ct_AR
9434 fi
9435 fi
9436
9437 : ${AR=ar}
9438 : ${ARFLAGS=cr}
9439
9440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
9441 printf %s "checking the archiver ($AR) interface... " >&6; }
9442 if test ${am_cv_ar_interface+y}
9443 then :
9444 printf %s "(cached) " >&6
9445 else case e in #(
9446 e) ac_ext=c
9447 ac_cpp='$CPP $CPPFLAGS'
9448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9451
9452 am_cv_ar_interface=ar
9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9455 int some_variable = 0;
9456 _ACEOF
9457 if ac_fn_c_try_compile "$LINENO"
9458 then :
9459 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
9460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9461 (eval $am_ar_try) 2>&5
9462 ac_status=$?
9463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9464 test $ac_status = 0; }
9465 if test "$ac_status" -eq 0; then
9466 am_cv_ar_interface=ar
9467 else
9468 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
9469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
9470 (eval $am_ar_try) 2>&5
9471 ac_status=$?
9472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9473 test $ac_status = 0; }
9474 if test "$ac_status" -eq 0; then
9475 am_cv_ar_interface=lib
9476 else
9477 am_cv_ar_interface=unknown
9478 fi
9479 fi
9480 rm -f conftest.lib libconftest.a
9481
9482 fi
9483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9484 ac_ext=c
9485 ac_cpp='$CPP $CPPFLAGS'
9486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9489 ;;
9490 esac
9491 fi
9492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
9493 printf "%s\n" "$am_cv_ar_interface" >&6; }
9494
9495 case $am_cv_ar_interface in
9496 ar)
9497 ;;
9498 lib)
9499 # Microsoft lib, so override with the ar-lib wrapper script.
9500 # FIXME: It is wrong to rewrite AR.
9501 # But if we don't then we get into trouble of one sort or another.
9502 # A longer-term fix would be to have automake use am__AR in this case,
9503 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
9504 # similar.
9505 AR="$am_aux_dir/ar-lib $AR"
9506 ;;
9507 unknown)
9508 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
9509 ;;
9510 esac
9511
9512 # (end am_prog_ar)
9513 # starting lt_prereq + lt_init.
9514
9515
9516
9517
9518
9519 # Set options
9520 enable_win32_dll=yes
9521
9522 case $host in
9523 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9524 if test -n "$ac_tool_prefix"; then
9525 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9526 set dummy ${ac_tool_prefix}as; ac_word=$2
9527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528 printf %s "checking for $ac_word... " >&6; }
9529 if test ${ac_cv_prog_AS+y}
9530 then :
9531 printf %s "(cached) " >&6
9532 else case e in #(
9533 e) if test -n "$AS"; then
9534 ac_cv_prog_AS="$AS" # Let the user override the test.
9535 else
9536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537 for as_dir in $PATH
9538 do
9539 IFS=$as_save_IFS
9540 case $as_dir in #(((
9541 '') as_dir=./ ;;
9542 */) ;;
9543 *) as_dir=$as_dir/ ;;
9544 esac
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9547 ac_cv_prog_AS="${ac_tool_prefix}as"
9548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9549 break 2
9550 fi
9551 done
9552 done
9553 IFS=$as_save_IFS
9554
9555 fi ;;
9556 esac
9557 fi
9558 AS=$ac_cv_prog_AS
9559 if test -n "$AS"; then
9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9561 printf "%s\n" "$AS" >&6; }
9562 else
9563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 printf "%s\n" "no" >&6; }
9565 fi
9566
9567
9568 fi
9569 if test -z "$ac_cv_prog_AS"; then
9570 ac_ct_AS=$AS
9571 # Extract the first word of "as", so it can be a program name with args.
9572 set dummy as; ac_word=$2
9573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9574 printf %s "checking for $ac_word... " >&6; }
9575 if test ${ac_cv_prog_ac_ct_AS+y}
9576 then :
9577 printf %s "(cached) " >&6
9578 else case e in #(
9579 e) if test -n "$ac_ct_AS"; then
9580 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9581 else
9582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583 for as_dir in $PATH
9584 do
9585 IFS=$as_save_IFS
9586 case $as_dir in #(((
9587 '') as_dir=./ ;;
9588 */) ;;
9589 *) as_dir=$as_dir/ ;;
9590 esac
9591 for ac_exec_ext in '' $ac_executable_extensions; do
9592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9593 ac_cv_prog_ac_ct_AS="as"
9594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9595 break 2
9596 fi
9597 done
9598 done
9599 IFS=$as_save_IFS
9600
9601 fi ;;
9602 esac
9603 fi
9604 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9605 if test -n "$ac_ct_AS"; then
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9607 printf "%s\n" "$ac_ct_AS" >&6; }
9608 else
9609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610 printf "%s\n" "no" >&6; }
9611 fi
9612
9613 if test "x$ac_ct_AS" = x; then
9614 AS="false"
9615 else
9616 case $cross_compiling:$ac_tool_warned in
9617 yes:)
9618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9619 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9620 ac_tool_warned=yes ;;
9621 esac
9622 AS=$ac_ct_AS
9623 fi
9624 else
9625 AS="$ac_cv_prog_AS"
9626 fi
9627
9628 if test -n "$ac_tool_prefix"; then
9629 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9630 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9632 printf %s "checking for $ac_word... " >&6; }
9633 if test ${ac_cv_prog_DLLTOOL+y}
9634 then :
9635 printf %s "(cached) " >&6
9636 else case e in #(
9637 e) if test -n "$DLLTOOL"; then
9638 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9639 else
9640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 for as_dir in $PATH
9642 do
9643 IFS=$as_save_IFS
9644 case $as_dir in #(((
9645 '') as_dir=./ ;;
9646 */) ;;
9647 *) as_dir=$as_dir/ ;;
9648 esac
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9651 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9653 break 2
9654 fi
9655 done
9656 done
9657 IFS=$as_save_IFS
9658
9659 fi ;;
9660 esac
9661 fi
9662 DLLTOOL=$ac_cv_prog_DLLTOOL
9663 if test -n "$DLLTOOL"; then
9664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9665 printf "%s\n" "$DLLTOOL" >&6; }
9666 else
9667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9668 printf "%s\n" "no" >&6; }
9669 fi
9670
9671
9672 fi
9673 if test -z "$ac_cv_prog_DLLTOOL"; then
9674 ac_ct_DLLTOOL=$DLLTOOL
9675 # Extract the first word of "dlltool", so it can be a program name with args.
9676 set dummy dlltool; ac_word=$2
9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678 printf %s "checking for $ac_word... " >&6; }
9679 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9680 then :
9681 printf %s "(cached) " >&6
9682 else case e in #(
9683 e) if test -n "$ac_ct_DLLTOOL"; then
9684 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9685 else
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 for as_dir in $PATH
9688 do
9689 IFS=$as_save_IFS
9690 case $as_dir in #(((
9691 '') as_dir=./ ;;
9692 */) ;;
9693 *) as_dir=$as_dir/ ;;
9694 esac
9695 for ac_exec_ext in '' $ac_executable_extensions; do
9696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9697 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9699 break 2
9700 fi
9701 done
9702 done
9703 IFS=$as_save_IFS
9704
9705 fi ;;
9706 esac
9707 fi
9708 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9709 if test -n "$ac_ct_DLLTOOL"; then
9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9711 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9712 else
9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714 printf "%s\n" "no" >&6; }
9715 fi
9716
9717 if test "x$ac_ct_DLLTOOL" = x; then
9718 DLLTOOL="false"
9719 else
9720 case $cross_compiling:$ac_tool_warned in
9721 yes:)
9722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9723 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9724 ac_tool_warned=yes ;;
9725 esac
9726 DLLTOOL=$ac_ct_DLLTOOL
9727 fi
9728 else
9729 DLLTOOL="$ac_cv_prog_DLLTOOL"
9730 fi
9731
9732 if test -n "$ac_tool_prefix"; then
9733 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9734 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9736 printf %s "checking for $ac_word... " >&6; }
9737 if test ${ac_cv_prog_OBJDUMP+y}
9738 then :
9739 printf %s "(cached) " >&6
9740 else case e in #(
9741 e) if test -n "$OBJDUMP"; then
9742 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9743 else
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 for as_dir in $PATH
9746 do
9747 IFS=$as_save_IFS
9748 case $as_dir in #(((
9749 '') as_dir=./ ;;
9750 */) ;;
9751 *) as_dir=$as_dir/ ;;
9752 esac
9753 for ac_exec_ext in '' $ac_executable_extensions; do
9754 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9755 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9757 break 2
9758 fi
9759 done
9760 done
9761 IFS=$as_save_IFS
9762
9763 fi ;;
9764 esac
9765 fi
9766 OBJDUMP=$ac_cv_prog_OBJDUMP
9767 if test -n "$OBJDUMP"; then
9768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9769 printf "%s\n" "$OBJDUMP" >&6; }
9770 else
9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9772 printf "%s\n" "no" >&6; }
9773 fi
9774
9775
9776 fi
9777 if test -z "$ac_cv_prog_OBJDUMP"; then
9778 ac_ct_OBJDUMP=$OBJDUMP
9779 # Extract the first word of "objdump", so it can be a program name with args.
9780 set dummy objdump; ac_word=$2
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782 printf %s "checking for $ac_word... " >&6; }
9783 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9784 then :
9785 printf %s "(cached) " >&6
9786 else case e in #(
9787 e) if test -n "$ac_ct_OBJDUMP"; then
9788 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9789 else
9790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9791 for as_dir in $PATH
9792 do
9793 IFS=$as_save_IFS
9794 case $as_dir in #(((
9795 '') as_dir=./ ;;
9796 */) ;;
9797 *) as_dir=$as_dir/ ;;
9798 esac
9799 for ac_exec_ext in '' $ac_executable_extensions; do
9800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9801 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9803 break 2
9804 fi
9805 done
9806 done
9807 IFS=$as_save_IFS
9808
9809 fi ;;
9810 esac
9811 fi
9812 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9813 if test -n "$ac_ct_OBJDUMP"; then
9814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9815 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9816 else
9817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9818 printf "%s\n" "no" >&6; }
9819 fi
9820
9821 if test "x$ac_ct_OBJDUMP" = x; then
9822 OBJDUMP="false"
9823 else
9824 case $cross_compiling:$ac_tool_warned in
9825 yes:)
9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9827 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9828 ac_tool_warned=yes ;;
9829 esac
9830 OBJDUMP=$ac_ct_OBJDUMP
9831 fi
9832 else
9833 OBJDUMP="$ac_cv_prog_OBJDUMP"
9834 fi
9835
9836 ;;
9837 esac
9838
9839 test -z "$AS" && AS=as
9840
9841
9842
9843
9844
9845 test -z "$DLLTOOL" && DLLTOOL=dlltool
9846
9847
9848
9849
9850
9851 test -z "$OBJDUMP" && OBJDUMP=objdump
9852
9853
9854
9855
9856
9857
9858
9859 enable_dlopen=no
9860
9861
9862
9863 # Check whether --enable-shared was given.
9864 if test ${enable_shared+y}
9865 then :
9866 enableval=$enable_shared; p=${PACKAGE-default}
9867 case $enableval in
9868 yes) enable_shared=yes ;;
9869 no) enable_shared=no ;;
9870 *)
9871 enable_shared=no
9872 # Look at the argument we got. We use all the common list separators.
9873 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9874 for pkg in $enableval; do
9875 IFS=$lt_save_ifs
9876 if test "X$pkg" = "X$p"; then
9877 enable_shared=yes
9878 fi
9879 done
9880 IFS=$lt_save_ifs
9881 ;;
9882 esac
9883 else case e in #(
9884 e) enable_shared=yes ;;
9885 esac
9886 fi
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896 # Check whether --enable-static was given.
9897 if test ${enable_static+y}
9898 then :
9899 enableval=$enable_static; p=${PACKAGE-default}
9900 case $enableval in
9901 yes) enable_static=yes ;;
9902 no) enable_static=no ;;
9903 *)
9904 enable_static=no
9905 # Look at the argument we got. We use all the common list separators.
9906 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9907 for pkg in $enableval; do
9908 IFS=$lt_save_ifs
9909 if test "X$pkg" = "X$p"; then
9910 enable_static=yes
9911 fi
9912 done
9913 IFS=$lt_save_ifs
9914 ;;
9915 esac
9916 else case e in #(
9917 e) enable_static=yes ;;
9918 esac
9919 fi
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929 # Check whether --enable-pic was given.
9930 if test ${enable_pic+y}
9931 then :
9932 enableval=$enable_pic; lt_p=${PACKAGE-default}
9933 case $enableval in
9934 yes|no) pic_mode=$enableval ;;
9935 *)
9936 pic_mode=default
9937 # Look at the argument we got. We use all the common list separators.
9938 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9939 for lt_pkg in $enableval; do
9940 IFS=$lt_save_ifs
9941 if test "X$lt_pkg" = "X$lt_p"; then
9942 pic_mode=yes
9943 fi
9944 done
9945 IFS=$lt_save_ifs
9946 ;;
9947 esac
9948 else case e in #(
9949 e) # Check whether --with-pic was given.
9950 if test ${with_pic+y}
9951 then :
9952 withval=$with_pic; lt_p=${PACKAGE-default}
9953 case $withval in
9954 yes|no) pic_mode=$withval ;;
9955 *)
9956 pic_mode=default
9957 # Look at the argument we got. We use all the common list separators.
9958 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9959 for lt_pkg in $withval; do
9960 IFS=$lt_save_ifs
9961 if test "X$lt_pkg" = "X$lt_p"; then
9962 pic_mode=yes
9963 fi
9964 done
9965 IFS=$lt_save_ifs
9966 ;;
9967 esac
9968 else case e in #(
9969 e) pic_mode=default ;;
9970 esac
9971 fi
9972
9973 ;;
9974 esac
9975 fi
9976
9977
9978
9979
9980
9981
9982
9983
9984 # Check whether --enable-fast-install was given.
9985 if test ${enable_fast_install+y}
9986 then :
9987 enableval=$enable_fast_install; p=${PACKAGE-default}
9988 case $enableval in
9989 yes) enable_fast_install=yes ;;
9990 no) enable_fast_install=no ;;
9991 *)
9992 enable_fast_install=no
9993 # Look at the argument we got. We use all the common list separators.
9994 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9995 for pkg in $enableval; do
9996 IFS=$lt_save_ifs
9997 if test "X$pkg" = "X$p"; then
9998 enable_fast_install=yes
9999 fi
10000 done
10001 IFS=$lt_save_ifs
10002 ;;
10003 esac
10004 else case e in #(
10005 e) enable_fast_install=yes ;;
10006 esac
10007 fi
10008
10009
10010
10011
10012
10013
10014
10015
10016 shared_archive_member_spec=
10017 case $host,$enable_shared in
10018 power*-*-aix[5-9]*,yes)
10019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10020 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10021 # Check whether --enable-aix-soname was given.
10022 if test ${enable_aix_soname+y}
10023 then :
10024 enableval=$enable_aix_soname; case $enableval in
10025 aix|svr4|both)
10026 ;;
10027 *)
10028 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
10029 ;;
10030 esac
10031 lt_cv_with_aix_soname=$enable_aix_soname
10032 else case e in #(
10033 e) # Check whether --with-aix-soname was given.
10034 if test ${with_aix_soname+y}
10035 then :
10036 withval=$with_aix_soname; case $withval in
10037 aix|svr4|both)
10038 ;;
10039 *)
10040 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10041 ;;
10042 esac
10043 lt_cv_with_aix_soname=$with_aix_soname
10044 else case e in #(
10045 e) if test ${lt_cv_with_aix_soname+y}
10046 then :
10047 printf %s "(cached) " >&6
10048 else case e in #(
10049 e) lt_cv_with_aix_soname=aix ;;
10050 esac
10051 fi
10052 ;;
10053 esac
10054 fi
10055
10056 enable_aix_soname=$lt_cv_with_aix_soname ;;
10057 esac
10058 fi
10059
10060 with_aix_soname=$enable_aix_soname
10061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10062 printf "%s\n" "$with_aix_soname" >&6; }
10063 if test aix != "$with_aix_soname"; then
10064 # For the AIX way of multilib, we name the shared archive member
10065 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10066 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10067 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10068 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10069 if test 64 = "${OBJECT_MODE-32}"; then
10070 shared_archive_member_spec=shr_64
10071 else
10072 shared_archive_member_spec=shr
10073 fi
10074 fi
10075 ;;
10076 *)
10077 with_aix_soname=aix
10078 ;;
10079 esac
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090 # This can be used to rebuild libtool when needed
10091 LIBTOOL_DEPS=$ltmain
10092
10093 # Always use our own libtool.
10094 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125 test -z "$LN_S" && LN_S="ln -s"
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140 if test -n "${ZSH_VERSION+set}"; then
10141 setopt NO_GLOB_SUBST
10142 fi
10143
10144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10145 printf %s "checking for objdir... " >&6; }
10146 if test ${lt_cv_objdir+y}
10147 then :
10148 printf %s "(cached) " >&6
10149 else case e in #(
10150 e) rm -f .libs 2>/dev/null
10151 mkdir .libs 2>/dev/null
10152 if test -d .libs; then
10153 lt_cv_objdir=.libs
10154 else
10155 # MS-DOS does not allow filenames that begin with a dot.
10156 lt_cv_objdir=_libs
10157 fi
10158 rmdir .libs 2>/dev/null ;;
10159 esac
10160 fi
10161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10162 printf "%s\n" "$lt_cv_objdir" >&6; }
10163 objdir=$lt_cv_objdir
10164
10165
10166
10167
10168
10169 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10170
10171
10172
10173
10174 case $host_os in
10175 aix3*)
10176 # AIX sometimes has problems with the GCC collect2 program. For some
10177 # reason, if we set the COLLECT_NAMES environment variable, the problems
10178 # vanish in a puff of smoke.
10179 if test set != "${COLLECT_NAMES+set}"; then
10180 COLLECT_NAMES=
10181 export COLLECT_NAMES
10182 fi
10183 ;;
10184 esac
10185
10186 # Global variables:
10187 ofile=libtool
10188 can_build_shared=yes
10189
10190 # All known linkers require a '.a' archive for static linking (except MSVC and
10191 # ICC, which need '.lib').
10192 libext=a
10193
10194 with_gnu_ld=$lt_cv_prog_gnu_ld
10195
10196 old_CC=$CC
10197 old_CFLAGS=$CFLAGS
10198
10199 # Set sane defaults for various variables
10200 test -z "$CC" && CC=cc
10201 test -z "$LTCC" && LTCC=$CC
10202 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10203 test -z "$LD" && LD=ld
10204 test -z "$ac_objext" && ac_objext=o
10205
10206 func_cc_basename $compiler
10207 cc_basename=$func_cc_basename_result
10208
10209
10210 # Only perform the check for file, if the check method requires it
10211 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10212 case $deplibs_check_method in
10213 file_magic*)
10214 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10216 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10217 if test ${lt_cv_path_MAGIC_CMD+y}
10218 then :
10219 printf %s "(cached) " >&6
10220 else case e in #(
10221 e) case $MAGIC_CMD in
10222 [\\/*] | ?:[\\/]*)
10223 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10224 ;;
10225 *)
10226 lt_save_MAGIC_CMD=$MAGIC_CMD
10227 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10228 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10229 for ac_dir in $ac_dummy; do
10230 IFS=$lt_save_ifs
10231 test -z "$ac_dir" && ac_dir=.
10232 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10233 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10234 if test -n "$file_magic_test_file"; then
10235 case $deplibs_check_method in
10236 "file_magic "*)
10237 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10238 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10240 $EGREP "$file_magic_regex" > /dev/null; then
10241 :
10242 else
10243 cat <<_LT_EOF 1>&2
10244
10245 *** Warning: the command libtool uses to detect shared libraries,
10246 *** $file_magic_cmd, produces output that libtool cannot recognize.
10247 *** The result is that libtool may fail to recognize shared libraries
10248 *** as such. This will affect the creation of libtool libraries that
10249 *** depend on shared libraries, but programs linked with such libtool
10250 *** libraries will work regardless of this problem. Nevertheless, you
10251 *** may want to report the problem to your system manager and/or to
10252 *** [email protected]
10253
10254 _LT_EOF
10255 fi ;;
10256 esac
10257 fi
10258 break
10259 fi
10260 done
10261 IFS=$lt_save_ifs
10262 MAGIC_CMD=$lt_save_MAGIC_CMD
10263 ;;
10264 esac ;;
10265 esac
10266 fi
10267
10268 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10269 if test -n "$MAGIC_CMD"; then
10270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10271 printf "%s\n" "$MAGIC_CMD" >&6; }
10272 else
10273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10274 printf "%s\n" "no" >&6; }
10275 fi
10276
10277
10278
10279
10280
10281 if test -z "$lt_cv_path_MAGIC_CMD"; then
10282 if test -n "$ac_tool_prefix"; then
10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10284 printf %s "checking for file... " >&6; }
10285 if test ${lt_cv_path_MAGIC_CMD+y}
10286 then :
10287 printf %s "(cached) " >&6
10288 else case e in #(
10289 e) case $MAGIC_CMD in
10290 [\\/*] | ?:[\\/]*)
10291 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10292 ;;
10293 *)
10294 lt_save_MAGIC_CMD=$MAGIC_CMD
10295 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10296 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10297 for ac_dir in $ac_dummy; do
10298 IFS=$lt_save_ifs
10299 test -z "$ac_dir" && ac_dir=.
10300 if test -f "$ac_dir/file"; then
10301 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10302 if test -n "$file_magic_test_file"; then
10303 case $deplibs_check_method in
10304 "file_magic "*)
10305 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10306 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10307 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10308 $EGREP "$file_magic_regex" > /dev/null; then
10309 :
10310 else
10311 cat <<_LT_EOF 1>&2
10312
10313 *** Warning: the command libtool uses to detect shared libraries,
10314 *** $file_magic_cmd, produces output that libtool cannot recognize.
10315 *** The result is that libtool may fail to recognize shared libraries
10316 *** as such. This will affect the creation of libtool libraries that
10317 *** depend on shared libraries, but programs linked with such libtool
10318 *** libraries will work regardless of this problem. Nevertheless, you
10319 *** may want to report the problem to your system manager and/or to
10320 *** [email protected]
10321
10322 _LT_EOF
10323 fi ;;
10324 esac
10325 fi
10326 break
10327 fi
10328 done
10329 IFS=$lt_save_ifs
10330 MAGIC_CMD=$lt_save_MAGIC_CMD
10331 ;;
10332 esac ;;
10333 esac
10334 fi
10335
10336 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10337 if test -n "$MAGIC_CMD"; then
10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10339 printf "%s\n" "$MAGIC_CMD" >&6; }
10340 else
10341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342 printf "%s\n" "no" >&6; }
10343 fi
10344
10345
10346 else
10347 MAGIC_CMD=:
10348 fi
10349 fi
10350
10351 fi
10352 ;;
10353 esac
10354
10355 # Use C for the default configuration in the libtool script
10356
10357 lt_save_CC=$CC
10358 ac_ext=c
10359 ac_cpp='$CPP $CPPFLAGS'
10360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10363
10364
10365 # Source file extension for C test sources.
10366 ac_ext=c
10367
10368 # Object file extension for compiled C test sources.
10369 objext=o
10370 objext=$objext
10371
10372 # Code to be used in simple compile tests
10373 lt_simple_compile_test_code="int some_variable = 0;"
10374
10375 # Code to be used in simple link tests
10376 lt_simple_link_test_code='int main(void){return(0);}'
10377
10378
10379
10380
10381
10382
10383
10384 # If no C compiler was specified, use CC.
10385 LTCC=${LTCC-"$CC"}
10386
10387 # If no C compiler flags were specified, use CFLAGS.
10388 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10389
10390 # Allow CC to be a program name with arguments.
10391 compiler=$CC
10392
10393 # Save the default compiler, since it gets overwritten when the other
10394 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10395 compiler_DEFAULT=$CC
10396
10397 # save warnings/boilerplate of simple test code
10398 ac_outfile=conftest.$ac_objext
10399 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10400 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10401 _lt_compiler_boilerplate=`cat conftest.err`
10402 $RM conftest*
10403
10404 ac_outfile=conftest.$ac_objext
10405 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10406 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10407 _lt_linker_boilerplate=`cat conftest.err`
10408 $RM -r conftest*
10409
10410
10411 ## CAVEAT EMPTOR:
10412 ## There is no encapsulation within the following macros, do not change
10413 ## the running order or otherwise move them around unless you know exactly
10414 ## what you are doing...
10415 if test -n "$compiler"; then
10416
10417 lt_prog_compiler_no_builtin_flag=
10418
10419 if test yes = "$GCC"; then
10420 case $cc_basename in
10421 nvcc*)
10422 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10423 *)
10424 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10425 esac
10426
10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10428 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10429 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10430 then :
10431 printf %s "(cached) " >&6
10432 else case e in #(
10433 e) lt_cv_prog_compiler_rtti_exceptions=no
10434 ac_outfile=conftest.$ac_objext
10435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10436 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10437 # Insert the option either (1) after the last *FLAGS variable, or
10438 # (2) before a word containing "conftest.", or (3) at the end.
10439 # Note that $ac_compile itself does not contain backslashes and begins
10440 # with a dollar sign (not a hyphen), so the echo should work correctly.
10441 # The option is referenced via a variable to avoid confusing sed.
10442 lt_compile=`echo "$ac_compile" | $SED \
10443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10445 -e 's:$: $lt_compiler_flag:'`
10446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10447 (eval "$lt_compile" 2>conftest.err)
10448 ac_status=$?
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 if (exit $ac_status) && test -s "$ac_outfile"; then
10452 # The compiler can only warn and ignore the option if not recognized
10453 # So say no if there are warnings other than the usual output.
10454 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10456 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10457 lt_cv_prog_compiler_rtti_exceptions=yes
10458 fi
10459 fi
10460 $RM conftest*
10461 ;;
10462 esac
10463 fi
10464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10465 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10466
10467 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10468 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10469 else
10470 :
10471 fi
10472
10473 fi
10474
10475
10476
10477
10478
10479
10480 lt_prog_compiler_wl=
10481 lt_prog_compiler_pic=
10482 lt_prog_compiler_static=
10483
10484
10485 if test yes = "$GCC"; then
10486 lt_prog_compiler_wl='-Wl,'
10487 lt_prog_compiler_static='-static'
10488
10489 case $host_os in
10490 aix*)
10491 # All AIX code is PIC.
10492 if test ia64 = "$host_cpu"; then
10493 # AIX 5 now supports IA64 processor
10494 lt_prog_compiler_static='-Bstatic'
10495 fi
10496 lt_prog_compiler_pic='-fPIC'
10497 ;;
10498
10499 amigaos*)
10500 case $host_cpu in
10501 powerpc)
10502 # see comment about AmigaOS4 .so support
10503 lt_prog_compiler_pic='-fPIC'
10504 ;;
10505 m68k)
10506 # FIXME: we need at least 68020 code to build shared libraries, but
10507 # adding the '-m68020' flag to GCC prevents building anything better,
10508 # like '-m68040'.
10509 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10510 ;;
10511 esac
10512 ;;
10513
10514 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10515 # PIC is the default for these OSes.
10516 ;;
10517
10518 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10519 # This hack is so that the source file can tell whether it is being
10520 # built for inclusion in a dll (and should export symbols for example).
10521 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10522 # (--disable-auto-import) libraries
10523 lt_prog_compiler_pic='-DDLL_EXPORT'
10524 case $host_os in
10525 os2*)
10526 lt_prog_compiler_static='$wl-static'
10527 ;;
10528 esac
10529 ;;
10530
10531 darwin* | rhapsody*)
10532 # PIC is the default on this platform
10533 # Common symbols not allowed in MH_DYLIB files
10534 lt_prog_compiler_pic='-fno-common'
10535 ;;
10536
10537 haiku*)
10538 # PIC is the default for Haiku.
10539 # The "-static" flag exists, but is broken.
10540 lt_prog_compiler_static=
10541 ;;
10542
10543 hpux*)
10544 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10545 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10546 # sets the default TLS model and affects inlining.
10547 case $host_cpu in
10548 hppa*64*)
10549 # +Z the default
10550 ;;
10551 *)
10552 lt_prog_compiler_pic='-fPIC'
10553 ;;
10554 esac
10555 ;;
10556
10557 interix[3-9]*)
10558 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10559 # Instead, we relocate shared libraries at runtime.
10560 ;;
10561
10562 msdosdjgpp*)
10563 # Just because we use GCC doesn't mean we suddenly get shared libraries
10564 # on systems that don't support them.
10565 lt_prog_compiler_can_build_shared=no
10566 enable_shared=no
10567 ;;
10568
10569 *nto* | *qnx*)
10570 # QNX uses GNU C++, but need to define -shared option too, otherwise
10571 # it will coredump.
10572 lt_prog_compiler_pic='-fPIC -shared'
10573 ;;
10574
10575 sysv4*MP*)
10576 if test -d /usr/nec; then
10577 lt_prog_compiler_pic=-Kconform_pic
10578 fi
10579 ;;
10580
10581 *)
10582 lt_prog_compiler_pic='-fPIC'
10583 ;;
10584 esac
10585
10586 case $cc_basename in
10587 nvcc*) # Cuda Compiler Driver 2.2
10588 lt_prog_compiler_wl='-Xlinker '
10589 if test -n "$lt_prog_compiler_pic"; then
10590 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10591 fi
10592 ;;
10593 esac
10594 else
10595 # PORTME Check for flag to pass linker flags through the system compiler.
10596 case $host_os in
10597 aix*)
10598 lt_prog_compiler_wl='-Wl,'
10599 if test ia64 = "$host_cpu"; then
10600 # AIX 5 now supports IA64 processor
10601 lt_prog_compiler_static='-Bstatic'
10602 else
10603 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10604 fi
10605 ;;
10606
10607 darwin* | rhapsody*)
10608 # PIC is the default on this platform
10609 # Common symbols not allowed in MH_DYLIB files
10610 lt_prog_compiler_pic='-fno-common'
10611 case $cc_basename in
10612 nagfor*)
10613 # NAG Fortran compiler
10614 lt_prog_compiler_wl='-Wl,-Wl,,'
10615 lt_prog_compiler_pic='-PIC'
10616 lt_prog_compiler_static='-Bstatic'
10617 ;;
10618 esac
10619 ;;
10620
10621 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10622 # This hack is so that the source file can tell whether it is being
10623 # built for inclusion in a dll (and should export symbols for example).
10624 lt_prog_compiler_pic='-DDLL_EXPORT'
10625 case $host_os in
10626 os2*)
10627 lt_prog_compiler_static='$wl-static'
10628 ;;
10629 esac
10630 ;;
10631
10632 hpux9* | hpux10* | hpux11*)
10633 lt_prog_compiler_wl='-Wl,'
10634 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10635 # not for PA HP-UX.
10636 case $host_cpu in
10637 hppa*64*|ia64*)
10638 # +Z the default
10639 ;;
10640 *)
10641 lt_prog_compiler_pic='+Z'
10642 ;;
10643 esac
10644 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10645 lt_prog_compiler_static='$wl-a ${wl}archive'
10646 ;;
10647
10648 irix5* | irix6* | nonstopux*)
10649 lt_prog_compiler_wl='-Wl,'
10650 # PIC (with -KPIC) is the default.
10651 lt_prog_compiler_static='-non_shared'
10652 ;;
10653
10654 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10655 case $cc_basename in
10656 # old Intel for x86_64, which still supported -KPIC.
10657 ecc*)
10658 lt_prog_compiler_wl='-Wl,'
10659 lt_prog_compiler_pic='-KPIC'
10660 lt_prog_compiler_static='-static'
10661 ;;
10662 *flang* | ftn | f18* | f95*)
10663 # Flang compiler.
10664 lt_prog_compiler_wl='-Wl,'
10665 lt_prog_compiler_pic='-fPIC'
10666 lt_prog_compiler_static='-static'
10667 ;;
10668 # icc used to be incompatible with GCC.
10669 # ICC 10 doesn't accept -KPIC any more.
10670 icc* | ifort*)
10671 lt_prog_compiler_wl='-Wl,'
10672 lt_prog_compiler_pic='-fPIC'
10673 lt_prog_compiler_static='-static'
10674 ;;
10675 # Lahey Fortran 8.1.
10676 lf95*)
10677 lt_prog_compiler_wl='-Wl,'
10678 lt_prog_compiler_pic='--shared'
10679 lt_prog_compiler_static='--static'
10680 ;;
10681 nagfor*)
10682 # NAG Fortran compiler
10683 lt_prog_compiler_wl='-Wl,-Wl,,'
10684 lt_prog_compiler_pic='-PIC'
10685 lt_prog_compiler_static='-Bstatic'
10686 ;;
10687 tcc*)
10688 # Fabrice Bellard et al's Tiny C Compiler
10689 lt_prog_compiler_wl='-Wl,'
10690 lt_prog_compiler_pic='-fPIC'
10691 lt_prog_compiler_static='-static'
10692 ;;
10693 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10694 # Portland Group compilers (*not* the Pentium gcc compiler,
10695 # which looks to be a dead project)
10696 lt_prog_compiler_wl='-Wl,'
10697 lt_prog_compiler_pic='-fpic'
10698 lt_prog_compiler_static='-Bstatic'
10699 ;;
10700 ccc*)
10701 lt_prog_compiler_wl='-Wl,'
10702 # All Alpha code is PIC.
10703 lt_prog_compiler_static='-non_shared'
10704 ;;
10705 xl* | bgxl* | bgf* | mpixl*)
10706 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10707 lt_prog_compiler_wl='-Wl,'
10708 lt_prog_compiler_pic='-qpic'
10709 lt_prog_compiler_static='-qstaticlink'
10710 ;;
10711 *)
10712 case `$CC -V 2>&1 | $SED 5q` in
10713 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10714 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10715 lt_prog_compiler_pic='-KPIC'
10716 lt_prog_compiler_static='-Bstatic'
10717 lt_prog_compiler_wl=''
10718 ;;
10719 *Sun\ F* | *Sun*Fortran*)
10720 lt_prog_compiler_pic='-KPIC'
10721 lt_prog_compiler_static='-Bstatic'
10722 lt_prog_compiler_wl='-Qoption ld '
10723 ;;
10724 *Sun\ C*)
10725 # Sun C 5.9
10726 lt_prog_compiler_pic='-KPIC'
10727 lt_prog_compiler_static='-Bstatic'
10728 lt_prog_compiler_wl='-Wl,'
10729 ;;
10730 *Intel*\ [CF]*Compiler*)
10731 lt_prog_compiler_wl='-Wl,'
10732 lt_prog_compiler_pic='-fPIC'
10733 lt_prog_compiler_static='-static'
10734 ;;
10735 *Portland\ Group*)
10736 lt_prog_compiler_wl='-Wl,'
10737 lt_prog_compiler_pic='-fpic'
10738 lt_prog_compiler_static='-Bstatic'
10739 ;;
10740 esac
10741 ;;
10742 esac
10743 ;;
10744
10745 newsos6)
10746 lt_prog_compiler_pic='-KPIC'
10747 lt_prog_compiler_static='-Bstatic'
10748 ;;
10749
10750 *-mlibc)
10751 lt_prog_compiler_wl='-Wl,'
10752 lt_prog_compiler_pic='-fPIC'
10753 lt_prog_compiler_static='-static'
10754 ;;
10755
10756 *nto* | *qnx*)
10757 # QNX uses GNU C++, but need to define -shared option too, otherwise
10758 # it will coredump.
10759 lt_prog_compiler_pic='-fPIC -shared'
10760 ;;
10761
10762 osf3* | osf4* | osf5*)
10763 lt_prog_compiler_wl='-Wl,'
10764 # All OSF/1 code is PIC.
10765 lt_prog_compiler_static='-non_shared'
10766 ;;
10767
10768 rdos*)
10769 lt_prog_compiler_static='-non_shared'
10770 ;;
10771
10772 serenity*)
10773 ;;
10774
10775 solaris*)
10776 lt_prog_compiler_pic='-KPIC'
10777 lt_prog_compiler_static='-Bstatic'
10778 case $cc_basename in
10779 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10780 lt_prog_compiler_wl='-Qoption ld ';;
10781 *)
10782 lt_prog_compiler_wl='-Wl,';;
10783 esac
10784 ;;
10785
10786 sunos4*)
10787 lt_prog_compiler_wl='-Qoption ld '
10788 lt_prog_compiler_pic='-PIC'
10789 lt_prog_compiler_static='-Bstatic'
10790 ;;
10791
10792 sysv4 | sysv4.2uw2* | sysv4.3*)
10793 lt_prog_compiler_wl='-Wl,'
10794 lt_prog_compiler_pic='-KPIC'
10795 lt_prog_compiler_static='-Bstatic'
10796 ;;
10797
10798 sysv4*MP*)
10799 if test -d /usr/nec; then
10800 lt_prog_compiler_pic='-Kconform_pic'
10801 lt_prog_compiler_static='-Bstatic'
10802 fi
10803 ;;
10804
10805 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10806 lt_prog_compiler_wl='-Wl,'
10807 lt_prog_compiler_pic='-KPIC'
10808 lt_prog_compiler_static='-Bstatic'
10809 ;;
10810
10811 unicos*)
10812 lt_prog_compiler_wl='-Wl,'
10813 lt_prog_compiler_can_build_shared=no
10814 ;;
10815
10816 uts4*)
10817 lt_prog_compiler_pic='-pic'
10818 lt_prog_compiler_static='-Bstatic'
10819 ;;
10820
10821 *)
10822 lt_prog_compiler_can_build_shared=no
10823 ;;
10824 esac
10825 fi
10826
10827 case $host_os in
10828 # For platforms that do not support PIC, -DPIC is meaningless:
10829 *djgpp*)
10830 lt_prog_compiler_pic=
10831 ;;
10832 *)
10833 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10834 ;;
10835 esac
10836
10837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10838 printf %s "checking for $compiler option to produce PIC... " >&6; }
10839 if test ${lt_cv_prog_compiler_pic+y}
10840 then :
10841 printf %s "(cached) " >&6
10842 else case e in #(
10843 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10844 esac
10845 fi
10846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10847 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10848 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10849
10850 #
10851 # Check to make sure the PIC flag actually works.
10852 #
10853 if test -n "$lt_prog_compiler_pic"; then
10854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10855 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10856 if test ${lt_cv_prog_compiler_pic_works+y}
10857 then :
10858 printf %s "(cached) " >&6
10859 else case e in #(
10860 e) lt_cv_prog_compiler_pic_works=no
10861 ac_outfile=conftest.$ac_objext
10862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10863 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10864 # Insert the option either (1) after the last *FLAGS variable, or
10865 # (2) before a word containing "conftest.", or (3) at the end.
10866 # Note that $ac_compile itself does not contain backslashes and begins
10867 # with a dollar sign (not a hyphen), so the echo should work correctly.
10868 # The option is referenced via a variable to avoid confusing sed.
10869 lt_compile=`echo "$ac_compile" | $SED \
10870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10872 -e 's:$: $lt_compiler_flag:'`
10873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10874 (eval "$lt_compile" 2>conftest.err)
10875 ac_status=$?
10876 cat conftest.err >&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 if (exit $ac_status) && test -s "$ac_outfile"; then
10879 # The compiler can only warn and ignore the option if not recognized
10880 # So say no if there are warnings other than the usual output.
10881 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10883 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10884 lt_cv_prog_compiler_pic_works=yes
10885 fi
10886 fi
10887 $RM conftest*
10888 ;;
10889 esac
10890 fi
10891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10892 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10893
10894 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10895 case $lt_prog_compiler_pic in
10896 "" | " "*) ;;
10897 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10898 esac
10899 else
10900 lt_prog_compiler_pic=
10901 lt_prog_compiler_can_build_shared=no
10902 fi
10903
10904 fi
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916 #
10917 # Check to make sure the static flag actually works.
10918 #
10919 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10921 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10922 if test ${lt_cv_prog_compiler_static_works+y}
10923 then :
10924 printf %s "(cached) " >&6
10925 else case e in #(
10926 e) lt_cv_prog_compiler_static_works=no
10927 save_LDFLAGS=$LDFLAGS
10928 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10929 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10930 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10931 # The linker can only warn and ignore the option if not recognized
10932 # So say no if there are warnings
10933 if test -s conftest.err; then
10934 # Append any errors to the config.log.
10935 cat conftest.err 1>&5
10936 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10938 if diff conftest.exp conftest.er2 >/dev/null; then
10939 lt_cv_prog_compiler_static_works=yes
10940 fi
10941 else
10942 lt_cv_prog_compiler_static_works=yes
10943 fi
10944 fi
10945 $RM -r conftest*
10946 LDFLAGS=$save_LDFLAGS
10947 ;;
10948 esac
10949 fi
10950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10951 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10952
10953 if test yes = "$lt_cv_prog_compiler_static_works"; then
10954 :
10955 else
10956 lt_prog_compiler_static=
10957 fi
10958
10959
10960
10961
10962
10963
10964
10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10966 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10967 if test ${lt_cv_prog_compiler_c_o+y}
10968 then :
10969 printf %s "(cached) " >&6
10970 else case e in #(
10971 e) lt_cv_prog_compiler_c_o=no
10972 $RM -r conftest 2>/dev/null
10973 mkdir conftest
10974 cd conftest
10975 mkdir out
10976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10977
10978 lt_compiler_flag="-o out/conftest2.$ac_objext"
10979 # Insert the option either (1) after the last *FLAGS variable, or
10980 # (2) before a word containing "conftest.", or (3) at the end.
10981 # Note that $ac_compile itself does not contain backslashes and begins
10982 # with a dollar sign (not a hyphen), so the echo should work correctly.
10983 lt_compile=`echo "$ac_compile" | $SED \
10984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10986 -e 's:$: $lt_compiler_flag:'`
10987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10988 (eval "$lt_compile" 2>out/conftest.err)
10989 ac_status=$?
10990 cat out/conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10993 then
10994 # The compiler can only warn and ignore the option if not recognized
10995 # So say no if there are warnings
10996 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10999 lt_cv_prog_compiler_c_o=yes
11000 fi
11001 fi
11002 chmod u+w . 2>&5
11003 $RM conftest*
11004 # SGI C++ compiler will create directory out/ii_files/ for
11005 # template instantiation
11006 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11007 $RM out/* && rmdir out
11008 cd ..
11009 $RM -r conftest
11010 $RM conftest*
11011 ;;
11012 esac
11013 fi
11014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11015 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11016
11017
11018
11019
11020
11021
11022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11023 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11024 if test ${lt_cv_prog_compiler_c_o+y}
11025 then :
11026 printf %s "(cached) " >&6
11027 else case e in #(
11028 e) lt_cv_prog_compiler_c_o=no
11029 $RM -r conftest 2>/dev/null
11030 mkdir conftest
11031 cd conftest
11032 mkdir out
11033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11034
11035 lt_compiler_flag="-o out/conftest2.$ac_objext"
11036 # Insert the option either (1) after the last *FLAGS variable, or
11037 # (2) before a word containing "conftest.", or (3) at the end.
11038 # Note that $ac_compile itself does not contain backslashes and begins
11039 # with a dollar sign (not a hyphen), so the echo should work correctly.
11040 lt_compile=`echo "$ac_compile" | $SED \
11041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11043 -e 's:$: $lt_compiler_flag:'`
11044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11045 (eval "$lt_compile" 2>out/conftest.err)
11046 ac_status=$?
11047 cat out/conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11050 then
11051 # The compiler can only warn and ignore the option if not recognized
11052 # So say no if there are warnings
11053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11054 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11055 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11056 lt_cv_prog_compiler_c_o=yes
11057 fi
11058 fi
11059 chmod u+w . 2>&5
11060 $RM conftest*
11061 # SGI C++ compiler will create directory out/ii_files/ for
11062 # template instantiation
11063 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11064 $RM out/* && rmdir out
11065 cd ..
11066 $RM -r conftest
11067 $RM conftest*
11068 ;;
11069 esac
11070 fi
11071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11072 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11073
11074
11075
11076
11077 hard_links=nottested
11078 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11079 # do not overwrite the value of need_locks provided by the user
11080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11081 printf %s "checking if we can lock with hard links... " >&6; }
11082 hard_links=yes
11083 $RM conftest*
11084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11085 touch conftest.a
11086 ln conftest.a conftest.b 2>&5 || hard_links=no
11087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11089 printf "%s\n" "$hard_links" >&6; }
11090 if test no = "$hard_links"; then
11091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11092 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11093 need_locks=warn
11094 fi
11095 else
11096 need_locks=no
11097 fi
11098
11099
11100
11101
11102
11103
11104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11105 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11106
11107 runpath_var=
11108 allow_undefined_flag=
11109 always_export_symbols=no
11110 archive_cmds=
11111 archive_expsym_cmds=
11112 compiler_needs_object=no
11113 enable_shared_with_static_runtimes=no
11114 export_dynamic_flag_spec=
11115 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11116 hardcode_automatic=no
11117 hardcode_direct=no
11118 hardcode_direct_absolute=no
11119 hardcode_libdir_flag_spec=
11120 hardcode_libdir_separator=
11121 hardcode_minus_L=no
11122 hardcode_shlibpath_var=unsupported
11123 inherit_rpath=no
11124 link_all_deplibs=unknown
11125 module_cmds=
11126 module_expsym_cmds=
11127 old_archive_from_new_cmds=
11128 old_archive_from_expsyms_cmds=
11129 thread_safe_flag_spec=
11130 whole_archive_flag_spec=
11131 # include_expsyms should be a list of space-separated symbols to be *always*
11132 # included in the symbol list
11133 include_expsyms=
11134 # exclude_expsyms can be an extended regexp of symbols to exclude
11135 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11136 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11137 # as well as any symbol that contains 'd'.
11138 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11139 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11140 # platforms (ab)use it in PIC code, but their linkers get confused if
11141 # the symbol is explicitly referenced. Since portable code cannot
11142 # rely on this symbol name, it's probably fine to never include it in
11143 # preloaded symbol tables.
11144 # Exclude shared library initialization/finalization symbols.
11145 extract_expsyms_cmds=
11146
11147 case $host_os in
11148 cygwin* | mingw* | windows* | pw32* | cegcc*)
11149 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11150 # When not using gcc, we currently assume that we are using
11151 # Microsoft Visual C++ or Intel C++ Compiler.
11152 if test yes != "$GCC"; then
11153 with_gnu_ld=no
11154 fi
11155 ;;
11156 interix*)
11157 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11158 with_gnu_ld=yes
11159 ;;
11160 esac
11161
11162 ld_shlibs=yes
11163
11164 # On some targets, GNU ld is compatible enough with the native linker
11165 # that we're better off using the native interface for both.
11166 lt_use_gnu_ld_interface=no
11167 if test yes = "$with_gnu_ld"; then
11168 case $host_os in
11169 aix*)
11170 # The AIX port of GNU ld has always aspired to compatibility
11171 # with the native linker. However, as the warning in the GNU ld
11172 # block says, versions before 2.19.5* couldn't really create working
11173 # shared libraries, regardless of the interface used.
11174 case `$LD -v 2>&1` in
11175 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11176 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11177 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11178 *)
11179 lt_use_gnu_ld_interface=yes
11180 ;;
11181 esac
11182 ;;
11183 *)
11184 lt_use_gnu_ld_interface=yes
11185 ;;
11186 esac
11187 fi
11188
11189 if test yes = "$lt_use_gnu_ld_interface"; then
11190 # If archive_cmds runs LD, not CC, wlarc should be empty
11191 wlarc='$wl'
11192
11193 # Set some defaults for GNU ld with shared library support. These
11194 # are reset later if shared libraries are not supported. Putting them
11195 # here allows them to be overridden if necessary.
11196 runpath_var=LD_RUN_PATH
11197 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11198 export_dynamic_flag_spec='$wl--export-dynamic'
11199 # ancient GNU ld didn't support --whole-archive et. al.
11200 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11201 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11202 else
11203 whole_archive_flag_spec=
11204 fi
11205 supports_anon_versioning=no
11206 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11207 *GNU\ gold*) supports_anon_versioning=yes ;;
11208 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11209 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11210 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11211 *\ 2.11.*) ;; # other 2.11 versions
11212 *) supports_anon_versioning=yes ;;
11213 esac
11214
11215 # See if GNU ld supports shared libraries.
11216 case $host_os in
11217 aix[3-9]*)
11218 # On AIX/PPC, the GNU linker is very broken
11219 if test ia64 != "$host_cpu"; then
11220 ld_shlibs=no
11221 cat <<_LT_EOF 1>&2
11222
11223 *** Warning: the GNU linker, at least up to release 2.19, is reported
11224 *** to be unable to reliably create shared libraries on AIX.
11225 *** Therefore, libtool is disabling shared libraries support. If you
11226 *** really care for shared libraries, you may want to install binutils
11227 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11228 *** You will then need to restart the configuration process.
11229
11230 _LT_EOF
11231 fi
11232 ;;
11233
11234 amigaos*)
11235 case $host_cpu in
11236 powerpc)
11237 # see comment about AmigaOS4 .so support
11238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11239 archive_expsym_cmds=''
11240 ;;
11241 m68k)
11242 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)'
11243 hardcode_libdir_flag_spec='-L$libdir'
11244 hardcode_minus_L=yes
11245 ;;
11246 esac
11247 ;;
11248
11249 beos*)
11250 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11251 allow_undefined_flag=unsupported
11252 # Joseph Beckenbach <[email protected]> says some releases of gcc
11253 # support --undefined. This deserves some investigation. FIXME
11254 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11255 else
11256 ld_shlibs=no
11257 fi
11258 ;;
11259
11260 cygwin* | mingw* | windows* | pw32* | cegcc*)
11261 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11262 # as there is no search path for DLLs.
11263 hardcode_libdir_flag_spec='-L$libdir'
11264 export_dynamic_flag_spec='$wl--export-all-symbols'
11265 allow_undefined_flag=unsupported
11266 always_export_symbols=no
11267 enable_shared_with_static_runtimes=yes
11268 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'
11269 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11270 file_list_spec='@'
11271
11272 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11274 # If the export-symbols file already is a .def file, use it as
11275 # is; otherwise, prepend EXPORTS...
11276 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11277 cp $export_symbols $output_objdir/$soname.def;
11278 else
11279 echo EXPORTS > $output_objdir/$soname.def;
11280 cat $export_symbols >> $output_objdir/$soname.def;
11281 fi~
11282 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11283 else
11284 ld_shlibs=no
11285 fi
11286 ;;
11287
11288 haiku*)
11289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11290 link_all_deplibs=no
11291 ;;
11292
11293 os2*)
11294 hardcode_libdir_flag_spec='-L$libdir'
11295 hardcode_minus_L=yes
11296 allow_undefined_flag=unsupported
11297 shrext_cmds=.dll
11298 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11299 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11300 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11301 $ECHO EXPORTS >> $output_objdir/$libname.def~
11302 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11303 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11304 emximp -o $lib $output_objdir/$libname.def'
11305 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11306 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11307 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11308 $ECHO EXPORTS >> $output_objdir/$libname.def~
11309 prefix_cmds="$SED"~
11310 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11311 prefix_cmds="$prefix_cmds -e 1d";
11312 fi~
11313 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11314 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11315 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11316 emximp -o $lib $output_objdir/$libname.def'
11317 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11318 enable_shared_with_static_runtimes=yes
11319 file_list_spec='@'
11320 ;;
11321
11322 interix[3-9]*)
11323 hardcode_direct=no
11324 hardcode_shlibpath_var=no
11325 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11326 export_dynamic_flag_spec='$wl-E'
11327 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11328 # Instead, shared libraries are loaded at an image base (0x10000000 by
11329 # default) and relocated if they conflict, which is a slow very memory
11330 # consuming and fragmenting process. To avoid this, we pick a random,
11331 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11332 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11333 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11334 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'
11335 ;;
11336
11337 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11338 tmp_diet=no
11339 if test linux-dietlibc = "$host_os"; then
11340 case $cc_basename in
11341 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11342 esac
11343 fi
11344 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11345 && test no = "$tmp_diet"
11346 then
11347 tmp_addflag=' $pic_flag'
11348 tmp_sharedflag='-shared'
11349 case $cc_basename,$host_cpu in
11350 pgcc*) # Portland Group C compiler
11351 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'
11352 tmp_addflag=' $pic_flag'
11353 ;;
11354 pgf77* | pgf90* | pgf95* | pgfortran*)
11355 # Portland Group f77 and f90 compilers
11356 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'
11357 tmp_addflag=' $pic_flag -Mnomain' ;;
11358 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11359 tmp_addflag=' -i_dynamic' ;;
11360 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11361 tmp_addflag=' -i_dynamic -nofor_main' ;;
11362 ifc* | ifort*) # Intel Fortran compiler
11363 tmp_addflag=' -nofor_main' ;;
11364 lf95*) # Lahey Fortran 8.1
11365 whole_archive_flag_spec=
11366 tmp_sharedflag='--shared' ;;
11367 nagfor*) # NAGFOR 5.3
11368 tmp_sharedflag='-Wl,-shared' ;;
11369 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11370 tmp_sharedflag='-qmkshrobj'
11371 tmp_addflag= ;;
11372 nvcc*) # Cuda Compiler Driver 2.2
11373 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'
11374 compiler_needs_object=yes
11375 ;;
11376 esac
11377 case `$CC -V 2>&1 | $SED 5q` in
11378 *Sun\ C*) # Sun C 5.9
11379 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'
11380 compiler_needs_object=yes
11381 tmp_sharedflag='-G' ;;
11382 *Sun\ F*) # Sun Fortran 8.3
11383 tmp_sharedflag='-G' ;;
11384 esac
11385 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11386
11387 if test yes = "$supports_anon_versioning"; then
11388 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11389 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11390 echo "local: *; };" >> $output_objdir/$libname.ver~
11391 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11392 fi
11393
11394 case $cc_basename in
11395 tcc*)
11396 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11397 export_dynamic_flag_spec='-rdynamic'
11398 ;;
11399 xlf* | bgf* | bgxlf* | mpixlf*)
11400 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11401 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11402 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11403 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11404 if test yes = "$supports_anon_versioning"; then
11405 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11406 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11407 echo "local: *; };" >> $output_objdir/$libname.ver~
11408 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11409 fi
11410 ;;
11411 esac
11412 else
11413 ld_shlibs=no
11414 fi
11415 ;;
11416
11417 *-mlibc)
11418 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11419 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11420 ;;
11421
11422 netbsd* | netbsdelf*-gnu)
11423 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11424 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11425 wlarc=
11426 else
11427 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11428 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11429 fi
11430 ;;
11431
11432 solaris*)
11433 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11434 ld_shlibs=no
11435 cat <<_LT_EOF 1>&2
11436
11437 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11438 *** create shared libraries on Solaris systems. Therefore, libtool
11439 *** is disabling shared libraries support. We urge you to upgrade GNU
11440 *** binutils to release 2.9.1 or newer. Another option is to modify
11441 *** your PATH or compiler configuration so that the native linker is
11442 *** used, and then restart.
11443
11444 _LT_EOF
11445 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11446 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11447 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11448 else
11449 ld_shlibs=no
11450 fi
11451 ;;
11452
11453 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11454 case `$LD -v 2>&1` in
11455 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11456 ld_shlibs=no
11457 cat <<_LT_EOF 1>&2
11458
11459 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11460 *** reliably create shared libraries on SCO systems. Therefore, libtool
11461 *** is disabling shared libraries support. We urge you to upgrade GNU
11462 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11463 *** your PATH or compiler configuration so that the native linker is
11464 *** used, and then restart.
11465
11466 _LT_EOF
11467 ;;
11468 *)
11469 # For security reasons, it is highly recommended that you always
11470 # use absolute paths for naming shared libraries, and exclude the
11471 # DT_RUNPATH tag from executables and libraries. But doing so
11472 # requires that you compile everything twice, which is a pain.
11473 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11474 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11476 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11477 else
11478 ld_shlibs=no
11479 fi
11480 ;;
11481 esac
11482 ;;
11483
11484 sunos4*)
11485 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11486 wlarc=
11487 hardcode_direct=yes
11488 hardcode_shlibpath_var=no
11489 ;;
11490
11491 *)
11492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11493 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11494 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11495 else
11496 ld_shlibs=no
11497 fi
11498 ;;
11499 esac
11500
11501 if test no = "$ld_shlibs"; then
11502 runpath_var=
11503 hardcode_libdir_flag_spec=
11504 export_dynamic_flag_spec=
11505 whole_archive_flag_spec=
11506 fi
11507 else
11508 # PORTME fill in a description of your system's linker (not GNU ld)
11509 case $host_os in
11510 aix3*)
11511 allow_undefined_flag=unsupported
11512 always_export_symbols=yes
11513 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'
11514 # Note: this linker hardcodes the directories in LIBPATH if there
11515 # are no directories specified by -L.
11516 hardcode_minus_L=yes
11517 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11518 # Neither direct hardcoding nor static linking is supported with a
11519 # broken collect2.
11520 hardcode_direct=unsupported
11521 fi
11522 ;;
11523
11524 aix[4-9]*)
11525 if test ia64 = "$host_cpu"; then
11526 # On IA64, the linker does run time linking by default, so we don't
11527 # have to do anything special.
11528 aix_use_runtimelinking=no
11529 exp_sym_flag='-Bexport'
11530 no_entry_flag=
11531 else
11532 # If we're using GNU nm, then we don't want the "-C" option.
11533 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11534 # Without the "-l" option, or with the "-B" option, AIX nm treats
11535 # weak defined symbols like other global defined symbols, whereas
11536 # GNU nm marks them as "W".
11537 # While the 'weak' keyword is ignored in the Export File, we need
11538 # it in the Import File for the 'aix-soname' feature, so we have
11539 # to replace the "-B" option with "-P" for AIX nm.
11540 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11541 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'
11542 else
11543 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'
11544 fi
11545 aix_use_runtimelinking=no
11546
11547 # Test if we are trying to use run time linking or normal
11548 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11549 # have runtime linking enabled, and use it for executables.
11550 # For shared libraries, we enable/disable runtime linking
11551 # depending on the kind of the shared library created -
11552 # when "with_aix_soname,aix_use_runtimelinking" is:
11553 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11554 # "aix,yes" lib.so shared, rtl:yes, for executables
11555 # lib.a static archive
11556 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11557 # lib.a(lib.so.V) shared, rtl:no, for executables
11558 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11559 # lib.a(lib.so.V) shared, rtl:no
11560 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11561 # lib.a static archive
11562 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11563 for ld_flag in $LDFLAGS; do
11564 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11565 aix_use_runtimelinking=yes
11566 break
11567 fi
11568 done
11569 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11570 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11571 # so we don't have lib.a shared libs to link our executables.
11572 # We have to force runtime linking in this case.
11573 aix_use_runtimelinking=yes
11574 LDFLAGS="$LDFLAGS -Wl,-brtl"
11575 fi
11576 ;;
11577 esac
11578
11579 exp_sym_flag='-bexport'
11580 no_entry_flag='-bnoentry'
11581 fi
11582
11583 # When large executables or shared objects are built, AIX ld can
11584 # have problems creating the table of contents. If linking a library
11585 # or program results in "error TOC overflow" add -mminimal-toc to
11586 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11587 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11588
11589 archive_cmds=''
11590 hardcode_direct=yes
11591 hardcode_direct_absolute=yes
11592 hardcode_libdir_separator=':'
11593 link_all_deplibs=yes
11594 file_list_spec='$wl-f,'
11595 case $with_aix_soname,$aix_use_runtimelinking in
11596 aix,*) ;; # traditional, no import file
11597 svr4,* | *,yes) # use import file
11598 # The Import File defines what to hardcode.
11599 hardcode_direct=no
11600 hardcode_direct_absolute=no
11601 ;;
11602 esac
11603
11604 if test yes = "$GCC"; then
11605 case $host_os in aix4.[012]|aix4.[012].*)
11606 # We only want to do this on AIX 4.2 and lower, the check
11607 # below for broken collect2 doesn't work under 4.3+
11608 collect2name=`$CC -print-prog-name=collect2`
11609 if test -f "$collect2name" &&
11610 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11611 then
11612 # We have reworked collect2
11613 :
11614 else
11615 # We have old collect2
11616 hardcode_direct=unsupported
11617 # It fails to find uninstalled libraries when the uninstalled
11618 # path is not listed in the libpath. Setting hardcode_minus_L
11619 # to unsupported forces relinking
11620 hardcode_minus_L=yes
11621 hardcode_libdir_flag_spec='-L$libdir'
11622 hardcode_libdir_separator=
11623 fi
11624 ;;
11625 esac
11626 shared_flag='-shared'
11627 if test yes = "$aix_use_runtimelinking"; then
11628 shared_flag="$shared_flag "'$wl-G'
11629 fi
11630 # Need to ensure runtime linking is disabled for the traditional
11631 # shared library, or the linker may eventually find shared libraries
11632 # /with/ Import File - we do not want to mix them.
11633 shared_flag_aix='-shared'
11634 shared_flag_svr4='-shared $wl-G'
11635 else
11636 # not using gcc
11637 if test ia64 = "$host_cpu"; then
11638 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11639 # chokes on -Wl,-G. The following line is correct:
11640 shared_flag='-G'
11641 else
11642 if test yes = "$aix_use_runtimelinking"; then
11643 shared_flag='$wl-G'
11644 else
11645 shared_flag='$wl-bM:SRE'
11646 fi
11647 shared_flag_aix='$wl-bM:SRE'
11648 shared_flag_svr4='$wl-G'
11649 fi
11650 fi
11651
11652 export_dynamic_flag_spec='$wl-bexpall'
11653 # It seems that -bexpall does not export symbols beginning with
11654 # underscore (_), so it is better to generate a list of symbols to export.
11655 always_export_symbols=yes
11656 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11657 # Warning - without using the other runtime loading flags (-brtl),
11658 # -berok will link without error, but may produce a broken library.
11659 allow_undefined_flag='-berok'
11660 # Determine the default libpath from the value encoded in an
11661 # empty executable.
11662 if test set = "${lt_cv_aix_libpath+set}"; then
11663 aix_libpath=$lt_cv_aix_libpath
11664 else
11665 if test ${lt_cv_aix_libpath_+y}
11666 then :
11667 printf %s "(cached) " >&6
11668 else case e in #(
11669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11671
11672 int
11673 main (void)
11674 {
11675
11676 ;
11677 return 0;
11678 }
11679 _ACEOF
11680 if ac_fn_c_try_link "$LINENO"
11681 then :
11682
11683 lt_aix_libpath_sed='
11684 /Import File Strings/,/^$/ {
11685 /^0/ {
11686 s/^0 *\([^ ]*\) *$/\1/
11687 p
11688 }
11689 }'
11690 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11691 # Check for a 64-bit object if we didn't find anything.
11692 if test -z "$lt_cv_aix_libpath_"; then
11693 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11694 fi
11695 fi
11696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11697 conftest$ac_exeext conftest.$ac_ext
11698 if test -z "$lt_cv_aix_libpath_"; then
11699 lt_cv_aix_libpath_=/usr/lib:/lib
11700 fi
11701 ;;
11702 esac
11703 fi
11704
11705 aix_libpath=$lt_cv_aix_libpath_
11706 fi
11707
11708 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11709 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
11710 else
11711 if test ia64 = "$host_cpu"; then
11712 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11713 allow_undefined_flag="-z nodefs"
11714 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"
11715 else
11716 # Determine the default libpath from the value encoded in an
11717 # empty executable.
11718 if test set = "${lt_cv_aix_libpath+set}"; then
11719 aix_libpath=$lt_cv_aix_libpath
11720 else
11721 if test ${lt_cv_aix_libpath_+y}
11722 then :
11723 printf %s "(cached) " >&6
11724 else case e in #(
11725 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726 /* end confdefs.h. */
11727
11728 int
11729 main (void)
11730 {
11731
11732 ;
11733 return 0;
11734 }
11735 _ACEOF
11736 if ac_fn_c_try_link "$LINENO"
11737 then :
11738
11739 lt_aix_libpath_sed='
11740 /Import File Strings/,/^$/ {
11741 /^0/ {
11742 s/^0 *\([^ ]*\) *$/\1/
11743 p
11744 }
11745 }'
11746 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11747 # Check for a 64-bit object if we didn't find anything.
11748 if test -z "$lt_cv_aix_libpath_"; then
11749 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11750 fi
11751 fi
11752 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11753 conftest$ac_exeext conftest.$ac_ext
11754 if test -z "$lt_cv_aix_libpath_"; then
11755 lt_cv_aix_libpath_=/usr/lib:/lib
11756 fi
11757 ;;
11758 esac
11759 fi
11760
11761 aix_libpath=$lt_cv_aix_libpath_
11762 fi
11763
11764 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11765 # Warning - without using the other run time loading flags,
11766 # -berok will link without error, but may produce a broken library.
11767 no_undefined_flag=' $wl-bernotok'
11768 allow_undefined_flag=' $wl-berok'
11769 if test yes = "$with_gnu_ld"; then
11770 # We only use this code for GNU lds that support --whole-archive.
11771 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11772 else
11773 # Exported symbols can be pulled into shared objects from archives
11774 whole_archive_flag_spec='$convenience'
11775 fi
11776 archive_cmds_need_lc=yes
11777 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11778 # -brtl affects multiple linker settings, -berok does not and is overridden later
11779 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11780 if test svr4 != "$with_aix_soname"; then
11781 # This is similar to how AIX traditionally builds its shared libraries.
11782 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'
11783 fi
11784 if test aix != "$with_aix_soname"; then
11785 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'
11786 else
11787 # used by -dlpreopen to get the symbols
11788 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11789 fi
11790 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11791 fi
11792 fi
11793 ;;
11794
11795 amigaos*)
11796 case $host_cpu in
11797 powerpc)
11798 # see comment about AmigaOS4 .so support
11799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11800 archive_expsym_cmds=''
11801 ;;
11802 m68k)
11803 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)'
11804 hardcode_libdir_flag_spec='-L$libdir'
11805 hardcode_minus_L=yes
11806 ;;
11807 esac
11808 ;;
11809
11810 bsdi[45]*)
11811 export_dynamic_flag_spec=-rdynamic
11812 ;;
11813
11814 cygwin* | mingw* | windows* | pw32* | cegcc*)
11815 # When not using gcc, we currently assume that we are using
11816 # Microsoft Visual C++ or Intel C++ Compiler.
11817 # hardcode_libdir_flag_spec is actually meaningless, as there is
11818 # no search path for DLLs.
11819 case $cc_basename in
11820 cl* | icl*)
11821 # Native MSVC or ICC
11822 hardcode_libdir_flag_spec=' '
11823 allow_undefined_flag=unsupported
11824 always_export_symbols=yes
11825 file_list_spec='@'
11826 # Tell ltmain to make .lib files, not .a files.
11827 libext=lib
11828 # Tell ltmain to make .dll files, not .so files.
11829 shrext_cmds=.dll
11830 # FIXME: Setting linknames here is a bad hack.
11831 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11832 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11833 cp "$export_symbols" "$output_objdir/$soname.def";
11834 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11835 else
11836 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11837 fi~
11838 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11839 linknames='
11840 # The linker will not automatically build a static lib if we build a DLL.
11841 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11842 enable_shared_with_static_runtimes=yes
11843 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11844 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11845 # Don't use ranlib
11846 old_postinstall_cmds='chmod 644 $oldlib'
11847 postlink_cmds='lt_outputfile="@OUTPUT@"~
11848 lt_tool_outputfile="@TOOL_OUTPUT@"~
11849 case $lt_outputfile in
11850 *.exe|*.EXE) ;;
11851 *)
11852 lt_outputfile=$lt_outputfile.exe
11853 lt_tool_outputfile=$lt_tool_outputfile.exe
11854 ;;
11855 esac~
11856 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11857 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11858 $RM "$lt_outputfile.manifest";
11859 fi'
11860 ;;
11861 *)
11862 # Assume MSVC and ICC wrapper
11863 hardcode_libdir_flag_spec=' '
11864 allow_undefined_flag=unsupported
11865 # Tell ltmain to make .lib files, not .a files.
11866 libext=lib
11867 # Tell ltmain to make .dll files, not .so files.
11868 shrext_cmds=.dll
11869 # FIXME: Setting linknames here is a bad hack.
11870 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11871 # The linker will automatically build a .lib file if we build a DLL.
11872 old_archive_from_new_cmds='true'
11873 # FIXME: Should let the user specify the lib program.
11874 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11875 enable_shared_with_static_runtimes=yes
11876 ;;
11877 esac
11878 ;;
11879
11880 darwin* | rhapsody*)
11881
11882
11883 archive_cmds_need_lc=no
11884 hardcode_direct=no
11885 hardcode_automatic=yes
11886 hardcode_shlibpath_var=unsupported
11887 if test yes = "$lt_cv_ld_force_load"; then
11888 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\"`'
11889
11890 else
11891 whole_archive_flag_spec=''
11892 fi
11893 link_all_deplibs=yes
11894 allow_undefined_flag=$_lt_dar_allow_undefined
11895 case $cc_basename in
11896 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11897 *) _lt_dar_can_shared=$GCC ;;
11898 esac
11899 if test yes = "$_lt_dar_can_shared"; then
11900 output_verbose_link_cmd=func_echo_all
11901 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11902 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11903 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"
11904 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"
11905
11906 else
11907 ld_shlibs=no
11908 fi
11909
11910 ;;
11911
11912 dgux*)
11913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11914 hardcode_libdir_flag_spec='-L$libdir'
11915 hardcode_shlibpath_var=no
11916 ;;
11917
11918 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11919 # support. Future versions do this automatically, but an explicit c++rt0.o
11920 # does not break anything, and helps significantly (at the cost of a little
11921 # extra space).
11922 freebsd2.2*)
11923 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11924 hardcode_libdir_flag_spec='-R$libdir'
11925 hardcode_direct=yes
11926 hardcode_shlibpath_var=no
11927 ;;
11928
11929 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11930 freebsd2.*)
11931 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11932 hardcode_direct=yes
11933 hardcode_minus_L=yes
11934 hardcode_shlibpath_var=no
11935 ;;
11936
11937 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11938 freebsd* | dragonfly* | midnightbsd*)
11939 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11940 hardcode_libdir_flag_spec='-R$libdir'
11941 hardcode_direct=yes
11942 hardcode_shlibpath_var=no
11943 ;;
11944
11945 hpux9*)
11946 if test yes = "$GCC"; then
11947 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'
11948 else
11949 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'
11950 fi
11951 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11952 hardcode_libdir_separator=:
11953 hardcode_direct=yes
11954
11955 # hardcode_minus_L: Not really in the search PATH,
11956 # but as the default location of the library.
11957 hardcode_minus_L=yes
11958 export_dynamic_flag_spec='$wl-E'
11959 ;;
11960
11961 hpux10*)
11962 if test yes,no = "$GCC,$with_gnu_ld"; then
11963 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11964 else
11965 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11966 fi
11967 if test no = "$with_gnu_ld"; then
11968 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11969 hardcode_libdir_separator=:
11970 hardcode_direct=yes
11971 hardcode_direct_absolute=yes
11972 export_dynamic_flag_spec='$wl-E'
11973 # hardcode_minus_L: Not really in the search PATH,
11974 # but as the default location of the library.
11975 hardcode_minus_L=yes
11976 fi
11977 ;;
11978
11979 hpux11*)
11980 if test yes,no = "$GCC,$with_gnu_ld"; then
11981 case $host_cpu in
11982 hppa*64*)
11983 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11984 ;;
11985 ia64*)
11986 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11987 ;;
11988 *)
11989 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11990 ;;
11991 esac
11992 else
11993 case $host_cpu in
11994 hppa*64*)
11995 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11996 ;;
11997 ia64*)
11998 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11999 ;;
12000 *)
12001
12002 # Older versions of the 11.00 compiler do not understand -b yet
12003 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12005 printf %s "checking if $CC understands -b... " >&6; }
12006 if test ${lt_cv_prog_compiler__b+y}
12007 then :
12008 printf %s "(cached) " >&6
12009 else case e in #(
12010 e) lt_cv_prog_compiler__b=no
12011 save_LDFLAGS=$LDFLAGS
12012 LDFLAGS="$LDFLAGS -b"
12013 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12014 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12015 # The linker can only warn and ignore the option if not recognized
12016 # So say no if there are warnings
12017 if test -s conftest.err; then
12018 # Append any errors to the config.log.
12019 cat conftest.err 1>&5
12020 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12022 if diff conftest.exp conftest.er2 >/dev/null; then
12023 lt_cv_prog_compiler__b=yes
12024 fi
12025 else
12026 lt_cv_prog_compiler__b=yes
12027 fi
12028 fi
12029 $RM -r conftest*
12030 LDFLAGS=$save_LDFLAGS
12031 ;;
12032 esac
12033 fi
12034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12035 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12036
12037 if test yes = "$lt_cv_prog_compiler__b"; then
12038 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12039 else
12040 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12041 fi
12042
12043 ;;
12044 esac
12045 fi
12046 if test no = "$with_gnu_ld"; then
12047 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12048 hardcode_libdir_separator=:
12049
12050 case $host_cpu in
12051 hppa*64*|ia64*)
12052 hardcode_direct=no
12053 hardcode_shlibpath_var=no
12054 ;;
12055 *)
12056 hardcode_direct=yes
12057 hardcode_direct_absolute=yes
12058 export_dynamic_flag_spec='$wl-E'
12059
12060 # hardcode_minus_L: Not really in the search PATH,
12061 # but as the default location of the library.
12062 hardcode_minus_L=yes
12063 ;;
12064 esac
12065 fi
12066 ;;
12067
12068 irix5* | irix6* | nonstopux*)
12069 if test yes = "$GCC"; then
12070 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'
12071 # Try to use the -exported_symbol ld option, if it does not
12072 # work, assume that -exports_file does not work either and
12073 # implicitly export all symbols.
12074 # This should be the same for all languages, so no per-tag cache variable.
12075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12076 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12077 if test ${lt_cv_irix_exported_symbol+y}
12078 then :
12079 printf %s "(cached) " >&6
12080 else case e in #(
12081 e) save_LDFLAGS=$LDFLAGS
12082 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085 int foo (void) { return 0; }
12086 _ACEOF
12087 if ac_fn_c_try_link "$LINENO"
12088 then :
12089 lt_cv_irix_exported_symbol=yes
12090 else case e in #(
12091 e) lt_cv_irix_exported_symbol=no ;;
12092 esac
12093 fi
12094 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12095 conftest$ac_exeext conftest.$ac_ext
12096 LDFLAGS=$save_LDFLAGS ;;
12097 esac
12098 fi
12099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12100 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12101 if test yes = "$lt_cv_irix_exported_symbol"; then
12102 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'
12103 fi
12104 else
12105 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'
12106 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'
12107 fi
12108 archive_cmds_need_lc='no'
12109 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12110 hardcode_libdir_separator=:
12111 inherit_rpath=yes
12112 link_all_deplibs=yes
12113 ;;
12114
12115 linux*)
12116 case $cc_basename in
12117 tcc*)
12118 # Fabrice Bellard et al's Tiny C Compiler
12119 ld_shlibs=yes
12120 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12121 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12122 ;;
12123 esac
12124 ;;
12125
12126 *-mlibc)
12127 ;;
12128
12129 netbsd* | netbsdelf*-gnu)
12130 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12132 else
12133 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12134 fi
12135 hardcode_libdir_flag_spec='-R$libdir'
12136 hardcode_direct=yes
12137 hardcode_shlibpath_var=no
12138 ;;
12139
12140 newsos6)
12141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12142 hardcode_direct=yes
12143 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12144 hardcode_libdir_separator=:
12145 hardcode_shlibpath_var=no
12146 ;;
12147
12148 *nto* | *qnx*)
12149 ;;
12150
12151 openbsd*)
12152 if test -f /usr/libexec/ld.so; then
12153 hardcode_direct=yes
12154 hardcode_shlibpath_var=no
12155 hardcode_direct_absolute=yes
12156 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12157 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12158 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12159 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12160 export_dynamic_flag_spec='$wl-E'
12161 else
12162 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12163 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12164 fi
12165 else
12166 ld_shlibs=no
12167 fi
12168 ;;
12169
12170 os2*)
12171 hardcode_libdir_flag_spec='-L$libdir'
12172 hardcode_minus_L=yes
12173 allow_undefined_flag=unsupported
12174 shrext_cmds=.dll
12175 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12176 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12177 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12178 $ECHO EXPORTS >> $output_objdir/$libname.def~
12179 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12180 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12181 emximp -o $lib $output_objdir/$libname.def'
12182 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12183 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12184 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12185 $ECHO EXPORTS >> $output_objdir/$libname.def~
12186 prefix_cmds="$SED"~
12187 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12188 prefix_cmds="$prefix_cmds -e 1d";
12189 fi~
12190 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12191 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12192 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12193 emximp -o $lib $output_objdir/$libname.def'
12194 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12195 enable_shared_with_static_runtimes=yes
12196 file_list_spec='@'
12197 ;;
12198
12199 osf3*)
12200 if test yes = "$GCC"; then
12201 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12202 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'
12203 else
12204 allow_undefined_flag=' -expect_unresolved \*'
12205 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'
12206 fi
12207 archive_cmds_need_lc='no'
12208 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12209 hardcode_libdir_separator=:
12210 ;;
12211
12212 osf4* | osf5*) # as osf3* with the addition of -msym flag
12213 if test yes = "$GCC"; then
12214 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12215 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'
12216 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12217 else
12218 allow_undefined_flag=' -expect_unresolved \*'
12219 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'
12220 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~
12221 $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'
12222
12223 # Both c and cxx compiler support -rpath directly
12224 hardcode_libdir_flag_spec='-rpath $libdir'
12225 fi
12226 archive_cmds_need_lc='no'
12227 hardcode_libdir_separator=:
12228 ;;
12229
12230 serenity*)
12231 ;;
12232
12233 solaris*)
12234 no_undefined_flag=' -z defs'
12235 if test yes = "$GCC"; then
12236 wlarc='$wl'
12237 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12238 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12239 $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'
12240 else
12241 case `$CC -V 2>&1` in
12242 *"Compilers 5.0"*)
12243 wlarc=''
12244 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12245 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12246 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12247 ;;
12248 *)
12249 wlarc='$wl'
12250 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12251 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12252 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12253 ;;
12254 esac
12255 fi
12256 hardcode_libdir_flag_spec='-R$libdir'
12257 hardcode_shlibpath_var=no
12258 case $host_os in
12259 solaris2.[0-5] | solaris2.[0-5].*) ;;
12260 *)
12261 # The compiler driver will combine and reorder linker options,
12262 # but understands '-z linker_flag'. GCC discards it without '$wl',
12263 # but is careful enough not to reorder.
12264 # Supported since Solaris 2.6 (maybe 2.5.1?)
12265 if test yes = "$GCC"; then
12266 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12267 else
12268 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12269 fi
12270 ;;
12271 esac
12272 link_all_deplibs=yes
12273 ;;
12274
12275 sunos4*)
12276 if test sequent = "$host_vendor"; then
12277 # Use $CC to link under sequent, because it throws in some extra .o
12278 # files that make .init and .fini sections work.
12279 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12280 else
12281 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12282 fi
12283 hardcode_libdir_flag_spec='-L$libdir'
12284 hardcode_direct=yes
12285 hardcode_minus_L=yes
12286 hardcode_shlibpath_var=no
12287 ;;
12288
12289 sysv4)
12290 case $host_vendor in
12291 sni)
12292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12293 hardcode_direct=yes # is this really true???
12294 ;;
12295 siemens)
12296 ## LD is ld it makes a PLAMLIB
12297 ## CC just makes a GrossModule.
12298 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12299 reload_cmds='$CC -r -o $output$reload_objs'
12300 hardcode_direct=no
12301 ;;
12302 motorola)
12303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12304 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12305 ;;
12306 esac
12307 runpath_var='LD_RUN_PATH'
12308 hardcode_shlibpath_var=no
12309 ;;
12310
12311 sysv4.3*)
12312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12313 hardcode_shlibpath_var=no
12314 export_dynamic_flag_spec='-Bexport'
12315 ;;
12316
12317 sysv4*MP*)
12318 if test -d /usr/nec; then
12319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12320 hardcode_shlibpath_var=no
12321 runpath_var=LD_RUN_PATH
12322 hardcode_runpath_var=yes
12323 ld_shlibs=yes
12324 fi
12325 ;;
12326
12327 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12328 no_undefined_flag='$wl-z,text'
12329 archive_cmds_need_lc=no
12330 hardcode_shlibpath_var=no
12331 runpath_var='LD_RUN_PATH'
12332
12333 if test yes = "$GCC"; then
12334 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12335 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12336 else
12337 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12338 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12339 fi
12340 ;;
12341
12342 sysv5* | sco3.2v5* | sco5v6*)
12343 # Note: We CANNOT use -z defs as we might desire, because we do not
12344 # link with -lc, and that would cause any symbols used from libc to
12345 # always be unresolved, which means just about no library would
12346 # ever link correctly. If we're not using GNU ld we use -z text
12347 # though, which does catch some bad symbols but isn't as heavy-handed
12348 # as -z defs.
12349 no_undefined_flag='$wl-z,text'
12350 allow_undefined_flag='$wl-z,nodefs'
12351 archive_cmds_need_lc=no
12352 hardcode_shlibpath_var=no
12353 hardcode_libdir_flag_spec='$wl-R,$libdir'
12354 hardcode_libdir_separator=':'
12355 link_all_deplibs=yes
12356 export_dynamic_flag_spec='$wl-Bexport'
12357 runpath_var='LD_RUN_PATH'
12358
12359 if test yes = "$GCC"; then
12360 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12361 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12362 else
12363 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12364 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12365 fi
12366 ;;
12367
12368 uts4*)
12369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12370 hardcode_libdir_flag_spec='-L$libdir'
12371 hardcode_shlibpath_var=no
12372 ;;
12373
12374 *)
12375 ld_shlibs=no
12376 ;;
12377 esac
12378
12379 if test sni = "$host_vendor"; then
12380 case $host in
12381 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12382 export_dynamic_flag_spec='$wl-Blargedynsym'
12383 ;;
12384 esac
12385 fi
12386 fi
12387
12388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12389 printf "%s\n" "$ld_shlibs" >&6; }
12390 test no = "$ld_shlibs" && can_build_shared=no
12391
12392 with_gnu_ld=$with_gnu_ld
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408 #
12409 # Do we need to explicitly link libc?
12410 #
12411 case "x$archive_cmds_need_lc" in
12412 x|xyes)
12413 # Assume -lc should be added
12414 archive_cmds_need_lc=yes
12415
12416 if test yes,yes = "$GCC,$enable_shared"; then
12417 case $archive_cmds in
12418 *'~'*)
12419 # FIXME: we may have to deal with multi-command sequences.
12420 ;;
12421 '$CC '*)
12422 # Test whether the compiler implicitly links with -lc since on some
12423 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12424 # to ld, don't add -lc before -lgcc.
12425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12426 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12427 if test ${lt_cv_archive_cmds_need_lc+y}
12428 then :
12429 printf %s "(cached) " >&6
12430 else case e in #(
12431 e) $RM conftest*
12432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12433
12434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12435 (eval $ac_compile) 2>&5
12436 ac_status=$?
12437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12438 test $ac_status = 0; } 2>conftest.err; then
12439 soname=conftest
12440 lib=conftest
12441 libobjs=conftest.$ac_objext
12442 deplibs=
12443 wl=$lt_prog_compiler_wl
12444 pic_flag=$lt_prog_compiler_pic
12445 compiler_flags=-v
12446 linker_flags=-v
12447 verstring=
12448 output_objdir=.
12449 libname=conftest
12450 lt_save_allow_undefined_flag=$allow_undefined_flag
12451 allow_undefined_flag=
12452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12453 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12454 ac_status=$?
12455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12456 test $ac_status = 0; }
12457 then
12458 lt_cv_archive_cmds_need_lc=no
12459 else
12460 lt_cv_archive_cmds_need_lc=yes
12461 fi
12462 allow_undefined_flag=$lt_save_allow_undefined_flag
12463 else
12464 cat conftest.err 1>&5
12465 fi
12466 $RM conftest*
12467 ;;
12468 esac
12469 fi
12470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12471 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12472 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12473 ;;
12474 esac
12475 fi
12476 ;;
12477 esac
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12631 printf %s "checking dynamic linker characteristics... " >&6; }
12632
12633 if test yes = "$GCC"; then
12634 case $host_os in
12635 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12636 *) lt_awk_arg='/^libraries:/' ;;
12637 esac
12638 case $host_os in
12639 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12640 *) lt_sed_strip_eq='s|=/|/|g' ;;
12641 esac
12642 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12643 case $lt_search_path_spec in
12644 *\;*)
12645 # if the path contains ";" then we assume it to be the separator
12646 # otherwise default to the standard path separator (i.e. ":") - it is
12647 # assumed that no part of a normal pathname contains ";" but that should
12648 # okay in the real world where ";" in dirpaths is itself problematic.
12649 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12650 ;;
12651 *)
12652 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12653 ;;
12654 esac
12655 # Ok, now we have the path, separated by spaces, we can step through it
12656 # and add multilib dir if necessary...
12657 lt_tmp_lt_search_path_spec=
12658 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12659 # ...but if some path component already ends with the multilib dir we assume
12660 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12661 case "$lt_multi_os_dir; $lt_search_path_spec " in
12662 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12663 lt_multi_os_dir=
12664 ;;
12665 esac
12666 for lt_sys_path in $lt_search_path_spec; do
12667 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12668 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12669 elif test -n "$lt_multi_os_dir"; then
12670 test -d "$lt_sys_path" && \
12671 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12672 fi
12673 done
12674 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12675 BEGIN {RS = " "; FS = "/|\n";} {
12676 lt_foo = "";
12677 lt_count = 0;
12678 for (lt_i = NF; lt_i > 0; lt_i--) {
12679 if ($lt_i != "" && $lt_i != ".") {
12680 if ($lt_i == "..") {
12681 lt_count++;
12682 } else {
12683 if (lt_count == 0) {
12684 lt_foo = "/" $lt_i lt_foo;
12685 } else {
12686 lt_count--;
12687 }
12688 }
12689 }
12690 }
12691 if (lt_foo != "") { lt_freq[lt_foo]++; }
12692 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12693 }'`
12694 # AWK program above erroneously prepends '/' to C:/dos/paths
12695 # for these hosts.
12696 case $host_os in
12697 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12698 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12699 esac
12700 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12701 else
12702 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12703 fi
12704 library_names_spec=
12705 libname_spec='lib$name'
12706 soname_spec=
12707 shrext_cmds=.so
12708 postinstall_cmds=
12709 postuninstall_cmds=
12710 finish_cmds=
12711 finish_eval=
12712 shlibpath_var=
12713 shlibpath_overrides_runpath=unknown
12714 version_type=none
12715 dynamic_linker="$host_os ld.so"
12716 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12717 need_lib_prefix=unknown
12718 hardcode_into_libs=no
12719
12720 # when you set need_version to no, make sure it does not cause -set_version
12721 # flags to be left without arguments
12722 need_version=unknown
12723
12724
12725
12726 case $host_os in
12727 aix3*)
12728 version_type=linux # correct to gnu/linux during the next big refactor
12729 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12730 shlibpath_var=LIBPATH
12731
12732 # AIX 3 has no versioning support, so we append a major version to the name.
12733 soname_spec='$libname$release$shared_ext$major'
12734 ;;
12735
12736 aix[4-9]*)
12737 version_type=linux # correct to gnu/linux during the next big refactor
12738 need_lib_prefix=no
12739 need_version=no
12740 hardcode_into_libs=yes
12741 if test ia64 = "$host_cpu"; then
12742 # AIX 5 supports IA64
12743 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12744 shlibpath_var=LD_LIBRARY_PATH
12745 else
12746 # With GCC up to 2.95.x, collect2 would create an import file
12747 # for dependence libraries. The import file would start with
12748 # the line '#! .'. This would cause the generated library to
12749 # depend on '.', always an invalid library. This was fixed in
12750 # development snapshots of GCC prior to 3.0.
12751 case $host_os in
12752 aix4 | aix4.[01] | aix4.[01].*)
12753 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12754 echo ' yes '
12755 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12756 :
12757 else
12758 can_build_shared=no
12759 fi
12760 ;;
12761 esac
12762 # Using Import Files as archive members, it is possible to support
12763 # filename-based versioning of shared library archives on AIX. While
12764 # this would work for both with and without runtime linking, it will
12765 # prevent static linking of such archives. So we do filename-based
12766 # shared library versioning with .so extension only, which is used
12767 # when both runtime linking and shared linking is enabled.
12768 # Unfortunately, runtime linking may impact performance, so we do
12769 # not want this to be the default eventually. Also, we use the
12770 # versioned .so libs for executables only if there is the -brtl
12771 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12772 # To allow for filename-based versioning support, we need to create
12773 # libNAME.so.V as an archive file, containing:
12774 # *) an Import File, referring to the versioned filename of the
12775 # archive as well as the shared archive member, telling the
12776 # bitwidth (32 or 64) of that shared object, and providing the
12777 # list of exported symbols of that shared object, eventually
12778 # decorated with the 'weak' keyword
12779 # *) the shared object with the F_LOADONLY flag set, to really avoid
12780 # it being seen by the linker.
12781 # At run time we better use the real file rather than another symlink,
12782 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12783
12784 case $with_aix_soname,$aix_use_runtimelinking in
12785 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12786 # soname into executable. Probably we can add versioning support to
12787 # collect2, so additional links can be useful in future.
12788 aix,yes) # traditional libtool
12789 dynamic_linker='AIX unversionable lib.so'
12790 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12791 # instead of lib<name>.a to let people know that these are not
12792 # typical AIX shared libraries.
12793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12794 ;;
12795 aix,no) # traditional AIX only
12796 dynamic_linker='AIX lib.a(lib.so.V)'
12797 # We preserve .a as extension for shared libraries through AIX4.2
12798 # and later when we are not doing run time linking.
12799 library_names_spec='$libname$release.a $libname.a'
12800 soname_spec='$libname$release$shared_ext$major'
12801 ;;
12802 svr4,*) # full svr4 only
12803 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12804 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12805 # We do not specify a path in Import Files, so LIBPATH fires.
12806 shlibpath_overrides_runpath=yes
12807 ;;
12808 *,yes) # both, prefer svr4
12809 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12810 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12811 # unpreferred sharedlib libNAME.a needs extra handling
12812 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"'
12813 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"'
12814 # We do not specify a path in Import Files, so LIBPATH fires.
12815 shlibpath_overrides_runpath=yes
12816 ;;
12817 *,no) # both, prefer aix
12818 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12819 library_names_spec='$libname$release.a $libname.a'
12820 soname_spec='$libname$release$shared_ext$major'
12821 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12822 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)'
12823 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"'
12824 ;;
12825 esac
12826 shlibpath_var=LIBPATH
12827 fi
12828 ;;
12829
12830 amigaos*)
12831 case $host_cpu in
12832 powerpc)
12833 # Since July 2007 AmigaOS4 officially supports .so libraries.
12834 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12836 ;;
12837 m68k)
12838 library_names_spec='$libname.ixlibrary $libname.a'
12839 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12840 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'
12841 ;;
12842 esac
12843 ;;
12844
12845 beos*)
12846 library_names_spec='$libname$shared_ext'
12847 dynamic_linker="$host_os ld.so"
12848 shlibpath_var=LIBRARY_PATH
12849 ;;
12850
12851 bsdi[45]*)
12852 version_type=linux # correct to gnu/linux during the next big refactor
12853 need_version=no
12854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12855 soname_spec='$libname$release$shared_ext$major'
12856 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12857 shlibpath_var=LD_LIBRARY_PATH
12858 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12859 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12860 # the default ld.so.conf also contains /usr/contrib/lib and
12861 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12862 # libtool to hard-code these into programs
12863 ;;
12864
12865 cygwin* | mingw* | windows* | pw32* | cegcc*)
12866 version_type=windows
12867 shrext_cmds=.dll
12868 need_version=no
12869 need_lib_prefix=no
12870
12871 case $GCC,$cc_basename in
12872 yes,*)
12873 # gcc
12874 library_names_spec='$libname.dll.a'
12875 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12876 # If user builds GCC with multilib enabled,
12877 # it should just install on $(libdir)
12878 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12879 if test xyes = x"$multilib"; then
12880 postinstall_cmds='base_file=`basename \$file`~
12881 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12882 dldir=$destdir/`dirname \$dlpath`~
12883 $install_prog $dir/$dlname $destdir/$dlname~
12884 chmod a+x $destdir/$dlname~
12885 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12886 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12887 fi'
12888 else
12889 postinstall_cmds='base_file=`basename \$file`~
12890 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12891 dldir=$destdir/`dirname \$dlpath`~
12892 test -d \$dldir || mkdir -p \$dldir~
12893 $install_prog $dir/$dlname \$dldir/$dlname~
12894 chmod a+x \$dldir/$dlname~
12895 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12896 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12897 fi'
12898 fi
12899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12900 dlpath=$dir/\$dldll~
12901 $RM \$dlpath'
12902 shlibpath_overrides_runpath=yes
12903
12904 case $host_os in
12905 cygwin*)
12906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12907 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12908
12909 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12910 ;;
12911 mingw* | windows* | cegcc*)
12912 # MinGW DLLs use traditional 'lib' prefix
12913 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12914 ;;
12915 pw32*)
12916 # pw32 DLLs use 'pw' prefix rather than 'lib'
12917 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12918 ;;
12919 esac
12920 dynamic_linker='Win32 ld.exe'
12921 ;;
12922
12923 *,cl* | *,icl*)
12924 # Native MSVC or ICC
12925 libname_spec='$name'
12926 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12927 library_names_spec='$libname.dll.lib'
12928
12929 case $build_os in
12930 mingw* | windows*)
12931 sys_lib_search_path_spec=
12932 lt_save_ifs=$IFS
12933 IFS=';'
12934 for lt_path in $LIB
12935 do
12936 IFS=$lt_save_ifs
12937 # Let DOS variable expansion print the short 8.3 style file name.
12938 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12939 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12940 done
12941 IFS=$lt_save_ifs
12942 # Convert to MSYS style.
12943 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12944 ;;
12945 cygwin*)
12946 # Convert to unix form, then to dos form, then back to unix form
12947 # but this time dos style (no spaces!) so that the unix form looks
12948 # like /cygdrive/c/PROGRA~1:/cygdr...
12949 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12950 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12951 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12952 ;;
12953 *)
12954 sys_lib_search_path_spec=$LIB
12955 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12956 # It is most probably a Windows format PATH.
12957 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12958 else
12959 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12960 fi
12961 # FIXME: find the short name or the path components, as spaces are
12962 # common. (e.g. "Program Files" -> "PROGRA~1")
12963 ;;
12964 esac
12965
12966 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12967 postinstall_cmds='base_file=`basename \$file`~
12968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12969 dldir=$destdir/`dirname \$dlpath`~
12970 test -d \$dldir || mkdir -p \$dldir~
12971 $install_prog $dir/$dlname \$dldir/$dlname'
12972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12973 dlpath=$dir/\$dldll~
12974 $RM \$dlpath'
12975 shlibpath_overrides_runpath=yes
12976 dynamic_linker='Win32 link.exe'
12977 ;;
12978
12979 *)
12980 # Assume MSVC and ICC wrapper
12981 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12982 dynamic_linker='Win32 ld.exe'
12983 ;;
12984 esac
12985 # FIXME: first we should search . and the directory the executable is in
12986 shlibpath_var=PATH
12987 ;;
12988
12989 darwin* | rhapsody*)
12990 dynamic_linker="$host_os dyld"
12991 version_type=darwin
12992 need_lib_prefix=no
12993 need_version=no
12994 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12995 soname_spec='$libname$release$major$shared_ext'
12996 shlibpath_overrides_runpath=yes
12997 shlibpath_var=DYLD_LIBRARY_PATH
12998 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12999
13000 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13001 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13002 ;;
13003
13004 dgux*)
13005 version_type=linux # correct to gnu/linux during the next big refactor
13006 need_lib_prefix=no
13007 need_version=no
13008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13009 soname_spec='$libname$release$shared_ext$major'
13010 shlibpath_var=LD_LIBRARY_PATH
13011 ;;
13012
13013 freebsd* | dragonfly* | midnightbsd*)
13014 # DragonFly does not have aout. When/if they implement a new
13015 # versioning mechanism, adjust this.
13016 if test -x /usr/bin/objformat; then
13017 objformat=`/usr/bin/objformat`
13018 else
13019 case $host_os in
13020 freebsd[23].*) objformat=aout ;;
13021 *) objformat=elf ;;
13022 esac
13023 fi
13024 version_type=freebsd-$objformat
13025 case $version_type in
13026 freebsd-elf*)
13027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13028 soname_spec='$libname$release$shared_ext$major'
13029 need_version=no
13030 need_lib_prefix=no
13031 ;;
13032 freebsd-*)
13033 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13034 need_version=yes
13035 ;;
13036 esac
13037 case $host_cpu in
13038 powerpc64)
13039 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
13040 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13042 /* end confdefs.h. */
13043 int test_pointer_size[sizeof (void *) - 5];
13044
13045 _ACEOF
13046 if ac_fn_c_try_compile "$LINENO"
13047 then :
13048 shlibpath_var=LD_LIBRARY_PATH
13049 else case e in #(
13050 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
13051 esac
13052 fi
13053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13054 ;;
13055 *)
13056 shlibpath_var=LD_LIBRARY_PATH
13057 ;;
13058 esac
13059 case $host_os in
13060 freebsd2.*)
13061 shlibpath_overrides_runpath=yes
13062 ;;
13063 freebsd3.[01]* | freebsdelf3.[01]*)
13064 shlibpath_overrides_runpath=yes
13065 hardcode_into_libs=yes
13066 ;;
13067 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13068 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13069 shlibpath_overrides_runpath=no
13070 hardcode_into_libs=yes
13071 ;;
13072 *) # from 4.6 on, and DragonFly
13073 shlibpath_overrides_runpath=yes
13074 hardcode_into_libs=yes
13075 ;;
13076 esac
13077 ;;
13078
13079 haiku*)
13080 version_type=linux # correct to gnu/linux during the next big refactor
13081 need_lib_prefix=no
13082 need_version=no
13083 dynamic_linker="$host_os runtime_loader"
13084 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13085 soname_spec='$libname$release$shared_ext$major'
13086 shlibpath_var=LIBRARY_PATH
13087 shlibpath_overrides_runpath=no
13088 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13089 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13090 hardcode_into_libs=no
13091 ;;
13092
13093 hpux9* | hpux10* | hpux11*)
13094 # Give a soname corresponding to the major version so that dld.sl refuses to
13095 # link against other versions.
13096 version_type=sunos
13097 need_lib_prefix=no
13098 need_version=no
13099 case $host_cpu in
13100 ia64*)
13101 shrext_cmds='.so'
13102 hardcode_into_libs=yes
13103 dynamic_linker="$host_os dld.so"
13104 shlibpath_var=LD_LIBRARY_PATH
13105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13107 soname_spec='$libname$release$shared_ext$major'
13108 if test 32 = "$HPUX_IA64_MODE"; then
13109 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13110 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13111 else
13112 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13113 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13114 fi
13115 ;;
13116 hppa*64*)
13117 shrext_cmds='.sl'
13118 hardcode_into_libs=yes
13119 dynamic_linker="$host_os dld.sl"
13120 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13123 soname_spec='$libname$release$shared_ext$major'
13124 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13126 ;;
13127 *)
13128 shrext_cmds='.sl'
13129 dynamic_linker="$host_os dld.sl"
13130 shlibpath_var=SHLIB_PATH
13131 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13133 soname_spec='$libname$release$shared_ext$major'
13134 ;;
13135 esac
13136 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13137 postinstall_cmds='chmod 555 $lib'
13138 # or fails outright, so override atomically:
13139 install_override_mode=555
13140 ;;
13141
13142 interix[3-9]*)
13143 version_type=linux # correct to gnu/linux during the next big refactor
13144 need_lib_prefix=no
13145 need_version=no
13146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13147 soname_spec='$libname$release$shared_ext$major'
13148 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13149 shlibpath_var=LD_LIBRARY_PATH
13150 shlibpath_overrides_runpath=no
13151 hardcode_into_libs=yes
13152 ;;
13153
13154 irix5* | irix6* | nonstopux*)
13155 case $host_os in
13156 nonstopux*) version_type=nonstopux ;;
13157 *)
13158 if test yes = "$lt_cv_prog_gnu_ld"; then
13159 version_type=linux # correct to gnu/linux during the next big refactor
13160 else
13161 version_type=irix
13162 fi ;;
13163 esac
13164 need_lib_prefix=no
13165 need_version=no
13166 soname_spec='$libname$release$shared_ext$major'
13167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13168 case $host_os in
13169 irix5* | nonstopux*)
13170 libsuff= shlibsuff=
13171 ;;
13172 *)
13173 case $LD in # libtool.m4 will add one of these switches to LD
13174 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13175 libsuff= shlibsuff= libmagic=32-bit;;
13176 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13177 libsuff=32 shlibsuff=N32 libmagic=N32;;
13178 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13179 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13180 *) libsuff= shlibsuff= libmagic=never-match;;
13181 esac
13182 ;;
13183 esac
13184 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13185 shlibpath_overrides_runpath=no
13186 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13187 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13188 hardcode_into_libs=yes
13189 ;;
13190
13191 # No shared lib support for Linux oldld, aout, or coff.
13192 linux*oldld* | linux*aout* | linux*coff*)
13193 dynamic_linker=no
13194 ;;
13195
13196 linux*android*)
13197 version_type=none # Android doesn't support versioned libraries.
13198 need_lib_prefix=no
13199 need_version=no
13200 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13201 soname_spec='$libname$release$shared_ext'
13202 finish_cmds=
13203 shlibpath_var=LD_LIBRARY_PATH
13204 shlibpath_overrides_runpath=yes
13205
13206 # This implies no fast_install, which is unacceptable.
13207 # Some rework will be needed to allow for fast_install
13208 # before this can be enabled.
13209 hardcode_into_libs=yes
13210
13211 dynamic_linker='Android linker'
13212 # -rpath works at least for libraries that are not overridden by
13213 # libraries installed in system locations.
13214 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13215 ;;
13216
13217 # This must be glibc/ELF.
13218 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13219 version_type=linux # correct to gnu/linux during the next big refactor
13220 need_lib_prefix=no
13221 need_version=no
13222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13223 soname_spec='$libname$release$shared_ext$major'
13224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13225 shlibpath_var=LD_LIBRARY_PATH
13226 shlibpath_overrides_runpath=no
13227
13228 # Some binutils ld are patched to set DT_RUNPATH
13229 if test ${lt_cv_shlibpath_overrides_runpath+y}
13230 then :
13231 printf %s "(cached) " >&6
13232 else case e in #(
13233 e) lt_cv_shlibpath_overrides_runpath=no
13234 save_LDFLAGS=$LDFLAGS
13235 save_libdir=$libdir
13236 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13237 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h. */
13240
13241 int
13242 main (void)
13243 {
13244
13245 ;
13246 return 0;
13247 }
13248 _ACEOF
13249 if ac_fn_c_try_link "$LINENO"
13250 then :
13251 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13252 then :
13253 lt_cv_shlibpath_overrides_runpath=yes
13254 fi
13255 fi
13256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13257 conftest$ac_exeext conftest.$ac_ext
13258 LDFLAGS=$save_LDFLAGS
13259 libdir=$save_libdir
13260 ;;
13261 esac
13262 fi
13263
13264 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13265
13266 # This implies no fast_install, which is unacceptable.
13267 # Some rework will be needed to allow for fast_install
13268 # before this can be enabled.
13269 hardcode_into_libs=yes
13270
13271 # Ideally, we could use ldconfig to report *all* directories which are
13272 # searched for libraries, however this is still not possible. Aside from not
13273 # being certain /sbin/ldconfig is available, command
13274 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13275 # even though it is searched at run-time. Try to do the best guess by
13276 # appending ld.so.conf contents (and includes) to the search path.
13277 if test -f /etc/ld.so.conf; then
13278 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' ' '`
13279 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13280 fi
13281
13282 # We used to test for /lib/ld.so.1 and disable shared libraries on
13283 # powerpc, because MkLinux only supported shared libraries with the
13284 # GNU dynamic linker. Since this was broken with cross compilers,
13285 # most powerpc-linux boxes support dynamic linking these days and
13286 # people can always --disable-shared, the test was removed, and we
13287 # assume the GNU/Linux dynamic linker is in use.
13288 dynamic_linker='GNU/Linux ld.so'
13289 ;;
13290
13291 netbsdelf*-gnu)
13292 version_type=linux
13293 need_lib_prefix=no
13294 need_version=no
13295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13296 soname_spec='$libname$release$shared_ext$major'
13297 shlibpath_var=LD_LIBRARY_PATH
13298 shlibpath_overrides_runpath=no
13299 hardcode_into_libs=yes
13300 dynamic_linker='NetBSD ld.elf_so'
13301 ;;
13302
13303 netbsd*)
13304 version_type=sunos
13305 need_lib_prefix=no
13306 need_version=no
13307 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13308 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13310 dynamic_linker='NetBSD (a.out) ld.so'
13311 else
13312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13313 soname_spec='$libname$release$shared_ext$major'
13314 dynamic_linker='NetBSD ld.elf_so'
13315 fi
13316 shlibpath_var=LD_LIBRARY_PATH
13317 shlibpath_overrides_runpath=yes
13318 hardcode_into_libs=yes
13319 ;;
13320
13321 *-mlibc)
13322 version_type=linux # correct to gnu/linux during the next big refactor
13323 need_lib_prefix=no
13324 need_version=no
13325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13326 soname_spec='$libname$release$shared_ext$major'
13327 dynamic_linker='mlibc ld.so'
13328 shlibpath_var=LD_LIBRARY_PATH
13329 shlibpath_overrides_runpath=no
13330 hardcode_into_libs=yes
13331 ;;
13332
13333 newsos6)
13334 version_type=linux # correct to gnu/linux during the next big refactor
13335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13336 shlibpath_var=LD_LIBRARY_PATH
13337 shlibpath_overrides_runpath=yes
13338 ;;
13339
13340 *nto* | *qnx*)
13341 version_type=qnx
13342 need_lib_prefix=no
13343 need_version=no
13344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13345 soname_spec='$libname$release$shared_ext$major'
13346 shlibpath_var=LD_LIBRARY_PATH
13347 shlibpath_overrides_runpath=no
13348 hardcode_into_libs=yes
13349 dynamic_linker='ldqnx.so'
13350 ;;
13351
13352 openbsd*)
13353 version_type=sunos
13354 sys_lib_dlsearch_path_spec=/usr/lib
13355 need_lib_prefix=no
13356 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13357 need_version=no
13358 else
13359 need_version=yes
13360 fi
13361 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13363 shlibpath_var=LD_LIBRARY_PATH
13364 shlibpath_overrides_runpath=yes
13365 ;;
13366
13367 os2*)
13368 libname_spec='$name'
13369 version_type=windows
13370 shrext_cmds=.dll
13371 need_version=no
13372 need_lib_prefix=no
13373 # OS/2 can only load a DLL with a base name of 8 characters or less.
13374 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13375 v=$($ECHO $release$versuffix | tr -d .-);
13376 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13377 $ECHO $n$v`$shared_ext'
13378 library_names_spec='${libname}_dll.$libext'
13379 dynamic_linker='OS/2 ld.exe'
13380 shlibpath_var=BEGINLIBPATH
13381 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13382 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13383 postinstall_cmds='base_file=`basename \$file`~
13384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13385 dldir=$destdir/`dirname \$dlpath`~
13386 test -d \$dldir || mkdir -p \$dldir~
13387 $install_prog $dir/$dlname \$dldir/$dlname~
13388 chmod a+x \$dldir/$dlname~
13389 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13390 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13391 fi'
13392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13393 dlpath=$dir/\$dldll~
13394 $RM \$dlpath'
13395 ;;
13396
13397 osf3* | osf4* | osf5*)
13398 version_type=osf
13399 need_lib_prefix=no
13400 need_version=no
13401 soname_spec='$libname$release$shared_ext$major'
13402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13403 shlibpath_var=LD_LIBRARY_PATH
13404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13406 ;;
13407
13408 rdos*)
13409 dynamic_linker=no
13410 ;;
13411
13412 serenity*)
13413 version_type=linux # correct to gnu/linux during the next big refactor
13414 need_lib_prefix=no
13415 need_version=no
13416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13417 soname_spec='$libname$release$shared_ext$major'
13418 shlibpath_var=LD_LIBRARY_PATH
13419 shlibpath_overrides_runpath=no
13420 dynamic_linker='SerenityOS LibELF'
13421 ;;
13422
13423 solaris*)
13424 version_type=linux # correct to gnu/linux during the next big refactor
13425 need_lib_prefix=no
13426 need_version=no
13427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13428 soname_spec='$libname$release$shared_ext$major'
13429 shlibpath_var=LD_LIBRARY_PATH
13430 shlibpath_overrides_runpath=yes
13431 hardcode_into_libs=yes
13432 # ldd complains unless libraries are executable
13433 postinstall_cmds='chmod +x $lib'
13434 ;;
13435
13436 sunos4*)
13437 version_type=sunos
13438 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13440 shlibpath_var=LD_LIBRARY_PATH
13441 shlibpath_overrides_runpath=yes
13442 if test yes = "$with_gnu_ld"; then
13443 need_lib_prefix=no
13444 fi
13445 need_version=yes
13446 ;;
13447
13448 sysv4 | sysv4.3*)
13449 version_type=linux # correct to gnu/linux during the next big refactor
13450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13451 soname_spec='$libname$release$shared_ext$major'
13452 shlibpath_var=LD_LIBRARY_PATH
13453 case $host_vendor in
13454 sni)
13455 shlibpath_overrides_runpath=no
13456 need_lib_prefix=no
13457 runpath_var=LD_RUN_PATH
13458 ;;
13459 siemens)
13460 need_lib_prefix=no
13461 ;;
13462 motorola)
13463 need_lib_prefix=no
13464 need_version=no
13465 shlibpath_overrides_runpath=no
13466 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13467 ;;
13468 esac
13469 ;;
13470
13471 sysv4*MP*)
13472 if test -d /usr/nec; then
13473 version_type=linux # correct to gnu/linux during the next big refactor
13474 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13475 soname_spec='$libname$shared_ext.$major'
13476 shlibpath_var=LD_LIBRARY_PATH
13477 fi
13478 ;;
13479
13480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13481 version_type=sco
13482 need_lib_prefix=no
13483 need_version=no
13484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13485 soname_spec='$libname$release$shared_ext$major'
13486 shlibpath_var=LD_LIBRARY_PATH
13487 shlibpath_overrides_runpath=yes
13488 hardcode_into_libs=yes
13489 if test yes = "$with_gnu_ld"; then
13490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13491 else
13492 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13493 case $host_os in
13494 sco3.2v5*)
13495 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13496 ;;
13497 esac
13498 fi
13499 sys_lib_dlsearch_path_spec='/usr/lib'
13500 ;;
13501
13502 tpf*)
13503 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13504 version_type=linux # correct to gnu/linux during the next big refactor
13505 need_lib_prefix=no
13506 need_version=no
13507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13508 shlibpath_var=LD_LIBRARY_PATH
13509 shlibpath_overrides_runpath=no
13510 hardcode_into_libs=yes
13511 ;;
13512
13513 uts4*)
13514 version_type=linux # correct to gnu/linux during the next big refactor
13515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13516 soname_spec='$libname$release$shared_ext$major'
13517 shlibpath_var=LD_LIBRARY_PATH
13518 ;;
13519
13520 emscripten*)
13521 version_type=none
13522 need_lib_prefix=no
13523 need_version=no
13524 library_names_spec='$libname$release$shared_ext'
13525 soname_spec='$libname$release$shared_ext'
13526 finish_cmds=
13527 dynamic_linker="Emscripten linker"
13528 lt_prog_compiler_wl=
13529 lt_prog_compiler_pic=
13530 lt_prog_compiler_static=
13531
13532
13533 if test yes = "$GCC"; then
13534 lt_prog_compiler_wl='-Wl,'
13535 lt_prog_compiler_static='-static'
13536
13537 case $host_os in
13538 aix*)
13539 # All AIX code is PIC.
13540 if test ia64 = "$host_cpu"; then
13541 # AIX 5 now supports IA64 processor
13542 lt_prog_compiler_static='-Bstatic'
13543 fi
13544 lt_prog_compiler_pic='-fPIC'
13545 ;;
13546
13547 amigaos*)
13548 case $host_cpu in
13549 powerpc)
13550 # see comment about AmigaOS4 .so support
13551 lt_prog_compiler_pic='-fPIC'
13552 ;;
13553 m68k)
13554 # FIXME: we need at least 68020 code to build shared libraries, but
13555 # adding the '-m68020' flag to GCC prevents building anything better,
13556 # like '-m68040'.
13557 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13558 ;;
13559 esac
13560 ;;
13561
13562 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13563 # PIC is the default for these OSes.
13564 ;;
13565
13566 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13567 # This hack is so that the source file can tell whether it is being
13568 # built for inclusion in a dll (and should export symbols for example).
13569 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13570 # (--disable-auto-import) libraries
13571 lt_prog_compiler_pic='-DDLL_EXPORT'
13572 case $host_os in
13573 os2*)
13574 lt_prog_compiler_static='$wl-static'
13575 ;;
13576 esac
13577 ;;
13578
13579 darwin* | rhapsody*)
13580 # PIC is the default on this platform
13581 # Common symbols not allowed in MH_DYLIB files
13582 lt_prog_compiler_pic='-fno-common'
13583 ;;
13584
13585 haiku*)
13586 # PIC is the default for Haiku.
13587 # The "-static" flag exists, but is broken.
13588 lt_prog_compiler_static=
13589 ;;
13590
13591 hpux*)
13592 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13593 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13594 # sets the default TLS model and affects inlining.
13595 case $host_cpu in
13596 hppa*64*)
13597 # +Z the default
13598 ;;
13599 *)
13600 lt_prog_compiler_pic='-fPIC'
13601 ;;
13602 esac
13603 ;;
13604
13605 interix[3-9]*)
13606 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13607 # Instead, we relocate shared libraries at runtime.
13608 ;;
13609
13610 msdosdjgpp*)
13611 # Just because we use GCC doesn't mean we suddenly get shared libraries
13612 # on systems that don't support them.
13613 lt_prog_compiler_can_build_shared=no
13614 enable_shared=no
13615 ;;
13616
13617 *nto* | *qnx*)
13618 # QNX uses GNU C++, but need to define -shared option too, otherwise
13619 # it will coredump.
13620 lt_prog_compiler_pic='-fPIC -shared'
13621 ;;
13622
13623 sysv4*MP*)
13624 if test -d /usr/nec; then
13625 lt_prog_compiler_pic=-Kconform_pic
13626 fi
13627 ;;
13628
13629 *)
13630 lt_prog_compiler_pic='-fPIC'
13631 ;;
13632 esac
13633
13634 case $cc_basename in
13635 nvcc*) # Cuda Compiler Driver 2.2
13636 lt_prog_compiler_wl='-Xlinker '
13637 if test -n "$lt_prog_compiler_pic"; then
13638 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13639 fi
13640 ;;
13641 esac
13642 else
13643 # PORTME Check for flag to pass linker flags through the system compiler.
13644 case $host_os in
13645 aix*)
13646 lt_prog_compiler_wl='-Wl,'
13647 if test ia64 = "$host_cpu"; then
13648 # AIX 5 now supports IA64 processor
13649 lt_prog_compiler_static='-Bstatic'
13650 else
13651 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13652 fi
13653 ;;
13654
13655 darwin* | rhapsody*)
13656 # PIC is the default on this platform
13657 # Common symbols not allowed in MH_DYLIB files
13658 lt_prog_compiler_pic='-fno-common'
13659 case $cc_basename in
13660 nagfor*)
13661 # NAG Fortran compiler
13662 lt_prog_compiler_wl='-Wl,-Wl,,'
13663 lt_prog_compiler_pic='-PIC'
13664 lt_prog_compiler_static='-Bstatic'
13665 ;;
13666 esac
13667 ;;
13668
13669 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13670 # This hack is so that the source file can tell whether it is being
13671 # built for inclusion in a dll (and should export symbols for example).
13672 lt_prog_compiler_pic='-DDLL_EXPORT'
13673 case $host_os in
13674 os2*)
13675 lt_prog_compiler_static='$wl-static'
13676 ;;
13677 esac
13678 ;;
13679
13680 hpux9* | hpux10* | hpux11*)
13681 lt_prog_compiler_wl='-Wl,'
13682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13683 # not for PA HP-UX.
13684 case $host_cpu in
13685 hppa*64*|ia64*)
13686 # +Z the default
13687 ;;
13688 *)
13689 lt_prog_compiler_pic='+Z'
13690 ;;
13691 esac
13692 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13693 lt_prog_compiler_static='$wl-a ${wl}archive'
13694 ;;
13695
13696 irix5* | irix6* | nonstopux*)
13697 lt_prog_compiler_wl='-Wl,'
13698 # PIC (with -KPIC) is the default.
13699 lt_prog_compiler_static='-non_shared'
13700 ;;
13701
13702 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13703 case $cc_basename in
13704 # old Intel for x86_64, which still supported -KPIC.
13705 ecc*)
13706 lt_prog_compiler_wl='-Wl,'
13707 lt_prog_compiler_pic='-KPIC'
13708 lt_prog_compiler_static='-static'
13709 ;;
13710 *flang* | ftn | f18* | f95*)
13711 # Flang compiler.
13712 lt_prog_compiler_wl='-Wl,'
13713 lt_prog_compiler_pic='-fPIC'
13714 lt_prog_compiler_static='-static'
13715 ;;
13716 # icc used to be incompatible with GCC.
13717 # ICC 10 doesn't accept -KPIC any more.
13718 icc* | ifort*)
13719 lt_prog_compiler_wl='-Wl,'
13720 lt_prog_compiler_pic='-fPIC'
13721 lt_prog_compiler_static='-static'
13722 ;;
13723 # Lahey Fortran 8.1.
13724 lf95*)
13725 lt_prog_compiler_wl='-Wl,'
13726 lt_prog_compiler_pic='--shared'
13727 lt_prog_compiler_static='--static'
13728 ;;
13729 nagfor*)
13730 # NAG Fortran compiler
13731 lt_prog_compiler_wl='-Wl,-Wl,,'
13732 lt_prog_compiler_pic='-PIC'
13733 lt_prog_compiler_static='-Bstatic'
13734 ;;
13735 tcc*)
13736 # Fabrice Bellard et al's Tiny C Compiler
13737 lt_prog_compiler_wl='-Wl,'
13738 lt_prog_compiler_pic='-fPIC'
13739 lt_prog_compiler_static='-static'
13740 ;;
13741 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13742 # Portland Group compilers (*not* the Pentium gcc compiler,
13743 # which looks to be a dead project)
13744 lt_prog_compiler_wl='-Wl,'
13745 lt_prog_compiler_pic='-fpic'
13746 lt_prog_compiler_static='-Bstatic'
13747 ;;
13748 ccc*)
13749 lt_prog_compiler_wl='-Wl,'
13750 # All Alpha code is PIC.
13751 lt_prog_compiler_static='-non_shared'
13752 ;;
13753 xl* | bgxl* | bgf* | mpixl*)
13754 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13755 lt_prog_compiler_wl='-Wl,'
13756 lt_prog_compiler_pic='-qpic'
13757 lt_prog_compiler_static='-qstaticlink'
13758 ;;
13759 *)
13760 case `$CC -V 2>&1 | $SED 5q` in
13761 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13762 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13763 lt_prog_compiler_pic='-KPIC'
13764 lt_prog_compiler_static='-Bstatic'
13765 lt_prog_compiler_wl=''
13766 ;;
13767 *Sun\ F* | *Sun*Fortran*)
13768 lt_prog_compiler_pic='-KPIC'
13769 lt_prog_compiler_static='-Bstatic'
13770 lt_prog_compiler_wl='-Qoption ld '
13771 ;;
13772 *Sun\ C*)
13773 # Sun C 5.9
13774 lt_prog_compiler_pic='-KPIC'
13775 lt_prog_compiler_static='-Bstatic'
13776 lt_prog_compiler_wl='-Wl,'
13777 ;;
13778 *Intel*\ [CF]*Compiler*)
13779 lt_prog_compiler_wl='-Wl,'
13780 lt_prog_compiler_pic='-fPIC'
13781 lt_prog_compiler_static='-static'
13782 ;;
13783 *Portland\ Group*)
13784 lt_prog_compiler_wl='-Wl,'
13785 lt_prog_compiler_pic='-fpic'
13786 lt_prog_compiler_static='-Bstatic'
13787 ;;
13788 esac
13789 ;;
13790 esac
13791 ;;
13792
13793 newsos6)
13794 lt_prog_compiler_pic='-KPIC'
13795 lt_prog_compiler_static='-Bstatic'
13796 ;;
13797
13798 *-mlibc)
13799 lt_prog_compiler_wl='-Wl,'
13800 lt_prog_compiler_pic='-fPIC'
13801 lt_prog_compiler_static='-static'
13802 ;;
13803
13804 *nto* | *qnx*)
13805 # QNX uses GNU C++, but need to define -shared option too, otherwise
13806 # it will coredump.
13807 lt_prog_compiler_pic='-fPIC -shared'
13808 ;;
13809
13810 osf3* | osf4* | osf5*)
13811 lt_prog_compiler_wl='-Wl,'
13812 # All OSF/1 code is PIC.
13813 lt_prog_compiler_static='-non_shared'
13814 ;;
13815
13816 rdos*)
13817 lt_prog_compiler_static='-non_shared'
13818 ;;
13819
13820 serenity*)
13821 ;;
13822
13823 solaris*)
13824 lt_prog_compiler_pic='-KPIC'
13825 lt_prog_compiler_static='-Bstatic'
13826 case $cc_basename in
13827 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13828 lt_prog_compiler_wl='-Qoption ld ';;
13829 *)
13830 lt_prog_compiler_wl='-Wl,';;
13831 esac
13832 ;;
13833
13834 sunos4*)
13835 lt_prog_compiler_wl='-Qoption ld '
13836 lt_prog_compiler_pic='-PIC'
13837 lt_prog_compiler_static='-Bstatic'
13838 ;;
13839
13840 sysv4 | sysv4.2uw2* | sysv4.3*)
13841 lt_prog_compiler_wl='-Wl,'
13842 lt_prog_compiler_pic='-KPIC'
13843 lt_prog_compiler_static='-Bstatic'
13844 ;;
13845
13846 sysv4*MP*)
13847 if test -d /usr/nec; then
13848 lt_prog_compiler_pic='-Kconform_pic'
13849 lt_prog_compiler_static='-Bstatic'
13850 fi
13851 ;;
13852
13853 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13854 lt_prog_compiler_wl='-Wl,'
13855 lt_prog_compiler_pic='-KPIC'
13856 lt_prog_compiler_static='-Bstatic'
13857 ;;
13858
13859 unicos*)
13860 lt_prog_compiler_wl='-Wl,'
13861 lt_prog_compiler_can_build_shared=no
13862 ;;
13863
13864 uts4*)
13865 lt_prog_compiler_pic='-pic'
13866 lt_prog_compiler_static='-Bstatic'
13867 ;;
13868
13869 *)
13870 lt_prog_compiler_can_build_shared=no
13871 ;;
13872 esac
13873 fi
13874
13875 case $host_os in
13876 # For platforms that do not support PIC, -DPIC is meaningless:
13877 *djgpp*)
13878 lt_prog_compiler_pic=
13879 ;;
13880 *)
13881 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13882 ;;
13883 esac
13884
13885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13886 printf %s "checking for $compiler option to produce PIC... " >&6; }
13887 if test ${lt_cv_prog_compiler_pic+y}
13888 then :
13889 printf %s "(cached) " >&6
13890 else case e in #(
13891 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13892 esac
13893 fi
13894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13895 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13896 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13897
13898 #
13899 # Check to make sure the PIC flag actually works.
13900 #
13901 if test -n "$lt_prog_compiler_pic"; then
13902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13903 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13904 if test ${lt_cv_prog_compiler_pic_works+y}
13905 then :
13906 printf %s "(cached) " >&6
13907 else case e in #(
13908 e) lt_cv_prog_compiler_pic_works=no
13909 ac_outfile=conftest.$ac_objext
13910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13911 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13912 # Insert the option either (1) after the last *FLAGS variable, or
13913 # (2) before a word containing "conftest.", or (3) at the end.
13914 # Note that $ac_compile itself does not contain backslashes and begins
13915 # with a dollar sign (not a hyphen), so the echo should work correctly.
13916 # The option is referenced via a variable to avoid confusing sed.
13917 lt_compile=`echo "$ac_compile" | $SED \
13918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13920 -e 's:$: $lt_compiler_flag:'`
13921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13922 (eval "$lt_compile" 2>conftest.err)
13923 ac_status=$?
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 if (exit $ac_status) && test -s "$ac_outfile"; then
13927 # The compiler can only warn and ignore the option if not recognized
13928 # So say no if there are warnings other than the usual output.
13929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13932 lt_cv_prog_compiler_pic_works=yes
13933 fi
13934 fi
13935 $RM conftest*
13936 ;;
13937 esac
13938 fi
13939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13940 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13941
13942 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13943 case $lt_prog_compiler_pic in
13944 "" | " "*) ;;
13945 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13946 esac
13947 else
13948 lt_prog_compiler_pic=
13949 lt_prog_compiler_can_build_shared=no
13950 fi
13951
13952 fi
13953
13954
13955
13956
13957
13958 #
13959 # Check to make sure the static flag actually works.
13960 #
13961 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13963 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13964 if test ${lt_cv_prog_compiler_static_works+y}
13965 then :
13966 printf %s "(cached) " >&6
13967 else case e in #(
13968 e) lt_cv_prog_compiler_static_works=no
13969 save_LDFLAGS=$LDFLAGS
13970 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13971 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13972 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13973 # The linker can only warn and ignore the option if not recognized
13974 # So say no if there are warnings
13975 if test -s conftest.err; then
13976 # Append any errors to the config.log.
13977 cat conftest.err 1>&5
13978 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13980 if diff conftest.exp conftest.er2 >/dev/null; then
13981 lt_cv_prog_compiler_static_works=yes
13982 fi
13983 else
13984 lt_cv_prog_compiler_static_works=yes
13985 fi
13986 fi
13987 $RM -r conftest*
13988 LDFLAGS=$save_LDFLAGS
13989 ;;
13990 esac
13991 fi
13992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13993 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13994
13995 if test yes = "$lt_cv_prog_compiler_static_works"; then
13996 :
13997 else
13998 lt_prog_compiler_static=
13999 fi
14000
14001
14002
14003 ='-fPIC'
14004 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
14005 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
14006 archive_cmds_need_lc=no
14007 no_undefined_flag=
14008 ;;
14009
14010 *)
14011 dynamic_linker=no
14012 ;;
14013 esac
14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14015 printf "%s\n" "$dynamic_linker" >&6; }
14016 test no = "$dynamic_linker" && can_build_shared=no
14017
14018 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14019 if test yes = "$GCC"; then
14020 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14021 fi
14022
14023 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14024 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14025 fi
14026
14027 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14028 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14029 fi
14030
14031 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14032 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14033
14034 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14035 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14036
14037 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14038 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14137 printf %s "checking how to hardcode library paths into programs... " >&6; }
14138 hardcode_action=
14139 if test -n "$hardcode_libdir_flag_spec" ||
14140 test -n "$runpath_var" ||
14141 test yes = "$hardcode_automatic"; then
14142
14143 # We can hardcode non-existent directories.
14144 if test no != "$hardcode_direct" &&
14145 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14146 # have to relink, otherwise we might link with an installed library
14147 # when we should be linking with a yet-to-be-installed one
14148 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14149 test no != "$hardcode_minus_L"; then
14150 # Linking always hardcodes the temporary library directory.
14151 hardcode_action=relink
14152 else
14153 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14154 hardcode_action=immediate
14155 fi
14156 else
14157 # We cannot hardcode anything, or else we can only hardcode existing
14158 # directories.
14159 hardcode_action=unsupported
14160 fi
14161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14162 printf "%s\n" "$hardcode_action" >&6; }
14163
14164 if test relink = "$hardcode_action" ||
14165 test yes = "$inherit_rpath"; then
14166 # Fast installation is not supported
14167 enable_fast_install=no
14168 elif test yes = "$shlibpath_overrides_runpath" ||
14169 test no = "$enable_shared"; then
14170 # Fast installation is not necessary
14171 enable_fast_install=needless
14172 fi
14173
14174
14175
14176
14177
14178
14179 if test yes != "$enable_dlopen"; then
14180 enable_dlopen=unknown
14181 enable_dlopen_self=unknown
14182 enable_dlopen_self_static=unknown
14183 else
14184 lt_cv_dlopen=no
14185 lt_cv_dlopen_libs=
14186
14187 case $host_os in
14188 beos*)
14189 lt_cv_dlopen=load_add_on
14190 lt_cv_dlopen_libs=
14191 lt_cv_dlopen_self=yes
14192 ;;
14193
14194 mingw* | windows* | pw32* | cegcc*)
14195 lt_cv_dlopen=LoadLibrary
14196 lt_cv_dlopen_libs=
14197 ;;
14198
14199 cygwin*)
14200 lt_cv_dlopen=dlopen
14201 lt_cv_dlopen_libs=
14202 ;;
14203
14204 darwin*)
14205 # if libdl is installed we need to link against it
14206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14207 printf %s "checking for dlopen in -ldl... " >&6; }
14208 if test ${ac_cv_lib_dl_dlopen+y}
14209 then :
14210 printf %s "(cached) " >&6
14211 else case e in #(
14212 e) ac_check_lib_save_LIBS=$LIBS
14213 LIBS="-ldl $LIBS"
14214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215 /* end confdefs.h. */
14216
14217 /* Override any GCC internal prototype to avoid an error.
14218 Use char because int might match the return type of a GCC
14219 builtin and then its argument prototype would still apply.
14220 The 'extern "C"' is for builds by C++ compilers;
14221 although this is not generally supported in C code supporting it here
14222 has little cost and some practical benefit (sr 110532). */
14223 #ifdef __cplusplus
14224 extern "C"
14225 #endif
14226 char dlopen (void);
14227 int
14228 main (void)
14229 {
14230 return dlopen ();
14231 ;
14232 return 0;
14233 }
14234 _ACEOF
14235 if ac_fn_c_try_link "$LINENO"
14236 then :
14237 ac_cv_lib_dl_dlopen=yes
14238 else case e in #(
14239 e) ac_cv_lib_dl_dlopen=no ;;
14240 esac
14241 fi
14242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14243 conftest$ac_exeext conftest.$ac_ext
14244 LIBS=$ac_check_lib_save_LIBS ;;
14245 esac
14246 fi
14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14248 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14249 if test "x$ac_cv_lib_dl_dlopen" = xyes
14250 then :
14251 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14252 else case e in #(
14253 e)
14254 lt_cv_dlopen=dyld
14255 lt_cv_dlopen_libs=
14256 lt_cv_dlopen_self=yes
14257 ;;
14258 esac
14259 fi
14260
14261 ;;
14262
14263 tpf*)
14264 # Don't try to run any link tests for TPF. We know it's impossible
14265 # because TPF is a cross-compiler, and we know how we open DSOs.
14266 lt_cv_dlopen=dlopen
14267 lt_cv_dlopen_libs=
14268 lt_cv_dlopen_self=no
14269 ;;
14270
14271 *)
14272 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14273 if test "x$ac_cv_func_shl_load" = xyes
14274 then :
14275 lt_cv_dlopen=shl_load
14276 else case e in #(
14277 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14278 printf %s "checking for shl_load in -ldld... " >&6; }
14279 if test ${ac_cv_lib_dld_shl_load+y}
14280 then :
14281 printf %s "(cached) " >&6
14282 else case e in #(
14283 e) ac_check_lib_save_LIBS=$LIBS
14284 LIBS="-ldld $LIBS"
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h. */
14287
14288 /* Override any GCC internal prototype to avoid an error.
14289 Use char because int might match the return type of a GCC
14290 builtin and then its argument prototype would still apply.
14291 The 'extern "C"' is for builds by C++ compilers;
14292 although this is not generally supported in C code supporting it here
14293 has little cost and some practical benefit (sr 110532). */
14294 #ifdef __cplusplus
14295 extern "C"
14296 #endif
14297 char shl_load (void);
14298 int
14299 main (void)
14300 {
14301 return shl_load ();
14302 ;
14303 return 0;
14304 }
14305 _ACEOF
14306 if ac_fn_c_try_link "$LINENO"
14307 then :
14308 ac_cv_lib_dld_shl_load=yes
14309 else case e in #(
14310 e) ac_cv_lib_dld_shl_load=no ;;
14311 esac
14312 fi
14313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14314 conftest$ac_exeext conftest.$ac_ext
14315 LIBS=$ac_check_lib_save_LIBS ;;
14316 esac
14317 fi
14318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14319 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14320 if test "x$ac_cv_lib_dld_shl_load" = xyes
14321 then :
14322 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14323 else case e in #(
14324 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14325 if test "x$ac_cv_func_dlopen" = xyes
14326 then :
14327 lt_cv_dlopen=dlopen
14328 else case e in #(
14329 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14330 printf %s "checking for dlopen in -ldl... " >&6; }
14331 if test ${ac_cv_lib_dl_dlopen+y}
14332 then :
14333 printf %s "(cached) " >&6
14334 else case e in #(
14335 e) ac_check_lib_save_LIBS=$LIBS
14336 LIBS="-ldl $LIBS"
14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14339
14340 /* Override any GCC internal prototype to avoid an error.
14341 Use char because int might match the return type of a GCC
14342 builtin and then its argument prototype would still apply.
14343 The 'extern "C"' is for builds by C++ compilers;
14344 although this is not generally supported in C code supporting it here
14345 has little cost and some practical benefit (sr 110532). */
14346 #ifdef __cplusplus
14347 extern "C"
14348 #endif
14349 char dlopen (void);
14350 int
14351 main (void)
14352 {
14353 return dlopen ();
14354 ;
14355 return 0;
14356 }
14357 _ACEOF
14358 if ac_fn_c_try_link "$LINENO"
14359 then :
14360 ac_cv_lib_dl_dlopen=yes
14361 else case e in #(
14362 e) ac_cv_lib_dl_dlopen=no ;;
14363 esac
14364 fi
14365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14366 conftest$ac_exeext conftest.$ac_ext
14367 LIBS=$ac_check_lib_save_LIBS ;;
14368 esac
14369 fi
14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14371 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14372 if test "x$ac_cv_lib_dl_dlopen" = xyes
14373 then :
14374 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14375 else case e in #(
14376 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14377 printf %s "checking for dlopen in -lsvld... " >&6; }
14378 if test ${ac_cv_lib_svld_dlopen+y}
14379 then :
14380 printf %s "(cached) " >&6
14381 else case e in #(
14382 e) ac_check_lib_save_LIBS=$LIBS
14383 LIBS="-lsvld $LIBS"
14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h. */
14386
14387 /* Override any GCC internal prototype to avoid an error.
14388 Use char because int might match the return type of a GCC
14389 builtin and then its argument prototype would still apply.
14390 The 'extern "C"' is for builds by C++ compilers;
14391 although this is not generally supported in C code supporting it here
14392 has little cost and some practical benefit (sr 110532). */
14393 #ifdef __cplusplus
14394 extern "C"
14395 #endif
14396 char dlopen (void);
14397 int
14398 main (void)
14399 {
14400 return dlopen ();
14401 ;
14402 return 0;
14403 }
14404 _ACEOF
14405 if ac_fn_c_try_link "$LINENO"
14406 then :
14407 ac_cv_lib_svld_dlopen=yes
14408 else case e in #(
14409 e) ac_cv_lib_svld_dlopen=no ;;
14410 esac
14411 fi
14412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14413 conftest$ac_exeext conftest.$ac_ext
14414 LIBS=$ac_check_lib_save_LIBS ;;
14415 esac
14416 fi
14417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14418 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14419 if test "x$ac_cv_lib_svld_dlopen" = xyes
14420 then :
14421 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14422 else case e in #(
14423 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14424 printf %s "checking for dld_link in -ldld... " >&6; }
14425 if test ${ac_cv_lib_dld_dld_link+y}
14426 then :
14427 printf %s "(cached) " >&6
14428 else case e in #(
14429 e) ac_check_lib_save_LIBS=$LIBS
14430 LIBS="-ldld $LIBS"
14431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14433
14434 /* Override any GCC internal prototype to avoid an error.
14435 Use char because int might match the return type of a GCC
14436 builtin and then its argument prototype would still apply.
14437 The 'extern "C"' is for builds by C++ compilers;
14438 although this is not generally supported in C code supporting it here
14439 has little cost and some practical benefit (sr 110532). */
14440 #ifdef __cplusplus
14441 extern "C"
14442 #endif
14443 char dld_link (void);
14444 int
14445 main (void)
14446 {
14447 return dld_link ();
14448 ;
14449 return 0;
14450 }
14451 _ACEOF
14452 if ac_fn_c_try_link "$LINENO"
14453 then :
14454 ac_cv_lib_dld_dld_link=yes
14455 else case e in #(
14456 e) ac_cv_lib_dld_dld_link=no ;;
14457 esac
14458 fi
14459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14460 conftest$ac_exeext conftest.$ac_ext
14461 LIBS=$ac_check_lib_save_LIBS ;;
14462 esac
14463 fi
14464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14465 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14466 if test "x$ac_cv_lib_dld_dld_link" = xyes
14467 then :
14468 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14469 fi
14470
14471 ;;
14472 esac
14473 fi
14474
14475 ;;
14476 esac
14477 fi
14478
14479 ;;
14480 esac
14481 fi
14482
14483 ;;
14484 esac
14485 fi
14486
14487 ;;
14488 esac
14489 fi
14490
14491 ;;
14492 esac
14493
14494 if test no = "$lt_cv_dlopen"; then
14495 enable_dlopen=no
14496 else
14497 enable_dlopen=yes
14498 fi
14499
14500 case $lt_cv_dlopen in
14501 dlopen)
14502 save_CPPFLAGS=$CPPFLAGS
14503 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14504
14505 save_LDFLAGS=$LDFLAGS
14506 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14507
14508 save_LIBS=$LIBS
14509 LIBS="$lt_cv_dlopen_libs $LIBS"
14510
14511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14512 printf %s "checking whether a program can dlopen itself... " >&6; }
14513 if test ${lt_cv_dlopen_self+y}
14514 then :
14515 printf %s "(cached) " >&6
14516 else case e in #(
14517 e) if test yes = "$cross_compiling"; then :
14518 lt_cv_dlopen_self=cross
14519 else
14520 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14521 lt_status=$lt_dlunknown
14522 cat > conftest.$ac_ext <<_LT_EOF
14523 #line $LINENO "configure"
14524 #include "confdefs.h"
14525
14526 #if HAVE_DLFCN_H
14527 #include <dlfcn.h>
14528 #endif
14529
14530 #include <stdio.h>
14531
14532 #ifdef RTLD_GLOBAL
14533 # define LT_DLGLOBAL RTLD_GLOBAL
14534 #else
14535 # ifdef DL_GLOBAL
14536 # define LT_DLGLOBAL DL_GLOBAL
14537 # else
14538 # define LT_DLGLOBAL 0
14539 # endif
14540 #endif
14541
14542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14543 find out it does not work in some platform. */
14544 #ifndef LT_DLLAZY_OR_NOW
14545 # ifdef RTLD_LAZY
14546 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14547 # else
14548 # ifdef DL_LAZY
14549 # define LT_DLLAZY_OR_NOW DL_LAZY
14550 # else
14551 # ifdef RTLD_NOW
14552 # define LT_DLLAZY_OR_NOW RTLD_NOW
14553 # else
14554 # ifdef DL_NOW
14555 # define LT_DLLAZY_OR_NOW DL_NOW
14556 # else
14557 # define LT_DLLAZY_OR_NOW 0
14558 # endif
14559 # endif
14560 # endif
14561 # endif
14562 #endif
14563
14564 /* When -fvisibility=hidden is used, assume the code has been annotated
14565 correspondingly for the symbols needed. */
14566 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14567 int fnord (void) __attribute__((visibility("default")));
14568 #endif
14569
14570 int fnord (void) { return 42; }
14571 int main (void)
14572 {
14573 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14574 int status = $lt_dlunknown;
14575
14576 if (self)
14577 {
14578 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14579 else
14580 {
14581 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14582 else puts (dlerror ());
14583 }
14584 /* dlclose (self); */
14585 }
14586 else
14587 puts (dlerror ());
14588
14589 return status;
14590 }
14591 _LT_EOF
14592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14593 (eval $ac_link) 2>&5
14594 ac_status=$?
14595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14596 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14597 (./conftest; exit; ) >&5 2>/dev/null
14598 lt_status=$?
14599 case x$lt_status in
14600 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14601 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14602 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14603 esac
14604 else :
14605 # compilation failed
14606 lt_cv_dlopen_self=no
14607 fi
14608 fi
14609 rm -fr conftest*
14610
14611 ;;
14612 esac
14613 fi
14614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14615 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14616
14617 if test yes = "$lt_cv_dlopen_self"; then
14618 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14620 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14621 if test ${lt_cv_dlopen_self_static+y}
14622 then :
14623 printf %s "(cached) " >&6
14624 else case e in #(
14625 e) if test yes = "$cross_compiling"; then :
14626 lt_cv_dlopen_self_static=cross
14627 else
14628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14629 lt_status=$lt_dlunknown
14630 cat > conftest.$ac_ext <<_LT_EOF
14631 #line $LINENO "configure"
14632 #include "confdefs.h"
14633
14634 #if HAVE_DLFCN_H
14635 #include <dlfcn.h>
14636 #endif
14637
14638 #include <stdio.h>
14639
14640 #ifdef RTLD_GLOBAL
14641 # define LT_DLGLOBAL RTLD_GLOBAL
14642 #else
14643 # ifdef DL_GLOBAL
14644 # define LT_DLGLOBAL DL_GLOBAL
14645 # else
14646 # define LT_DLGLOBAL 0
14647 # endif
14648 #endif
14649
14650 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14651 find out it does not work in some platform. */
14652 #ifndef LT_DLLAZY_OR_NOW
14653 # ifdef RTLD_LAZY
14654 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14655 # else
14656 # ifdef DL_LAZY
14657 # define LT_DLLAZY_OR_NOW DL_LAZY
14658 # else
14659 # ifdef RTLD_NOW
14660 # define LT_DLLAZY_OR_NOW RTLD_NOW
14661 # else
14662 # ifdef DL_NOW
14663 # define LT_DLLAZY_OR_NOW DL_NOW
14664 # else
14665 # define LT_DLLAZY_OR_NOW 0
14666 # endif
14667 # endif
14668 # endif
14669 # endif
14670 #endif
14671
14672 /* When -fvisibility=hidden is used, assume the code has been annotated
14673 correspondingly for the symbols needed. */
14674 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14675 int fnord (void) __attribute__((visibility("default")));
14676 #endif
14677
14678 int fnord (void) { return 42; }
14679 int main (void)
14680 {
14681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14682 int status = $lt_dlunknown;
14683
14684 if (self)
14685 {
14686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14687 else
14688 {
14689 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14690 else puts (dlerror ());
14691 }
14692 /* dlclose (self); */
14693 }
14694 else
14695 puts (dlerror ());
14696
14697 return status;
14698 }
14699 _LT_EOF
14700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14701 (eval $ac_link) 2>&5
14702 ac_status=$?
14703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14704 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14705 (./conftest; exit; ) >&5 2>/dev/null
14706 lt_status=$?
14707 case x$lt_status in
14708 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14709 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14710 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14711 esac
14712 else :
14713 # compilation failed
14714 lt_cv_dlopen_self_static=no
14715 fi
14716 fi
14717 rm -fr conftest*
14718
14719 ;;
14720 esac
14721 fi
14722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14723 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14724 fi
14725
14726 CPPFLAGS=$save_CPPFLAGS
14727 LDFLAGS=$save_LDFLAGS
14728 LIBS=$save_LIBS
14729 ;;
14730 esac
14731
14732 case $lt_cv_dlopen_self in
14733 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14734 *) enable_dlopen_self=unknown ;;
14735 esac
14736
14737 case $lt_cv_dlopen_self_static in
14738 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14739 *) enable_dlopen_self_static=unknown ;;
14740 esac
14741 fi
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759 striplib=
14760 old_striplib=
14761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14762 printf %s "checking whether stripping libraries is possible... " >&6; }
14763 if test -z "$STRIP"; then
14764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14765 printf "%s\n" "no" >&6; }
14766 else
14767 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14768 old_striplib="$STRIP --strip-debug"
14769 striplib="$STRIP --strip-unneeded"
14770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14771 printf "%s\n" "yes" >&6; }
14772 else
14773 case $host_os in
14774 darwin*)
14775 # FIXME - insert some real tests, host_os isn't really good enough
14776 striplib="$STRIP -x"
14777 old_striplib="$STRIP -S"
14778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14779 printf "%s\n" "yes" >&6; }
14780 ;;
14781 freebsd*)
14782 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14783 old_striplib="$STRIP --strip-debug"
14784 striplib="$STRIP --strip-unneeded"
14785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14786 printf "%s\n" "yes" >&6; }
14787 else
14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14789 printf "%s\n" "no" >&6; }
14790 fi
14791 ;;
14792 *)
14793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14794 printf "%s\n" "no" >&6; }
14795 ;;
14796 esac
14797 fi
14798 fi
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811 # Report what library types will actually be built
14812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14813 printf %s "checking if libtool supports shared libraries... " >&6; }
14814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14815 printf "%s\n" "$can_build_shared" >&6; }
14816
14817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14818 printf %s "checking whether to build shared libraries... " >&6; }
14819 test no = "$can_build_shared" && enable_shared=no
14820
14821 # On AIX, shared libraries and static libraries use the same namespace, and
14822 # are all built from PIC.
14823 case $host_os in
14824 aix3*)
14825 test yes = "$enable_shared" && enable_static=no
14826 if test -n "$RANLIB"; then
14827 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14828 postinstall_cmds='$RANLIB $lib'
14829 fi
14830 ;;
14831
14832 aix[4-9]*)
14833 if test ia64 != "$host_cpu"; then
14834 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14835 yes,aix,yes) ;; # shared object as lib.so file only
14836 yes,svr4,*) ;; # shared object as lib.so archive member only
14837 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14838 esac
14839 fi
14840 ;;
14841 esac
14842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14843 printf "%s\n" "$enable_shared" >&6; }
14844
14845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14846 printf %s "checking whether to build static libraries... " >&6; }
14847 # Make sure either enable_shared or enable_static is yes.
14848 test yes = "$enable_shared" || enable_static=yes
14849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14850 printf "%s\n" "$enable_static" >&6; }
14851
14852
14853
14854
14855 fi
14856 ac_ext=c
14857 ac_cpp='$CPP $CPPFLAGS'
14858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14861
14862 CC=$lt_save_CC
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878 ac_config_commands="$ac_config_commands libtool"
14879
14880
14881
14882
14883 # Only expand once:
14884
14885
14886 # (end lt_init)
14887 # Check whether --enable-largefile was given.
14888 if test ${enable_largefile+y}
14889 then :
14890 enableval=$enable_largefile;
14891 fi
14892 if test "$enable_largefile,$enable_year2038" != no,no
14893 then :
14894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
14895 printf %s "checking for $CC option to enable large file support... " >&6; }
14896 if test ${ac_cv_sys_largefile_opts+y}
14897 then :
14898 printf %s "(cached) " >&6
14899 else case e in #(
14900 e) ac_save_CC="$CC"
14901 ac_opt_found=no
14902 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
14903 if test x"$ac_opt" != x"none needed"
14904 then :
14905 CC="$ac_save_CC $ac_opt"
14906 fi
14907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14908 /* end confdefs.h. */
14909 #include <sys/types.h>
14910 #ifndef FTYPE
14911 # define FTYPE off_t
14912 #endif
14913 /* Check that FTYPE can represent 2**63 - 1 correctly.
14914 We can't simply define LARGE_FTYPE to be 9223372036854775807,
14915 since some C++ compilers masquerading as C compilers
14916 incorrectly reject 9223372036854775807. */
14917 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
14918 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
14919 && LARGE_FTYPE % 2147483647 == 1)
14920 ? 1 : -1];
14921 int
14922 main (void)
14923 {
14924
14925 ;
14926 return 0;
14927 }
14928 _ACEOF
14929 if ac_fn_c_try_compile "$LINENO"
14930 then :
14931 if test x"$ac_opt" = x"none needed"
14932 then :
14933 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
14934 CC="$CC -DFTYPE=ino_t"
14935 if ac_fn_c_try_compile "$LINENO"
14936 then :
14937
14938 else case e in #(
14939 e) CC="$CC -D_FILE_OFFSET_BITS=64"
14940 if ac_fn_c_try_compile "$LINENO"
14941 then :
14942 ac_opt='-D_FILE_OFFSET_BITS=64'
14943 fi
14944 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
14945 esac
14946 fi
14947 rm -f core conftest.err conftest.$ac_objext conftest.beam
14948 fi
14949 ac_cv_sys_largefile_opts=$ac_opt
14950 ac_opt_found=yes
14951 fi
14952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14953 test $ac_opt_found = no || break
14954 done
14955 CC="$ac_save_CC"
14956
14957 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
14958 esac
14959 fi
14960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
14961 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
14962
14963 ac_have_largefile=yes
14964 case $ac_cv_sys_largefile_opts in #(
14965 "none needed") :
14966 ;; #(
14967 "supported through gnulib") :
14968 ;; #(
14969 "support not detected") :
14970 ac_have_largefile=no ;; #(
14971 "-D_FILE_OFFSET_BITS=64") :
14972
14973 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
14974 ;; #(
14975 "-D_LARGE_FILES=1") :
14976
14977 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
14978 ;; #(
14979 "-n32") :
14980 CC="$CC -n32" ;; #(
14981 *) :
14982 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
14983 esac
14984
14985 if test "$enable_year2038" != no
14986 then :
14987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
14988 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
14989 if test ${ac_cv_sys_year2038_opts+y}
14990 then :
14991 printf %s "(cached) " >&6
14992 else case e in #(
14993 e) ac_save_CPPFLAGS="$CPPFLAGS"
14994 ac_opt_found=no
14995 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
14996 if test x"$ac_opt" != x"none needed"
14997 then :
14998 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
14999 fi
15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15002
15003 #include <time.h>
15004 /* Check that time_t can represent 2**32 - 1 correctly. */
15005 #define LARGE_TIME_T \\
15006 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15007 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15008 && LARGE_TIME_T % 65537 == 0)
15009 ? 1 : -1];
15010
15011 int
15012 main (void)
15013 {
15014
15015 ;
15016 return 0;
15017 }
15018 _ACEOF
15019 if ac_fn_c_try_compile "$LINENO"
15020 then :
15021 ac_cv_sys_year2038_opts="$ac_opt"
15022 ac_opt_found=yes
15023 fi
15024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15025 test $ac_opt_found = no || break
15026 done
15027 CPPFLAGS="$ac_save_CPPFLAGS"
15028 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15029 esac
15030 fi
15031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15032 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15033
15034 ac_have_year2038=yes
15035 case $ac_cv_sys_year2038_opts in #(
15036 "none needed") :
15037 ;; #(
15038 "support not detected") :
15039 ac_have_year2038=no ;; #(
15040 "-D_TIME_BITS=64") :
15041
15042 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15043 ;; #(
15044 "-D__MINGW_USE_VC2005_COMPAT") :
15045
15046 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15047 ;; #(
15048 "-U_USE_32_BIT_TIME_T"*) :
15049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15050 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15051 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15052 will stop working after mid-January 2038. Remove
15053 _USE_32BIT_TIME_T from the compiler flags.
15054 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15055 *) :
15056 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15057 esac
15058
15059 fi
15060
15061 fi
15062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5
15063 printf %s "checking for declarations of fseeko and ftello... " >&6; }
15064 if test ${ac_cv_func_fseeko_ftello+y}
15065 then :
15066 printf %s "(cached) " >&6
15067 else case e in #(
15068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15069 /* end confdefs.h. */
15070
15071 #if defined __hpux && !defined _LARGEFILE_SOURCE
15072 # include <limits.h>
15073 # if LONG_MAX >> 31 == 0
15074 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15075 # endif
15076 #endif
15077 #include <sys/types.h> /* for off_t */
15078 #include <stdio.h>
15079
15080 int
15081 main (void)
15082 {
15083
15084 int (*fp1) (FILE *, off_t, int) = fseeko;
15085 off_t (*fp2) (FILE *) = ftello;
15086 return fseeko (stdin, 0, 0)
15087 && fp1 (stdin, 0, 0)
15088 && ftello (stdin) >= 0
15089 && fp2 (stdin) >= 0;
15090
15091 ;
15092 return 0;
15093 }
15094 _ACEOF
15095 if ac_fn_c_try_compile "$LINENO"
15096 then :
15097 ac_cv_func_fseeko_ftello=yes
15098 else case e in #(
15099 e) ac_save_CPPFLAGS="$CPPFLAGS"
15100 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1"
15101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15102 /* end confdefs.h. */
15103
15104 #if defined __hpux && !defined _LARGEFILE_SOURCE
15105 # include <limits.h>
15106 # if LONG_MAX >> 31 == 0
15107 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++"
15108 # endif
15109 #endif
15110 #include <sys/types.h> /* for off_t */
15111 #include <stdio.h>
15112
15113 int
15114 main (void)
15115 {
15116
15117 int (*fp1) (FILE *, off_t, int) = fseeko;
15118 off_t (*fp2) (FILE *) = ftello;
15119 return fseeko (stdin, 0, 0)
15120 && fp1 (stdin, 0, 0)
15121 && ftello (stdin) >= 0
15122 && fp2 (stdin) >= 0;
15123
15124 ;
15125 return 0;
15126 }
15127 _ACEOF
15128 if ac_fn_c_try_compile "$LINENO"
15129 then :
15130 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE"
15131 else case e in #(
15132 e) ac_cv_func_fseeko_ftello=no ;;
15133 esac
15134 fi
15135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15136 esac
15137 fi
15138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15139 esac
15140 fi
15141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5
15142 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; }
15143 if test "$ac_cv_func_fseeko_ftello" != no
15144 then :
15145
15146 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
15147
15148 fi
15149 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE"
15150 then :
15151
15152 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
15153
15154 fi
15155
15156 ac_header_dirent=no
15157 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15158 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
15159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15160 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15161 if eval test \${$as_ac_Header+y}
15162 then :
15163 printf %s "(cached) " >&6
15164 else case e in #(
15165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166 /* end confdefs.h. */
15167 #include <sys/types.h>
15168 #include <$ac_hdr>
15169
15170 int
15171 main (void)
15172 {
15173 if ((DIR *) 0)
15174 return 0;
15175 ;
15176 return 0;
15177 }
15178 _ACEOF
15179 if ac_fn_c_try_compile "$LINENO"
15180 then :
15181 eval "$as_ac_Header=yes"
15182 else case e in #(
15183 e) eval "$as_ac_Header=no" ;;
15184 esac
15185 fi
15186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15187 esac
15188 fi
15189 eval ac_res=\$$as_ac_Header
15190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15191 printf "%s\n" "$ac_res" >&6; }
15192 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15193 then :
15194 cat >>confdefs.h <<_ACEOF
15195 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
15196 _ACEOF
15197
15198 ac_header_dirent=$ac_hdr; break
15199 fi
15200
15201 done
15202 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15203 if test $ac_header_dirent = dirent.h; then
15204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15205 printf %s "checking for library containing opendir... " >&6; }
15206 if test ${ac_cv_search_opendir+y}
15207 then :
15208 printf %s "(cached) " >&6
15209 else case e in #(
15210 e) ac_func_search_save_LIBS=$LIBS
15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15213
15214 /* Override any GCC internal prototype to avoid an error.
15215 Use char because int might match the return type of a GCC
15216 builtin and then its argument prototype would still apply.
15217 The 'extern "C"' is for builds by C++ compilers;
15218 although this is not generally supported in C code supporting it here
15219 has little cost and some practical benefit (sr 110532). */
15220 #ifdef __cplusplus
15221 extern "C"
15222 #endif
15223 char opendir (void);
15224 int
15225 main (void)
15226 {
15227 return opendir ();
15228 ;
15229 return 0;
15230 }
15231 _ACEOF
15232 for ac_lib in '' dir
15233 do
15234 if test -z "$ac_lib"; then
15235 ac_res="none required"
15236 else
15237 ac_res=-l$ac_lib
15238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15239 fi
15240 if ac_fn_c_try_link "$LINENO"
15241 then :
15242 ac_cv_search_opendir=$ac_res
15243 fi
15244 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15245 conftest$ac_exeext
15246 if test ${ac_cv_search_opendir+y}
15247 then :
15248 break
15249 fi
15250 done
15251 if test ${ac_cv_search_opendir+y}
15252 then :
15253
15254 else case e in #(
15255 e) ac_cv_search_opendir=no ;;
15256 esac
15257 fi
15258 rm conftest.$ac_ext
15259 LIBS=$ac_func_search_save_LIBS ;;
15260 esac
15261 fi
15262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15263 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15264 ac_res=$ac_cv_search_opendir
15265 if test "$ac_res" != no
15266 then :
15267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15268
15269 fi
15270
15271 else
15272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15273 printf %s "checking for library containing opendir... " >&6; }
15274 if test ${ac_cv_search_opendir+y}
15275 then :
15276 printf %s "(cached) " >&6
15277 else case e in #(
15278 e) ac_func_search_save_LIBS=$LIBS
15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h. */
15281
15282 /* Override any GCC internal prototype to avoid an error.
15283 Use char because int might match the return type of a GCC
15284 builtin and then its argument prototype would still apply.
15285 The 'extern "C"' is for builds by C++ compilers;
15286 although this is not generally supported in C code supporting it here
15287 has little cost and some practical benefit (sr 110532). */
15288 #ifdef __cplusplus
15289 extern "C"
15290 #endif
15291 char opendir (void);
15292 int
15293 main (void)
15294 {
15295 return opendir ();
15296 ;
15297 return 0;
15298 }
15299 _ACEOF
15300 for ac_lib in '' x
15301 do
15302 if test -z "$ac_lib"; then
15303 ac_res="none required"
15304 else
15305 ac_res=-l$ac_lib
15306 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15307 fi
15308 if ac_fn_c_try_link "$LINENO"
15309 then :
15310 ac_cv_search_opendir=$ac_res
15311 fi
15312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15313 conftest$ac_exeext
15314 if test ${ac_cv_search_opendir+y}
15315 then :
15316 break
15317 fi
15318 done
15319 if test ${ac_cv_search_opendir+y}
15320 then :
15321
15322 else case e in #(
15323 e) ac_cv_search_opendir=no ;;
15324 esac
15325 fi
15326 rm conftest.$ac_ext
15327 LIBS=$ac_func_search_save_LIBS ;;
15328 esac
15329 fi
15330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15331 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15332 ac_res=$ac_cv_search_opendir
15333 if test "$ac_res" != no
15334 then :
15335 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15336
15337 fi
15338
15339 fi
15340
15341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15342 printf %s "checking whether closedir returns void... " >&6; }
15343 if test ${ac_cv_func_closedir_void+y}
15344 then :
15345 printf %s "(cached) " >&6
15346 else case e in #(
15347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15349
15350 #include <$ac_header_dirent>
15351
15352 int
15353 main (void)
15354 {
15355
15356 return closedir(0);
15357
15358 ;
15359 return 0;
15360 }
15361 _ACEOF
15362 if ac_fn_c_try_compile "$LINENO"
15363 then :
15364 ac_cv_func_closedir_void=no
15365 else case e in #(
15366 e) ac_cv_func_closedir_void=yes ;;
15367 esac
15368 fi
15369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15370 esac
15371 fi
15372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15373 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
15374 if test $ac_cv_func_closedir_void = yes; then
15375
15376 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
15377
15378 fi
15379
15380 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
15381 if test "x$ac_cv_header_assert_h" = xyes
15382 then :
15383 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
15384
15385 fi
15386 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15387 if test "x$ac_cv_header_float_h" = xyes
15388 then :
15389 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
15390
15391 fi
15392 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15393 if test "x$ac_cv_header_limits_h" = xyes
15394 then :
15395 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
15396
15397 fi
15398 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15399 if test "x$ac_cv_header_pwd_h" = xyes
15400 then :
15401 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
15402
15403 fi
15404 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15405 if test "x$ac_cv_header_stdlib_h" = xyes
15406 then :
15407 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15408
15409 fi
15410 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15411 if test "x$ac_cv_header_sys_param_h" = xyes
15412 then :
15413 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15414
15415 fi
15416
15417 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
15418 if test "x$ac_cv_func_putenv" = xyes
15419 then :
15420 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
15421
15422 fi
15423
15424 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
15425 if test "x$ac_cv_func_getcwd" = xyes
15426 then :
15427 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
15428
15429 fi
15430 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
15431 if test "x$ac_cv_func_memcmp" = xyes
15432 then :
15433 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
15434
15435 fi
15436 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15437 if test "x$ac_cv_func_memcpy" = xyes
15438 then :
15439 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
15440
15441 fi
15442 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15443 if test "x$ac_cv_func_mkstemp" = xyes
15444 then :
15445 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15446
15447 fi
15448 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
15449 if test "x$ac_cv_func_mktemp" = xyes
15450 then :
15451 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
15452
15453 fi
15454 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
15455 if test "x$ac_cv_func_strchr" = xyes
15456 then :
15457 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
15458
15459 fi
15460 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
15461 if test "x$ac_cv_func_strrchr" = xyes
15462 then :
15463 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
15464
15465 fi
15466
15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15468 printf %s "checking for an ANSI C-conforming const... " >&6; }
15469 if test ${ac_cv_c_const+y}
15470 then :
15471 printf %s "(cached) " >&6
15472 else case e in #(
15473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h. */
15475
15476 int
15477 main (void)
15478 {
15479
15480 #ifndef __cplusplus
15481 /* Ultrix mips cc rejects this sort of thing. */
15482 typedef int charset[2];
15483 const charset cs = { 0, 0 };
15484 /* SunOS 4.1.1 cc rejects this. */
15485 char const *const *pcpcc;
15486 char **ppc;
15487 /* NEC SVR4.0.2 mips cc rejects this. */
15488 struct point {int x, y;};
15489 static struct point const zero = {0,0};
15490 /* IBM XL C 1.02.0.0 rejects this.
15491 It does not let you subtract one const X* pointer from another in
15492 an arm of an if-expression whose if-part is not a constant
15493 expression */
15494 const char *g = "string";
15495 pcpcc = &g + (g ? g-g : 0);
15496 /* HPUX 7.0 cc rejects these. */
15497 ++pcpcc;
15498 ppc = (char**) pcpcc;
15499 pcpcc = (char const *const *) ppc;
15500 { /* SCO 3.2v4 cc rejects this sort of thing. */
15501 char tx;
15502 char *t = &tx;
15503 char const *s = 0 ? (char *) 0 : (char const *) 0;
15504
15505 *t++ = 0;
15506 if (s) return 0;
15507 }
15508 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15509 int x[] = {25, 17};
15510 const int *foo = &x[0];
15511 ++foo;
15512 }
15513 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15514 typedef const int *iptr;
15515 iptr p = 0;
15516 ++p;
15517 }
15518 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
15519 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15520 struct s { int j; const int *ap[3]; } bx;
15521 struct s *b = &bx; b->j = 5;
15522 }
15523 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15524 const int foo = 10;
15525 if (!foo) return 0;
15526 }
15527 return !cs[0] && !zero.x;
15528 #endif
15529
15530 ;
15531 return 0;
15532 }
15533 _ACEOF
15534 if ac_fn_c_try_compile "$LINENO"
15535 then :
15536 ac_cv_c_const=yes
15537 else case e in #(
15538 e) ac_cv_c_const=no ;;
15539 esac
15540 fi
15541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15542 esac
15543 fi
15544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15545 printf "%s\n" "$ac_cv_c_const" >&6; }
15546 if test $ac_cv_c_const = no; then
15547
15548 printf "%s\n" "#define const /**/" >>confdefs.h
15549
15550 fi
15551
15552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15553 printf %s "checking for inline... " >&6; }
15554 if test ${ac_cv_c_inline+y}
15555 then :
15556 printf %s "(cached) " >&6
15557 else case e in #(
15558 e) ac_cv_c_inline=no
15559 for ac_kw in inline __inline__ __inline; do
15560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15561 /* end confdefs.h. */
15562 #ifndef __cplusplus
15563 typedef int foo_t;
15564 static $ac_kw foo_t static_foo (void) {return 0; }
15565 $ac_kw foo_t foo (void) {return 0; }
15566 #endif
15567
15568 _ACEOF
15569 if ac_fn_c_try_compile "$LINENO"
15570 then :
15571 ac_cv_c_inline=$ac_kw
15572 fi
15573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15574 test "$ac_cv_c_inline" != no && break
15575 done
15576 ;;
15577 esac
15578 fi
15579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15580 printf "%s\n" "$ac_cv_c_inline" >&6; }
15581
15582 case $ac_cv_c_inline in
15583 inline | yes) ;;
15584 *)
15585 case $ac_cv_c_inline in
15586 no) ac_val=;;
15587 *) ac_val=$ac_cv_c_inline;;
15588 esac
15589 cat >>confdefs.h <<_ACEOF
15590 #ifndef __cplusplus
15591 #define inline $ac_val
15592 #endif
15593 _ACEOF
15594 ;;
15595 esac
15596
15597 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15598 if test "x$ac_cv_type_size_t" = xyes
15599 then :
15600
15601 else case e in #(
15602 e)
15603 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15604 ;;
15605 esac
15606 fi
15607
15608 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15609 case $ac_cv_c_int64_t in #(
15610 no|yes) ;; #(
15611 *)
15612
15613 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
15614 ;;
15615 esac
15616
15617 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15618 case $ac_cv_c_uint64_t in #(
15619 no|yes) ;; #(
15620 *)
15621
15622 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
15623
15624
15625 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
15626 ;;
15627 esac
15628
15629 case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #(
15630 *':no:'*) :
15631 as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #(
15632 *) :
15633 ;;
15634 esac
15635 ac_fn_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h>
15636 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15637 if test "x$ac_cv_have_decl_isascii" = xyes
15638 then :
15639 ac_have_decl=1
15640 else case e in #(
15641 e) ac_have_decl=0 ;;
15642 esac
15643 fi
15644 printf "%s\n" "#define HAVE_DECL_ISASCII $ac_have_decl" >>confdefs.h
15645
15646 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15647 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
15648 then :
15649
15650 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
15651
15652
15653 fi
15654
15655
15656
15657 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
15658
15659
15660 XX_CFLAGS=$WARNING_CFLAGS
15661
15662
15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
15664 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15665 if test ${ac_cv_struct_tm+y}
15666 then :
15667 printf %s "(cached) " >&6
15668 else case e in #(
15669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15671 #include <sys/types.h>
15672 #include <time.h>
15673
15674 int
15675 main (void)
15676 {
15677 struct tm tm;
15678 int *p = &tm.tm_sec;
15679 return !p;
15680 ;
15681 return 0;
15682 }
15683 _ACEOF
15684 if ac_fn_c_try_compile "$LINENO"
15685 then :
15686 ac_cv_struct_tm=time.h
15687 else case e in #(
15688 e) ac_cv_struct_tm=sys/time.h ;;
15689 esac
15690 fi
15691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15692 esac
15693 fi
15694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
15695 printf "%s\n" "$ac_cv_struct_tm" >&6; }
15696 if test $ac_cv_struct_tm = sys/time.h; then
15697
15698 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
15699
15700 fi
15701
15702
15703 ac_func=
15704 for ac_item in $ac_func_c_list
15705 do
15706 if test $ac_func; then
15707 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
15708 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
15709 echo "#define $ac_item 1" >> confdefs.h
15710 fi
15711 ac_func=
15712 else
15713 ac_func=$ac_item
15714 fi
15715 done
15716
15717 if test "x$ac_cv_func_vprintf" = xno
15718 then :
15719 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
15720 if test "x$ac_cv_func__doprnt" = xyes
15721 then :
15722
15723 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
15724
15725 fi
15726
15727 fi
15728
15729 if test "x$ac_cv_func_strdup" = xno; then
15730 XX_CPPFLAGS=-DNO_STRDUP
15731 fi
15732
15733
15734 kpse_save_CPPFLAGS=$CPPFLAGS
15735 kpse_save_LIBS=$LIBS
15736
15737 ##tldbg _KPSE_INIT: Initialize TL infrastructure.
15738 kpse_BLD=`(cd "./../../." && pwd)`
15739 kpse_SRC=`(cd "$srcdir/../../." && pwd)`
15740
15741 echo 'tldbg:_KPSE_USE_LIBTOOL called, libtool package version: 2.5.4' >&5
15742 : ${CONFIG_LT=./config.lt}
15743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
15744 printf "%s\n" "$as_me: creating $CONFIG_LT" >&6;}
15745 as_write_fail=0
15746 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
15747 #! $SHELL
15748 # Generated by $as_me.
15749 # Run this file to recreate a libtool stub with the current configuration.
15750 SHELL=\${CONFIG_SHELL-$SHELL}
15751 export SHELL
15752 _ASEOF
15753 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
15754 ## -------------------- ##
15755 ## M4sh Initialization. ##
15756 ## -------------------- ##
15757
15758 # Be more Bourne compatible
15759 DUALCASE=1; export DUALCASE # for MKS sh
15760 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15761 then :
15762 emulate sh
15763 NULLCMD=:
15764 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15765 # is contrary to our usage. Disable this feature.
15766 alias -g '${1+"$@"}'='"$@"'
15767 setopt NO_GLOB_SUBST
15768 else case e in #(
15769 e) case `(set -o) 2>/dev/null` in #(
15770 *posix*) :
15771 set -o posix ;; #(
15772 *) :
15773 ;;
15774 esac ;;
15775 esac
15776 fi
15777
15778
15779
15780 # Reset variables that may have inherited troublesome values from
15781 # the environment.
15782
15783 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15784 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15785 # side effect of setting IFS to empty, thus disabling word splitting.)
15786 # Quoting is to prevent editors from complaining about space-tab.
15787 as_nl='
15788 '
15789 export as_nl
15790 IFS=" "" $as_nl"
15791
15792 PS1='$ '
15793 PS2='> '
15794 PS4='+ '
15795
15796 # Ensure predictable behavior from utilities with locale-dependent output.
15797 LC_ALL=C
15798 export LC_ALL
15799 LANGUAGE=C
15800 export LANGUAGE
15801
15802 # We cannot yet rely on "unset" to work, but we need these variables
15803 # to be unset--not just set to an empty or harmless value--now, to
15804 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15805 # also avoids known problems related to "unset" and subshell syntax
15806 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15807 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15808 do eval test \${$as_var+y} \
15809 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15810 done
15811
15812 # Ensure that fds 0, 1, and 2 are open.
15813 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15814 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15815 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15816
15817 # The user is always right.
15818 if ${PATH_SEPARATOR+false} :; then
15819 PATH_SEPARATOR=:
15820 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15821 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15822 PATH_SEPARATOR=';'
15823 }
15824 fi
15825
15826
15827 # Find who we are. Look in the path if we contain no directory separator.
15828 as_myself=
15829 case $0 in #((
15830 *[\\/]* ) as_myself=$0 ;;
15831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15832 for as_dir in $PATH
15833 do
15834 IFS=$as_save_IFS
15835 case $as_dir in #(((
15836 '') as_dir=./ ;;
15837 */) ;;
15838 *) as_dir=$as_dir/ ;;
15839 esac
15840 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15841 done
15842 IFS=$as_save_IFS
15843
15844 ;;
15845 esac
15846 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15847 # in which case we are not to be found in the path.
15848 if test "x$as_myself" = x; then
15849 as_myself=$0
15850 fi
15851 if test ! -f "$as_myself"; then
15852 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15853 exit 1
15854 fi
15855
15856
15857
15858 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15859 # ----------------------------------------
15860 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15861 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15862 # script with STATUS, using 1 if that was 0.
15863 as_fn_error ()
15864 {
15865 as_status=$1; test $as_status -eq 0 && as_status=1
15866 if test "$4"; then
15867 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15869 fi
15870 printf "%s\n" "$as_me: error: $2" >&2
15871 as_fn_exit $as_status
15872 } # as_fn_error
15873
15874
15875 # as_fn_set_status STATUS
15876 # -----------------------
15877 # Set $? to STATUS, without forking.
15878 as_fn_set_status ()
15879 {
15880 return $1
15881 } # as_fn_set_status
15882
15883 # as_fn_exit STATUS
15884 # -----------------
15885 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15886 as_fn_exit ()
15887 {
15888 set +e
15889 as_fn_set_status $1
15890 exit $1
15891 } # as_fn_exit
15892
15893 # as_fn_unset VAR
15894 # ---------------
15895 # Portably unset VAR.
15896 as_fn_unset ()
15897 {
15898 { eval $1=; unset $1;}
15899 }
15900 as_unset=as_fn_unset
15901
15902 # as_fn_append VAR VALUE
15903 # ----------------------
15904 # Append the text in VALUE to the end of the definition contained in VAR. Take
15905 # advantage of any shell optimizations that allow amortized linear growth over
15906 # repeated appends, instead of the typical quadratic growth present in naive
15907 # implementations.
15908 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15909 then :
15910 eval 'as_fn_append ()
15911 {
15912 eval $1+=\$2
15913 }'
15914 else case e in #(
15915 e) as_fn_append ()
15916 {
15917 eval $1=\$$1\$2
15918 } ;;
15919 esac
15920 fi # as_fn_append
15921
15922 # as_fn_arith ARG...
15923 # ------------------
15924 # Perform arithmetic evaluation on the ARGs, and store the result in the
15925 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15926 # must be portable across $(()) and expr.
15927 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15928 then :
15929 eval 'as_fn_arith ()
15930 {
15931 as_val=$(( $* ))
15932 }'
15933 else case e in #(
15934 e) as_fn_arith ()
15935 {
15936 as_val=`expr "$@" || test $? -eq 1`
15937 } ;;
15938 esac
15939 fi # as_fn_arith
15940
15941
15942 if expr a : '\(a\)' >/dev/null 2>&1 &&
15943 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15944 as_expr=expr
15945 else
15946 as_expr=false
15947 fi
15948
15949 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15950 as_basename=basename
15951 else
15952 as_basename=false
15953 fi
15954
15955 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15956 as_dirname=dirname
15957 else
15958 as_dirname=false
15959 fi
15960
15961 as_me=`$as_basename -- "$0" ||
15962 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15963 X"$0" : 'X\(//\)$' \| \
15964 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15965 printf "%s\n" X/"$0" |
15966 sed '/^.*\/\([^/][^/]*\)\/*$/{
15967 s//\1/
15968 q
15969 }
15970 /^X\/\(\/\/\)$/{
15971 s//\1/
15972 q
15973 }
15974 /^X\/\(\/\).*/{
15975 s//\1/
15976 q
15977 }
15978 s/.*/./; q'`
15979
15980 # Avoid depending upon Character Ranges.
15981 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15982 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15983 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15984 as_cr_digits='0123456789'
15985 as_cr_alnum=$as_cr_Letters$as_cr_digits
15986
15987
15988 # Determine whether it's possible to make 'echo' print without a newline.
15989 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15990 # for compatibility with existing Makefiles.
15991 ECHO_C= ECHO_N= ECHO_T=
15992 case `echo -n x` in #(((((
15993 -n*)
15994 case `echo 'xy\c'` in
15995 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15996 xy) ECHO_C='\c';;
15997 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15998 ECHO_T=' ';;
15999 esac;;
16000 *)
16001 ECHO_N='-n';;
16002 esac
16003
16004 # For backward compatibility with old third-party macros, we provide
16005 # the shell variables $as_echo and $as_echo_n. New code should use
16006 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16007 as_echo='printf %s\n'
16008 as_echo_n='printf %s'
16009
16010 rm -f conf$$ conf$$.exe conf$$.file
16011 if test -d conf$$.dir; then
16012 rm -f conf$$.dir/conf$$.file
16013 else
16014 rm -f conf$$.dir
16015 mkdir conf$$.dir 2>/dev/null
16016 fi
16017 if (echo >conf$$.file) 2>/dev/null; then
16018 if ln -s conf$$.file conf$$ 2>/dev/null; then
16019 as_ln_s='ln -s'
16020 # ... but there are two gotchas:
16021 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16022 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16023 # In both cases, we have to default to 'cp -pR'.
16024 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16025 as_ln_s='cp -pR'
16026 elif ln conf$$.file conf$$ 2>/dev/null; then
16027 as_ln_s=ln
16028 else
16029 as_ln_s='cp -pR'
16030 fi
16031 else
16032 as_ln_s='cp -pR'
16033 fi
16034 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16035 rmdir conf$$.dir 2>/dev/null
16036
16037
16038 # as_fn_mkdir_p
16039 # -------------
16040 # Create "$as_dir" as a directory, including parents if necessary.
16041 as_fn_mkdir_p ()
16042 {
16043
16044 case $as_dir in #(
16045 -*) as_dir=./$as_dir;;
16046 esac
16047 test -d "$as_dir" || eval $as_mkdir_p || {
16048 as_dirs=
16049 while :; do
16050 case $as_dir in #(
16051 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16052 *) as_qdir=$as_dir;;
16053 esac
16054 as_dirs="'$as_qdir' $as_dirs"
16055 as_dir=`$as_dirname -- "$as_dir" ||
16056 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16057 X"$as_dir" : 'X\(//\)[^/]' \| \
16058 X"$as_dir" : 'X\(//\)$' \| \
16059 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16060 printf "%s\n" X"$as_dir" |
16061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16062 s//\1/
16063 q
16064 }
16065 /^X\(\/\/\)[^/].*/{
16066 s//\1/
16067 q
16068 }
16069 /^X\(\/\/\)$/{
16070 s//\1/
16071 q
16072 }
16073 /^X\(\/\).*/{
16074 s//\1/
16075 q
16076 }
16077 s/.*/./; q'`
16078 test -d "$as_dir" && break
16079 done
16080 test -z "$as_dirs" || eval "mkdir $as_dirs"
16081 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16082
16083
16084 } # as_fn_mkdir_p
16085 if mkdir -p . 2>/dev/null; then
16086 as_mkdir_p='mkdir -p "$as_dir"'
16087 else
16088 test -d ./-p && rmdir ./-p
16089 as_mkdir_p=false
16090 fi
16091
16092
16093 # as_fn_executable_p FILE
16094 # -----------------------
16095 # Test if FILE is an executable regular file.
16096 as_fn_executable_p ()
16097 {
16098 test -f "$1" && test -x "$1"
16099 } # as_fn_executable_p
16100 as_test_x='test -x'
16101 as_executable_p=as_fn_executable_p
16102
16103 # Sed expression to map a string onto a valid CPP name.
16104 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16105 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16106
16107 # Sed expression to map a string onto a valid variable name.
16108 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16109 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16110
16111
16112 exec 6>&1
16113 ## --------------------------------- ##
16114 ## Main body of "$CONFIG_LT" script. ##
16115 ## --------------------------------- ##
16116 _ASEOF
16117 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
16118
16119 cat >>"$CONFIG_LT" <<\_LTEOF
16120 lt_cl_silent=false
16121 exec 5>>config.log
16122 {
16123 echo
16124 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16125 ## Running $as_me. ##
16126 _ASBOX
16127 } >&5
16128
16129 lt_cl_help="\
16130 '$as_me' creates a local libtool stub from the current configuration,
16131 for use in further configure time tests before the real libtool is
16132 generated.
16133
16134 Usage: $0 [OPTIONS]
16135
16136 -h, --help print this help, then exit
16137 -V, --version print version number, then exit
16138 -q, --quiet do not print progress messages
16139 -d, --debug don't remove temporary files
16140
16141 Report bugs to <[email protected]>."
16142
16143 lt_cl_version="\
16144 CJK utils (TeX Live) config.lt 4.8.5
16145 configured by $0, generated by GNU Autoconf 2.72.
16146
16147 Copyright (C) 2024 Free Software Foundation, Inc.
16148 This config.lt script is free software; the Free Software Foundation
16149 gives unlimited permission to copy, distribute and modify it."
16150
16151 while test 0 != $#
16152 do
16153 case $1 in
16154 --version | --v* | -V )
16155 echo "$lt_cl_version"; exit 0 ;;
16156 --help | --h* | -h )
16157 echo "$lt_cl_help"; exit 0 ;;
16158 --debug | --d* | -d )
16159 debug=: ;;
16160 --quiet | --q* | --silent | --s* | -q )
16161 lt_cl_silent=: ;;
16162
16163 -*) as_fn_error $? "unrecognized option: $1
16164 Try '$0 --help' for more information." "$LINENO" 5 ;;
16165
16166 *) as_fn_error $? "unrecognized argument: $1
16167 Try '$0 --help' for more information." "$LINENO" 5 ;;
16168 esac
16169 shift
16170 done
16171
16172 if $lt_cl_silent; then
16173 exec 6>/dev/null
16174 fi
16175 _LTEOF
16176
16177 cat >>"$CONFIG_LT" <<_LTEOF
16178
16179
16180 # The HP-UX ksh and POSIX shell print the target directory to stdout
16181 # if CDPATH is set.
16182 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16183
16184 sed_quote_subst='$sed_quote_subst'
16185 double_quote_subst='$double_quote_subst'
16186 delay_variable_subst='$delay_variable_subst'
16187 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16188 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16189 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16190 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16191 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16192 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16193 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16194 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16195 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16196 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16197 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16198 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16199 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16200 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16201 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16202 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16203 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16204 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16205 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16206 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16207 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16208 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16209 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16210 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16211 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16212 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16213 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16214 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16215 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16216 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16217 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16218 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16219 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16220 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16221 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16222 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16223 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16224 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16225 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16226 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16227 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16228 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16229 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16230 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16231 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16232 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16233 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16234 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16235 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16236 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16237 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16238 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16239 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16240 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16241 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16242 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16243 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16244 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16245 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16246 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16247 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16248 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"`'
16249 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16250 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16251 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16252 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16253 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16254 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16255 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16256 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16257 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16258 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16259 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16260 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16261 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16262 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16263 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16264 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16265 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16266 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16267 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16268 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16269 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16270 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16271 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16272 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16273 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16274 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16275 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16276 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16277 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16278 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16279 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16280 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16281 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16282 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16283 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16284 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16285 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16286 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16287 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16288 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16289 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16290 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16291 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16292 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16293 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16294 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16295 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16296 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16297 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16298 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16299 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16300 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16301 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16302 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16303 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16304 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16305 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16306 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16307 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16308 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16309 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16310 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16311 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16312 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16313 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16314 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16315 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16316 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16317 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16318 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16319 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16320 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16321 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16322 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16323 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16324 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16325
16326 LTCC='$LTCC'
16327 LTCFLAGS='$LTCFLAGS'
16328 compiler='$compiler_DEFAULT'
16329
16330 # A function that is used when there is no print builtin or printf.
16331 func_fallback_echo ()
16332 {
16333 eval 'cat <<_LTECHO_EOF
16334 \$1
16335 _LTECHO_EOF'
16336 }
16337
16338 # Quote evaled strings.
16339 for var in AS \
16340 DLLTOOL \
16341 OBJDUMP \
16342 SHELL \
16343 ECHO \
16344 PATH_SEPARATOR \
16345 SED \
16346 GREP \
16347 EGREP \
16348 FGREP \
16349 LD \
16350 NM \
16351 LN_S \
16352 lt_SP2NL \
16353 lt_NL2SP \
16354 reload_flag \
16355 FILECMD \
16356 deplibs_check_method \
16357 file_magic_cmd \
16358 file_magic_glob \
16359 want_nocaseglob \
16360 sharedlib_from_linklib_cmd \
16361 AR \
16362 archiver_list_spec \
16363 STRIP \
16364 RANLIB \
16365 CC \
16366 CFLAGS \
16367 compiler \
16368 lt_cv_sys_global_symbol_pipe \
16369 lt_cv_sys_global_symbol_to_cdecl \
16370 lt_cv_sys_global_symbol_to_import \
16371 lt_cv_sys_global_symbol_to_c_name_address \
16372 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16373 lt_cv_nm_interface \
16374 nm_file_list_spec \
16375 lt_cv_truncate_bin \
16376 lt_prog_compiler_no_builtin_flag \
16377 lt_prog_compiler_pic \
16378 lt_prog_compiler_wl \
16379 lt_prog_compiler_static \
16380 lt_cv_prog_compiler_c_o \
16381 need_locks \
16382 MANIFEST_TOOL \
16383 DSYMUTIL \
16384 NMEDIT \
16385 LIPO \
16386 OTOOL \
16387 OTOOL64 \
16388 shrext_cmds \
16389 export_dynamic_flag_spec \
16390 whole_archive_flag_spec \
16391 compiler_needs_object \
16392 with_gnu_ld \
16393 allow_undefined_flag \
16394 no_undefined_flag \
16395 hardcode_libdir_flag_spec \
16396 hardcode_libdir_separator \
16397 exclude_expsyms \
16398 include_expsyms \
16399 file_list_spec \
16400 variables_saved_for_relink \
16401 libname_spec \
16402 library_names_spec \
16403 soname_spec \
16404 install_override_mode \
16405 finish_eval \
16406 old_striplib \
16407 striplib; do
16408 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16409 *[\\\\\\\`\\"\\\$]*)
16410 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16411 ;;
16412 *)
16413 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16414 ;;
16415 esac
16416 done
16417
16418 # Double-quote double-evaled strings.
16419 for var in reload_cmds \
16420 old_postinstall_cmds \
16421 old_postuninstall_cmds \
16422 old_archive_cmds \
16423 extract_expsyms_cmds \
16424 old_archive_from_new_cmds \
16425 old_archive_from_expsyms_cmds \
16426 archive_cmds \
16427 archive_expsym_cmds \
16428 module_cmds \
16429 module_expsym_cmds \
16430 export_symbols_cmds \
16431 prelink_cmds \
16432 postlink_cmds \
16433 postinstall_cmds \
16434 postuninstall_cmds \
16435 finish_cmds \
16436 sys_lib_search_path_spec \
16437 configure_time_dlsearch_path \
16438 configure_time_lt_sys_library_path; do
16439 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16440 *[\\\\\\\`\\"\\\$]*)
16441 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16442 ;;
16443 *)
16444 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16445 ;;
16446 esac
16447 done
16448
16449 ac_aux_dir='$ac_aux_dir'
16450
16451 # See if we are running on zsh, and set the options that allow our
16452 # commands through without removal of \ escapes INIT.
16453 if test -n "\${ZSH_VERSION+set}"; then
16454 setopt NO_GLOB_SUBST
16455 fi
16456
16457
16458 PACKAGE='$PACKAGE'
16459 VERSION='$VERSION'
16460 RM='$RM'
16461 ofile='$ofile'
16462
16463
16464
16465 _LTEOF
16466
16467 cat >>"$CONFIG_LT" <<\_LTEOF
16468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
16469 printf "%s\n" "$as_me: creating $ofile" >&6;}
16470
16471
16472 # See if we are running on zsh, and set the options that allow our
16473 # commands through without removal of \ escapes.
16474 if test -n "${ZSH_VERSION+set}"; then
16475 setopt NO_GLOB_SUBST
16476 fi
16477
16478 cfgfile=${ofile}T
16479 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16480 $RM "$cfgfile"
16481
16482 cat <<_LT_EOF >> "$cfgfile"
16483 #! $SHELL
16484 # Generated automatically by $as_me ($PACKAGE) $VERSION
16485 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16486
16487 # Provide generalized library-building support services.
16488 # Written by Gordon Matzigkeit, 1996
16489
16490 # Copyright (C) 2024 Free Software Foundation, Inc.
16491 # This is free software; see the source for copying conditions. There is NO
16492 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16493
16494 # GNU Libtool is free software; you can redistribute it and/or modify
16495 # it under the terms of the GNU General Public License as published by
16496 # the Free Software Foundation; either version 2 of the License, or
16497 # (at your option) any later version.
16498 #
16499 # As a special exception to the GNU General Public License, if you
16500 # distribute this file as part of a program or library that is built
16501 # using GNU Libtool, you may include this file under the same
16502 # distribution terms that you use for the rest of that program.
16503 #
16504 # GNU Libtool is distributed in the hope that it will be useful, but
16505 # WITHOUT ANY WARRANTY; without even the implied warranty of
16506 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16507 # GNU General Public License for more details.
16508 #
16509 # You should have received a copy of the GNU General Public License
16510 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16511
16512
16513 # The names of the tagged configurations supported by this script.
16514 available_tags=''
16515
16516 # Configured defaults for sys_lib_dlsearch_path munging.
16517 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16518
16519 # ### BEGIN LIBTOOL CONFIG
16520
16521 # Which release of libtool.m4 was used?
16522 macro_version=$macro_version
16523 macro_revision=$macro_revision
16524
16525 # Assembler program.
16526 AS=$lt_AS
16527
16528 # DLL creation program.
16529 DLLTOOL=$lt_DLLTOOL
16530
16531 # Object dumper program.
16532 OBJDUMP=$lt_OBJDUMP
16533
16534 # Whether or not to build shared libraries.
16535 build_libtool_libs=$enable_shared
16536
16537 # Whether or not to build static libraries.
16538 build_old_libs=$enable_static
16539
16540 # What type of objects to build.
16541 pic_mode=$pic_mode
16542
16543 # Whether or not to optimize for fast installation.
16544 fast_install=$enable_fast_install
16545
16546 # Shared archive member basename,for filename based shared library versioning on AIX.
16547 shared_archive_member_spec=$shared_archive_member_spec
16548
16549 # Shell to use when invoking shell scripts.
16550 SHELL=$lt_SHELL
16551
16552 # An echo program that protects backslashes.
16553 ECHO=$lt_ECHO
16554
16555 # The PATH separator for the build system.
16556 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16557
16558 # The host system.
16559 host_alias=$host_alias
16560 host=$host
16561 host_os=$host_os
16562
16563 # The build system.
16564 build_alias=$build_alias
16565 build=$build
16566 build_os=$build_os
16567
16568 # A sed program that does not truncate output.
16569 SED=$lt_SED
16570
16571 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16572 Xsed="\$SED -e 1s/^X//"
16573
16574 # A grep program that handles long lines.
16575 GREP=$lt_GREP
16576
16577 # An ERE matcher.
16578 EGREP=$lt_EGREP
16579
16580 # A literal string matcher.
16581 FGREP=$lt_FGREP
16582
16583 # A BSD- or MS-compatible name lister.
16584 NM=$lt_NM
16585
16586 # Whether we need soft or hard links.
16587 LN_S=$lt_LN_S
16588
16589 # What is the maximum length of a command?
16590 max_cmd_len=$max_cmd_len
16591
16592 # Object file suffix (normally "o").
16593 objext=$ac_objext
16594
16595 # Executable file suffix (normally "").
16596 exeext=$exeext
16597
16598 # whether the shell understands "unset".
16599 lt_unset=$lt_unset
16600
16601 # turn spaces into newlines.
16602 SP2NL=$lt_lt_SP2NL
16603
16604 # turn newlines into spaces.
16605 NL2SP=$lt_lt_NL2SP
16606
16607 # convert \$build file names to \$host format.
16608 to_host_file_cmd=$lt_cv_to_host_file_cmd
16609
16610 # convert \$build files to toolchain format.
16611 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16612
16613 # A file(cmd) program that detects file types.
16614 FILECMD=$lt_FILECMD
16615
16616 # Method to check whether dependent libraries are shared objects.
16617 deplibs_check_method=$lt_deplibs_check_method
16618
16619 # Command to use when deplibs_check_method = "file_magic".
16620 file_magic_cmd=$lt_file_magic_cmd
16621
16622 # How to find potential files when deplibs_check_method = "file_magic".
16623 file_magic_glob=$lt_file_magic_glob
16624
16625 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16626 want_nocaseglob=$lt_want_nocaseglob
16627
16628 # Command to associate shared and link libraries.
16629 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16630
16631 # The archiver.
16632 AR=$lt_AR
16633
16634 # Flags to create an archive (by configure).
16635 lt_ar_flags=$lt_ar_flags
16636
16637 # Flags to create an archive.
16638 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16639
16640 # How to feed a file listing to the archiver.
16641 archiver_list_spec=$lt_archiver_list_spec
16642
16643 # A symbol stripping program.
16644 STRIP=$lt_STRIP
16645
16646 # Commands used to install an old-style archive.
16647 RANLIB=$lt_RANLIB
16648 old_postinstall_cmds=$lt_old_postinstall_cmds
16649 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16650
16651 # Whether to use a lock for old archive extraction.
16652 lock_old_archive_extraction=$lock_old_archive_extraction
16653
16654 # A C compiler.
16655 LTCC=$lt_CC
16656
16657 # LTCC compiler flags.
16658 LTCFLAGS=$lt_CFLAGS
16659
16660 # Take the output of nm and produce a listing of raw symbols and C names.
16661 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16662
16663 # Transform the output of nm in a proper C declaration.
16664 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16665
16666 # Transform the output of nm into a list of symbols to manually relocate.
16667 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16668
16669 # Transform the output of nm in a C name address pair.
16670 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16671
16672 # Transform the output of nm in a C name address pair when lib prefix is needed.
16673 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16674
16675 # The name lister interface.
16676 nm_interface=$lt_lt_cv_nm_interface
16677
16678 # Specify filename containing input files for \$NM.
16679 nm_file_list_spec=$lt_nm_file_list_spec
16680
16681 # The root where to search for dependent libraries,and where our libraries should be installed.
16682 lt_sysroot=$lt_sysroot
16683
16684 # Command to truncate a binary pipe.
16685 lt_truncate_bin=$lt_lt_cv_truncate_bin
16686
16687 # The name of the directory that contains temporary libtool files.
16688 objdir=$objdir
16689
16690 # Used to examine libraries when file_magic_cmd begins with "file".
16691 MAGIC_CMD=$MAGIC_CMD
16692
16693 # Must we lock files when doing compilation?
16694 need_locks=$lt_need_locks
16695
16696 # Manifest tool.
16697 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16698
16699 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16700 DSYMUTIL=$lt_DSYMUTIL
16701
16702 # Tool to change global to local symbols on Mac OS X.
16703 NMEDIT=$lt_NMEDIT
16704
16705 # Tool to manipulate fat objects and archives on Mac OS X.
16706 LIPO=$lt_LIPO
16707
16708 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16709 OTOOL=$lt_OTOOL
16710
16711 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16712 OTOOL64=$lt_OTOOL64
16713
16714 # Old archive suffix (normally "a").
16715 libext=$libext
16716
16717 # Shared library suffix (normally ".so").
16718 shrext_cmds=$lt_shrext_cmds
16719
16720 # The commands to extract the exported symbol list from a shared archive.
16721 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16722
16723 # Variables whose values should be saved in libtool wrapper scripts and
16724 # restored at link time.
16725 variables_saved_for_relink=$lt_variables_saved_for_relink
16726
16727 # Do we need the "lib" prefix for modules?
16728 need_lib_prefix=$need_lib_prefix
16729
16730 # Do we need a version for libraries?
16731 need_version=$need_version
16732
16733 # Library versioning type.
16734 version_type=$version_type
16735
16736 # Shared library runtime path variable.
16737 runpath_var=$runpath_var
16738
16739 # Shared library path variable.
16740 shlibpath_var=$shlibpath_var
16741
16742 # Is shlibpath searched before the hard-coded library search path?
16743 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16744
16745 # Format of library name prefix.
16746 libname_spec=$lt_libname_spec
16747
16748 # List of archive names. First name is the real one, the rest are links.
16749 # The last name is the one that the linker finds with -lNAME
16750 library_names_spec=$lt_library_names_spec
16751
16752 # The coded name of the library, if different from the real name.
16753 soname_spec=$lt_soname_spec
16754
16755 # Permission mode override for installation of shared libraries.
16756 install_override_mode=$lt_install_override_mode
16757
16758 # Command to use after installation of a shared archive.
16759 postinstall_cmds=$lt_postinstall_cmds
16760
16761 # Command to use after uninstallation of a shared archive.
16762 postuninstall_cmds=$lt_postuninstall_cmds
16763
16764 # Commands used to finish a libtool library installation in a directory.
16765 finish_cmds=$lt_finish_cmds
16766
16767 # As "finish_cmds", except a single script fragment to be evaled but
16768 # not shown.
16769 finish_eval=$lt_finish_eval
16770
16771 # Whether we should hardcode library paths into libraries.
16772 hardcode_into_libs=$hardcode_into_libs
16773
16774 # Compile-time system search path for libraries.
16775 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16776
16777 # Detected run-time system search path for libraries.
16778 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16779
16780 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16781 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16782
16783 # Whether dlopen is supported.
16784 dlopen_support=$enable_dlopen
16785
16786 # Whether dlopen of programs is supported.
16787 dlopen_self=$enable_dlopen_self
16788
16789 # Whether dlopen of statically linked programs is supported.
16790 dlopen_self_static=$enable_dlopen_self_static
16791
16792 # Commands to strip libraries.
16793 old_striplib=$lt_old_striplib
16794 striplib=$lt_striplib
16795
16796
16797 # The linker used to build libraries.
16798 LD=$lt_LD
16799
16800 # How to create reloadable object files.
16801 reload_flag=$lt_reload_flag
16802 reload_cmds=$lt_reload_cmds
16803
16804 # Commands used to build an old-style archive.
16805 old_archive_cmds=$lt_old_archive_cmds
16806
16807 # A language specific compiler.
16808 CC=$lt_compiler
16809
16810 # Is the compiler the GNU compiler?
16811 with_gcc=$GCC
16812
16813 # Compiler flag to turn off builtin functions.
16814 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16815
16816 # Additional compiler flags for building library objects.
16817 pic_flag=$lt_lt_prog_compiler_pic
16818
16819 # How to pass a linker flag through the compiler.
16820 wl=$lt_lt_prog_compiler_wl
16821
16822 # Compiler flag to prevent dynamic linking.
16823 link_static_flag=$lt_lt_prog_compiler_static
16824
16825 # Does compiler simultaneously support -c and -o options?
16826 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16827
16828 # Whether or not to add -lc for building shared libraries.
16829 build_libtool_need_lc=$archive_cmds_need_lc
16830
16831 # Whether or not to disallow shared libs when runtime libs are static.
16832 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16833
16834 # Compiler flag to allow reflexive dlopens.
16835 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16836
16837 # Compiler flag to generate shared objects directly from archives.
16838 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16839
16840 # Whether the compiler copes with passing no objects directly.
16841 compiler_needs_object=$lt_compiler_needs_object
16842
16843 # Create an old-style archive from a shared archive.
16844 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16845
16846 # Create a temporary old-style archive to link instead of a shared archive.
16847 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16848
16849 # Commands used to build a shared archive.
16850 archive_cmds=$lt_archive_cmds
16851 archive_expsym_cmds=$lt_archive_expsym_cmds
16852
16853 # Commands used to build a loadable module if different from building
16854 # a shared archive.
16855 module_cmds=$lt_module_cmds
16856 module_expsym_cmds=$lt_module_expsym_cmds
16857
16858 # Whether we are building with GNU ld or not.
16859 with_gnu_ld=$lt_with_gnu_ld
16860
16861 # Flag that allows shared libraries with undefined symbols to be built.
16862 allow_undefined_flag=$lt_allow_undefined_flag
16863
16864 # Flag that enforces no undefined symbols.
16865 no_undefined_flag=$lt_no_undefined_flag
16866
16867 # Flag to hardcode \$libdir into a binary during linking.
16868 # This must work even if \$libdir does not exist
16869 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16870
16871 # Whether we need a single "-rpath" flag with a separated argument.
16872 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16873
16874 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16875 # DIR into the resulting binary.
16876 hardcode_direct=$hardcode_direct
16877
16878 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16879 # DIR into the resulting binary and the resulting library dependency is
16880 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
16881 # library is relocated.
16882 hardcode_direct_absolute=$hardcode_direct_absolute
16883
16884 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16885 # into the resulting binary.
16886 hardcode_minus_L=$hardcode_minus_L
16887
16888 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16889 # into the resulting binary.
16890 hardcode_shlibpath_var=$hardcode_shlibpath_var
16891
16892 # Set to "yes" if building a shared library automatically hardcodes DIR
16893 # into the library and all subsequent libraries and executables linked
16894 # against it.
16895 hardcode_automatic=$hardcode_automatic
16896
16897 # Set to yes if linker adds runtime paths of dependent libraries
16898 # to runtime path list.
16899 inherit_rpath=$inherit_rpath
16900
16901 # Whether libtool must link a program against all its dependency libraries.
16902 link_all_deplibs=$link_all_deplibs
16903
16904 # Set to "yes" if exported symbols are required.
16905 always_export_symbols=$always_export_symbols
16906
16907 # The commands to list exported symbols.
16908 export_symbols_cmds=$lt_export_symbols_cmds
16909
16910 # Symbols that should not be listed in the preloaded symbols.
16911 exclude_expsyms=$lt_exclude_expsyms
16912
16913 # Symbols that must always be exported.
16914 include_expsyms=$lt_include_expsyms
16915
16916 # Commands necessary for linking programs (against libraries) with templates.
16917 prelink_cmds=$lt_prelink_cmds
16918
16919 # Commands necessary for finishing linking programs.
16920 postlink_cmds=$lt_postlink_cmds
16921
16922 # Specify filename containing input files.
16923 file_list_spec=$lt_file_list_spec
16924
16925 # How to hardcode a shared library path into an executable.
16926 hardcode_action=$hardcode_action
16927
16928 # ### END LIBTOOL CONFIG
16929
16930 _LT_EOF
16931
16932 cat <<'_LT_EOF' >> "$cfgfile"
16933
16934 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16935
16936 # func_munge_path_list VARIABLE PATH
16937 # -----------------------------------
16938 # VARIABLE is name of variable containing _space_ separated list of
16939 # directories to be munged by the contents of PATH, which is string
16940 # having a format:
16941 # "DIR[:DIR]:"
16942 # string "DIR[ DIR]" will be prepended to VARIABLE
16943 # ":DIR[:DIR]"
16944 # string "DIR[ DIR]" will be appended to VARIABLE
16945 # "DIRP[:DIRP]::[DIRA:]DIRA"
16946 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16947 # "DIRA[ DIRA]" will be appended to VARIABLE
16948 # "DIR[:DIR]"
16949 # VARIABLE will be replaced by "DIR[ DIR]"
16950 func_munge_path_list ()
16951 {
16952 case x$2 in
16953 x)
16954 ;;
16955 *:)
16956 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16957 ;;
16958 x:*)
16959 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16960 ;;
16961 *::*)
16962 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16963 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16964 ;;
16965 *)
16966 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16967 ;;
16968 esac
16969 }
16970
16971
16972 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16973 func_cc_basename ()
16974 {
16975 for cc_temp in $*""; do
16976 case $cc_temp in
16977 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16978 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16979 \-*) ;;
16980 *) break;;
16981 esac
16982 done
16983 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16984 }
16985
16986
16987 # ### END FUNCTIONS SHARED WITH CONFIGURE
16988
16989 _LT_EOF
16990
16991 case $host_os in
16992 aix3*)
16993 cat <<\_LT_EOF >> "$cfgfile"
16994 # AIX sometimes has problems with the GCC collect2 program. For some
16995 # reason, if we set the COLLECT_NAMES environment variable, the problems
16996 # vanish in a puff of smoke.
16997 if test set != "${COLLECT_NAMES+set}"; then
16998 COLLECT_NAMES=
16999 export COLLECT_NAMES
17000 fi
17001 _LT_EOF
17002 ;;
17003 esac
17004
17005
17006
17007 ltmain=$ac_aux_dir/ltmain.sh
17008
17009
17010 # We use sed instead of cat because bash on DJGPP gets confused if
17011 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17012 # text mode, it properly converts lines to CR/LF. This bash problem
17013 # is reportedly fixed, but why not run on old versions too?
17014 $SED '$q' "$ltmain" >> "$cfgfile" \
17015 || (rm -f "$cfgfile"; exit 1)
17016
17017 mv -f "$cfgfile" "$ofile" ||
17018 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17019 chmod +x "$ofile"
17020
17021
17022 as_fn_exit 0
17023 _LTEOF
17024 chmod +x "$CONFIG_LT"
17025
17026 # configure is writing to config.log, but config.lt does its own redirection,
17027 # appending to config.log, which fails on DOS, as config.log is still kept
17028 # open by configure. Here we exec the FD to /dev/null, effectively closing
17029 # config.log, so it can be properly (re)opened and appended to by config.lt.
17030 lt_cl_success=:
17031 test yes = "$silent" &&
17032 lt_config_lt_args="$lt_config_lt_args --quiet"
17033 exec 5>/dev/null
17034 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
17035 exec 5>>config.log
17036 $lt_cl_success || as_fn_exit 1
17037
17038 #
17039 #
17040 ac_ext=c
17041 ac_cpp='$CPP $CPPFLAGS'
17042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17045 ac_link="./libtool --mode=link --tag=CC $ac_link"
17046
17047 if test -n "$ac_tool_prefix"; then
17048 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17049 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17051 printf %s "checking for $ac_word... " >&6; }
17052 if test ${ac_cv_prog_PKG_CONFIG+y}
17053 then :
17054 printf %s "(cached) " >&6
17055 else case e in #(
17056 e) if test -n "$PKG_CONFIG"; then
17057 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
17058 else
17059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17060 for as_dir in $PATH
17061 do
17062 IFS=$as_save_IFS
17063 case $as_dir in #(((
17064 '') as_dir=./ ;;
17065 */) ;;
17066 *) as_dir=$as_dir/ ;;
17067 esac
17068 for ac_exec_ext in '' $ac_executable_extensions; do
17069 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17070 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
17071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17072 break 2
17073 fi
17074 done
17075 done
17076 IFS=$as_save_IFS
17077
17078 fi ;;
17079 esac
17080 fi
17081 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
17082 if test -n "$PKG_CONFIG"; then
17083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17084 printf "%s\n" "$PKG_CONFIG" >&6; }
17085 else
17086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17087 printf "%s\n" "no" >&6; }
17088 fi
17089
17090
17091 fi
17092 if test -z "$ac_cv_prog_PKG_CONFIG"; then
17093 ac_ct_PKG_CONFIG=$PKG_CONFIG
17094 # Extract the first word of "pkg-config", so it can be a program name with args.
17095 set dummy pkg-config; ac_word=$2
17096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17097 printf %s "checking for $ac_word... " >&6; }
17098 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
17099 then :
17100 printf %s "(cached) " >&6
17101 else case e in #(
17102 e) if test -n "$ac_ct_PKG_CONFIG"; then
17103 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
17104 else
17105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17106 for as_dir in $PATH
17107 do
17108 IFS=$as_save_IFS
17109 case $as_dir in #(((
17110 '') as_dir=./ ;;
17111 */) ;;
17112 *) as_dir=$as_dir/ ;;
17113 esac
17114 for ac_exec_ext in '' $ac_executable_extensions; do
17115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17116 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
17117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17118 break 2
17119 fi
17120 done
17121 done
17122 IFS=$as_save_IFS
17123
17124 fi ;;
17125 esac
17126 fi
17127 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
17128 if test -n "$ac_ct_PKG_CONFIG"; then
17129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
17130 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
17131 else
17132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17133 printf "%s\n" "no" >&6; }
17134 fi
17135
17136 if test "x$ac_ct_PKG_CONFIG" = x; then
17137 PKG_CONFIG="false"
17138 else
17139 case $cross_compiling:$ac_tool_warned in
17140 yes:)
17141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17142 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17143 ac_tool_warned=yes ;;
17144 esac
17145 PKG_CONFIG=$ac_ct_PKG_CONFIG
17146 fi
17147 else
17148 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
17149 fi
17150
17151 ##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags.
17152 echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=kpathsea, libname=kpathsea, options=lt, tlincl=-IBLD/texk -ISRC/texk, tllib=BLD/texk/kpathsea/libkpathsea.la, tlextra=, rebuildsrcdeps=${top_srcdir}/../kpathsea/*.[ch], rebuildblddeps=${top_builddir}/../kpathsea/paths.h.' >&5
17153 ##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt.
17154
17155 # Check whether --with-system-kpathsea was given.
17156 if test ${with_system_kpathsea+y}
17157 then :
17158 withval=$with_system_kpathsea;
17159 fi
17160 if test "x$with_system_kpathsea" = xyes; then
17161 if $PKG_CONFIG kpathsea; then
17162 KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags`
17163 KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs`
17164 elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then
17165 as_fn_error $? "did not find kpathsea" "$LINENO" 5
17166 fi
17167 else
17168 KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk"
17169 KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la"
17170 KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la'
17171 KPATHSEA_RULE='# Rebuild libkpathsea
17172 $(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h
17173 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild
17174 ${top_builddir}/../kpathsea/paths.h:
17175 cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
17176 fi
17177
17178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
17179 printf %s "checking if libkpathsea supports debugging... " >&6; }
17180 if test ${kpse_cv_kpse_debug+y}
17181 then :
17182 printf %s "(cached) " >&6
17183 else case e in #(
17184 e) eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
17185 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
17186
17187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h. */
17189 #include <kpathsea/kpathsea.h>
17190 int
17191 main (void)
17192 {
17193 FILE *f = fopen("f", "r")
17194 ;
17195 return 0;
17196 }
17197 _ACEOF
17198 if ac_fn_c_try_link "$LINENO"
17199 then :
17200 kpse_cv_kpse_debug=yes
17201 else case e in #(
17202 e) kpse_cv_kpse_debug=no ;;
17203 esac
17204 fi
17205 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17206 conftest$ac_exeext conftest.$ac_ext
17207 CPPFLAGS=$kpse_save_CPPFLAGS
17208 LIBS=$kpse_save_LIBS
17209 ;;
17210 esac
17211 fi
17212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5
17213 printf "%s\n" "$kpse_cv_kpse_debug" >&6; }
17214 if test "x$kpse_cv_kpse_debug" != xyes
17215 then :
17216 KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG"
17217 fi
17218
17219
17220 if test "x$enable_build" != xno || test -f config.force; then
17221
17222 eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\"
17223 eval LIBS=\"$KPATHSEA_LIBS \$LIBS\"
17224
17225 ac_fn_c_check_header_compile "$LINENO" "kpathsea/version.h" "ac_cv_header_kpathsea_version_h" "$ac_includes_default"
17226 if test "x$ac_cv_header_kpathsea_version_h" = xyes
17227 then :
17228
17229 else case e in #(
17230 e) as_fn_error $? "Sorry, kpathsea too old" "$LINENO" 5 ;;
17231 esac
17232 fi
17233
17234 CPPFLAGS=$kpse_save_CPPFLAGS
17235 LIBS=$kpse_save_LIBS
17236
17237
17238 echo timestamp >config.force
17239 fi
17240
17241 do_cweb=$enable_maintainer_mode
17242 if test x"$do_cweb" = xyes; then
17243 for ac_prog in ctangle
17244 do
17245 # Extract the first word of "$ac_prog", so it can be a program name with args.
17246 set dummy $ac_prog; ac_word=$2
17247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17248 printf %s "checking for $ac_word... " >&6; }
17249 if test ${ac_cv_prog_CTANGLE+y}
17250 then :
17251 printf %s "(cached) " >&6
17252 else case e in #(
17253 e) if test -n "$CTANGLE"; then
17254 ac_cv_prog_CTANGLE="$CTANGLE" # Let the user override the test.
17255 else
17256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17257 for as_dir in $PATH
17258 do
17259 IFS=$as_save_IFS
17260 case $as_dir in #(((
17261 '') as_dir=./ ;;
17262 */) ;;
17263 *) as_dir=$as_dir/ ;;
17264 esac
17265 for ac_exec_ext in '' $ac_executable_extensions; do
17266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17267 ac_cv_prog_CTANGLE="$ac_prog"
17268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17269 break 2
17270 fi
17271 done
17272 done
17273 IFS=$as_save_IFS
17274
17275 fi ;;
17276 esac
17277 fi
17278 CTANGLE=$ac_cv_prog_CTANGLE
17279 if test -n "$CTANGLE"; then
17280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CTANGLE" >&5
17281 printf "%s\n" "$CTANGLE" >&6; }
17282 else
17283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17284 printf "%s\n" "no" >&6; }
17285 fi
17286
17287
17288 test -n "$CTANGLE" && break
17289 done
17290 test -n "$CTANGLE" || CTANGLE="none"
17291
17292 for ac_prog in cweave
17293 do
17294 # Extract the first word of "$ac_prog", so it can be a program name with args.
17295 set dummy $ac_prog; ac_word=$2
17296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17297 printf %s "checking for $ac_word... " >&6; }
17298 if test ${ac_cv_prog_CWEAVE+y}
17299 then :
17300 printf %s "(cached) " >&6
17301 else case e in #(
17302 e) if test -n "$CWEAVE"; then
17303 ac_cv_prog_CWEAVE="$CWEAVE" # Let the user override the test.
17304 else
17305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17306 for as_dir in $PATH
17307 do
17308 IFS=$as_save_IFS
17309 case $as_dir in #(((
17310 '') as_dir=./ ;;
17311 */) ;;
17312 *) as_dir=$as_dir/ ;;
17313 esac
17314 for ac_exec_ext in '' $ac_executable_extensions; do
17315 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17316 ac_cv_prog_CWEAVE="$ac_prog"
17317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17318 break 2
17319 fi
17320 done
17321 done
17322 IFS=$as_save_IFS
17323
17324 fi ;;
17325 esac
17326 fi
17327 CWEAVE=$ac_cv_prog_CWEAVE
17328 if test -n "$CWEAVE"; then
17329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CWEAVE" >&5
17330 printf "%s\n" "$CWEAVE" >&6; }
17331 else
17332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17333 printf "%s\n" "no" >&6; }
17334 fi
17335
17336
17337 test -n "$CWEAVE" && break
17338 done
17339 test -n "$CWEAVE" || CWEAVE="none"
17340
17341 for ac_prog in tex
17342 do
17343 # Extract the first word of "$ac_prog", so it can be a program name with args.
17344 set dummy $ac_prog; ac_word=$2
17345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17346 printf %s "checking for $ac_word... " >&6; }
17347 if test ${ac_cv_prog_TEX+y}
17348 then :
17349 printf %s "(cached) " >&6
17350 else case e in #(
17351 e) if test -n "$TEX"; then
17352 ac_cv_prog_TEX="$TEX" # Let the user override the test.
17353 else
17354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17355 for as_dir in $PATH
17356 do
17357 IFS=$as_save_IFS
17358 case $as_dir in #(((
17359 '') as_dir=./ ;;
17360 */) ;;
17361 *) as_dir=$as_dir/ ;;
17362 esac
17363 for ac_exec_ext in '' $ac_executable_extensions; do
17364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17365 ac_cv_prog_TEX="$ac_prog"
17366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17367 break 2
17368 fi
17369 done
17370 done
17371 IFS=$as_save_IFS
17372
17373 fi ;;
17374 esac
17375 fi
17376 TEX=$ac_cv_prog_TEX
17377 if test -n "$TEX"; then
17378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
17379 printf "%s\n" "$TEX" >&6; }
17380 else
17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17382 printf "%s\n" "no" >&6; }
17383 fi
17384
17385
17386 test -n "$TEX" && break
17387 done
17388 test -n "$TEX" || TEX="none"
17389
17390 case :$CTANGLE:$CWEAVE:$TEX: in
17391 *:none:*)
17392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Will not run cweb -- requires ctangle, cweave, and tex." >&5
17393 printf "%s\n" "$as_me: WARNING: Will not run cweb -- requires ctangle, cweave, and tex." >&2;}
17394 do_cweb=no
17395 ;;
17396 esac
17397 fi
17398 if test "x$do_cweb" = xyes; then
17399 do_cweb_TRUE=
17400 do_cweb_FALSE='#'
17401 else
17402 do_cweb_TRUE='#'
17403 do_cweb_FALSE=
17404 fi
17405
17406
17407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5
17408 printf %s "checking for native WIN32 or MINGW32... " >&6; }
17409 if test ${kpse_cv_have_win32+y}
17410 then :
17411 printf %s "(cached) " >&6
17412 else case e in #(
17413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414 /* end confdefs.h. */
17415 #ifndef WIN32
17416 choke me
17417 #endif
17418 int
17419 main (void)
17420 {
17421
17422 ;
17423 return 0;
17424 }
17425 _ACEOF
17426 if ac_fn_c_try_compile "$LINENO"
17427 then :
17428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429 /* end confdefs.h. */
17430 #ifndef __MINGW32__
17431 choke me
17432 #endif
17433 int
17434 main (void)
17435 {
17436
17437 ;
17438 return 0;
17439 }
17440 _ACEOF
17441 if ac_fn_c_try_compile "$LINENO"
17442 then :
17443 kpse_cv_have_win32=mingw32
17444 else case e in #(
17445 e) kpse_cv_have_win32=native ;;
17446 esac
17447 fi
17448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17449 else case e in #(
17450 e) kpse_cv_have_win32=no ;;
17451 esac
17452 fi
17453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17454 esac
17455 fi
17456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5
17457 printf "%s\n" "$kpse_cv_have_win32" >&6; }
17458
17459 if test "x$kpse_cv_have_win32" != xno; then
17460 WIN32_TRUE=
17461 WIN32_FALSE='#'
17462 else
17463 WIN32_TRUE='#'
17464 WIN32_FALSE=
17465 fi
17466
17467
17468
17469 CJKUTILS_TREE=cjkutils-src
17470
17471
17472 ac_config_files="$ac_config_files Makefile"
17473
17474
17475 cat >confcache <<\_ACEOF
17476 # This file is a shell script that caches the results of configure
17477 # tests run on this system so they can be shared between configure
17478 # scripts and configure runs, see configure's option --config-cache.
17479 # It is not useful on other systems. If it contains results you don't
17480 # want to keep, you may remove or edit it.
17481 #
17482 # config.status only pays attention to the cache file if you give it
17483 # the --recheck option to rerun configure.
17484 #
17485 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
17486 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
17487 # following values.
17488
17489 _ACEOF
17490
17491 # The following way of writing the cache mishandles newlines in values,
17492 # but we know of no workaround that is simple, portable, and efficient.
17493 # So, we kill variables containing newlines.
17494 # Ultrix sh set writes to stderr and can't be redirected directly,
17495 # and sets the high bit in the cache file unless we assign to the vars.
17496 (
17497 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17498 eval ac_val=\$$ac_var
17499 case $ac_val in #(
17500 *${as_nl}*)
17501 case $ac_var in #(
17502 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17503 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17504 esac
17505 case $ac_var in #(
17506 _ | IFS | as_nl) ;; #(
17507 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17508 *) { eval $ac_var=; unset $ac_var;} ;;
17509 esac ;;
17510 esac
17511 done
17512
17513 (set) 2>&1 |
17514 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17515 *${as_nl}ac_space=\ *)
17516 # 'set' does not quote correctly, so add quotes: double-quote
17517 # substitution turns \\\\ into \\, and sed turns \\ into \.
17518 sed -n \
17519 "s/'/'\\\\''/g;
17520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17521 ;; #(
17522 *)
17523 # 'set' quotes correctly as required by POSIX, so do not add quotes.
17524 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17525 ;;
17526 esac |
17527 sort
17528 ) |
17529 sed '
17530 /^ac_cv_env_/b end
17531 t clear
17532 :clear
17533 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
17534 t end
17535 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17536 :end' >>confcache
17537 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17538 if test -w "$cache_file"; then
17539 if test "x$cache_file" != "x/dev/null"; then
17540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17541 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
17542 if test ! -f "$cache_file" || test -h "$cache_file"; then
17543 cat confcache >"$cache_file"
17544 else
17545 case $cache_file in #(
17546 */* | ?:*)
17547 mv -f confcache "$cache_file"$$ &&
17548 mv -f "$cache_file"$$ "$cache_file" ;; #(
17549 *)
17550 mv -f confcache "$cache_file" ;;
17551 esac
17552 fi
17553 fi
17554 else
17555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17556 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
17557 fi
17558 fi
17559 rm -f confcache
17560
17561 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17562 # Let make expand exec_prefix.
17563 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17564
17565 DEFS=-DHAVE_CONFIG_H
17566
17567 ac_libobjs=
17568 ac_ltlibobjs=
17569 U=
17570 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17571 # 1. Remove the extension, and $U if already installed.
17572 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17573 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
17574 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17575 # will be set to the directory where LIBOBJS objects are built.
17576 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17577 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17578 done
17579 LIBOBJS=$ac_libobjs
17580
17581 LTLIBOBJS=$ac_ltlibobjs
17582
17583
17584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17585 printf %s "checking that generated files are newer than configure... " >&6; }
17586 if test -n "$am_sleep_pid"; then
17587 # Hide warnings about reused PIDs.
17588 wait $am_sleep_pid 2>/dev/null
17589 fi
17590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
17591 printf "%s\n" "done" >&6; }
17592 case $enable_silent_rules in # (((
17593 yes) AM_DEFAULT_VERBOSITY=0;;
17594 no) AM_DEFAULT_VERBOSITY=1;;
17595 esac
17596 if test $am_cv_make_support_nested_variables = yes; then
17597 AM_V='$(V)'
17598 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17599 else
17600 AM_V=$AM_DEFAULT_VERBOSITY
17601 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17602 fi
17603
17604 if test -n "$EXEEXT"; then
17605 am__EXEEXT_TRUE=
17606 am__EXEEXT_FALSE='#'
17607 else
17608 am__EXEEXT_TRUE='#'
17609 am__EXEEXT_FALSE=
17610 fi
17611
17612 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17613 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17615 fi
17616 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17617 as_fn_error $? "conditional \"AMDEP\" was never defined.
17618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17619 fi
17620 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17621 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17623 fi
17624 # Check whether --enable-year2038 was given.
17625 if test ${enable_year2038+y}
17626 then :
17627 enableval=$enable_year2038;
17628 fi
17629
17630 if test -z "${do_cweb_TRUE}" && test -z "${do_cweb_FALSE}"; then
17631 as_fn_error $? "conditional \"do_cweb\" was never defined.
17632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17633 fi
17634 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
17635 as_fn_error $? "conditional \"WIN32\" was never defined.
17636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17637 fi
17638
17639 : "${CONFIG_STATUS=./config.status}"
17640 ac_write_fail=0
17641 ac_clean_files_save=$ac_clean_files
17642 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17644 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
17645 as_write_fail=0
17646 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17647 #! $SHELL
17648 # Generated by $as_me.
17649 # Run this file to recreate the current configuration.
17650 # Compiler output produced by configure, useful for debugging
17651 # configure, is in config.log if it exists.
17652
17653 debug=false
17654 ac_cs_recheck=false
17655 ac_cs_silent=false
17656
17657 SHELL=\${CONFIG_SHELL-$SHELL}
17658 export SHELL
17659 _ASEOF
17660 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17661 ## -------------------- ##
17662 ## M4sh Initialization. ##
17663 ## -------------------- ##
17664
17665 # Be more Bourne compatible
17666 DUALCASE=1; export DUALCASE # for MKS sh
17667 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
17668 then :
17669 emulate sh
17670 NULLCMD=:
17671 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17672 # is contrary to our usage. Disable this feature.
17673 alias -g '${1+"$@"}'='"$@"'
17674 setopt NO_GLOB_SUBST
17675 else case e in #(
17676 e) case `(set -o) 2>/dev/null` in #(
17677 *posix*) :
17678 set -o posix ;; #(
17679 *) :
17680 ;;
17681 esac ;;
17682 esac
17683 fi
17684
17685
17686
17687 # Reset variables that may have inherited troublesome values from
17688 # the environment.
17689
17690 # IFS needs to be set, to space, tab, and newline, in precisely that order.
17691 # (If _AS_PATH_WALK were called with IFS unset, it would have the
17692 # side effect of setting IFS to empty, thus disabling word splitting.)
17693 # Quoting is to prevent editors from complaining about space-tab.
17694 as_nl='
17695 '
17696 export as_nl
17697 IFS=" "" $as_nl"
17698
17699 PS1='$ '
17700 PS2='> '
17701 PS4='+ '
17702
17703 # Ensure predictable behavior from utilities with locale-dependent output.
17704 LC_ALL=C
17705 export LC_ALL
17706 LANGUAGE=C
17707 export LANGUAGE
17708
17709 # We cannot yet rely on "unset" to work, but we need these variables
17710 # to be unset--not just set to an empty or harmless value--now, to
17711 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
17712 # also avoids known problems related to "unset" and subshell syntax
17713 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
17714 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
17715 do eval test \${$as_var+y} \
17716 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17717 done
17718
17719 # Ensure that fds 0, 1, and 2 are open.
17720 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
17721 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
17722 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
17723
17724 # The user is always right.
17725 if ${PATH_SEPARATOR+false} :; then
17726 PATH_SEPARATOR=:
17727 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17728 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17729 PATH_SEPARATOR=';'
17730 }
17731 fi
17732
17733
17734 # Find who we are. Look in the path if we contain no directory separator.
17735 as_myself=
17736 case $0 in #((
17737 *[\\/]* ) as_myself=$0 ;;
17738 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17739 for as_dir in $PATH
17740 do
17741 IFS=$as_save_IFS
17742 case $as_dir in #(((
17743 '') as_dir=./ ;;
17744 */) ;;
17745 *) as_dir=$as_dir/ ;;
17746 esac
17747 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
17748 done
17749 IFS=$as_save_IFS
17750
17751 ;;
17752 esac
17753 # We did not find ourselves, most probably we were run as 'sh COMMAND'
17754 # in which case we are not to be found in the path.
17755 if test "x$as_myself" = x; then
17756 as_myself=$0
17757 fi
17758 if test ! -f "$as_myself"; then
17759 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17760 exit 1
17761 fi
17762
17763
17764
17765 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17766 # ----------------------------------------
17767 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17768 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17769 # script with STATUS, using 1 if that was 0.
17770 as_fn_error ()
17771 {
17772 as_status=$1; test $as_status -eq 0 && as_status=1
17773 if test "$4"; then
17774 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17776 fi
17777 printf "%s\n" "$as_me: error: $2" >&2
17778 as_fn_exit $as_status
17779 } # as_fn_error
17780
17781
17782 # as_fn_set_status STATUS
17783 # -----------------------
17784 # Set $? to STATUS, without forking.
17785 as_fn_set_status ()
17786 {
17787 return $1
17788 } # as_fn_set_status
17789
17790 # as_fn_exit STATUS
17791 # -----------------
17792 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17793 as_fn_exit ()
17794 {
17795 set +e
17796 as_fn_set_status $1
17797 exit $1
17798 } # as_fn_exit
17799
17800 # as_fn_unset VAR
17801 # ---------------
17802 # Portably unset VAR.
17803 as_fn_unset ()
17804 {
17805 { eval $1=; unset $1;}
17806 }
17807 as_unset=as_fn_unset
17808
17809 # as_fn_append VAR VALUE
17810 # ----------------------
17811 # Append the text in VALUE to the end of the definition contained in VAR. Take
17812 # advantage of any shell optimizations that allow amortized linear growth over
17813 # repeated appends, instead of the typical quadratic growth present in naive
17814 # implementations.
17815 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
17816 then :
17817 eval 'as_fn_append ()
17818 {
17819 eval $1+=\$2
17820 }'
17821 else case e in #(
17822 e) as_fn_append ()
17823 {
17824 eval $1=\$$1\$2
17825 } ;;
17826 esac
17827 fi # as_fn_append
17828
17829 # as_fn_arith ARG...
17830 # ------------------
17831 # Perform arithmetic evaluation on the ARGs, and store the result in the
17832 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17833 # must be portable across $(()) and expr.
17834 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
17835 then :
17836 eval 'as_fn_arith ()
17837 {
17838 as_val=$(( $* ))
17839 }'
17840 else case e in #(
17841 e) as_fn_arith ()
17842 {
17843 as_val=`expr "$@" || test $? -eq 1`
17844 } ;;
17845 esac
17846 fi # as_fn_arith
17847
17848
17849 if expr a : '\(a\)' >/dev/null 2>&1 &&
17850 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17851 as_expr=expr
17852 else
17853 as_expr=false
17854 fi
17855
17856 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17857 as_basename=basename
17858 else
17859 as_basename=false
17860 fi
17861
17862 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17863 as_dirname=dirname
17864 else
17865 as_dirname=false
17866 fi
17867
17868 as_me=`$as_basename -- "$0" ||
17869 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17870 X"$0" : 'X\(//\)$' \| \
17871 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17872 printf "%s\n" X/"$0" |
17873 sed '/^.*\/\([^/][^/]*\)\/*$/{
17874 s//\1/
17875 q
17876 }
17877 /^X\/\(\/\/\)$/{
17878 s//\1/
17879 q
17880 }
17881 /^X\/\(\/\).*/{
17882 s//\1/
17883 q
17884 }
17885 s/.*/./; q'`
17886
17887 # Avoid depending upon Character Ranges.
17888 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17889 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17890 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17891 as_cr_digits='0123456789'
17892 as_cr_alnum=$as_cr_Letters$as_cr_digits
17893
17894
17895 # Determine whether it's possible to make 'echo' print without a newline.
17896 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
17897 # for compatibility with existing Makefiles.
17898 ECHO_C= ECHO_N= ECHO_T=
17899 case `echo -n x` in #(((((
17900 -n*)
17901 case `echo 'xy\c'` in
17902 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17903 xy) ECHO_C='\c';;
17904 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17905 ECHO_T=' ';;
17906 esac;;
17907 *)
17908 ECHO_N='-n';;
17909 esac
17910
17911 # For backward compatibility with old third-party macros, we provide
17912 # the shell variables $as_echo and $as_echo_n. New code should use
17913 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
17914 as_echo='printf %s\n'
17915 as_echo_n='printf %s'
17916
17917 rm -f conf$$ conf$$.exe conf$$.file
17918 if test -d conf$$.dir; then
17919 rm -f conf$$.dir/conf$$.file
17920 else
17921 rm -f conf$$.dir
17922 mkdir conf$$.dir 2>/dev/null
17923 fi
17924 if (echo >conf$$.file) 2>/dev/null; then
17925 if ln -s conf$$.file conf$$ 2>/dev/null; then
17926 as_ln_s='ln -s'
17927 # ... but there are two gotchas:
17928 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
17929 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
17930 # In both cases, we have to default to 'cp -pR'.
17931 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17932 as_ln_s='cp -pR'
17933 elif ln conf$$.file conf$$ 2>/dev/null; then
17934 as_ln_s=ln
17935 else
17936 as_ln_s='cp -pR'
17937 fi
17938 else
17939 as_ln_s='cp -pR'
17940 fi
17941 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17942 rmdir conf$$.dir 2>/dev/null
17943
17944
17945 # as_fn_mkdir_p
17946 # -------------
17947 # Create "$as_dir" as a directory, including parents if necessary.
17948 as_fn_mkdir_p ()
17949 {
17950
17951 case $as_dir in #(
17952 -*) as_dir=./$as_dir;;
17953 esac
17954 test -d "$as_dir" || eval $as_mkdir_p || {
17955 as_dirs=
17956 while :; do
17957 case $as_dir in #(
17958 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17959 *) as_qdir=$as_dir;;
17960 esac
17961 as_dirs="'$as_qdir' $as_dirs"
17962 as_dir=`$as_dirname -- "$as_dir" ||
17963 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17964 X"$as_dir" : 'X\(//\)[^/]' \| \
17965 X"$as_dir" : 'X\(//\)$' \| \
17966 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17967 printf "%s\n" X"$as_dir" |
17968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17969 s//\1/
17970 q
17971 }
17972 /^X\(\/\/\)[^/].*/{
17973 s//\1/
17974 q
17975 }
17976 /^X\(\/\/\)$/{
17977 s//\1/
17978 q
17979 }
17980 /^X\(\/\).*/{
17981 s//\1/
17982 q
17983 }
17984 s/.*/./; q'`
17985 test -d "$as_dir" && break
17986 done
17987 test -z "$as_dirs" || eval "mkdir $as_dirs"
17988 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17989
17990
17991 } # as_fn_mkdir_p
17992 if mkdir -p . 2>/dev/null; then
17993 as_mkdir_p='mkdir -p "$as_dir"'
17994 else
17995 test -d ./-p && rmdir ./-p
17996 as_mkdir_p=false
17997 fi
17998
17999
18000 # as_fn_executable_p FILE
18001 # -----------------------
18002 # Test if FILE is an executable regular file.
18003 as_fn_executable_p ()
18004 {
18005 test -f "$1" && test -x "$1"
18006 } # as_fn_executable_p
18007 as_test_x='test -x'
18008 as_executable_p=as_fn_executable_p
18009
18010 # Sed expression to map a string onto a valid CPP name.
18011 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18012 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
18013
18014 # Sed expression to map a string onto a valid variable name.
18015 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18016 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
18017
18018
18019 exec 6>&1
18020 ## ----------------------------------- ##
18021 ## Main body of $CONFIG_STATUS script. ##
18022 ## ----------------------------------- ##
18023 _ASEOF
18024 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18025
18026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18027 # Save the log message, to keep $0 and so on meaningful, and to
18028 # report actual input values of CONFIG_FILES etc. instead of their
18029 # values after options handling.
18030 ac_log="
18031 This file was extended by CJK utils (TeX Live) $as_me 4.8.5, which was
18032 generated by GNU Autoconf 2.72. Invocation command line was
18033
18034 CONFIG_FILES = $CONFIG_FILES
18035 CONFIG_HEADERS = $CONFIG_HEADERS
18036 CONFIG_LINKS = $CONFIG_LINKS
18037 CONFIG_COMMANDS = $CONFIG_COMMANDS
18038 $ $0 $@
18039
18040 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18041 "
18042
18043 _ACEOF
18044
18045 case $ac_config_files in *"
18046 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18047 esac
18048
18049 case $ac_config_headers in *"
18050 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18051 esac
18052
18053
18054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18055 # Files that config.status was made for.
18056 config_files="$ac_config_files"
18057 config_headers="$ac_config_headers"
18058 config_commands="$ac_config_commands"
18059
18060 _ACEOF
18061
18062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18063 ac_cs_usage="\
18064 '$as_me' instantiates files and other configuration actions
18065 from templates according to the current configuration. Unless the files
18066 and actions are specified as TAGs, all are instantiated by default.
18067
18068 Usage: $0 [OPTION]... [TAG]...
18069
18070 -h, --help print this help, then exit
18071 -V, --version print version number and configuration settings, then exit
18072 --config print configuration, then exit
18073 -q, --quiet, --silent
18074 do not print progress messages
18075 -d, --debug don't remove temporary files
18076 --recheck update $as_me by reconfiguring in the same conditions
18077 --file=FILE[:TEMPLATE]
18078 instantiate the configuration file FILE
18079 --header=FILE[:TEMPLATE]
18080 instantiate the configuration header FILE
18081
18082 Configuration files:
18083 $config_files
18084
18085 Configuration headers:
18086 $config_headers
18087
18088 Configuration commands:
18089 $config_commands
18090
18091 Report bugs to <[email protected]>."
18092
18093 _ACEOF
18094 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18095 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18097 ac_cs_config='$ac_cs_config_escaped'
18098 ac_cs_version="\\
18099 CJK utils (TeX Live) config.status 4.8.5
18100 configured by $0, generated by GNU Autoconf 2.72,
18101 with options \\"\$ac_cs_config\\"
18102
18103 Copyright (C) 2023 Free Software Foundation, Inc.
18104 This config.status script is free software; the Free Software Foundation
18105 gives unlimited permission to copy, distribute and modify it."
18106
18107 ac_pwd='$ac_pwd'
18108 srcdir='$srcdir'
18109 INSTALL='$INSTALL'
18110 MKDIR_P='$MKDIR_P'
18111 AWK='$AWK'
18112 test -n "\$AWK" || AWK=awk
18113 _ACEOF
18114
18115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18116 # The default lists apply if the user does not specify any file.
18117 ac_need_defaults=:
18118 while test $# != 0
18119 do
18120 case $1 in
18121 --*=?*)
18122 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18123 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18124 ac_shift=:
18125 ;;
18126 --*=)
18127 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18128 ac_optarg=
18129 ac_shift=:
18130 ;;
18131 *)
18132 ac_option=$1
18133 ac_optarg=$2
18134 ac_shift=shift
18135 ;;
18136 esac
18137
18138 case $ac_option in
18139 # Handling of the options.
18140 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18141 ac_cs_recheck=: ;;
18142 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18143 printf "%s\n" "$ac_cs_version"; exit ;;
18144 --config | --confi | --conf | --con | --co | --c )
18145 printf "%s\n" "$ac_cs_config"; exit ;;
18146 --debug | --debu | --deb | --de | --d | -d )
18147 debug=: ;;
18148 --file | --fil | --fi | --f )
18149 $ac_shift
18150 case $ac_optarg in
18151 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18152 '') as_fn_error $? "missing file argument" ;;
18153 esac
18154 as_fn_append CONFIG_FILES " '$ac_optarg'"
18155 ac_need_defaults=false;;
18156 --header | --heade | --head | --hea )
18157 $ac_shift
18158 case $ac_optarg in
18159 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18160 esac
18161 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18162 ac_need_defaults=false;;
18163 --he | --h)
18164 # Conflict between --help and --header
18165 as_fn_error $? "ambiguous option: '$1'
18166 Try '$0 --help' for more information.";;
18167 --help | --hel | -h )
18168 printf "%s\n" "$ac_cs_usage"; exit ;;
18169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18170 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18171 ac_cs_silent=: ;;
18172
18173 # This is an error.
18174 -*) as_fn_error $? "unrecognized option: '$1'
18175 Try '$0 --help' for more information." ;;
18176
18177 *) as_fn_append ac_config_targets " $1"
18178 ac_need_defaults=false ;;
18179
18180 esac
18181 shift
18182 done
18183
18184 ac_configure_extra_args=
18185
18186 if $ac_cs_silent; then
18187 exec 6>/dev/null
18188 ac_configure_extra_args="$ac_configure_extra_args --silent"
18189 fi
18190
18191 _ACEOF
18192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18193 if \$ac_cs_recheck; then
18194 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18195 shift
18196 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
18197 CONFIG_SHELL='$SHELL'
18198 export CONFIG_SHELL
18199 exec "\$@"
18200 fi
18201
18202 _ACEOF
18203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18204 exec 5>>config.log
18205 {
18206 echo
18207 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18208 ## Running $as_me. ##
18209 _ASBOX
18210 printf "%s\n" "$ac_log"
18211 } >&5
18212
18213 _ACEOF
18214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18215 #
18216 # INIT-COMMANDS
18217 #
18218 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18219
18220
18221 # The HP-UX ksh and POSIX shell print the target directory to stdout
18222 # if CDPATH is set.
18223 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18224
18225 sed_quote_subst='$sed_quote_subst'
18226 double_quote_subst='$double_quote_subst'
18227 delay_variable_subst='$delay_variable_subst'
18228 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18229 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18230 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18231 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18232 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18233 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18234 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18235 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18236 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18237 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18238 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18239 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18240 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18241 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18242 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18243 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18244 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18245 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18246 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18247 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18248 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18249 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18250 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18251 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18252 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18253 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18254 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18255 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18256 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18257 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18258 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18259 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18260 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18261 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18262 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18263 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18264 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18265 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
18266 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18267 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18268 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18269 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18270 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18271 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18272 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
18273 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18274 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18275 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18276 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18277 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18278 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18279 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18280 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18281 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18282 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18283 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18284 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18285 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18286 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18287 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18288 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18289 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"`'
18290 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18291 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18292 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18293 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18294 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18295 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18296 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18297 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18298 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18299 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18300 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18301 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18302 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18303 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18304 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18305 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18306 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18307 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18308 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18309 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18310 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18311 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18312 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18313 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18314 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18315 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18316 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18317 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18318 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18319 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18320 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18321 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18322 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18323 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18324 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18325 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18326 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18327 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18328 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18329 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18330 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18331 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18332 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18333 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18334 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18335 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18336 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18337 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18338 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18339 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18340 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18341 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18342 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18343 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18344 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18345 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18346 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18347 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18348 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18349 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18350 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18351 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18352 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18353 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18354 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18355 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18356 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18357 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18358 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18359 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18360 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18361 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18362 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18363 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18364 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18365 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18366
18367 LTCC='$LTCC'
18368 LTCFLAGS='$LTCFLAGS'
18369 compiler='$compiler_DEFAULT'
18370
18371 # A function that is used when there is no print builtin or printf.
18372 func_fallback_echo ()
18373 {
18374 eval 'cat <<_LTECHO_EOF
18375 \$1
18376 _LTECHO_EOF'
18377 }
18378
18379 # Quote evaled strings.
18380 for var in AS \
18381 DLLTOOL \
18382 OBJDUMP \
18383 SHELL \
18384 ECHO \
18385 PATH_SEPARATOR \
18386 SED \
18387 GREP \
18388 EGREP \
18389 FGREP \
18390 LD \
18391 NM \
18392 LN_S \
18393 lt_SP2NL \
18394 lt_NL2SP \
18395 reload_flag \
18396 FILECMD \
18397 deplibs_check_method \
18398 file_magic_cmd \
18399 file_magic_glob \
18400 want_nocaseglob \
18401 sharedlib_from_linklib_cmd \
18402 AR \
18403 archiver_list_spec \
18404 STRIP \
18405 RANLIB \
18406 CC \
18407 CFLAGS \
18408 compiler \
18409 lt_cv_sys_global_symbol_pipe \
18410 lt_cv_sys_global_symbol_to_cdecl \
18411 lt_cv_sys_global_symbol_to_import \
18412 lt_cv_sys_global_symbol_to_c_name_address \
18413 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18414 lt_cv_nm_interface \
18415 nm_file_list_spec \
18416 lt_cv_truncate_bin \
18417 lt_prog_compiler_no_builtin_flag \
18418 lt_prog_compiler_pic \
18419 lt_prog_compiler_wl \
18420 lt_prog_compiler_static \
18421 lt_cv_prog_compiler_c_o \
18422 need_locks \
18423 MANIFEST_TOOL \
18424 DSYMUTIL \
18425 NMEDIT \
18426 LIPO \
18427 OTOOL \
18428 OTOOL64 \
18429 shrext_cmds \
18430 export_dynamic_flag_spec \
18431 whole_archive_flag_spec \
18432 compiler_needs_object \
18433 with_gnu_ld \
18434 allow_undefined_flag \
18435 no_undefined_flag \
18436 hardcode_libdir_flag_spec \
18437 hardcode_libdir_separator \
18438 exclude_expsyms \
18439 include_expsyms \
18440 file_list_spec \
18441 variables_saved_for_relink \
18442 libname_spec \
18443 library_names_spec \
18444 soname_spec \
18445 install_override_mode \
18446 finish_eval \
18447 old_striplib \
18448 striplib; do
18449 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18450 *[\\\\\\\`\\"\\\$]*)
18451 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18452 ;;
18453 *)
18454 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18455 ;;
18456 esac
18457 done
18458
18459 # Double-quote double-evaled strings.
18460 for var in reload_cmds \
18461 old_postinstall_cmds \
18462 old_postuninstall_cmds \
18463 old_archive_cmds \
18464 extract_expsyms_cmds \
18465 old_archive_from_new_cmds \
18466 old_archive_from_expsyms_cmds \
18467 archive_cmds \
18468 archive_expsym_cmds \
18469 module_cmds \
18470 module_expsym_cmds \
18471 export_symbols_cmds \
18472 prelink_cmds \
18473 postlink_cmds \
18474 postinstall_cmds \
18475 postuninstall_cmds \
18476 finish_cmds \
18477 sys_lib_search_path_spec \
18478 configure_time_dlsearch_path \
18479 configure_time_lt_sys_library_path; do
18480 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18481 *[\\\\\\\`\\"\\\$]*)
18482 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18483 ;;
18484 *)
18485 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18486 ;;
18487 esac
18488 done
18489
18490 ac_aux_dir='$ac_aux_dir'
18491
18492 # See if we are running on zsh, and set the options that allow our
18493 # commands through without removal of \ escapes INIT.
18494 if test -n "\${ZSH_VERSION+set}"; then
18495 setopt NO_GLOB_SUBST
18496 fi
18497
18498
18499 PACKAGE='$PACKAGE'
18500 VERSION='$VERSION'
18501 RM='$RM'
18502 ofile='$ofile'
18503
18504 ac_aux_dir='$ac_aux_dir'
18505
18506
18507
18508 _ACEOF
18509
18510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18511
18512 # Handling of arguments.
18513 for ac_config_target in $ac_config_targets
18514 do
18515 case $ac_config_target in
18516 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18517 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18518 "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
18519 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18520
18521 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
18522 esac
18523 done
18524
18525
18526 # If the user did not use the arguments to specify the items to instantiate,
18527 # then the envvar interface is used. Set only those that are not.
18528 # We use the long form for the default assignment because of an extremely
18529 # bizarre bug on SunOS 4.1.3.
18530 if $ac_need_defaults; then
18531 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
18532 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
18533 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
18534 fi
18535
18536 # Have a temporary directory for convenience. Make it in the build tree
18537 # simply because there is no reason against having it here, and in addition,
18538 # creating and moving files from /tmp can sometimes cause problems.
18539 # Hook for its removal unless debugging.
18540 # Note that there is a small window in which the directory will not be cleaned:
18541 # after its creation but before its name has been assigned to '$tmp'.
18542 $debug ||
18543 {
18544 tmp= ac_tmp=
18545 trap 'exit_status=$?
18546 : "${ac_tmp:=$tmp}"
18547 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18548 ' 0
18549 trap 'as_fn_exit 1' 1 2 13 15
18550 }
18551 # Create a (secure) tmp directory for tmp files.
18552
18553 {
18554 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18555 test -d "$tmp"
18556 } ||
18557 {
18558 tmp=./conf$$-$RANDOM
18559 (umask 077 && mkdir "$tmp")
18560 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18561 ac_tmp=$tmp
18562
18563 # Set up the scripts for CONFIG_FILES section.
18564 # No need to generate them if there are no CONFIG_FILES.
18565 # This happens for instance with './config.status config.h'.
18566 if test -n "$CONFIG_FILES"; then
18567
18568
18569 ac_cr=`echo X | tr X '\015'`
18570 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18571 # But we know of no other shell where ac_cr would be empty at this
18572 # point, so we can use a bashism as a fallback.
18573 if test "x$ac_cr" = x; then
18574 eval ac_cr=\$\'\\r\'
18575 fi
18576 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18577 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18578 ac_cs_awk_cr='\\r'
18579 else
18580 ac_cs_awk_cr=$ac_cr
18581 fi
18582
18583 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18584 _ACEOF
18585
18586
18587 {
18588 echo "cat >conf$$subs.awk <<_ACEOF" &&
18589 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18590 echo "_ACEOF"
18591 } >conf$$subs.sh ||
18592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18593 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18594 ac_delim='%!_!# '
18595 for ac_last_try in false false false false false :; do
18596 . ./conf$$subs.sh ||
18597 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18598
18599 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18600 if test $ac_delim_n = $ac_delim_num; then
18601 break
18602 elif $ac_last_try; then
18603 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18604 else
18605 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18606 fi
18607 done
18608 rm -f conf$$subs.sh
18609
18610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18611 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18612 _ACEOF
18613 sed -n '
18614 h
18615 s/^/S["/; s/!.*/"]=/
18616 p
18617 g
18618 s/^[^!]*!//
18619 :repl
18620 t repl
18621 s/'"$ac_delim"'$//
18622 t delim
18623 :nl
18624 h
18625 s/\(.\{148\}\)..*/\1/
18626 t more1
18627 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18628 p
18629 n
18630 b repl
18631 :more1
18632 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18633 p
18634 g
18635 s/.\{148\}//
18636 t nl
18637 :delim
18638 h
18639 s/\(.\{148\}\)..*/\1/
18640 t more2
18641 s/["\\]/\\&/g; s/^/"/; s/$/"/
18642 p
18643 b
18644 :more2
18645 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18646 p
18647 g
18648 s/.\{148\}//
18649 t delim
18650 ' <conf$$subs.awk | sed '
18651 /^[^""]/{
18652 N
18653 s/\n//
18654 }
18655 ' >>$CONFIG_STATUS || ac_write_fail=1
18656 rm -f conf$$subs.awk
18657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18658 _ACAWK
18659 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18660 for (key in S) S_is_set[key] = 1
18661 FS = ""
18662
18663 }
18664 {
18665 line = $ 0
18666 nfields = split(line, field, "@")
18667 substed = 0
18668 len = length(field[1])
18669 for (i = 2; i < nfields; i++) {
18670 key = field[i]
18671 keylen = length(key)
18672 if (S_is_set[key]) {
18673 value = S[key]
18674 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18675 len += length(value) + length(field[++i])
18676 substed = 1
18677 } else
18678 len += 1 + keylen
18679 }
18680
18681 print line
18682 }
18683
18684 _ACAWK
18685 _ACEOF
18686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18687 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18688 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18689 else
18690 cat
18691 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18692 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18693 _ACEOF
18694
18695 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18696 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18697 # trailing colons and then remove the whole line if VPATH becomes empty
18698 # (actually we leave an empty line to preserve line numbers).
18699 if test "x$srcdir" = x.; then
18700 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18701 h
18702 s///
18703 s/^/:/
18704 s/[ ]*$/:/
18705 s/:\$(srcdir):/:/g
18706 s/:\${srcdir}:/:/g
18707 s/:@srcdir@:/:/g
18708 s/^:*//
18709 s/:*$//
18710 x
18711 s/\(=[ ]*\).*/\1/
18712 G
18713 s/\n//
18714 s/^[^=]*=[ ]*$//
18715 }'
18716 fi
18717
18718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18719 fi # test -n "$CONFIG_FILES"
18720
18721 # Set up the scripts for CONFIG_HEADERS section.
18722 # No need to generate them if there are no CONFIG_HEADERS.
18723 # This happens for instance with './config.status Makefile'.
18724 if test -n "$CONFIG_HEADERS"; then
18725 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18726 BEGIN {
18727 _ACEOF
18728
18729 # Transform confdefs.h into an awk script 'defines.awk', embedded as
18730 # here-document in config.status, that substitutes the proper values into
18731 # config.h.in to produce config.h.
18732
18733 # Create a delimiter string that does not exist in confdefs.h, to ease
18734 # handling of long lines.
18735 ac_delim='%!_!# '
18736 for ac_last_try in false false :; do
18737 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18738 if test -z "$ac_tt"; then
18739 break
18740 elif $ac_last_try; then
18741 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18742 else
18743 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18744 fi
18745 done
18746
18747 # For the awk script, D is an array of macro values keyed by name,
18748 # likewise P contains macro parameters if any. Preserve backslash
18749 # newline sequences.
18750
18751 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18752 sed -n '
18753 s/.\{148\}/&'"$ac_delim"'/g
18754 t rset
18755 :rset
18756 s/^[ ]*#[ ]*define[ ][ ]*/ /
18757 t def
18758 d
18759 :def
18760 s/\\$//
18761 t bsnl
18762 s/["\\]/\\&/g
18763 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18764 D["\1"]=" \3"/p
18765 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18766 d
18767 :bsnl
18768 s/["\\]/\\&/g
18769 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18770 D["\1"]=" \3\\\\\\n"\\/p
18771 t cont
18772 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18773 t cont
18774 d
18775 :cont
18776 n
18777 s/.\{148\}/&'"$ac_delim"'/g
18778 t clear
18779 :clear
18780 s/\\$//
18781 t bsnlc
18782 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18783 d
18784 :bsnlc
18785 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18786 b cont
18787 ' <confdefs.h | sed '
18788 s/'"$ac_delim"'/"\\\
18789 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18790
18791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18792 for (key in D) D_is_set[key] = 1
18793 FS = ""
18794 }
18795 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18796 line = \$ 0
18797 split(line, arg, " ")
18798 if (arg[1] == "#") {
18799 defundef = arg[2]
18800 mac1 = arg[3]
18801 } else {
18802 defundef = substr(arg[1], 2)
18803 mac1 = arg[2]
18804 }
18805 split(mac1, mac2, "(") #)
18806 macro = mac2[1]
18807 prefix = substr(line, 1, index(line, defundef) - 1)
18808 if (D_is_set[macro]) {
18809 # Preserve the white space surrounding the "#".
18810 print prefix "define", macro P[macro] D[macro]
18811 next
18812 } else {
18813 # Replace #undef with comments. This is necessary, for example,
18814 # in the case of _POSIX_SOURCE, which is predefined and required
18815 # on some systems where configure will not decide to define it.
18816 if (defundef == "undef") {
18817 print "/*", prefix defundef, macro, "*/"
18818 next
18819 }
18820 }
18821 }
18822 { print }
18823 _ACAWK
18824 _ACEOF
18825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18826 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18827 fi # test -n "$CONFIG_HEADERS"
18828
18829
18830 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18831 shift
18832 for ac_tag
18833 do
18834 case $ac_tag in
18835 :[FHLC]) ac_mode=$ac_tag; continue;;
18836 esac
18837 case $ac_mode$ac_tag in
18838 :[FHL]*:*);;
18839 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
18840 :[FH]-) ac_tag=-:-;;
18841 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18842 esac
18843 ac_save_IFS=$IFS
18844 IFS=:
18845 set x $ac_tag
18846 IFS=$ac_save_IFS
18847 shift
18848 ac_file=$1
18849 shift
18850
18851 case $ac_mode in
18852 :L) ac_source=$1;;
18853 :[FH])
18854 ac_file_inputs=
18855 for ac_f
18856 do
18857 case $ac_f in
18858 -) ac_f="$ac_tmp/stdin";;
18859 *) # Look for the file first in the build tree, then in the source tree
18860 # (if the path is not absolute). The absolute path cannot be DOS-style,
18861 # because $ac_f cannot contain ':'.
18862 test -f "$ac_f" ||
18863 case $ac_f in
18864 [\\/$]*) false;;
18865 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18866 esac ||
18867 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
18868 esac
18869 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18870 as_fn_append ac_file_inputs " '$ac_f'"
18871 done
18872
18873 # Let's still pretend it is 'configure' which instantiates (i.e., don't
18874 # use $as_me), people would be surprised to read:
18875 # /* config.h. Generated by config.status. */
18876 configure_input='Generated from '`
18877 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18878 `' by configure.'
18879 if test x"$ac_file" != x-; then
18880 configure_input="$ac_file. $configure_input"
18881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18882 printf "%s\n" "$as_me: creating $ac_file" >&6;}
18883 fi
18884 # Neutralize special characters interpreted by sed in replacement strings.
18885 case $configure_input in #(
18886 *\&* | *\|* | *\\* )
18887 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
18888 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18889 *) ac_sed_conf_input=$configure_input;;
18890 esac
18891
18892 case $ac_tag in
18893 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18895 esac
18896 ;;
18897 esac
18898
18899 ac_dir=`$as_dirname -- "$ac_file" ||
18900 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18901 X"$ac_file" : 'X\(//\)[^/]' \| \
18902 X"$ac_file" : 'X\(//\)$' \| \
18903 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18904 printf "%s\n" X"$ac_file" |
18905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18906 s//\1/
18907 q
18908 }
18909 /^X\(\/\/\)[^/].*/{
18910 s//\1/
18911 q
18912 }
18913 /^X\(\/\/\)$/{
18914 s//\1/
18915 q
18916 }
18917 /^X\(\/\).*/{
18918 s//\1/
18919 q
18920 }
18921 s/.*/./; q'`
18922 as_dir="$ac_dir"; as_fn_mkdir_p
18923 ac_builddir=.
18924
18925 case "$ac_dir" in
18926 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18927 *)
18928 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18929 # A ".." for each directory in $ac_dir_suffix.
18930 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18931 case $ac_top_builddir_sub in
18932 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18933 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18934 esac ;;
18935 esac
18936 ac_abs_top_builddir=$ac_pwd
18937 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18938 # for backward compatibility:
18939 ac_top_builddir=$ac_top_build_prefix
18940
18941 case $srcdir in
18942 .) # We are building in place.
18943 ac_srcdir=.
18944 ac_top_srcdir=$ac_top_builddir_sub
18945 ac_abs_top_srcdir=$ac_pwd ;;
18946 [\\/]* | ?:[\\/]* ) # Absolute name.
18947 ac_srcdir=$srcdir$ac_dir_suffix;
18948 ac_top_srcdir=$srcdir
18949 ac_abs_top_srcdir=$srcdir ;;
18950 *) # Relative name.
18951 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18952 ac_top_srcdir=$ac_top_build_prefix$srcdir
18953 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18954 esac
18955 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18956
18957
18958 case $ac_mode in
18959 :F)
18960 #
18961 # CONFIG_FILE
18962 #
18963
18964 case $INSTALL in
18965 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18966 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18967 esac
18968 ac_MKDIR_P=$MKDIR_P
18969 case $MKDIR_P in
18970 [\\/$]* | ?:[\\/]* ) ;;
18971 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18972 esac
18973 _ACEOF
18974
18975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18976 # If the template does not know about datarootdir, expand it.
18977 # FIXME: This hack should be removed a few years after 2.60.
18978 ac_datarootdir_hack=; ac_datarootdir_seen=
18979 ac_sed_dataroot='
18980 /datarootdir/ {
18981 p
18982 q
18983 }
18984 /@datadir@/p
18985 /@docdir@/p
18986 /@infodir@/p
18987 /@localedir@/p
18988 /@mandir@/p'
18989 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18990 *datarootdir*) ac_datarootdir_seen=yes;;
18991 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18993 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18994 _ACEOF
18995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18996 ac_datarootdir_hack='
18997 s&@datadir@&$datadir&g
18998 s&@docdir@&$docdir&g
18999 s&@infodir@&$infodir&g
19000 s&@localedir@&$localedir&g
19001 s&@mandir@&$mandir&g
19002 s&\\\${datarootdir}&$datarootdir&g' ;;
19003 esac
19004 _ACEOF
19005
19006 # Neutralize VPATH when '$srcdir' = '.'.
19007 # Shell code in configure.ac might set extrasub.
19008 # FIXME: do we really want to maintain this feature?
19009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19010 ac_sed_extra="$ac_vpsub
19011 $extrasub
19012 _ACEOF
19013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19014 :t
19015 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19016 s|@configure_input@|$ac_sed_conf_input|;t t
19017 s&@top_builddir@&$ac_top_builddir_sub&;t t
19018 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19019 s&@srcdir@&$ac_srcdir&;t t
19020 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19021 s&@top_srcdir@&$ac_top_srcdir&;t t
19022 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19023 s&@builddir@&$ac_builddir&;t t
19024 s&@abs_builddir@&$ac_abs_builddir&;t t
19025 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19026 s&@INSTALL@&$ac_INSTALL&;t t
19027 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19028 $ac_datarootdir_hack
19029 "
19030 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19031 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19032
19033 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19034 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19035 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19036 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19038 which seems to be undefined. Please make sure it is defined" >&5
19039 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19040 which seems to be undefined. Please make sure it is defined" >&2;}
19041
19042 rm -f "$ac_tmp/stdin"
19043 case $ac_file in
19044 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19045 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19046 esac \
19047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19048 ;;
19049 :H)
19050 #
19051 # CONFIG_HEADER
19052 #
19053 if test x"$ac_file" != x-; then
19054 {
19055 printf "%s\n" "/* $configure_input */" >&1 \
19056 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19057 } >"$ac_tmp/config.h" \
19058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19059 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19061 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19062 else
19063 rm -f "$ac_file"
19064 mv "$ac_tmp/config.h" "$ac_file" \
19065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19066 fi
19067 else
19068 printf "%s\n" "/* $configure_input */" >&1 \
19069 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19070 || as_fn_error $? "could not create -" "$LINENO" 5
19071 fi
19072 # Compute "$ac_file"'s index in $config_headers.
19073 _am_arg="$ac_file"
19074 _am_stamp_count=1
19075 for _am_header in $config_headers :; do
19076 case $_am_header in
19077 $_am_arg | $_am_arg:* )
19078 break ;;
19079 * )
19080 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19081 esac
19082 done
19083 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19084 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19085 X"$_am_arg" : 'X\(//\)[^/]' \| \
19086 X"$_am_arg" : 'X\(//\)$' \| \
19087 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19088 printf "%s\n" X"$_am_arg" |
19089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19090 s//\1/
19091 q
19092 }
19093 /^X\(\/\/\)[^/].*/{
19094 s//\1/
19095 q
19096 }
19097 /^X\(\/\/\)$/{
19098 s//\1/
19099 q
19100 }
19101 /^X\(\/\).*/{
19102 s//\1/
19103 q
19104 }
19105 s/.*/./; q'`/stamp-h$_am_stamp_count
19106 ;;
19107
19108 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19109 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19110 ;;
19111 esac
19112
19113
19114 case $ac_file$ac_mode in
19115 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19116 # Older Autoconf quotes --file arguments for eval, but not when files
19117 # are listed without --file. Let's play safe and only enable the eval
19118 # if we detect the quoting.
19119 # TODO: see whether this extra hack can be removed once we start
19120 # requiring Autoconf 2.70 or later.
19121 case $CONFIG_FILES in #(
19122 *\'*) :
19123 eval set x "$CONFIG_FILES" ;; #(
19124 *) :
19125 set x $CONFIG_FILES ;; #(
19126 *) :
19127 ;;
19128 esac
19129 shift
19130 # Used to flag and report bootstrapping failures.
19131 am_rc=0
19132 for am_mf
19133 do
19134 # Strip MF so we end up with the name of the file.
19135 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
19136 # Check whether this is an Automake generated Makefile which includes
19137 # dependency-tracking related rules and includes.
19138 # Grep'ing the whole file directly is not great: AIX grep has a line
19139 # limit of 2048, but all sed's we know have understand at least 4000.
19140 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19141 || continue
19142 am_dirpart=`$as_dirname -- "$am_mf" ||
19143 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19144 X"$am_mf" : 'X\(//\)[^/]' \| \
19145 X"$am_mf" : 'X\(//\)$' \| \
19146 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19147 printf "%s\n" X"$am_mf" |
19148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19149 s//\1/
19150 q
19151 }
19152 /^X\(\/\/\)[^/].*/{
19153 s//\1/
19154 q
19155 }
19156 /^X\(\/\/\)$/{
19157 s//\1/
19158 q
19159 }
19160 /^X\(\/\).*/{
19161 s//\1/
19162 q
19163 }
19164 s/.*/./; q'`
19165 am_filepart=`$as_basename -- "$am_mf" ||
19166 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19167 X"$am_mf" : 'X\(//\)$' \| \
19168 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19169 printf "%s\n" X/"$am_mf" |
19170 sed '/^.*\/\([^/][^/]*\)\/*$/{
19171 s//\1/
19172 q
19173 }
19174 /^X\/\(\/\/\)$/{
19175 s//\1/
19176 q
19177 }
19178 /^X\/\(\/\).*/{
19179 s//\1/
19180 q
19181 }
19182 s/.*/./; q'`
19183 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19184 && sed -e '/# am--include-marker/d' "$am_filepart" \
19185 | $MAKE -f - am--depfiles" >&5
19186 (cd "$am_dirpart" \
19187 && sed -e '/# am--include-marker/d' "$am_filepart" \
19188 | $MAKE -f - am--depfiles) >&5 2>&5
19189 ac_status=$?
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } || am_rc=$?
19192 done
19193 if test $am_rc -ne 0; then
19194 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19195 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19196 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19197 for automatic dependency tracking. If GNU make was not used, consider
19198 re-running the configure script with MAKE=\"gmake\" (or whatever is
19199 necessary). You can also try re-running configure with the
19200 '--disable-dependency-tracking' option to at least be able to build
19201 the package (albeit without support for automatic dependency tracking).
19202 See 'config.log' for more details" "$LINENO" 5; }
19203 fi
19204 { am_dirpart=; unset am_dirpart;}
19205 { am_filepart=; unset am_filepart;}
19206 { am_mf=; unset am_mf;}
19207 { am_rc=; unset am_rc;}
19208 rm -f conftest-deps.mk
19209 }
19210 ;;
19211 "libtool":C)
19212
19213 # See if we are running on zsh, and set the options that allow our
19214 # commands through without removal of \ escapes.
19215 if test -n "${ZSH_VERSION+set}"; then
19216 setopt NO_GLOB_SUBST
19217 fi
19218
19219 cfgfile=${ofile}T
19220 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19221 $RM "$cfgfile"
19222
19223 cat <<_LT_EOF >> "$cfgfile"
19224 #! $SHELL
19225 # Generated automatically by $as_me ($PACKAGE) $VERSION
19226 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19227
19228 # Provide generalized library-building support services.
19229 # Written by Gordon Matzigkeit, 1996
19230
19231 # Copyright (C) 2024 Free Software Foundation, Inc.
19232 # This is free software; see the source for copying conditions. There is NO
19233 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19234
19235 # GNU Libtool is free software; you can redistribute it and/or modify
19236 # it under the terms of the GNU General Public License as published by
19237 # the Free Software Foundation; either version 2 of the License, or
19238 # (at your option) any later version.
19239 #
19240 # As a special exception to the GNU General Public License, if you
19241 # distribute this file as part of a program or library that is built
19242 # using GNU Libtool, you may include this file under the same
19243 # distribution terms that you use for the rest of that program.
19244 #
19245 # GNU Libtool is distributed in the hope that it will be useful, but
19246 # WITHOUT ANY WARRANTY; without even the implied warranty of
19247 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19248 # GNU General Public License for more details.
19249 #
19250 # You should have received a copy of the GNU General Public License
19251 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19252
19253
19254 # The names of the tagged configurations supported by this script.
19255 available_tags=''
19256
19257 # Configured defaults for sys_lib_dlsearch_path munging.
19258 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19259
19260 # ### BEGIN LIBTOOL CONFIG
19261
19262 # Which release of libtool.m4 was used?
19263 macro_version=$macro_version
19264 macro_revision=$macro_revision
19265
19266 # Assembler program.
19267 AS=$lt_AS
19268
19269 # DLL creation program.
19270 DLLTOOL=$lt_DLLTOOL
19271
19272 # Object dumper program.
19273 OBJDUMP=$lt_OBJDUMP
19274
19275 # Whether or not to build shared libraries.
19276 build_libtool_libs=$enable_shared
19277
19278 # Whether or not to build static libraries.
19279 build_old_libs=$enable_static
19280
19281 # What type of objects to build.
19282 pic_mode=$pic_mode
19283
19284 # Whether or not to optimize for fast installation.
19285 fast_install=$enable_fast_install
19286
19287 # Shared archive member basename,for filename based shared library versioning on AIX.
19288 shared_archive_member_spec=$shared_archive_member_spec
19289
19290 # Shell to use when invoking shell scripts.
19291 SHELL=$lt_SHELL
19292
19293 # An echo program that protects backslashes.
19294 ECHO=$lt_ECHO
19295
19296 # The PATH separator for the build system.
19297 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19298
19299 # The host system.
19300 host_alias=$host_alias
19301 host=$host
19302 host_os=$host_os
19303
19304 # The build system.
19305 build_alias=$build_alias
19306 build=$build
19307 build_os=$build_os
19308
19309 # A sed program that does not truncate output.
19310 SED=$lt_SED
19311
19312 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19313 Xsed="\$SED -e 1s/^X//"
19314
19315 # A grep program that handles long lines.
19316 GREP=$lt_GREP
19317
19318 # An ERE matcher.
19319 EGREP=$lt_EGREP
19320
19321 # A literal string matcher.
19322 FGREP=$lt_FGREP
19323
19324 # A BSD- or MS-compatible name lister.
19325 NM=$lt_NM
19326
19327 # Whether we need soft or hard links.
19328 LN_S=$lt_LN_S
19329
19330 # What is the maximum length of a command?
19331 max_cmd_len=$max_cmd_len
19332
19333 # Object file suffix (normally "o").
19334 objext=$ac_objext
19335
19336 # Executable file suffix (normally "").
19337 exeext=$exeext
19338
19339 # whether the shell understands "unset".
19340 lt_unset=$lt_unset
19341
19342 # turn spaces into newlines.
19343 SP2NL=$lt_lt_SP2NL
19344
19345 # turn newlines into spaces.
19346 NL2SP=$lt_lt_NL2SP
19347
19348 # convert \$build file names to \$host format.
19349 to_host_file_cmd=$lt_cv_to_host_file_cmd
19350
19351 # convert \$build files to toolchain format.
19352 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19353
19354 # A file(cmd) program that detects file types.
19355 FILECMD=$lt_FILECMD
19356
19357 # Method to check whether dependent libraries are shared objects.
19358 deplibs_check_method=$lt_deplibs_check_method
19359
19360 # Command to use when deplibs_check_method = "file_magic".
19361 file_magic_cmd=$lt_file_magic_cmd
19362
19363 # How to find potential files when deplibs_check_method = "file_magic".
19364 file_magic_glob=$lt_file_magic_glob
19365
19366 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19367 want_nocaseglob=$lt_want_nocaseglob
19368
19369 # Command to associate shared and link libraries.
19370 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19371
19372 # The archiver.
19373 AR=$lt_AR
19374
19375 # Flags to create an archive (by configure).
19376 lt_ar_flags=$lt_ar_flags
19377
19378 # Flags to create an archive.
19379 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
19380
19381 # How to feed a file listing to the archiver.
19382 archiver_list_spec=$lt_archiver_list_spec
19383
19384 # A symbol stripping program.
19385 STRIP=$lt_STRIP
19386
19387 # Commands used to install an old-style archive.
19388 RANLIB=$lt_RANLIB
19389 old_postinstall_cmds=$lt_old_postinstall_cmds
19390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19391
19392 # Whether to use a lock for old archive extraction.
19393 lock_old_archive_extraction=$lock_old_archive_extraction
19394
19395 # A C compiler.
19396 LTCC=$lt_CC
19397
19398 # LTCC compiler flags.
19399 LTCFLAGS=$lt_CFLAGS
19400
19401 # Take the output of nm and produce a listing of raw symbols and C names.
19402 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19403
19404 # Transform the output of nm in a proper C declaration.
19405 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19406
19407 # Transform the output of nm into a list of symbols to manually relocate.
19408 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19409
19410 # Transform the output of nm in a C name address pair.
19411 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19412
19413 # Transform the output of nm in a C name address pair when lib prefix is needed.
19414 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19415
19416 # The name lister interface.
19417 nm_interface=$lt_lt_cv_nm_interface
19418
19419 # Specify filename containing input files for \$NM.
19420 nm_file_list_spec=$lt_nm_file_list_spec
19421
19422 # The root where to search for dependent libraries,and where our libraries should be installed.
19423 lt_sysroot=$lt_sysroot
19424
19425 # Command to truncate a binary pipe.
19426 lt_truncate_bin=$lt_lt_cv_truncate_bin
19427
19428 # The name of the directory that contains temporary libtool files.
19429 objdir=$objdir
19430
19431 # Used to examine libraries when file_magic_cmd begins with "file".
19432 MAGIC_CMD=$MAGIC_CMD
19433
19434 # Must we lock files when doing compilation?
19435 need_locks=$lt_need_locks
19436
19437 # Manifest tool.
19438 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19439
19440 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19441 DSYMUTIL=$lt_DSYMUTIL
19442
19443 # Tool to change global to local symbols on Mac OS X.
19444 NMEDIT=$lt_NMEDIT
19445
19446 # Tool to manipulate fat objects and archives on Mac OS X.
19447 LIPO=$lt_LIPO
19448
19449 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19450 OTOOL=$lt_OTOOL
19451
19452 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19453 OTOOL64=$lt_OTOOL64
19454
19455 # Old archive suffix (normally "a").
19456 libext=$libext
19457
19458 # Shared library suffix (normally ".so").
19459 shrext_cmds=$lt_shrext_cmds
19460
19461 # The commands to extract the exported symbol list from a shared archive.
19462 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19463
19464 # Variables whose values should be saved in libtool wrapper scripts and
19465 # restored at link time.
19466 variables_saved_for_relink=$lt_variables_saved_for_relink
19467
19468 # Do we need the "lib" prefix for modules?
19469 need_lib_prefix=$need_lib_prefix
19470
19471 # Do we need a version for libraries?
19472 need_version=$need_version
19473
19474 # Library versioning type.
19475 version_type=$version_type
19476
19477 # Shared library runtime path variable.
19478 runpath_var=$runpath_var
19479
19480 # Shared library path variable.
19481 shlibpath_var=$shlibpath_var
19482
19483 # Is shlibpath searched before the hard-coded library search path?
19484 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19485
19486 # Format of library name prefix.
19487 libname_spec=$lt_libname_spec
19488
19489 # List of archive names. First name is the real one, the rest are links.
19490 # The last name is the one that the linker finds with -lNAME
19491 library_names_spec=$lt_library_names_spec
19492
19493 # The coded name of the library, if different from the real name.
19494 soname_spec=$lt_soname_spec
19495
19496 # Permission mode override for installation of shared libraries.
19497 install_override_mode=$lt_install_override_mode
19498
19499 # Command to use after installation of a shared archive.
19500 postinstall_cmds=$lt_postinstall_cmds
19501
19502 # Command to use after uninstallation of a shared archive.
19503 postuninstall_cmds=$lt_postuninstall_cmds
19504
19505 # Commands used to finish a libtool library installation in a directory.
19506 finish_cmds=$lt_finish_cmds
19507
19508 # As "finish_cmds", except a single script fragment to be evaled but
19509 # not shown.
19510 finish_eval=$lt_finish_eval
19511
19512 # Whether we should hardcode library paths into libraries.
19513 hardcode_into_libs=$hardcode_into_libs
19514
19515 # Compile-time system search path for libraries.
19516 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19517
19518 # Detected run-time system search path for libraries.
19519 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19520
19521 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19522 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19523
19524 # Whether dlopen is supported.
19525 dlopen_support=$enable_dlopen
19526
19527 # Whether dlopen of programs is supported.
19528 dlopen_self=$enable_dlopen_self
19529
19530 # Whether dlopen of statically linked programs is supported.
19531 dlopen_self_static=$enable_dlopen_self_static
19532
19533 # Commands to strip libraries.
19534 old_striplib=$lt_old_striplib
19535 striplib=$lt_striplib
19536
19537
19538 # The linker used to build libraries.
19539 LD=$lt_LD
19540
19541 # How to create reloadable object files.
19542 reload_flag=$lt_reload_flag
19543 reload_cmds=$lt_reload_cmds
19544
19545 # Commands used to build an old-style archive.
19546 old_archive_cmds=$lt_old_archive_cmds
19547
19548 # A language specific compiler.
19549 CC=$lt_compiler
19550
19551 # Is the compiler the GNU compiler?
19552 with_gcc=$GCC
19553
19554 # Compiler flag to turn off builtin functions.
19555 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19556
19557 # Additional compiler flags for building library objects.
19558 pic_flag=$lt_lt_prog_compiler_pic
19559
19560 # How to pass a linker flag through the compiler.
19561 wl=$lt_lt_prog_compiler_wl
19562
19563 # Compiler flag to prevent dynamic linking.
19564 link_static_flag=$lt_lt_prog_compiler_static
19565
19566 # Does compiler simultaneously support -c and -o options?
19567 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19568
19569 # Whether or not to add -lc for building shared libraries.
19570 build_libtool_need_lc=$archive_cmds_need_lc
19571
19572 # Whether or not to disallow shared libs when runtime libs are static.
19573 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19574
19575 # Compiler flag to allow reflexive dlopens.
19576 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19577
19578 # Compiler flag to generate shared objects directly from archives.
19579 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19580
19581 # Whether the compiler copes with passing no objects directly.
19582 compiler_needs_object=$lt_compiler_needs_object
19583
19584 # Create an old-style archive from a shared archive.
19585 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19586
19587 # Create a temporary old-style archive to link instead of a shared archive.
19588 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19589
19590 # Commands used to build a shared archive.
19591 archive_cmds=$lt_archive_cmds
19592 archive_expsym_cmds=$lt_archive_expsym_cmds
19593
19594 # Commands used to build a loadable module if different from building
19595 # a shared archive.
19596 module_cmds=$lt_module_cmds
19597 module_expsym_cmds=$lt_module_expsym_cmds
19598
19599 # Whether we are building with GNU ld or not.
19600 with_gnu_ld=$lt_with_gnu_ld
19601
19602 # Flag that allows shared libraries with undefined symbols to be built.
19603 allow_undefined_flag=$lt_allow_undefined_flag
19604
19605 # Flag that enforces no undefined symbols.
19606 no_undefined_flag=$lt_no_undefined_flag
19607
19608 # Flag to hardcode \$libdir into a binary during linking.
19609 # This must work even if \$libdir does not exist
19610 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19611
19612 # Whether we need a single "-rpath" flag with a separated argument.
19613 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19614
19615 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19616 # DIR into the resulting binary.
19617 hardcode_direct=$hardcode_direct
19618
19619 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19620 # DIR into the resulting binary and the resulting library dependency is
19621 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
19622 # library is relocated.
19623 hardcode_direct_absolute=$hardcode_direct_absolute
19624
19625 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19626 # into the resulting binary.
19627 hardcode_minus_L=$hardcode_minus_L
19628
19629 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19630 # into the resulting binary.
19631 hardcode_shlibpath_var=$hardcode_shlibpath_var
19632
19633 # Set to "yes" if building a shared library automatically hardcodes DIR
19634 # into the library and all subsequent libraries and executables linked
19635 # against it.
19636 hardcode_automatic=$hardcode_automatic
19637
19638 # Set to yes if linker adds runtime paths of dependent libraries
19639 # to runtime path list.
19640 inherit_rpath=$inherit_rpath
19641
19642 # Whether libtool must link a program against all its dependency libraries.
19643 link_all_deplibs=$link_all_deplibs
19644
19645 # Set to "yes" if exported symbols are required.
19646 always_export_symbols=$always_export_symbols
19647
19648 # The commands to list exported symbols.
19649 export_symbols_cmds=$lt_export_symbols_cmds
19650
19651 # Symbols that should not be listed in the preloaded symbols.
19652 exclude_expsyms=$lt_exclude_expsyms
19653
19654 # Symbols that must always be exported.
19655 include_expsyms=$lt_include_expsyms
19656
19657 # Commands necessary for linking programs (against libraries) with templates.
19658 prelink_cmds=$lt_prelink_cmds
19659
19660 # Commands necessary for finishing linking programs.
19661 postlink_cmds=$lt_postlink_cmds
19662
19663 # Specify filename containing input files.
19664 file_list_spec=$lt_file_list_spec
19665
19666 # How to hardcode a shared library path into an executable.
19667 hardcode_action=$hardcode_action
19668
19669 # ### END LIBTOOL CONFIG
19670
19671 _LT_EOF
19672
19673 cat <<'_LT_EOF' >> "$cfgfile"
19674
19675 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19676
19677 # func_munge_path_list VARIABLE PATH
19678 # -----------------------------------
19679 # VARIABLE is name of variable containing _space_ separated list of
19680 # directories to be munged by the contents of PATH, which is string
19681 # having a format:
19682 # "DIR[:DIR]:"
19683 # string "DIR[ DIR]" will be prepended to VARIABLE
19684 # ":DIR[:DIR]"
19685 # string "DIR[ DIR]" will be appended to VARIABLE
19686 # "DIRP[:DIRP]::[DIRA:]DIRA"
19687 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19688 # "DIRA[ DIRA]" will be appended to VARIABLE
19689 # "DIR[:DIR]"
19690 # VARIABLE will be replaced by "DIR[ DIR]"
19691 func_munge_path_list ()
19692 {
19693 case x$2 in
19694 x)
19695 ;;
19696 *:)
19697 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19698 ;;
19699 x:*)
19700 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19701 ;;
19702 *::*)
19703 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19704 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19705 ;;
19706 *)
19707 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19708 ;;
19709 esac
19710 }
19711
19712
19713 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19714 func_cc_basename ()
19715 {
19716 for cc_temp in $*""; do
19717 case $cc_temp in
19718 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19719 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19720 \-*) ;;
19721 *) break;;
19722 esac
19723 done
19724 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19725 }
19726
19727
19728 # ### END FUNCTIONS SHARED WITH CONFIGURE
19729
19730 _LT_EOF
19731
19732 case $host_os in
19733 aix3*)
19734 cat <<\_LT_EOF >> "$cfgfile"
19735 # AIX sometimes has problems with the GCC collect2 program. For some
19736 # reason, if we set the COLLECT_NAMES environment variable, the problems
19737 # vanish in a puff of smoke.
19738 if test set != "${COLLECT_NAMES+set}"; then
19739 COLLECT_NAMES=
19740 export COLLECT_NAMES
19741 fi
19742 _LT_EOF
19743 ;;
19744 esac
19745
19746
19747
19748 ltmain=$ac_aux_dir/ltmain.sh
19749
19750
19751 # We use sed instead of cat because bash on DJGPP gets confused if
19752 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19753 # text mode, it properly converts lines to CR/LF. This bash problem
19754 # is reportedly fixed, but why not run on old versions too?
19755 $SED '$q' "$ltmain" >> "$cfgfile" \
19756 || (rm -f "$cfgfile"; exit 1)
19757
19758 mv -f "$cfgfile" "$ofile" ||
19759 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19760 chmod +x "$ofile"
19761
19762 ;;
19763
19764 esac
19765 done # for ac_tag
19766
19767
19768 as_fn_exit 0
19769 _ACEOF
19770 ac_clean_files=$ac_clean_files_save
19771
19772 test $ac_write_fail = 0 ||
19773 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19774
19775
19776 # configure is writing to config.log, and then calls config.status.
19777 # config.status does its own redirection, appending to config.log.
19778 # Unfortunately, on DOS this fails, as config.log is still kept open
19779 # by configure, so config.status won't be able to write to it; its
19780 # output is simply discarded. So we exec the FD to /dev/null,
19781 # effectively closing config.log, so it can be properly (re)opened and
19782 # appended to by config.status. When coming back to configure, we
19783 # need to make the FD available again.
19784 if test "$no_create" != yes; then
19785 ac_cs_success=:
19786 ac_config_status_args=
19787 test "$silent" = yes &&
19788 ac_config_status_args="$ac_config_status_args --quiet"
19789 exec 5>/dev/null
19790 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19791 exec 5>>config.log
19792 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19793 # would make configure fail if this is the last instruction.
19794 $ac_cs_success || as_fn_exit 1
19795 fi
19796 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19798 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19799 fi
19800
19801